mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(wallet): use billing.phone instead of telephone_number (#4329)
This commit is contained in:
@ -2235,7 +2235,7 @@ impl GetAddressFromPaymentMethodData for WalletData {
|
||||
let phone = PhoneDetails {
|
||||
// Portuguese country code, this payment method is applicable only in portugal
|
||||
country_code: Some("+351".into()),
|
||||
number: Some(mb_way_redirect.telephone_number.clone()),
|
||||
number: mb_way_redirect.telephone_number.clone(),
|
||||
};
|
||||
|
||||
Some(Address {
|
||||
@ -2360,7 +2360,7 @@ pub struct MobilePayRedirection {}
|
||||
pub struct MbWayRedirection {
|
||||
/// Telephone number of the shopper. Should be Portuguese phone number.
|
||||
#[schema(value_type = String)]
|
||||
pub telephone_number: Secret<String>,
|
||||
pub telephone_number: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user