Skip to content
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

Open
wants to merge 40 commits into
base: main
Choose a base branch
from

Conversation

EmanueleBVtech
Copy link
Collaborator

@EmanueleBVtech EmanueleBVtech commented Dec 9, 2024

List of changes

Added the v2 GET transactions to include an optional object for the close payment error details in:

  • ecommerce-checkout
  • ecommerce-webview
  • ecommerce-transactions-service

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

  • Add new resources
  • Update configuration to existing resources
  • Remove existing resources

Does this introduce a change to production resources with possible user impact?

  • Yes, users may be impacted applying this change
  • No

Does this introduce an unwanted change on infrastructure? Check terraform plan execution result

  • Yes
  • No

Other information


If PR is partially applied, why? (reserved to mantainers)

@EmanueleBVtech EmanueleBVtech marked this pull request as ready for review December 9, 2024 16:41
@EmanueleBVtech EmanueleBVtech requested review from a team as code owners December 9, 2024 16:41
@EmanueleBVtech EmanueleBVtech changed the title feat [CHK-3613] Updated GET transactions to include optional fields for closePayment errors feat: [CHK-3613] Updated GET transactions to include optional fields for closePayment errors Dec 11, 2024
host = local.apim_hostname
})

xml_content = templatefile("./api/ecommerce-webview/v1/_base_policy.xml.tpl", {
Copy link
Contributor

@pietro-tota pietro-tota Dec 12, 2024

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

"$ref": "#/components/schemas/PaymentInfo"
},
"minItems": 1,
"maxItems": 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"maxItems": 1,
"maxItems": 5,

max payment notices are 5 (cart supports 5 as maximum value).
Please update other api spec definitions too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants