@emilgroup/payment-sdk 1.4.1-beta.7 → 1.4.1-beta.8

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 (120) hide show
  1. package/.openapi-generator/FILES +2 -29
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -20
  4. package/api/bank-transaction-api.ts +48 -14
  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/refunds-api.ts +15 -13
  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 +29 -9
  13. package/dist/api/bank-transaction-api.js +26 -12
  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/refunds-api.d.ts +10 -10
  22. package/dist/api/refunds-api.js +11 -9
  23. package/dist/models/create-payment-request-dto.d.ts +3 -3
  24. package/dist/models/get-request-dto.d.ts +1 -1
  25. package/dist/models/index.d.ts +2 -29
  26. package/dist/models/index.js +2 -29
  27. package/dist/models/{sepa-direct-dto.d.ts → link-bank-transaction-request-dto-rest.d.ts} +5 -5
  28. package/dist/models/{initiate-braintree-payment-setup-response-class.d.ts → unlink-bank-transaction-request-dto-rest.d.ts} +5 -5
  29. package/dist/models/validate-pspconfig-request-dto.d.ts +1 -8
  30. package/dist/models/validate-pspconfig-request-dto.js +0 -7
  31. package/models/create-payment-request-dto.ts +3 -3
  32. package/models/get-request-dto.ts +1 -1
  33. package/models/index.ts +2 -29
  34. package/models/{sepa-direct-dto.ts → link-bank-transaction-request-dto-rest.ts} +5 -5
  35. package/models/{initiate-braintree-payment-setup-response-class.ts → unlink-bank-transaction-request-dto-rest.ts} +5 -5
  36. package/models/validate-pspconfig-request-dto.ts +1 -11
  37. package/package.json +1 -1
  38. package/dist/models/bank-account-class.d.ts +0 -54
  39. package/dist/models/billing-profile-dto.d.ts +0 -38
  40. package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
  41. package/dist/models/billing-profile-limited-response-dto.js +0 -15
  42. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
  43. package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
  44. package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
  45. package/dist/models/complete-payment-setup-request-dto.js +0 -15
  46. package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
  47. package/dist/models/complete-payment-setup-response-class.js +0 -15
  48. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
  49. package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
  50. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  51. package/dist/models/create-bank-account-request-dto.js +0 -15
  52. package/dist/models/create-payment-method-response-class.d.ts +0 -25
  53. package/dist/models/create-payment-method-response-class.js +0 -15
  54. package/dist/models/create-payment-response-class.d.ts +0 -25
  55. package/dist/models/create-payment-response-class.js +0 -15
  56. package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
  57. package/dist/models/create-psp-payment-method-request-dto.js +0 -32
  58. package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
  59. package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
  60. package/dist/models/get-payment-method-response-class.d.ts +0 -25
  61. package/dist/models/get-payment-method-response-class.js +0 -15
  62. package/dist/models/get-payment-response-class.d.ts +0 -25
  63. package/dist/models/get-payment-response-class.js +0 -15
  64. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
  65. package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
  66. package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
  67. package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
  68. package/dist/models/initiate-payment-setup-request-dto.js +0 -15
  69. package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
  70. package/dist/models/initiate-payment-setup-response-class.js +0 -15
  71. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
  72. package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
  73. package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
  74. package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
  75. package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
  76. package/dist/models/list-bank-accounts-response-class.js +0 -15
  77. package/dist/models/list-payment-methods-response-class.d.ts +0 -31
  78. package/dist/models/list-payment-methods-response-class.js +0 -15
  79. package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
  80. package/dist/models/list-payment-reminders-response-class.js +0 -15
  81. package/dist/models/list-payments-response-class.d.ts +0 -31
  82. package/dist/models/list-payments-response-class.js +0 -15
  83. package/dist/models/payment-class.d.ts +0 -103
  84. package/dist/models/payment-class.js +0 -15
  85. package/dist/models/payment-method-class.d.ts +0 -66
  86. package/dist/models/payment-method-class.js +0 -15
  87. package/dist/models/payment-reminder-class.d.ts +0 -112
  88. package/dist/models/payment-reminder-class.js +0 -36
  89. package/dist/models/sepa-direct-dto.js +0 -15
  90. package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
  91. package/dist/models/symphony-profile-limited-response-dto.js +0 -15
  92. package/models/bank-account-class.ts +0 -60
  93. package/models/billing-profile-dto.ts +0 -44
  94. package/models/billing-profile-limited-response-dto.ts +0 -60
  95. package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
  96. package/models/complete-payment-setup-request-dto.ts +0 -38
  97. package/models/complete-payment-setup-response-class.ts +0 -31
  98. package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
  99. package/models/create-bank-account-request-dto.ts +0 -36
  100. package/models/create-payment-method-response-class.ts +0 -31
  101. package/models/create-payment-response-class.ts +0 -31
  102. package/models/create-psp-payment-method-request-dto.ts +0 -70
  103. package/models/deactivate-payment-reminder-response-class.ts +0 -31
  104. package/models/get-payment-method-response-class.ts +0 -31
  105. package/models/get-payment-response-class.ts +0 -31
  106. package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
  107. package/models/initiate-payment-setup-request-dto.ts +0 -50
  108. package/models/initiate-payment-setup-response-class.ts +0 -38
  109. package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
  110. package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
  111. package/models/list-bank-accounts-response-class.ts +0 -37
  112. package/models/list-payment-methods-response-class.ts +0 -37
  113. package/models/list-payment-reminders-response-class.ts +0 -37
  114. package/models/list-payments-response-class.ts +0 -37
  115. package/models/payment-class.ts +0 -109
  116. package/models/payment-method-class.ts +0 -72
  117. package/models/payment-reminder-class.ts +0 -122
  118. package/models/symphony-profile-limited-response-dto.ts +0 -48
  119. /package/dist/models/{bank-account-class.js → link-bank-transaction-request-dto-rest.js} +0 -0
  120. /package/dist/models/{billing-profile-dto.js → unlink-bank-transaction-request-dto-rest.js} +0 -0
@@ -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.
@@ -33,12 +33,12 @@ export declare const RefundsApiAxiosParamCreator: (configuration?: Configuration
33
33
  *
34
34
  * @param {string} code
35
35
  * @param {string} code2 Unique identifier for the object.
36
+ * @param {string} expand Fields to expand response by
36
37
  * @param {string} [authorization] Bearer Token
37
- * @param {string} [expand] Fields to expand response by
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- getRefund: (code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ getRefund: (code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
43
  *
44
44
  * @param {string} [authorization] Bearer Token
@@ -71,12 +71,12 @@ export declare const RefundsApiFp: (configuration?: Configuration) => {
71
71
  *
72
72
  * @param {string} code
73
73
  * @param {string} code2 Unique identifier for the object.
74
+ * @param {string} expand Fields to expand response by
74
75
  * @param {string} [authorization] Bearer Token
75
- * @param {string} [expand] Fields to expand response by
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
79
+ getRefund(code: string, code2: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRefundResponseClass>>;
80
80
  /**
81
81
  *
82
82
  * @param {string} [authorization] Bearer Token
@@ -109,12 +109,12 @@ export declare const RefundsApiFactory: (configuration?: Configuration, basePath
109
109
  *
110
110
  * @param {string} code
111
111
  * @param {string} code2 Unique identifier for the object.
112
+ * @param {string} expand Fields to expand response by
112
113
  * @param {string} [authorization] Bearer Token
113
- * @param {string} [expand] Fields to expand response by
114
114
  * @param {*} [options] Override http request option.
115
115
  * @throws {RequiredError}
116
116
  */
117
- getRefund(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
117
+ getRefund(code: string, code2: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetRefundResponseClass>;
118
118
  /**
119
119
  *
120
120
  * @param {string} [authorization] Bearer Token
@@ -168,17 +168,17 @@ export interface RefundsApiGetRefundRequest {
168
168
  */
169
169
  readonly code2: string;
170
170
  /**
171
- * Bearer Token
171
+ * Fields to expand response by
172
172
  * @type {string}
173
173
  * @memberof RefundsApiGetRefund
174
174
  */
175
- readonly authorization?: string;
175
+ readonly expand: string;
176
176
  /**
177
- * Fields to expand response by
177
+ * Bearer Token
178
178
  * @type {string}
179
179
  * @memberof RefundsApiGetRefund
180
180
  */
181
- readonly expand?: string;
181
+ readonly authorization?: string;
182
182
  }
183
183
  /**
184
184
  * Request parameters for listRefunds operation in RefundsApi.
@@ -144,12 +144,12 @@ var RefundsApiAxiosParamCreator = function (configuration) {
144
144
  *
145
145
  * @param {string} code
146
146
  * @param {string} code2 Unique identifier for the object.
147
+ * @param {string} expand Fields to expand response by
147
148
  * @param {string} [authorization] Bearer Token
148
- * @param {string} [expand] Fields to expand response by
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- getRefund: function (code, code2, authorization, expand, options) {
152
+ getRefund: function (code, code2, expand, authorization, options) {
153
153
  if (options === void 0) { options = {}; }
154
154
  return __awaiter(_this, void 0, void 0, function () {
155
155
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -160,6 +160,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
160
160
  (0, common_1.assertParamExists)('getRefund', 'code', code);
161
161
  // verify required parameter 'code2' is not null or undefined
162
162
  (0, common_1.assertParamExists)('getRefund', 'code2', code2);
163
+ // verify required parameter 'expand' is not null or undefined
164
+ (0, common_1.assertParamExists)('getRefund', 'expand', expand);
163
165
  localVarPath = "/paymentservice/v1/refunds/{code}"
164
166
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
165
167
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -302,17 +304,17 @@ var RefundsApiFp = function (configuration) {
302
304
  *
303
305
  * @param {string} code
304
306
  * @param {string} code2 Unique identifier for the object.
307
+ * @param {string} expand Fields to expand response by
305
308
  * @param {string} [authorization] Bearer Token
306
- * @param {string} [expand] Fields to expand response by
307
309
  * @param {*} [options] Override http request option.
308
310
  * @throws {RequiredError}
309
311
  */
310
- getRefund: function (code, code2, authorization, expand, options) {
312
+ getRefund: function (code, code2, expand, authorization, options) {
311
313
  return __awaiter(this, void 0, void 0, function () {
312
314
  var localVarAxiosArgs;
313
315
  return __generator(this, function (_a) {
314
316
  switch (_a.label) {
315
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, code2, authorization, expand, options)];
317
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRefund(code, code2, expand, authorization, options)];
316
318
  case 1:
317
319
  localVarAxiosArgs = _a.sent();
318
320
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -370,13 +372,13 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
370
372
  *
371
373
  * @param {string} code
372
374
  * @param {string} code2 Unique identifier for the object.
375
+ * @param {string} expand Fields to expand response by
373
376
  * @param {string} [authorization] Bearer Token
374
- * @param {string} [expand] Fields to expand response by
375
377
  * @param {*} [options] Override http request option.
376
378
  * @throws {RequiredError}
377
379
  */
378
- getRefund: function (code, code2, authorization, expand, options) {
379
- return localVarFp.getRefund(code, code2, authorization, expand, options).then(function (request) { return request(axios, basePath); });
380
+ getRefund: function (code, code2, expand, authorization, options) {
381
+ return localVarFp.getRefund(code, code2, expand, authorization, options).then(function (request) { return request(axios, basePath); });
380
382
  },
381
383
  /**
382
384
  *
@@ -428,7 +430,7 @@ var RefundsApi = /** @class */ (function (_super) {
428
430
  */
429
431
  RefundsApi.prototype.getRefund = function (requestParameters, options) {
430
432
  var _this = this;
431
- return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
433
+ return (0, exports.RefundsApiFp)(this.configuration).getRefund(requestParameters.code, requestParameters.code2, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
432
434
  };
433
435
  /**
434
436
  *
@@ -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,49 +1,22 @@
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
4
  export * from './create-refund-request-dto';
16
5
  export * from './create-refund-response-class';
17
6
  export * from './create-tenant-bank-account-request-dto';
18
7
  export * from './deactivate-payment-reminder-request-dto';
19
- export * from './deactivate-payment-reminder-response-class';
20
8
  export * from './get-bank-transactions-response-class';
21
- export * from './get-payment-method-response-class';
22
- export * from './get-payment-response-class';
23
9
  export * from './get-refund-response-class';
24
10
  export * from './get-request-dto';
25
11
  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
12
  export * from './inline-response200';
33
13
  export * from './inline-response503';
34
- export * from './list-bank-accounts-response-class';
14
+ export * from './link-bank-transaction-request-dto-rest';
35
15
  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
16
  export * from './list-refunds-response-class';
40
- export * from './payment-class';
41
- export * from './payment-method-class';
42
- export * from './payment-reminder-class';
43
17
  export * from './refund-class';
44
- export * from './sepa-direct-dto';
45
- export * from './symphony-profile-limited-response-dto';
46
18
  export * from './tenant-bank-account-response-class';
47
19
  export * from './transaction-class';
20
+ export * from './unlink-bank-transaction-request-dto-rest';
48
21
  export * from './update-tenant-bank-account-rest-request-dto';
49
22
  export * from './validate-pspconfig-request-dto';
@@ -14,52 +14,25 @@ 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
20
  __exportStar(require("./create-refund-request-dto"), exports);
32
21
  __exportStar(require("./create-refund-response-class"), exports);
33
22
  __exportStar(require("./create-tenant-bank-account-request-dto"), exports);
34
23
  __exportStar(require("./deactivate-payment-reminder-request-dto"), exports);
35
- __exportStar(require("./deactivate-payment-reminder-response-class"), exports);
36
24
  __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
25
  __exportStar(require("./get-refund-response-class"), exports);
40
26
  __exportStar(require("./get-request-dto"), exports);
41
27
  __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
28
  __exportStar(require("./inline-response200"), exports);
49
29
  __exportStar(require("./inline-response503"), exports);
50
- __exportStar(require("./list-bank-accounts-response-class"), exports);
30
+ __exportStar(require("./link-bank-transaction-request-dto-rest"), exports);
51
31
  __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
32
  __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
33
  __exportStar(require("./refund-class"), exports);
60
- __exportStar(require("./sepa-direct-dto"), exports);
61
- __exportStar(require("./symphony-profile-limited-response-dto"), exports);
62
34
  __exportStar(require("./tenant-bank-account-response-class"), exports);
63
35
  __exportStar(require("./transaction-class"), exports);
36
+ __exportStar(require("./unlink-bank-transaction-request-dto-rest"), exports);
64
37
  __exportStar(require("./update-tenant-bank-account-rest-request-dto"), exports);
65
38
  __exportStar(require("./validate-pspconfig-request-dto"), exports);
@@ -12,13 +12,13 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface SepaDirectDto
15
+ * @interface LinkBankTransactionRequestDtoRest
16
16
  */
17
- export interface SepaDirectDto {
17
+ export interface LinkBankTransactionRequestDtoRest {
18
18
  /**
19
- *
19
+ * The code of the invoice that the transaction will be linked to.
20
20
  * @type {string}
21
- * @memberof SepaDirectDto
21
+ * @memberof LinkBankTransactionRequestDtoRest
22
22
  */
23
- 'iban': string;
23
+ 'invoiceCode': string;
24
24
  }
@@ -12,13 +12,13 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface InitiateBraintreePaymentSetupResponseClass
15
+ * @interface UnlinkBankTransactionRequestDtoRest
16
16
  */
17
- export interface InitiateBraintreePaymentSetupResponseClass {
17
+ export interface UnlinkBankTransactionRequestDtoRest {
18
18
  /**
19
- * Identifier used by the PSP to create a payment method.
19
+ * The code of the invoice that the transaction will be linked to.
20
20
  * @type {string}
21
- * @memberof InitiateBraintreePaymentSetupResponseClass
21
+ * @memberof UnlinkBankTransactionRequestDtoRest
22
22
  */
23
- 'pspSecretToken': string;
23
+ 'invoiceCode': string;
24
24
  }
@@ -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
- };
@@ -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