@emilgroup/discount-sdk-node 1.1.1-beta.1 → 1.2.1-beta.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/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/discount-sdk-node@1.1.1-beta.1 --save
20
+ npm install @emilgroup/discount-sdk-node@1.2.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/discount-sdk-node@1.1.1-beta.1
24
+ yarn add @emilgroup/discount-sdk-node@1.2.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `CampaignApi`.
@@ -292,11 +292,11 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
292
292
  * @summary Retrieve the Campaign
293
293
  * @param {string} code Unique identifier for the object.
294
294
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
- * @param {number} [expand] You can expand campaign in this endpoint.
295
+ * @param {string} [expand] You can expand campaign in this endpoint.
296
296
  * @param {*} [options] Override http request option.
297
297
  * @throws {RequiredError}
298
298
  */
299
- getCampaign: async (code: string, authorization?: string, expand?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
299
+ getCampaign: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
300
300
  // verify required parameter 'code' is not null or undefined
301
301
  assertParamExists('getCampaign', 'code', code)
302
302
  const localVarPath = `/discountservice/v1/campaigns/{code}`
@@ -713,11 +713,11 @@ export const CampaignsApiFp = function(configuration?: Configuration) {
713
713
  * @summary Retrieve the Campaign
714
714
  * @param {string} code Unique identifier for the object.
715
715
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
716
- * @param {number} [expand] You can expand campaign in this endpoint.
716
+ * @param {string} [expand] You can expand campaign in this endpoint.
717
717
  * @param {*} [options] Override http request option.
718
718
  * @throws {RequiredError}
719
719
  */
720
- async getCampaign(code: string, authorization?: string, expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>> {
720
+ async getCampaign(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>> {
721
721
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCampaign(code, authorization, expand, options);
722
722
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
723
723
  },
@@ -867,11 +867,11 @@ export const CampaignsApiFactory = function (configuration?: Configuration, base
867
867
  * @summary Retrieve the Campaign
868
868
  * @param {string} code Unique identifier for the object.
869
869
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
870
- * @param {number} [expand] You can expand campaign in this endpoint.
870
+ * @param {string} [expand] You can expand campaign in this endpoint.
871
871
  * @param {*} [options] Override http request option.
872
872
  * @throws {RequiredError}
873
873
  */
874
- getCampaign(code: string, authorization?: string, expand?: number, options?: any): AxiosPromise<GetCampaignResponseClass> {
874
+ getCampaign(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCampaignResponseClass> {
875
875
  return localVarFp.getCampaign(code, authorization, expand, options).then((request) => request(axios, basePath));
876
876
  },
877
877
  /**
@@ -1087,10 +1087,10 @@ export interface CampaignsApiGetCampaignRequest {
1087
1087
 
1088
1088
  /**
1089
1089
  * You can expand campaign in this endpoint.
1090
- * @type {number}
1090
+ * @type {string}
1091
1091
  * @memberof CampaignsApiGetCampaign
1092
1092
  */
1093
- readonly expand?: number
1093
+ readonly expand?: string
1094
1094
  }
1095
1095
 
1096
1096
  /**
@@ -57,19 +57,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
57
57
  /**
58
58
  * This will charge the policy voucher.
59
59
  * @summary Charges the policy voucher.
60
- * @param {any} code Unique identifier for the object.
61
60
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
62
61
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
63
62
  * @param {*} [options] Override http request option.
64
63
  * @throws {RequiredError}
65
64
  */
66
- chargePolicyVoucher: async (code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
67
- // verify required parameter 'code' is not null or undefined
68
- assertParamExists('chargePolicyVoucher', 'code', code)
65
+ chargePolicyVoucher: async (chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
69
66
  // verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
70
67
  assertParamExists('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto)
71
- const localVarPath = `/discountservice/v1/policy-vouchers/charge`
72
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
68
+ const localVarPath = `/discountservice/v1/policy-vouchers/charge`;
73
69
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
74
70
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
71
  let baseOptions;
@@ -373,19 +369,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
373
369
  /**
374
370
  * This will redeem the policy voucher.
375
371
  * @summary Redeems the policy voucher.
376
- * @param {any} code Unique identifier for the object.
377
372
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
378
373
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
379
374
  * @param {*} [options] Override http request option.
380
375
  * @throws {RequiredError}
381
376
  */
382
- redeemPolicyVoucher: async (code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
383
- // verify required parameter 'code' is not null or undefined
384
- assertParamExists('redeemPolicyVoucher', 'code', code)
377
+ redeemPolicyVoucher: async (redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
385
378
  // verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
386
379
  assertParamExists('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto)
387
- const localVarPath = `/discountservice/v1/policy-vouchers/redeem`
388
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
380
+ const localVarPath = `/discountservice/v1/policy-vouchers/redeem`;
389
381
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
382
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
391
383
  let baseOptions;
@@ -424,19 +416,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
424
416
  /**
425
417
  * This will withdraw the policy voucher.
426
418
  * @summary Withdraws the policy voucher.
427
- * @param {any} code Unique identifier for the object.
428
419
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
429
420
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
421
  * @param {*} [options] Override http request option.
431
422
  * @throws {RequiredError}
432
423
  */
433
- withdrawPolicyVoucher: async (code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
434
- // verify required parameter 'code' is not null or undefined
435
- assertParamExists('withdrawPolicyVoucher', 'code', code)
424
+ withdrawPolicyVoucher: async (withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
436
425
  // verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
437
426
  assertParamExists('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto)
438
- const localVarPath = `/discountservice/v1/policy-vouchers/withdraw`
439
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
427
+ const localVarPath = `/discountservice/v1/policy-vouchers/withdraw`;
440
428
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
441
429
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
442
430
  let baseOptions;
@@ -485,14 +473,13 @@ export const PolicyVouchersApiFp = function(configuration?: Configuration) {
485
473
  /**
486
474
  * This will charge the policy voucher.
487
475
  * @summary Charges the policy voucher.
488
- * @param {any} code Unique identifier for the object.
489
476
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
490
477
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
491
478
  * @param {*} [options] Override http request option.
492
479
  * @throws {RequiredError}
493
480
  */
494
- async chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>> {
495
- const localVarAxiosArgs = await localVarAxiosParamCreator.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options);
481
+ async chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>> {
482
+ const localVarAxiosArgs = await localVarAxiosParamCreator.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options);
496
483
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
484
  },
498
485
  /**
@@ -565,27 +552,25 @@ export const PolicyVouchersApiFp = function(configuration?: Configuration) {
565
552
  /**
566
553
  * This will redeem the policy voucher.
567
554
  * @summary Redeems the policy voucher.
568
- * @param {any} code Unique identifier for the object.
569
555
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
570
556
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
571
557
  * @param {*} [options] Override http request option.
572
558
  * @throws {RequiredError}
573
559
  */
574
- async redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>> {
575
- const localVarAxiosArgs = await localVarAxiosParamCreator.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options);
560
+ async redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>> {
561
+ const localVarAxiosArgs = await localVarAxiosParamCreator.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options);
576
562
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
577
563
  },
578
564
  /**
579
565
  * This will withdraw the policy voucher.
580
566
  * @summary Withdraws the policy voucher.
581
- * @param {any} code Unique identifier for the object.
582
567
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
583
568
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
584
569
  * @param {*} [options] Override http request option.
585
570
  * @throws {RequiredError}
586
571
  */
587
- async withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>> {
588
- const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options);
572
+ async withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>> {
573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options);
589
574
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
590
575
  },
591
576
  }
@@ -601,14 +586,13 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
601
586
  /**
602
587
  * This will charge the policy voucher.
603
588
  * @summary Charges the policy voucher.
604
- * @param {any} code Unique identifier for the object.
605
589
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
606
590
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
607
591
  * @param {*} [options] Override http request option.
608
592
  * @throws {RequiredError}
609
593
  */
610
- chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass> {
611
- return localVarFp.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
594
+ chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass> {
595
+ return localVarFp.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
612
596
  },
613
597
  /**
614
598
  * This will check if the account is eligible for a specific voucher.
@@ -675,26 +659,24 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
675
659
  /**
676
660
  * This will redeem the policy voucher.
677
661
  * @summary Redeems the policy voucher.
678
- * @param {any} code Unique identifier for the object.
679
662
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
680
663
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
681
664
  * @param {*} [options] Override http request option.
682
665
  * @throws {RequiredError}
683
666
  */
684
- redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass> {
685
- return localVarFp.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
667
+ redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass> {
668
+ return localVarFp.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
686
669
  },
687
670
  /**
688
671
  * This will withdraw the policy voucher.
689
672
  * @summary Withdraws the policy voucher.
690
- * @param {any} code Unique identifier for the object.
691
673
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
692
674
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
693
675
  * @param {*} [options] Override http request option.
694
676
  * @throws {RequiredError}
695
677
  */
696
- withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass> {
697
- return localVarFp.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
678
+ withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass> {
679
+ return localVarFp.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
698
680
  },
699
681
  };
700
682
  };
@@ -705,13 +687,6 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
705
687
  * @interface PolicyVouchersApiChargePolicyVoucherRequest
706
688
  */
707
689
  export interface PolicyVouchersApiChargePolicyVoucherRequest {
708
- /**
709
- * Unique identifier for the object.
710
- * @type {any}
711
- * @memberof PolicyVouchersApiChargePolicyVoucher
712
- */
713
- readonly code: any
714
-
715
690
  /**
716
691
  *
717
692
  * @type {ChargePolicyVoucherRequestDto}
@@ -887,13 +862,6 @@ export interface PolicyVouchersApiListPolicyVouchersRequest {
887
862
  * @interface PolicyVouchersApiRedeemPolicyVoucherRequest
888
863
  */
889
864
  export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
890
- /**
891
- * Unique identifier for the object.
892
- * @type {any}
893
- * @memberof PolicyVouchersApiRedeemPolicyVoucher
894
- */
895
- readonly code: any
896
-
897
865
  /**
898
866
  *
899
867
  * @type {RedeemPolicyVoucherRequestDto}
@@ -915,13 +883,6 @@ export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
915
883
  * @interface PolicyVouchersApiWithdrawPolicyVoucherRequest
916
884
  */
917
885
  export interface PolicyVouchersApiWithdrawPolicyVoucherRequest {
918
- /**
919
- * Unique identifier for the object.
920
- * @type {any}
921
- * @memberof PolicyVouchersApiWithdrawPolicyVoucher
922
- */
923
- readonly code: any
924
-
925
886
  /**
926
887
  *
927
888
  * @type {WithdrawPolicyVoucherRequestDto}
@@ -953,7 +914,7 @@ export class PolicyVouchersApi extends BaseAPI {
953
914
  * @memberof PolicyVouchersApi
954
915
  */
955
916
  public chargePolicyVoucher(requestParameters: PolicyVouchersApiChargePolicyVoucherRequest, options?: AxiosRequestConfig) {
956
- return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.code, requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
917
+ return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
957
918
  }
958
919
 
959
920
  /**
@@ -1025,7 +986,7 @@ export class PolicyVouchersApi extends BaseAPI {
1025
986
  * @memberof PolicyVouchersApi
1026
987
  */
1027
988
  public redeemPolicyVoucher(requestParameters: PolicyVouchersApiRedeemPolicyVoucherRequest, options?: AxiosRequestConfig) {
1028
- return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.code, requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
989
+ return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1029
990
  }
1030
991
 
1031
992
  /**
@@ -1037,6 +998,6 @@ export class PolicyVouchersApi extends BaseAPI {
1037
998
  * @memberof PolicyVouchersApi
1038
999
  */
1039
1000
  public withdrawPolicyVoucher(requestParameters: PolicyVouchersApiWithdrawPolicyVoucherRequest, options?: AxiosRequestConfig) {
1040
- return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.code, requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1001
+ return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1041
1002
  }
1042
1003
  }
@@ -79,11 +79,11 @@ export declare const CampaignsApiAxiosParamCreator: (configuration?: Configurati
79
79
  * @summary Retrieve the Campaign
80
80
  * @param {string} code Unique identifier for the object.
81
81
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
82
- * @param {number} [expand] You can expand campaign in this endpoint.
82
+ * @param {string} [expand] You can expand campaign in this endpoint.
83
83
  * @param {*} [options] Override http request option.
84
84
  * @throws {RequiredError}
85
85
  */
86
- getCampaign: (code: string, authorization?: string, expand?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
86
+ getCampaign: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
87
87
  /**
88
88
  * Retrieves a list of campaigns.
89
89
  * @summary List Campaigns
@@ -201,11 +201,11 @@ export declare const CampaignsApiFp: (configuration?: Configuration) => {
201
201
  * @summary Retrieve the Campaign
202
202
  * @param {string} code Unique identifier for the object.
203
203
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
- * @param {number} [expand] You can expand campaign in this endpoint.
204
+ * @param {string} [expand] You can expand campaign in this endpoint.
205
205
  * @param {*} [options] Override http request option.
206
206
  * @throws {RequiredError}
207
207
  */
208
- getCampaign(code: string, authorization?: string, expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>>;
208
+ getCampaign(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>>;
209
209
  /**
210
210
  * Retrieves a list of campaigns.
211
211
  * @summary List Campaigns
@@ -323,11 +323,11 @@ export declare const CampaignsApiFactory: (configuration?: Configuration, basePa
323
323
  * @summary Retrieve the Campaign
324
324
  * @param {string} code Unique identifier for the object.
325
325
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
- * @param {number} [expand] You can expand campaign in this endpoint.
326
+ * @param {string} [expand] You can expand campaign in this endpoint.
327
327
  * @param {*} [options] Override http request option.
328
328
  * @throws {RequiredError}
329
329
  */
330
- getCampaign(code: string, authorization?: string, expand?: number, options?: any): AxiosPromise<GetCampaignResponseClass>;
330
+ getCampaign(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCampaignResponseClass>;
331
331
  /**
332
332
  * Retrieves a list of campaigns.
333
333
  * @summary List Campaigns
@@ -515,10 +515,10 @@ export interface CampaignsApiGetCampaignRequest {
515
515
  readonly authorization?: string;
516
516
  /**
517
517
  * You can expand campaign in this endpoint.
518
- * @type {number}
518
+ * @type {string}
519
519
  * @memberof CampaignsApiGetCampaign
520
520
  */
521
- readonly expand?: number;
521
+ readonly expand?: string;
522
522
  }
523
523
  /**
524
524
  * Request parameters for listCampaigns operation in CampaignsApi.
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
50
  var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
- if (ar || !(i in from)) {
80
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
- ar[i] = from[i];
82
- }
83
- }
84
- return to.concat(ar || Array.prototype.slice.call(from));
85
- };
86
77
  var __importDefault = (this && this.__importDefault) || function (mod) {
87
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
88
79
  };
@@ -113,14 +104,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
113
104
  * @param {*} [options] Override http request option.
114
105
  * @throws {RequiredError}
115
106
  */
116
- createCampaign: function (createCampaignRequestDto_1, authorization_1) {
117
- var args_1 = [];
118
- for (var _i = 2; _i < arguments.length; _i++) {
119
- args_1[_i - 2] = arguments[_i];
120
- }
121
- return __awaiter(_this, __spreadArray([createCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (createCampaignRequestDto, authorization, options) {
107
+ createCampaign: function (createCampaignRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
122
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
123
- if (options === void 0) { options = {}; }
124
111
  return __generator(this, function (_a) {
125
112
  switch (_a.label) {
126
113
  case 0:
@@ -167,14 +154,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
167
154
  * @param {*} [options] Override http request option.
168
155
  * @throws {RequiredError}
169
156
  */
170
- createEligibleAccount: function (code_1, createEligibleAccountRequestDto_1, authorization_1) {
171
- var args_1 = [];
172
- for (var _i = 3; _i < arguments.length; _i++) {
173
- args_1[_i - 3] = arguments[_i];
174
- }
175
- return __awaiter(_this, __spreadArray([code_1, createEligibleAccountRequestDto_1, authorization_1], args_1, true), void 0, function (code, createEligibleAccountRequestDto, authorization, options) {
157
+ createEligibleAccount: function (code, createEligibleAccountRequestDto, authorization, options) {
158
+ if (options === void 0) { options = {}; }
159
+ return __awaiter(_this, void 0, void 0, function () {
176
160
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
177
- if (options === void 0) { options = {}; }
178
161
  return __generator(this, function (_a) {
179
162
  switch (_a.label) {
180
163
  case 0:
@@ -223,14 +206,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
223
206
  * @param {*} [options] Override http request option.
224
207
  * @throws {RequiredError}
225
208
  */
226
- deleteCampaign: function (code_1, authorization_1) {
227
- var args_1 = [];
228
- for (var _i = 2; _i < arguments.length; _i++) {
229
- args_1[_i - 2] = arguments[_i];
230
- }
231
- return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
209
+ deleteCampaign: function (code, authorization, options) {
210
+ if (options === void 0) { options = {}; }
211
+ return __awaiter(_this, void 0, void 0, function () {
232
212
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
233
- if (options === void 0) { options = {}; }
234
213
  return __generator(this, function (_a) {
235
214
  switch (_a.label) {
236
215
  case 0:
@@ -276,14 +255,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
276
255
  * @param {*} [options] Override http request option.
277
256
  * @throws {RequiredError}
278
257
  */
279
- deleteEligibleAccount: function (code_1, accountCode_1, authorization_1) {
280
- var args_1 = [];
281
- for (var _i = 3; _i < arguments.length; _i++) {
282
- args_1[_i - 3] = arguments[_i];
283
- }
284
- return __awaiter(_this, __spreadArray([code_1, accountCode_1, authorization_1], args_1, true), void 0, function (code, accountCode, authorization, options) {
258
+ deleteEligibleAccount: function (code, accountCode, authorization, options) {
259
+ if (options === void 0) { options = {}; }
260
+ return __awaiter(_this, void 0, void 0, function () {
285
261
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
286
- if (options === void 0) { options = {}; }
287
262
  return __generator(this, function (_a) {
288
263
  switch (_a.label) {
289
264
  case 0:
@@ -331,14 +306,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
331
306
  * @param {*} [options] Override http request option.
332
307
  * @throws {RequiredError}
333
308
  */
334
- deleteEligibleAccounts: function (code_1, authorization_1) {
335
- var args_1 = [];
336
- for (var _i = 2; _i < arguments.length; _i++) {
337
- args_1[_i - 2] = arguments[_i];
338
- }
339
- return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
309
+ deleteEligibleAccounts: function (code, authorization, options) {
310
+ if (options === void 0) { options = {}; }
311
+ return __awaiter(_this, void 0, void 0, function () {
340
312
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
341
- if (options === void 0) { options = {}; }
342
313
  return __generator(this, function (_a) {
343
314
  switch (_a.label) {
344
315
  case 0:
@@ -380,18 +351,14 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
380
351
  * @summary Retrieve the Campaign
381
352
  * @param {string} code Unique identifier for the object.
382
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
- * @param {number} [expand] You can expand campaign in this endpoint.
354
+ * @param {string} [expand] You can expand campaign in this endpoint.
384
355
  * @param {*} [options] Override http request option.
385
356
  * @throws {RequiredError}
386
357
  */
387
- getCampaign: function (code_1, authorization_1, expand_1) {
388
- var args_1 = [];
389
- for (var _i = 3; _i < arguments.length; _i++) {
390
- args_1[_i - 3] = arguments[_i];
391
- }
392
- return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
358
+ getCampaign: function (code, authorization, expand, options) {
359
+ if (options === void 0) { options = {}; }
360
+ return __awaiter(_this, void 0, void 0, function () {
393
361
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
394
- if (options === void 0) { options = {}; }
395
362
  return __generator(this, function (_a) {
396
363
  switch (_a.label) {
397
364
  case 0:
@@ -445,14 +412,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
445
412
  * @param {*} [options] Override http request option.
446
413
  * @throws {RequiredError}
447
414
  */
448
- listCampaigns: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
449
- var args_1 = [];
450
- for (var _i = 8; _i < arguments.length; _i++) {
451
- args_1[_i - 8] = arguments[_i];
452
- }
453
- return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
+ listCampaigns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
416
+ if (options === void 0) { options = {}; }
417
+ return __awaiter(_this, void 0, void 0, function () {
454
418
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
455
- if (options === void 0) { options = {}; }
456
419
  return __generator(this, function (_a) {
457
420
  switch (_a.label) {
458
421
  case 0:
@@ -521,14 +484,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
521
484
  * @param {*} [options] Override http request option.
522
485
  * @throws {RequiredError}
523
486
  */
524
- listEligibleAccounts: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
525
- var args_1 = [];
526
- for (var _i = 8; _i < arguments.length; _i++) {
527
- args_1[_i - 8] = arguments[_i];
528
- }
529
- return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
487
+ listEligibleAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
488
+ if (options === void 0) { options = {}; }
489
+ return __awaiter(_this, void 0, void 0, function () {
530
490
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
531
- if (options === void 0) { options = {}; }
532
491
  return __generator(this, function (_a) {
533
492
  switch (_a.label) {
534
493
  case 0:
@@ -592,14 +551,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
592
551
  * @param {*} [options] Override http request option.
593
552
  * @throws {RequiredError}
594
553
  */
595
- updateCampaign: function (code_1, updateCampaignRequestDto_1, authorization_1) {
596
- var args_1 = [];
597
- for (var _i = 3; _i < arguments.length; _i++) {
598
- args_1[_i - 3] = arguments[_i];
599
- }
600
- return __awaiter(_this, __spreadArray([code_1, updateCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignRequestDto, authorization, options) {
554
+ updateCampaign: function (code, updateCampaignRequestDto, authorization, options) {
555
+ if (options === void 0) { options = {}; }
556
+ return __awaiter(_this, void 0, void 0, function () {
601
557
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
602
- if (options === void 0) { options = {}; }
603
558
  return __generator(this, function (_a) {
604
559
  switch (_a.label) {
605
560
  case 0:
@@ -649,14 +604,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
649
604
  * @param {*} [options] Override http request option.
650
605
  * @throws {RequiredError}
651
606
  */
652
- updateCampaignStatus: function (code_1, updateCampaignStatusRequestDto_1, authorization_1) {
653
- var args_1 = [];
654
- for (var _i = 3; _i < arguments.length; _i++) {
655
- args_1[_i - 3] = arguments[_i];
656
- }
657
- return __awaiter(_this, __spreadArray([code_1, updateCampaignStatusRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignStatusRequestDto, authorization, options) {
607
+ updateCampaignStatus: function (code, updateCampaignStatusRequestDto, authorization, options) {
608
+ if (options === void 0) { options = {}; }
609
+ return __awaiter(_this, void 0, void 0, function () {
658
610
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
659
- if (options === void 0) { options = {}; }
660
611
  return __generator(this, function (_a) {
661
612
  switch (_a.label) {
662
613
  case 0:
@@ -705,14 +656,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
705
656
  * @param {*} [options] Override http request option.
706
657
  * @throws {RequiredError}
707
658
  */
708
- uploadEligibleAccounts: function (code_1, authorization_1) {
709
- var args_1 = [];
710
- for (var _i = 2; _i < arguments.length; _i++) {
711
- args_1[_i - 2] = arguments[_i];
712
- }
713
- return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
659
+ uploadEligibleAccounts: function (code, authorization, options) {
660
+ if (options === void 0) { options = {}; }
661
+ return __awaiter(_this, void 0, void 0, function () {
714
662
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
715
- if (options === void 0) { options = {}; }
716
663
  return __generator(this, function (_a) {
717
664
  switch (_a.label) {
718
665
  case 0:
@@ -871,7 +818,7 @@ var CampaignsApiFp = function (configuration) {
871
818
  * @summary Retrieve the Campaign
872
819
  * @param {string} code Unique identifier for the object.
873
820
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
874
- * @param {number} [expand] You can expand campaign in this endpoint.
821
+ * @param {string} [expand] You can expand campaign in this endpoint.
875
822
  * @param {*} [options] Override http request option.
876
823
  * @throws {RequiredError}
877
824
  */
@@ -1079,7 +1026,7 @@ var CampaignsApiFactory = function (configuration, basePath, axios) {
1079
1026
  * @summary Retrieve the Campaign
1080
1027
  * @param {string} code Unique identifier for the object.
1081
1028
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1082
- * @param {number} [expand] You can expand campaign in this endpoint.
1029
+ * @param {string} [expand] You can expand campaign in this endpoint.
1083
1030
  * @param {*} [options] Override http request option.
1084
1031
  * @throws {RequiredError}
1085
1032
  */