@mojaloop/api-snippets 17.1.0-snapshot.1 → 17.2.0-snapshot.0

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 CHANGED
@@ -1,4 +1,11 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ## [17.1.0](https://github.com/mojaloop/api-snippets/compare/v17.0.4...v17.1.0) (2023-05-19)
3
+
4
+
5
+ ### Features
6
+
7
+ * **mojaloop/3345:** enhance payee requesttopay apis ([#162](https://github.com/mojaloop/api-snippets/issues/162)) ([49b31e0](https://github.com/mojaloop/api-snippets/commit/49b31e0eb046483b7cdf868f0305a09a42a47889))
8
+
2
9
  ### [17.0.4](https://github.com/mojaloop/api-snippets/compare/v17.0.3...v17.0.4) (2023-04-26)
3
10
 
4
11
 
@@ -104,6 +104,29 @@ paths:
104
104
  summary: Callbacks for the bulk transaction request.
105
105
  tags:
106
106
  - BulkTransactionsPut
107
+ /requestToPay/{transactionRequestId}:
108
+ put:
109
+ description: >-
110
+ It is used to notify the DFSP backend about the status of the
111
+ requestToPayTransfer.
112
+ operationId: RequestToPayPut
113
+ parameters:
114
+ - $ref: '#/components/parameters/transactionRequestId'
115
+ requestBody:
116
+ content:
117
+ application/json:
118
+ schema:
119
+ $ref: '#/components/schemas/requestToPayCallback'
120
+ responses:
121
+ '200':
122
+ description: OK
123
+ '400':
124
+ $ref: '#/components/responses/400'
125
+ '500':
126
+ $ref: '#/components/responses/500'
127
+ summary: Callback for the requestToPay request.
128
+ tags:
129
+ - RequestToPayPut
107
130
  /bulkTransfers:
108
131
  post:
109
132
  operationId: BackendBulkTransfersPost
@@ -1196,6 +1219,11 @@ components:
1196
1219
  quoteRequest:
1197
1220
  description: A request for a quote for transfer from the DFSP backend.
1198
1221
  properties:
1222
+ homeR2PTransactionId:
1223
+ type: string
1224
+ description: >-
1225
+ Linked homeR2PTransactionId which was generated as part of POST
1226
+ /requestToPay to SDK incase of requestToPay transfer.
1199
1227
  amount:
1200
1228
  $ref: '#/components/schemas/money'
1201
1229
  amountType:
@@ -1233,6 +1261,8 @@ components:
1233
1261
  $ref: '#/components/schemas/transactionId'
1234
1262
  transactionType:
1235
1263
  $ref: '#/components/schemas/transactionType'
1264
+ transactionRequestId:
1265
+ $ref: '#/components/schemas/transactionRequestId'
1236
1266
  required:
1237
1267
  - quoteId
1238
1268
  - transactionId
@@ -1346,7 +1376,7 @@ components:
1346
1376
  transactionRequestResponse:
1347
1377
  description: A response to a request for a quote.
1348
1378
  properties:
1349
- homeTransactionId:
1379
+ homeR2PTransactionId:
1350
1380
  type: string
1351
1381
  description: >-
1352
1382
  Transaction ID from the DFSP backend, used to reconcile transactions
@@ -1483,6 +1513,11 @@ components:
1483
1513
  type: object
1484
1514
  transferRequest:
1485
1515
  properties:
1516
+ homeR2PTransactionId:
1517
+ type: string
1518
+ description: >-
1519
+ Linked homeR2PTransactionId which was generated as part of POST
1520
+ /requestToPay to SDK incase of requestToPay transfer.
1486
1521
  amount:
1487
1522
  $ref: '#/components/schemas/money'
1488
1523
  amountType:
@@ -1513,6 +1548,8 @@ components:
1513
1548
  $ref: '#/components/schemas/transactionType'
1514
1549
  transferId:
1515
1550
  $ref: '#/components/schemas/transferId'
1551
+ transactionRequestId:
1552
+ $ref: '#/components/schemas/transactionRequestId'
1516
1553
  required:
1517
1554
  - transferId
1518
1555
  - quote
@@ -1560,6 +1597,18 @@ components:
1560
1597
  - WAITING_FOR_QUOTE_ACCEPTANCE
1561
1598
  - COMPLETED
1562
1599
  type: string
1600
+ requestToPayCallback:
1601
+ description: Callback for requestToPay.
1602
+ properties:
1603
+ homeR2PTransactionId:
1604
+ type: string
1605
+ description: >-
1606
+ Transaction ID from the DFSP backend, used to reconcile transactions
1607
+ between the Switch and DFSP backend systems.
1608
+ transactionRequestState:
1609
+ $ref: '#/components/schemas/transactionRequestState'
1610
+ required:
1611
+ - transactionRequestState
1563
1612
  TransactionSubScenario:
1564
1613
  title: TransactionSubScenario
1565
1614
  type: string
@@ -2370,7 +2370,8 @@ components:
2370
2370
  requestToPayTransferRequest:
2371
2371
  type: object
2372
2372
  required:
2373
- - requestToPayTransactionId
2373
+ - homeR2PTransactionId
2374
+ - transactionRequestId
2374
2375
  - from
2375
2376
  - to
2376
2377
  - amountType
@@ -2380,11 +2381,13 @@ components:
2380
2381
  - initiator
2381
2382
  - initiatorType
2382
2383
  properties:
2383
- requestToPayTransactionId:
2384
+ homeR2PTransactionId:
2384
2385
  type: string
2385
2386
  description: >-
2386
2387
  Transaction ID from the DFSP backend, used to reconcile transactions
2387
2388
  between the Switch and DFSP backend systems.
2389
+ transactionRequestId:
2390
+ $ref: '#/components/schemas/CorrelationId'
2388
2391
  from:
2389
2392
  $ref: '#/components/schemas/transferParty'
2390
2393
  to:
@@ -2403,6 +2406,8 @@ components:
2403
2406
  $ref: '#/components/schemas/TransactionInitiatorType'
2404
2407
  note:
2405
2408
  $ref: '#/components/schemas/Note'
2409
+ authenticationType:
2410
+ $ref: '#/components/schemas/AuthenticationType'
2406
2411
  requestToPayTransferResponse:
2407
2412
  type: object
2408
2413
  required:
@@ -6153,6 +6153,10 @@
6153
6153
  "quoteRequest": {
6154
6154
  "description": "A request for a quote for transfer from the DFSP backend.",
6155
6155
  "properties": {
6156
+ "homeR2PTransactionId": {
6157
+ "type": "string",
6158
+ "description": "Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer."
6159
+ },
6156
6160
  "amount": {
6157
6161
  "pattern": "^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,3}[1-9])?$",
6158
6162
  "type": "string"
@@ -6781,6 +6785,11 @@
6781
6785
  "PAYMENT"
6782
6786
  ],
6783
6787
  "type": "string"
6788
+ },
6789
+ "transactionRequestId": {
6790
+ "description": "A Mojaloop API transaction request identifier (UUID).",
6791
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
6792
+ "type": "string"
6784
6793
  }
6785
6794
  },
6786
6795
  "required": [
@@ -8037,7 +8046,7 @@
8037
8046
  "transactionRequestResponse": {
8038
8047
  "description": "A response to a request for a quote.",
8039
8048
  "properties": {
8040
- "homeTransactionId": {
8049
+ "homeR2PTransactionId": {
8041
8050
  "type": "string",
8042
8051
  "description": "Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems."
8043
8052
  },
@@ -8659,6 +8668,10 @@
8659
8668
  },
8660
8669
  "transferRequest": {
8661
8670
  "properties": {
8671
+ "homeR2PTransactionId": {
8672
+ "type": "string",
8673
+ "description": "Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer."
8674
+ },
8662
8675
  "amount": {
8663
8676
  "pattern": "^([0]|([1-9][0-9]{0,17}))([.][0-9]{0,3}[1-9])?$",
8664
8677
  "type": "string"
@@ -10408,6 +10421,11 @@
10408
10421
  "description": "A Mojaloop API transfer identifier (UUID).",
10409
10422
  "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
10410
10423
  "type": "string"
10424
+ },
10425
+ "transactionRequestId": {
10426
+ "description": "A Mojaloop API transaction request identifier (UUID).",
10427
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
10428
+ "type": "string"
10411
10429
  }
10412
10430
  },
10413
10431
  "required": [
@@ -10477,6 +10495,27 @@
10477
10495
  ],
10478
10496
  "type": "string"
10479
10497
  },
10498
+ "requestToPayCallback": {
10499
+ "description": "Callback for requestToPay.",
10500
+ "properties": {
10501
+ "homeR2PTransactionId": {
10502
+ "type": "string",
10503
+ "description": "Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems."
10504
+ },
10505
+ "transactionRequestState": {
10506
+ "enum": [
10507
+ "RECEIVED",
10508
+ "PENDING",
10509
+ "ACCEPTED",
10510
+ "REJECTED"
10511
+ ],
10512
+ "type": "string"
10513
+ }
10514
+ },
10515
+ "required": [
10516
+ "transactionRequestState"
10517
+ ]
10518
+ },
10480
10519
  "TransactionSubScenario": {
10481
10520
  "title": "TransactionSubScenario",
10482
10521
  "type": "string",
@@ -16,6 +16,10 @@ export interface paths {
16
16
  /** The HTTP request `PUT /bulkTransactions/{bulkTransactionId}` is used to amend information regarding a bulk transaction, i.e. when autoAcceptParty or autoAcceptQuote is false then the payer need to provide confirmation to proceed with further processing of the request. The `{bulkTransactionId}` in the URI should contain the `bulkTransactionId` that was used for the creation of the bulk transfer. */
17
17
  put: operations["BackendBulkTransactionsPut"];
18
18
  };
19
+ "/requestToPay/{transactionRequestId}": {
20
+ /** It is used to notify the DFSP backend about the status of the requestToPayTransfer. */
21
+ put: operations["RequestToPayPut"];
22
+ };
19
23
  "/bulkTransfers": {
20
24
  post: operations["BackendBulkTransfersPost"];
21
25
  };
@@ -342,6 +346,8 @@ export interface components {
342
346
  quoteId: string;
343
347
  /** @description A request for a quote for transfer from the DFSP backend. */
344
348
  quoteRequest: {
349
+ /** @description Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer. */
350
+ homeR2PTransactionId?: string;
345
351
  amount: components["schemas"]["money"];
346
352
  amountType: components["schemas"]["amountType"];
347
353
  currency: components["schemas"]["currency"];
@@ -360,6 +366,7 @@ export interface components {
360
366
  to: components["schemas"]["transferParty"];
361
367
  transactionId: components["schemas"]["transactionId"];
362
368
  transactionType: components["schemas"]["transactionType"];
369
+ transactionRequestId?: components["schemas"]["transactionRequestId"];
363
370
  };
364
371
  /** @description A response to a request for a quote. */
365
372
  quoteResponse: {
@@ -405,7 +412,7 @@ export interface components {
405
412
  /** @description A response to a request for a quote. */
406
413
  transactionRequestResponse: {
407
414
  /** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
408
- homeTransactionId?: string;
415
+ homeR2PTransactionId?: string;
409
416
  transactionId: components["schemas"]["transactionId"];
410
417
  transactionRequestState: components["schemas"]["transactionRequestState"];
411
418
  };
@@ -465,6 +472,8 @@ export interface components {
465
472
  type?: components["schemas"]["payerType"];
466
473
  };
467
474
  transferRequest: {
475
+ /** @description Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer. */
476
+ homeR2PTransactionId?: string;
468
477
  amount: components["schemas"]["money"];
469
478
  amountType: components["schemas"]["amountType"];
470
479
  currency: components["schemas"]["currency"];
@@ -479,6 +488,7 @@ export interface components {
479
488
  to: components["schemas"]["transferParty"];
480
489
  transactionType: components["schemas"]["transactionType"];
481
490
  transferId: components["schemas"]["transferId"];
491
+ transactionRequestId?: components["schemas"]["transactionRequestId"];
482
492
  };
483
493
  transferResponse: {
484
494
  completedTimestamp?: components["schemas"]["timestamp"];
@@ -495,6 +505,12 @@ export interface components {
495
505
  transferState: "RECEIVED" | "RESERVED" | "COMMITTED" | "ABORTED";
496
506
  /** @enum {string} */
497
507
  transferStatus: "ERROR_OCCURRED" | "WAITING_FOR_PARTY_ACCEPTANCE" | "WAITING_FOR_QUOTE_ACCEPTANCE" | "COMPLETED";
508
+ /** @description Callback for requestToPay. */
509
+ requestToPayCallback: {
510
+ /** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
511
+ homeR2PTransactionId?: string;
512
+ transactionRequestState: components["schemas"]["transactionRequestState"];
513
+ };
498
514
  /**
499
515
  * TransactionSubScenario
500
516
  * @description Possible sub-scenario, defined locally within the scheme (UndefinedEnum Type).
@@ -905,6 +921,25 @@ export interface operations {
905
921
  };
906
922
  };
907
923
  };
924
+ /** It is used to notify the DFSP backend about the status of the requestToPayTransfer. */
925
+ RequestToPayPut: {
926
+ parameters: {
927
+ path: {
928
+ transactionRequestId: components["parameters"]["transactionRequestId"];
929
+ };
930
+ };
931
+ responses: {
932
+ /** OK */
933
+ 200: unknown;
934
+ 400: components["responses"]["400"];
935
+ 500: components["responses"]["500"];
936
+ };
937
+ requestBody: {
938
+ content: {
939
+ "application/json": components["schemas"]["requestToPayCallback"];
940
+ };
941
+ };
942
+ };
908
943
  BackendBulkTransfersPost: {
909
944
  responses: {
910
945
  /** The bulk transfer was accepted. */
@@ -2011,6 +2011,10 @@ export declare namespace Schemas {
2011
2011
  const quoteRequest: {
2012
2012
  description: string;
2013
2013
  properties: {
2014
+ homeR2PTransactionId: {
2015
+ type: string;
2016
+ description: string;
2017
+ };
2014
2018
  amount: {
2015
2019
  pattern: string;
2016
2020
  type: string;
@@ -2256,6 +2260,11 @@ export declare namespace Schemas {
2256
2260
  enum: string[];
2257
2261
  type: string;
2258
2262
  };
2263
+ transactionRequestId: {
2264
+ description: string;
2265
+ pattern: string;
2266
+ type: string;
2267
+ };
2259
2268
  };
2260
2269
  required: string[];
2261
2270
  type: string;
@@ -2601,7 +2610,7 @@ export declare namespace Schemas {
2601
2610
  const transactionRequestResponse: {
2602
2611
  description: string;
2603
2612
  properties: {
2604
- homeTransactionId: {
2613
+ homeR2PTransactionId: {
2605
2614
  type: string;
2606
2615
  description: string;
2607
2616
  };
@@ -2951,6 +2960,10 @@ export declare namespace Schemas {
2951
2960
  };
2952
2961
  const transferRequest: {
2953
2962
  properties: {
2963
+ homeR2PTransactionId: {
2964
+ type: string;
2965
+ description: string;
2966
+ };
2954
2967
  amount: {
2955
2968
  pattern: string;
2956
2969
  type: string;
@@ -3596,6 +3609,11 @@ export declare namespace Schemas {
3596
3609
  pattern: string;
3597
3610
  type: string;
3598
3611
  };
3612
+ transactionRequestId: {
3613
+ description: string;
3614
+ pattern: string;
3615
+ type: string;
3616
+ };
3599
3617
  };
3600
3618
  required: string[];
3601
3619
  type: string;
@@ -3637,6 +3655,20 @@ export declare namespace Schemas {
3637
3655
  enum: string[];
3638
3656
  type: string;
3639
3657
  };
3658
+ const requestToPayCallback: {
3659
+ description: string;
3660
+ properties: {
3661
+ homeR2PTransactionId: {
3662
+ type: string;
3663
+ description: string;
3664
+ };
3665
+ transactionRequestState: {
3666
+ enum: string[];
3667
+ type: string;
3668
+ };
3669
+ };
3670
+ required: string[];
3671
+ };
3640
3672
  const TransactionSubScenario: {
3641
3673
  title: string;
3642
3674
  type: string;
@@ -71,6 +71,7 @@ var Schemas;
71
71
  Schemas.transferResponse = json_schemas_json_1.default.transferResponse;
72
72
  Schemas.transferState = json_schemas_json_1.default.transferState;
73
73
  Schemas.transferStatus = json_schemas_json_1.default.transferStatus;
74
+ Schemas.requestToPayCallback = json_schemas_json_1.default.requestToPayCallback;
74
75
  Schemas.TransactionSubScenario = json_schemas_json_1.default.TransactionSubScenario;
75
76
  Schemas.CorrelationId = json_schemas_json_1.default.CorrelationId;
76
77
  Schemas.bulkTransactionStatus = json_schemas_json_1.default.bulkTransactionStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_0_0/backend/schemas.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;AAEpD,kEAAkE;AAElE,oFAA6C;AAE7C,IAAiB,OAAO,CA4GvB;AA5GD,WAAiB,OAAO;IACT,mBAAW,GAAG,2BAAW,CAAC,WAAW,CAAA;IACrC,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,aAAK,GAAG,2BAAW,CAAC,KAAK,CAAA;IACzB,uBAAe,GAAG,2BAAW,CAAC,eAAe,CAAA;IAC7C,mCAA2B,GAAG,2BAAW,CAAC,2BAA2B,CAAA;IACrE,oCAA4B,GAAG,2BAAW,CAAC,4BAA4B,CAAA;IACvE,0BAAkB,GAAG,2BAAW,CAAC,kBAAkB,CAAA;IACnD,gCAAwB,GAAG,2BAAW,CAAC,wBAAwB,CAAA;IAC/D,gBAAQ,GAAG,2BAAW,CAAC,QAAQ,CAAA;IAC/B,kCAA0B,GAAG,2BAAW,CAAC,0BAA0B,CAAA;IACnE,kBAAU,GAAG,2BAAW,CAAC,UAAU,CAAA;IACnC,sBA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AAiB,GAAG,2BAAW,CAAC,iBAAiB,CAAA;IACjD,aAAK,GAAG,2BAAW,CAAC,KAAK,CAAA;IACzB,kBAAU,GAAG,2BAAW,CAAC,UAAU,CAAA;IACnC,YAAI,GAAG,2BAAW,CAAC,IAAI,CAAA;IACvB,aAAK,GAAG,2BAAW,CAAC,KAAK,CAAA;IACzB,gBAAQ,GAAG,2BAAW,CAAC,QAAQ,CAAA;IAC/B,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,eAAO,GAAG,2BAAW,CAAC,OAAO,CAAA;IAC7B,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,oBAAY,GAAG,2BAAW,CAAC,YAAY,CAAA;IACvC,iBAAS,GAAG,2BAAW,CAAC,SAAS,CAAA;IACjC,wBAAgB,GAAG,2BAAW,CAAC,gBAAgB,CAAA;IAC/C,wBAAgB,GAAG,2BAAW,CAAC,gBAAgB,CAAA;IAC/C,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,kBAAU,GAAG,2BAAW,CAAC,UAAU,CAAA;IACnC,6BAAqB,GAAG,2BAAW,CAAC,qBAAqB,CAAA;IACzD,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,qBAAa,GAAG,2BAAW,CAAC,aAAa,CAAA;IACzC,gCAAwB,GAAG,2BAAW,CAAC,wBAAwB,CAAA;IAC/D,+CAAuC,GAAG,2BAAW,CAAC,uCAAuC,CAAA;IAC7F,+BAAuB,GAAG,2BAAW,CAAC,uBAAuB,CAAA;IAC7D,0BAAkB,GAAG,2BAAW,CAAC,kBAAkB,CAAA;AAClE,CAAC,EA7GgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA6GvB"}
@@ -65,6 +65,7 @@ export declare namespace Types {
65
65
  type transferResponse = components['schemas']['transferResponse'];
66
66
  type transferState = components['schemas']['transferState'];
67
67
  type transferStatus = components['schemas']['transferStatus'];
68
+ type requestToPayCallback = components['schemas']['requestToPayCallback'];
68
69
  type TransactionSubScenario = components['schemas']['TransactionSubScenario'];
69
70
  type CorrelationId = components['schemas']['CorrelationId'];
70
71
  type bulkTransactionStatus = components['schemas']['bulkTransactionStatus'];
@@ -20662,7 +20662,8 @@
20662
20662
  "requestToPayTransferRequest": {
20663
20663
  "type": "object",
20664
20664
  "required": [
20665
- "requestToPayTransactionId",
20665
+ "homeR2PTransactionId",
20666
+ "transactionRequestId",
20666
20667
  "from",
20667
20668
  "to",
20668
20669
  "amountType",
@@ -20673,10 +20674,17 @@
20673
20674
  "initiatorType"
20674
20675
  ],
20675
20676
  "properties": {
20676
- "requestToPayTransactionId": {
20677
+ "homeR2PTransactionId": {
20677
20678
  "type": "string",
20678
20679
  "description": "Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems."
20679
20680
  },
20681
+ "transactionRequestId": {
20682
+ "title": "CorrelationId",
20683
+ "type": "string",
20684
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
20685
+ "description": "Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).",
20686
+ "example": "b51ec534-ee48-4575-b6a9-ead2955b8069"
20687
+ },
20680
20688
  "from": {
20681
20689
  "type": "object",
20682
20690
  "required": [
@@ -21250,6 +21258,17 @@
21250
21258
  "maxLength": 128,
21251
21259
  "description": "Memo assigned to transaction.",
21252
21260
  "example": "Note sent to Payee."
21261
+ },
21262
+ "authenticationType": {
21263
+ "title": "AuthenticationType",
21264
+ "type": "string",
21265
+ "enum": [
21266
+ "OTP",
21267
+ "QRCODE",
21268
+ "U2F"
21269
+ ],
21270
+ "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.",
21271
+ "example": "OTP"
21253
21272
  }
21254
21273
  }
21255
21274
  },
@@ -1215,7 +1215,8 @@ export interface components {
1215
1215
  };
1216
1216
  requestToPayTransferRequest: {
1217
1217
  /** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
1218
- requestToPayTransactionId: string;
1218
+ homeR2PTransactionId: string;
1219
+ transactionRequestId: components["schemas"]["CorrelationId"];
1219
1220
  from: components["schemas"]["transferParty"];
1220
1221
  to: components["schemas"]["transferParty"];
1221
1222
  amountType: components["schemas"]["AmountType"];
@@ -1225,6 +1226,7 @@ export interface components {
1225
1226
  initiator: components["schemas"]["TransactionInitiator"];
1226
1227
  initiatorType: components["schemas"]["TransactionInitiatorType"];
1227
1228
  note?: components["schemas"]["Note"];
1229
+ authenticationType?: components["schemas"]["AuthenticationType"];
1228
1230
  };
1229
1231
  requestToPayTransferResponse: {
1230
1232
  transferId?: components["schemas"]["CorrelationId"];
@@ -10359,9 +10359,16 @@ export declare namespace Schemas {
10359
10359
  type: string;
10360
10360
  required: string[];
10361
10361
  properties: {
10362
- requestToPayTransactionId: {
10362
+ homeR2PTransactionId: {
10363
+ type: string;
10364
+ description: string;
10365
+ };
10366
+ transactionRequestId: {
10367
+ title: string;
10363
10368
  type: string;
10369
+ pattern: string;
10364
10370
  description: string;
10371
+ example: string;
10365
10372
  };
10366
10373
  from: {
10367
10374
  type: string;
@@ -10701,6 +10708,13 @@ export declare namespace Schemas {
10701
10708
  description: string;
10702
10709
  example: string;
10703
10710
  };
10711
+ authenticationType: {
10712
+ title: string;
10713
+ type: string;
10714
+ enum: string[];
10715
+ description: string;
10716
+ example: string;
10717
+ };
10704
10718
  };
10705
10719
  };
10706
10720
  const requestToPayTransferResponse: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.1.0-snapshot.1",
3
+ "version": "17.2.0-snapshot.0",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -72,7 +72,7 @@
72
72
  "jest-ts-auto-mock": "^2.1.0",
73
73
  "js-yaml": "^4.1.0",
74
74
  "json-refs": "^3.0.15",
75
- "openapi-types": "^12.1.0",
75
+ "openapi-types": "^12.1.3",
76
76
  "openapi-typescript": "^5.4.1",
77
77
  "ts-auto-mock": "^3.6.4",
78
78
  "ttypescript": "^1.5.15"
@@ -86,10 +86,10 @@
86
86
  "@commitlint/config-conventional": "^17.6.3",
87
87
  "@redocly/openapi-cli": "^1.0.0-beta.94",
88
88
  "@types/jest": "^29.5.1",
89
- "@typescript-eslint/eslint-plugin": "^5.59.6",
90
- "@typescript-eslint/parser": "^5.59.6",
89
+ "@typescript-eslint/eslint-plugin": "^5.59.7",
90
+ "@typescript-eslint/parser": "^5.59.7",
91
91
  "diff": "^5.1.0",
92
- "eslint": "^8.40.0",
92
+ "eslint": "^8.41.0",
93
93
  "eslint-config-prettier": "^8.8.0",
94
94
  "eslint-config-standard": "^17.0.0",
95
95
  "eslint-import-resolver-typescript": "^3.5.5",
@@ -110,7 +110,7 @@
110
110
  "swagger-cli": "^4.0.4",
111
111
  "ts-jest": "^29.1.0",
112
112
  "ts-node": "^10.9.1",
113
- "tslib": "^2.5.1",
113
+ "tslib": "^2.5.2",
114
114
  "typescript": "^4.9.4"
115
115
  },
116
116
  "publishConfig": {
@@ -89,6 +89,27 @@ paths:
89
89
  summary: Callbacks for the bulk transaction request.
90
90
  tags:
91
91
  - BulkTransactionsPut
92
+ /requestToPay/{transactionRequestId}:
93
+ put:
94
+ description: It is used to notify the DFSP backend about the status of the requestToPayTransfer.
95
+ operationId: RequestToPayPut
96
+ parameters:
97
+ - $ref: '#/components/parameters/transactionRequestId'
98
+ requestBody:
99
+ content:
100
+ application/json:
101
+ schema:
102
+ $ref: '#/components/schemas/requestToPayCallback'
103
+ responses:
104
+ '200':
105
+ description: OK
106
+ '400':
107
+ $ref: '#/components/responses/400'
108
+ '500':
109
+ $ref: '#/components/responses/500'
110
+ summary: Callback for the requestToPay request.
111
+ tags:
112
+ - RequestToPayPut
92
113
  /bulkTransfers:
93
114
  post:
94
115
  operationId: BackendBulkTransfersPost
@@ -1096,6 +1117,10 @@ components:
1096
1117
  quoteRequest:
1097
1118
  description: A request for a quote for transfer from the DFSP backend.
1098
1119
  properties:
1120
+ homeR2PTransactionId:
1121
+ type: string
1122
+ description: >-
1123
+ Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer.
1099
1124
  amount:
1100
1125
  $ref: '#/components/schemas/money'
1101
1126
  amountType:
@@ -1133,6 +1158,8 @@ components:
1133
1158
  $ref: '#/components/schemas/transactionId'
1134
1159
  transactionType:
1135
1160
  $ref: '#/components/schemas/transactionType'
1161
+ transactionRequestId:
1162
+ $ref: '#/components/schemas/transactionRequestId'
1136
1163
  required:
1137
1164
  - quoteId
1138
1165
  - transactionId
@@ -1241,7 +1268,7 @@ components:
1241
1268
  transactionRequestResponse:
1242
1269
  description: A response to a request for a quote.
1243
1270
  properties:
1244
- homeTransactionId:
1271
+ homeR2PTransactionId:
1245
1272
  type: string
1246
1273
  description: >-
1247
1274
  Transaction ID from the DFSP backend, used to reconcile transactions
@@ -1371,6 +1398,10 @@ components:
1371
1398
  type: object
1372
1399
  transferRequest:
1373
1400
  properties:
1401
+ homeR2PTransactionId:
1402
+ type: string
1403
+ description: >-
1404
+ Linked homeR2PTransactionId which was generated as part of POST /requestToPay to SDK incase of requestToPay transfer.
1374
1405
  amount:
1375
1406
  $ref: '#/components/schemas/money'
1376
1407
  amountType:
@@ -1401,6 +1432,8 @@ components:
1401
1432
  $ref: '#/components/schemas/transactionType'
1402
1433
  transferId:
1403
1434
  $ref: '#/components/schemas/transferId'
1435
+ transactionRequestId:
1436
+ $ref: '#/components/schemas/transactionRequestId'
1404
1437
  required:
1405
1438
  - transferId
1406
1439
  - quote
@@ -1442,3 +1475,15 @@ components:
1442
1475
  - WAITING_FOR_QUOTE_ACCEPTANCE
1443
1476
  - COMPLETED
1444
1477
  type: string
1478
+ requestToPayCallback:
1479
+ description: Callback for requestToPay.
1480
+ properties:
1481
+ homeR2PTransactionId:
1482
+ type: string
1483
+ description: >-
1484
+ Transaction ID from the DFSP backend, used to reconcile transactions
1485
+ between the Switch and DFSP backend systems.
1486
+ transactionRequestState:
1487
+ $ref: '#/components/schemas/transactionRequestState'
1488
+ required:
1489
+ - transactionRequestState
@@ -1,6 +1,7 @@
1
1
  type: object
2
2
  required:
3
- - requestToPayTransactionId
3
+ - homeR2PTransactionId
4
+ - transactionRequestId
4
5
  - from
5
6
  - to
6
7
  - amountType
@@ -10,11 +11,13 @@ required:
10
11
  - initiator
11
12
  - initiatorType
12
13
  properties:
13
- requestToPayTransactionId:
14
+ homeR2PTransactionId:
14
15
  type: string
15
16
  description: >-
16
17
  Transaction ID from the DFSP backend, used to reconcile transactions
17
18
  between the Switch and DFSP backend systems.
19
+ transactionRequestId:
20
+ $ref: ./CorrelationId.yaml
18
21
  from:
19
22
  $ref: ./transferParty.yaml
20
23
  to:
@@ -33,3 +36,5 @@ properties:
33
36
  $ref: ./TransactionInitiatorType.yaml
34
37
  note:
35
38
  $ref: ./Note.yaml
39
+ authenticationType:
40
+ $ref: './AuthenticationType.yaml'