@emilgroup/payment-sdk 1.5.0 → 1.5.1-beta.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/.openapi-generator/FILES +0 -50
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +12 -20
- package/api/bank-transaction-api.ts +10 -20
- package/api/payment-methods-api.ts +18 -26
- package/api/payment-reminders-api.ts +8 -16
- package/api/payment-setup-api.ts +28 -36
- package/api/payments-api.ts +14 -20
- package/api/refunds-api.ts +6 -12
- package/api/webhooks-api.ts +21 -8
- package/dist/api/bank-accounts-api.d.ts +18 -22
- package/dist/api/bank-transaction-api.d.ts +15 -20
- package/dist/api/payment-methods-api.d.ts +15 -19
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +12 -16
- package/dist/api/payment-setup-api.d.ts +18 -22
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +17 -20
- package/dist/api/payments-api.js +6 -6
- package/dist/api/refunds-api.d.ts +9 -12
- package/dist/api/webhooks-api.d.ts +12 -3
- package/dist/api/webhooks-api.js +14 -8
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +0 -50
- package/dist/models/index.js +0 -50
- package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
- package/dist/models/validate-pspconfig-request-dto.js +0 -7
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-payment-request-dto.ts +1 -1
- package/models/index.ts +0 -50
- package/models/validate-pspconfig-request-dto.ts +1 -11
- package/package.json +1 -1
- package/dist/models/bank-account-class-without-expand-properties.d.ts +0 -84
- package/dist/models/bank-account-class-without-expand-properties.js +0 -15
- package/dist/models/bank-account-class.d.ts +0 -91
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/bank-transaction-class.d.ts +0 -140
- package/dist/models/bank-transaction-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -77
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -32
- package/dist/models/create-bank-account-response-class.d.ts +0 -25
- package/dist/models/create-bank-account-response-class.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/create-payment-reminder-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/create-refund-response-class.d.ts +0 -25
- package/dist/models/create-refund-response-class.js +0 -15
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/deactivated-payment-reminder-class.d.ts +0 -102
- package/dist/models/deactivated-payment-reminder-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/get-bank-transactions-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/get-payment-reminder-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/get-refund-response-class.d.ts +0 -25
- package/dist/models/get-refund-response-class.js +0 -15
- package/dist/models/import-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/import-bank-transactions-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/link-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/link-bank-transactions-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-bank-transactions-response-class.d.ts +0 -31
- package/dist/models/list-bank-transactions-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/list-refunds-response-class.d.ts +0 -31
- package/dist/models/list-refunds-response-class.js +0 -15
- package/dist/models/payment-class-without-expand-properties.d.ts +0 -108
- package/dist/models/payment-class-without-expand-properties.js +0 -15
- package/dist/models/payment-class.d.ts +0 -115
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -78
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -102
- package/dist/models/payment-reminder-class.js +0 -15
- package/dist/models/primary-bank-account-response-class.d.ts +0 -54
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/refund-class.d.ts +0 -118
- package/dist/models/refund-class.js +0 -29
- package/dist/models/refund-item-class.d.ts +0 -114
- package/dist/models/refund-item-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/shared-transaction-class.d.ts +0 -72
- package/dist/models/shared-transaction-class.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/unlink-bank-transactions-response-class.d.ts +0 -25
- package/dist/models/unlink-bank-transactions-response-class.js +0 -15
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +0 -108
- package/dist/models/unlinked-bank-transaction-response-class.js +0 -15
- package/dist/models/update-bank-account-response-class.d.ts +0 -25
- package/dist/models/update-bank-account-response-class.js +0 -15
- package/models/bank-account-class-without-expand-properties.ts +0 -90
- package/models/bank-account-class.ts +0 -97
- package/models/bank-transaction-class.ts +0 -146
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -86
- package/models/create-bank-account-response-class.ts +0 -31
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-reminder-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/create-refund-response-class.ts +0 -31
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/deactivated-payment-reminder-class.ts +0 -108
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-bank-transactions-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-reminder-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/get-refund-response-class.ts +0 -31
- package/models/import-bank-transactions-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/link-bank-transactions-response-class.ts +0 -31
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-bank-transactions-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/list-refunds-response-class.ts +0 -37
- package/models/payment-class-without-expand-properties.ts +0 -114
- package/models/payment-class.ts +0 -121
- package/models/payment-method-class.ts +0 -84
- package/models/payment-reminder-class.ts +0 -108
- package/models/primary-bank-account-response-class.ts +0 -60
- package/models/refund-class.ts +0 -128
- package/models/refund-item-class.ts +0 -120
- package/models/sepa-direct-dto.ts +0 -30
- package/models/shared-transaction-class.ts +0 -78
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/unlink-bank-transactions-response-class.ts +0 -31
- package/models/unlinked-bank-transaction-response-class.ts +0 -114
- package/models/update-bank-account-response-class.ts +0 -31
|
@@ -95,20 +95,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
95
95
|
/**
|
|
96
96
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
97
97
|
* @summary Complete a payment setup
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {object} body
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
completePaymentSetup: function (
|
|
103
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
110
|
-
// verify required parameter '
|
|
111
|
-
(0, common_1.assertParamExists)('completePaymentSetup', '
|
|
110
|
+
// verify required parameter 'body' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
|
|
112
112
|
localVarPath = "/paymentservice/v1/payment-setup/complete";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
@@ -132,7 +132,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
132
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
134
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
136
136
|
return [2 /*return*/, {
|
|
137
137
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
138
|
options: localVarRequestOptions,
|
|
@@ -144,20 +144,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
146
146
|
* @summary Initiate a payment setup
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {object} body
|
|
148
148
|
* @param {string} [authorization] Bearer Token
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
|
-
initiatePaymentSetup: function (
|
|
152
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
153
153
|
if (options === void 0) { options = {}; }
|
|
154
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
155
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
156
|
return __generator(this, function (_a) {
|
|
157
157
|
switch (_a.label) {
|
|
158
158
|
case 0:
|
|
159
|
-
// verify required parameter '
|
|
160
|
-
(0, common_1.assertParamExists)('initiatePaymentSetup', '
|
|
159
|
+
// verify required parameter 'body' is not null or undefined
|
|
160
|
+
(0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
|
|
161
161
|
localVarPath = "/paymentservice/v1/payment-setup/initiate";
|
|
162
162
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
163
|
if (configuration) {
|
|
@@ -181,7 +181,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
|
|
|
181
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
183
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
184
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
185
185
|
return [2 /*return*/, {
|
|
186
186
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
187
187
|
options: localVarRequestOptions,
|
|
@@ -203,17 +203,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
203
203
|
/**
|
|
204
204
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
205
205
|
* @summary Complete a payment setup
|
|
206
|
-
* @param {
|
|
206
|
+
* @param {object} body
|
|
207
207
|
* @param {string} [authorization] Bearer Token
|
|
208
208
|
* @param {*} [options] Override http request option.
|
|
209
209
|
* @throws {RequiredError}
|
|
210
210
|
*/
|
|
211
|
-
completePaymentSetup: function (
|
|
211
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
212
212
|
return __awaiter(this, void 0, void 0, function () {
|
|
213
213
|
var localVarAxiosArgs;
|
|
214
214
|
return __generator(this, function (_a) {
|
|
215
215
|
switch (_a.label) {
|
|
216
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(
|
|
216
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
|
|
217
217
|
case 1:
|
|
218
218
|
localVarAxiosArgs = _a.sent();
|
|
219
219
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -224,17 +224,17 @@ var PaymentSetupApiFp = function (configuration) {
|
|
|
224
224
|
/**
|
|
225
225
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
226
226
|
* @summary Initiate a payment setup
|
|
227
|
-
* @param {
|
|
227
|
+
* @param {object} body
|
|
228
228
|
* @param {string} [authorization] Bearer Token
|
|
229
229
|
* @param {*} [options] Override http request option.
|
|
230
230
|
* @throws {RequiredError}
|
|
231
231
|
*/
|
|
232
|
-
initiatePaymentSetup: function (
|
|
232
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
233
233
|
return __awaiter(this, void 0, void 0, function () {
|
|
234
234
|
var localVarAxiosArgs;
|
|
235
235
|
return __generator(this, function (_a) {
|
|
236
236
|
switch (_a.label) {
|
|
237
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(
|
|
237
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
|
|
238
238
|
case 1:
|
|
239
239
|
localVarAxiosArgs = _a.sent();
|
|
240
240
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -255,24 +255,24 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
|
|
|
255
255
|
/**
|
|
256
256
|
* This endpoint is used to save user-provided payment information. The service will send a request to the configured PSP to securely store the payment data.
|
|
257
257
|
* @summary Complete a payment setup
|
|
258
|
-
* @param {
|
|
258
|
+
* @param {object} body
|
|
259
259
|
* @param {string} [authorization] Bearer Token
|
|
260
260
|
* @param {*} [options] Override http request option.
|
|
261
261
|
* @throws {RequiredError}
|
|
262
262
|
*/
|
|
263
|
-
completePaymentSetup: function (
|
|
264
|
-
return localVarFp.completePaymentSetup(
|
|
263
|
+
completePaymentSetup: function (body, authorization, options) {
|
|
264
|
+
return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
265
265
|
},
|
|
266
266
|
/**
|
|
267
267
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
268
268
|
* @summary Initiate a payment setup
|
|
269
|
-
* @param {
|
|
269
|
+
* @param {object} body
|
|
270
270
|
* @param {string} [authorization] Bearer Token
|
|
271
271
|
* @param {*} [options] Override http request option.
|
|
272
272
|
* @throws {RequiredError}
|
|
273
273
|
*/
|
|
274
|
-
initiatePaymentSetup: function (
|
|
275
|
-
return localVarFp.initiatePaymentSetup(
|
|
274
|
+
initiatePaymentSetup: function (body, authorization, options) {
|
|
275
|
+
return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
276
276
|
},
|
|
277
277
|
};
|
|
278
278
|
};
|
|
@@ -298,7 +298,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
298
298
|
*/
|
|
299
299
|
PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
|
|
300
300
|
var _this = this;
|
|
301
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.
|
|
301
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
302
302
|
};
|
|
303
303
|
/**
|
|
304
304
|
* This initiates an account within the configured payment service provider, whichgenerates a secret token, allowing the user to add their payment information.
|
|
@@ -310,7 +310,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
|
|
|
310
310
|
*/
|
|
311
311
|
PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
|
|
312
312
|
var _this = this;
|
|
313
|
-
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.
|
|
313
|
+
return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
314
314
|
};
|
|
315
315
|
return PaymentSetupApi;
|
|
316
316
|
}(base_1.BaseAPI));
|
|
@@ -13,9 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreatePaymentRequestDto } from '../models';
|
|
16
|
-
import { CreatePaymentResponseClass } from '../models';
|
|
17
|
-
import { GetPaymentResponseClass } from '../models';
|
|
18
|
-
import { ListPaymentsResponseClass } from '../models';
|
|
19
16
|
/**
|
|
20
17
|
* PaymentsApi - axios parameter creator
|
|
21
18
|
* @export
|
|
@@ -45,8 +42,8 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
45
42
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
46
43
|
* @summary List payments
|
|
47
44
|
* @param {string} [authorization] Bearer Token
|
|
48
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
49
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
45
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
46
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
50
47
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
51
48
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
52
49
|
* @param {*} [options] Override http request option.
|
|
@@ -68,7 +65,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
68
65
|
* @param {*} [options] Override http request option.
|
|
69
66
|
* @throws {RequiredError}
|
|
70
67
|
*/
|
|
71
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
68
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
72
69
|
/**
|
|
73
70
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
74
71
|
* @summary Retrieve the payment
|
|
@@ -78,19 +75,19 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
|
|
|
78
75
|
* @param {*} [options] Override http request option.
|
|
79
76
|
* @throws {RequiredError}
|
|
80
77
|
*/
|
|
81
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
78
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
82
79
|
/**
|
|
83
80
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
84
81
|
* @summary List payments
|
|
85
82
|
* @param {string} [authorization] Bearer Token
|
|
86
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
87
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
83
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
84
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
88
85
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
89
86
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
90
87
|
* @param {*} [options] Override http request option.
|
|
91
88
|
* @throws {RequiredError}
|
|
92
89
|
*/
|
|
93
|
-
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
90
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
94
91
|
};
|
|
95
92
|
/**
|
|
96
93
|
* PaymentsApi - factory interface
|
|
@@ -106,7 +103,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
106
103
|
* @param {*} [options] Override http request option.
|
|
107
104
|
* @throws {RequiredError}
|
|
108
105
|
*/
|
|
109
|
-
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
106
|
+
createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
110
107
|
/**
|
|
111
108
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
112
109
|
* @summary Retrieve the payment
|
|
@@ -116,19 +113,19 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
|
|
|
116
113
|
* @param {*} [options] Override http request option.
|
|
117
114
|
* @throws {RequiredError}
|
|
118
115
|
*/
|
|
119
|
-
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
116
|
+
getPayment(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
120
117
|
/**
|
|
121
118
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
122
119
|
* @summary List payments
|
|
123
120
|
* @param {string} [authorization] Bearer Token
|
|
124
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
125
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
121
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
122
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
126
123
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
127
124
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
128
125
|
* @param {*} [options] Override http request option.
|
|
129
126
|
* @throws {RequiredError}
|
|
130
127
|
*/
|
|
131
|
-
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
128
|
+
listPayments(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
132
129
|
};
|
|
133
130
|
/**
|
|
134
131
|
* Request parameters for createPayment operation in PaymentsApi.
|
|
@@ -193,13 +190,13 @@ export interface PaymentsApiListPaymentsRequest {
|
|
|
193
190
|
*/
|
|
194
191
|
readonly authorization?: string;
|
|
195
192
|
/**
|
|
196
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
193
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
197
194
|
* @type {string}
|
|
198
195
|
* @memberof PaymentsApiListPayments
|
|
199
196
|
*/
|
|
200
197
|
readonly filter?: string;
|
|
201
198
|
/**
|
|
202
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
199
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
203
200
|
* @type {string}
|
|
204
201
|
* @memberof PaymentsApiListPayments
|
|
205
202
|
*/
|
|
@@ -232,7 +229,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
232
229
|
* @throws {RequiredError}
|
|
233
230
|
* @memberof PaymentsApi
|
|
234
231
|
*/
|
|
235
|
-
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
232
|
+
createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
236
233
|
/**
|
|
237
234
|
* Retrieves the details of the payment that was previously created. Supply the unique payment code that was returned when you created it and Emil Api will return the corresponding payment information.
|
|
238
235
|
* @summary Retrieve the payment
|
|
@@ -241,7 +238,7 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
241
238
|
* @throws {RequiredError}
|
|
242
239
|
* @memberof PaymentsApi
|
|
243
240
|
*/
|
|
244
|
-
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
241
|
+
getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
245
242
|
/**
|
|
246
243
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
247
244
|
* @summary List payments
|
|
@@ -250,5 +247,5 @@ export declare class PaymentsApi extends BaseAPI {
|
|
|
250
247
|
* @throws {RequiredError}
|
|
251
248
|
* @memberof PaymentsApi
|
|
252
249
|
*/
|
|
253
|
-
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
250
|
+
listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
254
251
|
}
|
package/dist/api/payments-api.js
CHANGED
|
@@ -203,8 +203,8 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
204
204
|
* @summary List payments
|
|
205
205
|
* @param {string} [authorization] Bearer Token
|
|
206
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
207
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
206
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
207
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
208
208
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
209
209
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
@@ -317,8 +317,8 @@ var PaymentsApiFp = function (configuration) {
|
|
|
317
317
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
318
318
|
* @summary List payments
|
|
319
319
|
* @param {string} [authorization] Bearer Token
|
|
320
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
321
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
320
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
321
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
322
322
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
323
323
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
324
324
|
* @param {*} [options] Override http request option.
|
|
@@ -375,8 +375,8 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
375
375
|
* Returns a list of payments you have previously created. The payments are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
376
376
|
* @summary List payments
|
|
377
377
|
* @param {string} [authorization] Bearer Token
|
|
378
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
379
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber</i>
|
|
378
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
379
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, amount, receivedDate, referenceNumber, productSlug</i>
|
|
380
380
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, code, amount</i>
|
|
381
381
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: transactions<i>
|
|
382
382
|
* @param {*} [options] Override http request option.
|
|
@@ -13,9 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateRefundRequestDto } from '../models';
|
|
16
|
-
import { CreateRefundResponseClass } from '../models';
|
|
17
|
-
import { GetRefundResponseClass } from '../models';
|
|
18
|
-
import { ListRefundsResponseClass } from '../models';
|
|
19
16
|
/**
|
|
20
17
|
* RefundsApi - axios parameter creator
|
|
21
18
|
* @export
|
|
@@ -67,7 +64,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
67
64
|
* @param {*} [options] Override http request option.
|
|
68
65
|
* @throws {RequiredError}
|
|
69
66
|
*/
|
|
70
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
67
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
71
68
|
/**
|
|
72
69
|
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
73
70
|
* @summary Retrieve the refund
|
|
@@ -77,7 +74,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
77
74
|
* @param {*} [options] Override http request option.
|
|
78
75
|
* @throws {RequiredError}
|
|
79
76
|
*/
|
|
80
|
-
getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
77
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
81
78
|
/**
|
|
82
79
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
83
80
|
* @summary List refunds
|
|
@@ -90,7 +87,7 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
|
90
87
|
* @param {*} [options] Override http request option.
|
|
91
88
|
* @throws {RequiredError}
|
|
92
89
|
*/
|
|
93
|
-
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
90
|
+
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
94
91
|
};
|
|
95
92
|
/**
|
|
96
93
|
* RefundsApi - factory interface
|
|
@@ -105,7 +102,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
105
102
|
* @param {*} [options] Override http request option.
|
|
106
103
|
* @throws {RequiredError}
|
|
107
104
|
*/
|
|
108
|
-
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
105
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
109
106
|
/**
|
|
110
107
|
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
111
108
|
* @summary Retrieve the refund
|
|
@@ -115,7 +112,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
115
112
|
* @param {*} [options] Override http request option.
|
|
116
113
|
* @throws {RequiredError}
|
|
117
114
|
*/
|
|
118
|
-
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
115
|
+
getRefund(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
119
116
|
/**
|
|
120
117
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
121
118
|
* @summary List refunds
|
|
@@ -128,7 +125,7 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
|
|
|
128
125
|
* @param {*} [options] Override http request option.
|
|
129
126
|
* @throws {RequiredError}
|
|
130
127
|
*/
|
|
131
|
-
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
128
|
+
listRefunds(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void>;
|
|
132
129
|
};
|
|
133
130
|
/**
|
|
134
131
|
* Request parameters for createRefund operation in RefundsApi.
|
|
@@ -232,7 +229,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
232
229
|
* @throws {RequiredError}
|
|
233
230
|
* @memberof RefundsApi
|
|
234
231
|
*/
|
|
235
|
-
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
232
|
+
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
236
233
|
/**
|
|
237
234
|
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information.
|
|
238
235
|
* @summary Retrieve the refund
|
|
@@ -241,7 +238,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
241
238
|
* @throws {RequiredError}
|
|
242
239
|
* @memberof RefundsApi
|
|
243
240
|
*/
|
|
244
|
-
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
241
|
+
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
245
242
|
/**
|
|
246
243
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
247
244
|
* @summary List refunds
|
|
@@ -250,5 +247,5 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
250
247
|
* @throws {RequiredError}
|
|
251
248
|
* @memberof RefundsApi
|
|
252
249
|
*/
|
|
253
|
-
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
250
|
+
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
254
251
|
}
|
|
@@ -22,10 +22,11 @@ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
22
22
|
* @summary Handle the webhook from PSP
|
|
23
23
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
24
24
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
25
|
+
* @param {string} productSlug
|
|
25
26
|
* @param {*} [options] Override http request option.
|
|
26
27
|
* @throws {RequiredError}
|
|
27
28
|
*/
|
|
28
|
-
postWebhook: (pspType: string, tenantSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
postWebhook: (pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* WebhooksApi - functional programming interface
|
|
@@ -37,10 +38,11 @@ export declare const WebhooksApiFp: (configuration?: Configuration) => {
|
|
|
37
38
|
* @summary Handle the webhook from PSP
|
|
38
39
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
39
40
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
41
|
+
* @param {string} productSlug
|
|
40
42
|
* @param {*} [options] Override http request option.
|
|
41
43
|
* @throws {RequiredError}
|
|
42
44
|
*/
|
|
43
|
-
postWebhook(pspType: string, tenantSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
45
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
44
46
|
};
|
|
45
47
|
/**
|
|
46
48
|
* WebhooksApi - factory interface
|
|
@@ -52,10 +54,11 @@ export declare const WebhooksApiFactory: (configuration?: Configuration, basePat
|
|
|
52
54
|
* @summary Handle the webhook from PSP
|
|
53
55
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
54
56
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
57
|
+
* @param {string} productSlug
|
|
55
58
|
* @param {*} [options] Override http request option.
|
|
56
59
|
* @throws {RequiredError}
|
|
57
60
|
*/
|
|
58
|
-
postWebhook(pspType: string, tenantSlug: string, options?: any): AxiosPromise<void>;
|
|
61
|
+
postWebhook(pspType: string, tenantSlug: string, productSlug: string, options?: any): AxiosPromise<void>;
|
|
59
62
|
};
|
|
60
63
|
/**
|
|
61
64
|
* Request parameters for postWebhook operation in WebhooksApi.
|
|
@@ -75,6 +78,12 @@ export interface WebhooksApiPostWebhookRequest {
|
|
|
75
78
|
* @memberof WebhooksApiPostWebhook
|
|
76
79
|
*/
|
|
77
80
|
readonly tenantSlug: string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof WebhooksApiPostWebhook
|
|
85
|
+
*/
|
|
86
|
+
readonly productSlug: string;
|
|
78
87
|
}
|
|
79
88
|
/**
|
|
80
89
|
* WebhooksApi - object-oriented interface
|
package/dist/api/webhooks-api.js
CHANGED
|
@@ -97,10 +97,11 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
* @summary Handle the webhook from PSP
|
|
98
98
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
99
99
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
100
|
+
* @param {string} productSlug
|
|
100
101
|
* @param {*} [options] Override http request option.
|
|
101
102
|
* @throws {RequiredError}
|
|
102
103
|
*/
|
|
103
|
-
postWebhook: function (pspType, tenantSlug, options) {
|
|
104
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
104
105
|
if (options === void 0) { options = {}; }
|
|
105
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
107
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -109,9 +110,12 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
|
|
|
109
110
|
(0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
|
|
110
111
|
// verify required parameter 'tenantSlug' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
|
|
112
|
-
|
|
113
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
114
|
+
(0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
|
|
115
|
+
localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
|
|
113
116
|
.replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
|
|
114
|
-
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
117
|
+
.replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
|
|
118
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
115
119
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
120
|
if (configuration) {
|
|
117
121
|
baseOptions = configuration.baseOptions;
|
|
@@ -145,15 +149,16 @@ var WebhooksApiFp = function (configuration) {
|
|
|
145
149
|
* @summary Handle the webhook from PSP
|
|
146
150
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
147
151
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
152
|
+
* @param {string} productSlug
|
|
148
153
|
* @param {*} [options] Override http request option.
|
|
149
154
|
* @throws {RequiredError}
|
|
150
155
|
*/
|
|
151
|
-
postWebhook: function (pspType, tenantSlug, options) {
|
|
156
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
152
157
|
return __awaiter(this, void 0, void 0, function () {
|
|
153
158
|
var localVarAxiosArgs;
|
|
154
159
|
return __generator(this, function (_a) {
|
|
155
160
|
switch (_a.label) {
|
|
156
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, options)];
|
|
161
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, options)];
|
|
157
162
|
case 1:
|
|
158
163
|
localVarAxiosArgs = _a.sent();
|
|
159
164
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -176,11 +181,12 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
|
|
|
176
181
|
* @summary Handle the webhook from PSP
|
|
177
182
|
* @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis</i>
|
|
178
183
|
* @param {string} tenantSlug Unique slug identifier representing a tenant.
|
|
184
|
+
* @param {string} productSlug
|
|
179
185
|
* @param {*} [options] Override http request option.
|
|
180
186
|
* @throws {RequiredError}
|
|
181
187
|
*/
|
|
182
|
-
postWebhook: function (pspType, tenantSlug, options) {
|
|
183
|
-
return localVarFp.postWebhook(pspType, tenantSlug, options).then(function (request) { return request(axios, basePath); });
|
|
188
|
+
postWebhook: function (pspType, tenantSlug, productSlug, options) {
|
|
189
|
+
return localVarFp.postWebhook(pspType, tenantSlug, productSlug, options).then(function (request) { return request(axios, basePath); });
|
|
184
190
|
},
|
|
185
191
|
};
|
|
186
192
|
};
|
|
@@ -206,7 +212,7 @@ var WebhooksApi = /** @class */ (function (_super) {
|
|
|
206
212
|
*/
|
|
207
213
|
WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
|
|
208
214
|
var _this = this;
|
|
209
|
-
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
215
|
+
return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
210
216
|
};
|
|
211
217
|
return WebhooksApi;
|
|
212
218
|
}(base_1.BaseAPI));
|
|
@@ -20,13 +20,13 @@ export interface CreateBankAccountRequestDto {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateBankAccountRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'accountCode'
|
|
23
|
+
'accountCode': string;
|
|
24
24
|
/**
|
|
25
25
|
* Partner code associated with bank account.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateBankAccountRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'partnerCode'
|
|
29
|
+
'partnerCode': string;
|
|
30
30
|
/**
|
|
31
31
|
* IBAN number for the bank account
|
|
32
32
|
* @type {string}
|