-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: [CHK-3613] Updated GET transactions to include optional fields for closePayment errors #2644
base: main
Are you sure you want to change the base?
Conversation
src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
src/domains/ecommerce-app/api/ecommerce-io/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
src/domains/ecommerce-app/api/ecommerce-webview/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
…son.tpl Co-authored-by: Pietro Tota <[email protected]>
src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
host = local.apim_hostname | ||
}) | ||
|
||
xml_content = templatefile("./api/ecommerce-webview/v1/_base_policy.xml.tpl", { |
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.
please create a v2 base policy file where base url have to be set as per the v1 version adding a leading /v2
src/domains/ecommerce-app/api/ecommerce-checkout/v2/_openapi.json.tpl
Outdated
Show resolved
Hide resolved
"$ref": "#/components/schemas/PaymentInfo" | ||
}, | ||
"minItems": 1, | ||
"maxItems": 1, |
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.
"maxItems": 1, | |
"maxItems": 5, |
max payment notices are 5 (cart supports 5 as maximum value).
Please update other api spec definitions too
List of changes
Added the v2 GET transactions to include an optional object for the close payment error details in:
Also, field reformat for TransactionInfo now adds 2 structures nodeInfos and gatewayInfo, to better aggregate data
Motivation and context
This is part of a bigger effort aiming to have a proper mapping for closePayment errors in the whole platform
Type of changes
Does this introduce a change to production resources with possible user impact?
Does this introduce an unwanted change on infrastructure? Check terraform plan execution result
Other information
If PR is partially applied, why? (reserved to mantainers)