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

Commit f102b6b

Browse files
author
nobody
committed
JSON Schema Update
1 parent eeaa6c5 commit f102b6b

File tree

1 file changed

+32
-11
lines changed

1 file changed

+32
-11
lines changed

config/v3/paymentagent_details/receive.json

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,24 @@
1616
"description": "The payment agent details.",
1717
"type": "object",
1818
"additionalProperties": false,
19+
"required": [
20+
"can_apply"
21+
],
1922
"properties": {
2023
"affiliate_id": {
2124
"description": "Client's My Affiliate id, if exists.",
22-
"type": "string"
25+
"type": [
26+
"null",
27+
"string"
28+
]
29+
},
30+
"can_apply": {
31+
"description": "If 1, the client may apply using paymentagent_create.",
32+
"type": "integer",
33+
"enum": [
34+
0,
35+
1
36+
]
2337
},
2438
"code_of_conduct_approval": {
2539
"description": "Indicates client's agreement with the Code of Conduct document.",
@@ -41,6 +55,13 @@
4155
"description": "Currency supported by the payment agent. It's usually the same as agent's Deriv account currency.",
4256
"type": "string"
4357
},
58+
"eligibilty_validation": {
59+
"description": "Contains a list of error codes that would prevent a successful payment agent application.",
60+
"type": "array",
61+
"items": {
62+
"type": "string"
63+
}
64+
},
4465
"email": {
4566
"description": "Payment agent's email address.",
4667
"type": "string"
@@ -49,14 +70,6 @@
4970
"description": "Information about payment agent and their proposed service.",
5071
"type": "string"
5172
},
52-
"is_listed": {
53-
"description": "Wether or not the client should be listed among available agents in the FE.",
54-
"type": "integer",
55-
"enum": [
56-
0,
57-
1
58-
]
59-
},
6073
"max_withdrawal": {
6174
"description": "Maximum amount allowed for withdrawals",
6275
"type": "number"
@@ -65,6 +78,14 @@
6578
"description": "Minimum amount allowed for withdrawals",
6679
"type": "number"
6780
},
81+
"newly_authorized": {
82+
"description": "Indicates if the payment agent was recently approved with no transactions yet.",
83+
"type": "integer",
84+
"enum": [
85+
0,
86+
1
87+
]
88+
},
6889
"payment_agent_name": {
6990
"description": "The name with which the payment agent is going to be identified.",
7091
"type": "string"
@@ -92,8 +113,8 @@
92113
"applied",
93114
"verified",
94115
"authorized",
95-
"suspended",
96-
"rejected"
116+
"rejected",
117+
"suspended"
97118
]
98119
},
99120
{

0 commit comments

Comments
 (0)