Skip to content

Commit

Permalink
create reconcilication account for DFSP currency
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Aug 1, 2024
1 parent ac20ba9 commit 6978a66
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions collections/hub/provisioning_dfsp/newdfsp.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,48 @@
"info": "DFSP account"
},
"requests": [
{
"id": 0.5,
"meta": {
"info": "Add Hub Account-HUB_RECONCILIATION for the DFSP currency"
},
"description": "Add Hub Account-HUB_RECONCILIATION for the DFSP currency",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/{$inputs.HUB_NAME}/accounts",
"method": "post",
"params": {
"name": "{$inputs.HUB_NAME}"
},
"body": {
"type": "HUB_RECONCILIATION",
"currency": "{$inputs.currency}"
},
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "hub_operator"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"tests": {
"assertions": [
{
"id": 1,
"description": "status to be 201 if not exists or 400 if exists",
"exec": [
"if (response.body.errorInformation) {",
" expect(response.status).to.equal(400)",
"} else {",
" expect(response.status).to.equal(201)",
"}"
]
}
]
}
},
{
"id": 1,
"meta": {
Expand Down

0 comments on commit 6978a66

Please sign in to comment.