Skip to content

Commit

Permalink
Bugfix/mobile sim demo changes (#78)
Browse files Browse the repository at this point in the history
* Minor changes

* Bumped up the version and postponed the audits

* Minor fixes
  • Loading branch information
vijayg10 authored Jan 14, 2021
1 parent 28dcbf6 commit 58bce50
Show file tree
Hide file tree
Showing 9 changed files with 1,845 additions and 19 deletions.
6 changes: 3 additions & 3 deletions audit-resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"decisions": {
"1589|electron>@electron/get>global-tunnel-ng>npm-conf>config-chain>ini": {
"decision": "postpone",
"madeAt": 1610131618568
"madeAt": 1610614885068
},
"1589|react-scripts>react-dev-utils>global-modules>global-prefix>ini": {
"decision": "postpone",
"madeAt": 1610131618568
"madeAt": 1610614885068
},
"1594|axios": {
"decision": "postpone",
"madeAt": 1610131619083
"madeAt": 1610614885678
}
},
"rules": {},
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ml-testing-toolkit-ui",
"version": "11.8.0",
"version": "11.8.1",
"description": "Mojaloop Testing Toolkit Web User Interface",
"main": "index.js",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ class NotificationService {
&& log.resource.method === 'get'
&& log.resource.path.startsWith('/parties/')
) {
this.notifyPayerMonitorLog(log)
this.notificationEventFunction({
category: 'payer',
type: 'getParties',
data: {
resource: log.resource
}
})
this.notifyPayerMonitorLog(log)
}

// Catch get Parties response
Expand Down
2 changes: 0 additions & 2 deletions src/services/demos/MobileSimulator/mojaloopOutbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class OutboundService {
const resp = await axios.get(this.apiBaseUrl + environmentURL)
if (resp.data && resp.data.body && resp.data.body.environment) {
this.inputValues = resp.data.body.environment
this.inputValues.payeefsp = 'ttkpayeefsp'
this.inputValues.toFspId = 'ttkpayeefsp'
}
}

Expand Down
33 changes: 29 additions & 4 deletions src/services/demos/MobileSimulator/template_getParties.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@
"requests": [
{
"id": 1,
"description": "Delete participant",
"apiVersion": {
"minorVersion": 0,
"majorVersion": 1,
"type": "fspiop",
"asynchronous": true
},
"operationPath": "/participants/{Type}/{ID}",
"path": "/participants/{$inputs.toIdType}/{$inputs.toIdValue}",
"method": "delete",
"params": {
"Type": "{$inputs.toIdType}",
"ID": "{$inputs.toIdValue}"
},
"url": "{$inputs.HOST_ACCOUNT_LOOKUP_SERVICE}",
"ignoreCallbacks": true,
"headers": {
"Content-Type": "application/vnd.interoperability.participants+json;version=1.0",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.mobileSimPayeeFsp}",
"Accept": "application/vnd.interoperability.participants+json;version=1.0"
}
},
{
"id": 2,
"description": "Add Participant to ALS",
"apiVersion": {
"minorVersion": 1,
Expand All @@ -22,20 +47,20 @@
"ID": "{$inputs.toIdValue}"
},
"headers": {
"FSPIOP-Source": "{$inputs.toFspId}",
"FSPIOP-Source": "{$inputs.mobileSimPayeeFsp}",
"Accept": "application/vnd.interoperability.participants+json;version=1.0",
"Content-Type": "application/vnd.interoperability.participants+json;version=1.0",
"Date": "{$function.generic.curDate}"
},
"body": {
"fspId": "{$inputs.toFspId}",
"fspId": "{$inputs.mobileSimPayeeFsp}",
"currency": "USD"
},
"url": "{$inputs.HOST_ACCOUNT_LOOKUP_SERVICE}",
"ignoreCallbacks": true
},
{
"id": 2,
"id": 3,
"description": "Get party information",
"apiVersion": {
"minorVersion": 0,
Expand All @@ -49,7 +74,7 @@
"Accept": "{$inputs.accept}",
"Content-Type": "{$inputs.contentType}",
"Date": "{$function.generic.curDate}",
"FSPIOP-Source": "{$inputs.fromFspId}"
"FSPIOP-Source": "{$inputs.mobileSimPayerFsp}"
},
"params": {
"Type": "{$inputs.toIdType}",
Expand Down
8 changes: 4 additions & 4 deletions src/services/demos/MobileSimulator/template_postQuotes.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"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-Destination": "{$inputs.toFspId}"
"FSPIOP-Source": "{$inputs.mobileSimPayerFsp}",
"FSPIOP-Destination": "{$inputs.mobileSimPayeeFsp}"
},
"body": {
"quoteId": "{$function.generic.generateUUID}",
Expand All @@ -30,7 +30,7 @@
"partyIdInfo": {
"partyIdType": "{$inputs.fromIdType}",
"partyIdentifier": "{$inputs.fromIdValue}",
"fspId": "{$inputs.fromFspId}"
"fspId": "{$inputs.mobileSimPayerFsp}"
},
"personalInfo": {
"complexName": {
Expand All @@ -44,7 +44,7 @@
"partyIdInfo": {
"partyIdType": "{$inputs.toIdType}",
"partyIdentifier": "{$inputs.toIdValue}",
"fspId": "{$inputs.toFspId}"
"fspId": "{$inputs.mobileSimPayeeFsp}"
}
},
"amountType": "RECEIVE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"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.mobileSimPayerFsp}"
},
"body": {
"transferId": "{$inputs.quotesCallbackTransactionId}",
"payerFsp": "{$inputs.fromFspId}",
"payeeFsp": "{$inputs.toFspId}",
"payerFsp": "{$inputs.mobileSimPayerFsp}",
"payeeFsp": "{$inputs.mobileSimPayeeFsp}",
"amount": {
"amount": "{$inputs.amount}",
"currency": "{$inputs.currency}"
Expand Down
Loading

0 comments on commit 58bce50

Please sign in to comment.