mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat: Api contract for gift cards (#1634)
This commit is contained in:
committed by
GitHub
parent
03e8ded146
commit
836962677b
@ -1279,6 +1279,7 @@ pub async fn make_pm_data<'a, F: Clone, R>(
|
||||
(pm @ Some(api::PaymentMethodData::BankDebit(_)), _) => Ok(pm.to_owned()),
|
||||
(pm @ Some(api::PaymentMethodData::Upi(_)), _) => Ok(pm.to_owned()),
|
||||
(pm @ Some(api::PaymentMethodData::Reward(_)), _) => Ok(pm.to_owned()),
|
||||
(pm @ Some(api::PaymentMethodData::GiftCard(_)), _) => Ok(pm.to_owned()),
|
||||
(pm_opt @ Some(pm @ api::PaymentMethodData::BankTransfer(_)), _) => {
|
||||
let token = vault::Vault::store_payment_method_data_in_locker(
|
||||
state,
|
||||
@ -2613,6 +2614,9 @@ pub async fn get_additional_payment_data(
|
||||
api_models::payments::PaymentMethodData::Upi(_) => {
|
||||
api_models::payments::AdditionalPaymentData::Upi {}
|
||||
}
|
||||
api_models::payments::PaymentMethodData::GiftCard(_) => {
|
||||
api_models::payments::AdditionalPaymentData::GiftCard {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user