Skip to content

Commit

Permalink
psp payments
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Jan 25, 2024
1 parent bc92757 commit b080c10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public CreditorInstitutionDetail convert(MappingContext<PaStazionePa, CreditorIn
return CreditorInstitutionDetail.builder()
.businessName(pa.getRagioneSociale())
.creditorInstitutionCode(pa.getIdDominio())
.pspPayment(pa.getPagamentoPressoPsp())
.cbillCode(pa.getCbill())
.brokerBusinessName(intermediariPa.getCodiceIntermediario())
.brokerCode(intermediariPa.getIdIntermediarioPa())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public class CreditorInstitutionDetail {
@NotBlank
private String creditorInstitutionCode;

@JsonProperty("psp_payment")
@Schema(requiredMode = Schema.RequiredMode.REQUIRED, defaultValue = "true")
@NotNull
private Boolean pspPayment;

@JsonProperty("cbill_code")
@Schema(example = "APNEY", description = "The CBill code of the creditor institution", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
private String cbillCode;
Expand Down

0 comments on commit b080c10

Please sign in to comment.