Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit f62ba04

Browse files
author
nobody
committed
JSON Schema Update
1 parent a4ac6b8 commit f62ba04

File tree

8 files changed

+16
-61
lines changed

8 files changed

+16
-61
lines changed

config/v3/p2p_advert_create/receive.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,7 @@
293293
},
294294
"order_expiry_period": {
295295
"description": "Expiry period (seconds) for order created against this ad.",
296-
"type": "integer",
297-
"enum": [
298-
900,
299-
1800,
300-
2700,
301-
3600,
302-
5400,
303-
7200
304-
]
296+
"type": "integer"
305297
},
306298
"payment_info": {
307299
"description": "Payment instructions. Only applicable for 'sell adverts'.",

config/v3/p2p_advert_create/send.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,7 @@
102102
"order_expiry_period": {
103103
"description": "[Optional] Expiry period (seconds) for order created against this ad.",
104104
"type": "integer",
105-
"enum": [
106-
900,
107-
1800,
108-
2700,
109-
3600,
110-
5400,
111-
7200
112-
]
105+
"minimum": 1
113106
},
114107
"payment_info": {
115108
"description": "[Optional] Payment instructions.",

config/v3/p2p_advert_info/receive.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -318,15 +318,7 @@
318318
},
319319
"order_expiry_period": {
320320
"description": "Expiry period (seconds) for order created against this ad.",
321-
"type": "integer",
322-
"enum": [
323-
900,
324-
1800,
325-
2700,
326-
3600,
327-
5400,
328-
7200
329-
]
321+
"type": "integer"
330322
},
331323
"payment_info": {
332324
"description": "Payment instructions. Only applicable for 'sell adverts'.",

config/v3/p2p_advert_list/receive.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -347,15 +347,7 @@
347347
},
348348
"order_expiry_period": {
349349
"description": "Expiry period (seconds) for order created against this ad.",
350-
"type": "integer",
351-
"enum": [
352-
900,
353-
1800,
354-
2700,
355-
3600,
356-
5400,
357-
7200
358-
]
350+
"type": "integer"
359351
},
360352
"payment_info": {
361353
"description": "Payment instructions. Only applicable for 'sell adverts'.",

config/v3/p2p_advert_update/receive.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,7 @@
271271
},
272272
"order_expiry_period": {
273273
"description": "Expiry period (seconds) for order created against this ad.",
274-
"type": "integer",
275-
"enum": [
276-
900,
277-
1800,
278-
2700,
279-
3600,
280-
5400,
281-
7200
282-
]
274+
"type": "integer"
283275
},
284276
"payment_info": {
285277
"description": "Payment instructions. Only applicable for 'sell adverts'.",

config/v3/p2p_advert_update/send.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,7 @@
116116
"order_expiry_period": {
117117
"description": "[Optional] Expiry period (seconds) for order created against this ad.",
118118
"type": "integer",
119-
"enum": [
120-
900,
121-
1800,
122-
2700,
123-
3600,
124-
5400,
125-
7200
126-
]
119+
"minimum": 1
127120
},
128121
"payment_info": {
129122
"description": "[Optional] Payment instructions.",

config/v3/p2p_advertiser_adverts/receive.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -309,15 +309,7 @@
309309
},
310310
"order_expiry_period": {
311311
"description": "Expiry period (seconds) for order created against this ad.",
312-
"type": "integer",
313-
"enum": [
314-
900,
315-
1800,
316-
2700,
317-
3600,
318-
5400,
319-
7200
320-
]
312+
"type": "integer"
321313
},
322314
"payment_info": {
323315
"description": "Payment instructions. Only applicable for 'sell adverts'.",

config/v3/p2p_settings/receive.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"maximum_advert_amount",
3131
"maximum_order_amount",
3232
"order_daily_limit",
33+
"order_expiry_options",
3334
"order_payment_period",
3435
"payment_methods_enabled",
3536
"review_period",
@@ -209,6 +210,14 @@
209210
"description": "Maximum number of orders a user may create per day.",
210211
"type": "integer"
211212
},
213+
"order_expiry_options": {
214+
"description": "List of order expiry values available for adverts, in seconds.",
215+
"type": "array",
216+
"items": {
217+
"type": "integer"
218+
},
219+
"uniqueItems": true
220+
},
212221
"order_payment_period": {
213222
"description": "Time allowed for order payment, in minutes after order creation.",
214223
"type": "integer"

0 commit comments

Comments
 (0)