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(router): add payment_intent_data and modify api models of create intent request and response for v2 #6016

Merged
merged 89 commits into from
Sep 25, 2024

Conversation

sai-harsha-vardhan
Copy link
Contributor

@sai-harsha-vardhan sai-harsha-vardhan commented Sep 24, 2024

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

add payment_intent_data and modify api models of create intent request and response for v2

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Compiler guided (api model changes only)

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

hrithikesh026 and others added 30 commits September 2, 2024 13:37
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Sep 24, 2024
@sai-harsha-vardhan sai-harsha-vardhan changed the title Add payment intent data v2 feat(router): add payment_intent_data and modify api models of create intent request and response for v2 Sep 24, 2024
@sai-harsha-vardhan sai-harsha-vardhan self-assigned this Sep 24, 2024
@sai-harsha-vardhan sai-harsha-vardhan added A-core Area: Core flows C-feature Category: Feature request or enhancement labels Sep 24, 2024
/// Tax details related to the order. This will be calculated by the external tax provider
tax_details: Option<TaxDetails>,
pub tax_details: Option<TaxDetails>,
Copy link
Member

Choose a reason for hiding this comment

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

In api_model we have order_tax_amount and in domain_model we have tax_details, lets keep one name to denote these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In api_models, we'll be having order_tax_amount only where as in domain models we have default and pmt tax

jarnura
jarnura previously approved these changes Sep 25, 2024
SanchithHegde
SanchithHegde previously approved these changes Sep 25, 2024
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Sep 25, 2024
Merged via the queue into main with commit 9a605af Sep 25, 2024
12 of 14 checks passed
@Gnanasundari24 Gnanasundari24 deleted the add-payment-intent-data-v2 branch September 25, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows C-feature Category: Feature request or enhancement M-api-contract-changes Metadata: This PR involves API contract changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants