@emilgroup/payment-sdk 1.22.1-beta.84 → 1.22.1-beta.86

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.
Files changed (34) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/bank-order-texts-api.ts +265 -0
  4. package/api/payment-receipts-api.ts +120 -12
  5. package/api.ts +2 -0
  6. package/dist/api/bank-order-texts-api.d.ts +144 -0
  7. package/dist/api/bank-order-texts-api.js +325 -0
  8. package/dist/api/payment-receipts-api.d.ts +68 -12
  9. package/dist/api/payment-receipts-api.js +109 -10
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/bank-order-texts-class.d.ts +42 -0
  13. package/dist/models/bank-order-texts-class.js +15 -0
  14. package/dist/models/cancel-payment-receipt-response-class.d.ts +25 -0
  15. package/dist/models/cancel-payment-receipt-response-class.js +15 -0
  16. package/dist/models/get-bank-order-texts-response-class.d.ts +25 -0
  17. package/dist/models/get-bank-order-texts-response-class.js +15 -0
  18. package/dist/models/index.d.ts +5 -0
  19. package/dist/models/index.js +5 -0
  20. package/dist/models/payment-receipt-class.d.ts +12 -0
  21. package/dist/models/payment-receipt-entity.d.ts +18 -0
  22. package/dist/models/update-bank-order-texts-request-dto.d.ts +32 -0
  23. package/dist/models/update-bank-order-texts-request-dto.js +15 -0
  24. package/dist/models/update-bank-order-texts-response-class.d.ts +25 -0
  25. package/dist/models/update-bank-order-texts-response-class.js +15 -0
  26. package/models/bank-order-texts-class.ts +48 -0
  27. package/models/cancel-payment-receipt-response-class.ts +31 -0
  28. package/models/get-bank-order-texts-response-class.ts +31 -0
  29. package/models/index.ts +5 -0
  30. package/models/payment-receipt-class.ts +12 -0
  31. package/models/payment-receipt-entity.ts +18 -0
  32. package/models/update-bank-order-texts-request-dto.ts +36 -0
  33. package/models/update-bank-order-texts-response-class.ts +31 -0
  34. package/package.json +1 -1
@@ -0,0 +1,144 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetBankOrderTextsResponseClass } from '../models';
16
+ import { UpdateBankOrderTextsRequestDto } from '../models';
17
+ import { UpdateBankOrderTextsResponseClass } from '../models';
18
+ /**
19
+ * BankOrderTextsApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const BankOrderTextsApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
25
+ * @summary Retrieve the bank order texts
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ getBankOrderTexts: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
33
+ * @summary Save the bank order texts
34
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
35
+ * @param {string} [authorization] Bearer Token
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ updateBankOrderTexts: (updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ };
41
+ /**
42
+ * BankOrderTextsApi - functional programming interface
43
+ * @export
44
+ */
45
+ export declare const BankOrderTextsApiFp: (configuration?: Configuration) => {
46
+ /**
47
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
48
+ * @summary Retrieve the bank order texts
49
+ * @param {string} [authorization] Bearer Token
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ getBankOrderTexts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderTextsResponseClass>>;
54
+ /**
55
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
56
+ * @summary Save the bank order texts
57
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
58
+ * @param {string} [authorization] Bearer Token
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderTextsResponseClass>>;
63
+ };
64
+ /**
65
+ * BankOrderTextsApi - factory interface
66
+ * @export
67
+ */
68
+ export declare const BankOrderTextsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
69
+ /**
70
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
71
+ * @summary Retrieve the bank order texts
72
+ * @param {string} [authorization] Bearer Token
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ getBankOrderTexts(authorization?: string, options?: any): AxiosPromise<GetBankOrderTextsResponseClass>;
77
+ /**
78
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
79
+ * @summary Save the bank order texts
80
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
81
+ * @param {string} [authorization] Bearer Token
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderTextsResponseClass>;
86
+ };
87
+ /**
88
+ * Request parameters for getBankOrderTexts operation in BankOrderTextsApi.
89
+ * @export
90
+ * @interface BankOrderTextsApiGetBankOrderTextsRequest
91
+ */
92
+ export interface BankOrderTextsApiGetBankOrderTextsRequest {
93
+ /**
94
+ * Bearer Token
95
+ * @type {string}
96
+ * @memberof BankOrderTextsApiGetBankOrderTexts
97
+ */
98
+ readonly authorization?: string;
99
+ }
100
+ /**
101
+ * Request parameters for updateBankOrderTexts operation in BankOrderTextsApi.
102
+ * @export
103
+ * @interface BankOrderTextsApiUpdateBankOrderTextsRequest
104
+ */
105
+ export interface BankOrderTextsApiUpdateBankOrderTextsRequest {
106
+ /**
107
+ *
108
+ * @type {UpdateBankOrderTextsRequestDto}
109
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
110
+ */
111
+ readonly updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto;
112
+ /**
113
+ * Bearer Token
114
+ * @type {string}
115
+ * @memberof BankOrderTextsApiUpdateBankOrderTexts
116
+ */
117
+ readonly authorization?: string;
118
+ }
119
+ /**
120
+ * BankOrderTextsApi - object-oriented interface
121
+ * @export
122
+ * @class BankOrderTextsApi
123
+ * @extends {BaseAPI}
124
+ */
125
+ export declare class BankOrderTextsApi extends BaseAPI {
126
+ /**
127
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
128
+ * @summary Retrieve the bank order texts
129
+ * @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ * @memberof BankOrderTextsApi
133
+ */
134
+ getBankOrderTexts(requestParameters?: BankOrderTextsApiGetBankOrderTextsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderTextsResponseClass, any, {}, any>>;
135
+ /**
136
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
137
+ * @summary Save the bank order texts
138
+ * @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ * @memberof BankOrderTextsApi
142
+ */
143
+ updateBankOrderTexts(requestParameters: BankOrderTextsApiUpdateBankOrderTextsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderTextsResponseClass, any, {}, any>>;
144
+ }
@@ -0,0 +1,325 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.BankOrderTextsApi = exports.BankOrderTextsApiFactory = exports.BankOrderTextsApiFp = exports.BankOrderTextsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * BankOrderTextsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var BankOrderTextsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
97
+ * @summary Retrieve the bank order texts
98
+ * @param {string} [authorization] Bearer Token
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getBankOrderTexts: function (authorization, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
106
+ var _a;
107
+ return __generator(this, function (_b) {
108
+ switch (_b.label) {
109
+ case 0:
110
+ localVarPath = "/paymentservice/v1/bank-order-texts";
111
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
112
+ if (configuration) {
113
+ baseOptions = configuration.baseOptions;
114
+ baseAccessToken = configuration.accessToken;
115
+ }
116
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
117
+ localVarHeaderParameter = {};
118
+ localVarQueryParameter = {};
119
+ // authentication bearer required
120
+ // http bearer authentication required
121
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
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
+ ];
125
+ case 1:
126
+ // authentication bearer required
127
+ // http bearer authentication required
128
+ _b.sent();
129
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
130
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
131
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
132
+ if (authorizationValue || authorizationKeepEmpty) {
133
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
+ }
135
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
+ return [2 /*return*/, {
139
+ url: (0, common_1.toPathString)(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ }];
142
+ }
143
+ });
144
+ });
145
+ },
146
+ /**
147
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
148
+ * @summary Save the bank order texts
149
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
150
+ * @param {string} [authorization] Bearer Token
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
155
+ if (options === void 0) { options = {}; }
156
+ return __awaiter(_this, void 0, void 0, function () {
157
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
158
+ var _a;
159
+ return __generator(this, function (_b) {
160
+ switch (_b.label) {
161
+ case 0:
162
+ // verify required parameter 'updateBankOrderTextsRequestDto' is not null or undefined
163
+ (0, common_1.assertParamExists)('updateBankOrderTexts', 'updateBankOrderTextsRequestDto', updateBankOrderTextsRequestDto);
164
+ localVarPath = "/paymentservice/v1/bank-order-texts";
165
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ baseAccessToken = configuration.accessToken;
169
+ }
170
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
171
+ localVarHeaderParameter = {};
172
+ localVarQueryParameter = {};
173
+ // authentication bearer required
174
+ // http bearer authentication required
175
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
176
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
177
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
178
+ ];
179
+ case 1:
180
+ // authentication bearer required
181
+ // http bearer authentication required
182
+ _b.sent();
183
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
184
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
185
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
186
+ if (authorizationValue || authorizationKeepEmpty) {
187
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
188
+ }
189
+ localVarHeaderParameter['Content-Type'] = 'application/json';
190
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
193
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderTextsRequestDto, localVarRequestOptions, configuration);
194
+ return [2 /*return*/, {
195
+ url: (0, common_1.toPathString)(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ }];
198
+ }
199
+ });
200
+ });
201
+ },
202
+ };
203
+ };
204
+ exports.BankOrderTextsApiAxiosParamCreator = BankOrderTextsApiAxiosParamCreator;
205
+ /**
206
+ * BankOrderTextsApi - functional programming interface
207
+ * @export
208
+ */
209
+ var BankOrderTextsApiFp = function (configuration) {
210
+ var localVarAxiosParamCreator = (0, exports.BankOrderTextsApiAxiosParamCreator)(configuration);
211
+ return {
212
+ /**
213
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
214
+ * @summary Retrieve the bank order texts
215
+ * @param {string} [authorization] Bearer Token
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ getBankOrderTexts: function (authorization, options) {
220
+ return __awaiter(this, void 0, void 0, function () {
221
+ var localVarAxiosArgs;
222
+ return __generator(this, function (_a) {
223
+ switch (_a.label) {
224
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrderTexts(authorization, options)];
225
+ case 1:
226
+ localVarAxiosArgs = _a.sent();
227
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
228
+ }
229
+ });
230
+ });
231
+ },
232
+ /**
233
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
234
+ * @summary Save the bank order texts
235
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
236
+ * @param {string} [authorization] Bearer Token
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
241
+ return __awaiter(this, void 0, void 0, function () {
242
+ var localVarAxiosArgs;
243
+ return __generator(this, function (_a) {
244
+ switch (_a.label) {
245
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options)];
246
+ case 1:
247
+ localVarAxiosArgs = _a.sent();
248
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
249
+ }
250
+ });
251
+ });
252
+ },
253
+ };
254
+ };
255
+ exports.BankOrderTextsApiFp = BankOrderTextsApiFp;
256
+ /**
257
+ * BankOrderTextsApi - factory interface
258
+ * @export
259
+ */
260
+ var BankOrderTextsApiFactory = function (configuration, basePath, axios) {
261
+ var localVarFp = (0, exports.BankOrderTextsApiFp)(configuration);
262
+ return {
263
+ /**
264
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
265
+ * @summary Retrieve the bank order texts
266
+ * @param {string} [authorization] Bearer Token
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ */
270
+ getBankOrderTexts: function (authorization, options) {
271
+ return localVarFp.getBankOrderTexts(authorization, options).then(function (request) { return request(axios, basePath); });
272
+ },
273
+ /**
274
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
275
+ * @summary Save the bank order texts
276
+ * @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
277
+ * @param {string} [authorization] Bearer Token
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ updateBankOrderTexts: function (updateBankOrderTextsRequestDto, authorization, options) {
282
+ return localVarFp.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
283
+ },
284
+ };
285
+ };
286
+ exports.BankOrderTextsApiFactory = BankOrderTextsApiFactory;
287
+ /**
288
+ * BankOrderTextsApi - object-oriented interface
289
+ * @export
290
+ * @class BankOrderTextsApi
291
+ * @extends {BaseAPI}
292
+ */
293
+ var BankOrderTextsApi = /** @class */ (function (_super) {
294
+ __extends(BankOrderTextsApi, _super);
295
+ function BankOrderTextsApi() {
296
+ return _super !== null && _super.apply(this, arguments) || this;
297
+ }
298
+ /**
299
+ * Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
300
+ * @summary Retrieve the bank order texts
301
+ * @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ * @memberof BankOrderTextsApi
305
+ */
306
+ BankOrderTextsApi.prototype.getBankOrderTexts = function (requestParameters, options) {
307
+ var _this = this;
308
+ if (requestParameters === void 0) { requestParameters = {}; }
309
+ return (0, exports.BankOrderTextsApiFp)(this.configuration).getBankOrderTexts(requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
310
+ };
311
+ /**
312
+ * Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
313
+ * @summary Save the bank order texts
314
+ * @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ * @memberof BankOrderTextsApi
318
+ */
319
+ BankOrderTextsApi.prototype.updateBankOrderTexts = function (requestParameters, options) {
320
+ var _this = this;
321
+ return (0, exports.BankOrderTextsApiFp)(this.configuration).updateBankOrderTexts(requestParameters.updateBankOrderTextsRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
322
+ };
323
+ return BankOrderTextsApi;
324
+ }(base_1.BaseAPI));
325
+ exports.BankOrderTextsApi = BankOrderTextsApi;