chore: use generic phone numbers instead (#5142)

This commit is contained in:
Pa1NarK
2024-06-27 23:35:56 +05:30
committed by GitHub
parent d4dba55fed
commit 57055ecab2
144 changed files with 420 additions and 420 deletions

View File

@ -22,7 +22,7 @@ pub struct CustomerRequest {
#[schema(value_type = Option<String>, max_length = 255, example = "JonTest@test.com")]
pub email: Option<pii::Email>,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 255, example = "9999999999")]
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789")]
pub phone: Option<Secret<String>>,
/// An arbitrary string that you can attach to a customer object.
#[schema(max_length = 255, example = "First Customer")]
@ -52,7 +52,7 @@ pub struct CustomerResponse {
#[schema(value_type = Option<String>,max_length = 255, example = "JonTest@test.com")]
pub email: crypto::OptionalEncryptableEmail,
/// The customer's phone number
#[schema(value_type = Option<String>,max_length = 255, example = "9999999999")]
#[schema(value_type = Option<String>,max_length = 255, example = "9123456789")]
pub phone: crypto::OptionalEncryptablePhone,
/// The country code for the customer phone number
#[schema(max_length = 255, example = "+65")]

View File

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

View File

@ -81,7 +81,7 @@ pub struct PayoutCreateRequest {
"first_name": "John",
"last_name": "Doe"
},
"phone": { "number": "8056594427", "country_code": "+1" }
"phone": { "number": "9123456789", "country_code": "+1" }
}"#))]
pub billing: Option<payments::Address>,
@ -102,7 +102,7 @@ pub struct PayoutCreateRequest {
pub name: Option<Secret<String>>,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 255, example = "3141592653")]
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789")]
pub phone: Option<Secret<String>>,
/// The country code for the customer phone number
@ -393,7 +393,7 @@ pub struct PayoutCreateResponse {
"first_name": "John",
"last_name": "Doe"
},
"phone": { "number": "8056594427", "country_code": "+1" }
"phone": { "number": "9123456789", "country_code": "+1" }
}"#))]
pub billing: Option<payments::Address>,
@ -414,7 +414,7 @@ pub struct PayoutCreateResponse {
pub name: crypto::OptionalEncryptableName,
/// The customer's phone number
#[schema(value_type = Option<String>, max_length = 255, example = "3141592653")]
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789")]
pub phone: crypto::OptionalEncryptablePhone,
/// The country code for the customer phone number