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

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.
@@ -383,15 +383,15 @@ paths:
383
383
  $ref: '#/components/responses/transferServerError'
384
384
  '504':
385
385
  $ref: '#/components/responses/transferTimeout'
386
- /requestToPayTransfer/{requestToPayTransactionId}:
386
+ /requestToPayTransfer/{transactionRequestId}:
387
387
  put:
388
388
  summary: >-
389
389
  Continues a transfer that has paused at the otp stage in order to accept
390
390
  or reject quote
391
391
  description: >
392
- The HTTP request `PUT /transfers/{transferId}` is used to continue a
393
- transfer initiated via the `POST /transfers` method that has halted
394
- after party lookup and/or quotation stage.
392
+ This request is used to continue a requestToPayTransfer initiated via
393
+ the `POST /requestToPayTransfer` method that has halted after quotation
394
+ stage and/or otp stage.
395
395
 
396
396
 
397
397
  The request body should contain either the "acceptOTP" or "acceptQuote"
@@ -410,7 +410,7 @@ paths:
410
410
  - $ref: '#/components/schemas/transferContinuationAcceptQuote'
411
411
  - $ref: '#/components/schemas/transferContinuationAcceptOTP'
412
412
  parameters:
413
- - $ref: '#/components/parameters/requestToPayTransactionId'
413
+ - $ref: '#/components/parameters/transactionRequestId'
414
414
  responses:
415
415
  '200':
416
416
  $ref: '#/components/responses/transferSuccess'
@@ -2411,7 +2411,7 @@ components:
2411
2411
  requestToPayTransferResponse:
2412
2412
  type: object
2413
2413
  required:
2414
- - requestToPayTransactionId
2414
+ - transactionRequestId
2415
2415
  - from
2416
2416
  - to
2417
2417
  - amountType
@@ -2421,11 +2421,13 @@ components:
2421
2421
  properties:
2422
2422
  transferId:
2423
2423
  $ref: '#/components/schemas/CorrelationId'
2424
- requestToPayTransactionId:
2424
+ homeR2PTransactionId:
2425
2425
  type: string
2426
2426
  description: >-
2427
2427
  Transaction ID from the DFSP backend, used to reconcile transactions
2428
2428
  between the Switch and DFSP backend systems.
2429
+ transactionRequestId:
2430
+ $ref: '#/components/schemas/CorrelationId'
2429
2431
  from:
2430
2432
  $ref: '#/components/schemas/transferParty'
2431
2433
  to:
@@ -2808,15 +2810,6 @@ components:
2808
2810
  description: >-
2809
2811
  Identifier of the merchant request to pay to continue as returned in the
2810
2812
  response to a `POST /requestToPay` request.
2811
- requestToPayTransactionId:
2812
- name: requestToPayTransactionId
2813
- in: path
2814
- required: true
2815
- schema:
2816
- $ref: '#/components/schemas/CorrelationId'
2817
- description: >-
2818
- Identifier of the merchant request to pay transfer to continue as
2819
- returned in the response to a `POST /requestToPayTransfer` request.
2820
2813
  transferId:
2821
2814
  name: transferId
2822
2815
  in: path
@@ -21275,7 +21275,7 @@
21275
21275
  "requestToPayTransferResponse": {
21276
21276
  "type": "object",
21277
21277
  "required": [
21278
- "requestToPayTransactionId",
21278
+ "transactionRequestId",
21279
21279
  "from",
21280
21280
  "to",
21281
21281
  "amountType",
@@ -21291,10 +21291,17 @@
21291
21291
  "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 (‘-‘).",
21292
21292
  "example": "b51ec534-ee48-4575-b6a9-ead2955b8069"
21293
21293
  },
21294
- "requestToPayTransactionId": {
21294
+ "homeR2PTransactionId": {
21295
21295
  "type": "string",
21296
21296
  "description": "Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems."
21297
21297
  },
21298
+ "transactionRequestId": {
21299
+ "title": "CorrelationId",
21300
+ "type": "string",
21301
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
21302
+ "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 (‘-‘).",
21303
+ "example": "b51ec534-ee48-4575-b6a9-ead2955b8069"
21304
+ },
21298
21305
  "from": {
21299
21306
  "type": "object",
21300
21307
  "required": [
@@ -272,9 +272,9 @@ export interface paths {
272
272
  };
273
273
  };
274
274
  };
275
- "/requestToPayTransfer/{requestToPayTransactionId}": {
275
+ "/requestToPayTransfer/{transactionRequestId}": {
276
276
  /**
277
- * The HTTP request `PUT /transfers/{transferId}` is used to continue a transfer initiated via the `POST /transfers` method that has halted after party lookup and/or quotation stage.
277
+ * This request is used to continue a requestToPayTransfer initiated via the `POST /requestToPayTransfer` method that has halted after quotation stage and/or otp stage.
278
278
  *
279
279
  * The request body should contain either the "acceptOTP" or "acceptQuote" property set to `true` as required to continue the transfer.
280
280
  *
@@ -283,8 +283,8 @@ export interface paths {
283
283
  put: {
284
284
  parameters: {
285
285
  path: {
286
- /** Identifier of the merchant request to pay transfer to continue as returned in the response to a `POST /requestToPayTransfer` request. */
287
- requestToPayTransactionId: components["parameters"]["requestToPayTransactionId"];
286
+ /** Identifier of the merchant request to pay to continue as returned in the response to a `POST /requestToPay` request. */
287
+ transactionRequestId: components["parameters"]["transactionRequestId"];
288
288
  };
289
289
  };
290
290
  responses: {
@@ -1231,7 +1231,8 @@ export interface components {
1231
1231
  requestToPayTransferResponse: {
1232
1232
  transferId?: components["schemas"]["CorrelationId"];
1233
1233
  /** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
1234
- requestToPayTransactionId: string;
1234
+ homeR2PTransactionId?: string;
1235
+ transactionRequestId: components["schemas"]["CorrelationId"];
1235
1236
  from: components["schemas"]["transferParty"];
1236
1237
  to: components["schemas"]["transferParty"];
1237
1238
  amountType: components["schemas"]["AmountType"];
@@ -1476,8 +1477,6 @@ export interface components {
1476
1477
  SubId: string;
1477
1478
  /** @description Identifier of the merchant request to pay to continue as returned in the response to a `POST /requestToPay` request. */
1478
1479
  transactionRequestId: components["schemas"]["CorrelationId"];
1479
- /** @description Identifier of the merchant request to pay transfer to continue as returned in the response to a `POST /requestToPayTransfer` request. */
1480
- requestToPayTransactionId: components["schemas"]["CorrelationId"];
1481
1480
  /** @description Identifier of the transfer to continue as returned in the response to a `POST /transfers` request. */
1482
1481
  transferId: components["schemas"]["CorrelationId"];
1483
1482
  };
@@ -10728,9 +10728,16 @@ export declare namespace Schemas {
10728
10728
  description: string;
10729
10729
  example: string;
10730
10730
  };
10731
- requestToPayTransactionId: {
10731
+ homeR2PTransactionId: {
10732
+ type: string;
10733
+ description: string;
10734
+ };
10735
+ transactionRequestId: {
10736
+ title: string;
10732
10737
  type: string;
10738
+ pattern: string;
10733
10739
  description: string;
10740
+ example: string;
10734
10741
  };
10735
10742
  from: {
10736
10743
  type: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.2.0-snapshot.0",
3
+ "version": "17.2.0-snapshot.1",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  type: object
2
2
  required:
3
- - requestToPayTransactionId
3
+ - transactionRequestId
4
4
  - from
5
5
  - to
6
6
  - amountType
@@ -10,11 +10,13 @@ required:
10
10
  properties:
11
11
  transferId:
12
12
  $ref: ./CorrelationId.yaml
13
- requestToPayTransactionId:
13
+ homeR2PTransactionId:
14
14
  type: string
15
15
  description: >-
16
16
  Transaction ID from the DFSP backend, used to reconcile transactions
17
17
  between the Switch and DFSP backend systems.
18
+ transactionRequestId:
19
+ $ref: ./CorrelationId.yaml
18
20
  from:
19
21
  $ref: ./transferParty.yaml
20
22
  to:
@@ -48,8 +48,8 @@ paths:
48
48
  $ref: paths/requestToPay_transactionRequestId.yaml
49
49
  /requestToPayTransfer:
50
50
  $ref: paths/requestToPayTransfer.yaml
51
- /requestToPayTransfer/{requestToPayTransactionId}:
52
- $ref: paths/requestToPayTransfer_requestToPayTransactionId.yaml
51
+ /requestToPayTransfer/{transactionRequestId}:
52
+ $ref: paths/requestToPayTransfer_transactionRequestId.yaml
53
53
  /simpleTransfers:
54
54
  $ref: paths/simpleTransfers.yaml
55
55
  /transfers:
@@ -3,9 +3,9 @@ put:
3
3
  Continues a transfer that has paused at the otp stage in order to accept or
4
4
  reject quote
5
5
  description: >
6
- The HTTP request `PUT /transfers/{transferId}` is used to continue a
7
- transfer initiated via the `POST /transfers` method that has halted after
8
- party lookup and/or quotation stage.
6
+ This request is used to continue a
7
+ requestToPayTransfer initiated via the `POST /requestToPayTransfer` method that has halted after
8
+ quotation stage and/or otp stage.
9
9
 
10
10
 
11
11
  The request body should contain either the "acceptOTP" or "acceptQuote"
@@ -24,7 +24,7 @@ put:
24
24
  - $ref: ../../components/schemas/transferContinuationAcceptQuote.yaml
25
25
  - $ref: ../../components/schemas/transferContinuationAcceptOTP.yaml
26
26
  parameters:
27
- - $ref: ../../components/parameters/requestToPayTransactionId.yaml
27
+ - $ref: ../../components/parameters/transactionRequestId.yaml
28
28
  responses:
29
29
  '200':
30
30
  $ref: ../../components/responses/transferSuccess.yaml
@@ -1,8 +0,0 @@
1
- name: requestToPayTransactionId
2
- in: path
3
- required: true
4
- schema:
5
- $ref: ../schemas/CorrelationId.yaml
6
- description: >-
7
- Identifier of the merchant request to pay transfer to continue as returned in
8
- the response to a `POST /requestToPayTransfer` request.