-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use generic phone numbers instead (#5142)
- Loading branch information
1 parent
d4dba55
commit 57055ec
Showing
144 changed files
with
420 additions
and
420 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ | |
}, | ||
"phone": { | ||
"country_code": "+91", | ||
"number": "8056594427" | ||
"number": "9123456789" | ||
} | ||
}, | ||
"currency": "USD", | ||
|
@@ -107,7 +107,7 @@ | |
"email": "[email protected]", | ||
"id": "cus_abcdefgh", | ||
"name": "John Dough", | ||
"phone": "9999999999" | ||
"phone": "9123456789" | ||
}, | ||
"description": "Its my first payment request", | ||
"metadata": { | ||
|
@@ -254,7 +254,7 @@ | |
}, | ||
"phone": { | ||
"country_code": "+91", | ||
"number": "8056594427" | ||
"number": "9123456789" | ||
} | ||
} | ||
} | ||
|
@@ -8481,7 +8481,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 10 | ||
}, | ||
|
@@ -8524,7 +8524,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 10 | ||
}, | ||
|
@@ -8733,7 +8733,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "9999999999", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -8797,7 +8797,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "9999999999", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -10686,7 +10686,7 @@ | |
"phone_number": { | ||
"type": "string", | ||
"description": "The telephone number for Japanese convenience stores", | ||
"example": "9999999999", | ||
"example": "9123456789", | ||
"nullable": true | ||
} | ||
} | ||
|
@@ -15647,7 +15647,7 @@ | |
"type": "string", | ||
"description": "The customer's phone number\nThis field will be deprecated soon, use the customer object instead", | ||
"deprecated": true, | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -16184,7 +16184,7 @@ | |
"type": "string", | ||
"description": "The customer's phone number\nThis field will be deprecated soon. Please refer to `customer.phone` object", | ||
"deprecated": true, | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -17222,7 +17222,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -17401,7 +17401,7 @@ | |
"phone": { | ||
"type": "string", | ||
"description": "The customer's phone number", | ||
"example": "3141592653", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
|
@@ -17929,7 +17929,7 @@ | |
"number": { | ||
"type": "string", | ||
"description": "The contact number", | ||
"example": "9999999999", | ||
"example": "9123456789", | ||
"nullable": true | ||
}, | ||
"country_code": { | ||
|
@@ -19312,7 +19312,7 @@ | |
}, | ||
"bic": { | ||
"type": "string", | ||
"example": "1024419982" | ||
"example": "9123456789" | ||
}, | ||
"country": { | ||
"type": "string" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ pub struct CustomerRequest { | |
#[schema(value_type = Option<String>, max_length = 255, example = "[email protected]")] | ||
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 = "[email protected]")] | ||
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")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = "[email protected]")] | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ | |
"customer": { | ||
"id": "cus_abcdefgh", | ||
"name": "John Dough", | ||
"phone": "9999999999", | ||
"phone": "9123456789", | ||
"email": "[email protected]" | ||
}, | ||
"description": "Its my first payment request", | ||
|
@@ -181,7 +181,7 @@ | |
"last_name": "Doe" | ||
}, | ||
"phone": { | ||
"number": "8056594427", | ||
"number": "9123456789", | ||
"country_code": "+91" | ||
} | ||
} | ||
|
@@ -257,7 +257,7 @@ pub fn payments_retrieve() {} | |
"last_name": "Doe" | ||
}, | ||
"phone": { | ||
"number": "8056594427", | ||
"number": "9123456789", | ||
"country_code": "+91" | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.