refactor(wallet): use billing.phone instead of telephone_number (#4329)

This commit is contained in:
Swangi Kumari
2024-04-22 14:46:33 +05:30
committed by GitHub
parent 9bf16b1a07
commit 3e6bc191fd
7 changed files with 52 additions and 28 deletions

View File

@ -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)]