Skip to content

Commit

Permalink
refactor(connector): [Dlocal] remove default case handling (#2624)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikiranpatil authored Oct 19, 2023
1 parent b7d5573 commit 1584313
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion crates/router/src/connector/dlocal/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,20 @@ impl TryFrom<&DlocalRouterData<&types::PaymentsAuthorizeRouterData>> for DlocalP
};
Ok(payment_request)
}
_ => Err(errors::ConnectorError::NotImplemented("Payment Method".to_string()).into()),
api::PaymentMethodData::CardRedirect(_)
| api::PaymentMethodData::Wallet(_)
| api::PaymentMethodData::PayLater(_)
| api::PaymentMethodData::BankRedirect(_)
| api::PaymentMethodData::BankDebit(_)
| api::PaymentMethodData::BankTransfer(_)
| api::PaymentMethodData::Crypto(_)
| api::PaymentMethodData::MandatePayment
| api::PaymentMethodData::Reward
| api::PaymentMethodData::Upi(_)
| api::PaymentMethodData::Voucher(_)
| api::PaymentMethodData::GiftCard(_) => Err(errors::ConnectorError::NotImplemented(
crate::connector::utils::get_unimplemented_payment_method_error_message("Dlocal"),
))?,
}
}
}
Expand Down

0 comments on commit 1584313

Please sign in to comment.