refactor(connectors): refactor propagation of validation and not implemented errors (#419)

This commit is contained in:
Arjun Karthik
2023-01-20 12:07:01 +05:30
committed by GitHub
parent ef479e8186
commit c1de463cde
44 changed files with 534 additions and 295 deletions

View File

@ -402,7 +402,7 @@ impl From<errors::ApiErrorResponse> for StripeErrorCode {
errors::ApiErrorResponse::DuplicateMandate => Self::DuplicateMandate,
errors::ApiErrorResponse::SuccessfulPaymentNotFound => Self::SuccessfulPaymentNotFound,
errors::ApiErrorResponse::AddressNotFound => Self::AddressNotFound,
errors::ApiErrorResponse::NotImplemented => Self::Unauthorized,
errors::ApiErrorResponse::NotImplemented { .. } => Self::Unauthorized,
errors::ApiErrorResponse::PaymentUnexpectedState {
current_flow,
field_name,