@emilgroup/payment-sdk 1.0.0 → 1.3.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.
Files changed (86) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +4 -4
  4. package/api/bank-transaction-api.ts +565 -0
  5. package/api/payment-methods-api.ts +4 -4
  6. package/api/payment-reminders-api.ts +12 -10
  7. package/api/payments-api.ts +4 -4
  8. package/api/refunds-api.ts +460 -0
  9. package/api/tenant-bank-account-api.ts +651 -0
  10. package/api.ts +6 -2
  11. package/dist/api/bank-accounts-api.d.ts +4 -4
  12. package/dist/api/bank-accounts-api.js +3 -3
  13. package/dist/api/bank-transaction-api.d.ts +318 -0
  14. package/dist/api/bank-transaction-api.js +539 -0
  15. package/dist/api/payment-methods-api.d.ts +4 -4
  16. package/dist/api/payment-methods-api.js +3 -3
  17. package/dist/api/payment-reminders-api.d.ts +12 -11
  18. package/dist/api/payment-reminders-api.js +7 -7
  19. package/dist/api/payments-api.d.ts +4 -4
  20. package/dist/api/payments-api.js +3 -3
  21. package/dist/api/refunds-api.d.ts +260 -0
  22. package/dist/api/refunds-api.js +441 -0
  23. package/dist/api/tenant-bank-account-api.d.ts +361 -0
  24. package/dist/api/tenant-bank-account-api.js +616 -0
  25. package/dist/api.d.ts +3 -1
  26. package/dist/api.js +3 -1
  27. package/dist/models/bank-transaction-response-class.d.ts +122 -0
  28. package/dist/models/create-payment-request-dto.d.ts +3 -3
  29. package/dist/models/create-refund-request-dto.d.ts +24 -0
  30. package/dist/models/create-refund-request-dto.js +15 -0
  31. package/dist/models/create-refund-response-class.d.ts +25 -0
  32. package/dist/models/create-refund-response-class.js +15 -0
  33. package/dist/models/create-tenant-bank-account-request-dto.d.ts +42 -0
  34. package/dist/models/create-tenant-bank-account-request-dto.js +15 -0
  35. package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
  36. package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
  37. package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
  38. package/dist/models/get-bank-transactions-response-class.js +15 -0
  39. package/dist/models/{validate-pspconfig-response-class.d.ts → get-refund-response-class.d.ts} +7 -6
  40. package/dist/models/get-refund-response-class.js +15 -0
  41. package/dist/models/get-tenant-bank-account-response-class.d.ts +25 -0
  42. package/dist/models/get-tenant-bank-account-response-class.js +15 -0
  43. package/dist/models/index.d.ts +14 -1
  44. package/dist/models/index.js +14 -1
  45. package/dist/models/inline-response200.d.ts +6 -6
  46. package/dist/models/inline-response503.d.ts +6 -6
  47. package/dist/models/link-bank-transaction-request-dto.d.ts +30 -0
  48. package/dist/models/link-bank-transaction-request-dto.js +15 -0
  49. package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
  50. package/dist/models/list-bank-transactions-response-class.js +15 -0
  51. package/dist/models/list-refunds-response-class.d.ts +31 -0
  52. package/dist/models/list-refunds-response-class.js +15 -0
  53. package/dist/models/payment-class.d.ts +1 -1
  54. package/dist/models/payment-method-class.d.ts +8 -2
  55. package/dist/models/refund-class.d.ts +104 -0
  56. package/dist/models/refund-class.js +28 -0
  57. package/dist/models/tenant-bank-account-response-class.d.ts +66 -0
  58. package/dist/models/tenant-bank-account-response-class.js +15 -0
  59. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +36 -0
  60. package/dist/models/update-tenant-bank-account-rest-request-dto.js +15 -0
  61. package/git_push.sh +1 -1
  62. package/models/bank-transaction-response-class.ts +128 -0
  63. package/models/create-payment-request-dto.ts +3 -3
  64. package/models/create-refund-request-dto.ts +30 -0
  65. package/models/create-refund-response-class.ts +31 -0
  66. package/models/create-tenant-bank-account-request-dto.ts +48 -0
  67. package/models/deactivate-payment-reminder-response-class.ts +31 -0
  68. package/models/get-bank-transactions-response-class.ts +31 -0
  69. package/models/{validate-pspconfig-response-class.ts → get-refund-response-class.ts} +7 -6
  70. package/models/get-tenant-bank-account-response-class.ts +31 -0
  71. package/models/index.ts +14 -1
  72. package/models/inline-response200.ts +6 -6
  73. package/models/inline-response503.ts +6 -6
  74. package/models/link-bank-transaction-request-dto.ts +36 -0
  75. package/models/list-bank-transactions-response-class.ts +37 -0
  76. package/models/list-refunds-response-class.ts +37 -0
  77. package/models/payment-class.ts +1 -1
  78. package/models/payment-method-class.ts +8 -2
  79. package/models/refund-class.ts +114 -0
  80. package/models/tenant-bank-account-response-class.ts +72 -0
  81. package/models/update-tenant-bank-account-rest-request-dto.ts +42 -0
  82. package/package.json +1 -2
  83. package/api/payment-service-providers-api.ts +0 -161
  84. package/dist/api/payment-service-providers-api.d.ts +0 -93
  85. package/dist/api/payment-service-providers-api.js +0 -220
  86. /package/dist/models/{validate-pspconfig-response-class.js → bank-transaction-response-class.js} +0 -0
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePaymentReminderRequestDto } from '../models';
16
16
  import { DeactivatePaymentReminderRequestDto } from '../models';
17
+ import { DeactivatePaymentReminderResponseClass } from '../models';
17
18
  import { ListPaymentRemindersResponseClass } from '../models';
18
19
  /**
19
20
  * PaymentRemindersApi - axios parameter creator
@@ -30,7 +31,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
30
31
  */
31
32
  createPaymentReminder: (createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
33
  /**
33
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
34
+ * Deactivates the payment reminder
34
35
  * @summary Update the payment-reminder
35
36
  * @param {string} code Unique identifier for the object.
36
37
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -52,7 +53,7 @@ export declare const PaymentRemindersApiAxiosParamCreator: (configuration?: Conf
52
53
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
53
54
  * @summary List payment reminders
54
55
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
56
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
56
57
  * @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.
57
58
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
58
59
  * @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.
@@ -78,7 +79,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
78
79
  */
79
80
  createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
80
81
  /**
81
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
82
+ * Deactivates the payment reminder
82
83
  * @summary Update the payment-reminder
83
84
  * @param {string} code Unique identifier for the object.
84
85
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -86,7 +87,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
86
87
  * @param {*} [options] Override http request option.
87
88
  * @throws {RequiredError}
88
89
  */
89
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
90
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>>;
90
91
  /**
91
92
  * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
92
93
  * @summary Retrieve the payment reminder
@@ -100,7 +101,7 @@ export declare const PaymentRemindersApiFp: (configuration?: Configuration) => {
100
101
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
101
102
  * @summary List payment reminders
102
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
104
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
104
105
  * @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.
105
106
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
106
107
  * @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.
@@ -126,7 +127,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
126
127
  */
127
128
  createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
128
129
  /**
129
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
130
+ * Deactivates the payment reminder
130
131
  * @summary Update the payment-reminder
131
132
  * @param {string} code Unique identifier for the object.
132
133
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -134,7 +135,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
134
135
  * @param {*} [options] Override http request option.
135
136
  * @throws {RequiredError}
136
137
  */
137
- deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object>;
138
+ deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass>;
138
139
  /**
139
140
  * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
140
141
  * @summary Retrieve the payment reminder
@@ -148,7 +149,7 @@ export declare const PaymentRemindersApiFactory: (configuration?: Configuration,
148
149
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
149
150
  * @summary List payment reminders
150
151
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
152
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
153
  * @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.
153
154
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
154
155
  * @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.
@@ -235,7 +236,7 @@ export interface PaymentRemindersApiListPaymentRemindersRequest {
235
236
  */
236
237
  readonly authorization?: string;
237
238
  /**
238
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
239
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
239
240
  * @type {any}
240
241
  * @memberof PaymentRemindersApiListPaymentReminders
241
242
  */
@@ -288,14 +289,14 @@ export declare class PaymentRemindersApi extends BaseAPI {
288
289
  */
289
290
  createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
290
291
  /**
291
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
292
+ * Deactivates the payment reminder
292
293
  * @summary Update the payment-reminder
293
294
  * @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
294
295
  * @param {*} [options] Override http request option.
295
296
  * @throws {RequiredError}
296
297
  * @memberof PaymentRemindersApi
297
298
  */
298
- deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
299
+ deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeactivatePaymentReminderResponseClass, any>>;
299
300
  /**
300
301
  * Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information.
301
302
  * @summary Retrieve the payment reminder
@@ -142,7 +142,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
145
+ * Deactivates the payment reminder
146
146
  * @summary Update the payment-reminder
147
147
  * @param {string} code Unique identifier for the object.
148
148
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -246,7 +246,7 @@ var PaymentRemindersApiAxiosParamCreator = function (configuration) {
246
246
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
247
247
  * @summary List payment reminders
248
248
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
249
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
250
250
  * @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.
251
251
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
252
252
  * @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.
@@ -342,7 +342,7 @@ var PaymentRemindersApiFp = function (configuration) {
342
342
  });
343
343
  },
344
344
  /**
345
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
345
+ * Deactivates the payment reminder
346
346
  * @summary Update the payment-reminder
347
347
  * @param {string} code Unique identifier for the object.
348
348
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -388,7 +388,7 @@ var PaymentRemindersApiFp = function (configuration) {
388
388
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
389
389
  * @summary List payment reminders
390
390
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
391
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
391
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
392
392
  * @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.
393
393
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
394
394
  * @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.
@@ -432,7 +432,7 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
432
432
  return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
433
433
  },
434
434
  /**
435
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
435
+ * Deactivates the payment reminder
436
436
  * @summary Update the payment-reminder
437
437
  * @param {string} code Unique identifier for the object.
438
438
  * @param {DeactivatePaymentReminderRequestDto} deactivatePaymentReminderRequestDto
@@ -458,7 +458,7 @@ var PaymentRemindersApiFactory = function (configuration, basePath, axios) {
458
458
  * Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
459
459
  * @summary List payment reminders
460
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
461
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
462
462
  * @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.
463
463
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
464
464
  * @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.
@@ -497,7 +497,7 @@ var PaymentRemindersApi = /** @class */ (function (_super) {
497
497
  return (0, exports.PaymentRemindersApiFp)(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
498
498
  };
499
499
  /**
500
- * Updates the specified payment-reminder by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
500
+ * Deactivates the payment reminder
501
501
  * @summary Update the payment-reminder
502
502
  * @param {PaymentRemindersApiDeactivatePaymentReminderRequest} requestParameters Request parameters.
503
503
  * @param {*} [options] Override http request option.
@@ -46,7 +46,7 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
46
46
  * 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.
47
47
  * @summary List payments
48
48
  * @param {string} [authorization] Bearer Token
49
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
49
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
50
50
  * @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.
51
51
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
52
52
  * @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.
@@ -87,7 +87,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
87
87
  * 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.
88
88
  * @summary List payments
89
89
  * @param {string} [authorization] Bearer Token
90
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
90
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
91
91
  * @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.
92
92
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
93
93
  * @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.
@@ -128,7 +128,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
128
128
  * 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.
129
129
  * @summary List payments
130
130
  * @param {string} [authorization] Bearer Token
131
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
131
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
132
132
  * @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.
133
133
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
134
134
  * @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.
@@ -208,7 +208,7 @@ export interface PaymentsApiListPaymentsRequest {
208
208
  */
209
209
  readonly authorization?: string;
210
210
  /**
211
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
211
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
212
212
  * @type {any}
213
213
  * @memberof PaymentsApiListPayments
214
214
  */
@@ -209,7 +209,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
209
209
  * 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
210
  * @summary List payments
211
211
  * @param {string} [authorization] Bearer Token
212
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
212
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
213
213
  * @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.
214
214
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
215
215
  * @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.
@@ -332,7 +332,7 @@ var PaymentsApiFp = function (configuration) {
332
332
  * 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
333
  * @summary List payments
334
334
  * @param {string} [authorization] Bearer Token
335
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
335
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
336
336
  * @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.
337
337
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
338
338
  * @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.
@@ -393,7 +393,7 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
393
393
  * 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
394
  * @summary List payments
395
395
  * @param {string} [authorization] Bearer Token
396
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
396
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
397
397
  * @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.
398
398
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
399
399
  * @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.
@@ -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: kontakt@emil.de
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} [authorization] Bearer Token
37
+ * @param {string} [expand] Fields to expand response by
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ getRefund: (code: string, code2: string, authorization?: string, expand?: 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} [authorization] Bearer Token
74
+ * @param {string} [expand] Fields to expand response by
75
+ * @param {*} [options] Override http request option.
76
+ * @throws {RequiredError}
77
+ */
78
+ getRefund(code: string, code2: string, authorization?: string, expand?: 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} [authorization] Bearer Token
111
+ * @param {string} [expand] Fields to expand response by
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getRefund(code: string, code2: string, authorization?: string, expand?: 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
+ * Bearer Token
169
+ * @type {string}
170
+ * @memberof RefundsApiGetRefund
171
+ */
172
+ readonly authorization?: string;
173
+ /**
174
+ * Fields to expand response by
175
+ * @type {string}
176
+ * @memberof RefundsApiGetRefund
177
+ */
178
+ readonly expand?: 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
+ }