@emilgroup/commission-sdk 1.0.0-beta.6 → 1.0.0-beta.7
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/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/commission-sdk@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@1.0.0-beta.7 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@1.0.0-beta.7
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -88,15 +88,15 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
88
88
|
/**
|
|
89
89
|
* This will delete commission recipient.
|
|
90
90
|
* @summary Delete the commission recipient
|
|
91
|
-
* @param {
|
|
91
|
+
* @param {string} code Unique identifier for the object.
|
|
92
92
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
93
|
* @param {*} [options] Override http request option.
|
|
94
94
|
* @throws {RequiredError}
|
|
95
95
|
*/
|
|
96
|
-
deleteCommissionRecipient: async (code:
|
|
96
|
+
deleteCommissionRecipient: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
97
|
// verify required parameter 'code' is not null or undefined
|
|
98
98
|
assertParamExists('deleteCommissionRecipient', 'code', code)
|
|
99
|
-
const localVarPath = `/commissionservice/v1/commission-recipients`
|
|
99
|
+
const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
|
|
100
100
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -183,17 +183,20 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
183
183
|
};
|
|
184
184
|
},
|
|
185
185
|
/**
|
|
186
|
-
* Retrieves a list of
|
|
186
|
+
* Retrieves a list of commission recipients.
|
|
187
187
|
* @summary List commission recipients
|
|
188
188
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
189
191
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
190
|
-
* @param {string} [
|
|
192
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
191
193
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
192
194
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
195
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
193
196
|
* @param {*} [options] Override http request option.
|
|
194
197
|
* @throws {RequiredError}
|
|
195
198
|
*/
|
|
196
|
-
listCommissionRecipients: async (authorization?: string, filter?: string,
|
|
199
|
+
listCommissionRecipients: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
200
|
const localVarPath = `/commissionservice/v1/commission-recipients`;
|
|
198
201
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
202
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -212,12 +215,20 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
212
215
|
// http bearer authentication required
|
|
213
216
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
217
|
|
|
218
|
+
if (pageSize !== undefined) {
|
|
219
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (pageToken !== undefined) {
|
|
223
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
224
|
+
}
|
|
225
|
+
|
|
215
226
|
if (filter !== undefined) {
|
|
216
227
|
localVarQueryParameter['filter'] = filter;
|
|
217
228
|
}
|
|
218
229
|
|
|
219
|
-
if (
|
|
220
|
-
localVarQueryParameter['
|
|
230
|
+
if (search !== undefined) {
|
|
231
|
+
localVarQueryParameter['search'] = search;
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
if (order !== undefined) {
|
|
@@ -228,6 +239,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
228
239
|
localVarQueryParameter['expand'] = expand;
|
|
229
240
|
}
|
|
230
241
|
|
|
242
|
+
if (filters !== undefined) {
|
|
243
|
+
localVarQueryParameter['filters'] = filters;
|
|
244
|
+
}
|
|
245
|
+
|
|
231
246
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
247
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
248
|
}
|
|
@@ -246,15 +261,19 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
|
|
|
246
261
|
/**
|
|
247
262
|
* This will update commission recipient.
|
|
248
263
|
* @summary Update the commission recipient
|
|
264
|
+
* @param {string} code
|
|
249
265
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
250
266
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
267
|
* @param {*} [options] Override http request option.
|
|
252
268
|
* @throws {RequiredError}
|
|
253
269
|
*/
|
|
254
|
-
updateCommissionRecipient: async (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
|
+
updateCommissionRecipient: async (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
271
|
+
// verify required parameter 'code' is not null or undefined
|
|
272
|
+
assertParamExists('updateCommissionRecipient', 'code', code)
|
|
255
273
|
// verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
|
|
256
274
|
assertParamExists('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto)
|
|
257
|
-
const localVarPath = `/commissionservice/v1/commission-recipients
|
|
275
|
+
const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
|
|
276
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
258
277
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
259
278
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
260
279
|
let baseOptions;
|
|
@@ -315,12 +334,12 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
315
334
|
/**
|
|
316
335
|
* This will delete commission recipient.
|
|
317
336
|
* @summary Delete the commission recipient
|
|
318
|
-
* @param {
|
|
337
|
+
* @param {string} code Unique identifier for the object.
|
|
319
338
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
339
|
* @param {*} [options] Override http request option.
|
|
321
340
|
* @throws {RequiredError}
|
|
322
341
|
*/
|
|
323
|
-
async deleteCommissionRecipient(code:
|
|
342
|
+
async deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
324
343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options);
|
|
325
344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
326
345
|
},
|
|
@@ -338,30 +357,34 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
|
|
|
338
357
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
339
358
|
},
|
|
340
359
|
/**
|
|
341
|
-
* Retrieves a list of
|
|
360
|
+
* Retrieves a list of commission recipients.
|
|
342
361
|
* @summary List commission recipients
|
|
343
362
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
344
365
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
345
|
-
* @param {string} [
|
|
366
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
346
367
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
347
368
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
369
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
348
370
|
* @param {*} [options] Override http request option.
|
|
349
371
|
* @throws {RequiredError}
|
|
350
372
|
*/
|
|
351
|
-
async listCommissionRecipients(authorization?: string, filter?: string,
|
|
352
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, filter,
|
|
373
|
+
async listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
353
375
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
354
376
|
},
|
|
355
377
|
/**
|
|
356
378
|
* This will update commission recipient.
|
|
357
379
|
* @summary Update the commission recipient
|
|
380
|
+
* @param {string} code
|
|
358
381
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
359
382
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
360
383
|
* @param {*} [options] Override http request option.
|
|
361
384
|
* @throws {RequiredError}
|
|
362
385
|
*/
|
|
363
|
-
async updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
|
|
364
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options);
|
|
386
|
+
async updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
|
|
387
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options);
|
|
365
388
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
389
|
},
|
|
367
390
|
}
|
|
@@ -388,12 +411,12 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
388
411
|
/**
|
|
389
412
|
* This will delete commission recipient.
|
|
390
413
|
* @summary Delete the commission recipient
|
|
391
|
-
* @param {
|
|
414
|
+
* @param {string} code Unique identifier for the object.
|
|
392
415
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
393
416
|
* @param {*} [options] Override http request option.
|
|
394
417
|
* @throws {RequiredError}
|
|
395
418
|
*/
|
|
396
|
-
deleteCommissionRecipient(code:
|
|
419
|
+
deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
397
420
|
return localVarFp.deleteCommissionRecipient(code, authorization, options).then((request) => request(axios, basePath));
|
|
398
421
|
},
|
|
399
422
|
/**
|
|
@@ -409,29 +432,33 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
|
|
|
409
432
|
return localVarFp.getCommissionRecipient(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
410
433
|
},
|
|
411
434
|
/**
|
|
412
|
-
* Retrieves a list of
|
|
435
|
+
* Retrieves a list of commission recipients.
|
|
413
436
|
* @summary List commission recipients
|
|
414
437
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
415
440
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
416
|
-
* @param {string} [
|
|
441
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
417
442
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
418
443
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
444
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
419
445
|
* @param {*} [options] Override http request option.
|
|
420
446
|
* @throws {RequiredError}
|
|
421
447
|
*/
|
|
422
|
-
listCommissionRecipients(authorization?: string, filter?: string,
|
|
423
|
-
return localVarFp.listCommissionRecipients(authorization, filter,
|
|
448
|
+
listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
|
|
449
|
+
return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
424
450
|
},
|
|
425
451
|
/**
|
|
426
452
|
* This will update commission recipient.
|
|
427
453
|
* @summary Update the commission recipient
|
|
454
|
+
* @param {string} code
|
|
428
455
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
429
456
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
457
|
* @param {*} [options] Override http request option.
|
|
431
458
|
* @throws {RequiredError}
|
|
432
459
|
*/
|
|
433
|
-
updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
|
|
434
|
-
return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
|
+
updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
|
|
461
|
+
return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
435
462
|
},
|
|
436
463
|
};
|
|
437
464
|
};
|
|
@@ -465,10 +492,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
465
492
|
export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
|
|
466
493
|
/**
|
|
467
494
|
* Unique identifier for the object.
|
|
468
|
-
* @type {
|
|
495
|
+
* @type {string}
|
|
469
496
|
* @memberof CommissionRecipientsApiDeleteCommissionRecipient
|
|
470
497
|
*/
|
|
471
|
-
readonly code:
|
|
498
|
+
readonly code: string
|
|
472
499
|
|
|
473
500
|
/**
|
|
474
501
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -519,6 +546,20 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
519
546
|
*/
|
|
520
547
|
readonly authorization?: string
|
|
521
548
|
|
|
549
|
+
/**
|
|
550
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
551
|
+
* @type {number}
|
|
552
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
553
|
+
*/
|
|
554
|
+
readonly pageSize?: number
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* 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.
|
|
558
|
+
* @type {string}
|
|
559
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
560
|
+
*/
|
|
561
|
+
readonly pageToken?: string
|
|
562
|
+
|
|
522
563
|
/**
|
|
523
564
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
524
565
|
* @type {string}
|
|
@@ -527,11 +568,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
527
568
|
readonly filter?: string
|
|
528
569
|
|
|
529
570
|
/**
|
|
530
|
-
*
|
|
571
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
531
572
|
* @type {string}
|
|
532
573
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
533
574
|
*/
|
|
534
|
-
readonly
|
|
575
|
+
readonly search?: string
|
|
535
576
|
|
|
536
577
|
/**
|
|
537
578
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
@@ -546,6 +587,13 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
546
587
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
547
588
|
*/
|
|
548
589
|
readonly expand?: string
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
595
|
+
*/
|
|
596
|
+
readonly filters?: string
|
|
549
597
|
}
|
|
550
598
|
|
|
551
599
|
/**
|
|
@@ -554,6 +602,13 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
554
602
|
* @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
|
|
555
603
|
*/
|
|
556
604
|
export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @type {string}
|
|
608
|
+
* @memberof CommissionRecipientsApiUpdateCommissionRecipient
|
|
609
|
+
*/
|
|
610
|
+
readonly code: string
|
|
611
|
+
|
|
557
612
|
/**
|
|
558
613
|
*
|
|
559
614
|
* @type {UpdateCommissionRecipientRequestDto}
|
|
@@ -613,7 +668,7 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
613
668
|
}
|
|
614
669
|
|
|
615
670
|
/**
|
|
616
|
-
* Retrieves a list of
|
|
671
|
+
* Retrieves a list of commission recipients.
|
|
617
672
|
* @summary List commission recipients
|
|
618
673
|
* @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
|
|
619
674
|
* @param {*} [options] Override http request option.
|
|
@@ -621,7 +676,7 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
621
676
|
* @memberof CommissionRecipientsApi
|
|
622
677
|
*/
|
|
623
678
|
public listCommissionRecipients(requestParameters: CommissionRecipientsApiListCommissionRecipientsRequest = {}, options?: AxiosRequestConfig) {
|
|
624
|
-
return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
679
|
+
return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
625
680
|
}
|
|
626
681
|
|
|
627
682
|
/**
|
|
@@ -633,6 +688,6 @@ export class CommissionRecipientsApi extends BaseAPI {
|
|
|
633
688
|
* @memberof CommissionRecipientsApi
|
|
634
689
|
*/
|
|
635
690
|
public updateCommissionRecipient(requestParameters: CommissionRecipientsApiUpdateCommissionRecipientRequest, options?: AxiosRequestConfig) {
|
|
636
|
-
return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
691
|
+
return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
637
692
|
}
|
|
638
693
|
}
|
|
@@ -35,12 +35,12 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
35
35
|
/**
|
|
36
36
|
* This will delete commission recipient.
|
|
37
37
|
* @summary Delete the commission recipient
|
|
38
|
-
* @param {
|
|
38
|
+
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
40
|
* @param {*} [options] Override http request option.
|
|
41
41
|
* @throws {RequiredError}
|
|
42
42
|
*/
|
|
43
|
-
deleteCommissionRecipient: (code:
|
|
43
|
+
deleteCommissionRecipient: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
45
|
* This will get commission recipient.
|
|
46
46
|
* @summary Retrieve the commission recipient
|
|
@@ -52,26 +52,30 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
|
|
|
52
52
|
*/
|
|
53
53
|
getCommissionRecipient: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves a list of
|
|
55
|
+
* Retrieves a list of commission recipients.
|
|
56
56
|
* @summary List commission recipients
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
58
60
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
59
|
-
* @param {string} [
|
|
61
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
60
62
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
61
63
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
64
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
62
65
|
* @param {*} [options] Override http request option.
|
|
63
66
|
* @throws {RequiredError}
|
|
64
67
|
*/
|
|
65
|
-
listCommissionRecipients: (authorization?: string, filter?: string,
|
|
68
|
+
listCommissionRecipients: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
66
69
|
/**
|
|
67
70
|
* This will update commission recipient.
|
|
68
71
|
* @summary Update the commission recipient
|
|
72
|
+
* @param {string} code
|
|
69
73
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
70
74
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
71
75
|
* @param {*} [options] Override http request option.
|
|
72
76
|
* @throws {RequiredError}
|
|
73
77
|
*/
|
|
74
|
-
updateCommissionRecipient: (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
78
|
+
updateCommissionRecipient: (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
75
79
|
};
|
|
76
80
|
/**
|
|
77
81
|
* CommissionRecipientsApi - functional programming interface
|
|
@@ -90,12 +94,12 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
90
94
|
/**
|
|
91
95
|
* This will delete commission recipient.
|
|
92
96
|
* @summary Delete the commission recipient
|
|
93
|
-
* @param {
|
|
97
|
+
* @param {string} code Unique identifier for the object.
|
|
94
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
99
|
* @param {*} [options] Override http request option.
|
|
96
100
|
* @throws {RequiredError}
|
|
97
101
|
*/
|
|
98
|
-
deleteCommissionRecipient(code:
|
|
102
|
+
deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
99
103
|
/**
|
|
100
104
|
* This will get commission recipient.
|
|
101
105
|
* @summary Retrieve the commission recipient
|
|
@@ -107,26 +111,30 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
|
|
|
107
111
|
*/
|
|
108
112
|
getCommissionRecipient(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionRecipientResponseClass>>;
|
|
109
113
|
/**
|
|
110
|
-
* Retrieves a list of
|
|
114
|
+
* Retrieves a list of commission recipients.
|
|
111
115
|
* @summary List commission recipients
|
|
112
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
113
119
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
114
|
-
* @param {string} [
|
|
120
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
115
121
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
116
122
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
123
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
117
124
|
* @param {*} [options] Override http request option.
|
|
118
125
|
* @throws {RequiredError}
|
|
119
126
|
*/
|
|
120
|
-
listCommissionRecipients(authorization?: string, filter?: string,
|
|
127
|
+
listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>>;
|
|
121
128
|
/**
|
|
122
129
|
* This will update commission recipient.
|
|
123
130
|
* @summary Update the commission recipient
|
|
131
|
+
* @param {string} code
|
|
124
132
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
125
133
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
126
134
|
* @param {*} [options] Override http request option.
|
|
127
135
|
* @throws {RequiredError}
|
|
128
136
|
*/
|
|
129
|
-
updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
|
|
137
|
+
updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
|
|
130
138
|
};
|
|
131
139
|
/**
|
|
132
140
|
* CommissionRecipientsApi - factory interface
|
|
@@ -145,12 +153,12 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
145
153
|
/**
|
|
146
154
|
* This will delete commission recipient.
|
|
147
155
|
* @summary Delete the commission recipient
|
|
148
|
-
* @param {
|
|
156
|
+
* @param {string} code Unique identifier for the object.
|
|
149
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
158
|
* @param {*} [options] Override http request option.
|
|
151
159
|
* @throws {RequiredError}
|
|
152
160
|
*/
|
|
153
|
-
deleteCommissionRecipient(code:
|
|
161
|
+
deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
154
162
|
/**
|
|
155
163
|
* This will get commission recipient.
|
|
156
164
|
* @summary Retrieve the commission recipient
|
|
@@ -162,26 +170,30 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
|
|
|
162
170
|
*/
|
|
163
171
|
getCommissionRecipient(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionRecipientResponseClass>;
|
|
164
172
|
/**
|
|
165
|
-
* Retrieves a list of
|
|
173
|
+
* Retrieves a list of commission recipients.
|
|
166
174
|
* @summary List commission recipients
|
|
167
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
168
178
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
169
|
-
* @param {string} [
|
|
179
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
170
180
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
171
181
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
182
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
172
183
|
* @param {*} [options] Override http request option.
|
|
173
184
|
* @throws {RequiredError}
|
|
174
185
|
*/
|
|
175
|
-
listCommissionRecipients(authorization?: string, filter?: string,
|
|
186
|
+
listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass>;
|
|
176
187
|
/**
|
|
177
188
|
* This will update commission recipient.
|
|
178
189
|
* @summary Update the commission recipient
|
|
190
|
+
* @param {string} code
|
|
179
191
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
180
192
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
181
193
|
* @param {*} [options] Override http request option.
|
|
182
194
|
* @throws {RequiredError}
|
|
183
195
|
*/
|
|
184
|
-
updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
|
|
196
|
+
updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
|
|
185
197
|
};
|
|
186
198
|
/**
|
|
187
199
|
* Request parameters for createCommissionRecipient operation in CommissionRecipientsApi.
|
|
@@ -210,10 +222,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
|
|
|
210
222
|
export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
|
|
211
223
|
/**
|
|
212
224
|
* Unique identifier for the object.
|
|
213
|
-
* @type {
|
|
225
|
+
* @type {string}
|
|
214
226
|
* @memberof CommissionRecipientsApiDeleteCommissionRecipient
|
|
215
227
|
*/
|
|
216
|
-
readonly code:
|
|
228
|
+
readonly code: string;
|
|
217
229
|
/**
|
|
218
230
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
219
231
|
* @type {string}
|
|
@@ -258,6 +270,18 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
258
270
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
259
271
|
*/
|
|
260
272
|
readonly authorization?: string;
|
|
273
|
+
/**
|
|
274
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
275
|
+
* @type {number}
|
|
276
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
277
|
+
*/
|
|
278
|
+
readonly pageSize?: number;
|
|
279
|
+
/**
|
|
280
|
+
* 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.
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
283
|
+
*/
|
|
284
|
+
readonly pageToken?: string;
|
|
261
285
|
/**
|
|
262
286
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
263
287
|
* @type {string}
|
|
@@ -265,11 +289,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
265
289
|
*/
|
|
266
290
|
readonly filter?: string;
|
|
267
291
|
/**
|
|
268
|
-
*
|
|
292
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
269
293
|
* @type {string}
|
|
270
294
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
271
295
|
*/
|
|
272
|
-
readonly
|
|
296
|
+
readonly search?: string;
|
|
273
297
|
/**
|
|
274
298
|
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
275
299
|
* @type {string}
|
|
@@ -282,6 +306,12 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
282
306
|
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
283
307
|
*/
|
|
284
308
|
readonly expand?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof CommissionRecipientsApiListCommissionRecipients
|
|
313
|
+
*/
|
|
314
|
+
readonly filters?: string;
|
|
285
315
|
}
|
|
286
316
|
/**
|
|
287
317
|
* Request parameters for updateCommissionRecipient operation in CommissionRecipientsApi.
|
|
@@ -289,6 +319,12 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
|
|
|
289
319
|
* @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
|
|
290
320
|
*/
|
|
291
321
|
export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof CommissionRecipientsApiUpdateCommissionRecipient
|
|
326
|
+
*/
|
|
327
|
+
readonly code: string;
|
|
292
328
|
/**
|
|
293
329
|
*
|
|
294
330
|
* @type {UpdateCommissionRecipientRequestDto}
|
|
@@ -337,7 +373,7 @@ export declare class CommissionRecipientsApi extends BaseAPI {
|
|
|
337
373
|
*/
|
|
338
374
|
getCommissionRecipient(requestParameters: CommissionRecipientsApiGetCommissionRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommissionRecipientResponseClass, any, {}>>;
|
|
339
375
|
/**
|
|
340
|
-
* Retrieves a list of
|
|
376
|
+
* Retrieves a list of commission recipients.
|
|
341
377
|
* @summary List commission recipients
|
|
342
378
|
* @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
|
|
343
379
|
* @param {*} [options] Override http request option.
|
|
@@ -144,7 +144,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
/**
|
|
145
145
|
* This will delete commission recipient.
|
|
146
146
|
* @summary Delete the commission recipient
|
|
147
|
-
* @param {
|
|
147
|
+
* @param {string} code Unique identifier for the object.
|
|
148
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
149
|
* @param {*} [options] Override http request option.
|
|
150
150
|
* @throws {RequiredError}
|
|
@@ -158,7 +158,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
158
158
|
case 0:
|
|
159
159
|
// verify required parameter 'code' is not null or undefined
|
|
160
160
|
(0, common_1.assertParamExists)('deleteCommissionRecipient', 'code', code);
|
|
161
|
-
localVarPath = "/commissionservice/v1/commission-recipients"
|
|
161
|
+
localVarPath = "/commissionservice/v1/commission-recipients/{code}"
|
|
162
162
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
163
163
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
164
164
|
if (configuration) {
|
|
@@ -244,17 +244,20 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
244
244
|
});
|
|
245
245
|
},
|
|
246
246
|
/**
|
|
247
|
-
* Retrieves a list of
|
|
247
|
+
* Retrieves a list of commission recipients.
|
|
248
248
|
* @summary List commission recipients
|
|
249
249
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
250
252
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
251
|
-
* @param {string} [
|
|
253
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
252
254
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
253
255
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
256
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
254
257
|
* @param {*} [options] Override http request option.
|
|
255
258
|
* @throws {RequiredError}
|
|
256
259
|
*/
|
|
257
|
-
listCommissionRecipients: function (authorization, filter,
|
|
260
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
261
|
if (options === void 0) { options = {}; }
|
|
259
262
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
263
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -277,11 +280,17 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
277
280
|
// authentication bearer required
|
|
278
281
|
// http bearer authentication required
|
|
279
282
|
_a.sent();
|
|
283
|
+
if (pageSize !== undefined) {
|
|
284
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
285
|
+
}
|
|
286
|
+
if (pageToken !== undefined) {
|
|
287
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
288
|
+
}
|
|
280
289
|
if (filter !== undefined) {
|
|
281
290
|
localVarQueryParameter['filter'] = filter;
|
|
282
291
|
}
|
|
283
|
-
if (
|
|
284
|
-
localVarQueryParameter['
|
|
292
|
+
if (search !== undefined) {
|
|
293
|
+
localVarQueryParameter['search'] = search;
|
|
285
294
|
}
|
|
286
295
|
if (order !== undefined) {
|
|
287
296
|
localVarQueryParameter['order'] = order;
|
|
@@ -289,6 +298,9 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
289
298
|
if (expand !== undefined) {
|
|
290
299
|
localVarQueryParameter['expand'] = expand;
|
|
291
300
|
}
|
|
301
|
+
if (filters !== undefined) {
|
|
302
|
+
localVarQueryParameter['filters'] = filters;
|
|
303
|
+
}
|
|
292
304
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
293
305
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
294
306
|
}
|
|
@@ -306,21 +318,25 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
|
|
|
306
318
|
/**
|
|
307
319
|
* This will update commission recipient.
|
|
308
320
|
* @summary Update the commission recipient
|
|
321
|
+
* @param {string} code
|
|
309
322
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
310
323
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
311
324
|
* @param {*} [options] Override http request option.
|
|
312
325
|
* @throws {RequiredError}
|
|
313
326
|
*/
|
|
314
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
327
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
315
328
|
if (options === void 0) { options = {}; }
|
|
316
329
|
return __awaiter(_this, void 0, void 0, function () {
|
|
317
330
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
331
|
return __generator(this, function (_a) {
|
|
319
332
|
switch (_a.label) {
|
|
320
333
|
case 0:
|
|
334
|
+
// verify required parameter 'code' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updateCommissionRecipient', 'code', code);
|
|
321
336
|
// verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
|
|
322
337
|
(0, common_1.assertParamExists)('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto);
|
|
323
|
-
localVarPath = "/commissionservice/v1/commission-recipients"
|
|
338
|
+
localVarPath = "/commissionservice/v1/commission-recipients/{code}"
|
|
339
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
324
340
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
325
341
|
if (configuration) {
|
|
326
342
|
baseOptions = configuration.baseOptions;
|
|
@@ -386,7 +402,7 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
386
402
|
/**
|
|
387
403
|
* This will delete commission recipient.
|
|
388
404
|
* @summary Delete the commission recipient
|
|
389
|
-
* @param {
|
|
405
|
+
* @param {string} code Unique identifier for the object.
|
|
390
406
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
391
407
|
* @param {*} [options] Override http request option.
|
|
392
408
|
* @throws {RequiredError}
|
|
@@ -427,22 +443,25 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
427
443
|
});
|
|
428
444
|
},
|
|
429
445
|
/**
|
|
430
|
-
* Retrieves a list of
|
|
446
|
+
* Retrieves a list of commission recipients.
|
|
431
447
|
* @summary List commission recipients
|
|
432
448
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
450
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
433
451
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
434
|
-
* @param {string} [
|
|
452
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
435
453
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
436
454
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
455
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
437
456
|
* @param {*} [options] Override http request option.
|
|
438
457
|
* @throws {RequiredError}
|
|
439
458
|
*/
|
|
440
|
-
listCommissionRecipients: function (authorization, filter,
|
|
459
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
441
460
|
return __awaiter(this, void 0, void 0, function () {
|
|
442
461
|
var localVarAxiosArgs;
|
|
443
462
|
return __generator(this, function (_a) {
|
|
444
463
|
switch (_a.label) {
|
|
445
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, filter,
|
|
464
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
446
465
|
case 1:
|
|
447
466
|
localVarAxiosArgs = _a.sent();
|
|
448
467
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -453,17 +472,18 @@ var CommissionRecipientsApiFp = function (configuration) {
|
|
|
453
472
|
/**
|
|
454
473
|
* This will update commission recipient.
|
|
455
474
|
* @summary Update the commission recipient
|
|
475
|
+
* @param {string} code
|
|
456
476
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
457
477
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
458
478
|
* @param {*} [options] Override http request option.
|
|
459
479
|
* @throws {RequiredError}
|
|
460
480
|
*/
|
|
461
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
481
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
462
482
|
return __awaiter(this, void 0, void 0, function () {
|
|
463
483
|
var localVarAxiosArgs;
|
|
464
484
|
return __generator(this, function (_a) {
|
|
465
485
|
switch (_a.label) {
|
|
466
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options)];
|
|
486
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options)];
|
|
467
487
|
case 1:
|
|
468
488
|
localVarAxiosArgs = _a.sent();
|
|
469
489
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -495,7 +515,7 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
495
515
|
/**
|
|
496
516
|
* This will delete commission recipient.
|
|
497
517
|
* @summary Delete the commission recipient
|
|
498
|
-
* @param {
|
|
518
|
+
* @param {string} code Unique identifier for the object.
|
|
499
519
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
520
|
* @param {*} [options] Override http request option.
|
|
501
521
|
* @throws {RequiredError}
|
|
@@ -516,29 +536,33 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
|
|
|
516
536
|
return localVarFp.getCommissionRecipient(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
517
537
|
},
|
|
518
538
|
/**
|
|
519
|
-
* Retrieves a list of
|
|
539
|
+
* Retrieves a list of commission recipients.
|
|
520
540
|
* @summary List commission recipients
|
|
521
541
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
522
544
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
523
|
-
* @param {string} [
|
|
545
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
524
546
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt</i>
|
|
525
547
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
548
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, displayName, partnerCode, status, createdAt</i>
|
|
526
549
|
* @param {*} [options] Override http request option.
|
|
527
550
|
* @throws {RequiredError}
|
|
528
551
|
*/
|
|
529
|
-
listCommissionRecipients: function (authorization, filter,
|
|
530
|
-
return localVarFp.listCommissionRecipients(authorization, filter,
|
|
552
|
+
listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
553
|
+
return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
531
554
|
},
|
|
532
555
|
/**
|
|
533
556
|
* This will update commission recipient.
|
|
534
557
|
* @summary Update the commission recipient
|
|
558
|
+
* @param {string} code
|
|
535
559
|
* @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
|
|
536
560
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
537
561
|
* @param {*} [options] Override http request option.
|
|
538
562
|
* @throws {RequiredError}
|
|
539
563
|
*/
|
|
540
|
-
updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
|
|
541
|
-
return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
564
|
+
updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
|
|
565
|
+
return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
542
566
|
},
|
|
543
567
|
};
|
|
544
568
|
};
|
|
@@ -591,7 +615,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
591
615
|
return (0, exports.CommissionRecipientsApiFp)(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
592
616
|
};
|
|
593
617
|
/**
|
|
594
|
-
* Retrieves a list of
|
|
618
|
+
* Retrieves a list of commission recipients.
|
|
595
619
|
* @summary List commission recipients
|
|
596
620
|
* @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
|
|
597
621
|
* @param {*} [options] Override http request option.
|
|
@@ -601,7 +625,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
601
625
|
CommissionRecipientsApi.prototype.listCommissionRecipients = function (requestParameters, options) {
|
|
602
626
|
var _this = this;
|
|
603
627
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
604
|
-
return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.
|
|
628
|
+
return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
605
629
|
};
|
|
606
630
|
/**
|
|
607
631
|
* This will update commission recipient.
|
|
@@ -613,7 +637,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
|
|
|
613
637
|
*/
|
|
614
638
|
CommissionRecipientsApi.prototype.updateCommissionRecipient = function (requestParameters, options) {
|
|
615
639
|
var _this = this;
|
|
616
|
-
return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
|
+
return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
617
641
|
};
|
|
618
642
|
return CommissionRecipientsApi;
|
|
619
643
|
}(base_1.BaseAPI));
|