|
214 | 214 | "string" |
215 | 215 | ] |
216 | 216 | }, |
| 217 | + "eligibility_status": { |
| 218 | + "description": "Reasons why the counterparty terms do not allow the current user to place orders against this advert. Possible values: \n- `completion_rate`: current user's 30 day completion rate is less than `min_completion_rate`. \n- `country`: current user's residence is not in `eligible_countries`. \n- `join_date`: current user registered on P2P less than `min_join_days` in the past. \n- `rating`: current user's average review rating is less than `min_rating`.", |
| 219 | + "type": "array", |
| 220 | + "items": { |
| 221 | + "type": "string", |
| 222 | + "enum": [ |
| 223 | + "completion_rate", |
| 224 | + "country", |
| 225 | + "join_date", |
| 226 | + "rating_average" |
| 227 | + ] |
| 228 | + } |
| 229 | + }, |
| 230 | + "eligible_countries": { |
| 231 | + "description": "2 letter country codes. Counterparties who do not live in these countries are not allowed to place orders against this advert.", |
| 232 | + "type": "array", |
| 233 | + "items": { |
| 234 | + "type": "string" |
| 235 | + } |
| 236 | + }, |
217 | 237 | "id": { |
218 | 238 | "description": "The unique identifier for this advert.", |
219 | 239 | "type": "string" |
|
226 | 246 | 1 |
227 | 247 | ] |
228 | 248 | }, |
| 249 | + "is_eligible": { |
| 250 | + "description": "Indicates that the current user meets the counterparty terms for placing orders against this advert.", |
| 251 | + "type": "integer", |
| 252 | + "default": 0, |
| 253 | + "enum": [ |
| 254 | + 0, |
| 255 | + 1 |
| 256 | + ] |
| 257 | + }, |
229 | 258 | "is_visible": { |
230 | 259 | "description": "Indicates that this advert will appear on the main advert list. It is only visible to the advert owner.", |
231 | 260 | "type": "integer", |
|
259 | 288 | "description": "Maximum order amount at this time, in `account_currency`, formatted to appropriate decimal places.", |
260 | 289 | "type": "string" |
261 | 290 | }, |
| 291 | + "min_completion_rate": { |
| 292 | + "description": "Counterparties who have a 30 day completion rate less than this value are not allowed to place orders against this advert.", |
| 293 | + "type": "number" |
| 294 | + }, |
| 295 | + "min_join_days": { |
| 296 | + "description": "Counterparties who joined less than this number of days ago are not allowed to place orders against this advert.", |
| 297 | + "type": "integer" |
| 298 | + }, |
262 | 299 | "min_order_amount": { |
263 | 300 | "description": "Minimum order amount specified in advert, in `account_currency`. It is only visible for advertisers.", |
264 | 301 | "type": "number" |
|
275 | 312 | "description": "Minimum order amount at this time, in `account_currency`, formatted to appropriate decimal places.", |
276 | 313 | "type": "string" |
277 | 314 | }, |
| 315 | + "min_rating": { |
| 316 | + "description": "Counterparties who have an average rating less than this value are not allowed to place orders against this advert.", |
| 317 | + "type": "number" |
| 318 | + }, |
278 | 319 | "order_expiry_period": { |
279 | 320 | "description": "Expiry period (seconds) for order created against this ad.", |
280 | 321 | "type": "integer", |
|
0 commit comments