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): [trustpay] refactor trustpay and handled variants errors #2484

Merged
merged 7 commits into from
Oct 8, 2023

Conversation

Cioraz
Copy link
Contributor

@Cioraz Cioraz commented Oct 6, 2023

Type of Change

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

Description

Handling the unhandled variants for trustpay
Issue #2287

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?

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
  • I added a CHANGELOG entry if applicable

@Cioraz Cioraz requested a review from a team as a code owner October 6, 2023 16:14
@Cioraz Cioraz requested review from jarnura, ashokkjag and a team as code owners October 6, 2023 16:17
@srujanchikke
Copy link
Contributor

Hey @Cioraz ,

Could you please attach the issue that you're working on ?

| api_models::payments::BankRedirectData::OnlineBankingFpx { .. }
| api_models::payments::BankRedirectData::OnlineBankingThailand { .. } => {
Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into())
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here use this functionget_unimplemented_payment_method_error_message from utils

@srujanchikke srujanchikke added A-connector-integration Area: Connector integration S-waiting-on-author Status: This PR is incomplete or needs to address review comments C-refactor Category: Refactor labels Oct 7, 2023
@srujanchikke srujanchikke linked an issue Oct 7, 2023 that may be closed by this pull request
2 tasks
@srujanchikke srujanchikke added the hacktoberfest Issues that are up for grabs for Hacktoberfest participants label Oct 7, 2023
@Cioraz
Copy link
Contributor Author

Cioraz commented Oct 7, 2023

Got my error will send the final PR with no errors in sometime

Copy link
Contributor

@srujanchikke srujanchikke left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@srujanchikke srujanchikke added S-waiting-on-approval Status: Review completed, awaiting for approvals from code-owners and removed S-waiting-on-author Status: This PR is incomplete or needs to address review comments labels Oct 8, 2023
Copy link
Member

@SanchithHegde SanchithHegde left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Thanks for the PR, @Cioraz!

@SanchithHegde SanchithHegde added this pull request to the merge queue Oct 8, 2023
@SanchithHegde SanchithHegde added hacktoberfest-accepted Pull requests accepted as Hacktoberfest contributions and removed S-waiting-on-approval Status: Review completed, awaiting for approvals from code-owners labels Oct 8, 2023
Merged via the queue into juspay:main with commit 3f1e7c2 Oct 8, 2023
10 checks passed
@Cioraz Cioraz deleted the refactor_trustpay branch October 8, 2023 10:26
@swangi-kumari
Copy link
Contributor

Hey @Cioraz ,
Thanks a bunch for all your contributions! We've got a little something for you to show our appreciation.
Just take a moment to fill out this form, and get ready for some awesome swag coming your way.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration C-refactor Category: Refactor hacktoberfest Issues that are up for grabs for Hacktoberfest participants hacktoberfest-accepted Pull requests accepted as Hacktoberfest contributions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REFACTOR]: [Trustpay] Remove Default Case Handling
4 participants