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 Sep 12, 2024
1 parent aed8402 commit 88bd036
Show file tree
Hide file tree
Showing 4 changed files with 126 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _data/v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ groups:
title: P2P Ping
- name: p2p_settings
title: P2P Settings
- name: partner_accounts
title: Get Partner Account Details
- name: partner_settings
title: Get Partner-Specific Account Settings
- name: partner_settings_update
Expand Down
3 changes: 3 additions & 0 deletions config/v3/partner_accounts/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"partner_accounts": 1
}
85 changes: 85 additions & 0 deletions config/v3/partner_accounts/receive.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Get Partner Account Details (response)",
"description": "Get All Partner Accounts (Partner account details like website, provider, company details)",
"type": "object",
"required": [
"echo_req",
"msg_type"
],
"properties": {
"partner_accounts": {
"title": "partner_accounts",
"description": "Partner Accounts against a user",
"type": "object",
"additionalProperties": false,
"properties": {
"partner_settings": {
"description": "List of partner_settigns for all accounts associated as partners.",
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"binary_user_id": {
"description": "The user id.",
"type": "integer"
},
"company_name": {
"description": "[Optional] Company name. Only applicable for partners of type company.",
"type": "string"
},
"company_registration_no": {
"description": "[Optional] Company registration number. Only applicable for partners of type company.",
"type": "string"
},
"partner_loginid": {
"description": "Partner's login ID",
"type": "string"
},
"partner_type": {
"description": "Defines whether this partner is an individual or a company.",
"type": "string",
"enum": [
"individual",
"company"
]
},
"platform_url": {
"description": "Platform URL for Dynamic works dashboard to be redirected from Partners Hub which will be set in BackOffice.",
"type": "string"
},
"provider": {
"description": "Defines the provider platform.",
"type": "string",
"enum": [
"myaffiliates",
"dynamicworks"
]
},
"website": {
"description": "Partner's Website URI/Promotional Platform",
"type": "string"
}
}
}
}
}
},
"echo_req": {
"description": "Echo of the request made.",
"type": "object"
},
"msg_type": {
"description": "Action name of the request made.",
"type": "string",
"enum": [
"partner_accounts"
]
},
"req_id": {
"description": "Optional field sent in request to map to response, present only when request contains `req_id`.",
"type": "integer"
}
}
}
36 changes: 36 additions & 0 deletions config/v3/partner_accounts/send.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Get Partner Account Details (request)",
"description": "Get All Partner Accounts (Partner account details like website, provider, company details)",
"type": "object",
"auth_required": 1,
"auth_scopes": [
"read"
],
"additionalProperties": false,
"required": [
"partner_accounts"
],
"properties": {
"partner_accounts": {
"description": "Must be `1`",
"type": "integer",
"enum": [
1
]
},
"loginid": {
"description": "[Optional] The login id of the partner account. Mandatory when multiple tokens were provided during authorize.",
"type": "string",
"pattern": "^[A-Za-z]+[0-9]+$"
},
"passthrough": {
"description": "[Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.",
"type": "object"
},
"req_id": {
"description": "[Optional] Used to map request to response.",
"type": "integer"
}
}
}

0 comments on commit 88bd036

Please sign in to comment.