@emilgroup/discount-sdk-node 1.2.0 → 1.3.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.2.0 --save
20
+ npm install @emilgroup/discount-sdk-node@1.3.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/discount-sdk-node@1.2.0
24
+ yarn add @emilgroup/discount-sdk-node@1.3.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.
@@ -351,7 +351,7 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
351
351
  * @summary Retrieve the Campaign
352
352
  * @param {string} code Unique identifier for the object.
353
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
- * @param {number} [expand] You can expand campaign in this endpoint.
354
+ * @param {string} [expand] You can expand campaign in this endpoint.
355
355
  * @param {*} [options] Override http request option.
356
356
  * @throws {RequiredError}
357
357
  */
@@ -818,7 +818,7 @@ var CampaignsApiFp = function (configuration) {
818
818
  * @summary Retrieve the Campaign
819
819
  * @param {string} code Unique identifier for the object.
820
820
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
821
- * @param {number} [expand] You can expand campaign in this endpoint.
821
+ * @param {string} [expand] You can expand campaign in this endpoint.
822
822
  * @param {*} [options] Override http request option.
823
823
  * @throws {RequiredError}
824
824
  */
@@ -1026,7 +1026,7 @@ var CampaignsApiFactory = function (configuration, basePath, axios) {
1026
1026
  * @summary Retrieve the Campaign
1027
1027
  * @param {string} code Unique identifier for the object.
1028
1028
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1029
- * @param {number} [expand] You can expand campaign in this endpoint.
1029
+ * @param {string} [expand] You can expand campaign in this endpoint.
1030
1030
  * @param {*} [options] Override http request option.
1031
1031
  * @throws {RequiredError}
1032
1032
  */
@@ -32,13 +32,12 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
32
32
  /**
33
33
  * This will charge the policy voucher.
34
34
  * @summary Charges the policy voucher.
35
- * @param {any} code Unique identifier for the object.
36
35
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
37
36
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
38
37
  * @param {*} [options] Override http request option.
39
38
  * @throws {RequiredError}
40
39
  */
41
- chargePolicyVoucher: (code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
40
+ chargePolicyVoucher: (chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
41
  /**
43
42
  * This will check if the account is eligible for a specific voucher.
44
43
  * @summary Checks the account eligibility.
@@ -94,23 +93,21 @@ export declare const PolicyVouchersApiAxiosParamCreator: (configuration?: Config
94
93
  /**
95
94
  * This will redeem the policy voucher.
96
95
  * @summary Redeems the policy voucher.
97
- * @param {any} code Unique identifier for the object.
98
96
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
99
97
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
98
  * @param {*} [options] Override http request option.
101
99
  * @throws {RequiredError}
102
100
  */
103
- redeemPolicyVoucher: (code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
101
+ redeemPolicyVoucher: (redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
104
102
  /**
105
103
  * This will withdraw the policy voucher.
106
104
  * @summary Withdraws the policy voucher.
107
- * @param {any} code Unique identifier for the object.
108
105
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
109
106
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
110
107
  * @param {*} [options] Override http request option.
111
108
  * @throws {RequiredError}
112
109
  */
113
- withdrawPolicyVoucher: (code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
110
+ withdrawPolicyVoucher: (withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
114
111
  };
115
112
  /**
116
113
  * PolicyVouchersApi - functional programming interface
@@ -120,13 +117,12 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
120
117
  /**
121
118
  * This will charge the policy voucher.
122
119
  * @summary Charges the policy voucher.
123
- * @param {any} code Unique identifier for the object.
124
120
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
125
121
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
126
122
  * @param {*} [options] Override http request option.
127
123
  * @throws {RequiredError}
128
124
  */
129
- chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>>;
125
+ chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>>;
130
126
  /**
131
127
  * This will check if the account is eligible for a specific voucher.
132
128
  * @summary Checks the account eligibility.
@@ -182,23 +178,21 @@ export declare const PolicyVouchersApiFp: (configuration?: Configuration) => {
182
178
  /**
183
179
  * This will redeem the policy voucher.
184
180
  * @summary Redeems the policy voucher.
185
- * @param {any} code Unique identifier for the object.
186
181
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
187
182
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
188
183
  * @param {*} [options] Override http request option.
189
184
  * @throws {RequiredError}
190
185
  */
191
- redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>>;
186
+ redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>>;
192
187
  /**
193
188
  * This will withdraw the policy voucher.
194
189
  * @summary Withdraws the policy voucher.
195
- * @param {any} code Unique identifier for the object.
196
190
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
197
191
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
192
  * @param {*} [options] Override http request option.
199
193
  * @throws {RequiredError}
200
194
  */
201
- withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>>;
195
+ withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>>;
202
196
  };
203
197
  /**
204
198
  * PolicyVouchersApi - factory interface
@@ -208,13 +202,12 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
208
202
  /**
209
203
  * This will charge the policy voucher.
210
204
  * @summary Charges the policy voucher.
211
- * @param {any} code Unique identifier for the object.
212
205
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
213
206
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
214
207
  * @param {*} [options] Override http request option.
215
208
  * @throws {RequiredError}
216
209
  */
217
- chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass>;
210
+ chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass>;
218
211
  /**
219
212
  * This will check if the account is eligible for a specific voucher.
220
213
  * @summary Checks the account eligibility.
@@ -270,23 +263,21 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
270
263
  /**
271
264
  * This will redeem the policy voucher.
272
265
  * @summary Redeems the policy voucher.
273
- * @param {any} code Unique identifier for the object.
274
266
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
275
267
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
276
268
  * @param {*} [options] Override http request option.
277
269
  * @throws {RequiredError}
278
270
  */
279
- redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass>;
271
+ redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass>;
280
272
  /**
281
273
  * This will withdraw the policy voucher.
282
274
  * @summary Withdraws the policy voucher.
283
- * @param {any} code Unique identifier for the object.
284
275
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
285
276
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
286
277
  * @param {*} [options] Override http request option.
287
278
  * @throws {RequiredError}
288
279
  */
289
- withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass>;
280
+ withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass>;
290
281
  };
291
282
  /**
292
283
  * Request parameters for chargePolicyVoucher operation in PolicyVouchersApi.
@@ -294,12 +285,6 @@ export declare const PolicyVouchersApiFactory: (configuration?: Configuration, b
294
285
  * @interface PolicyVouchersApiChargePolicyVoucherRequest
295
286
  */
296
287
  export interface PolicyVouchersApiChargePolicyVoucherRequest {
297
- /**
298
- * Unique identifier for the object.
299
- * @type {any}
300
- * @memberof PolicyVouchersApiChargePolicyVoucher
301
- */
302
- readonly code: any;
303
288
  /**
304
289
  *
305
290
  * @type {ChargePolicyVoucherRequestDto}
@@ -456,12 +441,6 @@ export interface PolicyVouchersApiListPolicyVouchersRequest {
456
441
  * @interface PolicyVouchersApiRedeemPolicyVoucherRequest
457
442
  */
458
443
  export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
459
- /**
460
- * Unique identifier for the object.
461
- * @type {any}
462
- * @memberof PolicyVouchersApiRedeemPolicyVoucher
463
- */
464
- readonly code: any;
465
444
  /**
466
445
  *
467
446
  * @type {RedeemPolicyVoucherRequestDto}
@@ -481,12 +460,6 @@ export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
481
460
  * @interface PolicyVouchersApiWithdrawPolicyVoucherRequest
482
461
  */
483
462
  export interface PolicyVouchersApiWithdrawPolicyVoucherRequest {
484
- /**
485
- * Unique identifier for the object.
486
- * @type {any}
487
- * @memberof PolicyVouchersApiWithdrawPolicyVoucher
488
- */
489
- readonly code: any;
490
463
  /**
491
464
  *
492
465
  * @type {WithdrawPolicyVoucherRequestDto}
@@ -99,25 +99,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * This will charge the policy voucher.
101
101
  * @summary Charges the policy voucher.
102
- * @param {any} code Unique identifier for the object.
103
102
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
104
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
104
  * @param {*} [options] Override http request option.
106
105
  * @throws {RequiredError}
107
106
  */
108
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
107
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
109
108
  if (options === void 0) { options = {}; }
110
109
  return __awaiter(_this, void 0, void 0, function () {
111
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
111
  return __generator(this, function (_a) {
113
112
  switch (_a.label) {
114
113
  case 0:
115
- // verify required parameter 'code' is not null or undefined
116
- (0, common_1.assertParamExists)('chargePolicyVoucher', 'code', code);
117
114
  // verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
118
115
  (0, common_1.assertParamExists)('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto);
119
- localVarPath = "/discountservice/v1/policy-vouchers/charge"
120
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
116
+ localVarPath = "/discountservice/v1/policy-vouchers/charge";
121
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
118
  if (configuration) {
123
119
  baseOptions = configuration.baseOptions;
@@ -422,25 +418,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
422
418
  /**
423
419
  * This will redeem the policy voucher.
424
420
  * @summary Redeems the policy voucher.
425
- * @param {any} code Unique identifier for the object.
426
421
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
427
422
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
423
  * @param {*} [options] Override http request option.
429
424
  * @throws {RequiredError}
430
425
  */
431
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
426
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
432
427
  if (options === void 0) { options = {}; }
433
428
  return __awaiter(_this, void 0, void 0, function () {
434
429
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
435
430
  return __generator(this, function (_a) {
436
431
  switch (_a.label) {
437
432
  case 0:
438
- // verify required parameter 'code' is not null or undefined
439
- (0, common_1.assertParamExists)('redeemPolicyVoucher', 'code', code);
440
433
  // verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
441
434
  (0, common_1.assertParamExists)('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto);
442
- localVarPath = "/discountservice/v1/policy-vouchers/redeem"
443
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
435
+ localVarPath = "/discountservice/v1/policy-vouchers/redeem";
444
436
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
445
437
  if (configuration) {
446
438
  baseOptions = configuration.baseOptions;
@@ -475,25 +467,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
475
467
  /**
476
468
  * This will withdraw the policy voucher.
477
469
  * @summary Withdraws the policy voucher.
478
- * @param {any} code Unique identifier for the object.
479
470
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
480
471
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
481
472
  * @param {*} [options] Override http request option.
482
473
  * @throws {RequiredError}
483
474
  */
484
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
475
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
485
476
  if (options === void 0) { options = {}; }
486
477
  return __awaiter(_this, void 0, void 0, function () {
487
478
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
488
479
  return __generator(this, function (_a) {
489
480
  switch (_a.label) {
490
481
  case 0:
491
- // verify required parameter 'code' is not null or undefined
492
- (0, common_1.assertParamExists)('withdrawPolicyVoucher', 'code', code);
493
482
  // verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
494
483
  (0, common_1.assertParamExists)('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto);
495
- localVarPath = "/discountservice/v1/policy-vouchers/withdraw"
496
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
484
+ localVarPath = "/discountservice/v1/policy-vouchers/withdraw";
497
485
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
498
486
  if (configuration) {
499
487
  baseOptions = configuration.baseOptions;
@@ -538,18 +526,17 @@ var PolicyVouchersApiFp = function (configuration) {
538
526
  /**
539
527
  * This will charge the policy voucher.
540
528
  * @summary Charges the policy voucher.
541
- * @param {any} code Unique identifier for the object.
542
529
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
543
530
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
544
531
  * @param {*} [options] Override http request option.
545
532
  * @throws {RequiredError}
546
533
  */
547
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
534
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
548
535
  return __awaiter(this, void 0, void 0, function () {
549
536
  var localVarAxiosArgs;
550
537
  return __generator(this, function (_a) {
551
538
  switch (_a.label) {
552
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options)];
539
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options)];
553
540
  case 1:
554
541
  localVarAxiosArgs = _a.sent();
555
542
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -672,18 +659,17 @@ var PolicyVouchersApiFp = function (configuration) {
672
659
  /**
673
660
  * This will redeem the policy voucher.
674
661
  * @summary Redeems the policy voucher.
675
- * @param {any} code Unique identifier for the object.
676
662
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
677
663
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
678
664
  * @param {*} [options] Override http request option.
679
665
  * @throws {RequiredError}
680
666
  */
681
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
667
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
682
668
  return __awaiter(this, void 0, void 0, function () {
683
669
  var localVarAxiosArgs;
684
670
  return __generator(this, function (_a) {
685
671
  switch (_a.label) {
686
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options)];
672
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options)];
687
673
  case 1:
688
674
  localVarAxiosArgs = _a.sent();
689
675
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -694,18 +680,17 @@ var PolicyVouchersApiFp = function (configuration) {
694
680
  /**
695
681
  * This will withdraw the policy voucher.
696
682
  * @summary Withdraws the policy voucher.
697
- * @param {any} code Unique identifier for the object.
698
683
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
699
684
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
700
685
  * @param {*} [options] Override http request option.
701
686
  * @throws {RequiredError}
702
687
  */
703
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
688
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
704
689
  return __awaiter(this, void 0, void 0, function () {
705
690
  var localVarAxiosArgs;
706
691
  return __generator(this, function (_a) {
707
692
  switch (_a.label) {
708
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options)];
693
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options)];
709
694
  case 1:
710
695
  localVarAxiosArgs = _a.sent();
711
696
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -726,14 +711,13 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
726
711
  /**
727
712
  * This will charge the policy voucher.
728
713
  * @summary Charges the policy voucher.
729
- * @param {any} code Unique identifier for the object.
730
714
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
731
715
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
732
716
  * @param {*} [options] Override http request option.
733
717
  * @throws {RequiredError}
734
718
  */
735
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
736
- return localVarFp.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
719
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
720
+ return localVarFp.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
737
721
  },
738
722
  /**
739
723
  * This will check if the account is eligible for a specific voucher.
@@ -800,26 +784,24 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
800
784
  /**
801
785
  * This will redeem the policy voucher.
802
786
  * @summary Redeems the policy voucher.
803
- * @param {any} code Unique identifier for the object.
804
787
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
805
788
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
806
789
  * @param {*} [options] Override http request option.
807
790
  * @throws {RequiredError}
808
791
  */
809
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
810
- return localVarFp.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
792
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
793
+ return localVarFp.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
811
794
  },
812
795
  /**
813
796
  * This will withdraw the policy voucher.
814
797
  * @summary Withdraws the policy voucher.
815
- * @param {any} code Unique identifier for the object.
816
798
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
817
799
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
818
800
  * @param {*} [options] Override http request option.
819
801
  * @throws {RequiredError}
820
802
  */
821
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
822
- return localVarFp.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
803
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
804
+ return localVarFp.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
823
805
  },
824
806
  };
825
807
  };
@@ -845,7 +827,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
845
827
  */
846
828
  PolicyVouchersApi.prototype.chargePolicyVoucher = function (requestParameters, options) {
847
829
  var _this = this;
848
- return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.code, requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
830
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
849
831
  };
850
832
  /**
851
833
  * This will check if the account is eligible for a specific voucher.
@@ -918,7 +900,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
918
900
  */
919
901
  PolicyVouchersApi.prototype.redeemPolicyVoucher = function (requestParameters, options) {
920
902
  var _this = this;
921
- return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.code, requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
903
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
922
904
  };
923
905
  /**
924
906
  * This will withdraw the policy voucher.
@@ -930,7 +912,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
930
912
  */
931
913
  PolicyVouchersApi.prototype.withdrawPolicyVoucher = function (requestParameters, options) {
932
914
  var _this = this;
933
- return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.code, requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
915
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
934
916
  };
935
917
  return PolicyVouchersApi;
936
918
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/discount-sdk-node",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "OpenAPI client for @emilgroup/discount-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [