@emilgroup/partner-sdk 1.0.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.
- package/.openapi-generator/FILES +33 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/default-api.ts +120 -0
- package/api/partner-types-api.ts +679 -0
- package/api/partners-api.ts +679 -0
- package/api.ts +31 -0
- package/base.ts +251 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/partner-types-api.d.ts +385 -0
- package/dist/api/partner-types-api.js +636 -0
- package/dist/api/partners-api.d.ts +385 -0
- package/dist/api/partners-api.js +636 -0
- package/dist/api.d.ts +14 -0
- package/dist/api.js +32 -0
- package/dist/base.d.ts +74 -0
- package/dist/base.js +298 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/create-partner-request-dto.d.ts +30 -0
- package/dist/models/create-partner-request-dto.js +15 -0
- package/dist/models/create-partner-response-class.d.ts +25 -0
- package/dist/models/create-partner-response-class.js +15 -0
- package/dist/models/create-partner-type-request-dto.d.ts +30 -0
- package/dist/models/create-partner-type-request-dto.js +15 -0
- package/dist/models/create-partner-type-response-class.d.ts +25 -0
- package/dist/models/create-partner-type-response-class.js +15 -0
- package/dist/models/delete-response-class.d.ts +24 -0
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/get-partner-response-class.d.ts +25 -0
- package/dist/models/get-partner-response-class.js +15 -0
- package/dist/models/get-partner-type-response-class.d.ts +25 -0
- package/dist/models/get-partner-type-response-class.js +15 -0
- package/dist/models/index.d.ts +17 -0
- package/dist/models/index.js +33 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-partner-types-response-class.d.ts +31 -0
- package/dist/models/list-partner-types-response-class.js +15 -0
- package/dist/models/list-partners-response-class.d.ts +31 -0
- package/dist/models/list-partners-response-class.js +15 -0
- package/dist/models/partner-class.d.ts +67 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-type-class.d.ts +54 -0
- package/dist/models/partner-type-class.js +15 -0
- package/dist/models/update-partner-request-dto.d.ts +30 -0
- package/dist/models/update-partner-request-dto.js +15 -0
- package/dist/models/update-partner-response-class.d.ts +25 -0
- package/dist/models/update-partner-response-class.js +15 -0
- package/dist/models/update-partner-type-request-dto.d.ts +30 -0
- package/dist/models/update-partner-type-request-dto.js +15 -0
- package/dist/models/update-partner-type-response-class.d.ts +25 -0
- package/dist/models/update-partner-type-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/create-partner-request-dto.ts +36 -0
- package/models/create-partner-response-class.ts +31 -0
- package/models/create-partner-type-request-dto.ts +36 -0
- package/models/create-partner-type-response-class.ts +31 -0
- package/models/delete-response-class.ts +30 -0
- package/models/get-partner-response-class.ts +31 -0
- package/models/get-partner-type-response-class.ts +31 -0
- package/models/index.ts +17 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-partner-types-response-class.ts +37 -0
- package/models/list-partners-response-class.ts +37 -0
- package/models/partner-class.ts +73 -0
- package/models/partner-type-class.ts +60 -0
- package/models/update-partner-request-dto.ts +36 -0
- package/models/update-partner-response-class.ts +31 -0
- package/models/update-partner-type-request-dto.ts +36 -0
- package/models/update-partner-type-response-class.ts +31 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL PartnerService
|
|
5
|
+
* The EMIL PartnerService 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 { CreatePartnerTypeRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePartnerTypeResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetPartnerTypeResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListPartnerTypesResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdatePartnerTypeRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdatePartnerTypeResponseClass } from '../models';
|
|
37
|
+
/**
|
|
38
|
+
* PartnerTypesApi - axios parameter creator
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const PartnerTypesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
|
+
return {
|
|
43
|
+
/**
|
|
44
|
+
* This will create a partner type.
|
|
45
|
+
* @summary Create the partner-types
|
|
46
|
+
* @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
|
|
47
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
createPartnerType: async (createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'createPartnerTypeRequestDto' is not null or undefined
|
|
53
|
+
assertParamExists('createPartnerType', 'createPartnerTypeRequestDto', createPartnerTypeRequestDto)
|
|
54
|
+
const localVarPath = `/partnerservice/v1/partner-types`;
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
let baseAccessToken;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
baseAccessToken = configuration.accessToken;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65
|
+
const localVarHeaderParameter = {} as any;
|
|
66
|
+
const localVarQueryParameter = {} as any;
|
|
67
|
+
|
|
68
|
+
// authentication bearer required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
|
+
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
|
|
80
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPartnerTypeRequestDto, localVarRequestOptions, configuration)
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
92
|
+
* @summary Delete the partner-types
|
|
93
|
+
* @param {string} code
|
|
94
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
deletePartnerType: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'code' is not null or undefined
|
|
100
|
+
assertParamExists('deletePartnerType', 'code', code)
|
|
101
|
+
const localVarPath = `/partnerservice/v1/partner-types/{code}`
|
|
102
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
103
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
104
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
105
|
+
let baseOptions;
|
|
106
|
+
let baseAccessToken;
|
|
107
|
+
if (configuration) {
|
|
108
|
+
baseOptions = configuration.baseOptions;
|
|
109
|
+
baseAccessToken = configuration.accessToken;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication bearer required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
+
|
|
120
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
121
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
137
|
+
* @summary Retrieve the partner-types
|
|
138
|
+
* @param {string} code Unique identifier for the object.
|
|
139
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
140
|
+
* @param {any} [expand]
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getPartnerType: async (code: string, authorization?: string, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
// verify required parameter 'code' is not null or undefined
|
|
146
|
+
assertParamExists('getPartnerType', 'code', code)
|
|
147
|
+
const localVarPath = `/partnerservice/v1/partner-types/{code}`
|
|
148
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
let baseAccessToken;
|
|
153
|
+
if (configuration) {
|
|
154
|
+
baseOptions = configuration.baseOptions;
|
|
155
|
+
baseAccessToken = configuration.accessToken;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
159
|
+
const localVarHeaderParameter = {} as any;
|
|
160
|
+
const localVarQueryParameter = {} as any;
|
|
161
|
+
|
|
162
|
+
// authentication bearer required
|
|
163
|
+
// http bearer authentication required
|
|
164
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
|
+
|
|
166
|
+
if (expand !== undefined) {
|
|
167
|
+
localVarQueryParameter['expand'] = expand;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
url: toPathString(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
|
+
* @summary List partner-types
|
|
188
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
190
|
+
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
191
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
192
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
193
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
194
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
listPartnerTypes: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
|
+
const localVarPath = `/partnerservice/v1/partner-types`;
|
|
200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
202
|
+
let baseOptions;
|
|
203
|
+
let baseAccessToken;
|
|
204
|
+
if (configuration) {
|
|
205
|
+
baseOptions = configuration.baseOptions;
|
|
206
|
+
baseAccessToken = configuration.accessToken;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
210
|
+
const localVarHeaderParameter = {} as any;
|
|
211
|
+
const localVarQueryParameter = {} as any;
|
|
212
|
+
|
|
213
|
+
// authentication bearer required
|
|
214
|
+
// http bearer authentication required
|
|
215
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
216
|
+
|
|
217
|
+
if (pageSize !== undefined) {
|
|
218
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (pageToken !== undefined) {
|
|
222
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
if (filter !== undefined) {
|
|
226
|
+
localVarQueryParameter['filter'] = filter;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
if (search !== undefined) {
|
|
230
|
+
localVarQueryParameter['search'] = search;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
if (order !== undefined) {
|
|
234
|
+
localVarQueryParameter['order'] = order;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (expand !== undefined) {
|
|
238
|
+
localVarQueryParameter['expand'] = expand;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
242
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
250
|
+
|
|
251
|
+
return {
|
|
252
|
+
url: toPathString(localVarUrlObj),
|
|
253
|
+
options: localVarRequestOptions,
|
|
254
|
+
};
|
|
255
|
+
},
|
|
256
|
+
/**
|
|
257
|
+
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
258
|
+
* @summary Update the partner-types
|
|
259
|
+
* @param {string} code Unique identifier for the object.
|
|
260
|
+
* @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
|
|
261
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
updatePartnerType: async (code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
266
|
+
// verify required parameter 'code' is not null or undefined
|
|
267
|
+
assertParamExists('updatePartnerType', 'code', code)
|
|
268
|
+
// verify required parameter 'updatePartnerTypeRequestDto' is not null or undefined
|
|
269
|
+
assertParamExists('updatePartnerType', 'updatePartnerTypeRequestDto', updatePartnerTypeRequestDto)
|
|
270
|
+
const localVarPath = `/partnerservice/v1/partner-types/{code}`
|
|
271
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
272
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
273
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
274
|
+
let baseOptions;
|
|
275
|
+
let baseAccessToken;
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
baseAccessToken = configuration.accessToken;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
282
|
+
const localVarHeaderParameter = {} as any;
|
|
283
|
+
const localVarQueryParameter = {} as any;
|
|
284
|
+
|
|
285
|
+
// authentication bearer required
|
|
286
|
+
// http bearer authentication required
|
|
287
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
288
|
+
|
|
289
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
290
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
296
|
+
|
|
297
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
298
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
299
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
300
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePartnerTypeRequestDto, localVarRequestOptions, configuration)
|
|
301
|
+
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* PartnerTypesApi - functional programming interface
|
|
312
|
+
* @export
|
|
313
|
+
*/
|
|
314
|
+
export const PartnerTypesApiFp = function(configuration?: Configuration) {
|
|
315
|
+
const localVarAxiosParamCreator = PartnerTypesApiAxiosParamCreator(configuration)
|
|
316
|
+
return {
|
|
317
|
+
/**
|
|
318
|
+
* This will create a partner type.
|
|
319
|
+
* @summary Create the partner-types
|
|
320
|
+
* @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
|
|
321
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
async createPartnerType(createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerTypeResponseClass>> {
|
|
326
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPartnerType(createPartnerTypeRequestDto, authorization, options);
|
|
327
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
331
|
+
* @summary Delete the partner-types
|
|
332
|
+
* @param {string} code
|
|
333
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
async deletePartnerType(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartnerType(code, authorization, options);
|
|
339
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
343
|
+
* @summary Retrieve the partner-types
|
|
344
|
+
* @param {string} code Unique identifier for the object.
|
|
345
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
|
+
* @param {any} [expand]
|
|
347
|
+
* @param {*} [options] Override http request option.
|
|
348
|
+
* @throws {RequiredError}
|
|
349
|
+
*/
|
|
350
|
+
async getPartnerType(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerTypeResponseClass>> {
|
|
351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartnerType(code, authorization, expand, options);
|
|
352
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
356
|
+
* @summary List partner-types
|
|
357
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
359
|
+
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
360
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
361
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
362
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
363
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
async listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnerTypesResponseClass>> {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
373
|
+
* @summary Update the partner-types
|
|
374
|
+
* @param {string} code Unique identifier for the object.
|
|
375
|
+
* @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
|
|
376
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
async updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerTypeResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartnerType(code, updatePartnerTypeRequestDto, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* PartnerTypesApi - factory interface
|
|
389
|
+
* @export
|
|
390
|
+
*/
|
|
391
|
+
export const PartnerTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
392
|
+
const localVarFp = PartnerTypesApiFp(configuration)
|
|
393
|
+
return {
|
|
394
|
+
/**
|
|
395
|
+
* This will create a partner type.
|
|
396
|
+
* @summary Create the partner-types
|
|
397
|
+
* @param {CreatePartnerTypeRequestDto} createPartnerTypeRequestDto
|
|
398
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
createPartnerType(createPartnerTypeRequestDto: CreatePartnerTypeRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerTypeResponseClass> {
|
|
403
|
+
return localVarFp.createPartnerType(createPartnerTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
407
|
+
* @summary Delete the partner-types
|
|
408
|
+
* @param {string} code
|
|
409
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
deletePartnerType(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
414
|
+
return localVarFp.deletePartnerType(code, authorization, options).then((request) => request(axios, basePath));
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
418
|
+
* @summary Retrieve the partner-types
|
|
419
|
+
* @param {string} code Unique identifier for the object.
|
|
420
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
421
|
+
* @param {any} [expand]
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
getPartnerType(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerTypeResponseClass> {
|
|
426
|
+
return localVarFp.getPartnerType(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
427
|
+
},
|
|
428
|
+
/**
|
|
429
|
+
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
430
|
+
* @summary List partner-types
|
|
431
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
432
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
433
|
+
* @param {any} [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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
434
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
435
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
436
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
437
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
listPartnerTypes(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnerTypesResponseClass> {
|
|
442
|
+
return localVarFp.listPartnerTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
446
|
+
* @summary Update the partner-types
|
|
447
|
+
* @param {string} code Unique identifier for the object.
|
|
448
|
+
* @param {UpdatePartnerTypeRequestDto} updatePartnerTypeRequestDto
|
|
449
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
*/
|
|
453
|
+
updatePartnerType(code: string, updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerTypeResponseClass> {
|
|
454
|
+
return localVarFp.updatePartnerType(code, updatePartnerTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
455
|
+
},
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Request parameters for createPartnerType operation in PartnerTypesApi.
|
|
461
|
+
* @export
|
|
462
|
+
* @interface PartnerTypesApiCreatePartnerTypeRequest
|
|
463
|
+
*/
|
|
464
|
+
export interface PartnerTypesApiCreatePartnerTypeRequest {
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @type {CreatePartnerTypeRequestDto}
|
|
468
|
+
* @memberof PartnerTypesApiCreatePartnerType
|
|
469
|
+
*/
|
|
470
|
+
readonly createPartnerTypeRequestDto: CreatePartnerTypeRequestDto
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
474
|
+
* @type {string}
|
|
475
|
+
* @memberof PartnerTypesApiCreatePartnerType
|
|
476
|
+
*/
|
|
477
|
+
readonly authorization?: string
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Request parameters for deletePartnerType operation in PartnerTypesApi.
|
|
482
|
+
* @export
|
|
483
|
+
* @interface PartnerTypesApiDeletePartnerTypeRequest
|
|
484
|
+
*/
|
|
485
|
+
export interface PartnerTypesApiDeletePartnerTypeRequest {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof PartnerTypesApiDeletePartnerType
|
|
490
|
+
*/
|
|
491
|
+
readonly code: string
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof PartnerTypesApiDeletePartnerType
|
|
497
|
+
*/
|
|
498
|
+
readonly authorization?: string
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Request parameters for getPartnerType operation in PartnerTypesApi.
|
|
503
|
+
* @export
|
|
504
|
+
* @interface PartnerTypesApiGetPartnerTypeRequest
|
|
505
|
+
*/
|
|
506
|
+
export interface PartnerTypesApiGetPartnerTypeRequest {
|
|
507
|
+
/**
|
|
508
|
+
* Unique identifier for the object.
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
511
|
+
*/
|
|
512
|
+
readonly code: string
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
518
|
+
*/
|
|
519
|
+
readonly authorization?: string
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {any}
|
|
524
|
+
* @memberof PartnerTypesApiGetPartnerType
|
|
525
|
+
*/
|
|
526
|
+
readonly expand?: any
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Request parameters for listPartnerTypes operation in PartnerTypesApi.
|
|
531
|
+
* @export
|
|
532
|
+
* @interface PartnerTypesApiListPartnerTypesRequest
|
|
533
|
+
*/
|
|
534
|
+
export interface PartnerTypesApiListPartnerTypesRequest {
|
|
535
|
+
/**
|
|
536
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
539
|
+
*/
|
|
540
|
+
readonly authorization?: string
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
544
|
+
* @type {any}
|
|
545
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
546
|
+
*/
|
|
547
|
+
readonly pageSize?: any
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* 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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
551
|
+
* @type {any}
|
|
552
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
553
|
+
*/
|
|
554
|
+
readonly pageToken?: any
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
558
|
+
* @type {any}
|
|
559
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
560
|
+
*/
|
|
561
|
+
readonly filter?: any
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
565
|
+
* @type {any}
|
|
566
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
567
|
+
*/
|
|
568
|
+
readonly search?: any
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
572
|
+
* @type {any}
|
|
573
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
574
|
+
*/
|
|
575
|
+
readonly order?: any
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
579
|
+
* @type {any}
|
|
580
|
+
* @memberof PartnerTypesApiListPartnerTypes
|
|
581
|
+
*/
|
|
582
|
+
readonly expand?: any
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Request parameters for updatePartnerType operation in PartnerTypesApi.
|
|
587
|
+
* @export
|
|
588
|
+
* @interface PartnerTypesApiUpdatePartnerTypeRequest
|
|
589
|
+
*/
|
|
590
|
+
export interface PartnerTypesApiUpdatePartnerTypeRequest {
|
|
591
|
+
/**
|
|
592
|
+
* Unique identifier for the object.
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
595
|
+
*/
|
|
596
|
+
readonly code: string
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @type {UpdatePartnerTypeRequestDto}
|
|
601
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
602
|
+
*/
|
|
603
|
+
readonly updatePartnerTypeRequestDto: UpdatePartnerTypeRequestDto
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof PartnerTypesApiUpdatePartnerType
|
|
609
|
+
*/
|
|
610
|
+
readonly authorization?: string
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* PartnerTypesApi - object-oriented interface
|
|
615
|
+
* @export
|
|
616
|
+
* @class PartnerTypesApi
|
|
617
|
+
* @extends {BaseAPI}
|
|
618
|
+
*/
|
|
619
|
+
export class PartnerTypesApi extends BaseAPI {
|
|
620
|
+
/**
|
|
621
|
+
* This will create a partner type.
|
|
622
|
+
* @summary Create the partner-types
|
|
623
|
+
* @param {PartnerTypesApiCreatePartnerTypeRequest} requestParameters Request parameters.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
* @memberof PartnerTypesApi
|
|
627
|
+
*/
|
|
628
|
+
public createPartnerType(requestParameters: PartnerTypesApiCreatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
629
|
+
return PartnerTypesApiFp(this.configuration).createPartnerType(requestParameters.createPartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Permanently deletes the partner-types. Supply the unique code that was returned when you created the partner-types and this will delete it.
|
|
634
|
+
* @summary Delete the partner-types
|
|
635
|
+
* @param {PartnerTypesApiDeletePartnerTypeRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof PartnerTypesApi
|
|
639
|
+
*/
|
|
640
|
+
public deletePartnerType(requestParameters: PartnerTypesApiDeletePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
641
|
+
return PartnerTypesApiFp(this.configuration).deletePartnerType(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Retrieves the details of the partner-types that was previously created. Supply the unique partner-types code that was returned when you created it and Emil Api will return the corresponding partner-types information.
|
|
646
|
+
* @summary Retrieve the partner-types
|
|
647
|
+
* @param {PartnerTypesApiGetPartnerTypeRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof PartnerTypesApi
|
|
651
|
+
*/
|
|
652
|
+
public getPartnerType(requestParameters: PartnerTypesApiGetPartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return PartnerTypesApiFp(this.configuration).getPartnerType(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Returns a list of partner-types you have previously created. The partner-types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
658
|
+
* @summary List partner-types
|
|
659
|
+
* @param {PartnerTypesApiListPartnerTypesRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof PartnerTypesApi
|
|
663
|
+
*/
|
|
664
|
+
public listPartnerTypes(requestParameters: PartnerTypesApiListPartnerTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
665
|
+
return PartnerTypesApiFp(this.configuration).listPartnerTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Updates the specified partner-types by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
670
|
+
* @summary Update the partner-types
|
|
671
|
+
* @param {PartnerTypesApiUpdatePartnerTypeRequest} requestParameters Request parameters.
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
* @memberof PartnerTypesApi
|
|
675
|
+
*/
|
|
676
|
+
public updatePartnerType(requestParameters: PartnerTypesApiUpdatePartnerTypeRequest, options?: AxiosRequestConfig) {
|
|
677
|
+
return PartnerTypesApiFp(this.configuration).updatePartnerType(requestParameters.code, requestParameters.updatePartnerTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
678
|
+
}
|
|
679
|
+
}
|