@emilgroup/payment-sdk 1.22.1-beta.83 → 1.22.1-beta.84
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 +8 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-orders-api.ts +40 -15
- 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 +240 -6
- 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 +5 -5
- package/dist/api/bank-orders-api.js +67 -38
- 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 +116 -2
- package/dist/api/exceeding-credits-api.js +226 -15
- 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-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-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- 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 +6 -0
- package/dist/models/create-return-premium-credits-request-dto.d.ts +24 -0
- package/dist/models/create-return-premium-credits-request-dto.js +15 -0
- package/dist/models/create-return-premium-credits-response-class.d.ts +25 -0
- package/dist/models/create-return-premium-credits-response-class.js +15 -0
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/exceeding-credit-class.d.ts +25 -2
- package/dist/models/exceeding-credit-class.js +5 -1
- package/dist/models/exceeding-credit-entity.d.ts +31 -2
- package/dist/models/exceeding-credit-entity.js +5 -1
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -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/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- 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 +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 +13 -6
- 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/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-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- 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 +6 -0
- package/models/create-return-premium-credits-request-dto.ts +30 -0
- package/models/create-return-premium-credits-response-class.ts +31 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/exceeding-credit-class.ts +26 -2
- package/models/exceeding-credit-entity.ts +32 -2
- package/models/index.ts +8 -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/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- 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 +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +13 -6
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/package.json +2 -2
|
@@ -21,6 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CreateExceedingCreditRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateExceedingCreditResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { CreateReturnPremiumCreditsRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { CreateReturnPremiumCreditsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
24
32
|
import { GetExceedingCreditResponseClass } from '../models';
|
|
25
33
|
// @ts-ignore
|
|
26
34
|
import { ListExceedingCreditsResponseClass } from '../models';
|
|
@@ -30,6 +38,110 @@ import { ListExceedingCreditsResponseClass } from '../models';
|
|
|
30
38
|
*/
|
|
31
39
|
export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
40
|
return {
|
|
41
|
+
/**
|
|
42
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
43
|
+
* @summary Create the exceeding credit
|
|
44
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createExceedingCredit: async (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto)
|
|
52
|
+
const localVarPath = `/paymentservice/v1/exceeding-credits`;
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
let baseAccessToken;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
baseAccessToken = configuration.accessToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63
|
+
const localVarHeaderParameter = {} as any;
|
|
64
|
+
const localVarQueryParameter = {} as any;
|
|
65
|
+
|
|
66
|
+
// authentication bearer required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
+
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
82
|
+
|
|
83
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
84
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
85
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
86
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createExceedingCreditRequestDto, localVarRequestOptions, configuration)
|
|
87
|
+
|
|
88
|
+
return {
|
|
89
|
+
url: toPathString(localVarUrlObj),
|
|
90
|
+
options: localVarRequestOptions,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
95
|
+
* @summary Create the return-premium credits
|
|
96
|
+
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
97
|
+
* @param {string} [authorization] Bearer Token
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
createReturnPremiumCredits: async (createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
102
|
+
// verify required parameter 'createReturnPremiumCreditsRequestDto' is not null or undefined
|
|
103
|
+
assertParamExists('createReturnPremiumCredits', 'createReturnPremiumCreditsRequestDto', createReturnPremiumCreditsRequestDto)
|
|
104
|
+
const localVarPath = `/paymentservice/v1/exceeding-credits/return-premium`;
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
let baseAccessToken;
|
|
109
|
+
if (configuration) {
|
|
110
|
+
baseOptions = configuration.baseOptions;
|
|
111
|
+
baseAccessToken = configuration.accessToken;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
115
|
+
const localVarHeaderParameter = {} as any;
|
|
116
|
+
const localVarQueryParameter = {} as any;
|
|
117
|
+
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
+
|
|
122
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
123
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
124
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
125
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
126
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
127
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
128
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
134
|
+
|
|
135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createReturnPremiumCreditsRequestDto, localVarRequestOptions, configuration)
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
url: toPathString(localVarUrlObj),
|
|
142
|
+
options: localVarRequestOptions,
|
|
143
|
+
};
|
|
144
|
+
},
|
|
33
145
|
/**
|
|
34
146
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
35
147
|
* @summary Retrieve the exceeding credit
|
|
@@ -60,8 +172,13 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
|
|
|
60
172
|
// http bearer authentication required
|
|
61
173
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
174
|
|
|
63
|
-
|
|
64
|
-
|
|
175
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
176
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
177
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
178
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
179
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
180
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
65
182
|
}
|
|
66
183
|
|
|
67
184
|
|
|
@@ -136,8 +253,13 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
|
|
|
136
253
|
localVarQueryParameter['filters'] = filters;
|
|
137
254
|
}
|
|
138
255
|
|
|
139
|
-
|
|
140
|
-
|
|
256
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
257
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
258
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
259
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
260
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
261
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
262
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
141
263
|
}
|
|
142
264
|
|
|
143
265
|
|
|
@@ -161,6 +283,30 @@ export const ExceedingCreditsApiAxiosParamCreator = function (configuration?: Co
|
|
|
161
283
|
export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
162
284
|
const localVarAxiosParamCreator = ExceedingCreditsApiAxiosParamCreator(configuration)
|
|
163
285
|
return {
|
|
286
|
+
/**
|
|
287
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
288
|
+
* @summary Create the exceeding credit
|
|
289
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
290
|
+
* @param {string} [authorization] Bearer Token
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
async createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>> {
|
|
295
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options);
|
|
296
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
300
|
+
* @summary Create the return-premium credits
|
|
301
|
+
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
302
|
+
* @param {string} [authorization] Bearer Token
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
async createReturnPremiumCredits(createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReturnPremiumCreditsResponseClass>> {
|
|
307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReturnPremiumCredits(createReturnPremiumCreditsRequestDto, authorization, options);
|
|
308
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
309
|
+
},
|
|
164
310
|
/**
|
|
165
311
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
166
312
|
* @summary Retrieve the exceeding credit
|
|
@@ -201,6 +347,28 @@ export const ExceedingCreditsApiFp = function(configuration?: Configuration) {
|
|
|
201
347
|
export const ExceedingCreditsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
202
348
|
const localVarFp = ExceedingCreditsApiFp(configuration)
|
|
203
349
|
return {
|
|
350
|
+
/**
|
|
351
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
352
|
+
* @summary Create the exceeding credit
|
|
353
|
+
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
354
|
+
* @param {string} [authorization] Bearer Token
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass> {
|
|
359
|
+
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
363
|
+
* @summary Create the return-premium credits
|
|
364
|
+
* @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
|
|
365
|
+
* @param {string} [authorization] Bearer Token
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
createReturnPremiumCredits(createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options?: any): AxiosPromise<CreateReturnPremiumCreditsResponseClass> {
|
|
370
|
+
return localVarFp.createReturnPremiumCredits(createReturnPremiumCreditsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
371
|
+
},
|
|
204
372
|
/**
|
|
205
373
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
206
374
|
* @summary Retrieve the exceeding credit
|
|
@@ -232,6 +400,48 @@ export const ExceedingCreditsApiFactory = function (configuration?: Configuratio
|
|
|
232
400
|
};
|
|
233
401
|
};
|
|
234
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
|
|
405
|
+
* @export
|
|
406
|
+
* @interface ExceedingCreditsApiCreateExceedingCreditRequest
|
|
407
|
+
*/
|
|
408
|
+
export interface ExceedingCreditsApiCreateExceedingCreditRequest {
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @type {CreateExceedingCreditRequestDto}
|
|
412
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
413
|
+
*/
|
|
414
|
+
readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Bearer Token
|
|
418
|
+
* @type {string}
|
|
419
|
+
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
420
|
+
*/
|
|
421
|
+
readonly authorization?: string
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Request parameters for createReturnPremiumCredits operation in ExceedingCreditsApi.
|
|
426
|
+
* @export
|
|
427
|
+
* @interface ExceedingCreditsApiCreateReturnPremiumCreditsRequest
|
|
428
|
+
*/
|
|
429
|
+
export interface ExceedingCreditsApiCreateReturnPremiumCreditsRequest {
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @type {CreateReturnPremiumCreditsRequestDto}
|
|
433
|
+
* @memberof ExceedingCreditsApiCreateReturnPremiumCredits
|
|
434
|
+
*/
|
|
435
|
+
readonly createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Bearer Token
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @memberof ExceedingCreditsApiCreateReturnPremiumCredits
|
|
441
|
+
*/
|
|
442
|
+
readonly authorization?: string
|
|
443
|
+
}
|
|
444
|
+
|
|
235
445
|
/**
|
|
236
446
|
* Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
|
|
237
447
|
* @export
|
|
@@ -323,6 +533,30 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
|
|
|
323
533
|
* @extends {BaseAPI}
|
|
324
534
|
*/
|
|
325
535
|
export class ExceedingCreditsApi extends BaseAPI {
|
|
536
|
+
/**
|
|
537
|
+
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
538
|
+
* @summary Create the exceeding credit
|
|
539
|
+
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
* @memberof ExceedingCreditsApi
|
|
543
|
+
*/
|
|
544
|
+
public createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig) {
|
|
545
|
+
return ExceedingCreditsApiFp(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
|
|
550
|
+
* @summary Create the return-premium credits
|
|
551
|
+
* @param {ExceedingCreditsApiCreateReturnPremiumCreditsRequest} requestParameters Request parameters.
|
|
552
|
+
* @param {*} [options] Override http request option.
|
|
553
|
+
* @throws {RequiredError}
|
|
554
|
+
* @memberof ExceedingCreditsApi
|
|
555
|
+
*/
|
|
556
|
+
public createReturnPremiumCredits(requestParameters: ExceedingCreditsApiCreateReturnPremiumCreditsRequest, options?: AxiosRequestConfig) {
|
|
557
|
+
return ExceedingCreditsApiFp(this.configuration).createReturnPremiumCredits(requestParameters.createReturnPremiumCreditsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
558
|
+
}
|
|
559
|
+
|
|
326
560
|
/**
|
|
327
561
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
328
562
|
* @summary Retrieve the exceeding credit
|
|
@@ -332,7 +566,7 @@ export class ExceedingCreditsApi extends BaseAPI {
|
|
|
332
566
|
* @memberof ExceedingCreditsApi
|
|
333
567
|
*/
|
|
334
568
|
public getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig) {
|
|
335
|
-
return ExceedingCreditsApiFp(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
569
|
+
return ExceedingCreditsApiFp(this.configuration).getExceedingCredit(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
336
570
|
}
|
|
337
571
|
|
|
338
572
|
/**
|
|
@@ -344,6 +578,6 @@ export class ExceedingCreditsApi extends BaseAPI {
|
|
|
344
578
|
* @memberof ExceedingCreditsApi
|
|
345
579
|
*/
|
|
346
580
|
public listExceedingCredits(requestParameters: ExceedingCreditsApiListExceedingCreditsRequest = {}, options?: AxiosRequestConfig) {
|
|
347
|
-
return ExceedingCreditsApiFp(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
581
|
+
return ExceedingCreditsApiFp(this.configuration).listExceedingCredits(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
348
582
|
}
|
|
349
583
|
}
|
package/api/health-check-api.ts
CHANGED
|
@@ -119,6 +119,6 @@ export class HealthCheckApi extends BaseAPI {
|
|
|
119
119
|
* @memberof HealthCheckApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
return HealthCheckApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api/ibanvalidator-api.ts
CHANGED
|
@@ -59,8 +59,13 @@ export const IBANValidatorApiAxiosParamCreator = function (configuration?: Confi
|
|
|
59
59
|
// http bearer authentication required
|
|
60
60
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
63
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
64
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
65
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
66
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
67
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
68
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
|
|
@@ -160,6 +165,6 @@ export class IBANValidatorApi extends BaseAPI {
|
|
|
160
165
|
* @memberof IBANValidatorApi
|
|
161
166
|
*/
|
|
162
167
|
public validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig) {
|
|
163
|
-
return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
+
return IBANValidatorApiFp(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
164
169
|
}
|
|
165
170
|
}
|
|
@@ -63,8 +63,13 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
67
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
68
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
69
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
70
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
71
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
|
|
@@ -111,8 +116,13 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
111
116
|
// http bearer authentication required
|
|
112
117
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
118
|
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
120
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
121
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
122
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
124
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
|
|
@@ -187,8 +197,13 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
187
197
|
localVarQueryParameter['filters'] = filters;
|
|
188
198
|
}
|
|
189
199
|
|
|
190
|
-
|
|
191
|
-
|
|
200
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
201
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
202
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
203
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
204
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
205
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
206
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
192
207
|
}
|
|
193
208
|
|
|
194
209
|
|
|
@@ -427,7 +442,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
427
442
|
* @memberof PaymentMethodsApi
|
|
428
443
|
*/
|
|
429
444
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
430
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
445
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
431
446
|
}
|
|
432
447
|
|
|
433
448
|
/**
|
|
@@ -439,7 +454,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
439
454
|
* @memberof PaymentMethodsApi
|
|
440
455
|
*/
|
|
441
456
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
442
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
457
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
443
458
|
}
|
|
444
459
|
|
|
445
460
|
/**
|
|
@@ -451,6 +466,6 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
451
466
|
* @memberof PaymentMethodsApi
|
|
452
467
|
*/
|
|
453
468
|
public listPaymentMethods(requestParameters: PaymentMethodsApiListPaymentMethodsRequest = {}, options?: AxiosRequestConfig) {
|
|
454
|
-
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
469
|
+
return PaymentMethodsApiFp(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
455
470
|
}
|
|
456
471
|
}
|
|
@@ -65,8 +65,13 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
65
65
|
// http bearer authentication required
|
|
66
66
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
69
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
70
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
71
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
72
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
73
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
74
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
|
|
@@ -113,8 +118,13 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
113
118
|
// http bearer authentication required
|
|
114
119
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
115
120
|
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
122
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
123
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
124
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
125
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
126
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
118
128
|
}
|
|
119
129
|
|
|
120
130
|
|
|
@@ -165,8 +175,13 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
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
|
|
|
@@ -241,8 +256,13 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
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
|
|
|
@@ -286,8 +306,13 @@ export const PaymentReceiptsApiAxiosParamCreator = function (configuration?: Con
|
|
|
286
306
|
// http bearer authentication required
|
|
287
307
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
288
308
|
|
|
289
|
-
|
|
290
|
-
|
|
309
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
310
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
311
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
312
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
313
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
314
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
315
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
291
316
|
}
|
|
292
317
|
|
|
293
318
|
|
|
@@ -623,7 +648,7 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
623
648
|
* @memberof PaymentReceiptsApi
|
|
624
649
|
*/
|
|
625
650
|
public createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig) {
|
|
626
|
-
return PaymentReceiptsApiFp(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
651
|
+
return PaymentReceiptsApiFp(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
627
652
|
}
|
|
628
653
|
|
|
629
654
|
/**
|
|
@@ -635,7 +660,7 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
635
660
|
* @memberof PaymentReceiptsApi
|
|
636
661
|
*/
|
|
637
662
|
public deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig) {
|
|
638
|
-
return PaymentReceiptsApiFp(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
663
|
+
return PaymentReceiptsApiFp(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
639
664
|
}
|
|
640
665
|
|
|
641
666
|
/**
|
|
@@ -647,7 +672,7 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
647
672
|
* @memberof PaymentReceiptsApi
|
|
648
673
|
*/
|
|
649
674
|
public getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig) {
|
|
650
|
-
return PaymentReceiptsApiFp(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
675
|
+
return PaymentReceiptsApiFp(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
651
676
|
}
|
|
652
677
|
|
|
653
678
|
/**
|
|
@@ -659,7 +684,7 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
659
684
|
* @memberof PaymentReceiptsApi
|
|
660
685
|
*/
|
|
661
686
|
public listPaymentReceipts(requestParameters: PaymentReceiptsApiListPaymentReceiptsRequest = {}, options?: AxiosRequestConfig) {
|
|
662
|
-
return PaymentReceiptsApiFp(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
687
|
+
return PaymentReceiptsApiFp(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
663
688
|
}
|
|
664
689
|
|
|
665
690
|
/**
|
|
@@ -671,6 +696,6 @@ export class PaymentReceiptsApi extends BaseAPI {
|
|
|
671
696
|
* @memberof PaymentReceiptsApi
|
|
672
697
|
*/
|
|
673
698
|
public updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig) {
|
|
674
|
-
return PaymentReceiptsApiFp(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
return PaymentReceiptsApiFp(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
675
700
|
}
|
|
676
701
|
}
|