@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 { CreatePartnerRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePartnerResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetPartnerResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListPartnersResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdatePartnerRequestDto } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdatePartnerResponseClass } from '../models';
|
|
37
|
+
/**
|
|
38
|
+
* PartnersApi - axios parameter creator
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
|
+
return {
|
|
43
|
+
/**
|
|
44
|
+
* This will create a partner.
|
|
45
|
+
* @summary Create the partner
|
|
46
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
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
|
+
createPartner: async (createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'createPartnerRequestDto' is not null or undefined
|
|
53
|
+
assertParamExists('createPartner', 'createPartnerRequestDto', createPartnerRequestDto)
|
|
54
|
+
const localVarPath = `/partnerservice/v1/partners`;
|
|
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(createPartnerRequestDto, localVarRequestOptions, configuration)
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
92
|
+
* @summary Delete the partner
|
|
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
|
+
deletePartner: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
// verify required parameter 'code' is not null or undefined
|
|
100
|
+
assertParamExists('deletePartner', 'code', code)
|
|
101
|
+
const localVarPath = `/partnerservice/v1/partners/{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 that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
137
|
+
* @summary Retrieve the partner
|
|
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
|
+
getPartner: async (code: string, authorization?: string, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
// verify required parameter 'code' is not null or undefined
|
|
146
|
+
assertParamExists('getPartner', 'code', code)
|
|
147
|
+
const localVarPath = `/partnerservice/v1/partners/{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 partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
187
|
+
* @summary List partners
|
|
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
|
+
listPartners: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
|
+
const localVarPath = `/partnerservice/v1/partners`;
|
|
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 by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
258
|
+
* @summary Update the partner
|
|
259
|
+
* @param {string} code Unique identifier for the object.
|
|
260
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
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
|
+
updatePartner: async (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
266
|
+
// verify required parameter 'code' is not null or undefined
|
|
267
|
+
assertParamExists('updatePartner', 'code', code)
|
|
268
|
+
// verify required parameter 'updatePartnerRequestDto' is not null or undefined
|
|
269
|
+
assertParamExists('updatePartner', 'updatePartnerRequestDto', updatePartnerRequestDto)
|
|
270
|
+
const localVarPath = `/partnerservice/v1/partners/{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(updatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
301
|
+
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* PartnersApi - functional programming interface
|
|
312
|
+
* @export
|
|
313
|
+
*/
|
|
314
|
+
export const PartnersApiFp = function(configuration?: Configuration) {
|
|
315
|
+
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
316
|
+
return {
|
|
317
|
+
/**
|
|
318
|
+
* This will create a partner.
|
|
319
|
+
* @summary Create the partner
|
|
320
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
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 createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerResponseClass>> {
|
|
326
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPartner(createPartnerRequestDto, authorization, options);
|
|
327
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
331
|
+
* @summary Delete the partner
|
|
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 deletePartner(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
338
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePartner(code, authorization, options);
|
|
339
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
343
|
+
* @summary Retrieve the partner
|
|
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 getPartner(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerResponseClass>> {
|
|
351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPartner(code, authorization, expand, options);
|
|
352
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
|
+
},
|
|
354
|
+
/**
|
|
355
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
356
|
+
* @summary List partners
|
|
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 listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>> {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
373
|
+
* @summary Update the partner
|
|
374
|
+
* @param {string} code Unique identifier for the object.
|
|
375
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
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 updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>> {
|
|
381
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePartner(code, updatePartnerRequestDto, authorization, options);
|
|
382
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
383
|
+
},
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* PartnersApi - factory interface
|
|
389
|
+
* @export
|
|
390
|
+
*/
|
|
391
|
+
export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
392
|
+
const localVarFp = PartnersApiFp(configuration)
|
|
393
|
+
return {
|
|
394
|
+
/**
|
|
395
|
+
* This will create a partner.
|
|
396
|
+
* @summary Create the partner
|
|
397
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
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
|
+
createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerResponseClass> {
|
|
403
|
+
return localVarFp.createPartner(createPartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
407
|
+
* @summary Delete the partner
|
|
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
|
+
deletePartner(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
414
|
+
return localVarFp.deletePartner(code, authorization, options).then((request) => request(axios, basePath));
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
418
|
+
* @summary Retrieve the partner
|
|
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
|
+
getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass> {
|
|
426
|
+
return localVarFp.getPartner(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
427
|
+
},
|
|
428
|
+
/**
|
|
429
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
430
|
+
* @summary List partners
|
|
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
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnersResponseClass> {
|
|
442
|
+
return localVarFp.listPartners(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
446
|
+
* @summary Update the partner
|
|
447
|
+
* @param {string} code Unique identifier for the object.
|
|
448
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
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
|
+
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass> {
|
|
454
|
+
return localVarFp.updatePartner(code, updatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
455
|
+
},
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Request parameters for createPartner operation in PartnersApi.
|
|
461
|
+
* @export
|
|
462
|
+
* @interface PartnersApiCreatePartnerRequest
|
|
463
|
+
*/
|
|
464
|
+
export interface PartnersApiCreatePartnerRequest {
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
* @type {CreatePartnerRequestDto}
|
|
468
|
+
* @memberof PartnersApiCreatePartner
|
|
469
|
+
*/
|
|
470
|
+
readonly createPartnerRequestDto: CreatePartnerRequestDto
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
474
|
+
* @type {string}
|
|
475
|
+
* @memberof PartnersApiCreatePartner
|
|
476
|
+
*/
|
|
477
|
+
readonly authorization?: string
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Request parameters for deletePartner operation in PartnersApi.
|
|
482
|
+
* @export
|
|
483
|
+
* @interface PartnersApiDeletePartnerRequest
|
|
484
|
+
*/
|
|
485
|
+
export interface PartnersApiDeletePartnerRequest {
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof PartnersApiDeletePartner
|
|
490
|
+
*/
|
|
491
|
+
readonly code: string
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof PartnersApiDeletePartner
|
|
497
|
+
*/
|
|
498
|
+
readonly authorization?: string
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Request parameters for getPartner operation in PartnersApi.
|
|
503
|
+
* @export
|
|
504
|
+
* @interface PartnersApiGetPartnerRequest
|
|
505
|
+
*/
|
|
506
|
+
export interface PartnersApiGetPartnerRequest {
|
|
507
|
+
/**
|
|
508
|
+
* Unique identifier for the object.
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof PartnersApiGetPartner
|
|
511
|
+
*/
|
|
512
|
+
readonly code: string
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof PartnersApiGetPartner
|
|
518
|
+
*/
|
|
519
|
+
readonly authorization?: string
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
*
|
|
523
|
+
* @type {any}
|
|
524
|
+
* @memberof PartnersApiGetPartner
|
|
525
|
+
*/
|
|
526
|
+
readonly expand?: any
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Request parameters for listPartners operation in PartnersApi.
|
|
531
|
+
* @export
|
|
532
|
+
* @interface PartnersApiListPartnersRequest
|
|
533
|
+
*/
|
|
534
|
+
export interface PartnersApiListPartnersRequest {
|
|
535
|
+
/**
|
|
536
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
537
|
+
* @type {string}
|
|
538
|
+
* @memberof PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
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 PartnersApiListPartners
|
|
581
|
+
*/
|
|
582
|
+
readonly expand?: any
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* Request parameters for updatePartner operation in PartnersApi.
|
|
587
|
+
* @export
|
|
588
|
+
* @interface PartnersApiUpdatePartnerRequest
|
|
589
|
+
*/
|
|
590
|
+
export interface PartnersApiUpdatePartnerRequest {
|
|
591
|
+
/**
|
|
592
|
+
* Unique identifier for the object.
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof PartnersApiUpdatePartner
|
|
595
|
+
*/
|
|
596
|
+
readonly code: string
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
*
|
|
600
|
+
* @type {UpdatePartnerRequestDto}
|
|
601
|
+
* @memberof PartnersApiUpdatePartner
|
|
602
|
+
*/
|
|
603
|
+
readonly updatePartnerRequestDto: UpdatePartnerRequestDto
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof PartnersApiUpdatePartner
|
|
609
|
+
*/
|
|
610
|
+
readonly authorization?: string
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* PartnersApi - object-oriented interface
|
|
615
|
+
* @export
|
|
616
|
+
* @class PartnersApi
|
|
617
|
+
* @extends {BaseAPI}
|
|
618
|
+
*/
|
|
619
|
+
export class PartnersApi extends BaseAPI {
|
|
620
|
+
/**
|
|
621
|
+
* This will create a partner.
|
|
622
|
+
* @summary Create the partner
|
|
623
|
+
* @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
* @memberof PartnersApi
|
|
627
|
+
*/
|
|
628
|
+
public createPartner(requestParameters: PartnersApiCreatePartnerRequest, options?: AxiosRequestConfig) {
|
|
629
|
+
return PartnersApiFp(this.configuration).createPartner(requestParameters.createPartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
634
|
+
* @summary Delete the partner
|
|
635
|
+
* @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
* @memberof PartnersApi
|
|
639
|
+
*/
|
|
640
|
+
public deletePartner(requestParameters: PartnersApiDeletePartnerRequest, options?: AxiosRequestConfig) {
|
|
641
|
+
return PartnersApiFp(this.configuration).deletePartner(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Retrieves the details of the partner that was previously created. Supply the unique partner code that was returned when you created it and Emil Api will return the corresponding partner information.
|
|
646
|
+
* @summary Retrieve the partner
|
|
647
|
+
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
648
|
+
* @param {*} [options] Override http request option.
|
|
649
|
+
* @throws {RequiredError}
|
|
650
|
+
* @memberof PartnersApi
|
|
651
|
+
*/
|
|
652
|
+
public getPartner(requestParameters: PartnersApiGetPartnerRequest, options?: AxiosRequestConfig) {
|
|
653
|
+
return PartnersApiFp(this.configuration).getPartner(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Returns a list of partners you have previously created. The partners are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
658
|
+
* @summary List partners
|
|
659
|
+
* @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
* @memberof PartnersApi
|
|
663
|
+
*/
|
|
664
|
+
public listPartners(requestParameters: PartnersApiListPartnersRequest = {}, options?: AxiosRequestConfig) {
|
|
665
|
+
return PartnersApiFp(this.configuration).listPartners(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 by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
670
|
+
* @summary Update the partner
|
|
671
|
+
* @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
672
|
+
* @param {*} [options] Override http request option.
|
|
673
|
+
* @throws {RequiredError}
|
|
674
|
+
* @memberof PartnersApi
|
|
675
|
+
*/
|
|
676
|
+
public updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig) {
|
|
677
|
+
return PartnersApiFp(this.configuration).updatePartner(requestParameters.code, requestParameters.updatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
678
|
+
}
|
|
679
|
+
}
|