-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CHK-2736] feat(NPG): handle new fields from GET auth-data wallet api #475
base: main
Are you sure you want to change the base?
Conversation
|
38ded35
to
86b034b
Compare
|
407cd4f
to
af5780a
Compare
af5780a
to
b294e94
Compare
|
1 similar comment
|
@@ -346,7 +346,7 @@ | |||
<goal>generate</goal> | |||
</goals> | |||
<configuration> | |||
<inputSpec>https://raw.githubusercontent.com/pagopa/pagopa-infra/main/src/domains/wallet-app/api/payment-wallet-for-ecommerce/v1/_openapi.json.tpl</inputSpec> | |||
<inputSpec>https://raw.githubusercontent.com/pagopa/pagopa-infra/CHK-2736-wallet-auth-data/src/domains/wallet-app/api/payment-wallet-for-ecommerce/v1/_openapi.json.tpl</inputSpec> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<inputSpec>https://raw.githubusercontent.com/pagopa/pagopa-infra/CHK-2736-wallet-auth-data/src/domains/wallet-app/api/payment-wallet-for-ecommerce/v1/_openapi.json.tpl</inputSpec> | |
<inputSpec>https://raw.githubusercontent.com/pagopa/pagopa-infra/main/src/domains/wallet-app/api/payment-wallet-for-ecommerce/v1/_openapi.json.tpl</inputSpec> |
TODO: to be replaced after dependent pr merge
🎉 All dependencies have been resolved ! |
|
2 similar comments
|
|
case PaymentSessionData.CardSessionData cardSessionData -> | ||
cardSessionData.cardBin().value(); | ||
case PaymentSessionData.PgsCardSessionData cardSessionData -> cardSessionData.cardBin().value(); | ||
case PaymentSessionData.WalletCardSessionData cardSessionData -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WalletCardSessionData
, CardSessionData
and PgsCardSessionData
could implement a common interface (let say CardData) with methods: cardBin(), brand() and other common fields so that were needed those switch cases can be collapsed to an if statement against the fact that PaymentSessionData is instance of the CardData interface.
What do you think?
911ee86
to
7e0753f
Compare
7e0753f
to
699f780
Compare
Quality Gate passedIssues Measures |
699f780
to
664b54b
Compare
664b54b
to
4ccbdcb
Compare
4ccbdcb
to
7d44711
Compare
This PR exceeds the recommended size of 400 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Quality Gate passedIssues Measures |
Big PR warning?
Most of the lines changed are either tests or indentation, while there are little changes to the actual business logic :)
List of Changes
GET auth-data
(in particular: last four digits for cards, masked email for PayPal)Motivation and Context
This PR is necessary to collect data needed to invoke Nodo's
closePayment
endpoint and fill with all the relevant data about a transaction.How Has This Been Tested?
TODO
Screenshots (if appropriate):
Types of changes
Checklist:
Depends on #473Depends on pagopa/pagopa-ecommerce-commons#192Depends on pagopa/pagopa-infra#1925
Depends on pagopa/pagopa-wallet-service#132