@emilgroup/payment-sdk 1.4.1-beta.3 → 1.4.1-beta.5

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 (140) hide show
  1. package/.openapi-generator/FILES +0 -35
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +2 -204
  5. package/api/payment-methods-api.ts +37 -41
  6. package/api/payment-reminders-api.ts +8 -12
  7. package/api/payment-setup-api.ts +28 -36
  8. package/api/payments-api.ts +25 -27
  9. package/api.ts +0 -2
  10. package/dist/api/bank-accounts-api.d.ts +12 -14
  11. package/dist/api/bank-accounts-api.js +12 -12
  12. package/dist/api/bank-transaction-api.d.ts +3 -113
  13. package/dist/api/bank-transaction-api.js +0 -184
  14. package/dist/api/payment-methods-api.d.ts +27 -31
  15. package/dist/api/payment-methods-api.js +28 -24
  16. package/dist/api/payment-reminders-api.d.ts +12 -14
  17. package/dist/api/payment-setup-api.d.ts +18 -22
  18. package/dist/api/payment-setup-api.js +24 -24
  19. package/dist/api/payments-api.d.ts +21 -24
  20. package/dist/api/payments-api.js +16 -12
  21. package/dist/api.d.ts +0 -1
  22. package/dist/api.js +0 -1
  23. package/dist/models/bank-transaction-response-class.d.ts +6 -0
  24. package/dist/models/create-payment-request-dto.d.ts +3 -3
  25. package/dist/models/get-request-dto.d.ts +1 -1
  26. package/dist/models/index.d.ts +0 -34
  27. package/dist/models/index.js +0 -34
  28. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  29. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  30. package/models/bank-transaction-response-class.ts +6 -0
  31. package/models/create-payment-request-dto.ts +3 -3
  32. package/models/get-request-dto.ts +1 -1
  33. package/models/index.ts +0 -34
  34. package/models/validate-pspconfig-request-dto.ts +1 -11
  35. package/package.json +1 -1
  36. package/api/refunds-api.ts +0 -474
  37. package/dist/api/refunds-api.d.ts +0 -269
  38. package/dist/api/refunds-api.js +0 -447
  39. package/dist/models/bank-account-class.d.ts +0 -54
  40. package/dist/models/bank-account-class.js +0 -15
  41. package/dist/models/billing-profile-dto.d.ts +0 -38
  42. package/dist/models/billing-profile-dto.js +0 -15
  43. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  44. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  45. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  46. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  47. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  48. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  49. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  50. package/dist/models/complete-payment-setup-response-class.js +0 -15
  51. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  52. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  53. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  54. package/dist/models/create-bank-account-request-dto.js +0 -15
  55. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  56. package/dist/models/create-payment-method-response-class.js +0 -15
  57. package/dist/models/create-payment-response-class.d.ts +0 -25
  58. package/dist/models/create-payment-response-class.js +0 -15
  59. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  60. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  61. package/dist/models/create-refund-request-dto.d.ts +0 -24
  62. package/dist/models/create-refund-request-dto.js +0 -15
  63. package/dist/models/create-refund-response-class.d.ts +0 -25
  64. package/dist/models/create-refund-response-class.js +0 -15
  65. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  66. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  67. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  68. package/dist/models/get-payment-method-response-class.js +0 -15
  69. package/dist/models/get-payment-response-class.d.ts +0 -25
  70. package/dist/models/get-payment-response-class.js +0 -15
  71. package/dist/models/get-refund-response-class.d.ts +0 -25
  72. package/dist/models/get-refund-response-class.js +0 -15
  73. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  74. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  75. package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
  76. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  77. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  78. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  79. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  80. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  81. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  82. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  83. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  84. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  85. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  86. package/dist/models/list-bank-accounts-response-class.js +0 -15
  87. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  88. package/dist/models/list-payment-methods-response-class.js +0 -15
  89. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  90. package/dist/models/list-payment-reminders-response-class.js +0 -15
  91. package/dist/models/list-payments-response-class.d.ts +0 -31
  92. package/dist/models/list-payments-response-class.js +0 -15
  93. package/dist/models/list-refunds-response-class.d.ts +0 -31
  94. package/dist/models/list-refunds-response-class.js +0 -15
  95. package/dist/models/payment-class.d.ts +0 -103
  96. package/dist/models/payment-class.js +0 -15
  97. package/dist/models/payment-method-class.d.ts +0 -66
  98. package/dist/models/payment-method-class.js +0 -15
  99. package/dist/models/payment-reminder-class.d.ts +0 -112
  100. package/dist/models/payment-reminder-class.js +0 -36
  101. package/dist/models/refund-class.d.ts +0 -104
  102. package/dist/models/refund-class.js +0 -28
  103. package/dist/models/sepa-direct-dto.d.ts +0 -24
  104. package/dist/models/sepa-direct-dto.js +0 -15
  105. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  106. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  107. package/models/bank-account-class.ts +0 -60
  108. package/models/billing-profile-dto.ts +0 -44
  109. package/models/billing-profile-limited-response-dto.ts +0 -60
  110. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  111. package/models/complete-payment-setup-request-dto.ts +0 -38
  112. package/models/complete-payment-setup-response-class.ts +0 -31
  113. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  114. package/models/create-bank-account-request-dto.ts +0 -36
  115. package/models/create-payment-method-response-class.ts +0 -31
  116. package/models/create-payment-response-class.ts +0 -31
  117. package/models/create-psp-payment-method-request-dto.ts +0 -70
  118. package/models/create-refund-request-dto.ts +0 -30
  119. package/models/create-refund-response-class.ts +0 -31
  120. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  121. package/models/get-payment-method-response-class.ts +0 -31
  122. package/models/get-payment-response-class.ts +0 -31
  123. package/models/get-refund-response-class.ts +0 -31
  124. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  125. package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
  126. package/models/initiate-payment-setup-request-dto.ts +0 -50
  127. package/models/initiate-payment-setup-response-class.ts +0 -38
  128. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  129. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  130. package/models/list-bank-accounts-response-class.ts +0 -37
  131. package/models/list-payment-methods-response-class.ts +0 -37
  132. package/models/list-payment-reminders-response-class.ts +0 -37
  133. package/models/list-payments-response-class.ts +0 -37
  134. package/models/list-refunds-response-class.ts +0 -37
  135. package/models/payment-class.ts +0 -109
  136. package/models/payment-method-class.ts +0 -72
  137. package/models/payment-reminder-class.ts +0 -122
  138. package/models/refund-class.ts +0 -114
  139. package/models/sepa-direct-dto.ts +0 -30
  140. package/models/symphony-profile-limited-response-dto.ts +0 -48
@@ -94,20 +94,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
94
94
  return {
95
95
  /**
96
96
  *
97
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
97
+ * @param {object} body
98
98
  * @param {string} [authorization] Bearer Token
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
101
101
  */
102
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
102
+ completePaymentSetup: function (body, authorization, options) {
103
103
  if (options === void 0) { options = {}; }
104
104
  return __awaiter(_this, void 0, void 0, function () {
105
105
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
106
  return __generator(this, function (_a) {
107
107
  switch (_a.label) {
108
108
  case 0:
109
- // verify required parameter 'completePaymentSetupRequestDto' is not null or undefined
110
- (0, common_1.assertParamExists)('completePaymentSetup', 'completePaymentSetupRequestDto', completePaymentSetupRequestDto);
109
+ // verify required parameter 'body' is not null or undefined
110
+ (0, common_1.assertParamExists)('completePaymentSetup', 'body', body);
111
111
  localVarPath = "/paymentservice/v1/payment-setup/complete";
112
112
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
113
113
  if (configuration) {
@@ -131,7 +131,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
131
131
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
132
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
133
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completePaymentSetupRequestDto, localVarRequestOptions, configuration);
134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
135
135
  return [2 /*return*/, {
136
136
  url: (0, common_1.toPathString)(localVarUrlObj),
137
137
  options: localVarRequestOptions,
@@ -142,20 +142,20 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
142
142
  },
143
143
  /**
144
144
  *
145
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
145
+ * @param {object} body
146
146
  * @param {string} [authorization] Bearer Token
147
147
  * @param {*} [options] Override http request option.
148
148
  * @throws {RequiredError}
149
149
  */
150
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
150
+ initiatePaymentSetup: function (body, authorization, options) {
151
151
  if (options === void 0) { options = {}; }
152
152
  return __awaiter(_this, void 0, void 0, function () {
153
153
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
154
154
  return __generator(this, function (_a) {
155
155
  switch (_a.label) {
156
156
  case 0:
157
- // verify required parameter 'initiatePaymentSetupRequestDto' is not null or undefined
158
- (0, common_1.assertParamExists)('initiatePaymentSetup', 'initiatePaymentSetupRequestDto', initiatePaymentSetupRequestDto);
157
+ // verify required parameter 'body' is not null or undefined
158
+ (0, common_1.assertParamExists)('initiatePaymentSetup', 'body', body);
159
159
  localVarPath = "/paymentservice/v1/payment-setup/initiate";
160
160
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
161
161
  if (configuration) {
@@ -179,7 +179,7 @@ var PaymentSetupApiAxiosParamCreator = function (configuration) {
179
179
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
180
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
181
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(initiatePaymentSetupRequestDto, localVarRequestOptions, configuration);
182
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
183
183
  return [2 /*return*/, {
184
184
  url: (0, common_1.toPathString)(localVarUrlObj),
185
185
  options: localVarRequestOptions,
@@ -200,17 +200,17 @@ var PaymentSetupApiFp = function (configuration) {
200
200
  return {
201
201
  /**
202
202
  *
203
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
203
+ * @param {object} body
204
204
  * @param {string} [authorization] Bearer Token
205
205
  * @param {*} [options] Override http request option.
206
206
  * @throws {RequiredError}
207
207
  */
208
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
208
+ completePaymentSetup: function (body, authorization, options) {
209
209
  return __awaiter(this, void 0, void 0, function () {
210
210
  var localVarAxiosArgs;
211
211
  return __generator(this, function (_a) {
212
212
  switch (_a.label) {
213
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(completePaymentSetupRequestDto, authorization, options)];
213
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(body, authorization, options)];
214
214
  case 1:
215
215
  localVarAxiosArgs = _a.sent();
216
216
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -220,17 +220,17 @@ var PaymentSetupApiFp = function (configuration) {
220
220
  },
221
221
  /**
222
222
  *
223
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
223
+ * @param {object} body
224
224
  * @param {string} [authorization] Bearer Token
225
225
  * @param {*} [options] Override http request option.
226
226
  * @throws {RequiredError}
227
227
  */
228
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
228
+ initiatePaymentSetup: function (body, authorization, options) {
229
229
  return __awaiter(this, void 0, void 0, function () {
230
230
  var localVarAxiosArgs;
231
231
  return __generator(this, function (_a) {
232
232
  switch (_a.label) {
233
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options)];
233
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.initiatePaymentSetup(body, authorization, options)];
234
234
  case 1:
235
235
  localVarAxiosArgs = _a.sent();
236
236
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -250,23 +250,23 @@ var PaymentSetupApiFactory = function (configuration, basePath, axios) {
250
250
  return {
251
251
  /**
252
252
  *
253
- * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto
253
+ * @param {object} body
254
254
  * @param {string} [authorization] Bearer Token
255
255
  * @param {*} [options] Override http request option.
256
256
  * @throws {RequiredError}
257
257
  */
258
- completePaymentSetup: function (completePaymentSetupRequestDto, authorization, options) {
259
- return localVarFp.completePaymentSetup(completePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
258
+ completePaymentSetup: function (body, authorization, options) {
259
+ return localVarFp.completePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
260
260
  },
261
261
  /**
262
262
  *
263
- * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto
263
+ * @param {object} body
264
264
  * @param {string} [authorization] Bearer Token
265
265
  * @param {*} [options] Override http request option.
266
266
  * @throws {RequiredError}
267
267
  */
268
- initiatePaymentSetup: function (initiatePaymentSetupRequestDto, authorization, options) {
269
- return localVarFp.initiatePaymentSetup(initiatePaymentSetupRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
268
+ initiatePaymentSetup: function (body, authorization, options) {
269
+ return localVarFp.initiatePaymentSetup(body, authorization, options).then(function (request) { return request(axios, basePath); });
270
270
  },
271
271
  };
272
272
  };
@@ -291,7 +291,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
291
291
  */
292
292
  PaymentSetupApi.prototype.completePaymentSetup = function (requestParameters, options) {
293
293
  var _this = this;
294
- return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.completePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
294
+ return (0, exports.PaymentSetupApiFp)(this.configuration).completePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
295
295
  };
296
296
  /**
297
297
  *
@@ -302,7 +302,7 @@ var PaymentSetupApi = /** @class */ (function (_super) {
302
302
  */
303
303
  PaymentSetupApi.prototype.initiatePaymentSetup = function (requestParameters, options) {
304
304
  var _this = this;
305
- return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.initiatePaymentSetupRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
305
+ return (0, exports.PaymentSetupApiFp)(this.configuration).initiatePaymentSetup(requestParameters.body, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
306
306
  };
307
307
  return PaymentSetupApi;
308
308
  }(base_1.BaseAPI));
@@ -13,9 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreatePaymentRequestDto } from '../models';
16
- import { CreatePaymentResponseClass } from '../models';
17
- import { GetPaymentResponseClass } from '../models';
18
- import { ListPaymentsResponseClass } from '../models';
19
16
  /**
20
17
  * PaymentsApi - axios parameter creator
21
18
  * @export
@@ -35,13 +32,13 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
35
32
  * 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.
36
33
  * @summary Retrieve a payment
37
34
  * @param {string} code Unique identifier for the object.
35
+ * @param {string} expand Fields to expand response by
36
+ * @param {string} expand2 Fields to expand response by
38
37
  * @param {string} [authorization] Bearer Token
39
- * @param {string} [expand] Fields to expand response by
40
- * @param {string} [expand2] Fields to expand response by
41
38
  * @param {*} [options] Override http request option.
42
39
  * @throws {RequiredError}
43
40
  */
44
- getPayment: (code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ getPayment: (code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
42
  /**
46
43
  * 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
44
  * @summary List payments
@@ -72,18 +69,18 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
72
69
  * @param {*} [options] Override http request option.
73
70
  * @throws {RequiredError}
74
71
  */
75
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentResponseClass>>;
72
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
76
73
  /**
77
74
  * 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.
78
75
  * @summary Retrieve a payment
79
76
  * @param {string} code Unique identifier for the object.
77
+ * @param {string} expand Fields to expand response by
78
+ * @param {string} expand2 Fields to expand response by
80
79
  * @param {string} [authorization] Bearer Token
81
- * @param {string} [expand] Fields to expand response by
82
- * @param {string} [expand2] Fields to expand response by
83
80
  * @param {*} [options] Override http request option.
84
81
  * @throws {RequiredError}
85
82
  */
86
- getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentResponseClass>>;
83
+ getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
87
84
  /**
88
85
  * 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.
89
86
  * @summary List payments
@@ -98,7 +95,7 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
98
95
  * @param {*} [options] Override http request option.
99
96
  * @throws {RequiredError}
100
97
  */
101
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentsResponseClass>>;
98
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
102
99
  };
103
100
  /**
104
101
  * PaymentsApi - factory interface
@@ -114,18 +111,18 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
114
111
  * @param {*} [options] Override http request option.
115
112
  * @throws {RequiredError}
116
113
  */
117
- createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentResponseClass>;
114
+ createPayment(idempotencyKey: string, createPaymentRequestDto: CreatePaymentRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
118
115
  /**
119
116
  * 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.
120
117
  * @summary Retrieve a payment
121
118
  * @param {string} code Unique identifier for the object.
119
+ * @param {string} expand Fields to expand response by
120
+ * @param {string} expand2 Fields to expand response by
122
121
  * @param {string} [authorization] Bearer Token
123
- * @param {string} [expand] Fields to expand response by
124
- * @param {string} [expand2] Fields to expand response by
125
122
  * @param {*} [options] Override http request option.
126
123
  * @throws {RequiredError}
127
124
  */
128
- getPayment(code: string, authorization?: string, expand?: string, expand2?: string, options?: any): AxiosPromise<GetPaymentResponseClass>;
125
+ getPayment(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void>;
129
126
  /**
130
127
  * 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.
131
128
  * @summary List payments
@@ -140,7 +137,7 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
140
137
  * @param {*} [options] Override http request option.
141
138
  * @throws {RequiredError}
142
139
  */
143
- listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentsResponseClass>;
140
+ listPayments(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void>;
144
141
  };
145
142
  /**
146
143
  * Request parameters for createPayment operation in PaymentsApi.
@@ -180,23 +177,23 @@ export interface PaymentsApiGetPaymentRequest {
180
177
  */
181
178
  readonly code: string;
182
179
  /**
183
- * Bearer Token
180
+ * Fields to expand response by
184
181
  * @type {string}
185
182
  * @memberof PaymentsApiGetPayment
186
183
  */
187
- readonly authorization?: string;
184
+ readonly expand: string;
188
185
  /**
189
186
  * Fields to expand response by
190
187
  * @type {string}
191
188
  * @memberof PaymentsApiGetPayment
192
189
  */
193
- readonly expand?: string;
190
+ readonly expand2: string;
194
191
  /**
195
- * Fields to expand response by
192
+ * Bearer Token
196
193
  * @type {string}
197
194
  * @memberof PaymentsApiGetPayment
198
195
  */
199
- readonly expand2?: string;
196
+ readonly authorization?: string;
200
197
  }
201
198
  /**
202
199
  * Request parameters for listPayments operation in PaymentsApi.
@@ -268,7 +265,7 @@ export declare class PaymentsApi extends BaseAPI {
268
265
  * @throws {RequiredError}
269
266
  * @memberof PaymentsApi
270
267
  */
271
- createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentResponseClass, any>>;
268
+ createPayment(requestParameters: PaymentsApiCreatePaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
272
269
  /**
273
270
  * 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.
274
271
  * @summary Retrieve a payment
@@ -277,7 +274,7 @@ export declare class PaymentsApi extends BaseAPI {
277
274
  * @throws {RequiredError}
278
275
  * @memberof PaymentsApi
279
276
  */
280
- getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentResponseClass, any>>;
277
+ getPayment(requestParameters: PaymentsApiGetPaymentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
281
278
  /**
282
279
  * 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.
283
280
  * @summary List payments
@@ -286,5 +283,5 @@ export declare class PaymentsApi extends BaseAPI {
286
283
  * @throws {RequiredError}
287
284
  * @memberof PaymentsApi
288
285
  */
289
- listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentsResponseClass, any>>;
286
+ listPayments(requestParameters?: PaymentsApiListPaymentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
290
287
  }
@@ -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, authorization, expand, expand2, options) {
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) {
@@ -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)];
@@ -385,14 +389,14 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
385
389
  * 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.
386
390
  * @summary Retrieve a payment
387
391
  * @param {string} code Unique identifier for the object.
392
+ * @param {string} expand Fields to expand response by
393
+ * @param {string} expand2 Fields to expand response by
388
394
  * @param {string} [authorization] Bearer Token
389
- * @param {string} [expand] Fields to expand response by
390
- * @param {string} [expand2] Fields to expand response by
391
395
  * @param {*} [options] Override http request option.
392
396
  * @throws {RequiredError}
393
397
  */
394
- getPayment: function (code, authorization, expand, expand2, options) {
395
- return localVarFp.getPayment(code, authorization, expand, expand2, options).then(function (request) { return request(axios, basePath); });
398
+ getPayment: function (code, expand, expand2, authorization, options) {
399
+ return localVarFp.getPayment(code, expand, expand2, authorization, options).then(function (request) { return request(axios, basePath); });
396
400
  },
397
401
  /**
398
402
  * 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.
@@ -447,7 +451,7 @@ var PaymentsApi = /** @class */ (function (_super) {
447
451
  */
448
452
  PaymentsApi.prototype.getPayment = function (requestParameters, options) {
449
453
  var _this = this;
450
- 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); });
454
+ 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); });
451
455
  };
452
456
  /**
453
457
  * 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.
package/dist/api.d.ts CHANGED
@@ -16,6 +16,5 @@ export * from './api/payment-methods-api';
16
16
  export * from './api/payment-reminders-api';
17
17
  export * from './api/payment-setup-api';
18
18
  export * from './api/payments-api';
19
- export * from './api/refunds-api';
20
19
  export * from './api/tenant-bank-account-api';
21
20
  export * from './api/webhooks-api';
package/dist/api.js CHANGED
@@ -34,6 +34,5 @@ __exportStar(require("./api/payment-methods-api"), exports);
34
34
  __exportStar(require("./api/payment-reminders-api"), exports);
35
35
  __exportStar(require("./api/payment-setup-api"), exports);
36
36
  __exportStar(require("./api/payments-api"), exports);
37
- __exportStar(require("./api/refunds-api"), exports);
38
37
  __exportStar(require("./api/tenant-bank-account-api"), exports);
39
38
  __exportStar(require("./api/webhooks-api"), exports);
@@ -95,6 +95,12 @@ export interface BankTransactionResponseClass {
95
95
  * @memberof BankTransactionResponseClass
96
96
  */
97
97
  'linkedInvoiceCode'?: string;
98
+ /**
99
+ * The identifying invoice number that this bank transaction is linked to
100
+ * @type {string}
101
+ * @memberof BankTransactionResponseClass
102
+ */
103
+ 'linkedInvoiceNumber'?: string;
98
104
  /**
99
105
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
100
106
  * @type {boolean}
@@ -35,10 +35,10 @@ export interface CreatePaymentRequestDto {
35
35
  'currency'?: string;
36
36
  /**
37
37
  * Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
38
- * @type {Array<number>}
38
+ * @type {Array<string>}
39
39
  * @memberof CreatePaymentRequestDto
40
40
  */
41
- 'invoiceIds': Array<number>;
41
+ 'invoiceIds': Array<string>;
42
42
  /**
43
43
  * Optional field contain extra information.
44
44
  * @type {object}
@@ -50,7 +50,7 @@ export interface CreatePaymentRequestDto {
50
50
  * @type {string}
51
51
  * @memberof CreatePaymentRequestDto
52
52
  */
53
- 'productSlug'?: string;
53
+ 'productSlug': string;
54
54
  /**
55
55
  * Optional payment date.
56
56
  * @type {string}
@@ -26,5 +26,5 @@ export interface GetRequestDto {
26
26
  * @type {string}
27
27
  * @memberof GetRequestDto
28
28
  */
29
- 'expand'?: string;
29
+ 'expand': string;
30
30
  }
@@ -1,48 +1,14 @@
1
- export * from './bank-account-class';
2
1
  export * from './bank-transaction-response-class';
3
- export * from './billing-profile-dto';
4
- export * from './billing-profile-limited-response-dto';
5
- export * from './complete-braintree-payment-setup-request-dto';
6
- export * from './complete-payment-setup-request-dto';
7
- export * from './complete-payment-setup-response-class';
8
- export * from './complete-stripe-payment-setup-request-dto';
9
- export * from './create-bank-account-request-dto';
10
- export * from './create-payment-method-response-class';
11
2
  export * from './create-payment-reminder-request-dto';
12
3
  export * from './create-payment-request-dto';
13
- export * from './create-payment-response-class';
14
- export * from './create-psp-payment-method-request-dto';
15
- export * from './create-refund-request-dto';
16
- export * from './create-refund-response-class';
17
4
  export * from './create-tenant-bank-account-request-dto';
18
5
  export * from './deactivate-payment-reminder-request-dto';
19
- export * from './deactivate-payment-reminder-response-class';
20
6
  export * from './get-bank-transactions-response-class';
21
- export * from './get-payment-method-response-class';
22
- export * from './get-payment-response-class';
23
- export * from './get-refund-response-class';
24
7
  export * from './get-request-dto';
25
8
  export * from './get-tenant-bank-account-response-class';
26
- export * from './initiate-braintree-payment-setup-request-dto';
27
- export * from './initiate-braintree-payment-setup-response-class';
28
- export * from './initiate-payment-setup-request-dto';
29
- export * from './initiate-payment-setup-response-class';
30
- export * from './initiate-stripe-payment-setup-request-dto';
31
- export * from './initiate-stripe-payment-setup-response-class';
32
9
  export * from './inline-response200';
33
10
  export * from './inline-response503';
34
- export * from './list-bank-accounts-response-class';
35
11
  export * from './list-bank-transactions-response-class';
36
- export * from './list-payment-methods-response-class';
37
- export * from './list-payment-reminders-response-class';
38
- export * from './list-payments-response-class';
39
- export * from './list-refunds-response-class';
40
- export * from './payment-class';
41
- export * from './payment-method-class';
42
- export * from './payment-reminder-class';
43
- export * from './refund-class';
44
- export * from './sepa-direct-dto';
45
- export * from './symphony-profile-limited-response-dto';
46
12
  export * from './tenant-bank-account-response-class';
47
13
  export * from './transaction-class';
48
14
  export * from './update-tenant-bank-account-rest-request-dto';
@@ -14,51 +14,17 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./bank-account-class"), exports);
18
17
  __exportStar(require("./bank-transaction-response-class"), exports);
19
- __exportStar(require("./billing-profile-dto"), exports);
20
- __exportStar(require("./billing-profile-limited-response-dto"), exports);
21
- __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
22
- __exportStar(require("./complete-payment-setup-request-dto"), exports);
23
- __exportStar(require("./complete-payment-setup-response-class"), exports);
24
- __exportStar(require("./complete-stripe-payment-setup-request-dto"), exports);
25
- __exportStar(require("./create-bank-account-request-dto"), exports);
26
- __exportStar(require("./create-payment-method-response-class"), exports);
27
18
  __exportStar(require("./create-payment-reminder-request-dto"), exports);
28
19
  __exportStar(require("./create-payment-request-dto"), exports);
29
- __exportStar(require("./create-payment-response-class"), exports);
30
- __exportStar(require("./create-psp-payment-method-request-dto"), exports);
31
- __exportStar(require("./create-refund-request-dto"), exports);
32
- __exportStar(require("./create-refund-response-class"), exports);
33
20
  __exportStar(require("./create-tenant-bank-account-request-dto"), exports);
34
21
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
35
- __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
36
22
  __exportStar(require("./get-bank-transactions-response-class"), exports);
37
- __exportStar(require("./get-payment-method-response-class"), exports);
38
- __exportStar(require("./get-payment-response-class"), exports);
39
- __exportStar(require("./get-refund-response-class"), exports);
40
23
  __exportStar(require("./get-request-dto"), exports);
41
24
  __exportStar(require("./get-tenant-bank-account-response-class"), exports);
42
- __exportStar(require("./initiate-braintree-payment-setup-request-dto"), exports);
43
- __exportStar(require("./initiate-braintree-payment-setup-response-class"), exports);
44
- __exportStar(require("./initiate-payment-setup-request-dto"), exports);
45
- __exportStar(require("./initiate-payment-setup-response-class"), exports);
46
- __exportStar(require("./initiate-stripe-payment-setup-request-dto"), exports);
47
- __exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
48
25
  __exportStar(require("./inline-response200"), exports);
49
26
  __exportStar(require("./inline-response503"), exports);
50
- __exportStar(require("./list-bank-accounts-response-class"), exports);
51
27
  __exportStar(require("./list-bank-transactions-response-class"), exports);
52
- __exportStar(require("./list-payment-methods-response-class"), exports);
53
- __exportStar(require("./list-payment-reminders-response-class"), exports);
54
- __exportStar(require("./list-payments-response-class"), exports);
55
- __exportStar(require("./list-refunds-response-class"), exports);
56
- __exportStar(require("./payment-class"), exports);
57
- __exportStar(require("./payment-method-class"), exports);
58
- __exportStar(require("./payment-reminder-class"), exports);
59
- __exportStar(require("./refund-class"), exports);
60
- __exportStar(require("./sepa-direct-dto"), exports);
61
- __exportStar(require("./symphony-profile-limited-response-dto"), exports);
62
28
  __exportStar(require("./tenant-bank-account-response-class"), exports);
63
29
  __exportStar(require("./transaction-class"), exports);
64
30
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
@@ -20,7 +20,7 @@ export interface ValidatePSPConfigRequestDto {
20
20
  * @type {string}
21
21
  * @memberof ValidatePSPConfigRequestDto
22
22
  */
23
- 'type': ValidatePSPConfigRequestDtoTypeEnum;
23
+ 'type': string;
24
24
  /**
25
25
  * Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
26
26
  * @type {object}
@@ -34,10 +34,3 @@ export interface ValidatePSPConfigRequestDto {
34
34
  */
35
35
  'paymentMethods': Array<string>;
36
36
  }
37
- export declare const ValidatePSPConfigRequestDtoTypeEnum: {
38
- readonly Braintree: "braintree";
39
- readonly Stripe: "stripe";
40
- readonly B4u: "b4u";
41
- readonly Eis: "eis";
42
- };
43
- export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
@@ -13,10 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ValidatePSPConfigRequestDtoTypeEnum = void 0;
17
- exports.ValidatePSPConfigRequestDtoTypeEnum = {
18
- Braintree: 'braintree',
19
- Stripe: 'stripe',
20
- B4u: 'b4u',
21
- Eis: 'eis'
22
- };
@@ -100,6 +100,12 @@ export interface BankTransactionResponseClass {
100
100
  * @memberof BankTransactionResponseClass
101
101
  */
102
102
  'linkedInvoiceCode'?: string;
103
+ /**
104
+ * The identifying invoice number that this bank transaction is linked to
105
+ * @type {string}
106
+ * @memberof BankTransactionResponseClass
107
+ */
108
+ 'linkedInvoiceNumber'?: string;
103
109
  /**
104
110
  * Boolean flag to indicate if the bank transaction is linked to an invoice - defaults to false
105
111
  * @type {boolean}
@@ -40,10 +40,10 @@ export interface CreatePaymentRequestDto {
40
40
  'currency'?: string;
41
41
  /**
42
42
  * Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
43
- * @type {Array<number>}
43
+ * @type {Array<string>}
44
44
  * @memberof CreatePaymentRequestDto
45
45
  */
46
- 'invoiceIds': Array<number>;
46
+ 'invoiceIds': Array<string>;
47
47
  /**
48
48
  * Optional field contain extra information.
49
49
  * @type {object}
@@ -55,7 +55,7 @@ export interface CreatePaymentRequestDto {
55
55
  * @type {string}
56
56
  * @memberof CreatePaymentRequestDto
57
57
  */
58
- 'productSlug'?: string;
58
+ 'productSlug': string;
59
59
  /**
60
60
  * Optional payment date.
61
61
  * @type {string}
@@ -31,6 +31,6 @@ export interface GetRequestDto {
31
31
  * @type {string}
32
32
  * @memberof GetRequestDto
33
33
  */
34
- 'expand'?: string;
34
+ 'expand': string;
35
35
  }
36
36