@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,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL PartnerService
|
|
3
|
+
* The EMIL PartnerService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePartnerRequestDto } from '../models';
|
|
16
|
+
import { CreatePartnerResponseClass } from '../models';
|
|
17
|
+
import { DeleteResponseClass } from '../models';
|
|
18
|
+
import { GetPartnerResponseClass } from '../models';
|
|
19
|
+
import { ListPartnersResponseClass } from '../models';
|
|
20
|
+
import { UpdatePartnerRequestDto } from '../models';
|
|
21
|
+
import { UpdatePartnerResponseClass } from '../models';
|
|
22
|
+
/**
|
|
23
|
+
* PartnersApi - axios parameter creator
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export declare const PartnersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
27
|
+
/**
|
|
28
|
+
* This will create a partner.
|
|
29
|
+
* @summary Create the partner
|
|
30
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
31
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
createPartner: (createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
38
|
+
* @summary Delete the partner
|
|
39
|
+
* @param {string} code
|
|
40
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
deletePartner: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
* @summary Retrieve the partner
|
|
48
|
+
* @param {string} code Unique identifier for the object.
|
|
49
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
|
+
* @param {any} [expand]
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
getPartner: (code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
* @summary List partners
|
|
58
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
59
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
60
|
+
* @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.
|
|
61
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
62
|
+
* @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.
|
|
63
|
+
* @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.
|
|
64
|
+
* @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.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
listPartners: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
71
|
+
* @summary Update the partner
|
|
72
|
+
* @param {string} code Unique identifier for the object.
|
|
73
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
74
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
updatePartner: (code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* PartnersApi - functional programming interface
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const PartnersApiFp: (configuration?: Configuration) => {
|
|
85
|
+
/**
|
|
86
|
+
* This will create a partner.
|
|
87
|
+
* @summary Create the partner
|
|
88
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
89
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePartnerResponseClass>>;
|
|
94
|
+
/**
|
|
95
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
96
|
+
* @summary Delete the partner
|
|
97
|
+
* @param {string} code
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
deletePartner(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
|
|
103
|
+
/**
|
|
104
|
+
* 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.
|
|
105
|
+
* @summary Retrieve the partner
|
|
106
|
+
* @param {string} code Unique identifier for the object.
|
|
107
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
|
+
* @param {any} [expand]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
getPartner(code: string, authorization?: string, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPartnerResponseClass>>;
|
|
113
|
+
/**
|
|
114
|
+
* 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.
|
|
115
|
+
* @summary List partners
|
|
116
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
118
|
+
* @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.
|
|
119
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
|
+
* @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.
|
|
121
|
+
* @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.
|
|
122
|
+
* @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.
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPartnersResponseClass>>;
|
|
127
|
+
/**
|
|
128
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
129
|
+
* @summary Update the partner
|
|
130
|
+
* @param {string} code Unique identifier for the object.
|
|
131
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
132
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePartnerResponseClass>>;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* PartnersApi - factory interface
|
|
140
|
+
* @export
|
|
141
|
+
*/
|
|
142
|
+
export declare const PartnersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
143
|
+
/**
|
|
144
|
+
* This will create a partner.
|
|
145
|
+
* @summary Create the partner
|
|
146
|
+
* @param {CreatePartnerRequestDto} createPartnerRequestDto
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
createPartner(createPartnerRequestDto: CreatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePartnerResponseClass>;
|
|
152
|
+
/**
|
|
153
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
154
|
+
* @summary Delete the partner
|
|
155
|
+
* @param {string} code
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
deletePartner(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
|
|
161
|
+
/**
|
|
162
|
+
* 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.
|
|
163
|
+
* @summary Retrieve the partner
|
|
164
|
+
* @param {string} code Unique identifier for the object.
|
|
165
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
166
|
+
* @param {any} [expand]
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
getPartner(code: string, authorization?: string, expand?: any, options?: any): AxiosPromise<GetPartnerResponseClass>;
|
|
171
|
+
/**
|
|
172
|
+
* 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.
|
|
173
|
+
* @summary List partners
|
|
174
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
176
|
+
* @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.
|
|
177
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
178
|
+
* @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.
|
|
179
|
+
* @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.
|
|
180
|
+
* @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.
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
listPartners(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPartnersResponseClass>;
|
|
185
|
+
/**
|
|
186
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
187
|
+
* @summary Update the partner
|
|
188
|
+
* @param {string} code Unique identifier for the object.
|
|
189
|
+
* @param {UpdatePartnerRequestDto} updatePartnerRequestDto
|
|
190
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
updatePartner(code: string, updatePartnerRequestDto: UpdatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePartnerResponseClass>;
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Request parameters for createPartner operation in PartnersApi.
|
|
198
|
+
* @export
|
|
199
|
+
* @interface PartnersApiCreatePartnerRequest
|
|
200
|
+
*/
|
|
201
|
+
export interface PartnersApiCreatePartnerRequest {
|
|
202
|
+
/**
|
|
203
|
+
*
|
|
204
|
+
* @type {CreatePartnerRequestDto}
|
|
205
|
+
* @memberof PartnersApiCreatePartner
|
|
206
|
+
*/
|
|
207
|
+
readonly createPartnerRequestDto: CreatePartnerRequestDto;
|
|
208
|
+
/**
|
|
209
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof PartnersApiCreatePartner
|
|
212
|
+
*/
|
|
213
|
+
readonly authorization?: string;
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Request parameters for deletePartner operation in PartnersApi.
|
|
217
|
+
* @export
|
|
218
|
+
* @interface PartnersApiDeletePartnerRequest
|
|
219
|
+
*/
|
|
220
|
+
export interface PartnersApiDeletePartnerRequest {
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @type {string}
|
|
224
|
+
* @memberof PartnersApiDeletePartner
|
|
225
|
+
*/
|
|
226
|
+
readonly code: string;
|
|
227
|
+
/**
|
|
228
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof PartnersApiDeletePartner
|
|
231
|
+
*/
|
|
232
|
+
readonly authorization?: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Request parameters for getPartner operation in PartnersApi.
|
|
236
|
+
* @export
|
|
237
|
+
* @interface PartnersApiGetPartnerRequest
|
|
238
|
+
*/
|
|
239
|
+
export interface PartnersApiGetPartnerRequest {
|
|
240
|
+
/**
|
|
241
|
+
* Unique identifier for the object.
|
|
242
|
+
* @type {string}
|
|
243
|
+
* @memberof PartnersApiGetPartner
|
|
244
|
+
*/
|
|
245
|
+
readonly code: string;
|
|
246
|
+
/**
|
|
247
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
+
* @type {string}
|
|
249
|
+
* @memberof PartnersApiGetPartner
|
|
250
|
+
*/
|
|
251
|
+
readonly authorization?: string;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {any}
|
|
255
|
+
* @memberof PartnersApiGetPartner
|
|
256
|
+
*/
|
|
257
|
+
readonly expand?: any;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Request parameters for listPartners operation in PartnersApi.
|
|
261
|
+
* @export
|
|
262
|
+
* @interface PartnersApiListPartnersRequest
|
|
263
|
+
*/
|
|
264
|
+
export interface PartnersApiListPartnersRequest {
|
|
265
|
+
/**
|
|
266
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
267
|
+
* @type {string}
|
|
268
|
+
* @memberof PartnersApiListPartners
|
|
269
|
+
*/
|
|
270
|
+
readonly authorization?: string;
|
|
271
|
+
/**
|
|
272
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
273
|
+
* @type {any}
|
|
274
|
+
* @memberof PartnersApiListPartners
|
|
275
|
+
*/
|
|
276
|
+
readonly pageSize?: any;
|
|
277
|
+
/**
|
|
278
|
+
* 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.
|
|
279
|
+
* @type {any}
|
|
280
|
+
* @memberof PartnersApiListPartners
|
|
281
|
+
*/
|
|
282
|
+
readonly pageToken?: any;
|
|
283
|
+
/**
|
|
284
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
285
|
+
* @type {any}
|
|
286
|
+
* @memberof PartnersApiListPartners
|
|
287
|
+
*/
|
|
288
|
+
readonly filter?: any;
|
|
289
|
+
/**
|
|
290
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
291
|
+
* @type {any}
|
|
292
|
+
* @memberof PartnersApiListPartners
|
|
293
|
+
*/
|
|
294
|
+
readonly search?: any;
|
|
295
|
+
/**
|
|
296
|
+
* 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.
|
|
297
|
+
* @type {any}
|
|
298
|
+
* @memberof PartnersApiListPartners
|
|
299
|
+
*/
|
|
300
|
+
readonly order?: any;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
* @type {any}
|
|
304
|
+
* @memberof PartnersApiListPartners
|
|
305
|
+
*/
|
|
306
|
+
readonly expand?: any;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Request parameters for updatePartner operation in PartnersApi.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface PartnersApiUpdatePartnerRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface PartnersApiUpdatePartnerRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Unique identifier for the object.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof PartnersApiUpdatePartner
|
|
318
|
+
*/
|
|
319
|
+
readonly code: string;
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {UpdatePartnerRequestDto}
|
|
323
|
+
* @memberof PartnersApiUpdatePartner
|
|
324
|
+
*/
|
|
325
|
+
readonly updatePartnerRequestDto: UpdatePartnerRequestDto;
|
|
326
|
+
/**
|
|
327
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
328
|
+
* @type {string}
|
|
329
|
+
* @memberof PartnersApiUpdatePartner
|
|
330
|
+
*/
|
|
331
|
+
readonly authorization?: string;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* PartnersApi - object-oriented interface
|
|
335
|
+
* @export
|
|
336
|
+
* @class PartnersApi
|
|
337
|
+
* @extends {BaseAPI}
|
|
338
|
+
*/
|
|
339
|
+
export declare class PartnersApi extends BaseAPI {
|
|
340
|
+
/**
|
|
341
|
+
* This will create a partner.
|
|
342
|
+
* @summary Create the partner
|
|
343
|
+
* @param {PartnersApiCreatePartnerRequest} requestParameters Request parameters.
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
* @memberof PartnersApi
|
|
347
|
+
*/
|
|
348
|
+
createPartner(requestParameters: PartnersApiCreatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePartnerResponseClass, any>>;
|
|
349
|
+
/**
|
|
350
|
+
* Permanently deletes the partner. Supply the unique code that was returned when you created the partner and this will delete it.
|
|
351
|
+
* @summary Delete the partner
|
|
352
|
+
* @param {PartnersApiDeletePartnerRequest} requestParameters Request parameters.
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof PartnersApi
|
|
356
|
+
*/
|
|
357
|
+
deletePartner(requestParameters: PartnersApiDeletePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
|
|
358
|
+
/**
|
|
359
|
+
* 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.
|
|
360
|
+
* @summary Retrieve the partner
|
|
361
|
+
* @param {PartnersApiGetPartnerRequest} requestParameters Request parameters.
|
|
362
|
+
* @param {*} [options] Override http request option.
|
|
363
|
+
* @throws {RequiredError}
|
|
364
|
+
* @memberof PartnersApi
|
|
365
|
+
*/
|
|
366
|
+
getPartner(requestParameters: PartnersApiGetPartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPartnerResponseClass, any>>;
|
|
367
|
+
/**
|
|
368
|
+
* 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.
|
|
369
|
+
* @summary List partners
|
|
370
|
+
* @param {PartnersApiListPartnersRequest} requestParameters Request parameters.
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
* @memberof PartnersApi
|
|
374
|
+
*/
|
|
375
|
+
listPartners(requestParameters?: PartnersApiListPartnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPartnersResponseClass, any>>;
|
|
376
|
+
/**
|
|
377
|
+
* Updates the specified partner by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
378
|
+
* @summary Update the partner
|
|
379
|
+
* @param {PartnersApiUpdatePartnerRequest} requestParameters Request parameters.
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
* @memberof PartnersApi
|
|
383
|
+
*/
|
|
384
|
+
updatePartner(requestParameters: PartnersApiUpdatePartnerRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePartnerResponseClass, any>>;
|
|
385
|
+
}
|