mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
chore: use generic phone numbers instead (#5142)
This commit is contained in:
@ -194,7 +194,7 @@ pub struct CustomerDetails {
|
||||
pub email: Option<Email>,
|
||||
|
||||
/// The customer's phone number
|
||||
#[schema(value_type = Option<String>, max_length = 10, example = "3141592653")]
|
||||
#[schema(value_type = Option<String>, max_length = 10, example = "9123456789")]
|
||||
pub phone: Option<Secret<String>>,
|
||||
|
||||
/// The country code for the customer's phone number
|
||||
@ -217,7 +217,7 @@ pub struct CustomerDetailsResponse {
|
||||
pub email: Option<Email>,
|
||||
|
||||
/// The customer's phone number
|
||||
#[schema(value_type = Option<String>, max_length = 10, example = "3141592653")]
|
||||
#[schema(value_type = Option<String>, max_length = 10, example = "9123456789")]
|
||||
pub phone: Option<Secret<String>>,
|
||||
|
||||
/// The country code for the customer's phone number
|
||||
@ -321,7 +321,7 @@ pub struct PaymentsRequest {
|
||||
|
||||
/// The customer's phone number
|
||||
/// This field will be deprecated soon, use the customer object instead
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "3141592653", deprecated)]
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789", deprecated)]
|
||||
#[remove_in(PaymentsUpdateRequest, PaymentsCreateRequest, PaymentsConfirmRequest)]
|
||||
pub phone: Option<Secret<String>>,
|
||||
|
||||
@ -2136,7 +2136,7 @@ pub struct JCSVoucherData {
|
||||
#[schema(value_type = Option<String>, example = "example@me.com")]
|
||||
pub email: Option<Email>,
|
||||
/// The telephone number for Japanese convenience stores
|
||||
#[schema(value_type = Option<String>, example = "9999999999")]
|
||||
#[schema(value_type = Option<String>, example = "9123456789")]
|
||||
pub phone_number: Option<String>,
|
||||
}
|
||||
|
||||
@ -3013,7 +3013,7 @@ impl AddressDetails {
|
||||
#[derive(Debug, Clone, Default, Eq, PartialEq, ToSchema, serde::Deserialize, serde::Serialize)]
|
||||
pub struct PhoneDetails {
|
||||
/// The contact number
|
||||
#[schema(value_type = Option<String>, example = "9999999999")]
|
||||
#[schema(value_type = Option<String>, example = "9123456789")]
|
||||
pub number: Option<Secret<String>>,
|
||||
/// The country code attached to the number
|
||||
#[schema(example = "+1")]
|
||||
@ -3234,7 +3234,7 @@ pub enum BankTransferInstructions {
|
||||
pub struct SepaBankTransferInstructions {
|
||||
#[schema(value_type = String, example = "Jane Doe")]
|
||||
pub account_holder_name: Secret<String>,
|
||||
#[schema(value_type = String, example = "1024419982")]
|
||||
#[schema(value_type = String, example = "9123456789")]
|
||||
pub bic: Secret<String>,
|
||||
pub country: String,
|
||||
#[schema(value_type = String, example = "123456789")]
|
||||
@ -3447,7 +3447,7 @@ pub struct PaymentsResponse {
|
||||
|
||||
/// The customer's phone number
|
||||
/// This field will be deprecated soon. Please refer to `customer.phone` object
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "3141592653", deprecated)]
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789", deprecated)]
|
||||
pub phone: crypto::OptionalEncryptablePhone,
|
||||
|
||||
/// The URL to redirect after the completion of the operation
|
||||
|
||||
Reference in New Issue
Block a user