@emilgroup/payment-sdk 1.22.1-beta.81 → 1.22.1-beta.83

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 (137) hide show
  1. package/.openapi-generator/FILES +0 -6
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +18 -48
  4. package/api/bank-orders-api.ts +15 -40
  5. package/api/bank-transaction-api.ts +26 -181
  6. package/api/billing-addresses-api.ts +15 -40
  7. package/api/credit-allocation-api.ts +9 -24
  8. package/api/exceeding-credits-api.ts +6 -128
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +3 -8
  11. package/api/payment-methods-api.ts +9 -24
  12. package/api/payment-receipts-api.ts +15 -40
  13. package/api/payment-reminders-api.ts +12 -32
  14. package/api/payment-requests-api.ts +27 -52
  15. package/api/payment-setup-api.ts +6 -16
  16. package/api/payments-api.ts +16 -46
  17. package/api/payout-methods-api.ts +18 -48
  18. package/api/policy-payment-methods-api.ts +9 -24
  19. package/api/refunds-api.ts +9 -24
  20. package/api/tenant-bank-account-api.ts +15 -40
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +43 -239
  23. package/common.ts +2 -3
  24. package/configuration.ts +0 -20
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +46 -82
  27. package/dist/api/bank-orders-api.d.ts +5 -5
  28. package/dist/api/bank-orders-api.js +38 -67
  29. package/dist/api/bank-transaction-api.d.ts +14 -80
  30. package/dist/api/bank-transaction-api.js +52 -194
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +39 -71
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +23 -41
  35. package/dist/api/exceeding-credits-api.d.ts +2 -59
  36. package/dist/api/exceeding-credits-api.js +15 -126
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +8 -15
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +23 -41
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +38 -67
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +31 -56
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +47 -76
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +16 -30
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +34 -62
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +46 -82
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +23 -41
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +22 -37
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +38 -67
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +0 -26
  64. package/dist/base.js +60 -243
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +0 -1
  67. package/dist/configuration.d.ts +0 -17
  68. package/dist/configuration.js +0 -2
  69. package/dist/models/bank-transaction-class.d.ts +0 -7
  70. package/dist/models/bank-transaction-entity.d.ts +0 -7
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
  72. package/dist/models/create-payment-order-dto.d.ts +1 -1
  73. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  74. package/dist/models/create-payment-request-dto.d.ts +1 -1
  75. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  76. package/dist/models/credit-allocation-class.d.ts +0 -6
  77. package/dist/models/credit-allocation-entity.d.ts +0 -6
  78. package/dist/models/exceeding-credit-entity.d.ts +0 -6
  79. package/dist/models/index.d.ts +0 -6
  80. package/dist/models/index.js +0 -6
  81. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  82. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  83. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  84. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  85. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  86. package/dist/models/list-refunds-response-class.d.ts +18 -6
  87. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  88. package/dist/models/payment-class.d.ts +2 -2
  89. package/dist/models/payment-entity.d.ts +1 -1
  90. package/dist/models/payment-receipt-class.d.ts +1 -13
  91. package/dist/models/payment-request-class.d.ts +6 -13
  92. package/dist/models/payment-request-class.js +0 -1
  93. package/dist/models/shared-transaction-class.d.ts +0 -6
  94. package/dist/models/transaction-entity.d.ts +0 -6
  95. package/models/bank-transaction-class.ts +0 -7
  96. package/models/bank-transaction-entity.ts +0 -7
  97. package/models/bank-transaction-invoice-entity.ts +0 -24
  98. package/models/create-payment-order-dto.ts +1 -1
  99. package/models/create-payment-receipt-request-dto.ts +3 -3
  100. package/models/create-payment-request-dto.ts +1 -1
  101. package/models/create-payment-request-request-dto.ts +0 -6
  102. package/models/credit-allocation-class.ts +0 -6
  103. package/models/credit-allocation-entity.ts +0 -6
  104. package/models/exceeding-credit-entity.ts +0 -6
  105. package/models/index.ts +0 -6
  106. package/models/list-billing-addresses-response-class.ts +9 -9
  107. package/models/list-exceeding-credits-response-class.ts +18 -6
  108. package/models/list-payment-receipts-response-class.ts +9 -9
  109. package/models/list-payment-requests-response-class.ts +18 -6
  110. package/models/list-payout-methods-response-class.ts +9 -9
  111. package/models/list-refunds-response-class.ts +18 -6
  112. package/models/payment-class-without-expand-properties.ts +2 -2
  113. package/models/payment-class.ts +2 -2
  114. package/models/payment-entity.ts +1 -1
  115. package/models/payment-receipt-class.ts +1 -13
  116. package/models/payment-request-class.ts +6 -13
  117. package/models/shared-transaction-class.ts +0 -6
  118. package/models/transaction-entity.ts +0 -6
  119. package/package.json +2 -2
  120. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  121. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  122. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  123. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  124. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  125. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  126. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  127. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  128. package/dist/models/payment-receipt-entity.d.ts +0 -139
  129. package/dist/models/payment-receipt-entity.js +0 -20
  130. package/dist/models/payment-request-entity.d.ts +0 -223
  131. package/dist/models/payment-request-entity.js +0 -39
  132. package/models/create-exceeding-credit-request-dto.ts +0 -54
  133. package/models/create-exceeding-credit-response-class.ts +0 -31
  134. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  135. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  136. package/models/payment-receipt-entity.ts +0 -148
  137. package/models/payment-request-entity.ts +0 -233
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { CreateExceedingCreditRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateExceedingCreditResponseClass } from '../models';
27
- // @ts-ignore
28
24
  import { GetExceedingCreditResponseClass } from '../models';
29
25
  // @ts-ignore
30
26
  import { ListExceedingCreditsResponseClass } from '../models';
@@ -34,58 +30,6 @@ import { ListExceedingCreditsResponseClass } from '../models';
34
30
  */
35
31
  export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
36
32
  return {
37
- /**
38
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
39
- * @summary Create the exceeding credit
40
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
41
- * @param {string} [authorization] Bearer Token
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- createExceedingCredit: async (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
47
- assertParamExists('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto)
48
- const localVarPath = `/paymentservice/v1/exceeding-credits`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- let baseAccessToken;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- baseAccessToken = configuration.accessToken;
56
- }
57
-
58
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
- const localVarHeaderParameter = {} as any;
60
- const localVarQueryParameter = {} as any;
61
-
62
- // authentication bearer required
63
- // http bearer authentication required
64
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
-
66
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
67
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
68
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
69
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
70
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
71
- if (authorizationValue || authorizationKeepEmpty) {
72
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
73
- }
74
-
75
-
76
-
77
- localVarHeaderParameter['Content-Type'] = 'application/json';
78
-
79
- setSearchParams(localVarUrlObj, localVarQueryParameter);
80
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
- localVarRequestOptions.data = serializeDataIfNeeded(createExceedingCreditRequestDto, localVarRequestOptions, configuration)
83
-
84
- return {
85
- url: toPathString(localVarUrlObj),
86
- options: localVarRequestOptions,
87
- };
88
- },
89
33
  /**
90
34
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
91
35
  * @summary Retrieve the exceeding credit
@@ -116,13 +60,8 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
116
60
  // http bearer authentication required
117
61
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
62
 
119
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
120
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
121
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
122
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
123
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
124
- if (authorizationValue || authorizationKeepEmpty) {
125
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
63
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
65
  }
127
66
 
128
67
 
@@ -197,13 +136,8 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
197
136
  localVarQueryParameter['filters'] = filters;
198
137
  }
199
138
 
200
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
201
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
202
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
203
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
204
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
205
- if (authorizationValue || authorizationKeepEmpty) {
206
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
139
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
207
141
  }
208
142
 
209
143
 
@@ -227,18 +161,6 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
227
161
  export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
228
162
  const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
229
163
  return {
230
- /**
231
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
232
- * @summary Create the exceeding credit
233
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
234
- * @param {string} [authorization] Bearer Token
235
- * @param {*} [options] Override http request option.
236
- * @throws {RequiredError}
237
- */
238
- async createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>> {
239
- const localVarAxiosArgs = await localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options);
240
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
241
- },
242
164
  /**
243
165
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
244
166
  * @summary Retrieve the exceeding credit
@@ -279,17 +201,6 @@ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
279
201
  export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
280
202
  const localVarFp = ExceedingCreditsApiFp(configuration)
281
203
  return {
282
- /**
283
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
284
- * @summary Create the exceeding credit
285
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
286
- * @param {string} [authorization] Bearer Token
287
- * @param {*} [options] Override http request option.
288
- * @throws {RequiredError}
289
- */
290
- createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass> {
291
- return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then((request) => request(axios, basePath));
292
- },
293
204
  /**
294
205
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
295
206
  * @summary Retrieve the exceeding credit
@@ -321,27 +232,6 @@ export const ExceedingCreditsApiFactory = function (configuration?: Configuratio
321
232
  };
322
233
  };
323
234
 
324
- /**
325
- * Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
326
- * @export
327
- * @interface ExceedingCreditsApiCreateExceedingCreditRequest
328
- */
329
- export interface ExceedingCreditsApiCreateExceedingCreditRequest {
330
- /**
331
- *
332
- * @type {CreateExceedingCreditRequestDto}
333
- * @memberof ExceedingCreditsApiCreateExceedingCredit
334
- */
335
- readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto
336
-
337
- /**
338
- * Bearer Token
339
- * @type {string}
340
- * @memberof ExceedingCreditsApiCreateExceedingCredit
341
- */
342
- readonly authorization?: string
343
- }
344
-
345
235
  /**
346
236
  * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
347
237
  * @export
@@ -433,18 +323,6 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
433
323
  * @extends {BaseAPI}
434
324
  */
435
325
  export class ExceedingCreditsApi extends BaseAPI {
436
- /**
437
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
438
- * @summary Create the exceeding credit
439
- * @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
440
- * @param {*} [options] Override http request option.
441
- * @throws {RequiredError}
442
- * @memberof ExceedingCreditsApi
443
- */
444
- public createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig) {
445
- return ExceedingCreditsApiFp(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
446
- }
447
-
448
326
  /**
449
327
  * Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
450
328
  * @summary Retrieve the exceeding credit
@@ -454,7 +332,7 @@ export class ExceedingCreditsApi extends BaseAPI {
454
332
  * @memberof ExceedingCreditsApi
455
333
  */
456
334
  public getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig) {
457
- return ExceedingCreditsApiFp(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
335
+ return ExceedingCreditsApiFp(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
458
336
  }
459
337
 
460
338
  /**
@@ -466,6 +344,6 @@ export class ExceedingCreditsApi extends BaseAPI {
466
344
  * @memberof ExceedingCreditsApi
467
345
  */
468
346
  public listExceedingCredits(requestParameters: ExceedingCreditsApiListExceedingCreditsRequest = {}, options?: AxiosRequestConfig) {
469
- return ExceedingCreditsApiFp(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
347
+ return ExceedingCreditsApiFp(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
470
348
  }
471
349
  }
@@ -119,6 +119,6 @@ export class HealthCheckApi extends BaseAPI {
119
119
  * @memberof HealthCheckApi
120
120
  */
121
121
  public check(options?: AxiosRequestConfig) {
122
- return HealthCheckApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
122
+ return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
123
  }
124
124
  }
@@ -59,13 +59,8 @@ export const IBANValidatorApiAxiosParamCreator = function (configuration?: Confi
59
59
  // http bearer authentication required
60
60
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
61
 
62
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
63
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
64
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
65
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
66
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
67
- if (authorizationValue || authorizationKeepEmpty) {
68
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
62
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
64
  }
70
65
 
71
66
 
@@ -165,6 +160,6 @@ export class IBANValidatorApi extends BaseAPI {
165
160
  * @memberof IBANValidatorApi
166
161
  */
167
162
  public validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig) {
168
- return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
163
+ return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
169
164
  }
170
165
  }
@@ -63,13 +63,8 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
63
63
  // http bearer authentication required
64
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
65
 
66
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
67
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
68
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
69
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
70
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
71
- if (authorizationValue || authorizationKeepEmpty) {
72
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
73
68
  }
74
69
 
75
70
 
@@ -116,13 +111,8 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
116
111
  // http bearer authentication required
117
112
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
118
113
 
119
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
120
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
121
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
122
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
123
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
124
- if (authorizationValue || authorizationKeepEmpty) {
125
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
126
116
  }
127
117
 
128
118
 
@@ -197,13 +187,8 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
197
187
  localVarQueryParameter['filters'] = filters;
198
188
  }
199
189
 
200
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
201
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
202
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
203
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
204
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
205
- if (authorizationValue || authorizationKeepEmpty) {
206
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
190
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
191
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
207
192
  }
208
193
 
209
194
 
@@ -442,7 +427,7 @@ export class PaymentMethodsApi extends BaseAPI {
442
427
  * @memberof PaymentMethodsApi
443
428
  */
444
429
  public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
445
- return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
430
+ return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
446
431
  }
447
432
 
448
433
  /**
@@ -454,7 +439,7 @@ export class PaymentMethodsApi extends BaseAPI {
454
439
  * @memberof PaymentMethodsApi
455
440
  */
456
441
  public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
457
- return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
442
+ return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
458
443
  }
459
444
 
460
445
  /**
@@ -466,6 +451,6 @@ export class PaymentMethodsApi extends BaseAPI {
466
451
  * @memberof PaymentMethodsApi
467
452
  */
468
453
  public listPaymentMethods(requestParameters: PaymentMethodsApiListPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
469
- return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
454
+ return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
470
455
  }
471
456
  }
@@ -65,13 +65,8 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
65
65
  // http bearer authentication required
66
66
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
67
67
 
68
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
69
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
70
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
71
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
72
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
73
- if (authorizationValue || authorizationKeepEmpty) {
74
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
68
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
69
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
75
70
  }
76
71
 
77
72
 
@@ -118,13 +113,8 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
118
113
  // http bearer authentication required
119
114
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
115
 
121
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
122
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
123
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
124
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
125
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
126
- if (authorizationValue || authorizationKeepEmpty) {
127
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
116
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
117
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
118
  }
129
119
 
130
120
 
@@ -175,13 +165,8 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
175
165
  localVarQueryParameter['expand'] = expand;
176
166
  }
177
167
 
178
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
179
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
180
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
181
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
182
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
183
- if (authorizationValue || authorizationKeepEmpty) {
184
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
168
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
169
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
185
170
  }
186
171
 
187
172
 
@@ -256,13 +241,8 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
256
241
  localVarQueryParameter['filters'] = filters;
257
242
  }
258
243
 
259
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
260
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
261
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
262
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
263
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
264
- if (authorizationValue || authorizationKeepEmpty) {
265
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
244
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
245
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
246
  }
267
247
 
268
248
 
@@ -306,13 +286,8 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
306
286
  // http bearer authentication required
307
287
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
308
288
 
309
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
310
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
311
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
312
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
313
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
314
- if (authorizationValue || authorizationKeepEmpty) {
315
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
289
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
290
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
316
291
  }
317
292
 
318
293
 
@@ -648,7 +623,7 @@ export class PaymentReceiptsApi extends BaseAPI {
648
623
  * @memberof PaymentReceiptsApi
649
624
  */
650
625
  public createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig) {
651
- return PaymentReceiptsApiFp(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
626
+ return PaymentReceiptsApiFp(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
652
627
  }
653
628
 
654
629
  /**
@@ -660,7 +635,7 @@ export class PaymentReceiptsApi extends BaseAPI {
660
635
  * @memberof PaymentReceiptsApi
661
636
  */
662
637
  public deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig) {
663
- return PaymentReceiptsApiFp(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
638
+ return PaymentReceiptsApiFp(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
639
  }
665
640
 
666
641
  /**
@@ -672,7 +647,7 @@ export class PaymentReceiptsApi extends BaseAPI {
672
647
  * @memberof PaymentReceiptsApi
673
648
  */
674
649
  public getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig) {
675
- return PaymentReceiptsApiFp(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
650
+ return PaymentReceiptsApiFp(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
676
651
  }
677
652
 
678
653
  /**
@@ -684,7 +659,7 @@ export class PaymentReceiptsApi extends BaseAPI {
684
659
  * @memberof PaymentReceiptsApi
685
660
  */
686
661
  public listPaymentReceipts(requestParameters: PaymentReceiptsApiListPaymentReceiptsRequest = {}, options?: AxiosRequestConfig) {
687
- return PaymentReceiptsApiFp(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
662
+ return PaymentReceiptsApiFp(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
688
663
  }
689
664
 
690
665
  /**
@@ -696,6 +671,6 @@ export class PaymentReceiptsApi extends BaseAPI {
696
671
  * @memberof PaymentReceiptsApi
697
672
  */
698
673
  public updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig) {
699
- return PaymentReceiptsApiFp(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
674
+ return PaymentReceiptsApiFp(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
700
675
  }
701
676
  }
@@ -67,13 +67,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
67
67
  // http bearer authentication required
68
68
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
69
 
70
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
71
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
72
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
73
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
74
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
75
- if (authorizationValue || authorizationKeepEmpty) {
76
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
70
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
71
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
77
72
  }
78
73
 
79
74
 
@@ -123,13 +118,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
123
118
  // http bearer authentication required
124
119
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
120
 
126
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
127
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
128
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
129
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
130
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
131
- if (authorizationValue || authorizationKeepEmpty) {
132
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
123
  }
134
124
 
135
125
 
@@ -176,13 +166,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
176
166
  // http bearer authentication required
177
167
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
168
 
179
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
180
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
181
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
182
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
183
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
184
- if (authorizationValue || authorizationKeepEmpty) {
185
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
171
  }
187
172
 
188
173
 
@@ -257,13 +242,8 @@ export const PaymentRemindersApiAxiosParamCreator = function (configuration?: Co
257
242
  localVarQueryParameter['filters'] = filters;
258
243
  }
259
244
 
260
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
261
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
262
- const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
263
- const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
264
- const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
265
- if (authorizationValue || authorizationKeepEmpty) {
266
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
267
247
  }
268
248
 
269
249
 
@@ -555,7 +535,7 @@ export class PaymentRemindersApi extends BaseAPI {
555
535
  * @memberof PaymentRemindersApi
556
536
  */
557
537
  public createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig) {
558
- return PaymentRemindersApiFp(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
538
+ return PaymentRemindersApiFp(this.configuration).createPaymentReminder(requestParameters.createPaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
559
539
  }
560
540
 
561
541
  /**
@@ -567,7 +547,7 @@ export class PaymentRemindersApi extends BaseAPI {
567
547
  * @memberof PaymentRemindersApi
568
548
  */
569
549
  public deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig) {
570
- return PaymentRemindersApiFp(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
550
+ return PaymentRemindersApiFp(this.configuration).deactivatePaymentReminder(requestParameters.code, requestParameters.deactivatePaymentReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
571
551
  }
572
552
 
573
553
  /**
@@ -579,7 +559,7 @@ export class PaymentRemindersApi extends BaseAPI {
579
559
  * @memberof PaymentRemindersApi
580
560
  */
581
561
  public getPaymentReminder(requestParameters: PaymentRemindersApiGetPaymentReminderRequest, options?: AxiosRequestConfig) {
582
- return PaymentRemindersApiFp(this.configuration).getPaymentReminder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
562
+ return PaymentRemindersApiFp(this.configuration).getPaymentReminder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
583
563
  }
584
564
 
585
565
  /**
@@ -591,6 +571,6 @@ export class PaymentRemindersApi extends BaseAPI {
591
571
  * @memberof PaymentRemindersApi
592
572
  */
593
573
  public listPaymentReminders(requestParameters: PaymentRemindersApiListPaymentRemindersRequest = {}, options?: AxiosRequestConfig) {
594
- return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
574
+ return PaymentRemindersApiFp(this.configuration).listPaymentReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
595
575
  }
596
576
  }