refactor(payment_methods): add BankDebit payment method data to new domain type to be used in connector module (#4238)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
This commit is contained in:
Swangi Kumari
2024-04-10 20:01:24 +05:30
committed by GitHub
parent 44e7456a10
commit 2bf775a97e
14 changed files with 297 additions and 367 deletions

View File

@ -702,7 +702,7 @@ pub async fn retrieve_payment_method_from_auth_service(
let mut bank_type = None;
if let Some(account_type) = bank_account.account_type.clone() {
bank_type = api_models::enums::BankType::from_str(account_type.as_str())
bank_type = common_enums::BankType::from_str(account_type.as_str())
.map_err(|error| logger::error!(%error,"unable to parse account_type {account_type:?}"))
.ok();
}