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

Commit

Permalink
JSON Schema Update
Browse files Browse the repository at this point in the history
  • Loading branch information
nobody committed Apr 2, 2024
1 parent a4ac6b8 commit f62ba04
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 61 deletions.
10 changes: 1 addition & 9 deletions config/v3/p2p_advert_create/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,15 +293,7 @@
},
"order_expiry_period": {
"description": "Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"type": "integer"
},
"payment_info": {
"description": "Payment instructions. Only applicable for 'sell adverts'.",
Expand Down
9 changes: 1 addition & 8 deletions config/v3/p2p_advert_create/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,7 @@
"order_expiry_period": {
"description": "[Optional] Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"minimum": 1
},
"payment_info": {
"description": "[Optional] Payment instructions.",
Expand Down
10 changes: 1 addition & 9 deletions config/v3/p2p_advert_info/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,7 @@
},
"order_expiry_period": {
"description": "Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"type": "integer"
},
"payment_info": {
"description": "Payment instructions. Only applicable for 'sell adverts'.",
Expand Down
10 changes: 1 addition & 9 deletions config/v3/p2p_advert_list/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,7 @@
},
"order_expiry_period": {
"description": "Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"type": "integer"
},
"payment_info": {
"description": "Payment instructions. Only applicable for 'sell adverts'.",
Expand Down
10 changes: 1 addition & 9 deletions config/v3/p2p_advert_update/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,7 @@
},
"order_expiry_period": {
"description": "Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"type": "integer"
},
"payment_info": {
"description": "Payment instructions. Only applicable for 'sell adverts'.",
Expand Down
9 changes: 1 addition & 8 deletions config/v3/p2p_advert_update/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,7 @@
"order_expiry_period": {
"description": "[Optional] Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"minimum": 1
},
"payment_info": {
"description": "[Optional] Payment instructions.",
Expand Down
10 changes: 1 addition & 9 deletions config/v3/p2p_advertiser_adverts/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,15 +309,7 @@
},
"order_expiry_period": {
"description": "Expiry period (seconds) for order created against this ad.",
"type": "integer",
"enum": [
900,
1800,
2700,
3600,
5400,
7200
]
"type": "integer"
},
"payment_info": {
"description": "Payment instructions. Only applicable for 'sell adverts'.",
Expand Down
9 changes: 9 additions & 0 deletions config/v3/p2p_settings/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"maximum_advert_amount",
"maximum_order_amount",
"order_daily_limit",
"order_expiry_options",
"order_payment_period",
"payment_methods_enabled",
"review_period",
Expand Down Expand Up @@ -209,6 +210,14 @@
"description": "Maximum number of orders a user may create per day.",
"type": "integer"
},
"order_expiry_options": {
"description": "List of order expiry values available for adverts, in seconds.",
"type": "array",
"items": {
"type": "integer"
},
"uniqueItems": true
},
"order_payment_period": {
"description": "Time allowed for order payment, in minutes after order creation.",
"type": "integer"
Expand Down

0 comments on commit f62ba04

Please sign in to comment.