@emilgroup/payment-sdk 1.22.1-beta.8 → 1.22.1-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-orders-api.ts +48 -23
- package/api/bank-transaction-api.ts +181 -26
- package/api/billing-addresses-api.ts +40 -15
- package/api/credit-allocation-api.ts +24 -9
- package/api/exceeding-credits-api.ts +24 -9
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/payment-methods-api.ts +24 -9
- package/api/payment-receipts-api.ts +40 -15
- package/api/payment-reminders-api.ts +32 -12
- package/api/payment-requests-api.ts +52 -27
- package/api/payment-setup-api.ts +16 -6
- package/api/payments-api.ts +46 -16
- package/api/payout-methods-api.ts +48 -18
- package/api/policy-payment-methods-api.ts +24 -9
- package/api/refunds-api.ts +24 -9
- package/api/tenant-bank-account-api.ts +40 -15
- package/api/webhooks-api.ts +2 -2
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +82 -46
- package/dist/api/bank-orders-api.d.ts +13 -13
- package/dist/api/bank-orders-api.js +73 -44
- package/dist/api/bank-transaction-api.d.ts +80 -14
- package/dist/api/bank-transaction-api.js +194 -52
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +71 -39
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +41 -23
- package/dist/api/exceeding-credits-api.d.ts +3 -3
- package/dist/api/exceeding-credits-api.js +41 -23
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +67 -38
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +56 -31
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +76 -47
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +30 -16
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +62 -34
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +82 -46
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +41 -23
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +37 -22
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +67 -38
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-order-entity.d.ts +1 -0
- package/dist/models/bank-order-entity.js +1 -0
- package/dist/models/bank-transaction-class.d.ts +7 -0
- package/dist/models/bank-transaction-entity.d.ts +7 -0
- package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
- package/dist/models/create-bank-order-request-dto.d.ts +3 -2
- package/dist/models/create-bank-order-request-dto.js +1 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/exceeding-credit-entity.d.ts +6 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +13 -1
- package/dist/models/payment-receipt-entity.d.ts +139 -0
- package/dist/models/payment-receipt-entity.js +20 -0
- package/dist/models/payment-request-class.d.ts +19 -0
- package/dist/models/payment-request-class.js +1 -0
- package/dist/models/payment-request-entity.d.ts +223 -0
- package/dist/models/payment-request-entity.js +39 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-request-dto.d.ts +2 -2
- package/models/bank-order-entity.ts +1 -0
- package/models/bank-transaction-class.ts +7 -0
- package/models/bank-transaction-entity.ts +7 -0
- package/models/bank-transaction-invoice-entity.ts +24 -0
- package/models/create-bank-order-request-dto.ts +3 -2
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/exceeding-credit-entity.ts +6 -0
- package/models/index.ts +4 -0
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
- package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
- package/models/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-receipt-class.ts +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +19 -0
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +2 -2
|
@@ -103,9 +103,10 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
validateIban: function (validateIbanRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'validateIbanRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('validateIban', 'validateIbanRequestDto', validateIbanRequestDto);
|
|
@@ -120,13 +121,19 @@ var IBANValidatorApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -217,7 +224,7 @@ var IBANValidatorApi = /** @class */ (function (_super) {
|
|
|
217
224
|
*/
|
|
218
225
|
IBANValidatorApi.prototype.validateIban = function (requestParameters, options) {
|
|
219
226
|
var _this = this;
|
|
220
|
-
return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
227
|
+
return (0, exports.IBANValidatorApiFp)(this.configuration).validateIban(requestParameters.validateIbanRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
221
228
|
};
|
|
222
229
|
return IBANValidatorApi;
|
|
223
230
|
}(base_1.BaseAPI));
|
|
@@ -241,7 +241,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
241
241
|
* @throws {RequiredError}
|
|
242
242
|
* @memberof PaymentMethodsApi
|
|
243
243
|
*/
|
|
244
|
-
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}>>;
|
|
244
|
+
createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentMethodResponseClass, any, {}, any>>;
|
|
245
245
|
/**
|
|
246
246
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information. **Required Permissions** \"payment-management.payments.view\"
|
|
247
247
|
* @summary Retrieve the payment method
|
|
@@ -250,7 +250,7 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof PaymentMethodsApi
|
|
252
252
|
*/
|
|
253
|
-
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}>>;
|
|
253
|
+
getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentMethodResponseClass, any, {}, any>>;
|
|
254
254
|
/**
|
|
255
255
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
256
256
|
* @summary List payment methods
|
|
@@ -259,5 +259,5 @@ export declare class PaymentMethodsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof PaymentMethodsApi
|
|
261
261
|
*/
|
|
262
|
-
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}>>;
|
|
262
|
+
listPaymentMethods(requestParameters?: PaymentMethodsApiListPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentMethodsResponseClass, any, {}, any>>;
|
|
263
263
|
}
|
|
@@ -103,9 +103,10 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createPaymentMethod: function (createPspPaymentMethodRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto);
|
|
@@ -120,13 +121,19 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
getPaymentMethod: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('getPaymentMethod', 'code', code);
|
|
@@ -170,13 +178,19 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -206,9 +220,10 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
206
220
|
listPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
207
221
|
if (options === void 0) { options = {}; }
|
|
208
222
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
-
|
|
211
|
-
|
|
223
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
224
|
+
var _a;
|
|
225
|
+
return __generator(this, function (_b) {
|
|
226
|
+
switch (_b.label) {
|
|
212
227
|
case 0:
|
|
213
228
|
localVarPath = "/paymentservice/v1/payment-methods";
|
|
214
229
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -225,7 +240,7 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
225
240
|
case 1:
|
|
226
241
|
// authentication bearer required
|
|
227
242
|
// http bearer authentication required
|
|
228
|
-
|
|
243
|
+
_b.sent();
|
|
229
244
|
if (pageSize !== undefined) {
|
|
230
245
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
231
246
|
}
|
|
@@ -247,8 +262,11 @@ var PaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
247
262
|
if (filters !== undefined) {
|
|
248
263
|
localVarQueryParameter['filters'] = filters;
|
|
249
264
|
}
|
|
250
|
-
|
|
251
|
-
|
|
265
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
266
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
267
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
268
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
269
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
252
270
|
}
|
|
253
271
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
272
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -413,7 +431,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
413
431
|
*/
|
|
414
432
|
PaymentMethodsApi.prototype.createPaymentMethod = function (requestParameters, options) {
|
|
415
433
|
var _this = this;
|
|
416
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
434
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
417
435
|
};
|
|
418
436
|
/**
|
|
419
437
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -425,7 +443,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
425
443
|
*/
|
|
426
444
|
PaymentMethodsApi.prototype.getPaymentMethod = function (requestParameters, options) {
|
|
427
445
|
var _this = this;
|
|
428
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
446
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
429
447
|
};
|
|
430
448
|
/**
|
|
431
449
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -438,7 +456,7 @@ var PaymentMethodsApi = /** @class */ (function (_super) {
|
|
|
438
456
|
PaymentMethodsApi.prototype.listPaymentMethods = function (requestParameters, options) {
|
|
439
457
|
var _this = this;
|
|
440
458
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
441
|
-
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
459
|
+
return (0, exports.PaymentMethodsApiFp)(this.configuration).listPaymentMethods(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
442
460
|
};
|
|
443
461
|
return PaymentMethodsApi;
|
|
444
462
|
}(base_1.BaseAPI));
|
|
@@ -343,7 +343,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
343
343
|
* @throws {RequiredError}
|
|
344
344
|
* @memberof PaymentReceiptsApi
|
|
345
345
|
*/
|
|
346
|
-
createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReceiptResponseClass, any, {}>>;
|
|
346
|
+
createPaymentReceipt(requestParameters: PaymentReceiptsApiCreatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReceiptResponseClass, any, {}, any>>;
|
|
347
347
|
/**
|
|
348
348
|
* This will delete payment receipt. **Required Permissions** \"payment-management.payments.delete\"
|
|
349
349
|
* @summary Delete the payment receipt
|
|
@@ -352,7 +352,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
352
352
|
* @throws {RequiredError}
|
|
353
353
|
* @memberof PaymentReceiptsApi
|
|
354
354
|
*/
|
|
355
|
-
deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
355
|
+
deletePaymentReceipt(requestParameters: PaymentReceiptsApiDeletePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
356
356
|
/**
|
|
357
357
|
* This will get payment receipt. **Required Permissions** \"payment-management.payments.view\"
|
|
358
358
|
* @summary Retrieve the payment receipt
|
|
@@ -361,7 +361,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
361
361
|
* @throws {RequiredError}
|
|
362
362
|
* @memberof PaymentReceiptsApi
|
|
363
363
|
*/
|
|
364
|
-
getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReceiptResponseClass, any, {}>>;
|
|
364
|
+
getPaymentReceipt(requestParameters: PaymentReceiptsApiGetPaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReceiptResponseClass, any, {}, any>>;
|
|
365
365
|
/**
|
|
366
366
|
* Retrieves a list of paymentreceipts. **Required Permissions** \"payment-management.payments.view\"
|
|
367
367
|
* @summary List payment receipts
|
|
@@ -370,7 +370,7 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
370
370
|
* @throws {RequiredError}
|
|
371
371
|
* @memberof PaymentReceiptsApi
|
|
372
372
|
*/
|
|
373
|
-
listPaymentReceipts(requestParameters?: PaymentReceiptsApiListPaymentReceiptsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentReceiptsResponseClass, any, {}>>;
|
|
373
|
+
listPaymentReceipts(requestParameters?: PaymentReceiptsApiListPaymentReceiptsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentReceiptsResponseClass, any, {}, any>>;
|
|
374
374
|
/**
|
|
375
375
|
* This will update payment receipt. **Required Permissions** \"payment-management.payments.update\"
|
|
376
376
|
* @summary Update the payment receipt
|
|
@@ -379,5 +379,5 @@ export declare class PaymentReceiptsApi extends BaseAPI {
|
|
|
379
379
|
* @throws {RequiredError}
|
|
380
380
|
* @memberof PaymentReceiptsApi
|
|
381
381
|
*/
|
|
382
|
-
updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePaymentReceiptResponseClass, any, {}>>;
|
|
382
|
+
updatePaymentReceipt(requestParameters: PaymentReceiptsApiUpdatePaymentReceiptRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePaymentReceiptResponseClass, any, {}, any>>;
|
|
383
383
|
}
|
|
@@ -103,9 +103,10 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createPaymentReceipt: function (createPaymentReceiptRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createPaymentReceiptRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createPaymentReceipt', 'createPaymentReceiptRequestDto', createPaymentReceiptRequestDto);
|
|
@@ -120,13 +121,19 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
deletePaymentReceipt: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('deletePaymentReceipt', 'code', code);
|
|
@@ -170,13 +178,19 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,9 +215,10 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
201
215
|
getPaymentReceipt: function (code, expand, authorization, options) {
|
|
202
216
|
if (options === void 0) { options = {}; }
|
|
203
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
207
222
|
case 0:
|
|
208
223
|
// verify required parameter 'code' is not null or undefined
|
|
209
224
|
(0, common_1.assertParamExists)('getPaymentReceipt', 'code', code);
|
|
@@ -225,12 +240,15 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
225
240
|
case 1:
|
|
226
241
|
// authentication bearer required
|
|
227
242
|
// http bearer authentication required
|
|
228
|
-
|
|
243
|
+
_b.sent();
|
|
229
244
|
if (expand !== undefined) {
|
|
230
245
|
localVarQueryParameter['expand'] = expand;
|
|
231
246
|
}
|
|
232
|
-
|
|
233
|
-
|
|
247
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
248
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
249
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
250
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
234
252
|
}
|
|
235
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -260,9 +278,10 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
260
278
|
listPaymentReceipts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
261
279
|
if (options === void 0) { options = {}; }
|
|
262
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
263
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
264
|
-
|
|
265
|
-
|
|
281
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
282
|
+
var _a;
|
|
283
|
+
return __generator(this, function (_b) {
|
|
284
|
+
switch (_b.label) {
|
|
266
285
|
case 0:
|
|
267
286
|
localVarPath = "/paymentservice/v1/payment-receipts";
|
|
268
287
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -279,7 +298,7 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
279
298
|
case 1:
|
|
280
299
|
// authentication bearer required
|
|
281
300
|
// http bearer authentication required
|
|
282
|
-
|
|
301
|
+
_b.sent();
|
|
283
302
|
if (pageSize !== undefined) {
|
|
284
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
285
304
|
}
|
|
@@ -301,8 +320,11 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
301
320
|
if (filters !== undefined) {
|
|
302
321
|
localVarQueryParameter['filters'] = filters;
|
|
303
322
|
}
|
|
304
|
-
|
|
305
|
-
|
|
323
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
327
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
306
328
|
}
|
|
307
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
308
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -326,9 +348,10 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
326
348
|
updatePaymentReceipt: function (code, authorization, options) {
|
|
327
349
|
if (options === void 0) { options = {}; }
|
|
328
350
|
return __awaiter(_this, void 0, void 0, function () {
|
|
329
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
330
|
-
|
|
331
|
-
|
|
351
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
352
|
+
var _a;
|
|
353
|
+
return __generator(this, function (_b) {
|
|
354
|
+
switch (_b.label) {
|
|
332
355
|
case 0:
|
|
333
356
|
// verify required parameter 'code' is not null or undefined
|
|
334
357
|
(0, common_1.assertParamExists)('updatePaymentReceipt', 'code', code);
|
|
@@ -344,13 +367,19 @@ var PaymentReceiptsApiAxiosParamCreator = function (configuration) {
|
|
|
344
367
|
localVarQueryParameter = {};
|
|
345
368
|
// authentication bearer required
|
|
346
369
|
// http bearer authentication required
|
|
347
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
370
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
371
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
372
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
373
|
+
];
|
|
348
374
|
case 1:
|
|
349
375
|
// authentication bearer required
|
|
350
376
|
// http bearer authentication required
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
377
|
+
_b.sent();
|
|
378
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
379
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
380
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
381
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
382
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
354
383
|
}
|
|
355
384
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
385
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -581,7 +610,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
581
610
|
*/
|
|
582
611
|
PaymentReceiptsApi.prototype.createPaymentReceipt = function (requestParameters, options) {
|
|
583
612
|
var _this = this;
|
|
584
|
-
return (0, exports.PaymentReceiptsApiFp)(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).createPaymentReceipt(requestParameters.createPaymentReceiptRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
585
614
|
};
|
|
586
615
|
/**
|
|
587
616
|
* This will delete payment receipt. **Required Permissions** \"payment-management.payments.delete\"
|
|
@@ -593,7 +622,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
593
622
|
*/
|
|
594
623
|
PaymentReceiptsApi.prototype.deletePaymentReceipt = function (requestParameters, options) {
|
|
595
624
|
var _this = this;
|
|
596
|
-
return (0, exports.PaymentReceiptsApiFp)(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).deletePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
597
626
|
};
|
|
598
627
|
/**
|
|
599
628
|
* This will get payment receipt. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -605,7 +634,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
605
634
|
*/
|
|
606
635
|
PaymentReceiptsApi.prototype.getPaymentReceipt = function (requestParameters, options) {
|
|
607
636
|
var _this = this;
|
|
608
|
-
return (0, exports.PaymentReceiptsApiFp)(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
637
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).getPaymentReceipt(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
609
638
|
};
|
|
610
639
|
/**
|
|
611
640
|
* Retrieves a list of paymentreceipts. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -618,7 +647,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
618
647
|
PaymentReceiptsApi.prototype.listPaymentReceipts = function (requestParameters, options) {
|
|
619
648
|
var _this = this;
|
|
620
649
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
621
|
-
return (0, exports.PaymentReceiptsApiFp)(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
650
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).listPaymentReceipts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
622
651
|
};
|
|
623
652
|
/**
|
|
624
653
|
* This will update payment receipt. **Required Permissions** \"payment-management.payments.update\"
|
|
@@ -630,7 +659,7 @@ var PaymentReceiptsApi = /** @class */ (function (_super) {
|
|
|
630
659
|
*/
|
|
631
660
|
PaymentReceiptsApi.prototype.updatePaymentReceipt = function (requestParameters, options) {
|
|
632
661
|
var _this = this;
|
|
633
|
-
return (0, exports.PaymentReceiptsApiFp)(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
662
|
+
return (0, exports.PaymentReceiptsApiFp)(this.configuration).updatePaymentReceipt(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
634
663
|
};
|
|
635
664
|
return PaymentReceiptsApi;
|
|
636
665
|
}(base_1.BaseAPI));
|
|
@@ -298,7 +298,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
298
298
|
* @throws {RequiredError}
|
|
299
299
|
* @memberof PaymentRemindersApi
|
|
300
300
|
*/
|
|
301
|
-
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReminderResponseClass, any, {}>>;
|
|
301
|
+
createPaymentReminder(requestParameters: PaymentRemindersApiCreatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePaymentReminderResponseClass, any, {}, any>>;
|
|
302
302
|
/**
|
|
303
303
|
* This will deactivate the payment reminder **Required Permissions** \"payment-management.reminders.update\"
|
|
304
304
|
* @summary Deactivate payment reminder
|
|
@@ -307,7 +307,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
307
307
|
* @throws {RequiredError}
|
|
308
308
|
* @memberof PaymentRemindersApi
|
|
309
309
|
*/
|
|
310
|
-
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeactivatePaymentReminderResponseClass, any, {}>>;
|
|
310
|
+
deactivatePaymentReminder(requestParameters: PaymentRemindersApiDeactivatePaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeactivatePaymentReminderResponseClass, any, {}, any>>;
|
|
311
311
|
/**
|
|
312
312
|
* Retrieves the details of the payment reminder that was previously created. Supply the unique payment reminder code that was returned when you created it and Emil Api will return the corresponding payment reminder information. **Required Permissions** \"payment-management.reminders.view\"
|
|
313
313
|
* @summary Retrieve the payment reminder
|
|
@@ -316,7 +316,7 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
316
316
|
* @throws {RequiredError}
|
|
317
317
|
* @memberof PaymentRemindersApi
|
|
318
318
|
*/
|
|
319
|
-
getPaymentReminder(requestParameters: PaymentRemindersApiGetPaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReminderResponseClass, any, {}>>;
|
|
319
|
+
getPaymentReminder(requestParameters: PaymentRemindersApiGetPaymentReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentReminderResponseClass, any, {}, any>>;
|
|
320
320
|
/**
|
|
321
321
|
* Returns a list of payment reminders you have previously created. The payment reminders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.reminders.view\"
|
|
322
322
|
* @summary List payment reminders
|
|
@@ -325,5 +325,5 @@ export declare class PaymentRemindersApi extends BaseAPI {
|
|
|
325
325
|
* @throws {RequiredError}
|
|
326
326
|
* @memberof PaymentRemindersApi
|
|
327
327
|
*/
|
|
328
|
-
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentRemindersResponseClass, any, {}>>;
|
|
328
|
+
listPaymentReminders(requestParameters?: PaymentRemindersApiListPaymentRemindersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPaymentRemindersResponseClass, any, {}, any>>;
|
|
329
329
|
}
|