-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@@ -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>>, |
There was a problem hiding this comment.
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.
crates/api_models/src/payouts.rs
Outdated
pub pix_key: Secret<String>, | ||
|
||
/// Individual taxpayer identification number | ||
#[schema(value_type = String, example = "000123456")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[schema(value_type = String, example = "000123456")] | |
#[schema(value_type = Option<String>, example = "000123456")] |
954498e
This reverts commit 4f4cbdf.
Type of Change
Description
Payout create, Payout commit and Payout Cancel flows are added to Ebanx
Additional Changes
Motivation and Context
How did you test it?
It is a closed sandbox thus no method is available for testing
Checklist
cargo +nightly fmt --all
cargo clippy