Skip to content

Commit

Permalink
Merge pull request #50 from vijayg10/feature/parameterize-fspids-in-p…
Browse files Browse the repository at this point in the history
…rovisioning

fix: changed the hardcoded fspIds to environment variables
  • Loading branch information
vijayg10 authored Sep 16, 2021
2 parents 37d2642 + 0db193f commit 25f4ced
Show file tree
Hide file tree
Showing 45 changed files with 532 additions and 518 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -273,7 +273,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -516,7 +516,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -630,7 +630,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -868,7 +868,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1112,7 +1112,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
"assertions": [
Expand Down Expand Up @@ -1235,7 +1235,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1352,7 +1352,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1469,7 +1469,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1586,7 +1586,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1701,7 +1701,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1816,7 +1816,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -1931,7 +1931,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -2046,7 +2046,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
"assertions": [
Expand Down Expand Up @@ -78,7 +78,7 @@
"url": "{$inputs.HOST_CENTRAL_SETTLEMENT}",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
"assertions": [
Expand Down Expand Up @@ -112,7 +112,7 @@
"url": "{$inputs.HOST_CENTRAL_SETTLEMENT}",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
"assertions": [
Expand Down Expand Up @@ -150,7 +150,7 @@
},
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
"assertions": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"tests": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Destination": "{$inputs.toFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand Down Expand Up @@ -188,7 +188,7 @@
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
"transferId": "{$prev.3.request.body.transactionId}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"Content-Type": "application/vnd.interoperability.quotes+json;version=3.2",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
"body": {
Expand Down Expand Up @@ -131,7 +131,7 @@
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
"body": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"ignoreCallbacks": true,
Expand Down Expand Up @@ -80,12 +80,12 @@
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"ignoreCallbacks": true,
"body": {
"name": "payerfsp",
"name": "{$inputs.SIMPAYER_NAME}",
"currency": "XOF"
},
"scriptingEngine": "javascript",
Expand Down Expand Up @@ -138,7 +138,7 @@
"Accept": "application/vnd.interoperability.transfers+json;version=1.0",
"Content-Type": "application/vnd.interoperability.transfers+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"body": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.NORESPONSE_SIMPAYEE_NAME}",
"FSPIOP-Destination": "{$inputs.payeefsp}",
"Authorization": "{$inputs.NORESPONSE_BEARER_TOKEN}"

"Authorization": "{$inputs.NORESPONSE_BEARER_TOKEN}"
},
"body": {
"fulfilment": "{$inputs.validFulfillment}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"ignoreCallbacks": true,
"scriptingEngine": "javascript",
"headers": {
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
Expand Down Expand Up @@ -122,7 +122,7 @@
},
"ignoreCallbacks": true,
"scriptingEngine": "javascript",
"headers": {
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
Expand Down Expand Up @@ -187,7 +187,7 @@
},
"ignoreCallbacks": true,
"scriptingEngine": "javascript",
"headers": {
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
Expand Down Expand Up @@ -252,7 +252,7 @@
},
"ignoreCallbacks": true,
"scriptingEngine": "javascript",
"headers": {
"headers": {
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"ignoreCallbacks": true,
Expand Down Expand Up @@ -126,7 +126,7 @@
"url": "{$inputs.HOST_CENTRAL_LEDGER}",
"headers": {
"Content-Type": "application/json",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}"
},
"ignoreCallbacks": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
Expand Down Expand Up @@ -191,7 +191,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
Expand Down Expand Up @@ -301,7 +301,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
Expand Down Expand Up @@ -421,7 +421,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
Expand Down Expand Up @@ -508,7 +508,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/json",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.toFspId}"
},
Expand Down Expand Up @@ -682,7 +682,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "payeefspNOTFOUND"
},
Expand Down Expand Up @@ -863,7 +863,7 @@
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Content-Type": "application/vnd.interoperability.quotes+json;version=9.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"FSPIOP-Source": "{$inputs.fromFspId}",
"Authorization": "{$inputs.TTK_BEARER_TOKEN}",
"FSPIOP-Destination": "{$inputs.payeefsp}"
},
Expand Down Expand Up @@ -1068,9 +1068,9 @@
"Date": "{$function.generic.curDate}",
"FSPIOP-Destination": "{$inputs.payeefsp}",
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"Authorization": "{$inputs.PAYER_BEARER_TOKEN}"
"Authorization": "{$inputs.PAYER_BEARER_TOKEN}"
},
"tests": {
"tests": {
"assertions": [
{
"id": 1,
Expand Down Expand Up @@ -1142,7 +1142,7 @@
"Content-Type": "application/vnd.interoperability.quotes+json;version=1.0",
"FSPIOP-Destination": "{$inputs.payeefsp}",
"Accept": "application/vnd.interoperability.quotes+json;version=1.0",
"FSPIOP-Source": "{$inputs.SIMPAYER_NAME}",
"FSPIOP-Source": "{$inputs.SIMPAYER_NAME}",
"Authorization": "{$inputs.PAYER_BEARER_TOKEN}"
},
"tests": {
Expand Down
Loading

0 comments on commit 25f4ced

Please sign in to comment.