@mojaloop/central-services-shared 18.34.2 → 18.35.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/package.json +1 -1
- package/src/enums/endpoints.js +51 -34
package/package.json
CHANGED
package/src/enums/endpoints.js
CHANGED
|
@@ -102,10 +102,17 @@ const FspEndpointTypes = {
|
|
|
102
102
|
TP_CB_URL_SERVICES_GET: 'TP_CB_URL_SERVICES_GET',
|
|
103
103
|
TP_CB_URL_SERVICES_PUT: 'TP_CB_URL_SERVICES_PUT',
|
|
104
104
|
TP_CB_URL_SERVICES_PUT_ERROR: 'TP_CB_URL_SERVICES_PUT_ERROR',
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
TP_CB_URL_ACCOUNTS_REQUEST_POST: 'TP_CB_URL_ACCOUNTS_REQUEST_POST',
|
|
106
|
+
TP_CB_URL_ACCOUNTS_REQUEST_PUT: 'TP_CB_URL_ACCOUNTS_REQUEST_PUT',
|
|
107
|
+
TP_CB_URL_ACCOUNTS_REQUEST_PUT_ERROR: 'TP_CB_URL_ACCOUNTS_REQUEST_PUT_ERROR',
|
|
108
|
+
TP_CB_URL_ACCOUNTS_REQUEST_GET: 'TP_CB_URL_ACCOUNTS_REQUEST_GET',
|
|
109
|
+
// PISP v2 endpoint types
|
|
110
|
+
FSPIOP_CALLBACK_URL_TPP_CONSENT_REQ_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_CONSENT_REQ_SERVICE',
|
|
111
|
+
FSPIOP_CALLBACK_URL_TPP_CONSENT_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_CONSENT_SERVICE',
|
|
112
|
+
FSPIOP_CALLBACK_URL_TPP_TRANSACTION_REQ_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_TRANSACTION_REQ_SERVICE',
|
|
113
|
+
FSPIOP_CALLBACK_URL_TPP_TRANSFER_SERVICE: 'FSPIOP_CALLBACK_URL_TPP_TRANSFER_SERVICE',
|
|
114
|
+
FSPIOP_CALLBACK_URL_TPP_AUTHORIZATIONS: 'FSPIOP_CALLBACK_URL_TPP_AUTHORIZATIONS',
|
|
115
|
+
FSPIOP_CALLBACK_URL_TPP_VERIFICATION: 'FSPIOP_CALLBACK_URL_TPP_VERIFICATION'
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
const FspEndpointTemplates = {
|
|
@@ -139,39 +146,49 @@ const FspEndpointTemplates = {
|
|
|
139
146
|
BULK_TRANSFERS_PUT_ERROR: '/{{fsp}}/bulkTransfers/{{ID}}/error',
|
|
140
147
|
BULK_QUOTES_POST: '/bulkQuotes',
|
|
141
148
|
BULK_QUOTES_ERROR_PUT: '/bulkQuotes/{{bulkQuoteId}}/error',
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
149
|
+
// PISP v2 - tppTransactionRequests (spec section 3.9)
|
|
150
|
+
TP_TRANSACTION_REQUEST_GET: '/tppTransactionRequests/{{ID}}',
|
|
151
|
+
TP_TRANSACTION_REQUEST_POST: '/tppTransactionRequests',
|
|
152
|
+
TP_TRANSACTION_REQUEST_PUT: '/tppTransactionRequests/{{ID}}',
|
|
153
|
+
TP_TRANSACTION_REQUEST_PUT_ERROR: '/tppTransactionRequests/{{ID}}/error',
|
|
154
|
+
// PISP v2 - tppAuthorizations (spec section 3.7)
|
|
155
|
+
TP_AUTHORIZATION_GET: '/tppAuthorizations/{{ID}}',
|
|
156
|
+
TP_AUTHORIZATION_POST: '/tppAuthorizations',
|
|
157
|
+
TP_AUTHORIZATION_PUT: '/tppAuthorizations/{{ID}}',
|
|
158
|
+
TP_AUTHORIZATION_PUT_ERROR: '/tppAuthorizations/{{ID}}/error',
|
|
159
|
+
// PISP v2 - tppTransfers (spec section 3.8)
|
|
160
|
+
TP_TRANSFER_GET: '/tppTransfers/{{ID}}',
|
|
161
|
+
TP_TRANSFER_POST: '/tppTransfers',
|
|
162
|
+
TP_TRANSFER_PUT: '/tppTransfers/{{ID}}',
|
|
163
|
+
TP_TRANSFER_PUT_ERROR: '/tppTransfers/{{ID}}/error',
|
|
164
|
+
// PISP v2 - tppVerifications (spec section 3.10)
|
|
165
|
+
TP_VERIFICATION_GET: '/tppVerifications/{{ID}}',
|
|
166
|
+
TP_VERIFICATION_POST: '/tppVerifications',
|
|
167
|
+
TP_VERIFICATION_PUT: '/tppVerifications/{{ID}}',
|
|
168
|
+
TP_VERIFICATION_PUT_ERROR: '/tppVerifications/{{ID}}/error',
|
|
169
|
+
// PISP v2 - tppConsentRequests (spec section 3.4)
|
|
170
|
+
TP_CONSENT_REQUEST_GET: '/tppConsentRequests/{{ID}}',
|
|
171
|
+
TP_CONSENT_REQUEST_POST: '/tppConsentRequests',
|
|
172
|
+
TP_CONSENT_REQUEST_PATCH: '/tppConsentRequests/{{ID}}',
|
|
173
|
+
TP_CONSENT_REQUEST_PUT: '/tppConsentRequests/{{ID}}',
|
|
174
|
+
TP_CONSENT_REQUEST_PUT_ERROR: '/tppConsentRequests/{{ID}}/error',
|
|
175
|
+
// PISP v2 - tppConsents (spec section 3.5)
|
|
176
|
+
TP_CONSENT_POST: '/tppConsents',
|
|
177
|
+
TP_CONSENT_GET: '/tppConsents/{{ID}}',
|
|
178
|
+
TP_CONSENT_DELETE: '/tppConsents/{{ID}}',
|
|
179
|
+
TP_CONSENT_PUT: '/tppConsents/{{ID}}',
|
|
180
|
+
TP_CONSENT_PATCH: '/tppConsents/{{ID}}',
|
|
181
|
+
TP_CONSENT_PUT_ERROR: '/tppConsents/{{ID}}/error',
|
|
182
|
+
TP_ACCOUNTS_GET: '/tppAccounts/{{accountRequestId}}/{{signedChallenge}}',
|
|
183
|
+
TP_ACCOUNTS_PUT: '/tppAccounts/{{accountRequestId}}',
|
|
184
|
+
TP_ACCOUNTS_PUT_ERROR: '/tppAccounts/{{accountRequestId}}/error',
|
|
168
185
|
TP_SERVICES_GET: '/services/{{ServiceType}}',
|
|
169
186
|
TP_SERVICES_PUT: '/services/{{ServiceType}}',
|
|
170
187
|
TP_SERVICES_PUT_ERROR: '/services/{{ServiceType}}/error',
|
|
171
|
-
TP_ACCOUNT_REQUEST_POST: '/
|
|
172
|
-
TP_ACCOUNT_REQUEST_PUT: '/
|
|
173
|
-
TP_ACCOUNT_REQUEST_PUT_ERROR: '/
|
|
174
|
-
TP_ACCOUNT_REQUEST_GET: '/
|
|
188
|
+
TP_ACCOUNT_REQUEST_POST: '/tppAccountsRequest',
|
|
189
|
+
TP_ACCOUNT_REQUEST_PUT: '/tppAccountsRequest/{{ID}}',
|
|
190
|
+
TP_ACCOUNT_REQUEST_PUT_ERROR: '/tppAccountsRequest/{{ID}}/error',
|
|
191
|
+
TP_ACCOUNT_REQUEST_GET: '/tppAccountsRequest/{{ID}}'
|
|
175
192
|
}
|
|
176
193
|
|
|
177
194
|
module.exports = {
|