@emilgroup/commission-sdk 1.0.0-beta.9 → 1.0.2

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 (156) hide show
  1. package/README.md +1 -51
  2. package/index.js +99 -0
  3. package/package.json +8 -21
  4. package/scripts/deploy.js +81 -0
  5. package/.openapi-generator/FILES +0 -56
  6. package/.openapi-generator/VERSION +0 -1
  7. package/.openapi-generator-ignore +0 -23
  8. package/api/commission-agreement-products-api.ts +0 -651
  9. package/api/commission-agreement-versions-api.ts +0 -573
  10. package/api/commission-agreements-api.ts +0 -680
  11. package/api/commission-recipients-api.ts +0 -693
  12. package/api/commissions-api.ts +0 -693
  13. package/api/default-api.ts +0 -124
  14. package/api.ts +0 -37
  15. package/base.ts +0 -331
  16. package/common.ts +0 -198
  17. package/configuration.ts +0 -110
  18. package/dist/api/commission-agreement-products-api.d.ts +0 -366
  19. package/dist/api/commission-agreement-products-api.js +0 -626
  20. package/dist/api/commission-agreement-versions-api.d.ts +0 -327
  21. package/dist/api/commission-agreement-versions-api.js +0 -545
  22. package/dist/api/commission-agreements-api.d.ts +0 -384
  23. package/dist/api/commission-agreements-api.js +0 -638
  24. package/dist/api/commission-recipients-api.d.ts +0 -393
  25. package/dist/api/commission-recipients-api.js +0 -644
  26. package/dist/api/commissions-api.d.ts +0 -393
  27. package/dist/api/commissions-api.js +0 -644
  28. package/dist/api/default-api.d.ts +0 -70
  29. package/dist/api/default-api.js +0 -200
  30. package/dist/api.d.ts +0 -17
  31. package/dist/api.js +0 -35
  32. package/dist/base.d.ts +0 -86
  33. package/dist/base.js +0 -367
  34. package/dist/common.d.ts +0 -91
  35. package/dist/common.js +0 -276
  36. package/dist/configuration.d.ts +0 -89
  37. package/dist/configuration.js +0 -52
  38. package/dist/index.d.ts +0 -15
  39. package/dist/index.js +0 -36
  40. package/dist/models/commission-agreement-class.d.ts +0 -89
  41. package/dist/models/commission-agreement-class.js +0 -25
  42. package/dist/models/commission-agreement-product-class.d.ts +0 -78
  43. package/dist/models/commission-agreement-product-class.js +0 -20
  44. package/dist/models/commission-agreement-version-class.d.ts +0 -79
  45. package/dist/models/commission-agreement-version-class.js +0 -15
  46. package/dist/models/commission-class.d.ts +0 -103
  47. package/dist/models/commission-class.js +0 -15
  48. package/dist/models/commission-item-class.d.ts +0 -84
  49. package/dist/models/commission-item-class.js +0 -21
  50. package/dist/models/commission-recipient-class.d.ts +0 -90
  51. package/dist/models/commission-recipient-class.js +0 -20
  52. package/dist/models/create-commission-agreement-product-request-dto.d.ts +0 -30
  53. package/dist/models/create-commission-agreement-product-request-dto.js +0 -15
  54. package/dist/models/create-commission-agreement-product-response-class.d.ts +0 -25
  55. package/dist/models/create-commission-agreement-product-response-class.js +0 -15
  56. package/dist/models/create-commission-agreement-request-dto.d.ts +0 -71
  57. package/dist/models/create-commission-agreement-request-dto.js +0 -25
  58. package/dist/models/create-commission-agreement-response-class.d.ts +0 -25
  59. package/dist/models/create-commission-agreement-response-class.js +0 -15
  60. package/dist/models/create-commission-agreement-version-request-dto.d.ts +0 -42
  61. package/dist/models/create-commission-agreement-version-request-dto.js +0 -15
  62. package/dist/models/create-commission-agreement-version-response-class.d.ts +0 -25
  63. package/dist/models/create-commission-agreement-version-response-class.js +0 -15
  64. package/dist/models/create-commission-item-request-dto.d.ts +0 -48
  65. package/dist/models/create-commission-item-request-dto.js +0 -21
  66. package/dist/models/create-commission-recipient-request-dto.d.ts +0 -36
  67. package/dist/models/create-commission-recipient-request-dto.js +0 -15
  68. package/dist/models/create-commission-recipient-response-class.d.ts +0 -25
  69. package/dist/models/create-commission-recipient-response-class.js +0 -15
  70. package/dist/models/create-commission-request-dto.d.ts +0 -55
  71. package/dist/models/create-commission-request-dto.js +0 -15
  72. package/dist/models/create-commission-response-class.d.ts +0 -25
  73. package/dist/models/create-commission-response-class.js +0 -15
  74. package/dist/models/get-commission-agreement-product-response-class.d.ts +0 -25
  75. package/dist/models/get-commission-agreement-product-response-class.js +0 -15
  76. package/dist/models/get-commission-agreement-response-class.d.ts +0 -25
  77. package/dist/models/get-commission-agreement-response-class.js +0 -15
  78. package/dist/models/get-commission-agreement-version-response-class.d.ts +0 -25
  79. package/dist/models/get-commission-agreement-version-response-class.js +0 -15
  80. package/dist/models/get-commission-recipient-response-class.d.ts +0 -25
  81. package/dist/models/get-commission-recipient-response-class.js +0 -15
  82. package/dist/models/get-commission-response-class.d.ts +0 -25
  83. package/dist/models/get-commission-response-class.js +0 -15
  84. package/dist/models/index.d.ts +0 -37
  85. package/dist/models/index.js +0 -53
  86. package/dist/models/inline-response200.d.ts +0 -54
  87. package/dist/models/inline-response200.js +0 -15
  88. package/dist/models/inline-response503.d.ts +0 -54
  89. package/dist/models/inline-response503.js +0 -15
  90. package/dist/models/list-commission-agreement-products-response-class.d.ts +0 -43
  91. package/dist/models/list-commission-agreement-products-response-class.js +0 -15
  92. package/dist/models/list-commission-agreement-versions-response-class.d.ts +0 -43
  93. package/dist/models/list-commission-agreement-versions-response-class.js +0 -15
  94. package/dist/models/list-commission-agreements-response-class.d.ts +0 -43
  95. package/dist/models/list-commission-agreements-response-class.js +0 -15
  96. package/dist/models/list-commission-recipients-response-class.d.ts +0 -43
  97. package/dist/models/list-commission-recipients-response-class.js +0 -15
  98. package/dist/models/list-commissions-response-class.d.ts +0 -43
  99. package/dist/models/list-commissions-response-class.js +0 -15
  100. package/dist/models/update-commission-agreement-product-request-dto.d.ts +0 -41
  101. package/dist/models/update-commission-agreement-product-request-dto.js +0 -20
  102. package/dist/models/update-commission-agreement-product-response-class.d.ts +0 -25
  103. package/dist/models/update-commission-agreement-product-response-class.js +0 -15
  104. package/dist/models/update-commission-agreement-request-dto.d.ts +0 -48
  105. package/dist/models/update-commission-agreement-request-dto.js +0 -21
  106. package/dist/models/update-commission-agreement-response-class.d.ts +0 -25
  107. package/dist/models/update-commission-agreement-response-class.js +0 -15
  108. package/dist/models/update-commission-recipient-request-dto.d.ts +0 -42
  109. package/dist/models/update-commission-recipient-request-dto.js +0 -15
  110. package/dist/models/update-commission-recipient-response-class.d.ts +0 -25
  111. package/dist/models/update-commission-recipient-response-class.js +0 -15
  112. package/dist/models/update-commission-request-dto.d.ts +0 -53
  113. package/dist/models/update-commission-request-dto.js +0 -20
  114. package/dist/models/update-commission-response-class.d.ts +0 -25
  115. package/dist/models/update-commission-response-class.js +0 -15
  116. package/git_push.sh +0 -57
  117. package/index.ts +0 -19
  118. package/models/commission-agreement-class.ts +0 -99
  119. package/models/commission-agreement-product-class.ts +0 -87
  120. package/models/commission-agreement-version-class.ts +0 -85
  121. package/models/commission-class.ts +0 -109
  122. package/models/commission-item-class.ts +0 -93
  123. package/models/commission-recipient-class.ts +0 -99
  124. package/models/create-commission-agreement-product-request-dto.ts +0 -36
  125. package/models/create-commission-agreement-product-response-class.ts +0 -31
  126. package/models/create-commission-agreement-request-dto.ts +0 -81
  127. package/models/create-commission-agreement-response-class.ts +0 -31
  128. package/models/create-commission-agreement-version-request-dto.ts +0 -48
  129. package/models/create-commission-agreement-version-response-class.ts +0 -31
  130. package/models/create-commission-item-request-dto.ts +0 -57
  131. package/models/create-commission-recipient-request-dto.ts +0 -42
  132. package/models/create-commission-recipient-response-class.ts +0 -31
  133. package/models/create-commission-request-dto.ts +0 -61
  134. package/models/create-commission-response-class.ts +0 -31
  135. package/models/get-commission-agreement-product-response-class.ts +0 -31
  136. package/models/get-commission-agreement-response-class.ts +0 -31
  137. package/models/get-commission-agreement-version-response-class.ts +0 -31
  138. package/models/get-commission-recipient-response-class.ts +0 -31
  139. package/models/get-commission-response-class.ts +0 -31
  140. package/models/index.ts +0 -37
  141. package/models/inline-response200.ts +0 -48
  142. package/models/inline-response503.ts +0 -48
  143. package/models/list-commission-agreement-products-response-class.ts +0 -49
  144. package/models/list-commission-agreement-versions-response-class.ts +0 -49
  145. package/models/list-commission-agreements-response-class.ts +0 -49
  146. package/models/list-commission-recipients-response-class.ts +0 -49
  147. package/models/list-commissions-response-class.ts +0 -49
  148. package/models/update-commission-agreement-product-request-dto.ts +0 -50
  149. package/models/update-commission-agreement-product-response-class.ts +0 -31
  150. package/models/update-commission-agreement-request-dto.ts +0 -57
  151. package/models/update-commission-agreement-response-class.ts +0 -31
  152. package/models/update-commission-recipient-request-dto.ts +0 -48
  153. package/models/update-commission-recipient-response-class.ts +0 -31
  154. package/models/update-commission-request-dto.ts +0 -62
  155. package/models/update-commission-response-class.ts +0 -31
  156. package/tsconfig.json +0 -23
@@ -1,573 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL CommissionService
5
- * The EMIL CommissionService 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 { CreateCommissionAgreementVersionRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateCommissionAgreementVersionResponseClass } from '../models';
27
- // @ts-ignore
28
- import { GetCommissionAgreementVersionResponseClass } from '../models';
29
- // @ts-ignore
30
- import { ListCommissionAgreementVersionsResponseClass } from '../models';
31
- /**
32
- * CommissionAgreementVersionsApi - axios parameter creator
33
- * @export
34
- */
35
- export const CommissionAgreementVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
36
- return {
37
- /**
38
- * This will create commission agreement version.
39
- * @summary Create the commission agreement version
40
- * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
41
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- createCommissionAgreementVersion: async (createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'createCommissionAgreementVersionRequestDto' is not null or undefined
47
- assertParamExists('createCommissionAgreementVersion', 'createCommissionAgreementVersionRequestDto', createCommissionAgreementVersionRequestDto)
48
- const localVarPath = `/commissionservice/v1/agreement-versions`;
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
- let baseOptions;
52
- let baseAccessToken;
53
- if (configuration) {
54
- baseOptions = configuration.baseOptions;
55
- baseAccessToken = configuration.accessToken;
56
- }
57
-
58
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
- const localVarHeaderParameter = {} as any;
60
- const localVarQueryParameter = {} as any;
61
-
62
- // authentication bearer required
63
- // http bearer authentication required
64
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
-
66
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
- }
69
-
70
-
71
-
72
- localVarHeaderParameter['Content-Type'] = 'application/json';
73
-
74
- setSearchParams(localVarUrlObj, localVarQueryParameter);
75
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
- localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementVersionRequestDto, localVarRequestOptions, configuration)
78
-
79
- return {
80
- url: toPathString(localVarUrlObj),
81
- options: localVarRequestOptions,
82
- };
83
- },
84
- /**
85
- * This will delete commission agreement version.
86
- * @summary Delete the commission agreement version
87
- * @param {string} code Unique identifier for the object.
88
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
- * @param {*} [options] Override http request option.
90
- * @throws {RequiredError}
91
- */
92
- deleteCommissionAgreementVersion: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
- // verify required parameter 'code' is not null or undefined
94
- assertParamExists('deleteCommissionAgreementVersion', 'code', code)
95
- const localVarPath = `/commissionservice/v1/agreement-versions/{code}`
96
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
97
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
- let baseOptions;
100
- let baseAccessToken;
101
- if (configuration) {
102
- baseOptions = configuration.baseOptions;
103
- baseAccessToken = configuration.accessToken;
104
- }
105
-
106
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
107
- const localVarHeaderParameter = {} as any;
108
- const localVarQueryParameter = {} as any;
109
-
110
- // authentication bearer required
111
- // http bearer authentication required
112
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
-
114
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
- }
117
-
118
-
119
-
120
- setSearchParams(localVarUrlObj, localVarQueryParameter);
121
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
123
-
124
- return {
125
- url: toPathString(localVarUrlObj),
126
- options: localVarRequestOptions,
127
- };
128
- },
129
- /**
130
- * This will get commission agreement version.
131
- * @summary Retrieve the commission agreement version
132
- * @param {string} code
133
- * @param {string} expand
134
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
- * @param {*} [options] Override http request option.
136
- * @throws {RequiredError}
137
- */
138
- getCommissionAgreementVersion: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
139
- // verify required parameter 'code' is not null or undefined
140
- assertParamExists('getCommissionAgreementVersion', 'code', code)
141
- // verify required parameter 'expand' is not null or undefined
142
- assertParamExists('getCommissionAgreementVersion', 'expand', expand)
143
- const localVarPath = `/commissionservice/v1/agreement-versions/{code}`
144
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
145
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
- let baseOptions;
148
- let baseAccessToken;
149
- if (configuration) {
150
- baseOptions = configuration.baseOptions;
151
- baseAccessToken = configuration.accessToken;
152
- }
153
-
154
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
155
- const localVarHeaderParameter = {} as any;
156
- const localVarQueryParameter = {} as any;
157
-
158
- // authentication bearer required
159
- // http bearer authentication required
160
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
161
-
162
- if (expand !== undefined) {
163
- localVarQueryParameter['expand'] = expand;
164
- }
165
-
166
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
- }
169
-
170
-
171
-
172
- setSearchParams(localVarUrlObj, localVarQueryParameter);
173
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
-
176
- return {
177
- url: toPathString(localVarUrlObj),
178
- options: localVarRequestOptions,
179
- };
180
- },
181
- /**
182
- * Retrieves a list of commission agreement versions.
183
- * @summary List commission agreement versions
184
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
185
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
187
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
188
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
189
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, createdAt, startDate, endDate&lt;/i&gt;
190
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: agreements&lt;i&gt;
191
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
192
- * @param {*} [options] Override http request option.
193
- * @throws {RequiredError}
194
- */
195
- listCommissionAgreementVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
- const localVarPath = `/commissionservice/v1/agreement-versions`;
197
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
- let baseOptions;
200
- let baseAccessToken;
201
- if (configuration) {
202
- baseOptions = configuration.baseOptions;
203
- baseAccessToken = configuration.accessToken;
204
- }
205
-
206
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
- const localVarHeaderParameter = {} as any;
208
- const localVarQueryParameter = {} as any;
209
-
210
- // authentication bearer required
211
- // http bearer authentication required
212
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
-
214
- if (pageSize !== undefined) {
215
- localVarQueryParameter['pageSize'] = pageSize;
216
- }
217
-
218
- if (pageToken !== undefined) {
219
- localVarQueryParameter['pageToken'] = pageToken;
220
- }
221
-
222
- if (filter !== undefined) {
223
- localVarQueryParameter['filter'] = filter;
224
- }
225
-
226
- if (search !== undefined) {
227
- localVarQueryParameter['search'] = search;
228
- }
229
-
230
- if (order !== undefined) {
231
- localVarQueryParameter['order'] = order;
232
- }
233
-
234
- if (expand !== undefined) {
235
- localVarQueryParameter['expand'] = expand;
236
- }
237
-
238
- if (filters !== undefined) {
239
- localVarQueryParameter['filters'] = filters;
240
- }
241
-
242
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
- }
245
-
246
-
247
-
248
- setSearchParams(localVarUrlObj, localVarQueryParameter);
249
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
251
-
252
- return {
253
- url: toPathString(localVarUrlObj),
254
- options: localVarRequestOptions,
255
- };
256
- },
257
- }
258
- };
259
-
260
- /**
261
- * CommissionAgreementVersionsApi - functional programming interface
262
- * @export
263
- */
264
- export const CommissionAgreementVersionsApiFp = function(configuration?: Configuration) {
265
- const localVarAxiosParamCreator = CommissionAgreementVersionsApiAxiosParamCreator(configuration)
266
- return {
267
- /**
268
- * This will create commission agreement version.
269
- * @summary Create the commission agreement version
270
- * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
271
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
- * @param {*} [options] Override http request option.
273
- * @throws {RequiredError}
274
- */
275
- async createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementVersionResponseClass>> {
276
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto, authorization, options);
277
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
278
- },
279
- /**
280
- * This will delete commission agreement version.
281
- * @summary Delete the commission agreement version
282
- * @param {string} code Unique identifier for the object.
283
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
- * @param {*} [options] Override http request option.
285
- * @throws {RequiredError}
286
- */
287
- async deleteCommissionAgreementVersion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
288
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementVersion(code, authorization, options);
289
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
- },
291
- /**
292
- * This will get commission agreement version.
293
- * @summary Retrieve the commission agreement version
294
- * @param {string} code
295
- * @param {string} expand
296
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- */
300
- async getCommissionAgreementVersion(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementVersionResponseClass>> {
301
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementVersion(code, expand, authorization, options);
302
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
- },
304
- /**
305
- * Retrieves a list of commission agreement versions.
306
- * @summary List commission agreement versions
307
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
309
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
310
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
311
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
312
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, createdAt, startDate, endDate&lt;/i&gt;
313
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: agreements&lt;i&gt;
314
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
315
- * @param {*} [options] Override http request option.
316
- * @throws {RequiredError}
317
- */
318
- async listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementVersionsResponseClass>> {
319
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
320
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
- },
322
- }
323
- };
324
-
325
- /**
326
- * CommissionAgreementVersionsApi - factory interface
327
- * @export
328
- */
329
- export const CommissionAgreementVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
330
- const localVarFp = CommissionAgreementVersionsApiFp(configuration)
331
- return {
332
- /**
333
- * This will create commission agreement version.
334
- * @summary Create the commission agreement version
335
- * @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
336
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
- * @param {*} [options] Override http request option.
338
- * @throws {RequiredError}
339
- */
340
- createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementVersionResponseClass> {
341
- return localVarFp.createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
342
- },
343
- /**
344
- * This will delete commission agreement version.
345
- * @summary Delete the commission agreement version
346
- * @param {string} code Unique identifier for the object.
347
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
- * @param {*} [options] Override http request option.
349
- * @throws {RequiredError}
350
- */
351
- deleteCommissionAgreementVersion(code: string, authorization?: string, options?: any): AxiosPromise<void> {
352
- return localVarFp.deleteCommissionAgreementVersion(code, authorization, options).then((request) => request(axios, basePath));
353
- },
354
- /**
355
- * This will get commission agreement version.
356
- * @summary Retrieve the commission agreement version
357
- * @param {string} code
358
- * @param {string} expand
359
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
- * @param {*} [options] Override http request option.
361
- * @throws {RequiredError}
362
- */
363
- getCommissionAgreementVersion(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementVersionResponseClass> {
364
- return localVarFp.getCommissionAgreementVersion(code, expand, authorization, options).then((request) => request(axios, basePath));
365
- },
366
- /**
367
- * Retrieves a list of commission agreement versions.
368
- * @summary List commission agreement versions
369
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
371
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
372
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
373
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
374
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, createdAt, startDate, endDate&lt;/i&gt;
375
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: agreements&lt;i&gt;
376
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
377
- * @param {*} [options] Override http request option.
378
- * @throws {RequiredError}
379
- */
380
- listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementVersionsResponseClass> {
381
- return localVarFp.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
382
- },
383
- };
384
- };
385
-
386
- /**
387
- * Request parameters for createCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
388
- * @export
389
- * @interface CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest
390
- */
391
- export interface CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest {
392
- /**
393
- *
394
- * @type {CreateCommissionAgreementVersionRequestDto}
395
- * @memberof CommissionAgreementVersionsApiCreateCommissionAgreementVersion
396
- */
397
- readonly createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto
398
-
399
- /**
400
- * Bearer Token: provided by the login endpoint under the name accessToken.
401
- * @type {string}
402
- * @memberof CommissionAgreementVersionsApiCreateCommissionAgreementVersion
403
- */
404
- readonly authorization?: string
405
- }
406
-
407
- /**
408
- * Request parameters for deleteCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
409
- * @export
410
- * @interface CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest
411
- */
412
- export interface CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest {
413
- /**
414
- * Unique identifier for the object.
415
- * @type {string}
416
- * @memberof CommissionAgreementVersionsApiDeleteCommissionAgreementVersion
417
- */
418
- readonly code: string
419
-
420
- /**
421
- * Bearer Token: provided by the login endpoint under the name accessToken.
422
- * @type {string}
423
- * @memberof CommissionAgreementVersionsApiDeleteCommissionAgreementVersion
424
- */
425
- readonly authorization?: string
426
- }
427
-
428
- /**
429
- * Request parameters for getCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
430
- * @export
431
- * @interface CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest
432
- */
433
- export interface CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest {
434
- /**
435
- *
436
- * @type {string}
437
- * @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
438
- */
439
- readonly code: string
440
-
441
- /**
442
- *
443
- * @type {string}
444
- * @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
445
- */
446
- readonly expand: string
447
-
448
- /**
449
- * Bearer Token: provided by the login endpoint under the name accessToken.
450
- * @type {string}
451
- * @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
452
- */
453
- readonly authorization?: string
454
- }
455
-
456
- /**
457
- * Request parameters for listCommissionAgreementVersions operation in CommissionAgreementVersionsApi.
458
- * @export
459
- * @interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest
460
- */
461
- export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest {
462
- /**
463
- * Bearer Token: provided by the login endpoint under the name accessToken.
464
- * @type {string}
465
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
466
- */
467
- readonly authorization?: string
468
-
469
- /**
470
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
471
- * @type {number}
472
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
473
- */
474
- readonly pageSize?: number
475
-
476
- /**
477
- * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
478
- * @type {string}
479
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
480
- */
481
- readonly pageToken?: string
482
-
483
- /**
484
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
485
- * @type {string}
486
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
487
- */
488
- readonly filter?: string
489
-
490
- /**
491
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
492
- * @type {string}
493
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
494
- */
495
- readonly search?: string
496
-
497
- /**
498
- * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, createdAt, startDate, endDate&lt;/i&gt;
499
- * @type {string}
500
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
501
- */
502
- readonly order?: string
503
-
504
- /**
505
- * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: agreements&lt;i&gt;
506
- * @type {string}
507
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
508
- */
509
- readonly expand?: string
510
-
511
- /**
512
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
513
- * @type {string}
514
- * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
515
- */
516
- readonly filters?: string
517
- }
518
-
519
- /**
520
- * CommissionAgreementVersionsApi - object-oriented interface
521
- * @export
522
- * @class CommissionAgreementVersionsApi
523
- * @extends {BaseAPI}
524
- */
525
- export class CommissionAgreementVersionsApi extends BaseAPI {
526
- /**
527
- * This will create commission agreement version.
528
- * @summary Create the commission agreement version
529
- * @param {CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest} requestParameters Request parameters.
530
- * @param {*} [options] Override http request option.
531
- * @throws {RequiredError}
532
- * @memberof CommissionAgreementVersionsApi
533
- */
534
- public createCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
535
- return CommissionAgreementVersionsApiFp(this.configuration).createCommissionAgreementVersion(requestParameters.createCommissionAgreementVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
536
- }
537
-
538
- /**
539
- * This will delete commission agreement version.
540
- * @summary Delete the commission agreement version
541
- * @param {CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest} requestParameters Request parameters.
542
- * @param {*} [options] Override http request option.
543
- * @throws {RequiredError}
544
- * @memberof CommissionAgreementVersionsApi
545
- */
546
- public deleteCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
547
- return CommissionAgreementVersionsApiFp(this.configuration).deleteCommissionAgreementVersion(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
548
- }
549
-
550
- /**
551
- * This will get commission agreement version.
552
- * @summary Retrieve the commission agreement version
553
- * @param {CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest} requestParameters Request parameters.
554
- * @param {*} [options] Override http request option.
555
- * @throws {RequiredError}
556
- * @memberof CommissionAgreementVersionsApi
557
- */
558
- public getCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
559
- return CommissionAgreementVersionsApiFp(this.configuration).getCommissionAgreementVersion(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
560
- }
561
-
562
- /**
563
- * Retrieves a list of commission agreement versions.
564
- * @summary List commission agreement versions
565
- * @param {CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest} requestParameters Request parameters.
566
- * @param {*} [options] Override http request option.
567
- * @throws {RequiredError}
568
- * @memberof CommissionAgreementVersionsApi
569
- */
570
- public listCommissionAgreementVersions(requestParameters: CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest = {}, options?: AxiosRequestConfig) {
571
- return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
572
- }
573
- }