Skip to content

Commit

Permalink
JSON Schema Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Workflow committed Jul 17, 2024
1 parent fc75f28 commit 99cfbb0
Show file tree
Hide file tree
Showing 13 changed files with 323 additions and 5 deletions.
12 changes: 11 additions & 1 deletion config/v3/p2p_advert_create/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"completed_orders_count",
"id",
"is_online",
"is_schedule_available",
"last_online_time",
"name",
"rating_average",
Expand Down Expand Up @@ -101,6 +102,14 @@
1
]
},
"is_schedule_available": {
"description": "Inidcates whether the advertiser's schedule has availability between now and now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"last_name": {
"description": "The advertiser's last name.",
"type": "string",
Expand Down Expand Up @@ -470,7 +479,7 @@
]
},
"visibility_status": {
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country. \n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country.\n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_schedule`: the advertiser's schedule does not have availability between now and now + order_expiry_period. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"type": "array",
"items": {
"type": "string",
Expand All @@ -487,6 +496,7 @@
"advertiser_balance",
"advertiser_block_trade_ineligible",
"advertiser_daily_limit",
"advertiser_schedule",
"advertiser_temp_ban"
]
}
Expand Down
20 changes: 19 additions & 1 deletion config/v3/p2p_advert_info/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"completed_orders_count",
"id",
"is_online",
"is_schedule_available",
"last_online_time",
"name",
"rating_average",
Expand Down Expand Up @@ -93,6 +94,14 @@
1
]
},
"is_schedule_available": {
"description": "Inidcates whether the advertiser's schedule has availability between now and now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"last_name": {
"description": "The advertiser's last name.",
"type": "string",
Expand Down Expand Up @@ -246,6 +255,14 @@
1
]
},
"is_client_schedule_available": {
"description": "Inidcates whether the current user's schedule has availability from now until now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"is_eligible": {
"description": "Indicates that the current user meets the counterparty terms for placing orders against this advert.",
"type": "integer",
Expand Down Expand Up @@ -495,7 +512,7 @@
]
},
"visibility_status": {
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country. \n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country.\n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_schedule`: the advertiser's schedule does not have availability between now and now + order_expiry_period. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"type": "array",
"items": {
"type": "string",
Expand All @@ -512,6 +529,7 @@
"advertiser_balance",
"advertiser_block_trade_ineligible",
"advertiser_daily_limit",
"advertiser_schedule",
"advertiser_temp_ban"
]
}
Expand Down
20 changes: 19 additions & 1 deletion config/v3/p2p_advert_list/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"completed_orders_count",
"id",
"is_online",
"is_schedule_available",
"last_online_time",
"name",
"rating_average",
Expand Down Expand Up @@ -129,6 +130,14 @@
1
]
},
"is_schedule_available": {
"description": "Inidcates whether the advertiser's schedule has availability between now and now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"last_name": {
"description": "The advertiser's last name.",
"type": "string",
Expand Down Expand Up @@ -275,6 +284,14 @@
1
]
},
"is_client_schedule_available": {
"description": "Inidcates whether the current user's schedule has availability between now and now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"is_eligible": {
"description": "Indicates that the current user meets the counterparty terms for placing an order.",
"type": "integer",
Expand Down Expand Up @@ -416,7 +433,7 @@
]
},
"visibility_status": {
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country. \n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country.\n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_schedule`: the advertiser's schedule does not have availability between now and now + order_expiry_period. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"type": "array",
"items": {
"type": "string",
Expand All @@ -433,6 +450,7 @@
"advertiser_balance",
"advertiser_block_trade_ineligible",
"advertiser_daily_limit",
"advertiser_schedule",
"advertiser_temp_ban"
]
}
Expand Down
9 changes: 9 additions & 0 deletions config/v3/p2p_advert_list/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
1
]
},
"hide_client_schedule_unavailable": {
"description": "[Optional] If set to 1, adverts for which the current user's shcedule does not have availability from now until the full possible order expiry are not returned.",
"type": "integer",
"default": 0,
"enum": [
0,
1
]
},
"hide_ineligible": {
"description": "[Optional] If set to 1, adverts for which the current user does not meet counteryparty terms are not returned.",
"type": "integer",
Expand Down
12 changes: 11 additions & 1 deletion config/v3/p2p_advert_update/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"completed_orders_count",
"id",
"is_online",
"is_schedule_available",
"last_online_time",
"name",
"rating_average",
Expand Down Expand Up @@ -68,6 +69,14 @@
1
]
},
"is_schedule_available": {
"description": "Inidcates whether the advertiser's schedule has availability between now and now + order_expiry_period.",
"type": "integer",
"enum": [
0,
1
]
},
"last_name": {
"description": "The advertiser's last name.",
"type": "string",
Expand Down Expand Up @@ -448,7 +457,7 @@
]
},
"visibility_status": {
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country. \n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"description": "Reasons why an advert is not visible. Possible values: \n- `advert_fixed_rate_disabled`: fixed rate adverts are no longer available in the advert's country.\n- `advert_float_rate_disabled`: floating rate adverts are no longer available in the advert's country. \n- `advert_inactive`: the advert is set inactive. \n- `advert_max_limit`: the minimum order amount exceeds the system maximum order. \n- `advert_min_limit`: the maximum order amount is too small to be shown on the advert list. \n- `advert_remaining`: the remaining amount of the advert is below the minimum order. \n- `advert_no_payment_methods`: the advert has no valid payment methods. \n- `advertiser_ads_paused`: the advertiser has paused all adverts. \n- `advertiser_approval`: the advertiser's proof of identity is not verified. \n- `advertiser_balance`: the advertiser's P2P balance is less than the minimum order. \n- `advertiser_schedule`: the advertiser's schedule does not have availability between now and now + order_expiry_period. \n- `advertiser_block_trade_ineligible`: the advertiser is not currently eligible for block trading. \n- `advertiser_daily_limit`: the advertiser's remaining daily limit is less than the minimum order. \n- `advertiser_temp_ban`: the advertiser is temporarily banned from P2P.",
"type": "array",
"items": {
"type": "string",
Expand All @@ -465,6 +474,7 @@
"advertiser_balance",
"advertiser_block_trade_ineligible",
"advertiser_daily_limit",
"advertiser_schedule",
"advertiser_temp_ban"
]
}
Expand Down
Loading

0 comments on commit 99cfbb0

Please sign in to comment.