Skip to content

Commit

Permalink
Merge pull request #46 from vijayg10/feature/add-second-currency-to-cgs
Browse files Browse the repository at this point in the history
Added second currency to CGS onboarding collection
  • Loading branch information
vijayg10 authored Jul 21, 2021
2 parents 9aaa674 + ec92354 commit 8979b02
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,62 @@
},
{
"id": 3,
"meta": {
"info": "Add Hub Account-HUB_MULTILATERAL_SETTLEMENT second currency"
},
"description": "Add Hub Account-HUB_MULTILATERAL_SETTLEMENT",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"method": "post",
"params": {
"name": "Hub"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"ignoreCallbacks": true,
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}"
},
"body": {
"type": "HUB_MULTILATERAL_SETTLEMENT",
"currency": "{$environment.currency2}"
}
},
{
"id": 4,
"meta": {
"info": "Add Hub Account-HUB_RECONCILIATION second currency"
},
"description": "Add Hub Account-HUB_RECONCILIATION",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "central_admin"
},
"operationPath": "/participants/{name}/accounts",
"path": "/participants/Hub/accounts",
"method": "post",
"params": {
"name": "Hub"
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"ignoreCallbacks": true,
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}"
},
"body": {
"type": "HUB_RECONCILIATION",
"currency": "{$environment.currency2}"
}
},
{
"id": 5,
"meta": {
"info": "Hub Set Email-SETTLEMENT_TRANSFER_POSITION_CHANGE_EMAIL"
},
Expand Down Expand Up @@ -93,7 +149,7 @@
}
},
{
"id": 4,
"id": 6,
"meta": {
"info": "Hub Set Email-NET_DEBIT_CAP_ADJUSTMENT_EMAIL"
},
Expand Down Expand Up @@ -121,7 +177,7 @@
}
},
{
"id": 5,
"id": 7,
"meta": {
"info": "Hub Set Email-NET_DEBIT_CAP_THRESHOLD_BREACH_EMAIL"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,51 @@
"autoPositionReset": true,
"settlementAccountType": "INTERCHANGE_FEE_SETTLEMENT"
}
},
{
"id": 4,
"meta": {
"info": "Create settlement model DEFAULT DEFERRED NET"
},
"description": "Create settlement model DEFAULT DEFERRED NET",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "central_admin"
},
"operationPath": "/settlementModels",
"path": "/settlementModels",
"method": "post",
"body": {
"name": "DEFAULTDEFERREDNET",
"settlementGranularity": "NET",
"settlementInterchange": "MULTILATERAL",
"settlementDelay": "DEFERRED",
"requireLiquidityCheck": true,
"ledgerAccountType": "POSITION",
"autoPositionReset": true,
"settlementAccountType": "SETTLEMENT"
},
"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)",
"}"
]
}
]
}
}
]
}
Expand Down

0 comments on commit 8979b02

Please sign in to comment.