Skip to content

Commit ede013e

Browse files
author
nobody
committed
JSON Schema Update
1 parent f19b40d commit ede013e

File tree

7 files changed

+45
-7
lines changed

7 files changed

+45
-7
lines changed

config/v3/get_settings/receive.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
1
5050
]
5151
},
52+
"calling_country_code": {
53+
"description": "The phone's calling country code.",
54+
"type": [
55+
"null",
56+
"string"
57+
],
58+
"sensitive": 1
59+
},
5260
"citizen": {
5361
"description": "Country of legal citizenship, 2-letter country code.",
5462
"type": "string"
@@ -185,7 +193,7 @@
185193
]
186194
},
187195
"phone": {
188-
"description": "Telephone (note: Only available for users who have at least one real account)",
196+
"description": "The phone's national format phone.",
189197
"type": [
190198
"null",
191199
"string"

config/v3/new_account_maltainvest/example.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"address_line_2": "East Melbourne VIC",
99
"address_postcode": "3002",
1010
"address_state": "berlin",
11+
"calling_country_code": "61",
1112
"cfd_experience": "Less than a year",
1213
"cfd_frequency": "1 - 5 transactions in the past 12 months",
1314
"cfd_trading_definition": "Speculate on the price movement.",
@@ -26,7 +27,7 @@
2627
"net_income": "$25,000 - $50,000",
2728
"non_pep_declaration": 1,
2829
"occupation": "Managers",
29-
"phone": "+6123456789",
30+
"phone": "23456789",
3031
"place_of_birth": "nl",
3132
"required_initial_margin": "When opening a Leveraged CFD trade.",
3233
"residence": "de",

config/v3/new_account_maltainvest/send.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@
8888
"type": "string",
8989
"pattern": "^[\\w-]{0,32}$"
9090
},
91+
"calling_country_code": {
92+
"description": "[Optional] The phone's calling country code. Don't include the `+` sign. Up to 4 digits.",
93+
"type": [
94+
"null",
95+
"string"
96+
],
97+
"pattern": "^\\d{1,4}$",
98+
"sensitive": 1
99+
},
91100
"cfd_experience": {
92101
"description": "How much experience do you have in CFD trading?",
93102
"type": "string",
@@ -284,7 +293,7 @@
284293
]
285294
},
286295
"phone": {
287-
"description": "[Optional] Starting with `+` followed by 9-35 digits, hyphens or space.",
296+
"description": "[Optional] The phone's national format, don't include the `+` sign nor the calling country code. Up to 15 digits are allowed.",
288297
"type": [
289298
"null",
290299
"string"

config/v3/new_account_real/example.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
"address_line_2": "East Melbourne VIC",
88
"address_postcode": "3002",
99
"address_state": "Victoria",
10+
"calling_country_code": "61",
1011
"date_of_birth": "1980-01-31",
1112
"fatca_declaration": 1,
1213
"first_name": "Peter",
1314
"last_name": "Pan",
1415
"non_pep_declaration": 1,
15-
"phone": "+6123456789",
16+
"phone": "23456789",
1617
"place_of_birth": "id",
1718
"residence": "au",
1819
"salutation": "Mr",

config/v3/new_account_real/send.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@
7272
"type": "string",
7373
"pattern": "^[\\w-]{0,32}$"
7474
},
75+
"calling_country_code": {
76+
"description": "[Optional] The phone's calling country code. Don't include the `+` sign. Up to 4 digits.",
77+
"type": [
78+
"null",
79+
"string"
80+
],
81+
"pattern": "^\\d{1,4}$",
82+
"sensitive": 1
83+
},
7584
"citizen": {
7685
"description": "[Optional] Country of legal citizenship, 2-letter country code.",
7786
"type": [
@@ -137,7 +146,7 @@
137146
"minimum": 0
138147
},
139148
"phone": {
140-
"description": "[Optional] Starting with `+` followed by 9-35 digits, hyphens or space.",
149+
"description": "[Optional] The phone's national format, don't include the `+` sign nor the calling country code. Up to 15 digits are allowed.",
141150
"type": [
142151
"null",
143152
"string"

config/v3/set_settings/example.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"address_line_2": "Test Address Line 2",
77
"address_postcode": "123456",
88
"allow_copiers": 1,
9+
"calling_country_code": "154",
910
"email_consent": 0,
1011
"employment_status": "Employed",
11-
"phone": "+15417543010",
12+
"phone": "17543010",
1213
"place_of_birth": "ar",
1314
"preferred_language": "EN",
1415
"request_professional_status": 1,

config/v3/set_settings/send.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,15 @@
6767
1
6868
]
6969
},
70+
"calling_country_code": {
71+
"description": "[Optional] The phone's calling country code. Don't include the `+` sign. Up to 4 digits.",
72+
"type": [
73+
"null",
74+
"string"
75+
],
76+
"pattern": "^\\d{1,4}$",
77+
"sensitive": 1
78+
},
7079
"citizen": {
7180
"description": "[Optional] Country of legal citizenship, 2-letter country code.",
7281
"type": [
@@ -142,7 +151,7 @@
142151
]
143152
},
144153
"phone": {
145-
"description": "[Optional] Note: not applicable for virtual account. Starting with `+` followed by 9-35 digits, hyphens or space.",
154+
"description": "[Optional] The phone's national format, don't include the `+` sign nor the calling country code. Up to 15 digits are allowed.",
146155
"type": [
147156
"null",
148157
"string"

0 commit comments

Comments
 (0)