Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public class SpontaneousPaymentOptionModel implements Serializable {
@NotBlank(message = "iuv is required")
private String iuv;

@NotBlank(message = "organizationFiscalCode is required")
private String organizationFiscalCode;

@NotBlank(message = "nav is required")
private String nav;

@NotBlank(message = "amount is required")
private long amount;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public class TransferModel implements Serializable {
@NotBlank(message = "remittance information is required")
private String remittanceInformation; // causale

@NotBlank(message = "organizationFiscalCode is required")
private String organizationFiscalCode;

@NotBlank(message = "category is required")
private String category; // taxonomy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ private PaDemandPaymentNoticeResponse createPaDemandPaymentNoticeResponse(
result.setFiscalCodePA(gpsResponse.getFiscalCode());

CtQrCode ctQrCode = factory.createCtQrCode();
ctQrCode.setFiscalCode(gpsResponse.getFiscalCode());
ctQrCode.setNoticeNumber(gpsResponse.getPaymentOption().get(0).getIuv());
ctQrCode.setFiscalCode(gpsResponse.getPaymentOption().get(0).getOrganizationFiscalCode());
ctQrCode.setNoticeNumber(gpsResponse.getPaymentOption().get(0).getNav());
result.setQrCode(ctQrCode);

result.setCompanyName(Validator.validateCompanyName(gpsResponse.getCompanyName()));
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/gps/createSpontaneousPayments.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"paymentOption": [
{
"iuv": "",
"nav": "3",
"organizationFiscalCode": "77777777777",
"amount": 1055,
"description": "string",
"isPartialPayment": false,
Expand All @@ -29,6 +31,7 @@
"transfer": [
{
"idTransfer": "",
"organizationFiscalCode": "77777777777",
"amount": 0,
"remittanceInformation": "",
"category": "",
Expand Down
Loading