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

refactor(connector_customer): incorrect mapping of connector customer #1275

Merged
merged 12 commits into from
May 31, 2023

Conversation

Narayanbhat166
Copy link
Member

@Narayanbhat166 Narayanbhat166 commented May 25, 2023

Type of Change

  • Refactoring

Description

This PR adds support for multiple country and business label support in the connector customer. Previously the mapping to connector customer was of the form connector_name -> connector_customer_id, This has been changed to connector_label -> connector_customer_id

This Pr also includes some changes to the connector customer code to use idiomatic rust.

Motivation and Context

Fixes #1229

How did you test it?

Create a payment through stripe, and check whether connector customer is generated.

Screenshot 2023-05-25 at 4 37 03 PM

Create a mandate transaction in confirm, without passing the customer id.

Screenshot 2023-05-25 at 4 43 35 PM

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code

@Narayanbhat166 Narayanbhat166 added A-core Area: Core flows S-waiting-on-review Status: This PR has been implemented and needs to be reviewed C-refactor Category: Refactor labels May 25, 2023
@Narayanbhat166 Narayanbhat166 added this to the May 2023 Release milestone May 25, 2023
@Narayanbhat166 Narayanbhat166 self-assigned this May 25, 2023
@Narayanbhat166 Narayanbhat166 requested a review from a team as a code owner May 25, 2023 12:05
@Narayanbhat166 Narayanbhat166 linked an issue May 25, 2023 that may be closed by this pull request
2 tasks
@Narayanbhat166 Narayanbhat166 requested review from a team, jarnura and ashokkjag as code owners May 25, 2023 12:05
jarnura
jarnura previously approved these changes May 31, 2023
@Narayanbhat166 Narayanbhat166 added this pull request to the merge queue May 31, 2023
Merged via the queue into main with commit ebdfde7 May 31, 2023
@SanchithHegde SanchithHegde deleted the 1229-bug-incorrect-mapping-of-connector-customer branch May 31, 2023 21:30
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label May 31, 2023
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-refactor Category: Refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] incorrect mapping of connector customer
4 participants