Skip to content

Commit dc0f07a

Browse files
author
nobody
committed
JSON Schema Update
1 parent db6d700 commit dc0f07a

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

config/v3/new_partner_account/example.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
"address_line_2": "East Melbourne VIC",
66
"address_postcode": "3002",
77
"address_state": "Victoria",
8+
"calling_country_code": "61",
89
"currency": "USD",
910
"date_of_birth": "1980-01-31",
1011
"first_name": "Peter",
1112
"last_name": "Pan",
1213
"partner_type": "individual",
13-
"phone": "+10023456789",
14+
"phone": "10023456789",
1415
"provider": "myaffiliate",
1516
"residence": "au",
1617
"salutation": "Mr",

config/v3/new_partner_account/send.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@
5858
"pattern": "^[\\p{L}\\p{Nd}\\s'.,-]{0,100}$"
5959
},
6060
"calling_country_code": {
61-
"description": "[Optional] The phone's calling country code.",
61+
"description": "[Optional] The phone's calling country code. Don't include the `+` sign. Up to 4 digits.",
6262
"type": [
6363
"null",
6464
"string"
6565
],
66+
"pattern": "^\\d{1,4}$",
6667
"sensitive": 1
6768
},
6869
"citizen": {
@@ -146,9 +147,12 @@
146147
]
147148
},
148149
"phone": {
149-
"description": "[Optional] Starting with `+` followed by 8-35 digits, allowing hyphens or space.",
150-
"type": "string",
151-
"pattern": "^\\+((-|\\s)*[0-9]){8,35}$",
150+
"description": "[Optional] The phone's national format in 8-35 digits, don't include the `+` sign nor the calling country code.",
151+
"type": [
152+
"null",
153+
"string"
154+
],
155+
"pattern": "^(\\+)?([-\\s]*\\d){8,35}$",
152156
"sensitive": 1
153157
},
154158
"provider": {

config/v3/paymentagent_create/example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"payment_agent_name": "Joe Joy",
1010
"phone_numbers": [
1111
{
12-
"phone_number": "+923-22-23-13"
12+
"phone_number": "923222313"
1313
}
1414
],
1515
"supported_payment_methods": [

config/v3/paymentagent_create/send.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"phone_number": {
8181
"description": "A phone number",
8282
"type": "string",
83-
"pattern": "^\\+[\\-\\ 0-9]{8,40}$"
83+
"pattern": "^(\\+)?[\\-\\0-9]{8,40}$"
8484
}
8585
}
8686
}

0 commit comments

Comments
 (0)