Skip to content

Commit

Permalink
Merge pull request #90 from pagopa/PAGOPA-1566
Browse files Browse the repository at this point in the history
fix: description mandatory field handling [PAGOPA-1566]
  • Loading branch information
cap-ang authored Mar 1, 2024
2 parents 87c90a4 + 1dd0765 commit 30e5463
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 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: v2
name: pagopa-gpd-payments
description: Microservice that exposes API for payment receipts retrieving and other operations
type: application
version: 0.71.0
appVersion: 0.12.8
version: 0.72.0
appVersion: 0.12.8-1-PAGOPA-1566
dependencies:
- name: microservice-chart
version: 2.4.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.12.8"
tag: "0.12.8-1-PAGOPA-1566"
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.12.8"
tag: "0.12.8-1-PAGOPA-1566"
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.12.8"
tag: "0.12.8-1-PAGOPA-1566"
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.12.8"
"version": "0.12.8-1-PAGOPA-1566"
},
"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.12.8</version>
<version>0.12.8-1-PAGOPA-1566</version>
<name>Payments</name>
<description>Payments</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private PaGetPaymentRes generatePaGetPaymentResponse(
}

responseData.setLastPayment(false); // de-scoping
responseData.setDescription(source.getDescription());
responseData.setDescription(Optional.ofNullable(source.getDescription()).orElse("NA"));
responseData.setCompanyName(Optional.ofNullable(source.getCompanyName()).orElse("NA"));
responseData.setOfficeName(Optional.ofNullable(source.getOfficeName()).orElse(("NA")));
CtSubject debtor = this.getDebtor(source);
Expand Down Expand Up @@ -442,7 +442,7 @@ private PaGetPaymentV2Response generatePaGetPaymentResponse(
}

responseData.setLastPayment(false); // de-scoping
responseData.setDescription(source.getDescription());
responseData.setDescription(Optional.ofNullable(source.getDescription()).orElse("NA"));
responseData.setCompanyName(Optional.ofNullable(source.getCompanyName()).orElse("NA"));
responseData.setOfficeName(Optional.ofNullable(source.getOfficeName()).orElse(("NA")));

Expand Down

0 comments on commit 30e5463

Please sign in to comment.