diff --git a/collections/hub/provisioning_dfsp/newdfsp.json b/collections/hub/provisioning_dfsp/newdfsp.json index 75881164..c77c4a27 100644 --- a/collections/hub/provisioning_dfsp/newdfsp.json +++ b/collections/hub/provisioning_dfsp/newdfsp.json @@ -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": {