mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(connector): add support for bank redirect for Paypal (#1107)
This commit is contained in:
@ -795,6 +795,18 @@ impl AddressDetailsData for api::AddressDetails {
|
||||
}
|
||||
}
|
||||
|
||||
pub trait BankRedirectBillingData {
|
||||
fn get_billing_name(&self) -> Result<Secret<String>, Error>;
|
||||
}
|
||||
|
||||
impl BankRedirectBillingData for payments::BankRedirectBilling {
|
||||
fn get_billing_name(&self) -> Result<Secret<String>, Error> {
|
||||
self.billing_name
|
||||
.clone()
|
||||
.ok_or_else(missing_field_err("billing_details.billing_name"))
|
||||
}
|
||||
}
|
||||
|
||||
pub trait MandateData {
|
||||
fn get_end_date(&self, format: date_time::DateFormat) -> Result<String, Error>;
|
||||
fn get_metadata(&self) -> Result<pii::SecretSerdeValue, Error>;
|
||||
|
||||
Reference in New Issue
Block a user