generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new API for retrieve receipt status
- Loading branch information
1 parent
9ad4140
commit 06230b9
Showing
12 changed files
with
393 additions
and
12 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
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
41 changes: 41 additions & 0 deletions
41
...spconverter/technicalsupport/controller/model/experimental/monitoring/ReceiptsStatus.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,41 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.monitoring; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
|
||
import java.time.Instant; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ReceiptsStatus { | ||
|
||
@Schema(example = "012345678901", description = "The identifier of the creditor institution") | ||
@JsonProperty("domain_id") | ||
private String domainId; | ||
|
||
@Schema(example = "001924757343397669", description = "The IUV code of the payment") | ||
@JsonProperty("iuv") | ||
private String iuv; | ||
|
||
@Schema(example = "001924757343397669-00001", description = "The payment context code (aka CCP) of the payment tentative") | ||
@JsonProperty("ccp") | ||
private String ccp; | ||
|
||
@Schema(example = "KO", description = "The type of the receipt (OK or KO)") | ||
@JsonProperty("type") | ||
private String type; | ||
|
||
@Schema(example = "SENT", description = "The sending status of the receipt") | ||
@JsonProperty("status") | ||
private String status; | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "The datetime of the last update made on the receipt") | ||
@JsonProperty("last_update") | ||
private Instant lastUpdate; | ||
} |
41 changes: 41 additions & 0 deletions
41
...echnicalsupport/controller/model/experimental/monitoring/ReceiptsStatusFilterRequest.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,41 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.monitoring; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
import org.springframework.format.annotation.DateTimeFormat; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.Set; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ReceiptsStatusFilterRequest { | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "The lower limit of the date slot in 'Europe/Rome' timezone, used as delimiter for the search time (in yyyy-MM-ddThh:mm:ss)", requiredMode = Schema.RequiredMode.REQUIRED) | ||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) | ||
@JsonProperty(value = "lower_bound_date", required = true) | ||
private LocalDateTime lowerBoundDate; | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "The upper limit of the date slot in 'Europe/Rome' timezone, used as delimiter for the search time (in yyyy-MM-ddThh:mm:ss)", requiredMode = Schema.RequiredMode.REQUIRED) | ||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) | ||
@JsonProperty(value = "upper_bound_date", required = true) | ||
private LocalDateTime upperBoundDate; | ||
|
||
@Schema(example = "12345678901", description = "The identifier of the creditor institution", requiredMode = Schema.RequiredMode.REQUIRED) | ||
@JsonProperty(value = "creditor_institution", required = true) | ||
private String creditorInstitution; | ||
|
||
@Schema(description = "The list of IUV payment codes to be used as a search filter. They can be null if a search on whole creditor institution is required", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
@JsonProperty(value = "iuvs") | ||
private Set<String> iuvs; | ||
|
||
@Schema(description = "The flag that permits to exclude the receipts in 'SENT' status", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||
@JsonProperty(value = "show_in_sent_status") | ||
private boolean showSent; | ||
} |
31 changes: 31 additions & 0 deletions
31
...ter/technicalsupport/controller/model/experimental/monitoring/ReceiptsStatusResponse.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,31 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.monitoring; | ||
|
||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.*; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class ReceiptsStatusResponse { | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "The lower limit of the date slot in 'Europe/Rome' timezone, used as delimiter for the search time (in yyyy-MM-ddThh:mm:ss)") | ||
@JsonProperty("lower_bound_date") | ||
private LocalDateTime lowerBoundDate; | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "The upper limit of the date slot in 'Europe/Rome' timezone, used as delimiter for the search time (in yyyy-MM-ddThh:mm:ss)") | ||
@JsonProperty("upper_bound_date") | ||
private LocalDateTime upperBoundDate; | ||
|
||
@Schema(description = "The receipts explained by their status") | ||
@JsonProperty("receipts") | ||
private List<ReceiptsStatus> receipts; | ||
} |
Oops, something went wrong.