@mojaloop/sdk-scheme-adapter 24.10.9-snapshot.2 → 24.10.9-snapshot.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-api-svc",
3
- "version": "21.0.0-snapshot.54",
3
+ "version": "21.0.0-snapshot.56",
4
4
  "description": "An adapter for connecting to Mojaloop API enabled switches.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -978,10 +978,9 @@ class InboundTransfersModel {
978
978
 
979
979
  const responseBody = {
980
980
  conversionState: body.conversionState, // one of ABORTED, COMMITTED, RESERVED
981
- completedTimestamp: new Date().toISOString(), // todo: get from body
981
+ completedTimestamp: body.completedTimestamp,
982
982
  };
983
- log.verbose('sendFxPutNotificationToBackend sent body: ', { responseBody });
984
-
983
+ log.verbose('sendFxPutNotificationToBackend body sent to cc: ', { responseBody });
985
984
 
986
985
  const res = await this._backendRequests.putFxTransfersNotification(responseBody, conversionId);
987
986
  return res;
@@ -873,8 +873,7 @@ describe('inboundModel', () => {
873
873
  await model.sendFxPutNotificationToBackend(notif.data, conversionId);
874
874
  expect(BackendRequests.__putFxTransfersNotification).toHaveBeenCalledTimes(1);
875
875
  const call = BackendRequests.__putFxTransfersNotification.mock.calls[0];
876
- expect(call[0].conversionState).toEqual(fxNotificationToBackend.data.conversionState);
877
- expect(typeof call[0].completedTimestamp).toBe('string');
876
+ expect(call[0]).toEqual(fxNotificationToBackend.data);
878
877
  expect(call[1]).toEqual(conversionId);
879
878
  });
880
879
 
@@ -892,7 +891,7 @@ describe('inboundModel', () => {
892
891
  await model.sendFxPutNotificationToBackend(notif.data, conversionId);
893
892
  expect(BackendRequests.__putFxTransfersNotification).toHaveBeenCalledTimes(1);
894
893
  const call = BackendRequests.__putFxTransfersNotification.mock.calls[0];
895
- expect(call[0].conversionState).toEqual(fxNotificationAbortedToBackend.data.conversionState);
894
+ expect(call[0]).toEqual(fxNotificationAbortedToBackend.data);
896
895
  expect(call[1]).toEqual(conversionId);
897
896
  });
898
897
 
@@ -910,10 +909,9 @@ describe('inboundModel', () => {
910
909
  await model.sendFxPutNotificationToBackend(notif.data, conversionId);
911
910
  expect(BackendRequests.__putFxTransfersNotification).toHaveBeenCalledTimes(1);
912
911
  const call = BackendRequests.__putFxTransfersNotification.mock.calls[0];
913
- expect(call[0].conversionState).toEqual(fxNotificationReservedToBackend.data.conversionState);
912
+ expect(call[0]).toEqual(fxNotificationReservedToBackend.data);
914
913
  expect(call[1]).toEqual(conversionId);
915
914
  });
916
-
917
915
  });
918
916
 
919
917
  describe('error handling:', () => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-outbound-command-event-handler",
3
- "version": "0.3.0-snapshot.50",
3
+ "version": "0.3.0-snapshot.52",
4
4
  "description": "Mojaloop sdk scheme adapter command event handler",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-outbound-domain-event-handler",
3
- "version": "0.3.0-snapshot.50",
3
+ "version": "0.3.0-snapshot.52",
4
4
  "description": "mojaloop sdk scheme adapter outbound domain event handler",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter/",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter-private-shared-lib",
3
- "version": "0.4.0-snapshot.50",
3
+ "version": "0.4.0-snapshot.52",
4
4
  "description": "SDK Scheme Adapter private shared library.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/accounts-and-balances-bc/tree/main/modules/private-types",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/sdk-scheme-adapter",
3
- "version": "24.10.9-snapshot.2",
3
+ "version": "24.10.9-snapshot.4",
4
4
  "description": "mojaloop sdk-scheme-adapter",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/mojaloop/sdk-scheme-adapter",
@@ -1,17 +0,0 @@
1
- {
2
- "name": "k6-tests",
3
- "version": "1.0.0",
4
- "description": "```bash docker run --rm -i grafana/k6 run --vus 1 --duration 10s - <./src/test.js ```",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "Eugen Klymniuk",
10
- "license": "MIT",
11
- "dependencies": {
12
- "k6": "0.0.0"
13
- },
14
- "devDependencies": {
15
- "@types/k6": "1.1.1"
16
- }
17
- }
@@ -1,17 +0,0 @@
1
- {
2
- "name": "k6-tests",
3
- "version": "1.0.0",
4
- "description": "```bash docker run --rm -i grafana/k6 run --vus 1 --duration 10s - <./src/test.js ```",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "author": "Eugen Klymniuk",
10
- "license": "MIT",
11
- "dependencies": {
12
- "k6": "0.0.0"
13
- },
14
- "devDependencies": {
15
- "@types/k6": "1.1.1"
16
- }
17
- }