@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.
- package/.openapi-generator/FILES +0 -6
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +18 -48
- package/api/bank-orders-api.ts +15 -40
- package/api/bank-transaction-api.ts +26 -181
- package/api/billing-addresses-api.ts +15 -40
- package/api/credit-allocation-api.ts +9 -24
- package/api/exceeding-credits-api.ts +6 -128
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +3 -8
- package/api/payment-methods-api.ts +9 -24
- package/api/payment-receipts-api.ts +15 -40
- package/api/payment-reminders-api.ts +12 -32
- package/api/payment-requests-api.ts +27 -52
- package/api/payment-setup-api.ts +6 -16
- package/api/payments-api.ts +16 -46
- package/api/payout-methods-api.ts +18 -48
- package/api/policy-payment-methods-api.ts +9 -24
- package/api/refunds-api.ts +9 -24
- package/api/tenant-bank-account-api.ts +15 -40
- package/api/webhooks-api.ts +2 -2
- package/base.ts +43 -239
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +46 -82
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +38 -67
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +52 -194
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +39 -71
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +23 -41
- package/dist/api/exceeding-credits-api.d.ts +2 -59
- package/dist/api/exceeding-credits-api.js +15 -126
- 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 +8 -15
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +38 -67
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +31 -56
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +47 -76
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +16 -30
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +34 -62
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +46 -82
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +23 -41
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +22 -37
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +38 -67
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/bank-transaction-class.d.ts +0 -7
- package/dist/models/bank-transaction-entity.d.ts +0 -7
- package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +0 -6
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/exceeding-credit-entity.d.ts +0 -6
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +1 -13
- package/dist/models/payment-request-class.d.ts +6 -13
- package/dist/models/payment-request-class.js +0 -1
- package/dist/models/shared-transaction-class.d.ts +0 -6
- package/dist/models/transaction-entity.d.ts +0 -6
- package/models/bank-transaction-class.ts +0 -7
- package/models/bank-transaction-entity.ts +0 -7
- package/models/bank-transaction-invoice-entity.ts +0 -24
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +0 -6
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/exceeding-credit-entity.ts +0 -6
- package/models/index.ts +0 -6
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +1 -13
- package/models/payment-request-class.ts +6 -13
- package/models/shared-transaction-class.ts +0 -6
- package/models/transaction-entity.ts +0 -6
- package/package.json +2 -2
- package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
- package/dist/models/create-exceeding-credit-request-dto.js +0 -15
- package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
- package/dist/models/create-exceeding-credit-response-class.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
- package/dist/models/payment-receipt-entity.d.ts +0 -139
- package/dist/models/payment-receipt-entity.js +0 -20
- package/dist/models/payment-request-entity.d.ts +0 -223
- package/dist/models/payment-request-entity.js +0 -39
- package/models/create-exceeding-credit-request-dto.ts +0 -54
- package/models/create-exceeding-credit-response-class.ts +0 -31
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
- package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
- package/models/payment-receipt-entity.ts +0 -148
- package/models/payment-request-entity.ts +0 -233
package/.openapi-generator/FILES
CHANGED
|
@@ -60,8 +60,6 @@ models/create-billing-address-request-dto.ts
|
|
|
60
60
|
models/create-billing-address-response-class.ts
|
|
61
61
|
models/create-credit-allocation-request-dto.ts
|
|
62
62
|
models/create-credit-allocation-response-class.ts
|
|
63
|
-
models/create-exceeding-credit-request-dto.ts
|
|
64
|
-
models/create-exceeding-credit-response-class.ts
|
|
65
63
|
models/create-payment-method-response-class.ts
|
|
66
64
|
models/create-payment-order-dto.ts
|
|
67
65
|
models/create-payment-order-request-dto.ts
|
|
@@ -122,8 +120,6 @@ models/inline-response503.ts
|
|
|
122
120
|
models/invoice-allocation-dto.ts
|
|
123
121
|
models/invoice-match-suggestion-class.ts
|
|
124
122
|
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
|
|
127
123
|
models/link-bank-transaction-request-dto-rest.ts
|
|
128
124
|
models/link-bank-transactions-response-class.ts
|
|
129
125
|
models/list-bank-accounts-response-class.ts
|
|
@@ -149,10 +145,8 @@ models/payment-class.ts
|
|
|
149
145
|
models/payment-entity.ts
|
|
150
146
|
models/payment-method-class.ts
|
|
151
147
|
models/payment-receipt-class.ts
|
|
152
|
-
models/payment-receipt-entity.ts
|
|
153
148
|
models/payment-reminder-class.ts
|
|
154
149
|
models/payment-request-class.ts
|
|
155
|
-
models/payment-request-entity.ts
|
|
156
150
|
models/payout-method-class.ts
|
|
157
151
|
models/policy-payment-method-class.ts
|
|
158
152
|
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.83 --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.83
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -69,13 +69,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
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);
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
79
74
|
}
|
|
80
75
|
|
|
81
76
|
|
|
@@ -122,13 +117,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
122
117
|
// http bearer authentication required
|
|
123
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
119
|
|
|
125
|
-
|
|
126
|
-
|
|
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);
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
132
122
|
}
|
|
133
123
|
|
|
134
124
|
|
|
@@ -177,13 +167,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
177
167
|
localVarQueryParameter['expand'] = expand;
|
|
178
168
|
}
|
|
179
169
|
|
|
180
|
-
|
|
181
|
-
|
|
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);
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
187
172
|
}
|
|
188
173
|
|
|
189
174
|
|
|
@@ -258,13 +243,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
258
243
|
localVarQueryParameter['filters'] = filters;
|
|
259
244
|
}
|
|
260
245
|
|
|
261
|
-
|
|
262
|
-
|
|
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);
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
248
|
}
|
|
269
249
|
|
|
270
250
|
|
|
@@ -311,13 +291,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
311
291
|
// http bearer authentication required
|
|
312
292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
313
293
|
|
|
314
|
-
|
|
315
|
-
|
|
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);
|
|
294
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
321
296
|
}
|
|
322
297
|
|
|
323
298
|
|
|
@@ -367,13 +342,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
367
342
|
// http bearer authentication required
|
|
368
343
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
369
344
|
|
|
370
|
-
|
|
371
|
-
|
|
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);
|
|
345
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
346
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
377
347
|
}
|
|
378
348
|
|
|
379
349
|
|
|
@@ -774,7 +744,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
774
744
|
* @memberof BankAccountsApi
|
|
775
745
|
*/
|
|
776
746
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
777
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization,
|
|
747
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
778
748
|
}
|
|
779
749
|
|
|
780
750
|
/**
|
|
@@ -786,7 +756,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
786
756
|
* @memberof BankAccountsApi
|
|
787
757
|
*/
|
|
788
758
|
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
789
|
-
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization,
|
|
759
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
790
760
|
}
|
|
791
761
|
|
|
792
762
|
/**
|
|
@@ -798,7 +768,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
798
768
|
* @memberof BankAccountsApi
|
|
799
769
|
*/
|
|
800
770
|
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
801
|
-
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
771
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
802
772
|
}
|
|
803
773
|
|
|
804
774
|
/**
|
|
@@ -810,7 +780,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
810
780
|
* @memberof BankAccountsApi
|
|
811
781
|
*/
|
|
812
782
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
813
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
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));
|
|
814
784
|
}
|
|
815
785
|
|
|
816
786
|
/**
|
|
@@ -822,7 +792,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
822
792
|
* @memberof BankAccountsApi
|
|
823
793
|
*/
|
|
824
794
|
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
825
|
-
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization,
|
|
795
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
826
796
|
}
|
|
827
797
|
|
|
828
798
|
/**
|
|
@@ -834,6 +804,6 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
834
804
|
* @memberof BankAccountsApi
|
|
835
805
|
*/
|
|
836
806
|
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
837
|
-
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization,
|
|
807
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
838
808
|
}
|
|
839
809
|
}
|
package/api/bank-orders-api.ts
CHANGED
|
@@ -67,13 +67,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
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
|
|
|
@@ -120,13 +115,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
120
115
|
// http bearer authentication required
|
|
121
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
122
117
|
|
|
123
|
-
|
|
124
|
-
|
|
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);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
120
|
}
|
|
131
121
|
|
|
132
122
|
|
|
@@ -175,13 +165,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
175
165
|
localVarQueryParameter['expand'] = expand;
|
|
176
166
|
}
|
|
177
167
|
|
|
178
|
-
|
|
179
|
-
|
|
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 BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
256
241
|
localVarQueryParameter['filters'] = filters;
|
|
257
242
|
}
|
|
258
243
|
|
|
259
|
-
|
|
260
|
-
|
|
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
|
|
|
@@ -309,13 +289,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
309
289
|
// http bearer authentication required
|
|
310
290
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
311
291
|
|
|
312
|
-
|
|
313
|
-
|
|
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);
|
|
292
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
293
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
319
294
|
}
|
|
320
295
|
|
|
321
296
|
|
|
@@ -663,7 +638,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
663
638
|
* @memberof BankOrdersApi
|
|
664
639
|
*/
|
|
665
640
|
public createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
666
|
-
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization,
|
|
641
|
+
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
667
642
|
}
|
|
668
643
|
|
|
669
644
|
/**
|
|
@@ -675,7 +650,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
675
650
|
* @memberof BankOrdersApi
|
|
676
651
|
*/
|
|
677
652
|
public deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig) {
|
|
678
|
-
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization,
|
|
653
|
+
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
679
654
|
}
|
|
680
655
|
|
|
681
656
|
/**
|
|
@@ -687,7 +662,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
687
662
|
* @memberof BankOrdersApi
|
|
688
663
|
*/
|
|
689
664
|
public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
|
|
690
|
-
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand,
|
|
665
|
+
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
691
666
|
}
|
|
692
667
|
|
|
693
668
|
/**
|
|
@@ -699,7 +674,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
699
674
|
* @memberof BankOrdersApi
|
|
700
675
|
*/
|
|
701
676
|
public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
|
|
702
|
-
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
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));
|
|
703
678
|
}
|
|
704
679
|
|
|
705
680
|
/**
|
|
@@ -711,6 +686,6 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
711
686
|
* @memberof BankOrdersApi
|
|
712
687
|
*/
|
|
713
688
|
public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
714
|
-
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization,
|
|
689
|
+
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
715
690
|
}
|
|
716
691
|
}
|