@emilgroup/payment-sdk-node 1.8.2 → 1.13.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.
Files changed (177) hide show
  1. package/.openapi-generator/FILES +15 -30
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +21 -25
  4. package/api/bank-transaction-api.ts +661 -0
  5. package/api/default-api.ts +1 -1
  6. package/api/payment-methods-api.ts +42 -46
  7. package/api/payment-reminders-api.ts +17 -19
  8. package/api/payment-setup-api.ts +29 -37
  9. package/api/payments-api.ts +30 -32
  10. package/api/refunds-api.ts +466 -0
  11. package/api/tenant-bank-account-api.ts +655 -0
  12. package/api/webhooks-api.ts +1 -1
  13. package/api.ts +7 -3
  14. package/base.ts +1 -1
  15. package/common.ts +2 -2
  16. package/configuration.ts +1 -1
  17. package/dist/api/bank-accounts-api.d.ts +17 -19
  18. package/dist/api/bank-accounts-api.js +16 -16
  19. package/dist/api/bank-transaction-api.d.ts +371 -0
  20. package/dist/api/bank-transaction-api.js +636 -0
  21. package/dist/api/default-api.d.ts +1 -1
  22. package/dist/api/default-api.js +1 -1
  23. package/dist/api/payment-methods-api.d.ts +32 -36
  24. package/dist/api/payment-methods-api.js +32 -28
  25. package/dist/api/payment-reminders-api.d.ts +21 -22
  26. package/dist/api/payment-reminders-api.js +8 -8
  27. package/dist/api/payment-setup-api.d.ts +19 -23
  28. package/dist/api/payment-setup-api.js +25 -25
  29. package/dist/api/payments-api.d.ts +26 -29
  30. package/dist/api/payments-api.js +20 -16
  31. package/dist/api/refunds-api.d.ts +260 -0
  32. package/dist/api/refunds-api.js +447 -0
  33. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  34. package/dist/api/tenant-bank-account-api.js +620 -0
  35. package/dist/api/webhooks-api.d.ts +1 -1
  36. package/dist/api/webhooks-api.js +1 -1
  37. package/dist/api.d.ts +4 -2
  38. package/dist/api.js +4 -2
  39. package/dist/base.d.ts +1 -1
  40. package/dist/base.js +1 -1
  41. package/dist/common.d.ts +2 -2
  42. package/dist/common.js +1 -1
  43. package/dist/configuration.d.ts +1 -1
  44. package/dist/configuration.js +1 -1
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.js +1 -1
  47. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  48. package/dist/models/{bank-account-class.js → bank-transaction-response-class.js} +1 -1
  49. package/dist/models/create-payment-reminder-request-dto.d.ts +3 -1
  50. package/dist/models/create-payment-reminder-request-dto.js +4 -2
  51. package/dist/models/create-payment-request-dto.d.ts +3 -3
  52. package/dist/models/create-payment-request-dto.js +1 -1
  53. package/dist/models/{sepa-direct-dto.d.ts → create-refund-request-dto.d.ts} +6 -6
  54. package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-refund-request-dto.js} +1 -1
  55. package/dist/models/{validate-pspconfig-response-class.d.ts → create-refund-response-class.d.ts} +8 -7
  56. package/dist/models/{billing-profile-dto.js → create-refund-response-class.js} +1 -1
  57. package/dist/models/{billing-profile-limited-response-dto.d.ts → create-tenant-bank-account-request-dto.d.ts} +15 -27
  58. package/dist/models/{billing-profile-limited-response-dto.js → create-tenant-bank-account-request-dto.js} +1 -1
  59. package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
  60. package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
  61. package/dist/models/{get-payment-method-response-class.d.ts → get-bank-transactions-response-class.d.ts} +8 -8
  62. package/dist/models/get-bank-transactions-response-class.js +15 -0
  63. package/dist/models/{get-payment-response-class.d.ts → get-refund-response-class.d.ts} +8 -8
  64. package/dist/models/get-refund-response-class.js +15 -0
  65. package/dist/models/get-request-dto.d.ts +2 -2
  66. package/dist/models/get-request-dto.js +1 -1
  67. package/dist/models/{create-bank-account-request-dto.d.ts → get-tenant-bank-account-response-class.d.ts} +8 -13
  68. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +12 -29
  70. package/dist/models/index.js +12 -29
  71. package/dist/models/inline-response200.d.ts +7 -7
  72. package/dist/models/inline-response200.js +1 -1
  73. package/dist/models/inline-response503.d.ts +7 -7
  74. package/dist/models/inline-response503.js +1 -1
  75. package/dist/models/{list-payment-methods-response-class.d.ts → list-bank-transactions-response-class.d.ts} +9 -9
  76. package/dist/models/list-bank-transactions-response-class.js +15 -0
  77. package/dist/models/{list-payments-response-class.d.ts → list-refunds-response-class.d.ts} +9 -9
  78. package/dist/models/list-refunds-response-class.js +15 -0
  79. package/dist/models/refund-class.d.ts +104 -0
  80. package/dist/models/refund-class.js +28 -0
  81. package/dist/models/{payment-method-class.d.ts → tenant-bank-account-response-class.d.ts} +25 -19
  82. package/dist/models/tenant-bank-account-response-class.js +15 -0
  83. package/dist/models/transaction-class.d.ts +1 -1
  84. package/dist/models/transaction-class.js +1 -1
  85. package/dist/models/{symphony-profile-limited-response-dto.d.ts → update-tenant-bank-account-rest-request-dto.d.ts} +12 -18
  86. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  87. package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
  88. package/dist/models/validate-pspconfig-request-dto.js +1 -8
  89. package/index.ts +1 -1
  90. package/models/bank-transaction-response-class.ts +128 -0
  91. package/models/create-payment-reminder-request-dto.ts +4 -2
  92. package/models/create-payment-request-dto.ts +3 -3
  93. package/models/{sepa-direct-dto.ts → create-refund-request-dto.ts} +6 -6
  94. package/models/{validate-pspconfig-response-class.ts → create-refund-response-class.ts} +8 -7
  95. package/models/{billing-profile-limited-response-dto.ts → create-tenant-bank-account-request-dto.ts} +15 -27
  96. package/models/deactivate-payment-reminder-request-dto.ts +1 -1
  97. package/models/{get-payment-method-response-class.ts → get-bank-transactions-response-class.ts} +8 -8
  98. package/models/{get-payment-response-class.ts → get-refund-response-class.ts} +8 -8
  99. package/models/get-request-dto.ts +2 -2
  100. package/models/{create-bank-account-request-dto.ts → get-tenant-bank-account-response-class.ts} +8 -13
  101. package/models/index.ts +12 -29
  102. package/models/inline-response200.ts +7 -7
  103. package/models/inline-response503.ts +7 -7
  104. package/models/{list-payment-methods-response-class.ts → list-bank-transactions-response-class.ts} +9 -9
  105. package/models/{list-payments-response-class.ts → list-refunds-response-class.ts} +9 -9
  106. package/models/refund-class.ts +114 -0
  107. package/models/{payment-method-class.ts → tenant-bank-account-response-class.ts} +25 -19
  108. package/models/transaction-class.ts +1 -1
  109. package/models/{symphony-profile-limited-response-dto.ts → update-tenant-bank-account-rest-request-dto.ts} +12 -18
  110. package/models/validate-pspconfig-request-dto.ts +2 -12
  111. package/package.json +1 -1
  112. package/api/payment-service-providers-api.ts +0 -165
  113. package/dist/api/payment-service-providers-api.d.ts +0 -93
  114. package/dist/api/payment-service-providers-api.js +0 -224
  115. package/dist/models/bank-account-class.d.ts +0 -54
  116. package/dist/models/billing-profile-dto.d.ts +0 -38
  117. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  118. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  119. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  120. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  121. package/dist/models/complete-payment-setup-response-class.js +0 -15
  122. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  123. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  124. package/dist/models/create-bank-account-request-dto.js +0 -15
  125. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  126. package/dist/models/create-payment-method-response-class.js +0 -15
  127. package/dist/models/create-payment-response-class.d.ts +0 -25
  128. package/dist/models/create-payment-response-class.js +0 -15
  129. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  130. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  131. package/dist/models/get-payment-method-response-class.js +0 -15
  132. package/dist/models/get-payment-response-class.js +0 -15
  133. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  134. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  135. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  136. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  137. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  138. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  139. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  140. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  141. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  142. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  143. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  144. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  145. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  146. package/dist/models/list-bank-accounts-response-class.js +0 -15
  147. package/dist/models/list-payment-methods-response-class.js +0 -15
  148. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  149. package/dist/models/list-payment-reminders-response-class.js +0 -15
  150. package/dist/models/list-payments-response-class.js +0 -15
  151. package/dist/models/payment-class.d.ts +0 -103
  152. package/dist/models/payment-class.js +0 -15
  153. package/dist/models/payment-method-class.js +0 -15
  154. package/dist/models/payment-reminder-class.d.ts +0 -108
  155. package/dist/models/payment-reminder-class.js +0 -32
  156. package/dist/models/sepa-direct-dto.js +0 -15
  157. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  158. package/dist/models/validate-pspconfig-response-class.js +0 -15
  159. package/models/bank-account-class.ts +0 -60
  160. package/models/billing-profile-dto.ts +0 -44
  161. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  162. package/models/complete-payment-setup-request-dto.ts +0 -38
  163. package/models/complete-payment-setup-response-class.ts +0 -31
  164. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  165. package/models/create-payment-method-response-class.ts +0 -31
  166. package/models/create-payment-response-class.ts +0 -31
  167. package/models/create-psp-payment-method-request-dto.ts +0 -70
  168. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  169. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  170. package/models/initiate-payment-setup-request-dto.ts +0 -50
  171. package/models/initiate-payment-setup-response-class.ts +0 -38
  172. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  173. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  174. package/models/list-bank-accounts-response-class.ts +0 -37
  175. package/models/list-payment-reminders-response-class.ts +0 -37
  176. package/models/payment-class.ts +0 -109
  177. package/models/payment-reminder-class.ts +0 -118
@@ -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: kontakt@emil.de
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
@@ -155,13 +155,13 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
155
155
  * 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.
156
156
  * @summary Retrieve a payment
157
157
  * @param {string} code Unique identifier for the object.
158
+ * @param {string} expand Fields to expand response by
159
+ * @param {string} expand2 Fields to expand response by
158
160
  * @param {string} [authorization] Bearer Token
159
- * @param {string} [expand] Fields to expand response by
160
- * @param {string} [expand2] Fields to expand response by
161
161
  * @param {*} [options] Override http request option.
162
162
  * @throws {RequiredError}
163
163
  */
164
- getPayment: function (code, authorization, expand, expand2, options) {
164
+ getPayment: function (code, expand, expand2, authorization, options) {
165
165
  if (options === void 0) { options = {}; }
166
166
  return __awaiter(_this, void 0, void 0, function () {
167
167
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -170,6 +170,10 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
170
170
  case 0:
171
171
  // verify required parameter 'code' is not null or undefined
172
172
  (0, common_1.assertParamExists)('getPayment', 'code', code);
173
+ // verify required parameter 'expand' is not null or undefined
174
+ (0, common_1.assertParamExists)('getPayment', 'expand', expand);
175
+ // verify required parameter 'expand2' is not null or undefined
176
+ (0, common_1.assertParamExists)('getPayment', 'expand2', expand2);
173
177
  localVarPath = "/paymentservice/v1/payments/{code}";
174
178
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
175
179
  if (configuration) {
@@ -213,7 +217,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
213
217
  * 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.
214
218
  * @summary List payments
215
219
  * @param {string} [authorization] Bearer Token
216
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
220
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
217
221
  * @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.
218
222
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
219
223
  * @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.
@@ -313,18 +317,18 @@ var PaymentsApiFp = function (configuration) {
313
317
  * 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.
314
318
  * @summary Retrieve a payment
315
319
  * @param {string} code Unique identifier for the object.
320
+ * @param {string} expand Fields to expand response by
321
+ * @param {string} expand2 Fields to expand response by
316
322
  * @param {string} [authorization] Bearer Token
317
- * @param {string} [expand] Fields to expand response by
318
- * @param {string} [expand2] Fields to expand response by
319
323
  * @param {*} [options] Override http request option.
320
324
  * @throws {RequiredError}
321
325
  */
322
- getPayment: function (code, authorization, expand, expand2, options) {
326
+ getPayment: function (code, expand, expand2, authorization, options) {
323
327
  return __awaiter(this, void 0, void 0, function () {
324
328
  var localVarAxiosArgs;
325
329
  return __generator(this, function (_a) {
326
330
  switch (_a.label) {
327
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, authorization, expand, expand2, options)];
331
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPayment(code, expand, expand2, authorization, options)];
328
332
  case 1:
329
333
  localVarAxiosArgs = _a.sent();
330
334
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -336,7 +340,7 @@ var PaymentsApiFp = function (configuration) {
336
340
  * 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.
337
341
  * @summary List payments
338
342
  * @param {string} [authorization] Bearer Token
339
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
343
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
340
344
  * @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.
341
345
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
342
346
  * @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.
@@ -384,20 +388,20 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
384
388
  * 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.
385
389
  * @summary Retrieve a payment
386
390
  * @param {string} code Unique identifier for the object.
391
+ * @param {string} expand Fields to expand response by
392
+ * @param {string} expand2 Fields to expand response by
387
393
  * @param {string} [authorization] Bearer Token
388
- * @param {string} [expand] Fields to expand response by
389
- * @param {string} [expand2] Fields to expand response by
390
394
  * @param {*} [options] Override http request option.
391
395
  * @throws {RequiredError}
392
396
  */
393
- getPayment: function (code, authorization, expand, expand2, options) {
394
- return localVarFp.getPayment(code, authorization, expand, expand2, options).then(function (request) { return request(axios, basePath); });
397
+ getPayment: function (code, expand, expand2, authorization, options) {
398
+ return localVarFp.getPayment(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
395
399
  },
396
400
  /**
397
401
  * 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.
398
402
  * @summary List payments
399
403
  * @param {string} [authorization] Bearer Token
400
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
404
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
401
405
  * @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.
402
406
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
403
407
  * @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.
@@ -445,7 +449,7 @@ var PaymentsApi = /** @class */ (function (_super) {
445
449
  */
446
450
  PaymentsApi.prototype.getPayment = function (requestParameters, options) {
447
451
  var _this = this;
448
- return (0, exports.PaymentsApiFp)(this.configuration).getPayment(requestParameters.code, requestParameters.authorization, requestParameters.expand, requestParameters.expand2, options).then(function (request) { return request(_this.axios, _this.basePath); });
452
+ 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); });
449
453
  };
450
454
  /**
451
455
  * 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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;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
+ }