Skip to content

Commit

Permalink
Merge branch 'master' of github.com:deriv-com/deriv-api-docs into set…
Browse files Browse the repository at this point in the history
…up-hydra-autgh
  • Loading branch information
adrienne-deriv committed Sep 27, 2024
2 parents 628aace + bcccb28 commit a19c824
Show file tree
Hide file tree
Showing 12 changed files with 123 additions and 342 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
2 changes: 1 addition & 1 deletion config/v3/cashier/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
]
},
"provider": {
"description": "[Optional] Cashier provider. `crypto` will be default option for crypto currency accounts.",
"description": "[Optional] Cashier provider.",
"type": "string",
"default": "doughflow",
"enum": [
Expand Down
4 changes: 4 additions & 0 deletions config/v3/get_settings/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@
"string"
]
},
"tnc_status": {
"description": "Terms and condition status tells us whether all the accounts of this user has accepted the latest T&C version.",
"type": "object"
},
"trading_hub": {
"description": "Boolean value 1 or 0, indicating if client has enabled the Trading Hub dashboard",
"type": "integer"
Expand Down
381 changes: 51 additions & 330 deletions config/v3/landing_company/receive.json

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions config/v3/mt5_login_list/receive.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,44 @@
"description": "Balance of the MT5 account.",
"type": "number"
},
"client_kyc_status": {
"description": "[Optional] Pertains to client KYC. Returned only if the client fails to meet the requirements, including proof of identity (POI), validity of the tax identification number (TIN), and proof of address (POA).",
"type": "object",
"additionalProperties": false,
"properties": {
"poa_status": {
"description": "Status of proof of address (POA).",
"type": "string",
"enum": [
"none",
"pending",
"expired",
"verified",
"rejected"
]
},
"poi_status": {
"description": "Status of proof of identity (POI).",
"type": "string",
"enum": [
"none",
"pending",
"verified",
"suspected",
"rejected",
"expired"
]
},
"valid_tin": {
"description": "Indicates whether the tax identification number (TIN) is valid (1) or not (0).",
"type": "integer",
"enum": [
1,
0
]
}
}
},
"country": {
"description": "Residence of the MT5 account.",
"type": "string"
Expand Down Expand Up @@ -164,6 +202,10 @@
"description": "Group type of the MT5 account, e.g. `demo\\svg_financial`",
"type": "string"
},
"is_main_agent": {
"description": "Indicate if the account is a main agent - an IB account",
"type": "boolean"
},
"landing_company": {
"description": "Broker name",
"type": "string"
Expand Down
1 change: 1 addition & 0 deletions config/v3/new_account_maltainvest/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"source_of_wealth": "Company Ownership",
"tax_identification_number": "111-222-333",
"tax_residence": "de,nl",
"tnc_acceptance": 1,
"trading_experience_financial_instruments": "Less than a year",
"trading_frequency_financial_instruments": "1 - 5 transactions in the past 12 months"
}
8 changes: 8 additions & 0 deletions config/v3/new_account_maltainvest/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,14 @@
"type": "string",
"pattern": "^[a-z]{0,2}(?:,[a-z]{2})*$"
},
"tnc_acceptance": {
"description": "The tnc acceptance status of the user.",
"type": "integer",
"enum": [
0,
1
]
},
"trading_experience_financial_instruments": {
"description": "How much experience do you have with other financial instruments?",
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion config/v3/new_account_real/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@
"secret_answer": "Jones",
"secret_question": "Mother's maiden name",
"tax_identification_number": "012142545",
"tax_residence": "ar,sg"
"tax_residence": "ar,sg",
"tnc_acceptance": 1
}
8 changes: 8 additions & 0 deletions config/v3/new_account_real/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@
"type": "string",
"pattern": "^[a-z]{0,2}(?:,[a-z]{2})*$"
},
"tnc_acceptance": {
"description": "The tnc acceptance status of the user.",
"type": "integer",
"enum": [
0,
1
]
},
"loginid": {
"description": "[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.",
"type": "string",
Expand Down
7 changes: 0 additions & 7 deletions config/v3/tnc_approval/send.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
1
]
},
"affiliate_coc_agreement": {
"description": "[Optional] For Affiliate's Code of Conduct Agreement.",
"type": "integer",
"enum": [
1
]
},
"loginid": {
"description": "[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.",
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Footer/__tests__/Footer.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ describe('Footer Component', () => {
render(<Footer />);
const telegramButton = screen.getByText(/Telegram/);
fireEvent.click(telegramButton);
expect(window.open).toHaveBeenCalledWith('https://t.me/derivdotcomofficial', '_blank');
expect(window.open).toHaveBeenCalledWith('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
});

it('opens respective email in a new tab when email button is clicked', () => {
window.open = jest.fn();
render(<Footer />);
const emailButton = screen.getByText(/Send an email/);
expect(emailButton).toBeInTheDocument();
fireEvent.click(emailButton);
expect(window.open).toHaveBeenCalledWith('mailto:[email protected]', '_blank');
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ const Footer = () => {
variant='outlined'
className={styles.PaddedButton}
onClick={() => {
window.open('https://t.me/derivdotcomofficial', '_blank');
window.open('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
}}
>
<SocialTelegramBlackIcon fill='#000000' iconSize='xs' />
Expand Down

0 comments on commit a19c824

Please sign in to comment.