@mojaloop/api-snippets 17.10.0 → 17.10.2
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/CHANGELOG.md +14 -0
- package/docs/sdk-scheme-adapter-backend-v2_1_0-openapi3-snippets.yaml +18 -6
- package/docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml +0 -1
- package/lib/sdk-scheme-adapter/v2_1_0/backend/json-schemas.json +42 -41
- package/lib/sdk-scheme-adapter/v2_1_0/backend/openapi.d.ts +13 -3
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.d.ts +31 -30
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js +2 -1
- package/lib/sdk-scheme-adapter/v2_1_0/backend/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_1_0/backend/types.d.ts +2 -1
- package/lib/sdk-scheme-adapter/v2_1_0/outbound/json-schemas.json +3 -6
- package/lib/sdk-scheme-adapter/v2_1_0/outbound/openapi.d.ts +1 -1
- package/package.json +7 -7
- package/sdk-scheme-adapter/v2_1_0/backend/openapi.yaml +1 -1
- package/sdk-scheme-adapter/v2_1_0/components/schemas/FxTransfersPostBackendResponse.yaml +1 -1
- package/sdk-scheme-adapter/v2_1_0/components/schemas/TransferStateFromBackend.yaml +15 -0
- package/sdk-scheme-adapter/v2_1_0/components/schemas/accountsRequest.yaml +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,4 +1,18 @@
|
|
1
1
|
# Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
|
2
|
+
### [17.10.2](https://github.com/mojaloop/api-snippets/compare/v17.10.1...v17.10.2) (2025-03-27)
|
3
|
+
|
4
|
+
|
5
|
+
### Bug Fixes
|
6
|
+
|
7
|
+
* sdk backend transferstates ([#199](https://github.com/mojaloop/api-snippets/issues/199)) ([a2e7f42](https://github.com/mojaloop/api-snippets/commit/a2e7f426868ddc7d0a35527f20c6d917c4fd7f11))
|
8
|
+
|
9
|
+
### [17.10.1](https://github.com/mojaloop/api-snippets/compare/v17.10.0...v17.10.1) (2025-03-21)
|
10
|
+
|
11
|
+
|
12
|
+
### Maintenance
|
13
|
+
|
14
|
+
* remove currency requirment from sdk outbound ([#198](https://github.com/mojaloop/api-snippets/issues/198)) ([90e2f44](https://github.com/mojaloop/api-snippets/commit/90e2f449fa24d1be79a14452c0bf604bee72f857))
|
15
|
+
|
2
16
|
## [17.10.0](https://github.com/mojaloop/api-snippets/compare/v17.9.0...v17.10.0) (2025-03-20)
|
3
17
|
|
4
18
|
|
@@ -1538,7 +1538,7 @@ components:
|
|
1538
1538
|
description: Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems.
|
1539
1539
|
type: string
|
1540
1540
|
transferState:
|
1541
|
-
$ref: '#/components/schemas/
|
1541
|
+
$ref: '#/components/schemas/TransferStateFromBackend'
|
1542
1542
|
required:
|
1543
1543
|
- homeTransactionId
|
1544
1544
|
type: object
|
@@ -2293,6 +2293,18 @@ components:
|
|
2293
2293
|
- QRCODE - QR code used as One Time Password.
|
2294
2294
|
- U2F - U2F is a new addition isolated to Thirdparty stream.
|
2295
2295
|
example: OTP
|
2296
|
+
TransferStateFromBackend:
|
2297
|
+
title: TransferStateFromBackend
|
2298
|
+
type: string
|
2299
|
+
enum:
|
2300
|
+
- RESERVED
|
2301
|
+
- COMMITTED
|
2302
|
+
description: |-
|
2303
|
+
Below are the allowed values for the enumeration.
|
2304
|
+
- RESERVED - Next ledger has reserved the transfer.
|
2305
|
+
- COMMITTED - Next ledger has successfully performed the transfer.
|
2306
|
+
Note: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.
|
2307
|
+
example: COMMITTED
|
2296
2308
|
TransfersIDPutResponse:
|
2297
2309
|
title: TransfersIDPutResponse
|
2298
2310
|
type: object
|
@@ -2681,10 +2693,6 @@ components:
|
|
2681
2693
|
allOf:
|
2682
2694
|
- $ref: '#/components/schemas/DateTime'
|
2683
2695
|
- description: Time and date when the conversion was executed.
|
2684
|
-
conversionState:
|
2685
|
-
allOf:
|
2686
|
-
- $ref: '#/components/schemas/TransferState'
|
2687
|
-
- description: The current status of the conversion request.
|
2688
2696
|
FxTransfersPostBackendResponse:
|
2689
2697
|
title: FxTransfersPostBackendResponse
|
2690
2698
|
type: object
|
@@ -2698,11 +2706,15 @@ components:
|
|
2698
2706
|
completedTimestamp:
|
2699
2707
|
$ref: '#/components/schemas/completedTimestamp'
|
2700
2708
|
conversionState:
|
2701
|
-
$ref: '#/components/schemas/
|
2709
|
+
$ref: '#/components/schemas/TransferStateFromBackend'
|
2702
2710
|
extensionList:
|
2703
2711
|
$ref: '#/components/schemas/ExtensionList_v2_1_0'
|
2704
2712
|
required:
|
2705
2713
|
- conversionState
|
2714
|
+
conversionState:
|
2715
|
+
allOf:
|
2716
|
+
- $ref: '#/components/schemas/TransferState'
|
2717
|
+
- description: The current status of the conversion request.
|
2706
2718
|
FxTransfersPutBackendRequest:
|
2707
2719
|
title: FxTransfersPutBackendRequest
|
2708
2720
|
type: object
|
@@ -22101,14 +22101,14 @@
|
|
22101
22101
|
"type": "string"
|
22102
22102
|
},
|
22103
22103
|
"transferState": {
|
22104
|
-
"
|
22104
|
+
"title": "TransferStateFromBackend",
|
22105
|
+
"type": "string",
|
22105
22106
|
"enum": [
|
22106
|
-
"RECEIVED",
|
22107
22107
|
"RESERVED",
|
22108
|
-
"COMMITTED"
|
22109
|
-
"ABORTED"
|
22108
|
+
"COMMITTED"
|
22110
22109
|
],
|
22111
|
-
"
|
22110
|
+
"description": "Below are the allowed values for the enumeration.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\nNote: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.",
|
22111
|
+
"example": "COMMITTED"
|
22112
22112
|
}
|
22113
22113
|
},
|
22114
22114
|
"required": [
|
@@ -29817,6 +29817,16 @@
|
|
29817
29817
|
"description": "Below are the allowed values for the enumeration AuthenticationType.\n- OTP - One-time password generated by the Payer FSP.\n- QRCODE - QR code used as One Time Password.\n- U2F - U2F is a new addition isolated to Thirdparty stream.",
|
29818
29818
|
"example": "OTP"
|
29819
29819
|
},
|
29820
|
+
"TransferStateFromBackend": {
|
29821
|
+
"title": "TransferStateFromBackend",
|
29822
|
+
"type": "string",
|
29823
|
+
"enum": [
|
29824
|
+
"RESERVED",
|
29825
|
+
"COMMITTED"
|
29826
|
+
],
|
29827
|
+
"description": "Below are the allowed values for the enumeration.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\nNote: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.",
|
29828
|
+
"example": "COMMITTED"
|
29829
|
+
},
|
29820
29830
|
"TransfersIDPutResponse": {
|
29821
29831
|
"title": "TransfersIDPutResponse",
|
29822
29832
|
"type": "object",
|
@@ -37448,25 +37458,6 @@
|
|
37448
37458
|
}
|
37449
37459
|
]
|
37450
37460
|
},
|
37451
|
-
"conversionState": {
|
37452
|
-
"allOf": [
|
37453
|
-
{
|
37454
|
-
"title": "TransferState",
|
37455
|
-
"type": "string",
|
37456
|
-
"enum": [
|
37457
|
-
"RECEIVED",
|
37458
|
-
"RESERVED",
|
37459
|
-
"COMMITTED",
|
37460
|
-
"ABORTED"
|
37461
|
-
],
|
37462
|
-
"description": "Below are the allowed values for the enumeration.\n- RECEIVED - Next ledger has received the transfer.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\n- ABORTED - Next ledger has aborted the transfer due to a rejection or failure to perform the transfer.",
|
37463
|
-
"example": "RESERVED"
|
37464
|
-
},
|
37465
|
-
{
|
37466
|
-
"description": "The current status of the conversion request."
|
37467
|
-
}
|
37468
|
-
]
|
37469
|
-
},
|
37470
37461
|
"FxTransfersPostBackendResponse": {
|
37471
37462
|
"title": "FxTransfersPostBackendResponse",
|
37472
37463
|
"type": "object",
|
@@ -37506,23 +37497,14 @@
|
|
37506
37497
|
]
|
37507
37498
|
},
|
37508
37499
|
"conversionState": {
|
37509
|
-
"
|
37510
|
-
|
37511
|
-
|
37512
|
-
|
37513
|
-
|
37514
|
-
|
37515
|
-
|
37516
|
-
|
37517
|
-
"ABORTED"
|
37518
|
-
],
|
37519
|
-
"description": "Below are the allowed values for the enumeration.\n- RECEIVED - Next ledger has received the transfer.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\n- ABORTED - Next ledger has aborted the transfer due to a rejection or failure to perform the transfer.",
|
37520
|
-
"example": "RESERVED"
|
37521
|
-
},
|
37522
|
-
{
|
37523
|
-
"description": "The current status of the conversion request."
|
37524
|
-
}
|
37525
|
-
]
|
37500
|
+
"title": "TransferStateFromBackend",
|
37501
|
+
"type": "string",
|
37502
|
+
"enum": [
|
37503
|
+
"RESERVED",
|
37504
|
+
"COMMITTED"
|
37505
|
+
],
|
37506
|
+
"description": "Below are the allowed values for the enumeration.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\nNote: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.",
|
37507
|
+
"example": "COMMITTED"
|
37526
37508
|
},
|
37527
37509
|
"extensionList": {
|
37528
37510
|
"title": "ExtensionList",
|
@@ -37569,6 +37551,25 @@
|
|
37569
37551
|
"conversionState"
|
37570
37552
|
]
|
37571
37553
|
},
|
37554
|
+
"conversionState": {
|
37555
|
+
"allOf": [
|
37556
|
+
{
|
37557
|
+
"title": "TransferState",
|
37558
|
+
"type": "string",
|
37559
|
+
"enum": [
|
37560
|
+
"RECEIVED",
|
37561
|
+
"RESERVED",
|
37562
|
+
"COMMITTED",
|
37563
|
+
"ABORTED"
|
37564
|
+
],
|
37565
|
+
"description": "Below are the allowed values for the enumeration.\n- RECEIVED - Next ledger has received the transfer.\n- RESERVED - Next ledger has reserved the transfer.\n- COMMITTED - Next ledger has successfully performed the transfer.\n- ABORTED - Next ledger has aborted the transfer due to a rejection or failure to perform the transfer.",
|
37566
|
+
"example": "RESERVED"
|
37567
|
+
},
|
37568
|
+
{
|
37569
|
+
"description": "The current status of the conversion request."
|
37570
|
+
}
|
37571
|
+
]
|
37572
|
+
},
|
37572
37573
|
"FxTransfersPutBackendRequest": {
|
37573
37574
|
"title": "FxTransfersPutBackendRequest",
|
37574
37575
|
"type": "object",
|
@@ -775,7 +775,7 @@ export interface components {
|
|
775
775
|
fulfilment?: components["schemas"]["IlpFulfilment"];
|
776
776
|
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
777
777
|
homeTransactionId: string;
|
778
|
-
transferState?: components["schemas"]["
|
778
|
+
transferState?: components["schemas"]["TransferStateFromBackend"];
|
779
779
|
};
|
780
780
|
/**
|
781
781
|
* @description Below are the allowed values for the enumeration - RECEIVED DFSP has received the transfer. - RESERVED DFSP has reserved the transfer. - COMMITTED DFSP has successfully performed the transfer. - ABORTED DFSP has aborted the transfer due a rejection or failure to perform the transfer.
|
@@ -1164,6 +1164,16 @@ export interface components {
|
|
1164
1164
|
* @enum {string}
|
1165
1165
|
*/
|
1166
1166
|
AuthenticationType: "OTP" | "QRCODE" | "U2F";
|
1167
|
+
/**
|
1168
|
+
* TransferStateFromBackend
|
1169
|
+
* @description Below are the allowed values for the enumeration.
|
1170
|
+
* - RESERVED - Next ledger has reserved the transfer.
|
1171
|
+
* - COMMITTED - Next ledger has successfully performed the transfer.
|
1172
|
+
* Note: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.
|
1173
|
+
* @example COMMITTED
|
1174
|
+
* @enum {string}
|
1175
|
+
*/
|
1176
|
+
TransferStateFromBackend: "RESERVED" | "COMMITTED";
|
1167
1177
|
/**
|
1168
1178
|
* TransfersIDPutResponse
|
1169
1179
|
* @description The object sent in the PUT /transfers/{ID} callback.
|
@@ -1364,7 +1374,6 @@ export interface components {
|
|
1364
1374
|
};
|
1365
1375
|
fulfilment: components["schemas"]["IlpFulfilment"] & unknown;
|
1366
1376
|
completedTimestamp: components["schemas"]["DateTime"] & unknown;
|
1367
|
-
conversionState: components["schemas"]["TransferState"] & unknown;
|
1368
1377
|
/**
|
1369
1378
|
* FxTransfersPostBackendResponse
|
1370
1379
|
* @description The object sent as a response for the POST /fxTransfers request.
|
@@ -1374,9 +1383,10 @@ export interface components {
|
|
1374
1383
|
homeTransactionId?: string;
|
1375
1384
|
fulfilment?: components["schemas"]["fulfilment"];
|
1376
1385
|
completedTimestamp?: components["schemas"]["completedTimestamp"];
|
1377
|
-
conversionState: components["schemas"]["
|
1386
|
+
conversionState: components["schemas"]["TransferStateFromBackend"];
|
1378
1387
|
extensionList?: components["schemas"]["ExtensionList_v2_1_0"];
|
1379
1388
|
};
|
1389
|
+
conversionState: components["schemas"]["TransferState"] & unknown;
|
1380
1390
|
/**
|
1381
1391
|
* FxTransfersPutBackendRequest
|
1382
1392
|
* @description PUT /fxTransfers/{commitRequestId} object
|
@@ -6345,9 +6345,11 @@ export declare namespace Schemas {
|
|
6345
6345
|
type: string;
|
6346
6346
|
};
|
6347
6347
|
transferState: {
|
6348
|
-
|
6349
|
-
enum: string[];
|
6348
|
+
title: string;
|
6350
6349
|
type: string;
|
6350
|
+
enum: string[];
|
6351
|
+
description: string;
|
6352
|
+
example: string;
|
6351
6353
|
};
|
6352
6354
|
};
|
6353
6355
|
required: string[];
|
@@ -9491,6 +9493,13 @@ export declare namespace Schemas {
|
|
9491
9493
|
description: string;
|
9492
9494
|
example: string;
|
9493
9495
|
};
|
9496
|
+
const TransferStateFromBackend: {
|
9497
|
+
title: string;
|
9498
|
+
type: string;
|
9499
|
+
enum: string[];
|
9500
|
+
description: string;
|
9501
|
+
example: string;
|
9502
|
+
};
|
9494
9503
|
const TransfersIDPutResponse: {
|
9495
9504
|
title: string;
|
9496
9505
|
type: string;
|
@@ -11929,21 +11938,6 @@ export declare namespace Schemas {
|
|
11929
11938
|
example?: undefined;
|
11930
11939
|
})[];
|
11931
11940
|
};
|
11932
|
-
const conversionState: {
|
11933
|
-
allOf: ({
|
11934
|
-
title: string;
|
11935
|
-
type: string;
|
11936
|
-
enum: string[];
|
11937
|
-
description: string;
|
11938
|
-
example: string;
|
11939
|
-
} | {
|
11940
|
-
description: string;
|
11941
|
-
title?: undefined;
|
11942
|
-
type?: undefined;
|
11943
|
-
enum?: undefined;
|
11944
|
-
example?: undefined;
|
11945
|
-
})[];
|
11946
|
-
};
|
11947
11941
|
const FxTransfersPostBackendResponse: {
|
11948
11942
|
title: string;
|
11949
11943
|
type: string;
|
@@ -11986,19 +11980,11 @@ export declare namespace Schemas {
|
|
11986
11980
|
})[];
|
11987
11981
|
};
|
11988
11982
|
conversionState: {
|
11989
|
-
|
11990
|
-
|
11991
|
-
|
11992
|
-
|
11993
|
-
|
11994
|
-
example: string;
|
11995
|
-
} | {
|
11996
|
-
description: string;
|
11997
|
-
title?: undefined;
|
11998
|
-
type?: undefined;
|
11999
|
-
enum?: undefined;
|
12000
|
-
example?: undefined;
|
12001
|
-
})[];
|
11983
|
+
title: string;
|
11984
|
+
type: string;
|
11985
|
+
enum: string[];
|
11986
|
+
description: string;
|
11987
|
+
example: string;
|
12002
11988
|
};
|
12003
11989
|
extensionList: {
|
12004
11990
|
title: string;
|
@@ -12038,6 +12024,21 @@ export declare namespace Schemas {
|
|
12038
12024
|
};
|
12039
12025
|
required: string[];
|
12040
12026
|
};
|
12027
|
+
const conversionState: {
|
12028
|
+
allOf: ({
|
12029
|
+
title: string;
|
12030
|
+
type: string;
|
12031
|
+
enum: string[];
|
12032
|
+
description: string;
|
12033
|
+
example: string;
|
12034
|
+
} | {
|
12035
|
+
description: string;
|
12036
|
+
title?: undefined;
|
12037
|
+
type?: undefined;
|
12038
|
+
enum?: undefined;
|
12039
|
+
example?: undefined;
|
12040
|
+
})[];
|
12041
|
+
};
|
12041
12042
|
const FxTransfersPutBackendRequest: {
|
12042
12043
|
title: string;
|
12043
12044
|
type: string;
|
@@ -118,6 +118,7 @@ var Schemas;
|
|
118
118
|
Schemas.CurrencyConverter = json_schemas_json_1.default["CurrencyConverter"];
|
119
119
|
Schemas.FxRate = json_schemas_json_1.default["FxRate"];
|
120
120
|
Schemas.AuthenticationType = json_schemas_json_1.default["AuthenticationType"];
|
121
|
+
Schemas.TransferStateFromBackend = json_schemas_json_1.default["TransferStateFromBackend"];
|
121
122
|
Schemas.TransfersIDPutResponse = json_schemas_json_1.default["TransfersIDPutResponse"];
|
122
123
|
Schemas.TransfersPostRequest = json_schemas_json_1.default["TransfersPostRequest"];
|
123
124
|
Schemas.QuotesIDPutResponse = json_schemas_json_1.default["QuotesIDPutResponse"];
|
@@ -144,8 +145,8 @@ var Schemas;
|
|
144
145
|
Schemas.FxTransfersPostBackendRequest = json_schemas_json_1.default["FxTransfersPostBackendRequest"];
|
145
146
|
Schemas.fulfilment = json_schemas_json_1.default["fulfilment"];
|
146
147
|
Schemas.completedTimestamp = json_schemas_json_1.default["completedTimestamp"];
|
147
|
-
Schemas.conversionState = json_schemas_json_1.default["conversionState"];
|
148
148
|
Schemas.FxTransfersPostBackendResponse = json_schemas_json_1.default["FxTransfersPostBackendResponse"];
|
149
|
+
Schemas.conversionState = json_schemas_json_1.default["conversionState"];
|
149
150
|
Schemas.FxTransfersPutBackendRequest = json_schemas_json_1.default["FxTransfersPutBackendRequest"];
|
150
151
|
Schemas.FxTransfersPatchBackendRequest = json_schemas_json_1.default["FxTransfersPatchBackendRequest"];
|
151
152
|
})(Schemas || (exports.Schemas = Schemas = {}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_1_0/backend/schemas.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;AAEpD,kEAAkE;AAElE,oFAA6C;AAE7C,IAAiB,OAAO,
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_1_0/backend/schemas.ts"],"names":[],"mappings":";AA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CAAC,gCAAgC,CAAC,CAAA;IAC9E,uBAAe,GAAG,2BAAW,CAAC,iBAAiB,CAAC,CAAA;IAChD,oCAA4B,GAAG,2BAAW,CAAC,8BAA8B,CAAC,CAAA;IAC1E,sCAA8B,GAAG,2BAAW,CAAC,gCAAgC,CAAC,CAAA;AAC7F,CAAC,EA/IgB,OAAO,uBAAP,OAAO,QA+IvB"}
|
@@ -112,6 +112,7 @@ export declare namespace Types {
|
|
112
112
|
type CurrencyConverter = components['schemas']['CurrencyConverter'];
|
113
113
|
type FxRate = components['schemas']['FxRate'];
|
114
114
|
type AuthenticationType = components['schemas']['AuthenticationType'];
|
115
|
+
type TransferStateFromBackend = components['schemas']['TransferStateFromBackend'];
|
115
116
|
type TransfersIDPutResponse = components['schemas']['TransfersIDPutResponse'];
|
116
117
|
type TransfersPostRequest = components['schemas']['TransfersPostRequest'];
|
117
118
|
type QuotesIDPutResponse = components['schemas']['QuotesIDPutResponse'];
|
@@ -138,8 +139,8 @@ export declare namespace Types {
|
|
138
139
|
type FxTransfersPostBackendRequest = components['schemas']['FxTransfersPostBackendRequest'];
|
139
140
|
type fulfilment = components['schemas']['fulfilment'];
|
140
141
|
type completedTimestamp = components['schemas']['completedTimestamp'];
|
141
|
-
type conversionState = components['schemas']['conversionState'];
|
142
142
|
type FxTransfersPostBackendResponse = components['schemas']['FxTransfersPostBackendResponse'];
|
143
|
+
type conversionState = components['schemas']['conversionState'];
|
143
144
|
type FxTransfersPutBackendRequest = components['schemas']['FxTransfersPutBackendRequest'];
|
144
145
|
type FxTransfersPatchBackendRequest = components['schemas']['FxTransfersPatchBackendRequest'];
|
145
146
|
}
|
@@ -208,8 +208,7 @@
|
|
208
208
|
"type": "object",
|
209
209
|
"required": [
|
210
210
|
"idType",
|
211
|
-
"idValue"
|
212
|
-
"currency"
|
211
|
+
"idValue"
|
213
212
|
],
|
214
213
|
"properties": {
|
215
214
|
"idType": {
|
@@ -825,8 +824,7 @@
|
|
825
824
|
"type": "object",
|
826
825
|
"required": [
|
827
826
|
"idType",
|
828
|
-
"idValue"
|
829
|
-
"currency"
|
827
|
+
"idValue"
|
830
828
|
],
|
831
829
|
"properties": {
|
832
830
|
"idType": {
|
@@ -1233,8 +1231,7 @@
|
|
1233
1231
|
"type": "object",
|
1234
1232
|
"required": [
|
1235
1233
|
"idType",
|
1236
|
-
"idValue"
|
1237
|
-
"currency"
|
1234
|
+
"idValue"
|
1238
1235
|
],
|
1239
1236
|
"properties": {
|
1240
1237
|
"idType": {
|
@@ -972,7 +972,7 @@ export interface components {
|
|
972
972
|
idType: components["schemas"]["PartyIdType"];
|
973
973
|
idValue: components["schemas"]["PartyIdentifier"];
|
974
974
|
idSubValue?: components["schemas"]["PartySubIdOrType"];
|
975
|
-
currency
|
975
|
+
currency?: components["schemas"]["Currency"];
|
976
976
|
}[];
|
977
977
|
/**
|
978
978
|
* CorrelationId
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mojaloop/api-snippets",
|
3
|
-
"version": "17.10.
|
3
|
+
"version": "17.10.2",
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -101,30 +101,30 @@
|
|
101
101
|
"@redocly/cli": "^1.5.0",
|
102
102
|
"@types/jest": "^29.5.14",
|
103
103
|
"@types/js-yaml": "^4.0.9",
|
104
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
105
|
-
"@typescript-eslint/parser": "^8.
|
104
|
+
"@typescript-eslint/eslint-plugin": "^8.28.0",
|
105
|
+
"@typescript-eslint/parser": "^8.28.0",
|
106
106
|
"audit-ci": "^7.1.0",
|
107
107
|
"browser-sync": "^3.0.3",
|
108
108
|
"diff": "^7.0.0",
|
109
109
|
"eslint": "^8.55.0",
|
110
110
|
"eslint-config-prettier": "^10.1.1",
|
111
111
|
"eslint-config-standard": "^17.1.0",
|
112
|
-
"eslint-import-resolver-typescript": "^4.2.
|
112
|
+
"eslint-import-resolver-typescript": "^4.2.5",
|
113
113
|
"eslint-plugin-cucumber": "^2.0.0",
|
114
114
|
"eslint-plugin-import": "^2.31.0",
|
115
115
|
"eslint-plugin-node": "^11.1.0",
|
116
|
-
"eslint-plugin-prettier": "^5.2.
|
116
|
+
"eslint-plugin-prettier": "^5.2.5",
|
117
117
|
"eslint-plugin-promise": "^6.2.0",
|
118
118
|
"eslint-plugin-standard": "^5.0.0",
|
119
119
|
"husky": "9.1.7",
|
120
120
|
"jest": "^29.7.0",
|
121
121
|
"jest-junit": "^16.0.0",
|
122
122
|
"lint-staged": "^15.5.0",
|
123
|
-
"npm-check-updates": "^17.1.
|
123
|
+
"npm-check-updates": "^17.1.16",
|
124
124
|
"prettier": "^3.5.3",
|
125
125
|
"standard-version": "^9.5.0",
|
126
126
|
"swagger-cli": "^4.0.4",
|
127
|
-
"ts-jest": "^29.
|
127
|
+
"ts-jest": "^29.3.0",
|
128
128
|
"ts-node": "^10.9.2",
|
129
129
|
"ts-patch": "^3.3.0",
|
130
130
|
"tslib": "^2.8.1",
|
@@ -1459,7 +1459,7 @@ components:
|
|
1459
1459
|
description: Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems.
|
1460
1460
|
type: string
|
1461
1461
|
transferState:
|
1462
|
-
$ref: '
|
1462
|
+
$ref: '../components/schemas/TransferStateFromBackend.yaml'
|
1463
1463
|
required:
|
1464
1464
|
- homeTransactionId
|
1465
1465
|
type: object
|
@@ -10,7 +10,7 @@ properties:
|
|
10
10
|
completedTimestamp:
|
11
11
|
$ref: "../../../../fspiop/v2_0/openapi3/components/schemas/FxTransfersIDPutResponse.yaml#/properties/completedTimestamp"
|
12
12
|
conversionState:
|
13
|
-
$ref:
|
13
|
+
$ref: ./TransferStateFromBackend.yaml
|
14
14
|
extensionList:
|
15
15
|
$ref: "./ExtensionList_v2_1_0.yaml"
|
16
16
|
required:
|
@@ -0,0 +1,15 @@
|
|
1
|
+
title: TransferStateFromBackend
|
2
|
+
type: string
|
3
|
+
enum:
|
4
|
+
- RESERVED
|
5
|
+
- COMMITTED
|
6
|
+
description: >-
|
7
|
+
Below are the allowed values for the enumeration.
|
8
|
+
|
9
|
+
- RESERVED - Next ledger has reserved the transfer.
|
10
|
+
|
11
|
+
- COMMITTED - Next ledger has successfully performed the transfer.
|
12
|
+
|
13
|
+
Note: There is no ABORTED state, http error response with proper mojaloop error code should be used to abort / reject a transfer.
|
14
|
+
|
15
|
+
example: 'COMMITTED'
|