generated from pagopa/template-payments-java-repository
-
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.
- Loading branch information
1 parent
86c19c4
commit 29ebc2b
Showing
12 changed files
with
446 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/it/gov/pagopa/payhub/activities/dto/CityDTO.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.payhub.activities.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CityDTO implements Serializable { | ||
|
||
private Long municipalityId; | ||
private String municipality; | ||
private Long provinceId; | ||
} |
31 changes: 31 additions & 0 deletions
31
...java/it/gov/pagopa/payhub/activities/dto/ElaboratedInstallmentPrimaryOrganizationDTO.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.payhub.activities.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ElaboratedInstallmentPrimaryOrganizationDTO implements Serializable { | ||
|
||
private String beneficiaryName; | ||
private String uniqueIdentificationCode; | ||
private String debitIban; | ||
private String amount; | ||
private String beneficiaryAddress; | ||
private String beneficiaryCivic; | ||
private String beneficiaryPostalCode; | ||
private String beneficiaryNation; | ||
private String beneficiaryProvince; | ||
private String beneficiaryLocation; | ||
|
||
@JsonIgnore | ||
private Long elaboratedInstallmentId; | ||
|
||
} |
33 changes: 33 additions & 0 deletions
33
...in/java/it/gov/pagopa/payhub/activities/dto/ElaboratedMultiBeneficiaryInstallmentDTO.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,33 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ElaboratedMultiBeneficiaryInstallmentDTO implements Serializable { | ||
|
||
@JsonIgnore | ||
private Long elaboratedMultiBeneficiaryInstallmentId; | ||
@JsonIgnore | ||
private Long elaboratedInstallmentId; | ||
|
||
private String beneficiaryName; | ||
private String uniqueIdentificationCode; | ||
private String debitIban; | ||
private String secondaryAmount; | ||
private String beneficiaryAddress; | ||
private String beneficiaryCivic; | ||
private String beneficiaryPostalCode; | ||
private String beneficiaryNation; | ||
private String beneficiaryProvince; | ||
private String beneficiaryLocation; | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/it/gov/pagopa/payhub/activities/dto/InstallmentPrimaryOrganizationDTO.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,29 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class InstallmentPrimaryOrganizationDTO { | ||
|
||
private String beneficiaryName; | ||
private String uniqueIdentificationCode; | ||
private String debitIban; | ||
private String amount; | ||
private String beneficiaryAddress; | ||
private String beneficiaryCivic; | ||
private String beneficiaryPostalCode; | ||
private String beneficiaryNation; | ||
private String beneficiaryProvince; | ||
private String beneficiaryLocation; | ||
|
||
@JsonIgnore | ||
private Long installmentId; | ||
|
||
} |
68 changes: 68 additions & 0 deletions
68
src/main/java/it/gov/pagopa/payhub/activities/dto/InstallmentsOperatorDTO.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,68 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import java.time.LocalDateTime; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class InstallmentsOperatorDTO implements Serializable { | ||
|
||
private Long installmentId; | ||
private String uniqueIdentificationCode; | ||
private String iud; | ||
private String iuv; | ||
private String remittanceInformation; | ||
private String displayedRemittanceInformation; | ||
private String amount; | ||
private LocalDate dueDate; | ||
private String status; | ||
private String statusCode; | ||
private LocalDateTime statusDate; | ||
private boolean hasNotice; | ||
private boolean hasReceipt; | ||
|
||
//details | ||
private OrganizationTypeInstallmentDTO organizationTypeInstallment; | ||
private String beneficiaryName; | ||
private String subjectType; | ||
private boolean flagAnonymousData; | ||
private boolean hasFiscalCode; | ||
private String email; | ||
private String address; | ||
private String civic; | ||
private String postalCode; | ||
private NationDTO nation; | ||
private ProvinceDTO province; | ||
private CityDTO municipality; | ||
private boolean flagGenerateIuv; | ||
private String iuf; | ||
|
||
//datails elaborated installment | ||
private LocalDateTime transactionStartDate; | ||
private String transactionId; | ||
private String holder; | ||
private String selectedPSP; | ||
|
||
private String installmentType; // "debito" or "pagato" | ||
private String invalidDescription; // Message thrown by ValidatorException when insertion, update. | ||
|
||
private boolean flagMultiBeneficiary; | ||
private boolean flagIuvVolatile; | ||
|
||
//primary org detail | ||
private InstallmentPrimaryOrganizationDTO installmentPrimaryOrgDetail; | ||
private ElaboratedInstallmentPrimaryOrganizationDTO elaboratedInstallmentPrimaryOrgDetail; | ||
|
||
//multibeneficiary detail | ||
private MultiBeneficiaryInstallmentDTO multiBeneficiaryInstallmentDetail; | ||
private ElaboratedMultiBeneficiaryInstallmentDTO elaboratedMultiBeneficiaryInstallmentDetail; | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/it/gov/pagopa/payhub/activities/dto/MultiBeneficiaryInstallmentDTO.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,32 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class MultiBeneficiaryInstallmentDTO implements Serializable { | ||
|
||
private String beneficiaryName; | ||
private String uniqueIdentificationCode; | ||
private String debitIban; | ||
private String beneficiaryAddress; | ||
private String beneficiaryCivic; | ||
private String beneficiaryPostalCode; | ||
private String beneficiaryNation; | ||
private String beneficiaryProvince; | ||
private String beneficiaryLocation; | ||
private String secondaryAmount; | ||
private String remittanceInformationMultiBeneficiary; | ||
private String orgInstallmentTypeCode; | ||
|
||
@JsonIgnore | ||
private Long installmentId; | ||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/it/gov/pagopa/payhub/activities/dto/NationDTO.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,23 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import java.io.Serializable; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class NationDTO implements Serializable { | ||
private Long nationId; | ||
private String nationName; | ||
private String codeIsoAlpha2; | ||
|
||
// public boolean hasProvince(){ | ||
// return StringUtils.equalsIgnoreCase(codiceIsoAlpha2, "it"); | ||
// } | ||
} |
59 changes: 59 additions & 0 deletions
59
src/main/java/it/gov/pagopa/payhub/activities/dto/OrganizationDTO.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,59 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
import java.sql.Timestamp; | ||
import java.time.LocalDate; | ||
|
||
@Data | ||
@Builder(toBuilder=true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class OrganizationDTO implements Serializable { | ||
|
||
private Long orgId; | ||
private String ipaCode; | ||
private String orgFiscalCode; | ||
private String orgName; | ||
private String adminEmail; | ||
private Timestamp creationDate; | ||
private Timestamp lastChangeDate; | ||
private String paymentTypeCode; | ||
private BigDecimal numPAChargeCommittee; | ||
private String creditIban; | ||
private String creditBic; | ||
private String backingIban; | ||
private String backingBic; | ||
private String myBoxClientKey; | ||
private String myBoxClientSecret; | ||
private String urlOrgSendSILPaymentResult; | ||
private String codeGlobalLocationNumber; | ||
private String password; | ||
private Boolean creditBicSeller; | ||
private String beneficiaryOrgName; | ||
private String beneficiaryOrgAddress; | ||
private String beneficiaryOrgCivic; | ||
private String beneficiaryOrgPostalCode; | ||
private String beneficiaryOrgLocation; | ||
private String beneficiaryOrgProvince; | ||
private String beneficiaryOrgNation; | ||
private String beneficiaryOrgPhoneNumber; | ||
private String beneficiaryOrgWebSite; | ||
private String beneficiaryOrgEmail; | ||
private String applicationCode; | ||
private String cbillInterbankCode; | ||
private String orgInformation; | ||
private String orgLogoDesc; | ||
private String authorizationDesc; | ||
private RegistryStatusDTO statusCode; | ||
private String urlActiveExternal; | ||
private String additionalLanguage; | ||
private String orgTypeCode; | ||
private LocalDate startDate; | ||
private Long brokerId; | ||
} |
58 changes: 58 additions & 0 deletions
58
src/main/java/it/gov/pagopa/payhub/activities/dto/OrganizationInstallmentTypeDTO.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,58 @@ | ||
package it.gov.pagopa.payhub.activities.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class OrganizationInstallmentTypeDTO implements Serializable { | ||
|
||
|
||
private Long installmentTypeId; | ||
private OrganizationDTO orgId; | ||
private String typeCode; | ||
private String typeDesc; | ||
private String creditIbanPi; | ||
private String creditBicPi; | ||
private String backingIbanPi; | ||
private String backingBicPi; | ||
private String creditIbanPSP; | ||
private String creditBicPSP; | ||
private String backingIbanPSP; | ||
private String backingBicPSP; | ||
private String postalAccountCode; | ||
private String xsdReasonCode; | ||
private boolean creditBicPiSeller; | ||
private boolean creditBicPspSeller; | ||
private boolean spontaneous; | ||
private BigDecimal amount; | ||
private String installmentPaymentUrl; | ||
private String balanceDefaultDesc; | ||
private boolean flagAnonymousFiscalCode; | ||
private boolean flagMandatoryDueDate; | ||
private boolean flagPrintDueDate; | ||
private String holderPostalCC; | ||
private String orgSector; | ||
private boolean flagNotifyIO; | ||
private boolean flagNotifyOutcomePush; | ||
private Integer maxAttemptForwardingOutcome; | ||
private Long orgSilId; | ||
private boolean flagActive; | ||
private String paymentContextCode; | ||
private boolean flgDisablePrintNotice; | ||
private String macroArea; | ||
private String serviceType; | ||
private String collectingReason; | ||
private String taxonomyCode; | ||
private String urlNotifyPnd; | ||
private String userPnd; | ||
private String pswPnd; | ||
private String urlNotifyActualizationPnd; | ||
} |
Oops, something went wrong.