@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,22 @@
1
+ .gitignore
2
+ .npmignore
3
+ .openapi-generator-ignore
4
+ README.md
5
+ api.ts
6
+ api/payout-matching-service-api.ts
7
+ base.ts
8
+ common.ts
9
+ configuration.ts
10
+ git_push.sh
11
+ index.ts
12
+ models/any.ts
13
+ models/bank-order-payment-requests.ts
14
+ models/bank-transaction-summary.ts
15
+ models/candidate-row.ts
16
+ models/counterparty.ts
17
+ models/get-payment-request-candidates-response.ts
18
+ models/index.ts
19
+ models/payment-request-candidate.ts
20
+ models/status.ts
21
+ package.json
22
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 5.4.0
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Emil Financemanager SDK
2
+
3
+ This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated module can be used with client-based applications (i.e. React).
4
+
5
+ Language level
6
+ * ES5 - you must have a Promises/A+ library installed
7
+ * ES6
8
+
9
+ Module system
10
+ * CommonJS
11
+ * ES6 module system
12
+
13
+ Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)). For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/).
14
+
15
+ ## Consuming
16
+
17
+ Navigate to the folder of your consuming project and run one of the following commands:
18
+
19
+ ```
20
+ npm install @emilgroup/financemanager-sdk@1.0.1-beta.0 --save
21
+ ```
22
+ or
23
+ ```
24
+ yarn add @emilgroup/financemanager-sdk@1.0.1-beta.0
25
+ ```
26
+
27
+ And then you can import `PayoutMatchingServiceApi`.
28
+
29
+ ```ts
30
+ import { PayoutMatchingServiceApi } from '@emilgroup/financemanager-sdk'
31
+
32
+ const payoutMatchingServiceApi = new PayoutMatchingServiceApi();
33
+ ```
34
+
35
+ To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `PayoutMatchingServiceApi`:
36
+
37
+ ```ts
38
+ async function payoutMatchingServiceGetPaymentRequestCandidates(): Promise<Void> {
39
+ try {
40
+ const payoutMatchingServiceApi = new PayoutMatchingServiceApi();
41
+
42
+ await payoutMatchingServiceApi.authorize('username', 'password');
43
+
44
+ const { data: { items } } = await payoutMatchingServiceApi.payoutMatchingServiceGetPaymentRequestCandidates();
45
+
46
+ console.log(items);
47
+ } catch(error) {
48
+ // process error
49
+ }
50
+ }
51
+ ```
@@ -0,0 +1,232 @@
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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetPaymentRequestCandidatesResponse } from '../models';
25
+ // @ts-ignore
26
+ import { Status } from '../models';
27
+ /**
28
+ * PayoutMatchingServiceApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PayoutMatchingServiceApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
36
+ * @param {string} bankTransactionCode
37
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
38
+ * @param {number} [pageSize] Default 50.
39
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
40
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
41
+ * @param {Array<string>} [payoutKinds]
42
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ payoutMatchingServiceGetPaymentRequestCandidates: async (bankTransactionCode: string, pageToken?: string, pageSize?: number, search?: string, bankOrderCode?: string, payoutKinds?: Array<string>, withoutBankOrder?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'bankTransactionCode' is not null or undefined
48
+ assertParamExists('payoutMatchingServiceGetPaymentRequestCandidates', 'bankTransactionCode', bankTransactionCode)
49
+ const localVarPath = `/financemanager/v1/bank-transactions/{bankTransactionCode}/payment-request-candidates`
50
+ .replace(`{${"bankTransactionCode"}}`, encodeURIComponent(String(bankTransactionCode)));
51
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
52
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
53
+ let baseOptions;
54
+ let baseAccessToken;
55
+ if (configuration) {
56
+ baseOptions = configuration.baseOptions;
57
+ baseAccessToken = configuration.accessToken;
58
+ }
59
+
60
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
61
+ const localVarHeaderParameter = {} as any;
62
+ const localVarQueryParameter = {} as any;
63
+
64
+ // authentication Bearer required
65
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
66
+
67
+ if (pageToken !== undefined) {
68
+ localVarQueryParameter['pageToken'] = pageToken;
69
+ }
70
+
71
+ if (pageSize !== undefined) {
72
+ localVarQueryParameter['pageSize'] = pageSize;
73
+ }
74
+
75
+ if (search !== undefined) {
76
+ localVarQueryParameter['search'] = search;
77
+ }
78
+
79
+ if (bankOrderCode !== undefined) {
80
+ localVarQueryParameter['bankOrderCode'] = bankOrderCode;
81
+ }
82
+
83
+ if (payoutKinds) {
84
+ localVarQueryParameter['payoutKinds'] = payoutKinds;
85
+ }
86
+
87
+ if (withoutBankOrder !== undefined) {
88
+ localVarQueryParameter['withoutBankOrder'] = withoutBankOrder;
89
+ }
90
+
91
+
92
+
93
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
96
+
97
+ return {
98
+ url: toPathString(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ },
102
+ }
103
+ };
104
+
105
+ /**
106
+ * PayoutMatchingServiceApi - functional programming interface
107
+ * @export
108
+ */
109
+ export const PayoutMatchingServiceApiFp = function(configuration?: Configuration) {
110
+ const localVarAxiosParamCreator = PayoutMatchingServiceApiAxiosParamCreator(configuration)
111
+ return {
112
+ /**
113
+ *
114
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
115
+ * @param {string} bankTransactionCode
116
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
117
+ * @param {number} [pageSize] Default 50.
118
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
119
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
120
+ * @param {Array<string>} [payoutKinds]
121
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ async 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>> {
126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options);
127
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
128
+ },
129
+ }
130
+ };
131
+
132
+ /**
133
+ * PayoutMatchingServiceApi - factory interface
134
+ * @export
135
+ */
136
+ export const PayoutMatchingServiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
137
+ const localVarFp = PayoutMatchingServiceApiFp(configuration)
138
+ return {
139
+ /**
140
+ *
141
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
142
+ * @param {string} bankTransactionCode
143
+ * @param {string} [pageToken] From next_page_token; valid only with the same search and filters.
144
+ * @param {number} [pageSize] Default 50.
145
+ * @param {string} [search] Order, payment request or settlement number, or an exact amount such as 736,00.
146
+ * @param {string} [bankOrderCode] Pages the payment requests of this bank order (\&quot;Show more\&quot;).
147
+ * @param {Array<string>} [payoutKinds]
148
+ * @param {boolean} [withoutBankOrder] Only payment requests in no bank order.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode: string, pageToken?: string, pageSize?: number, search?: string, bankOrderCode?: string, payoutKinds?: Array<string>, withoutBankOrder?: boolean, options?: any): AxiosPromise<GetPaymentRequestCandidatesResponse> {
153
+ return localVarFp.payoutMatchingServiceGetPaymentRequestCandidates(bankTransactionCode, pageToken, pageSize, search, bankOrderCode, payoutKinds, withoutBankOrder, options).then((request) => request(axios, basePath));
154
+ },
155
+ };
156
+ };
157
+
158
+ /**
159
+ * Request parameters for payoutMatchingServiceGetPaymentRequestCandidates operation in PayoutMatchingServiceApi.
160
+ * @export
161
+ * @interface PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest
162
+ */
163
+ export interface PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest {
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
168
+ */
169
+ readonly bankTransactionCode: string
170
+
171
+ /**
172
+ * From next_page_token; valid only with the same search and filters.
173
+ * @type {string}
174
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
175
+ */
176
+ readonly pageToken?: string
177
+
178
+ /**
179
+ * Default 50.
180
+ * @type {number}
181
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
182
+ */
183
+ readonly pageSize?: number
184
+
185
+ /**
186
+ * Order, payment request or settlement number, or an exact amount such as 736,00.
187
+ * @type {string}
188
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
189
+ */
190
+ readonly search?: string
191
+
192
+ /**
193
+ * Pages the payment requests of this bank order (\&quot;Show more\&quot;).
194
+ * @type {string}
195
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
196
+ */
197
+ readonly bankOrderCode?: string
198
+
199
+ /**
200
+ *
201
+ * @type {Array<string>}
202
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
203
+ */
204
+ readonly payoutKinds?: Array<string>
205
+
206
+ /**
207
+ * Only payment requests in no bank order.
208
+ * @type {boolean}
209
+ * @memberof PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidates
210
+ */
211
+ readonly withoutBankOrder?: boolean
212
+ }
213
+
214
+ /**
215
+ * PayoutMatchingServiceApi - object-oriented interface
216
+ * @export
217
+ * @class PayoutMatchingServiceApi
218
+ * @extends {BaseAPI}
219
+ */
220
+ export class PayoutMatchingServiceApi extends BaseAPI {
221
+ /**
222
+ *
223
+ * @summary Open payment requests that can be linked to an outgoing bank transaction: suggestions, then a page of the others.
224
+ * @param {PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest} requestParameters Request parameters.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ * @memberof PayoutMatchingServiceApi
228
+ */
229
+ public payoutMatchingServiceGetPaymentRequestCandidates(requestParameters: PayoutMatchingServiceApiPayoutMatchingServiceGetPaymentRequestCandidatesRequest, options?: AxiosRequestConfig) {
230
+ return PayoutMatchingServiceApiFp(this.configuration).payoutMatchingServiceGetPaymentRequestCandidates(requestParameters.bankTransactionCode, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.bankOrderCode, requestParameters.payoutKinds, requestParameters.withoutBankOrder, options).then((request) => request(this.axios, this.basePath));
231
+ }
232
+ }
package/api.ts ADDED
@@ -0,0 +1,27 @@
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
+ import { Configuration } from './configuration';
17
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { PayoutMatchingServiceApi } from './api';
24
+
25
+
26
+ export * from './api/payout-matching-service-api';
27
+