Skip to content

Commit

Permalink
Merge pull request #56 from pagopa/PAGOPA-1238-gpd-payments-get-recei…
Browse files Browse the repository at this point in the history
…pts-422

fix: Update PaymentsService UNPROCESSABLE_RECEIPT exception raising [PAGOPA-1238]
  • Loading branch information
pasqualespica authored Sep 21, 2023
2 parents e4c8d4c + a3ff21f commit dbff06f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v1
name: pagopa-gpd-payments
description: Microservice that exposes API for payment receipts retrieving and other operations
type: application
version: 0.21.0
appVersion: 0.9.0
version: 0.22.0
appVersion: 0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422
dependencies:
- name: microservice-chart
version: 1.21.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-gpd-payments
tag: "0.9.0"
tag: "0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-gpd-payments
tag: "0.9.0"
tag: "0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: ""
image:
repository: ghcr.io/pagopa/pagopa-gpd-payments
tag: "0.9.0"
tag: "0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "PagoPA API Payments",
"description": "Payments",
"termsOfService": "https://www.pagopa.gov.it/",
"version": "0.9.0"
"version": "0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422"
},
"servers": [
{
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>payments</artifactId>
<version>0.9.0</version>
<version>0.9.0-1-PAGOPA-1238-gpd-payments-get-receipts-422</version>
<name>Payments</name>
<description>Payments</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void checkGPDDebtPosStatus(TableEntity receipt, TableClient tableClient)
if (!tableEntity.getProperty(STATUS_PROPERTY).toString().trim().equalsIgnoreCase(Status.PAID.name())) {
PaymentsModelResponse paymentOption =
gpdClient.getPaymentOption(tableEntity.getPartitionKey(), tableEntity.getRowKey());
if (null != paymentOption && !PaymentOptionStatus.PO_PAID.equals(paymentOption.getStatus())) {
if (paymentOption != null && paymentOption.getStatus().equals(PaymentOptionStatus.PO_UNPAID)) {
throw new AppException(
AppError.UNPROCESSABLE_RECEIPT,
paymentOption.getStatus(),
Expand Down

0 comments on commit dbff06f

Please sign in to comment.