-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #313 from pagopa/PPANTT-46-add-maintenance-summary…
…-api [PPANTT-46] feat: Add maintenance summary API
- Loading branch information
Showing
9 changed files
with
436 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...t/gov/pagopa/apiconfig/core/model/stationmaintenance/MaintenanceHoursSummaryResource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package it.gov.pagopa.apiconfig.core.model.stationmaintenance; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
/** | ||
* Model class that hold the hours' summary of stations' maintenance for a specific broker | ||
*/ | ||
@Getter | ||
@Setter | ||
@Builder | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class MaintenanceHoursSummaryResource { | ||
|
||
@JsonProperty("used_hours") | ||
@Schema(description = "Count of used maintenance's hours", required = true) | ||
@NotNull | ||
private String usedHours; | ||
|
||
@JsonProperty("scheduled_hours") | ||
@Schema(description = "Count of scheduled maintenance's hours", required = true) | ||
@NotNull | ||
private String scheduledHours; | ||
|
||
@JsonProperty("remaining_hours") | ||
@Schema(description = "Count of remaining maintenance's hours before annual limit", required = true) | ||
@NotNull | ||
private String remainingHours; | ||
|
||
@JsonProperty("extra_hours") | ||
@Schema(description = "Count of maintenance's hours that exceed annual limit", required = true) | ||
@NotNull | ||
private String extraHours; | ||
|
||
@JsonProperty("annual_hours_limit") | ||
@Schema(description = "Annual limit of maintenance hours", required = true) | ||
@NotNull | ||
private String annualHoursLimit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.