Skip to content

Commit

Permalink
fix: Force set fiscal code on PaymentOption from gpd-debt-position re…
Browse files Browse the repository at this point in the history
…sponse
  • Loading branch information
svariant committed Dec 13, 2024
1 parent f621ada commit 6ba2076
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,11 @@ private PaymentPositionModel createDebtPosition(String organizationFiscalCode,
pp.setSwitchToExpired(enrollment.isSwitchToExpired());
pp.addPaymentOptions(po);

return gpdClient.createDebtPosition(organizationFiscalCode, pp);
PaymentPositionModel gpdResponse = gpdClient.createDebtPosition(organizationFiscalCode, pp);
// Forced set fiscal code -> https://editor.swagger.io/?url=https://raw.githubusercontent.com/pagopa/pagopa-debt-position/main/openapi/openapi_internal.json
gpdResponse.getPaymentOption().get(0).setOrganizationFiscalCode(organizationFiscalCode);

return gpdResponse;
}


Expand Down

0 comments on commit 6ba2076

Please sign in to comment.