Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit 7bcb365

Browse files
author
nobody
committed
JSON Schema Update
1 parent 987c9fb commit 7bcb365

File tree

6 files changed

+139
-4
lines changed

6 files changed

+139
-4
lines changed

config/v3/p2p_advert_create/receive.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,9 @@
264264
"fields",
265265
"is_enabled",
266266
"method",
267-
"type"
267+
"type",
268+
"used_by_adverts",
269+
"used_by_orders"
268270
],
269271
"properties": {
270272
"display_name": {
@@ -332,6 +334,26 @@
332334
"ewallet",
333335
"other"
334336
]
337+
},
338+
"used_by_adverts": {
339+
"description": "IDs of adverts that use this payment method.",
340+
"type": [
341+
"array",
342+
"null"
343+
],
344+
"items": {
345+
"type": "string"
346+
}
347+
},
348+
"used_by_orders": {
349+
"description": "IDs of orders that use this payment method.",
350+
"type": [
351+
"array",
352+
"null"
353+
],
354+
"items": {
355+
"type": "string"
356+
}
335357
}
336358
}
337359
}

config/v3/p2p_advert_info/receive.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@
269269
"fields",
270270
"is_enabled",
271271
"method",
272-
"type"
272+
"type",
273+
"used_by_adverts",
274+
"used_by_orders"
273275
],
274276
"properties": {
275277
"display_name": {
@@ -337,6 +339,26 @@
337339
"ewallet",
338340
"other"
339341
]
342+
},
343+
"used_by_adverts": {
344+
"description": "IDs of adverts that use this payment method.",
345+
"type": [
346+
"array",
347+
"null"
348+
],
349+
"items": {
350+
"type": "string"
351+
}
352+
},
353+
"used_by_orders": {
354+
"description": "IDs of orders that use this payment method.",
355+
"type": [
356+
"array",
357+
"null"
358+
],
359+
"items": {
360+
"type": "string"
361+
}
340362
}
341363
}
342364
}

config/v3/p2p_advert_update/receive.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@
244244
"fields",
245245
"is_enabled",
246246
"method",
247-
"type"
247+
"type",
248+
"used_by_adverts",
249+
"used_by_orders"
248250
],
249251
"properties": {
250252
"display_name": {
@@ -312,6 +314,26 @@
312314
"ewallet",
313315
"other"
314316
]
317+
},
318+
"used_by_adverts": {
319+
"description": "IDs of adverts that use this payment method.",
320+
"type": [
321+
"array",
322+
"null"
323+
],
324+
"items": {
325+
"type": "string"
326+
}
327+
},
328+
"used_by_orders": {
329+
"description": "IDs of orders that use this payment method.",
330+
"type": [
331+
"array",
332+
"null"
333+
],
334+
"items": {
335+
"type": "string"
336+
}
315337
}
316338
}
317339
}

config/v3/p2p_advertiser_payment_methods/receive.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"fields",
2222
"is_enabled",
2323
"method",
24-
"type"
24+
"type",
25+
"used_by_adverts",
26+
"used_by_orders"
2527
],
2628
"properties": {
2729
"display_name": {
@@ -89,6 +91,26 @@
8991
"ewallet",
9092
"other"
9193
]
94+
},
95+
"used_by_adverts": {
96+
"description": "IDs of adverts that use this payment method.",
97+
"type": [
98+
"array",
99+
"null"
100+
],
101+
"items": {
102+
"type": "string"
103+
}
104+
},
105+
"used_by_orders": {
106+
"description": "IDs of orders that use this payment method.",
107+
"type": [
108+
"array",
109+
"null"
110+
],
111+
"items": {
112+
"type": "string"
113+
}
92114
}
93115
}
94116
}

config/v3/p2p_order_create/receive.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,26 @@
329329
"ewallet",
330330
"other"
331331
]
332+
},
333+
"used_by_adverts": {
334+
"description": "IDs of adverts that use this payment method.",
335+
"type": [
336+
"array",
337+
"null"
338+
],
339+
"items": {
340+
"type": "string"
341+
}
342+
},
343+
"used_by_orders": {
344+
"description": "IDs of orders that use this payment method.",
345+
"type": [
346+
"array",
347+
"null"
348+
],
349+
"items": {
350+
"type": "string"
351+
}
332352
}
333353
}
334354
}

config/v3/p2p_order_info/receive.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,38 @@
356356
"ewallet",
357357
"other"
358358
]
359+
},
360+
"used_by_adverts": {
361+
"description": "IDs of adverts that use this payment method.",
362+
"type": [
363+
"array",
364+
"null"
365+
],
366+
"items": {
367+
"type": "string"
368+
}
369+
},
370+
"used_by_orders": {
371+
"description": "IDs of orders that use this payment method.",
372+
"type": [
373+
"array",
374+
"null"
375+
],
376+
"items": {
377+
"type": "string"
378+
}
359379
}
360380
}
361381
}
362382
}
363383
},
384+
"payment_method_names": {
385+
"description": "Names of supported payment methods.",
386+
"type": "array",
387+
"items": {
388+
"type": "string"
389+
}
390+
},
364391
"price": {
365392
"description": "Cost in local currency.",
366393
"type": "number"

0 commit comments

Comments
 (0)