@emilgroup/payment-sdk 1.22.1-beta.8 → 1.22.1-beta.80
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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-orders-api.ts +48 -23
- package/api/bank-transaction-api.ts +181 -26
- package/api/billing-addresses-api.ts +40 -15
- package/api/credit-allocation-api.ts +24 -9
- package/api/exceeding-credits-api.ts +24 -9
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/payment-methods-api.ts +24 -9
- package/api/payment-receipts-api.ts +40 -15
- package/api/payment-reminders-api.ts +32 -12
- package/api/payment-requests-api.ts +52 -27
- package/api/payment-setup-api.ts +16 -6
- package/api/payments-api.ts +46 -16
- package/api/payout-methods-api.ts +48 -18
- package/api/policy-payment-methods-api.ts +24 -9
- package/api/refunds-api.ts +24 -9
- package/api/tenant-bank-account-api.ts +40 -15
- package/api/webhooks-api.ts +2 -2
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +82 -46
- package/dist/api/bank-orders-api.d.ts +13 -13
- package/dist/api/bank-orders-api.js +73 -44
- package/dist/api/bank-transaction-api.d.ts +80 -14
- package/dist/api/bank-transaction-api.js +194 -52
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +71 -39
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +41 -23
- package/dist/api/exceeding-credits-api.d.ts +3 -3
- package/dist/api/exceeding-credits-api.js +41 -23
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +67 -38
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +56 -31
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +76 -47
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +30 -16
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +62 -34
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +82 -46
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +41 -23
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +37 -22
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +67 -38
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-order-entity.d.ts +1 -0
- package/dist/models/bank-order-entity.js +1 -0
- package/dist/models/bank-transaction-class.d.ts +7 -0
- package/dist/models/bank-transaction-entity.d.ts +7 -0
- package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
- package/dist/models/create-bank-order-request-dto.d.ts +3 -2
- package/dist/models/create-bank-order-request-dto.js +1 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/exceeding-credit-entity.d.ts +6 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +13 -1
- package/dist/models/payment-receipt-entity.d.ts +139 -0
- package/dist/models/payment-receipt-entity.js +20 -0
- package/dist/models/payment-request-class.d.ts +19 -0
- package/dist/models/payment-request-class.js +1 -0
- package/dist/models/payment-request-entity.d.ts +223 -0
- package/dist/models/payment-request-entity.js +39 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-request-dto.d.ts +2 -2
- package/models/bank-order-entity.ts +1 -0
- package/models/bank-transaction-class.ts +7 -0
- package/models/bank-transaction-entity.ts +7 -0
- package/models/bank-transaction-invoice-entity.ts +24 -0
- package/models/create-bank-order-request-dto.ts +3 -2
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- package/models/exceeding-credit-entity.ts +6 -0
- package/models/index.ts +4 -0
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
- package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-receipt-class.ts +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +19 -0
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -122,6 +122,8 @@ models/inline-response503.ts
|
|
|
122
122
|
models/invoice-allocation-dto.ts
|
|
123
123
|
models/invoice-match-suggestion-class.ts
|
|
124
124
|
models/invoice-match-suggestion-entity.ts
|
|
125
|
+
models/link-bank-transaction-payment-requests-request-dto-rest.ts
|
|
126
|
+
models/link-bank-transaction-payment-requests-response-class.ts
|
|
125
127
|
models/link-bank-transaction-request-dto-rest.ts
|
|
126
128
|
models/link-bank-transactions-response-class.ts
|
|
127
129
|
models/list-bank-accounts-response-class.ts
|
|
@@ -147,8 +149,10 @@ models/payment-class.ts
|
|
|
147
149
|
models/payment-entity.ts
|
|
148
150
|
models/payment-method-class.ts
|
|
149
151
|
models/payment-receipt-class.ts
|
|
152
|
+
models/payment-receipt-entity.ts
|
|
150
153
|
models/payment-reminder-class.ts
|
|
151
154
|
models/payment-request-class.ts
|
|
155
|
+
models/payment-request-entity.ts
|
|
152
156
|
models/payout-method-class.ts
|
|
153
157
|
models/policy-payment-method-class.ts
|
|
154
158
|
models/primary-bank-account-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.22.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.22.1-beta.80 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.22.1-beta.80
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -69,8 +69,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
|
|
@@ -117,8 +122,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
117
122
|
// http bearer authentication required
|
|
118
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
|
|
@@ -167,8 +177,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
167
177
|
localVarQueryParameter['expand'] = expand;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
181
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
183
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
185
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
|
|
@@ -243,8 +258,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
243
258
|
localVarQueryParameter['filters'] = filters;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
262
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
263
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
265
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
266
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
|
|
@@ -291,8 +311,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
291
311
|
// http bearer authentication required
|
|
292
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
313
|
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
315
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
316
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
|
|
@@ -342,8 +367,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
342
367
|
// http bearer authentication required
|
|
343
368
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
369
|
|
|
345
|
-
|
|
346
|
-
|
|
370
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
371
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
372
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
373
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
374
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
375
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
376
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
347
377
|
}
|
|
348
378
|
|
|
349
379
|
|
|
@@ -744,7 +774,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
744
774
|
* @memberof BankAccountsApi
|
|
745
775
|
*/
|
|
746
776
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
747
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
777
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
748
778
|
}
|
|
749
779
|
|
|
750
780
|
/**
|
|
@@ -756,7 +786,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
756
786
|
* @memberof BankAccountsApi
|
|
757
787
|
*/
|
|
758
788
|
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
759
|
-
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
760
790
|
}
|
|
761
791
|
|
|
762
792
|
/**
|
|
@@ -768,7 +798,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
768
798
|
* @memberof BankAccountsApi
|
|
769
799
|
*/
|
|
770
800
|
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
771
|
-
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
801
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
772
802
|
}
|
|
773
803
|
|
|
774
804
|
/**
|
|
@@ -780,7 +810,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
780
810
|
* @memberof BankAccountsApi
|
|
781
811
|
*/
|
|
782
812
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
783
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
813
|
+
return BankAccountsApiFp(this.configuration).listBankAccounts(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));
|
|
784
814
|
}
|
|
785
815
|
|
|
786
816
|
/**
|
|
@@ -792,7 +822,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
792
822
|
* @memberof BankAccountsApi
|
|
793
823
|
*/
|
|
794
824
|
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
795
|
-
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
825
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
796
826
|
}
|
|
797
827
|
|
|
798
828
|
/**
|
|
@@ -804,6 +834,6 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
804
834
|
* @memberof BankAccountsApi
|
|
805
835
|
*/
|
|
806
836
|
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
807
|
-
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
808
838
|
}
|
|
809
839
|
}
|
package/api/bank-orders-api.ts
CHANGED
|
@@ -67,8 +67,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
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);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -115,8 +120,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
115
120
|
// http bearer authentication required
|
|
116
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
|
|
@@ -165,8 +175,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
165
175
|
localVarQueryParameter['expand'] = expand;
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
|
|
169
|
-
|
|
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);
|
|
170
185
|
}
|
|
171
186
|
|
|
172
187
|
|
|
@@ -186,11 +201,11 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
186
201
|
* @param {string} [authorization] Bearer Token
|
|
187
202
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
188
203
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
204
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
190
205
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
|
|
191
206
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
192
207
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
|
|
193
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
208
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
194
209
|
* @param {*} [options] Override http request option.
|
|
195
210
|
* @throws {RequiredError}
|
|
196
211
|
*/
|
|
@@ -241,8 +256,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
241
256
|
localVarQueryParameter['filters'] = filters;
|
|
242
257
|
}
|
|
243
258
|
|
|
244
|
-
|
|
245
|
-
|
|
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);
|
|
246
266
|
}
|
|
247
267
|
|
|
248
268
|
|
|
@@ -289,8 +309,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
289
309
|
// http bearer authentication required
|
|
290
310
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
291
311
|
|
|
292
|
-
|
|
293
|
-
|
|
312
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
313
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
314
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
315
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
316
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
317
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
318
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
319
|
}
|
|
295
320
|
|
|
296
321
|
|
|
@@ -360,11 +385,11 @@ export const BankOrdersApiFp = function(configuration?: Configuration) {
|
|
|
360
385
|
* @param {string} [authorization] Bearer Token
|
|
361
386
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
387
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
363
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
388
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
364
389
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
|
|
365
390
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
366
391
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
|
|
367
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
392
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
368
393
|
* @param {*} [options] Override http request option.
|
|
369
394
|
* @throws {RequiredError}
|
|
370
395
|
*/
|
|
@@ -435,11 +460,11 @@ export const BankOrdersApiFactory = function (configuration?: Configuration, bas
|
|
|
435
460
|
* @param {string} [authorization] Bearer Token
|
|
436
461
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
437
462
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
438
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
463
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
439
464
|
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, tenantBankAccountCode</i>
|
|
440
465
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, tenantBankAccountCode, amount, createdAt, updatedAt</i>
|
|
441
466
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: tenantBankAccount, xmlFile<i>
|
|
442
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
467
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
443
468
|
* @param {*} [options] Override http request option.
|
|
444
469
|
* @throws {RequiredError}
|
|
445
470
|
*/
|
|
@@ -559,7 +584,7 @@ export interface BankOrdersApiListBankOrdersRequest {
|
|
|
559
584
|
readonly pageToken?: string
|
|
560
585
|
|
|
561
586
|
/**
|
|
562
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
587
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
563
588
|
* @type {string}
|
|
564
589
|
* @memberof BankOrdersApiListBankOrders
|
|
565
590
|
*/
|
|
@@ -587,7 +612,7 @@ export interface BankOrdersApiListBankOrdersRequest {
|
|
|
587
612
|
readonly expand?: string
|
|
588
613
|
|
|
589
614
|
/**
|
|
590
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode</i>
|
|
615
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, tenantBankAccountCode, entityCodes</i>
|
|
591
616
|
* @type {string}
|
|
592
617
|
* @memberof BankOrdersApiListBankOrders
|
|
593
618
|
*/
|
|
@@ -638,7 +663,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
638
663
|
* @memberof BankOrdersApi
|
|
639
664
|
*/
|
|
640
665
|
public createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
641
|
-
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
642
667
|
}
|
|
643
668
|
|
|
644
669
|
/**
|
|
@@ -650,7 +675,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
650
675
|
* @memberof BankOrdersApi
|
|
651
676
|
*/
|
|
652
677
|
public deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig) {
|
|
653
|
-
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
678
|
+
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
654
679
|
}
|
|
655
680
|
|
|
656
681
|
/**
|
|
@@ -662,7 +687,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
662
687
|
* @memberof BankOrdersApi
|
|
663
688
|
*/
|
|
664
689
|
public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
|
|
665
|
-
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
690
|
+
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
666
691
|
}
|
|
667
692
|
|
|
668
693
|
/**
|
|
@@ -674,7 +699,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
674
699
|
* @memberof BankOrdersApi
|
|
675
700
|
*/
|
|
676
701
|
public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
|
|
677
|
-
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
702
|
+
return BankOrdersApiFp(this.configuration).listBankOrders(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));
|
|
678
703
|
}
|
|
679
704
|
|
|
680
705
|
/**
|
|
@@ -686,6 +711,6 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
686
711
|
* @memberof BankOrdersApi
|
|
687
712
|
*/
|
|
688
713
|
public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
689
|
-
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
714
|
+
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
690
715
|
}
|
|
691
716
|
}
|