@emilgroup/payment-sdk 1.22.1-beta.76 → 1.22.1-beta.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -6
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +12 -24
- package/api/bank-orders-api.ts +10 -20
- package/api/bank-transaction-api.ts +20 -154
- package/api/billing-addresses-api.ts +10 -20
- package/api/credit-allocation-api.ts +6 -12
- package/api/exceeding-credits-api.ts +4 -117
- package/api/ibanvalidator-api.ts +2 -4
- package/api/payment-methods-api.ts +6 -12
- package/api/payment-receipts-api.ts +10 -20
- package/api/payment-reminders-api.ts +8 -16
- package/api/payment-requests-api.ts +22 -32
- package/api/payment-setup-api.ts +4 -8
- package/api/payments-api.ts +12 -24
- package/api/payout-methods-api.ts +12 -24
- package/api/policy-payment-methods-api.ts +6 -12
- package/api/refunds-api.ts +6 -12
- package/api/tenant-bank-account-api.ts +10 -20
- package/base.ts +41 -174
- 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 +22 -36
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +18 -29
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +28 -144
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +19 -32
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +11 -18
- package/dist/api/exceeding-credits-api.d.ts +2 -59
- package/dist/api/exceeding-credits-api.js +7 -107
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +4 -7
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +11 -18
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +18 -29
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +15 -25
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +27 -38
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +8 -14
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +18 -28
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +22 -36
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +11 -18
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +10 -15
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +18 -29
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- 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 +1 -1
- 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 +1 -1
- 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.78 --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.78
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -69,10 +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
|
-
if (authorizationValue) {
|
|
75
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
|
|
@@ -119,10 +117,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
119
117
|
// http bearer authentication required
|
|
120
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
119
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
if (authorizationValue) {
|
|
125
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
126
122
|
}
|
|
127
123
|
|
|
128
124
|
|
|
@@ -171,10 +167,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
171
167
|
localVarQueryParameter['expand'] = expand;
|
|
172
168
|
}
|
|
173
169
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if (authorizationValue) {
|
|
177
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
178
172
|
}
|
|
179
173
|
|
|
180
174
|
|
|
@@ -249,10 +243,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
249
243
|
localVarQueryParameter['filters'] = filters;
|
|
250
244
|
}
|
|
251
245
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
if (authorizationValue) {
|
|
255
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
246
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
256
248
|
}
|
|
257
249
|
|
|
258
250
|
|
|
@@ -299,10 +291,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
299
291
|
// http bearer authentication required
|
|
300
292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
301
293
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
if (authorizationValue) {
|
|
305
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
306
296
|
}
|
|
307
297
|
|
|
308
298
|
|
|
@@ -352,10 +342,8 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
352
342
|
// http bearer authentication required
|
|
353
343
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
354
344
|
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
if (authorizationValue) {
|
|
358
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
345
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
346
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
359
347
|
}
|
|
360
348
|
|
|
361
349
|
|
package/api/bank-orders-api.ts
CHANGED
|
@@ -67,10 +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
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
@@ -117,10 +115,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
117
115
|
// http bearer authentication required
|
|
118
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (authorizationValue) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
|
|
@@ -169,10 +165,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
169
165
|
localVarQueryParameter['expand'] = expand;
|
|
170
166
|
}
|
|
171
167
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
if (authorizationValue) {
|
|
175
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
169
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
176
170
|
}
|
|
177
171
|
|
|
178
172
|
|
|
@@ -247,10 +241,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
247
241
|
localVarQueryParameter['filters'] = filters;
|
|
248
242
|
}
|
|
249
243
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
if (authorizationValue) {
|
|
253
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
244
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
245
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
254
246
|
}
|
|
255
247
|
|
|
256
248
|
|
|
@@ -297,10 +289,8 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
297
289
|
// http bearer authentication required
|
|
298
290
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
291
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
if (authorizationValue) {
|
|
303
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
292
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
293
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
304
294
|
}
|
|
305
295
|
|
|
306
296
|
|
|
@@ -27,10 +27,6 @@ import { GetBankTransactionsResponseClass } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { ImportBankTransactionsResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
-
import { LinkBankTransactionPaymentRequestsRequestDtoRest } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
import { LinkBankTransactionPaymentRequestsResponseClass } from '../models';
|
|
33
|
-
// @ts-ignore
|
|
34
30
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
35
31
|
// @ts-ignore
|
|
36
32
|
import { LinkBankTransactionsResponseClass } from '../models';
|
|
@@ -74,10 +70,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
74
70
|
// http bearer authentication required
|
|
75
71
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
72
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if (authorizationValue) {
|
|
80
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
73
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
81
75
|
}
|
|
82
76
|
|
|
83
77
|
|
|
@@ -96,7 +90,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
96
90
|
* @summary Retrieve the bank transaction
|
|
97
91
|
* @param {string} code
|
|
98
92
|
* @param {string} [authorization] Bearer Token
|
|
99
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
93
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
100
94
|
* @param {*} [options] Override http request option.
|
|
101
95
|
* @throws {RequiredError}
|
|
102
96
|
*/
|
|
@@ -126,10 +120,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
126
120
|
localVarQueryParameter['expand'] = expand;
|
|
127
121
|
}
|
|
128
122
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
if (authorizationValue) {
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
123
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
124
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
125
|
}
|
|
134
126
|
|
|
135
127
|
|
|
@@ -173,10 +165,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
173
165
|
// http bearer authentication required
|
|
174
166
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
175
167
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (authorizationValue) {
|
|
179
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
169
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
180
170
|
}
|
|
181
171
|
|
|
182
172
|
|
|
@@ -230,10 +220,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
230
220
|
// http bearer authentication required
|
|
231
221
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
232
222
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if (authorizationValue) {
|
|
236
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
223
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
224
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
237
225
|
}
|
|
238
226
|
|
|
239
227
|
|
|
@@ -250,59 +238,6 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
250
238
|
options: localVarRequestOptions,
|
|
251
239
|
};
|
|
252
240
|
},
|
|
253
|
-
/**
|
|
254
|
-
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
255
|
-
* @summary Link bank transaction to payment requests
|
|
256
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
257
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
258
|
-
* @param {string} [authorization] Bearer Token
|
|
259
|
-
* @param {*} [options] Override http request option.
|
|
260
|
-
* @throws {RequiredError}
|
|
261
|
-
*/
|
|
262
|
-
linkBankTransactionPaymentRequests: async (code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
-
// verify required parameter 'code' is not null or undefined
|
|
264
|
-
assertParamExists('linkBankTransactionPaymentRequests', 'code', code)
|
|
265
|
-
// verify required parameter 'linkBankTransactionPaymentRequestsRequestDtoRest' is not null or undefined
|
|
266
|
-
assertParamExists('linkBankTransactionPaymentRequests', 'linkBankTransactionPaymentRequestsRequestDtoRest', linkBankTransactionPaymentRequestsRequestDtoRest)
|
|
267
|
-
const localVarPath = `/paymentservice/v1/tenant/bank-transactions/{code}/link-payment-requests`
|
|
268
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
269
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
-
let baseOptions;
|
|
272
|
-
let baseAccessToken;
|
|
273
|
-
if (configuration) {
|
|
274
|
-
baseOptions = configuration.baseOptions;
|
|
275
|
-
baseAccessToken = configuration.accessToken;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
279
|
-
const localVarHeaderParameter = {} as any;
|
|
280
|
-
const localVarQueryParameter = {} as any;
|
|
281
|
-
|
|
282
|
-
// authentication bearer required
|
|
283
|
-
// http bearer authentication required
|
|
284
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
285
|
-
|
|
286
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
287
|
-
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
288
|
-
if (authorizationValue) {
|
|
289
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
295
|
-
|
|
296
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(linkBankTransactionPaymentRequestsRequestDtoRest, localVarRequestOptions, configuration)
|
|
300
|
-
|
|
301
|
-
return {
|
|
302
|
-
url: toPathString(localVarUrlObj),
|
|
303
|
-
options: localVarRequestOptions,
|
|
304
|
-
};
|
|
305
|
-
},
|
|
306
241
|
/**
|
|
307
242
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
308
243
|
* @summary List bank transactions
|
|
@@ -312,7 +247,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
312
247
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
313
248
|
* @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: id, createdAt, amount</i>
|
|
314
249
|
* @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, createdAt, transactionDate, entryDate</i>
|
|
315
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
250
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
316
251
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
317
252
|
* @param {*} [options] Override http request option.
|
|
318
253
|
* @throws {RequiredError}
|
|
@@ -364,10 +299,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
364
299
|
localVarQueryParameter['filters'] = filters;
|
|
365
300
|
}
|
|
366
301
|
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
if (authorizationValue) {
|
|
370
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
302
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
303
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
371
304
|
}
|
|
372
305
|
|
|
373
306
|
|
|
@@ -411,10 +344,8 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
411
344
|
// http bearer authentication required
|
|
412
345
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
413
346
|
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
if (authorizationValue) {
|
|
417
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
347
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
348
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
418
349
|
}
|
|
419
350
|
|
|
420
351
|
|
|
@@ -455,7 +386,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
455
386
|
* @summary Retrieve the bank transaction
|
|
456
387
|
* @param {string} code
|
|
457
388
|
* @param {string} [authorization] Bearer Token
|
|
458
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
389
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
459
390
|
* @param {*} [options] Override http request option.
|
|
460
391
|
* @throws {RequiredError}
|
|
461
392
|
*/
|
|
@@ -488,19 +419,6 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
488
419
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
489
420
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
490
421
|
},
|
|
491
|
-
/**
|
|
492
|
-
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
493
|
-
* @summary Link bank transaction to payment requests
|
|
494
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
495
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
496
|
-
* @param {string} [authorization] Bearer Token
|
|
497
|
-
* @param {*} [options] Override http request option.
|
|
498
|
-
* @throws {RequiredError}
|
|
499
|
-
*/
|
|
500
|
-
async linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass>> {
|
|
501
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options);
|
|
502
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
|
-
},
|
|
504
422
|
/**
|
|
505
423
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
506
424
|
* @summary List bank transactions
|
|
@@ -510,7 +428,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
510
428
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
511
429
|
* @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: id, createdAt, amount</i>
|
|
512
430
|
* @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, createdAt, transactionDate, entryDate</i>
|
|
513
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
431
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
514
432
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
515
433
|
* @param {*} [options] Override http request option.
|
|
516
434
|
* @throws {RequiredError}
|
|
@@ -557,7 +475,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
557
475
|
* @summary Retrieve the bank transaction
|
|
558
476
|
* @param {string} code
|
|
559
477
|
* @param {string} [authorization] Bearer Token
|
|
560
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
478
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
561
479
|
* @param {*} [options] Override http request option.
|
|
562
480
|
* @throws {RequiredError}
|
|
563
481
|
*/
|
|
@@ -587,18 +505,6 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
587
505
|
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass> {
|
|
588
506
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
589
507
|
},
|
|
590
|
-
/**
|
|
591
|
-
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
592
|
-
* @summary Link bank transaction to payment requests
|
|
593
|
-
* @param {string} code Code of the outgoing bank transaction to link
|
|
594
|
-
* @param {LinkBankTransactionPaymentRequestsRequestDtoRest} linkBankTransactionPaymentRequestsRequestDtoRest
|
|
595
|
-
* @param {string} [authorization] Bearer Token
|
|
596
|
-
* @param {*} [options] Override http request option.
|
|
597
|
-
* @throws {RequiredError}
|
|
598
|
-
*/
|
|
599
|
-
linkBankTransactionPaymentRequests(code: string, linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionPaymentRequestsResponseClass> {
|
|
600
|
-
return localVarFp.linkBankTransactionPaymentRequests(code, linkBankTransactionPaymentRequestsRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
601
|
-
},
|
|
602
508
|
/**
|
|
603
509
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
604
510
|
* @summary List bank transactions
|
|
@@ -608,7 +514,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
608
514
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
609
515
|
* @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: id, createdAt, amount</i>
|
|
610
516
|
* @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, createdAt, transactionDate, entryDate</i>
|
|
611
|
-
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
517
|
+
* @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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
612
518
|
* @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, bankAccountId, bankAccountNumber, messageReference, amount, currency, transactionReference, transactionDate, entryDate, isLinked</i>
|
|
613
519
|
* @param {*} [options] Override http request option.
|
|
614
520
|
* @throws {RequiredError}
|
|
@@ -672,7 +578,7 @@ export interface BankTransactionApiGetBankTransactionRequest {
|
|
|
672
578
|
readonly authorization?: string
|
|
673
579
|
|
|
674
580
|
/**
|
|
675
|
-
* 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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
581
|
+
* 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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
676
582
|
* @type {string}
|
|
677
583
|
* @memberof BankTransactionApiGetBankTransaction
|
|
678
584
|
*/
|
|
@@ -728,34 +634,6 @@ export interface BankTransactionApiLinkBankTransactionRequest {
|
|
|
728
634
|
readonly authorization?: string
|
|
729
635
|
}
|
|
730
636
|
|
|
731
|
-
/**
|
|
732
|
-
* Request parameters for linkBankTransactionPaymentRequests operation in BankTransactionApi.
|
|
733
|
-
* @export
|
|
734
|
-
* @interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest
|
|
735
|
-
*/
|
|
736
|
-
export interface BankTransactionApiLinkBankTransactionPaymentRequestsRequest {
|
|
737
|
-
/**
|
|
738
|
-
* Code of the outgoing bank transaction to link
|
|
739
|
-
* @type {string}
|
|
740
|
-
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
741
|
-
*/
|
|
742
|
-
readonly code: string
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
*
|
|
746
|
-
* @type {LinkBankTransactionPaymentRequestsRequestDtoRest}
|
|
747
|
-
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
748
|
-
*/
|
|
749
|
-
readonly linkBankTransactionPaymentRequestsRequestDtoRest: LinkBankTransactionPaymentRequestsRequestDtoRest
|
|
750
|
-
|
|
751
|
-
/**
|
|
752
|
-
* Bearer Token
|
|
753
|
-
* @type {string}
|
|
754
|
-
* @memberof BankTransactionApiLinkBankTransactionPaymentRequests
|
|
755
|
-
*/
|
|
756
|
-
readonly authorization?: string
|
|
757
|
-
}
|
|
758
|
-
|
|
759
637
|
/**
|
|
760
638
|
* Request parameters for listBankTransactions operation in BankTransactionApi.
|
|
761
639
|
* @export
|
|
@@ -805,7 +683,7 @@ export interface BankTransactionApiListBankTransactionsRequest {
|
|
|
805
683
|
readonly order?: string
|
|
806
684
|
|
|
807
685
|
/**
|
|
808
|
-
* 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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices
|
|
686
|
+
* 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: bankAccount, invoiceMatchSuggestions, suggestionGenerationProgress, linkedBankOrder, bankTransactionInvoices<i>
|
|
809
687
|
* @type {string}
|
|
810
688
|
* @memberof BankTransactionApiListBankTransactions
|
|
811
689
|
*/
|
|
@@ -895,18 +773,6 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
895
773
|
return BankTransactionApiFp(this.configuration).linkBankTransaction(requestParameters.code, requestParameters.linkBankTransactionRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
896
774
|
}
|
|
897
775
|
|
|
898
|
-
/**
|
|
899
|
-
* Links an outgoing bank transaction to the payout payment requests it paid. In one database transaction it creates one payment receipt per request for the full request amount, which marks each request paid, closes every bank order of the requests that has no open request left, and marks the transaction linked. The requests must be open payouts (claim regulations, refund allocations or commission settlements) in the transaction currency without receipts, and their amounts must add up to the transaction amount. A request in a bank order must be in a payout order past draft that pays from the tenant bank account of the transaction. A bank order given by its code is linked with every open payment request it holds in the transaction currency at the time of the link; it must be such an order, not closed, with at least one. **Required Permissions** \"payment-management.bank-accounts.create\", \"payment-management.payments.create\", \"payment-management.bank-orders.update\"
|
|
900
|
-
* @summary Link bank transaction to payment requests
|
|
901
|
-
* @param {BankTransactionApiLinkBankTransactionPaymentRequestsRequest} requestParameters Request parameters.
|
|
902
|
-
* @param {*} [options] Override http request option.
|
|
903
|
-
* @throws {RequiredError}
|
|
904
|
-
* @memberof BankTransactionApi
|
|
905
|
-
*/
|
|
906
|
-
public linkBankTransactionPaymentRequests(requestParameters: BankTransactionApiLinkBankTransactionPaymentRequestsRequest, options?: AxiosRequestConfig) {
|
|
907
|
-
return BankTransactionApiFp(this.configuration).linkBankTransactionPaymentRequests(requestParameters.code, requestParameters.linkBankTransactionPaymentRequestsRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
908
|
-
}
|
|
909
|
-
|
|
910
776
|
/**
|
|
911
777
|
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
912
778
|
* @summary List bank transactions
|
|
@@ -67,10 +67,8 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (authorizationValue) {
|
|
73
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
72
|
}
|
|
75
73
|
|
|
76
74
|
|
|
@@ -117,10 +115,8 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
117
115
|
// http bearer authentication required
|
|
118
116
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
117
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
if (authorizationValue) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
|
|
@@ -164,10 +160,8 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
164
160
|
// http bearer authentication required
|
|
165
161
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
162
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
if (authorizationValue) {
|
|
170
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
163
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
164
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
165
|
}
|
|
172
166
|
|
|
173
167
|
|
|
@@ -242,10 +236,8 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
242
236
|
localVarQueryParameter['filters'] = filters;
|
|
243
237
|
}
|
|
244
238
|
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
if (authorizationValue) {
|
|
248
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
239
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
240
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
241
|
}
|
|
250
242
|
|
|
251
243
|
|
|
@@ -292,10 +284,8 @@ export const BillingAddressesApiAxiosParamCreator = function (configuration?: Co
|
|
|
292
284
|
// http bearer authentication required
|
|
293
285
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
294
286
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
if (authorizationValue) {
|
|
298
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
287
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
288
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
299
289
|
}
|
|
300
290
|
|
|
301
291
|
|