Skip to content

Commit

Permalink
traslated dto object
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedetta-fabbri committed Nov 12, 2024
1 parent 86c19c4 commit 29ebc2b
Show file tree
Hide file tree
Showing 12 changed files with 446 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/it/gov/pagopa/payhub/activities/dto/CityDTO.java
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;
}
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;

}
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;

}
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;

}
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;

}
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 src/main/java/it/gov/pagopa/payhub/activities/dto/NationDTO.java
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");
// }
}
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;
}
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;
}
Loading

0 comments on commit 29ebc2b

Please sign in to comment.