@mojaloop/sdk-scheme-adapter 24.10.9-snapshot.2 → 24.10.9-snapshot.3
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.
- package/modules/api-svc/package.json +1 -1
- package/modules/api-svc/src/lib/model/InboundTransfersModel.js +2 -3
- package/modules/api-svc/test/unit/lib/model/InboundTransfersModel.test.js +3 -5
- package/modules/outbound-command-event-handler/package.json +1 -1
- package/modules/outbound-domain-event-handler/package.json +1 -1
- package/modules/private-shared-lib/package.json +1 -1
- package/package.json +1 -1
|
@@ -978,10 +978,9 @@ class InboundTransfersModel {
|
|
|
978
978
|
|
|
979
979
|
const responseBody = {
|
|
980
980
|
conversionState: body.conversionState, // one of ABORTED, COMMITTED, RESERVED
|
|
981
|
-
completedTimestamp:
|
|
981
|
+
completedTimestamp: body.completedTimestamp,
|
|
982
982
|
};
|
|
983
|
-
log.verbose('sendFxPutNotificationToBackend sent
|
|
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]
|
|
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]
|
|
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]
|
|
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.
|
|
3
|
+
"version": "0.3.0-snapshot.51",
|
|
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.
|
|
3
|
+
"version": "0.3.0-snapshot.51",
|
|
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.
|
|
3
|
+
"version": "0.4.0-snapshot.51",
|
|
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