@emilgroup/financemanager-sdk 1.0.1-beta.0

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 (52) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/payout-matching-service-api.ts +232 -0
  6. package/api.ts +27 -0
  7. package/base.ts +465 -0
  8. package/common.ts +199 -0
  9. package/configuration.ts +130 -0
  10. package/dist/api/payout-matching-service-api.d.ts +141 -0
  11. package/dist/api/payout-matching-service-api.js +251 -0
  12. package/dist/api.d.ts +12 -0
  13. package/dist/api.js +30 -0
  14. package/dist/base.d.ts +111 -0
  15. package/dist/base.js +487 -0
  16. package/dist/common.d.ts +91 -0
  17. package/dist/common.js +277 -0
  18. package/dist/configuration.d.ts +106 -0
  19. package/dist/configuration.js +54 -0
  20. package/dist/index.d.ts +15 -0
  21. package/dist/index.js +36 -0
  22. package/dist/models/any.d.ts +25 -0
  23. package/dist/models/any.js +15 -0
  24. package/dist/models/bank-order-payment-requests.d.ts +79 -0
  25. package/dist/models/bank-order-payment-requests.js +15 -0
  26. package/dist/models/bank-transaction-summary.d.ts +48 -0
  27. package/dist/models/bank-transaction-summary.js +15 -0
  28. package/dist/models/candidate-row.d.ts +32 -0
  29. package/dist/models/candidate-row.js +15 -0
  30. package/dist/models/counterparty.d.ts +30 -0
  31. package/dist/models/counterparty.js +15 -0
  32. package/dist/models/get-payment-request-candidates-response.d.ts +56 -0
  33. package/dist/models/get-payment-request-candidates-response.js +15 -0
  34. package/dist/models/index.d.ts +8 -0
  35. package/dist/models/index.js +24 -0
  36. package/dist/models/payment-request-candidate.d.ts +79 -0
  37. package/dist/models/payment-request-candidate.js +15 -0
  38. package/dist/models/status.d.ts +37 -0
  39. package/dist/models/status.js +15 -0
  40. package/git_push.sh +57 -0
  41. package/index.ts +19 -0
  42. package/models/any.ts +32 -0
  43. package/models/bank-order-payment-requests.ts +85 -0
  44. package/models/bank-transaction-summary.ts +54 -0
  45. package/models/candidate-row.ts +38 -0
  46. package/models/counterparty.ts +36 -0
  47. package/models/get-payment-request-candidates-response.ts +62 -0
  48. package/models/index.ts +8 -0
  49. package/models/payment-request-candidate.ts +85 -0
  50. package/models/status.ts +43 -0
  51. package/package.json +27 -0
  52. package/tsconfig.json +23 -0
@@ -0,0 +1,130 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Financemanager
5
+ * The EMIL Financemanager API description.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export interface ConfigurationParameters {
17
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
18
+ username?: string;
19
+ password?: string;
20
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
21
+ basePath?: string;
22
+ baseOptions?: any;
23
+ formDataCtor?: new () => any;
24
+ cookieAuth?: boolean;
25
+ account?: string;
26
+ }
27
+
28
+ export class Configuration {
29
+ /**
30
+ * parameter for apiKey security
31
+ * @param name security name
32
+ * @memberof Configuration
33
+ */
34
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
35
+ /**
36
+ * parameter for basic security
37
+ *
38
+ * @type {string}
39
+ * @memberof Configuration
40
+ */
41
+ username?: string;
42
+ /**
43
+ * parameter for basic security
44
+ *
45
+ * @type {string}
46
+ * @memberof Configuration
47
+ */
48
+ password?: string;
49
+ /**
50
+ * parameter for oauth2 security
51
+ * @param name security name
52
+ * @param scopes oauth2 scope
53
+ * @memberof Configuration
54
+ */
55
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
56
+ /**
57
+ * override base path
58
+ *
59
+ * @type {string}
60
+ * @memberof Configuration
61
+ */
62
+ basePath?: string;
63
+ /**
64
+ * base options for axios calls
65
+ *
66
+ * @type {any}
67
+ * @memberof Configuration
68
+ */
69
+ baseOptions?: any;
70
+ /**
71
+ * The FormData constructor that will be used to create multipart form data
72
+ * requests. You can inject this here so that execution environments that
73
+ * do not support the FormData class can still run the generated client.
74
+ *
75
+ * @type {new () => FormData}
76
+ */
77
+ formDataCtor?: new () => any;
78
+
79
+ /**
80
+ * Use a server session when authservice makes one; otherwise the token, as without this option.
81
+ * Set `account` too, so each SDK object keeps its own account.
82
+ *
83
+ * @type {boolean}
84
+ * @memberof Configuration
85
+ */
86
+ cookieAuth?: boolean;
87
+ /**
88
+ * The session account (Cognito sub) this app shows, so the SDK never takes another tab's account.
89
+ *
90
+ * @type {string}
91
+ * @memberof Configuration
92
+ */
93
+ account?: string;
94
+
95
+ constructor(param: ConfigurationParameters = {}) {
96
+ this.apiKey = param.apiKey;
97
+ this.username = param.username;
98
+ this.password = param.password;
99
+ this.accessToken = param.accessToken;
100
+ this.basePath = param.basePath;
101
+ this.baseOptions = param.baseOptions;
102
+ this.formDataCtor = param.formDataCtor;
103
+ this.cookieAuth = param.cookieAuth;
104
+ this.account = param.account;
105
+ }
106
+
107
+ /**
108
+ * Check if the given MIME is a JSON MIME.
109
+ * JSON MIME examples:
110
+ * application/json
111
+ * application/json; charset=UTF8
112
+ * APPLICATION/JSON
113
+ * application/vnd.company+json
114
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
115
+ * @return True if the given MIME is JSON, false otherwise.
116
+ */
117
+ public isJsonMime(mime: string): boolean {
118
+ const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
119
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
120
+ }
121
+
122
+ /**
123
+ * Returns "Bearer" token.
124
+ * @param token - access token.
125
+ * @return Bearer token.
126
+ */
127
+ public getBearerToken(token?: string): string {
128
+ return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
129
+ }
130
+ }
@@ -0,0 +1,141 @@
1
+ /**
2
+ * EMIL Financemanager
3
+ * The EMIL Financemanager API description.
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 { GetPaymentRequestCandidatesResponse } from '../models';
16
+ /**
17
+ * PayoutMatchingServiceApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const PayoutMatchingServiceApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
24
+ * @param {string} bankTransactionCode
25
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
26
+ * @param {number} [pageSize] Default 50.
27
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
28
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
29
+ * @param {Array<string>} [payoutKinds]
30
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ payoutMatchingServiceGetPaymentRequestCandidates: (bankTransactionCode: string, pageToken?: string, pageSize?: number, search?: string, bankOrderCode?: string, payoutKinds?: Array<string>, withoutBankOrder?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
+ };
36
+ /**
37
+ * PayoutMatchingServiceApi - functional programming interface
38
+ * @export
39
+ */
40
+ export declare const PayoutMatchingServiceApiFp: (configuration?: Configuration) => {
41
+ /**
42
+ *
43
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
44
+ * @param {string} bankTransactionCode
45
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
46
+ * @param {number} [pageSize] Default 50.
47
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
48
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
49
+ * @param {Array<string>} [payoutKinds]
50
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode: string, pageToken?: string, pageSize?: number, search?: string, bankOrderCode?: string, payoutKinds?: Array<string>, withoutBankOrder?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentRequestCandidatesResponse>>;
55
+ };
56
+ /**
57
+ * PayoutMatchingServiceApi - factory interface
58
+ * @export
59
+ */
60
+ export declare const PayoutMatchingServiceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
61
+ /**
62
+ *
63
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
64
+ * @param {string} bankTransactionCode
65
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
66
+ * @param {number} [pageSize] Default 50.
67
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
68
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
69
+ * @param {Array<string>} [payoutKinds]
70
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode: string, pageToken?: string, pageSize?: number, search?: string, bankOrderCode?: string, payoutKinds?: Array<string>, withoutBankOrder?: boolean, options?: any): AxiosPromise<GetPaymentRequestCandidatesResponse>;
75
+ };
76
+ /**
77
+ * Request parameters for payoutMatchingServiceGetPaymentRequestCandidates operation in PayoutMatchingServiceApi.
78
+ * @export
79
+ * @interface PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest
80
+ */
81
+ export interface PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
86
+ */
87
+ readonly bankTransactionCode: string;
88
+ /**
89
+ * From next_page_token; valid only with the same search and filters.
90
+ * @type {string}
91
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
92
+ */
93
+ readonly pageToken?: string;
94
+ /**
95
+ * Default 50.
96
+ * @type {number}
97
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
98
+ */
99
+ readonly pageSize?: number;
100
+ /**
101
+ * Order, payment request or settlement number, or an exact amount such as 736,00.
102
+ * @type {string}
103
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
104
+ */
105
+ readonly search?: string;
106
+ /**
107
+ * Pages the payment requests of this bank order (\&quot;Show more\&quot;).
108
+ * @type {string}
109
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
110
+ */
111
+ readonly bankOrderCode?: string;
112
+ /**
113
+ *
114
+ * @type {Array<string>}
115
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
116
+ */
117
+ readonly payoutKinds?: Array<string>;
118
+ /**
119
+ * Only payment requests in no bank order.
120
+ * @type {boolean}
121
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
122
+ */
123
+ readonly withoutBankOrder?: boolean;
124
+ }
125
+ /**
126
+ * PayoutMatchingServiceApi - object-oriented interface
127
+ * @export
128
+ * @class PayoutMatchingServiceApi
129
+ * @extends {BaseAPI}
130
+ */
131
+ export declare class PayoutMatchingServiceApi extends BaseAPI {
132
+ /**
133
+ *
134
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
135
+ * @param {PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest} requestParameters Request parameters.
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ * @memberof PayoutMatchingServiceApi
139
+ */
140
+ payoutMatchingServiceGetPaymentRequestCandidates(requestParameters: PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPaymentRequestCandidatesResponse, any, {}, any>>;
141
+ }
@@ -0,0 +1,251 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Financemanager
6
+ * The EMIL Financemanager API description.
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.PayoutMatchingServiceApi = exports.PayoutMatchingServiceApiFactory = exports.PayoutMatchingServiceApiFp = exports.PayoutMatchingServiceApiAxiosParamCreator = 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
+ * PayoutMatchingServiceApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var PayoutMatchingServiceApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
98
+ * @param {string} bankTransactionCode
99
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
100
+ * @param {number} [pageSize] Default 50.
101
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
102
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
103
+ * @param {Array<string>} [payoutKinds]
104
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ payoutMatchingServiceGetPaymentRequestCandidates: function (bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'bankTransactionCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('payoutMatchingServiceGetPaymentRequestCandidates', 'bankTransactionCode', bankTransactionCode);
117
+ localVarPath = "/financemanager/v1/bank-transactions/{bankTransactionCode}/payment-request-candidates"
118
+ .replace("{".concat("bankTransactionCode", "}"), encodeURIComponent(String(bankTransactionCode)));
119
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ baseAccessToken = configuration.accessToken;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ // authentication Bearer required
128
+ return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration)];
129
+ case 1:
130
+ // authentication Bearer required
131
+ _a.sent();
132
+ if (pageToken !== undefined) {
133
+ localVarQueryParameter['pageToken'] = pageToken;
134
+ }
135
+ if (pageSize !== undefined) {
136
+ localVarQueryParameter['pageSize'] = pageSize;
137
+ }
138
+ if (search !== undefined) {
139
+ localVarQueryParameter['search'] = search;
140
+ }
141
+ if (bankOrderCode !== undefined) {
142
+ localVarQueryParameter['bankOrderCode'] = bankOrderCode;
143
+ }
144
+ if (payoutKinds) {
145
+ localVarQueryParameter['payoutKinds'] = payoutKinds;
146
+ }
147
+ if (withoutBankOrder !== undefined) {
148
+ localVarQueryParameter['withoutBankOrder'] = withoutBankOrder;
149
+ }
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
153
+ return [2 /*return*/, {
154
+ url: (0, common_1.toPathString)(localVarUrlObj),
155
+ options: localVarRequestOptions,
156
+ }];
157
+ }
158
+ });
159
+ });
160
+ },
161
+ };
162
+ };
163
+ exports.PayoutMatchingServiceApiAxiosParamCreator = PayoutMatchingServiceApiAxiosParamCreator;
164
+ /**
165
+ * PayoutMatchingServiceApi - functional programming interface
166
+ * @export
167
+ */
168
+ var PayoutMatchingServiceApiFp = function (configuration) {
169
+ var localVarAxiosParamCreator = (0, exports.PayoutMatchingServiceApiAxiosParamCreator)(configuration);
170
+ return {
171
+ /**
172
+ *
173
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
174
+ * @param {string} bankTransactionCode
175
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
176
+ * @param {number} [pageSize] Default 50.
177
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
178
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
179
+ * @param {Array<string>} [payoutKinds]
180
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ payoutMatchingServiceGetPaymentRequestCandidates: function (bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options) {
185
+ return __awaiter(this, void 0, void 0, function () {
186
+ var localVarAxiosArgs;
187
+ return __generator(this, function (_a) {
188
+ switch (_a.label) {
189
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options)];
190
+ case 1:
191
+ localVarAxiosArgs = _a.sent();
192
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
193
+ }
194
+ });
195
+ });
196
+ },
197
+ };
198
+ };
199
+ exports.PayoutMatchingServiceApiFp = PayoutMatchingServiceApiFp;
200
+ /**
201
+ * PayoutMatchingServiceApi - factory interface
202
+ * @export
203
+ */
204
+ var PayoutMatchingServiceApiFactory = function (configuration, basePath, axios) {
205
+ var localVarFp = (0, exports.PayoutMatchingServiceApiFp)(configuration);
206
+ return {
207
+ /**
208
+ *
209
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
210
+ * @param {string} bankTransactionCode
211
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
212
+ * @param {number} [pageSize] Default 50.
213
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
214
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
215
+ * @param {Array<string>} [payoutKinds]
216
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ payoutMatchingServiceGetPaymentRequestCandidates: function (bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options) {
221
+ return localVarFp.payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options).then(function (request) { return request(axios, basePath); });
222
+ },
223
+ };
224
+ };
225
+ exports.PayoutMatchingServiceApiFactory = PayoutMatchingServiceApiFactory;
226
+ /**
227
+ * PayoutMatchingServiceApi - object-oriented interface
228
+ * @export
229
+ * @class PayoutMatchingServiceApi
230
+ * @extends {BaseAPI}
231
+ */
232
+ var PayoutMatchingServiceApi = /** @class */ (function (_super) {
233
+ __extends(PayoutMatchingServiceApi, _super);
234
+ function PayoutMatchingServiceApi() {
235
+ return _super !== null && _super.apply(this, arguments) || this;
236
+ }
237
+ /**
238
+ *
239
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
240
+ * @param {PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest} requestParameters Request parameters.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ * @memberof PayoutMatchingServiceApi
244
+ */
245
+ PayoutMatchingServiceApi.prototype.payoutMatchingServiceGetPaymentRequestCandidates = function (requestParameters, options) {
246
+ var _this = this;
247
+ return (0, exports.PayoutMatchingServiceApiFp)(this.configuration).payoutMatchingServiceGetPaymentRequestCandidates(requestParameters.bankTransactionCode, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.bankOrderCode, requestParameters.payoutKinds, requestParameters.withoutBankOrder, options).then(function (request) { return request(_this.axios, _this.basePath); });
248
+ };
249
+ return PayoutMatchingServiceApi;
250
+ }(base_1.BaseAPI));
251
+ exports.PayoutMatchingServiceApi = PayoutMatchingServiceApi;
package/dist/api.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ /**
2
+ * EMIL Financemanager
3
+ * The EMIL Financemanager API description.
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
+ export * from './api/payout-matching-service-api';
package/dist/api.js ADDED
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Financemanager
6
+ * The EMIL Financemanager API description.
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 __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/payout-matching-service-api"), exports);
package/dist/base.d.ts ADDED
@@ -0,0 +1,111 @@
1
+ /**
2
+ * EMIL Financemanager
3
+ * The EMIL Financemanager API description.
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 { Configuration } from "./configuration";
13
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ export interface SessionClass {
26
+ sub: string;
27
+ username?: string;
28
+ email?: string;
29
+ tenantSlug?: string;
30
+ permissions?: string;
31
+ expiresAt?: number;
32
+ }
33
+ export interface LoginClass {
34
+ accessToken: string;
35
+ permissions: string;
36
+ authMode?: string;
37
+ session?: SessionClass;
38
+ }
39
+ export interface SwitchWorkspaceRequest {
40
+ username: string;
41
+ targetWorkspace: string;
42
+ }
43
+ export interface SwitchWorkspaceResponseClass {
44
+ accessToken: string;
45
+ permissions: string;
46
+ authMode?: string;
47
+ session?: SessionClass;
48
+ }
49
+ export declare enum Environment {
50
+ Production = "https://apiv2.emil.de",
51
+ Test = "https://apiv2-test.emil.de",
52
+ Staging = "https://apiv2-staging.emil.de",
53
+ Development = "https://apiv2-dev.emil.de",
54
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
55
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
56
+ }
57
+ export declare function resetRetry(): void;
58
+ /**
59
+ *
60
+ * @export
61
+ * @interface RequestArgs
62
+ */
63
+ export interface RequestArgs {
64
+ url: string;
65
+ options: AxiosRequestConfig;
66
+ }
67
+ /**
68
+ *
69
+ * @export
70
+ * @class BaseAPI
71
+ */
72
+ export declare class BaseAPI {
73
+ protected basePath: string;
74
+ protected axios: AxiosInstance;
75
+ protected configuration: Configuration | undefined;
76
+ private tokenData?;
77
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
78
+ private sessionAccount;
79
+ private authBasePath;
80
+ private usesSession;
81
+ private useSessionAuth;
82
+ private useHeaderAuth;
83
+ private applyTokenReply;
84
+ private sessionHeaders;
85
+ private withCurrentAuth;
86
+ private canRetryWithToken;
87
+ private canResend;
88
+ private switchToToken;
89
+ private retryWithToken;
90
+ selectEnvironment(env: Environment): void;
91
+ selectBasePath(path: string): void;
92
+ getPermissions(): Array<string>;
93
+ authorize(username: string, password: string, targetWorkspace?: string): Promise<void>;
94
+ switchWorkspace(targetWorkspace: string): Promise<void>;
95
+ refreshTokenInternal(): Promise<LoginClass>;
96
+ private storeTokenData;
97
+ loadTokenData(): void;
98
+ cleanTokenData(): void;
99
+ private attachInterceptor;
100
+ }
101
+ /**
102
+ *
103
+ * @export
104
+ * @class RequiredError
105
+ * @extends {Error}
106
+ */
107
+ export declare class RequiredError extends Error {
108
+ field: string;
109
+ name: "RequiredError";
110
+ constructor(field: string, msg?: string);
111
+ }