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(connector): [Ebanx] Add payout flows #4146

Merged
merged 40 commits into from
May 2, 2024
Merged

feat(connector): [Ebanx] Add payout flows #4146

merged 40 commits into from
May 2, 2024

Conversation

Sakilmostak
Copy link
Contributor

Type of Change

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

Description

Payout create, Payout commit and Payout Cancel flows are added to Ebanx

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?

It is a closed sandbox thus no method is available for testing

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

@Sakilmostak Sakilmostak added A-connector-integration Area: Connector integration C-feature Category: Feature request or enhancement labels Mar 20, 2024
@Sakilmostak Sakilmostak self-assigned this Mar 20, 2024
@Sakilmostak Sakilmostak requested review from a team as code owners March 20, 2024 07:45
@Sakilmostak Sakilmostak requested review from a team as code owners March 27, 2024 10:32
@Sakilmostak Sakilmostak removed request for a team March 27, 2024 10:50
srujanchikke
srujanchikke previously approved these changes Apr 26, 2024
crates/router/src/core/payment_methods/vault.rs Outdated Show resolved Hide resolved
crates/router/src/core/payment_methods/vault.rs Outdated Show resolved Hide resolved
crates/router/src/connector/ebanx/transformers.rs Outdated Show resolved Hide resolved
let customer_details = item.router_data.request.get_customer_details()?;

let document_type = pix_data.tax_id.clone().map(|tax_id| {
if tax_id.clone().expose().len() == 11 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the correct and robust way to deal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the tax id comes in a specific format of fixed length, thus, this should be able to handle every cases, you can refer to this article for more info

SamraatBansal
SamraatBansal previously approved these changes Apr 30, 2024
kashif-m
kashif-m previously approved these changes Apr 30, 2024
@@ -483,6 +483,8 @@ pub struct TokenizedBankSensitiveValues {
pub bic: Option<masking::Secret<String>>,
pub bank_sort_code: Option<masking::Secret<String>>,
pub iban: Option<masking::Secret<String>>,
pub pix_key: Option<masking::Secret<String>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's refactor this later.

srujanchikke
srujanchikke previously approved these changes Apr 30, 2024
@Sakilmostak Sakilmostak removed the request for review from a team April 30, 2024 10:29
Narayanbhat166
Narayanbhat166 previously approved these changes Apr 30, 2024
pub pix_key: Secret<String>,

/// Individual taxpayer identification number
#[schema(value_type = String, example = "000123456")]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#[schema(value_type = String, example = "000123456")]
#[schema(value_type = Option<String>, example = "000123456")]

@likhinbopanna likhinbopanna added this pull request to the merge queue May 2, 2024
Merged via the queue into main with commit 4f4cbdf May 2, 2024
10 of 12 checks passed
@likhinbopanna likhinbopanna deleted the ebanx_payout branch May 2, 2024 07:29
srujanchikke added a commit that referenced this pull request May 6, 2024
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-feature Category: Feature request or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants