@emilgroup/payment-sdk 1.22.1-beta.76 → 1.22.1-beta.78

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 (133) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +12 -24
  4. package/api/bank-orders-api.ts +10 -20
  5. package/api/bank-transaction-api.ts +20 -154
  6. package/api/billing-addresses-api.ts +10 -20
  7. package/api/credit-allocation-api.ts +6 -12
  8. package/api/exceeding-credits-api.ts +4 -117
  9. package/api/ibanvalidator-api.ts +2 -4
  10. package/api/payment-methods-api.ts +6 -12
  11. package/api/payment-receipts-api.ts +10 -20
  12. package/api/payment-reminders-api.ts +8 -16
  13. package/api/payment-requests-api.ts +22 -32
  14. package/api/payment-setup-api.ts +4 -8
  15. package/api/payments-api.ts +12 -24
  16. package/api/payout-methods-api.ts +12 -24
  17. package/api/policy-payment-methods-api.ts +6 -12
  18. package/api/refunds-api.ts +6 -12
  19. package/api/tenant-bank-account-api.ts +10 -20
  20. package/base.ts +41 -174
  21. package/common.ts +2 -3
  22. package/configuration.ts +0 -20
  23. package/dist/api/bank-accounts-api.d.ts +6 -6
  24. package/dist/api/bank-accounts-api.js +22 -36
  25. package/dist/api/bank-orders-api.d.ts +5 -5
  26. package/dist/api/bank-orders-api.js +18 -29
  27. package/dist/api/bank-transaction-api.d.ts +14 -80
  28. package/dist/api/bank-transaction-api.js +28 -144
  29. package/dist/api/billing-addresses-api.d.ts +5 -5
  30. package/dist/api/billing-addresses-api.js +19 -32
  31. package/dist/api/credit-allocation-api.d.ts +3 -3
  32. package/dist/api/credit-allocation-api.js +11 -18
  33. package/dist/api/exceeding-credits-api.d.ts +2 -59
  34. package/dist/api/exceeding-credits-api.js +7 -107
  35. package/dist/api/health-check-api.d.ts +1 -1
  36. package/dist/api/ibanvalidator-api.d.ts +1 -1
  37. package/dist/api/ibanvalidator-api.js +4 -7
  38. package/dist/api/payment-methods-api.d.ts +3 -3
  39. package/dist/api/payment-methods-api.js +11 -18
  40. package/dist/api/payment-receipts-api.d.ts +5 -5
  41. package/dist/api/payment-receipts-api.js +18 -29
  42. package/dist/api/payment-reminders-api.d.ts +4 -4
  43. package/dist/api/payment-reminders-api.js +15 -25
  44. package/dist/api/payment-requests-api.d.ts +17 -17
  45. package/dist/api/payment-requests-api.js +27 -38
  46. package/dist/api/payment-setup-api.d.ts +2 -2
  47. package/dist/api/payment-setup-api.js +8 -14
  48. package/dist/api/payments-api.d.ts +4 -4
  49. package/dist/api/payments-api.js +18 -28
  50. package/dist/api/payout-methods-api.d.ts +6 -6
  51. package/dist/api/payout-methods-api.js +22 -36
  52. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  53. package/dist/api/policy-payment-methods-api.js +11 -18
  54. package/dist/api/refunds-api.d.ts +3 -3
  55. package/dist/api/refunds-api.js +10 -15
  56. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  57. package/dist/api/tenant-bank-account-api.js +18 -29
  58. package/dist/api/webhooks-api.d.ts +2 -2
  59. package/dist/base.d.ts +0 -24
  60. package/dist/base.js +59 -178
  61. package/dist/common.d.ts +1 -1
  62. package/dist/common.js +0 -1
  63. package/dist/configuration.d.ts +0 -17
  64. package/dist/configuration.js +0 -2
  65. package/dist/models/bank-transaction-class.d.ts +0 -7
  66. package/dist/models/bank-transaction-entity.d.ts +0 -7
  67. package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
  68. package/dist/models/create-payment-order-dto.d.ts +1 -1
  69. package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
  70. package/dist/models/create-payment-request-dto.d.ts +1 -1
  71. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  72. package/dist/models/credit-allocation-class.d.ts +0 -6
  73. package/dist/models/credit-allocation-entity.d.ts +0 -6
  74. package/dist/models/exceeding-credit-entity.d.ts +0 -6
  75. package/dist/models/index.d.ts +0 -6
  76. package/dist/models/index.js +0 -6
  77. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  78. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  79. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  80. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  81. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  82. package/dist/models/list-refunds-response-class.d.ts +18 -6
  83. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  84. package/dist/models/payment-class.d.ts +2 -2
  85. package/dist/models/payment-entity.d.ts +1 -1
  86. package/dist/models/payment-receipt-class.d.ts +1 -13
  87. package/dist/models/payment-request-class.d.ts +6 -13
  88. package/dist/models/payment-request-class.js +0 -1
  89. package/dist/models/shared-transaction-class.d.ts +0 -6
  90. package/dist/models/transaction-entity.d.ts +0 -6
  91. package/models/bank-transaction-class.ts +0 -7
  92. package/models/bank-transaction-entity.ts +0 -7
  93. package/models/bank-transaction-invoice-entity.ts +0 -24
  94. package/models/create-payment-order-dto.ts +1 -1
  95. package/models/create-payment-receipt-request-dto.ts +1 -1
  96. package/models/create-payment-request-dto.ts +1 -1
  97. package/models/create-payment-request-request-dto.ts +0 -6
  98. package/models/credit-allocation-class.ts +0 -6
  99. package/models/credit-allocation-entity.ts +0 -6
  100. package/models/exceeding-credit-entity.ts +0 -6
  101. package/models/index.ts +0 -6
  102. package/models/list-billing-addresses-response-class.ts +9 -9
  103. package/models/list-exceeding-credits-response-class.ts +18 -6
  104. package/models/list-payment-receipts-response-class.ts +9 -9
  105. package/models/list-payment-requests-response-class.ts +18 -6
  106. package/models/list-payout-methods-response-class.ts +9 -9
  107. package/models/list-refunds-response-class.ts +18 -6
  108. package/models/payment-class-without-expand-properties.ts +2 -2
  109. package/models/payment-class.ts +2 -2
  110. package/models/payment-entity.ts +1 -1
  111. package/models/payment-receipt-class.ts +1 -13
  112. package/models/payment-request-class.ts +6 -13
  113. package/models/shared-transaction-class.ts +0 -6
  114. package/models/transaction-entity.ts +0 -6
  115. package/package.json +2 -2
  116. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  117. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  118. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  119. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  120. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  121. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  122. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  123. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  124. package/dist/models/payment-receipt-entity.d.ts +0 -139
  125. package/dist/models/payment-receipt-entity.js +0 -20
  126. package/dist/models/payment-request-entity.d.ts +0 -223
  127. package/dist/models/payment-request-entity.js +0 -39
  128. package/models/create-exceeding-credit-request-dto.ts +0 -54
  129. package/models/create-exceeding-credit-response-class.ts +0 -31
  130. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  131. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  132. package/models/payment-receipt-entity.ts +0 -148
  133. package/models/payment-request-entity.ts +0 -233
package/configuration.ts CHANGED
@@ -21,8 +21,6 @@ export interface ConfigurationParameters {
21
21
  basePath?: string;
22
22
  baseOptions?: any;
23
23
  formDataCtor?: new () => any;
24
- cookieAuth?: boolean;
25
- account?: string;
26
24
  }
27
25
 
28
26
  export class Configuration {
@@ -76,22 +74,6 @@ export class Configuration {
76
74
  */
77
75
  formDataCtor?: new () => any;
78
76
 
79
- /**
80
- * Use a server session when authservice makes one; otherwise the token, as without this option.
81
- * Set `account` too, so each SDK object keeps its own account.
82
- *
83
- * @type {boolean}
84
- * @memberof Configuration
85
- */
86
- cookieAuth?: boolean;
87
- /**
88
- * The session account (Cognito sub) this app shows, so the SDK never takes another tab's account.
89
- *
90
- * @type {string}
91
- * @memberof Configuration
92
- */
93
- account?: string;
94
-
95
77
  constructor(param: ConfigurationParameters = {}) {
96
78
  this.apiKey = param.apiKey;
97
79
  this.username = param.username;
@@ -100,8 +82,6 @@ export class Configuration {
100
82
  this.basePath = param.basePath;
101
83
  this.baseOptions = param.baseOptions;
102
84
  this.formDataCtor = param.formDataCtor;
103
- this.cookieAuth = param.cookieAuth;
104
- this.account = param.account;
105
85
  }
106
86
 
107
87
  /**
@@ -409,7 +409,7 @@ export declare class BankAccountsApi extends BaseAPI {
409
409
  * @throws {RequiredError}
410
410
  * @memberof BankAccountsApi
411
411
  */
412
- createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankAccountResponseClass, any, {}, any>>;
412
+ createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankAccountResponseClass, any, {}>>;
413
413
  /**
414
414
  * Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
415
415
  * @summary Delete the bank account
@@ -418,7 +418,7 @@ export declare class BankAccountsApi extends BaseAPI {
418
418
  * @throws {RequiredError}
419
419
  * @memberof BankAccountsApi
420
420
  */
421
- deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
421
+ deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
422
422
  /**
423
423
  * Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
424
424
  * @summary Retrieve the bank account
@@ -427,7 +427,7 @@ export declare class BankAccountsApi extends BaseAPI {
427
427
  * @throws {RequiredError}
428
428
  * @memberof BankAccountsApi
429
429
  */
430
- getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any, {}, any>>;
430
+ getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankAccountResponseClass, any, {}>>;
431
431
  /**
432
432
  * Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
433
433
  * @summary List bank accounts
@@ -436,7 +436,7 @@ export declare class BankAccountsApi extends BaseAPI {
436
436
  * @throws {RequiredError}
437
437
  * @memberof BankAccountsApi
438
438
  */
439
- listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any, {}, any>>;
439
+ listBankAccounts(requestParameters?: BankAccountsApiListBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankAccountsResponseClass, any, {}>>;
440
440
  /**
441
441
  * Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
442
442
  * @summary Set primary bank account
@@ -445,7 +445,7 @@ export declare class BankAccountsApi extends BaseAPI {
445
445
  * @throws {RequiredError}
446
446
  * @memberof BankAccountsApi
447
447
  */
448
- setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
448
+ setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
449
449
  /**
450
450
  * Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
451
451
  * @summary Update the bank account
@@ -454,5 +454,5 @@ export declare class BankAccountsApi extends BaseAPI {
454
454
  * @throws {RequiredError}
455
455
  * @memberof BankAccountsApi
456
456
  */
457
- updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankAccountResponseClass, any, {}, any>>;
457
+ updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankAccountResponseClass, any, {}>>;
458
458
  }
@@ -103,7 +103,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createBankAccount: function (createBankAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,7 +152,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
155
152
  deleteBankAccount: function (code, authorization, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -173,16 +170,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
173
170
  localVarQueryParameter = {};
174
171
  // authentication bearer required
175
172
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
178
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
174
  case 1:
180
175
  // authentication bearer required
181
176
  // http bearer authentication required
182
177
  _a.sent();
183
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
- if (authorizationValue) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
180
  }
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +201,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
207
201
  getBankAccount: function (code, authorization, expand, options) {
208
202
  if (options === void 0) { options = {}; }
209
203
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
205
  return __generator(this, function (_a) {
212
206
  switch (_a.label) {
213
207
  case 0:
@@ -233,9 +227,8 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
233
227
  if (expand !== undefined) {
234
228
  localVarQueryParameter['expand'] = expand;
235
229
  }
236
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
- if (authorizationValue) {
238
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
232
  }
240
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -265,7 +258,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
265
258
  listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
259
  if (options === void 0) { options = {}; }
267
260
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
262
  return __generator(this, function (_a) {
270
263
  switch (_a.label) {
271
264
  case 0:
@@ -306,9 +299,8 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
306
299
  if (filters !== undefined) {
307
300
  localVarQueryParameter['filters'] = filters;
308
301
  }
309
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
311
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
304
  }
313
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -333,7 +325,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
333
325
  setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
334
326
  if (options === void 0) { options = {}; }
335
327
  return __awaiter(_this, void 0, void 0, function () {
336
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
329
  return __generator(this, function (_a) {
338
330
  switch (_a.label) {
339
331
  case 0:
@@ -353,16 +345,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
353
345
  localVarQueryParameter = {};
354
346
  // authentication bearer required
355
347
  // http bearer authentication required
356
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
- // Only Authorization falls back to the configured token; an empty value is never sent.
358
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
359
349
  case 1:
360
350
  // authentication bearer required
361
351
  // http bearer authentication required
362
352
  _a.sent();
363
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
- if (authorizationValue) {
365
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
355
  }
367
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
368
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -389,7 +378,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
389
378
  updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
390
379
  if (options === void 0) { options = {}; }
391
380
  return __awaiter(_this, void 0, void 0, function () {
392
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
381
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
393
382
  return __generator(this, function (_a) {
394
383
  switch (_a.label) {
395
384
  case 0:
@@ -409,16 +398,13 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
409
398
  localVarQueryParameter = {};
410
399
  // authentication bearer required
411
400
  // http bearer authentication required
412
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
413
- // Only Authorization falls back to the configured token; an empty value is never sent.
414
- ];
401
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
415
402
  case 1:
416
403
  // authentication bearer required
417
404
  // http bearer authentication required
418
405
  _a.sent();
419
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
420
- if (authorizationValue) {
421
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
406
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
407
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
422
408
  }
423
409
  localVarHeaderParameter['Content-Type'] = 'application/json';
424
410
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -353,7 +353,7 @@ export declare class BankOrdersApi extends BaseAPI {
353
353
  * @throws {RequiredError}
354
354
  * @memberof BankOrdersApi
355
355
  */
356
- createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}, any>>;
356
+ createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}>>;
357
357
  /**
358
358
  * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
359
359
  * @summary Delete the bank order
@@ -362,7 +362,7 @@ export declare class BankOrdersApi extends BaseAPI {
362
362
  * @throws {RequiredError}
363
363
  * @memberof BankOrdersApi
364
364
  */
365
- deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
365
+ deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
366
366
  /**
367
367
  * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
368
368
  * @summary Retrieve the bank order
@@ -371,7 +371,7 @@ export declare class BankOrdersApi extends BaseAPI {
371
371
  * @throws {RequiredError}
372
372
  * @memberof BankOrdersApi
373
373
  */
374
- getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}, any>>;
374
+ getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}>>;
375
375
  /**
376
376
  * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
377
377
  * @summary List bank orders
@@ -380,7 +380,7 @@ export declare class BankOrdersApi extends BaseAPI {
380
380
  * @throws {RequiredError}
381
381
  * @memberof BankOrdersApi
382
382
  */
383
- listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}, any>>;
383
+ listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}>>;
384
384
  /**
385
385
  * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
386
386
  * @summary Update the bank order
@@ -389,5 +389,5 @@ export declare class BankOrdersApi extends BaseAPI {
389
389
  * @throws {RequiredError}
390
390
  * @memberof BankOrdersApi
391
391
  */
392
- updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}, any>>;
392
+ updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}>>;
393
393
  }
@@ -103,7 +103,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
103
103
  createBankOrder: function (createBankOrderRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
@@ -120,16 +120,13 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
120
120
  localVarQueryParameter = {};
121
121
  // authentication bearer required
122
122
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
124
- // Only Authorization falls back to the configured token; an empty value is never sent.
125
- ];
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
124
  case 1:
127
125
  // authentication bearer required
128
126
  // http bearer authentication required
129
127
  _a.sent();
130
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
131
- if (authorizationValue) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
130
  }
134
131
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -155,7 +152,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
155
152
  deleteBankOrder: function (code, authorization, options) {
156
153
  if (options === void 0) { options = {}; }
157
154
  return __awaiter(_this, void 0, void 0, function () {
158
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
156
  return __generator(this, function (_a) {
160
157
  switch (_a.label) {
161
158
  case 0:
@@ -173,16 +170,13 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
173
170
  localVarQueryParameter = {};
174
171
  // authentication bearer required
175
172
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
177
- // Only Authorization falls back to the configured token; an empty value is never sent.
178
- ];
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
179
174
  case 1:
180
175
  // authentication bearer required
181
176
  // http bearer authentication required
182
177
  _a.sent();
183
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
184
- if (authorizationValue) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
180
  }
187
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
188
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -207,7 +201,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
207
201
  getBankOrder: function (code, authorization, expand, options) {
208
202
  if (options === void 0) { options = {}; }
209
203
  return __awaiter(_this, void 0, void 0, function () {
210
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
205
  return __generator(this, function (_a) {
212
206
  switch (_a.label) {
213
207
  case 0:
@@ -233,9 +227,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
233
227
  if (expand !== undefined) {
234
228
  localVarQueryParameter['expand'] = expand;
235
229
  }
236
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
237
- if (authorizationValue) {
238
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
239
232
  }
240
233
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
241
234
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -265,7 +258,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
265
258
  listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
266
259
  if (options === void 0) { options = {}; }
267
260
  return __awaiter(_this, void 0, void 0, function () {
268
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
262
  return __generator(this, function (_a) {
270
263
  switch (_a.label) {
271
264
  case 0:
@@ -306,9 +299,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
306
299
  if (filters !== undefined) {
307
300
  localVarQueryParameter['filters'] = filters;
308
301
  }
309
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
310
- if (authorizationValue) {
311
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
312
304
  }
313
305
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
306
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -333,7 +325,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
333
325
  updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
334
326
  if (options === void 0) { options = {}; }
335
327
  return __awaiter(_this, void 0, void 0, function () {
336
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
328
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
337
329
  return __generator(this, function (_a) {
338
330
  switch (_a.label) {
339
331
  case 0:
@@ -353,16 +345,13 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
353
345
  localVarQueryParameter = {};
354
346
  // authentication bearer required
355
347
  // http bearer authentication required
356
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
357
- // Only Authorization falls back to the configured token; an empty value is never sent.
358
- ];
348
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
359
349
  case 1:
360
350
  // authentication bearer required
361
351
  // http bearer authentication required
362
352
  _a.sent();
363
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
364
- if (authorizationValue) {
365
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
353
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
354
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
366
355
  }
367
356
  localVarHeaderParameter['Content-Type'] = 'application/json';
368
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);