@mojaloop/api-snippets 17.0.4 → 17.0.5-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.
- package/docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml +1 -1
- package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +169 -135
- package/lib/sdk-scheme-adapter/v2_0_0/backend/json-schemas.json +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/backend/openapi.d.ts +1 -3
- package/lib/sdk-scheme-adapter/v2_0_0/backend/schemas.d.ts +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/json-schemas.json +2438 -2369
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/openapi.d.ts +88 -69
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.d.ts +1969 -1897
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js +3 -5
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.js.map +1 -1
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/types.d.ts +3 -5
- package/package.json +1 -1
- package/sdk-scheme-adapter/v2_0_0/backend/openapi.yaml +1 -1
- package/sdk-scheme-adapter/v2_0_0/components/parameters/requestToPayId.yaml +8 -0
- package/sdk-scheme-adapter/v2_0_0/components/schemas/requestToPayResponse.yaml +27 -6
- package/sdk-scheme-adapter/v2_0_0/outbound/openapi.yaml +2 -0
- package/sdk-scheme-adapter/v2_0_0/outbound/paths/requestToPay_requestToPayId.yaml +30 -0
@@ -99,16 +99,14 @@ var Schemas;
|
|
99
99
|
Schemas.quotesPostResponse = json_schemas_json_1.default.quotesPostResponse;
|
100
100
|
Schemas.errorQuotesResponse = json_schemas_json_1.default.errorQuotesResponse;
|
101
101
|
Schemas.requestToPayRequest = json_schemas_json_1.default.requestToPayRequest;
|
102
|
-
Schemas.AuthenticationType = json_schemas_json_1.default.AuthenticationType;
|
103
|
-
Schemas.TransactionRequestState = json_schemas_json_1.default.TransactionRequestState;
|
104
|
-
Schemas.requestToPayResponse = json_schemas_json_1.default.requestToPayResponse;
|
105
|
-
Schemas.requestToPayTransferRequest = json_schemas_json_1.default.requestToPayTransferRequest;
|
106
102
|
Schemas.transferStatus = json_schemas_json_1.default.transferStatus;
|
103
|
+
Schemas.requestToPayResponse = json_schemas_json_1.default.requestToPayResponse;
|
107
104
|
Schemas.QuotesIDPutResponse = json_schemas_json_1.default.QuotesIDPutResponse;
|
108
105
|
Schemas.TransfersIDPutResponse = json_schemas_json_1.default.TransfersIDPutResponse;
|
109
|
-
Schemas.requestToPayTransferResponse = json_schemas_json_1.default.requestToPayTransferResponse;
|
110
106
|
Schemas.transferResponse = json_schemas_json_1.default.transferResponse;
|
111
107
|
Schemas.errorTransferResponse = json_schemas_json_1.default.errorTransferResponse;
|
108
|
+
Schemas.requestToPayTransferRequest = json_schemas_json_1.default.requestToPayTransferRequest;
|
109
|
+
Schemas.requestToPayTransferResponse = json_schemas_json_1.default.requestToPayTransferResponse;
|
112
110
|
Schemas.transferContinuationAcceptOTP = json_schemas_json_1.default.transferContinuationAcceptOTP;
|
113
111
|
Schemas.TransfersPostRequest = json_schemas_json_1.default.TransfersPostRequest;
|
114
112
|
Schemas.simpleTransfersPostRequest = json_schemas_json_1.default.simpleTransfersPostRequest;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../src/sdk-scheme-adapter/v2_0_0/outbound/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_0_0/outbound/schemas.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;AAEpD,kEAAkE;AAElE,oFAA6C;AAE7C,IAAiB,OAAO,CA4GvB;AA5GD,WAAiB,OAAO;IACT,mBAAW,GA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;IACvE,uBAAe,GAAG,2BAAW,CAAC,eAAe,CAAA;IAC7C,8BAAsB,GAAG,2BAAW,CAAC,sBAAsB,CAAA;AAC1E,CAAC,EA5GgB,OAAO,GAAP,eAAO,KAAP,eAAO,QA4GvB"}
|
@@ -93,16 +93,14 @@ export declare namespace Types {
|
|
93
93
|
type quotesPostResponse = components['schemas']['quotesPostResponse'];
|
94
94
|
type errorQuotesResponse = components['schemas']['errorQuotesResponse'];
|
95
95
|
type requestToPayRequest = components['schemas']['requestToPayRequest'];
|
96
|
-
type AuthenticationType = components['schemas']['AuthenticationType'];
|
97
|
-
type TransactionRequestState = components['schemas']['TransactionRequestState'];
|
98
|
-
type requestToPayResponse = components['schemas']['requestToPayResponse'];
|
99
|
-
type requestToPayTransferRequest = components['schemas']['requestToPayTransferRequest'];
|
100
96
|
type transferStatus = components['schemas']['transferStatus'];
|
97
|
+
type requestToPayResponse = components['schemas']['requestToPayResponse'];
|
101
98
|
type QuotesIDPutResponse = components['schemas']['QuotesIDPutResponse'];
|
102
99
|
type TransfersIDPutResponse = components['schemas']['TransfersIDPutResponse'];
|
103
|
-
type requestToPayTransferResponse = components['schemas']['requestToPayTransferResponse'];
|
104
100
|
type transferResponse = components['schemas']['transferResponse'];
|
105
101
|
type errorTransferResponse = components['schemas']['errorTransferResponse'];
|
102
|
+
type requestToPayTransferRequest = components['schemas']['requestToPayTransferRequest'];
|
103
|
+
type requestToPayTransferResponse = components['schemas']['requestToPayTransferResponse'];
|
106
104
|
type transferContinuationAcceptOTP = components['schemas']['transferContinuationAcceptOTP'];
|
107
105
|
type TransfersPostRequest = components['schemas']['TransfersPostRequest'];
|
108
106
|
type simpleTransfersPostRequest = components['schemas']['simpleTransfersPostRequest'];
|
package/package.json
CHANGED
@@ -1,16 +1,23 @@
|
|
1
1
|
type: object
|
2
2
|
required:
|
3
|
-
-
|
3
|
+
- requestToPayId
|
4
4
|
- from
|
5
5
|
- to
|
6
6
|
- amountType
|
7
7
|
- currency
|
8
8
|
- amount
|
9
9
|
- transactionType
|
10
|
-
-
|
10
|
+
- currentState
|
11
11
|
properties:
|
12
|
+
requestToPayId:
|
13
|
+
$ref: ./CorrelationId.yaml
|
12
14
|
transactionRequestId:
|
13
15
|
$ref: ./CorrelationId.yaml
|
16
|
+
homeTransactionId:
|
17
|
+
type: string
|
18
|
+
description: >-
|
19
|
+
Transaction ID from the DFSP backend, used to reconcile transactions
|
20
|
+
between the Switch and DFSP backend systems.
|
14
21
|
from:
|
15
22
|
$ref: ./transferParty.yaml
|
16
23
|
to:
|
@@ -25,7 +32,21 @@ properties:
|
|
25
32
|
$ref: ./TransactionScenario.yaml
|
26
33
|
subScenario:
|
27
34
|
$ref: ./TransactionSubScenario.yaml
|
28
|
-
|
29
|
-
$ref: ./
|
30
|
-
|
31
|
-
|
35
|
+
currentState:
|
36
|
+
$ref: ./transferStatus.yaml
|
37
|
+
getPartiesResponse:
|
38
|
+
type: object
|
39
|
+
required:
|
40
|
+
- body
|
41
|
+
properties:
|
42
|
+
body:
|
43
|
+
type: object
|
44
|
+
headers:
|
45
|
+
type: object
|
46
|
+
lastError:
|
47
|
+
description: >
|
48
|
+
Object representing the last error to occur during a transfer process.
|
49
|
+
This may be a Mojaloop API error returned from another entity in the
|
50
|
+
scheme or an object representing other types of error e.g. exceptions that
|
51
|
+
may occur inside the scheme adapter.
|
52
|
+
$ref: ./transferError.yaml
|
@@ -44,6 +44,8 @@ paths:
|
|
44
44
|
$ref: paths/quotes.yaml
|
45
45
|
/requestToPay:
|
46
46
|
$ref: paths/requestToPay.yaml
|
47
|
+
/requestToPay/{requestToPayId}:
|
48
|
+
$ref: paths/requestToPay_requestToPayId.yaml
|
47
49
|
/requestToPayTransfer:
|
48
50
|
$ref: paths/requestToPayTransfer.yaml
|
49
51
|
/requestToPayTransfer/{requestToPayTransactionId}:
|
@@ -0,0 +1,30 @@
|
|
1
|
+
put:
|
2
|
+
summary: >-
|
3
|
+
Continues a request funds from sender that has paused at the party resolution stage in order to accept or
|
4
|
+
reject party information
|
5
|
+
description: >
|
6
|
+
The HTTP request `PUT /requestToPay/{requestToPayId}` is used to continue a
|
7
|
+
transfer initiated via the `POST /requestToPay` method that has halted after
|
8
|
+
party lookup stage.
|
9
|
+
|
10
|
+
|
11
|
+
The request body should contain the "acceptParty" property set to `true` as required to continue the transfer.
|
12
|
+
|
13
|
+
See the description of the `POST /requestToPay` HTTP method for more
|
14
|
+
information on modes of transfer.
|
15
|
+
tags:
|
16
|
+
- RequestToPay
|
17
|
+
requestBody:
|
18
|
+
content:
|
19
|
+
application/json:
|
20
|
+
schema:
|
21
|
+
$ref: ../../components/schemas/transferContinuationAcceptParty.yaml
|
22
|
+
parameters:
|
23
|
+
- $ref: ../../components/parameters/requestToPayId.yaml
|
24
|
+
responses:
|
25
|
+
'200':
|
26
|
+
$ref: ../../components/responses/requestToPaySuccess.yaml
|
27
|
+
'500':
|
28
|
+
$ref: ../../components/responses/transferServerError.yaml
|
29
|
+
'504':
|
30
|
+
$ref: ../../components/responses/transferTimeout.yaml
|