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 API for retrieve pending receipts
- Loading branch information
1 parent
a4a3685
commit 1c8fa85
Showing
11 changed files
with
243 additions
and
24 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
24 changes: 24 additions & 0 deletions
24
...spconverter/technicalsupport/controller/model/experimental/monitoring/PendingReceipt.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,24 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.monitoring; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.payment.PaymentIdentifier; | ||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class PendingReceipt { | ||
|
||
@JsonProperty("payment") | ||
private PaymentIdentifier payment; | ||
|
||
@JsonProperty("receipt_to_send") | ||
private String receiptToSend; | ||
|
||
@JsonProperty("receipt_content") | ||
private String receiptContent; | ||
} |
35 changes: 35 additions & 0 deletions
35
...ter/technicalsupport/controller/model/experimental/monitoring/PendingReceiptsRequest.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,35 @@ | ||
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 PendingReceiptsRequest { | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "Lower limit date time (in yyyy-MM-ddThh:mm:ss) in 'Europe/Rome' timezone") | ||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) | ||
@JsonProperty("lower_bound_date") | ||
private LocalDateTime lowerBoundDate; | ||
|
||
@Schema(example = "2024-01-01T12:00:00", description = "Upper limit date time (in yyyy-MM-ddThh:mm:ss) in 'Europe/Rome' timezone") | ||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME) | ||
@JsonProperty("upper_bound_date") | ||
private LocalDateTime upperBoundDate; | ||
|
||
@JsonProperty("creditor_institution") | ||
private String creditorInstitution; | ||
|
||
@JsonProperty("iuvs") | ||
private Set<String> iuvs; | ||
} |
19 changes: 19 additions & 0 deletions
19
...er/technicalsupport/controller/model/experimental/monitoring/PendingReceiptsResponse.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,19 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.monitoring; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.*; | ||
|
||
import java.util.List; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class PendingReceiptsResponse { | ||
|
||
@JsonProperty("pending_receipts") | ||
private List<PendingReceipt> pendingReceipts; | ||
} |
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
26 changes: 26 additions & 0 deletions
26
...spconverter/technicalsupport/controller/model/experimental/payment/PaymentIdentifier.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,26 @@ | ||
package it.gov.pagopa.wispconverter.technicalsupport.controller.model.experimental.payment; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.*; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class PaymentIdentifier { | ||
|
||
@JsonProperty("iuv") | ||
private String iuv; | ||
|
||
@JsonProperty("domain_id") | ||
private String domainId; | ||
|
||
@JsonProperty("ccp") | ||
private String ccp; | ||
|
||
@JsonProperty("session_id") | ||
private String sessionId; | ||
} |
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