@emilgroup/payment-sdk 1.0.0 → 1.4.1-beta.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/.openapi-generator/FILES +15 -30
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -25
- package/api/bank-transaction-api.ts +657 -0
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +42 -46
- package/api/payment-reminders-api.ts +17 -19
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +30 -32
- package/api/refunds-api.ts +462 -0
- package/api/tenant-bank-account-api.ts +651 -0
- package/api/webhooks-api.ts +1 -1
- package/api.ts +7 -3
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -19
- package/dist/api/bank-accounts-api.js +16 -16
- package/dist/api/bank-transaction-api.d.ts +371 -0
- package/dist/api/bank-transaction-api.js +632 -0
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +32 -36
- package/dist/api/payment-methods-api.js +32 -28
- package/dist/api/payment-reminders-api.d.ts +21 -22
- package/dist/api/payment-reminders-api.js +8 -8
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +26 -29
- package/dist/api/payments-api.js +20 -16
- package/dist/api/refunds-api.d.ts +260 -0
- package/dist/api/refunds-api.js +443 -0
- package/dist/api/tenant-bank-account-api.d.ts +361 -0
- package/dist/api/tenant-bank-account-api.js +616 -0
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +4 -2
- package/dist/api.js +4 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +122 -0
- package/dist/models/{bank-account-class.js → bank-transaction-response-class.js} +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
- package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
- package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
- package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
- package/dist/models/{billing-profile-limited-response-dto.js → create-tenant-bank-account-request-dto.js} +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/{get-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
- package/dist/models/get-tenant-bank-account-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -29
- package/dist/models/index.js +12 -29
- package/dist/models/inline-response200.d.ts +7 -7
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +7 -7
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +104 -0
- package/dist/models/refund-class.js +28 -0
- package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
- package/dist/models/tenant-bank-account-response-class.js +15 -0
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/git_push.sh +1 -1
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +128 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +3 -3
- package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
- package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
- package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
- package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
- package/models/get-request-dto.ts +2 -2
- package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
- package/models/index.ts +12 -29
- package/models/inline-response200.ts +7 -7
- package/models/inline-response503.ts +7 -7
- package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
- package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
- package/models/refund-class.ts +114 -0
- package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
- package/models/transaction-class.ts +1 -1
- package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -2
- package/api/payment-service-providers-api.ts +0 -161
- package/dist/api/payment-service-providers-api.d.ts +0 -93
- package/dist/api/payment-service-providers-api.js +0 -220
- package/dist/models/bank-account-class.d.ts +0 -54
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- 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 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.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-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/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-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/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- 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.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/validate-pspconfig-response-class.js +0 -15
- package/models/bank-account-class.ts +0 -60
- package/models/billing-profile-dto.ts +0 -44
- 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 -66
- package/models/create-payment-method-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/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/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-reminder-class.ts +0 -122
package/dist/api/payments-api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact:
|
|
9
|
+
* Contact: z
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -151,13 +151,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
151
151
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
152
152
|
* @summary Retrieve a payment
|
|
153
153
|
* @param {string} code Unique identifier for the object.
|
|
154
|
+
* @param {string} expand Fields to expand response by
|
|
155
|
+
* @param {string} expand2 Fields to expand response by
|
|
154
156
|
* @param {string} [authorization] Bearer Token
|
|
155
|
-
* @param {string} [expand] Fields to expand response by
|
|
156
|
-
* @param {string} [expand2] Fields to expand response by
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
getPayment: function (code,
|
|
160
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
161
161
|
if (options === void 0) { options = {}; }
|
|
162
162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
163
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -166,6 +166,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
166
166
|
case 0:
|
|
167
167
|
// verify required parameter 'code' is not null or undefined
|
|
168
168
|
(0, common_1.assertParamExists)('getPayment', 'code', code);
|
|
169
|
+
// verify required parameter 'expand' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('getPayment', 'expand', expand);
|
|
171
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
172
|
+
(0, common_1.assertParamExists)('getPayment', 'expand2', expand2);
|
|
169
173
|
localVarPath = "/paymentservice/v1/payments/{code}";
|
|
170
174
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
175
|
if (configuration) {
|
|
@@ -209,7 +213,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
|
|
|
209
213
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
210
214
|
* @summary List payments
|
|
211
215
|
* @param {string} [authorization] Bearer Token
|
|
212
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
216
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
213
217
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
214
218
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
215
219
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -309,18 +313,18 @@ var PaymentsApiFp = function (configuration) {
|
|
|
309
313
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
310
314
|
* @summary Retrieve a payment
|
|
311
315
|
* @param {string} code Unique identifier for the object.
|
|
316
|
+
* @param {string} expand Fields to expand response by
|
|
317
|
+
* @param {string} expand2 Fields to expand response by
|
|
312
318
|
* @param {string} [authorization] Bearer Token
|
|
313
|
-
* @param {string} [expand] Fields to expand response by
|
|
314
|
-
* @param {string} [expand2] Fields to expand response by
|
|
315
319
|
* @param {*} [options] Override http request option.
|
|
316
320
|
* @throws {RequiredError}
|
|
317
321
|
*/
|
|
318
|
-
getPayment: function (code,
|
|
322
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
319
323
|
return __awaiter(this, void 0, void 0, function () {
|
|
320
324
|
var localVarAxiosArgs;
|
|
321
325
|
return __generator(this, function (_a) {
|
|
322
326
|
switch (_a.label) {
|
|
323
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code,
|
|
327
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options)];
|
|
324
328
|
case 1:
|
|
325
329
|
localVarAxiosArgs = _a.sent();
|
|
326
330
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -332,7 +336,7 @@ var PaymentsApiFp = function (configuration) {
|
|
|
332
336
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
333
337
|
* @summary List payments
|
|
334
338
|
* @param {string} [authorization] Bearer Token
|
|
335
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
339
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
336
340
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
337
341
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
338
342
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -380,20 +384,20 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
|
|
|
380
384
|
* Retrieves the details of a payment that was previously created. Supply the unique payment code that was returned when you created the payment and Emil Api will return the corresponding payment information.
|
|
381
385
|
* @summary Retrieve a payment
|
|
382
386
|
* @param {string} code Unique identifier for the object.
|
|
387
|
+
* @param {string} expand Fields to expand response by
|
|
388
|
+
* @param {string} expand2 Fields to expand response by
|
|
383
389
|
* @param {string} [authorization] Bearer Token
|
|
384
|
-
* @param {string} [expand] Fields to expand response by
|
|
385
|
-
* @param {string} [expand2] Fields to expand response by
|
|
386
390
|
* @param {*} [options] Override http request option.
|
|
387
391
|
* @throws {RequiredError}
|
|
388
392
|
*/
|
|
389
|
-
getPayment: function (code,
|
|
390
|
-
return localVarFp.getPayment(code,
|
|
393
|
+
getPayment: function (code, expand, expand2, authorization, options) {
|
|
394
|
+
return localVarFp.getPayment(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
391
395
|
},
|
|
392
396
|
/**
|
|
393
397
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
394
398
|
* @summary List payments
|
|
395
399
|
* @param {string} [authorization] Bearer Token
|
|
396
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
400
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
397
401
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
398
402
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
399
403
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
@@ -441,7 +445,7 @@ var PaymentsApi = /** @class */ (function (_super) {
|
|
|
441
445
|
*/
|
|
442
446
|
PaymentsApi.prototype.getPayment = function (requestParameters, options) {
|
|
443
447
|
var _this = this;
|
|
444
|
-
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.
|
|
448
|
+
return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
445
449
|
};
|
|
446
450
|
/**
|
|
447
451
|
* Returns a list of payments you’ve previously created. The payments are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil Payment Service
|
|
3
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: z
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateRefundRequestDto } from '../models';
|
|
16
|
+
import { CreateRefundResponseClass } from '../models';
|
|
17
|
+
import { GetRefundResponseClass } from '../models';
|
|
18
|
+
import { ListRefundsResponseClass } from '../models';
|
|
19
|
+
/**
|
|
20
|
+
* RefundsApi - axios parameter creator
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
27
|
+
* @param {string} [authorization] Bearer Token
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createRefund: (createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param {string} code
|
|
35
|
+
* @param {string} code2 Unique identifier for the object.
|
|
36
|
+
* @param {string} expand Fields to expand response by
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
getRefund: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @param {string} [authorization] Bearer Token
|
|
45
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
46
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
47
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
48
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
49
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
50
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
listRefunds: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* RefundsApi - functional programming interface
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const RefundsApiFp: (configuration?: Configuration) => {
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
64
|
+
* @param {string} [authorization] Bearer Token
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateRefundResponseClass>>;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @param {string} code
|
|
72
|
+
* @param {string} code2 Unique identifier for the object.
|
|
73
|
+
* @param {string} expand Fields to expand response by
|
|
74
|
+
* @param {string} [authorization] Bearer Token
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @param {string} [authorization] Bearer Token
|
|
82
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
83
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
84
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
85
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
86
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
87
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRefundsResponseClass>>;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* RefundsApi - factory interface
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const RefundsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @param {CreateRefundRequestDto} createRefundRequestDto
|
|
101
|
+
* @param {string} [authorization] Bearer Token
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
createRefund(createRefundRequestDto: CreateRefundRequestDto, authorization?: string, options?: any): AxiosPromise<CreateRefundResponseClass>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @param {string} code
|
|
109
|
+
* @param {string} code2 Unique identifier for the object.
|
|
110
|
+
* @param {string} expand Fields to expand response by
|
|
111
|
+
* @param {string} [authorization] Bearer Token
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @param {string} [authorization] Bearer Token
|
|
119
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
120
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
121
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
122
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
123
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
124
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
listRefunds(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListRefundsResponseClass>;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Request parameters for createRefund operation in RefundsApi.
|
|
132
|
+
* @export
|
|
133
|
+
* @interface RefundsApiCreateRefundRequest
|
|
134
|
+
*/
|
|
135
|
+
export interface RefundsApiCreateRefundRequest {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {CreateRefundRequestDto}
|
|
139
|
+
* @memberof RefundsApiCreateRefund
|
|
140
|
+
*/
|
|
141
|
+
readonly createRefundRequestDto: CreateRefundRequestDto;
|
|
142
|
+
/**
|
|
143
|
+
* Bearer Token
|
|
144
|
+
* @type {string}
|
|
145
|
+
* @memberof RefundsApiCreateRefund
|
|
146
|
+
*/
|
|
147
|
+
readonly authorization?: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Request parameters for getRefund operation in RefundsApi.
|
|
151
|
+
* @export
|
|
152
|
+
* @interface RefundsApiGetRefundRequest
|
|
153
|
+
*/
|
|
154
|
+
export interface RefundsApiGetRefundRequest {
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof RefundsApiGetRefund
|
|
159
|
+
*/
|
|
160
|
+
readonly code: string;
|
|
161
|
+
/**
|
|
162
|
+
* Unique identifier for the object.
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof RefundsApiGetRefund
|
|
165
|
+
*/
|
|
166
|
+
readonly code2: string;
|
|
167
|
+
/**
|
|
168
|
+
* Fields to expand response by
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof RefundsApiGetRefund
|
|
171
|
+
*/
|
|
172
|
+
readonly expand: string;
|
|
173
|
+
/**
|
|
174
|
+
* Bearer Token
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof RefundsApiGetRefund
|
|
177
|
+
*/
|
|
178
|
+
readonly authorization?: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Request parameters for listRefunds operation in RefundsApi.
|
|
182
|
+
* @export
|
|
183
|
+
* @interface RefundsApiListRefundsRequest
|
|
184
|
+
*/
|
|
185
|
+
export interface RefundsApiListRefundsRequest {
|
|
186
|
+
/**
|
|
187
|
+
* Bearer Token
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof RefundsApiListRefunds
|
|
190
|
+
*/
|
|
191
|
+
readonly authorization?: string;
|
|
192
|
+
/**
|
|
193
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
194
|
+
* @type {any}
|
|
195
|
+
* @memberof RefundsApiListRefunds
|
|
196
|
+
*/
|
|
197
|
+
readonly pageSize?: any;
|
|
198
|
+
/**
|
|
199
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
200
|
+
* @type {any}
|
|
201
|
+
* @memberof RefundsApiListRefunds
|
|
202
|
+
*/
|
|
203
|
+
readonly pageToken?: any;
|
|
204
|
+
/**
|
|
205
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
206
|
+
* @type {any}
|
|
207
|
+
* @memberof RefundsApiListRefunds
|
|
208
|
+
*/
|
|
209
|
+
readonly filter?: any;
|
|
210
|
+
/**
|
|
211
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
212
|
+
* @type {any}
|
|
213
|
+
* @memberof RefundsApiListRefunds
|
|
214
|
+
*/
|
|
215
|
+
readonly search?: any;
|
|
216
|
+
/**
|
|
217
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
218
|
+
* @type {any}
|
|
219
|
+
* @memberof RefundsApiListRefunds
|
|
220
|
+
*/
|
|
221
|
+
readonly order?: any;
|
|
222
|
+
/**
|
|
223
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
224
|
+
* @type {any}
|
|
225
|
+
* @memberof RefundsApiListRefunds
|
|
226
|
+
*/
|
|
227
|
+
readonly expand?: any;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* RefundsApi - object-oriented interface
|
|
231
|
+
* @export
|
|
232
|
+
* @class RefundsApi
|
|
233
|
+
* @extends {BaseAPI}
|
|
234
|
+
*/
|
|
235
|
+
export declare class RefundsApi extends BaseAPI {
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @param {RefundsApiCreateRefundRequest} requestParameters Request parameters.
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
* @memberof RefundsApi
|
|
242
|
+
*/
|
|
243
|
+
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any>>;
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @param {RefundsApiGetRefundRequest} requestParameters Request parameters.
|
|
247
|
+
* @param {*} [options] Override http request option.
|
|
248
|
+
* @throws {RequiredError}
|
|
249
|
+
* @memberof RefundsApi
|
|
250
|
+
*/
|
|
251
|
+
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any>>;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param {RefundsApiListRefundsRequest} requestParameters Request parameters.
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
* @memberof RefundsApi
|
|
258
|
+
*/
|
|
259
|
+
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any>>;
|
|
260
|
+
}
|