@emilgroup/discount-sdk 1.2.0 → 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@1.2.0 --save
20
+ npm install @emilgroup/discount-sdk@1.2.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/discount-sdk@1.2.0
24
+ yarn add @emilgroup/discount-sdk@1.2.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `CampaignApi`.
@@ -288,11 +288,11 @@ export const CampaignsApiAxiosParamCreator = function (configuration?: Configura
288
288
  * @summary Retrieve the Campaign
289
289
  * @param {string} code Unique identifier for the object.
290
290
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
291
- * @param {number} [expand] You can expand campaign in this endpoint.
291
+ * @param {string} [expand] You can expand campaign in this endpoint.
292
292
  * @param {*} [options] Override http request option.
293
293
  * @throws {RequiredError}
294
294
  */
295
- getCampaign: async (code: string, authorization?: string, expand?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
295
+ getCampaign: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
296
296
  // verify required parameter 'code' is not null or undefined
297
297
  assertParamExists('getCampaign', 'code', code)
298
298
  const localVarPath = `/discountservice/v1/campaigns/{code}`
@@ -709,11 +709,11 @@ export const CampaignsApiFp = function(configuration?: Configuration) {
709
709
  * @summary Retrieve the Campaign
710
710
  * @param {string} code Unique identifier for the object.
711
711
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
712
- * @param {number} [expand] You can expand campaign in this endpoint.
712
+ * @param {string} [expand] You can expand campaign in this endpoint.
713
713
  * @param {*} [options] Override http request option.
714
714
  * @throws {RequiredError}
715
715
  */
716
- async getCampaign(code: string, authorization?: string, expand?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>> {
716
+ async getCampaign(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCampaignResponseClass>> {
717
717
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCampaign(code, authorization, expand, options);
718
718
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
719
719
  },
@@ -863,11 +863,11 @@ export const CampaignsApiFactory = function (configuration?: Configuration, base
863
863
  * @summary Retrieve the Campaign
864
864
  * @param {string} code Unique identifier for the object.
865
865
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
866
- * @param {number} [expand] You can expand campaign in this endpoint.
866
+ * @param {string} [expand] You can expand campaign in this endpoint.
867
867
  * @param {*} [options] Override http request option.
868
868
  * @throws {RequiredError}
869
869
  */
870
- getCampaign(code: string, authorization?: string, expand?: number, options?: any): AxiosPromise<GetCampaignResponseClass> {
870
+ getCampaign(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCampaignResponseClass> {
871
871
  return localVarFp.getCampaign(code, authorization, expand, options).then((request) => request(axios, basePath));
872
872
  },
873
873
  /**
@@ -1083,10 +1083,10 @@ export interface CampaignsApiGetCampaignRequest {
1083
1083
 
1084
1084
  /**
1085
1085
  * You can expand campaign in this endpoint.
1086
- * @type {number}
1086
+ * @type {string}
1087
1087
  * @memberof CampaignsApiGetCampaign
1088
1088
  */
1089
- readonly expand?: number
1089
+ readonly expand?: string
1090
1090
  }
1091
1091
 
1092
1092
  /**
@@ -53,19 +53,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
53
53
  /**
54
54
  * This will charge the policy voucher.
55
55
  * @summary Charges the policy voucher.
56
- * @param {any} code Unique identifier for the object.
57
56
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
58
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
58
  * @param {*} [options] Override http request option.
60
59
  * @throws {RequiredError}
61
60
  */
62
- chargePolicyVoucher: async (code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
63
- // verify required parameter 'code' is not null or undefined
64
- assertParamExists('chargePolicyVoucher', 'code', code)
61
+ chargePolicyVoucher: async (chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
65
62
  // verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
66
63
  assertParamExists('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto)
67
- const localVarPath = `/discountservice/v1/policy-vouchers/charge`
68
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
64
+ const localVarPath = `/discountservice/v1/policy-vouchers/charge`;
69
65
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
70
66
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
71
67
  let baseOptions;
@@ -369,19 +365,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
369
365
  /**
370
366
  * This will redeem the policy voucher.
371
367
  * @summary Redeems the policy voucher.
372
- * @param {any} code Unique identifier for the object.
373
368
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
374
369
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
370
  * @param {*} [options] Override http request option.
376
371
  * @throws {RequiredError}
377
372
  */
378
- redeemPolicyVoucher: async (code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
379
- // verify required parameter 'code' is not null or undefined
380
- assertParamExists('redeemPolicyVoucher', 'code', code)
373
+ redeemPolicyVoucher: async (redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
381
374
  // verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
382
375
  assertParamExists('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto)
383
- const localVarPath = `/discountservice/v1/policy-vouchers/redeem`
384
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
376
+ const localVarPath = `/discountservice/v1/policy-vouchers/redeem`;
385
377
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
386
378
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
387
379
  let baseOptions;
@@ -420,19 +412,15 @@ export const PolicyVouchersApiAxiosParamCreator = function (configuration?: Conf
420
412
  /**
421
413
  * This will withdraw the policy voucher.
422
414
  * @summary Withdraws the policy voucher.
423
- * @param {any} code Unique identifier for the object.
424
415
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
425
416
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
417
  * @param {*} [options] Override http request option.
427
418
  * @throws {RequiredError}
428
419
  */
429
- withdrawPolicyVoucher: async (code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
430
- // verify required parameter 'code' is not null or undefined
431
- assertParamExists('withdrawPolicyVoucher', 'code', code)
420
+ withdrawPolicyVoucher: async (withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
432
421
  // verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
433
422
  assertParamExists('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto)
434
- const localVarPath = `/discountservice/v1/policy-vouchers/withdraw`
435
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
423
+ const localVarPath = `/discountservice/v1/policy-vouchers/withdraw`;
436
424
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
437
425
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
438
426
  let baseOptions;
@@ -481,14 +469,13 @@ export const PolicyVouchersApiFp = function(configuration?: Configuration) {
481
469
  /**
482
470
  * This will charge the policy voucher.
483
471
  * @summary Charges the policy voucher.
484
- * @param {any} code Unique identifier for the object.
485
472
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
486
473
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
474
  * @param {*} [options] Override http request option.
488
475
  * @throws {RequiredError}
489
476
  */
490
- async chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>> {
491
- const localVarAxiosArgs = await localVarAxiosParamCreator.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options);
477
+ async chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChargePolicyVoucherResponseClass>> {
478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options);
492
479
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
493
480
  },
494
481
  /**
@@ -561,27 +548,25 @@ export const PolicyVouchersApiFp = function(configuration?: Configuration) {
561
548
  /**
562
549
  * This will redeem the policy voucher.
563
550
  * @summary Redeems the policy voucher.
564
- * @param {any} code Unique identifier for the object.
565
551
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
566
552
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
553
  * @param {*} [options] Override http request option.
568
554
  * @throws {RequiredError}
569
555
  */
570
- async redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>> {
571
- const localVarAxiosArgs = await localVarAxiosParamCreator.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options);
556
+ async redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RedeemPolicyVoucherResponseClass>> {
557
+ const localVarAxiosArgs = await localVarAxiosParamCreator.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options);
572
558
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
573
559
  },
574
560
  /**
575
561
  * This will withdraw the policy voucher.
576
562
  * @summary Withdraws the policy voucher.
577
- * @param {any} code Unique identifier for the object.
578
563
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
579
564
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
580
565
  * @param {*} [options] Override http request option.
581
566
  * @throws {RequiredError}
582
567
  */
583
- async withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>> {
584
- const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options);
568
+ async withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyVoucherResponseClass>> {
569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options);
585
570
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
586
571
  },
587
572
  }
@@ -597,14 +582,13 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
597
582
  /**
598
583
  * This will charge the policy voucher.
599
584
  * @summary Charges the policy voucher.
600
- * @param {any} code Unique identifier for the object.
601
585
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
602
586
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
603
587
  * @param {*} [options] Override http request option.
604
588
  * @throws {RequiredError}
605
589
  */
606
- chargePolicyVoucher(code: any, chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass> {
607
- return localVarFp.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
590
+ chargePolicyVoucher(chargePolicyVoucherRequestDto: ChargePolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<ChargePolicyVoucherResponseClass> {
591
+ return localVarFp.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
608
592
  },
609
593
  /**
610
594
  * This will check if the account is eligible for a specific voucher.
@@ -671,26 +655,24 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
671
655
  /**
672
656
  * This will redeem the policy voucher.
673
657
  * @summary Redeems the policy voucher.
674
- * @param {any} code Unique identifier for the object.
675
658
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
676
659
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
677
660
  * @param {*} [options] Override http request option.
678
661
  * @throws {RequiredError}
679
662
  */
680
- redeemPolicyVoucher(code: any, redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass> {
681
- return localVarFp.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
663
+ redeemPolicyVoucher(redeemPolicyVoucherRequestDto: RedeemPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<RedeemPolicyVoucherResponseClass> {
664
+ return localVarFp.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
682
665
  },
683
666
  /**
684
667
  * This will withdraw the policy voucher.
685
668
  * @summary Withdraws the policy voucher.
686
- * @param {any} code Unique identifier for the object.
687
669
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
688
670
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
671
  * @param {*} [options] Override http request option.
690
672
  * @throws {RequiredError}
691
673
  */
692
- withdrawPolicyVoucher(code: any, withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass> {
693
- return localVarFp.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
674
+ withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto: WithdrawPolicyVoucherRequestDto, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyVoucherResponseClass> {
675
+ return localVarFp.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options).then((request) => request(axios, basePath));
694
676
  },
695
677
  };
696
678
  };
@@ -701,13 +683,6 @@ export const PolicyVouchersApiFactory = function (configuration?: Configuration,
701
683
  * @interface PolicyVouchersApiChargePolicyVoucherRequest
702
684
  */
703
685
  export interface PolicyVouchersApiChargePolicyVoucherRequest {
704
- /**
705
- * Unique identifier for the object.
706
- * @type {any}
707
- * @memberof PolicyVouchersApiChargePolicyVoucher
708
- */
709
- readonly code: any
710
-
711
686
  /**
712
687
  *
713
688
  * @type {ChargePolicyVoucherRequestDto}
@@ -883,13 +858,6 @@ export interface PolicyVouchersApiListPolicyVouchersRequest {
883
858
  * @interface PolicyVouchersApiRedeemPolicyVoucherRequest
884
859
  */
885
860
  export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
886
- /**
887
- * Unique identifier for the object.
888
- * @type {any}
889
- * @memberof PolicyVouchersApiRedeemPolicyVoucher
890
- */
891
- readonly code: any
892
-
893
861
  /**
894
862
  *
895
863
  * @type {RedeemPolicyVoucherRequestDto}
@@ -911,13 +879,6 @@ export interface PolicyVouchersApiRedeemPolicyVoucherRequest {
911
879
  * @interface PolicyVouchersApiWithdrawPolicyVoucherRequest
912
880
  */
913
881
  export interface PolicyVouchersApiWithdrawPolicyVoucherRequest {
914
- /**
915
- * Unique identifier for the object.
916
- * @type {any}
917
- * @memberof PolicyVouchersApiWithdrawPolicyVoucher
918
- */
919
- readonly code: any
920
-
921
882
  /**
922
883
  *
923
884
  * @type {WithdrawPolicyVoucherRequestDto}
@@ -949,7 +910,7 @@ export class PolicyVouchersApi extends BaseAPI {
949
910
  * @memberof PolicyVouchersApi
950
911
  */
951
912
  public chargePolicyVoucher(requestParameters: PolicyVouchersApiChargePolicyVoucherRequest, options?: AxiosRequestConfig) {
952
- return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.code, requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
913
+ return PolicyVouchersApiFp(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
953
914
  }
954
915
 
955
916
  /**
@@ -1021,7 +982,7 @@ export class PolicyVouchersApi extends BaseAPI {
1021
982
  * @memberof PolicyVouchersApi
1022
983
  */
1023
984
  public redeemPolicyVoucher(requestParameters: PolicyVouchersApiRedeemPolicyVoucherRequest, options?: AxiosRequestConfig) {
1024
- return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.code, requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
985
+ return PolicyVouchersApiFp(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1025
986
  }
1026
987
 
1027
988
  /**
@@ -1033,6 +994,6 @@ export class PolicyVouchersApi extends BaseAPI {
1033
994
  * @memberof PolicyVouchersApi
1034
995
  */
1035
996
  public withdrawPolicyVoucher(requestParameters: PolicyVouchersApiWithdrawPolicyVoucherRequest, options?: AxiosRequestConfig) {
1036
- return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.code, requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
997
+ return PolicyVouchersApiFp(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1037
998
  }
1038
999
  }
@@ -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.
@@ -347,7 +347,7 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
347
347
  * @summary Retrieve the Campaign
348
348
  * @param {string} code Unique identifier for the object.
349
349
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
350
- * @param {number} [expand] You can expand campaign in this endpoint.
350
+ * @param {string} [expand] You can expand campaign in this endpoint.
351
351
  * @param {*} [options] Override http request option.
352
352
  * @throws {RequiredError}
353
353
  */
@@ -814,7 +814,7 @@ var CampaignsApiFp = function (configuration) {
814
814
  * @summary Retrieve the Campaign
815
815
  * @param {string} code Unique identifier for the object.
816
816
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
817
- * @param {number} [expand] You can expand campaign in this endpoint.
817
+ * @param {string} [expand] You can expand campaign in this endpoint.
818
818
  * @param {*} [options] Override http request option.
819
819
  * @throws {RequiredError}
820
820
  */
@@ -1022,7 +1022,7 @@ var CampaignsApiFactory = function (configuration, basePath, axios) {
1022
1022
  * @summary Retrieve the Campaign
1023
1023
  * @param {string} code Unique identifier for the object.
1024
1024
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1025
- * @param {number} [expand] You can expand campaign in this endpoint.
1025
+ * @param {string} [expand] You can expand campaign in this endpoint.
1026
1026
  * @param {*} [options] Override http request option.
1027
1027
  * @throws {RequiredError}
1028
1028
  */
@@ -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}
@@ -95,25 +95,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
95
95
  /**
96
96
  * This will charge the policy voucher.
97
97
  * @summary Charges the policy voucher.
98
- * @param {any} code Unique identifier for the object.
99
98
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
100
99
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
100
  * @param {*} [options] Override http request option.
102
101
  * @throws {RequiredError}
103
102
  */
104
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
103
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
105
104
  if (options === void 0) { options = {}; }
106
105
  return __awaiter(_this, void 0, void 0, function () {
107
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
107
  return __generator(this, function (_a) {
109
108
  switch (_a.label) {
110
109
  case 0:
111
- // verify required parameter 'code' is not null or undefined
112
- (0, common_1.assertParamExists)('chargePolicyVoucher', 'code', code);
113
110
  // verify required parameter 'chargePolicyVoucherRequestDto' is not null or undefined
114
111
  (0, common_1.assertParamExists)('chargePolicyVoucher', 'chargePolicyVoucherRequestDto', chargePolicyVoucherRequestDto);
115
- localVarPath = "/discountservice/v1/policy-vouchers/charge"
116
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
112
+ localVarPath = "/discountservice/v1/policy-vouchers/charge";
117
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
114
  if (configuration) {
119
115
  baseOptions = configuration.baseOptions;
@@ -418,25 +414,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
418
414
  /**
419
415
  * This will redeem the policy voucher.
420
416
  * @summary Redeems the policy voucher.
421
- * @param {any} code Unique identifier for the object.
422
417
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
423
418
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
424
419
  * @param {*} [options] Override http request option.
425
420
  * @throws {RequiredError}
426
421
  */
427
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
422
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
428
423
  if (options === void 0) { options = {}; }
429
424
  return __awaiter(_this, void 0, void 0, function () {
430
425
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
431
426
  return __generator(this, function (_a) {
432
427
  switch (_a.label) {
433
428
  case 0:
434
- // verify required parameter 'code' is not null or undefined
435
- (0, common_1.assertParamExists)('redeemPolicyVoucher', 'code', code);
436
429
  // verify required parameter 'redeemPolicyVoucherRequestDto' is not null or undefined
437
430
  (0, common_1.assertParamExists)('redeemPolicyVoucher', 'redeemPolicyVoucherRequestDto', redeemPolicyVoucherRequestDto);
438
- localVarPath = "/discountservice/v1/policy-vouchers/redeem"
439
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
431
+ localVarPath = "/discountservice/v1/policy-vouchers/redeem";
440
432
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
441
433
  if (configuration) {
442
434
  baseOptions = configuration.baseOptions;
@@ -471,25 +463,21 @@ var PolicyVouchersApiAxiosParamCreator = function (configuration) {
471
463
  /**
472
464
  * This will withdraw the policy voucher.
473
465
  * @summary Withdraws the policy voucher.
474
- * @param {any} code Unique identifier for the object.
475
466
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
476
467
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
477
468
  * @param {*} [options] Override http request option.
478
469
  * @throws {RequiredError}
479
470
  */
480
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
471
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
481
472
  if (options === void 0) { options = {}; }
482
473
  return __awaiter(_this, void 0, void 0, function () {
483
474
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
484
475
  return __generator(this, function (_a) {
485
476
  switch (_a.label) {
486
477
  case 0:
487
- // verify required parameter 'code' is not null or undefined
488
- (0, common_1.assertParamExists)('withdrawPolicyVoucher', 'code', code);
489
478
  // verify required parameter 'withdrawPolicyVoucherRequestDto' is not null or undefined
490
479
  (0, common_1.assertParamExists)('withdrawPolicyVoucher', 'withdrawPolicyVoucherRequestDto', withdrawPolicyVoucherRequestDto);
491
- localVarPath = "/discountservice/v1/policy-vouchers/withdraw"
492
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
480
+ localVarPath = "/discountservice/v1/policy-vouchers/withdraw";
493
481
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
494
482
  if (configuration) {
495
483
  baseOptions = configuration.baseOptions;
@@ -534,18 +522,17 @@ var PolicyVouchersApiFp = function (configuration) {
534
522
  /**
535
523
  * This will charge the policy voucher.
536
524
  * @summary Charges the policy voucher.
537
- * @param {any} code Unique identifier for the object.
538
525
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
539
526
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
540
527
  * @param {*} [options] Override http request option.
541
528
  * @throws {RequiredError}
542
529
  */
543
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
530
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
544
531
  return __awaiter(this, void 0, void 0, function () {
545
532
  var localVarAxiosArgs;
546
533
  return __generator(this, function (_a) {
547
534
  switch (_a.label) {
548
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options)];
535
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options)];
549
536
  case 1:
550
537
  localVarAxiosArgs = _a.sent();
551
538
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -668,18 +655,17 @@ var PolicyVouchersApiFp = function (configuration) {
668
655
  /**
669
656
  * This will redeem the policy voucher.
670
657
  * @summary Redeems the policy voucher.
671
- * @param {any} code Unique identifier for the object.
672
658
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
673
659
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
674
660
  * @param {*} [options] Override http request option.
675
661
  * @throws {RequiredError}
676
662
  */
677
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
663
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
678
664
  return __awaiter(this, void 0, void 0, function () {
679
665
  var localVarAxiosArgs;
680
666
  return __generator(this, function (_a) {
681
667
  switch (_a.label) {
682
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options)];
668
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options)];
683
669
  case 1:
684
670
  localVarAxiosArgs = _a.sent();
685
671
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -690,18 +676,17 @@ var PolicyVouchersApiFp = function (configuration) {
690
676
  /**
691
677
  * This will withdraw the policy voucher.
692
678
  * @summary Withdraws the policy voucher.
693
- * @param {any} code Unique identifier for the object.
694
679
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
695
680
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
696
681
  * @param {*} [options] Override http request option.
697
682
  * @throws {RequiredError}
698
683
  */
699
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
684
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
700
685
  return __awaiter(this, void 0, void 0, function () {
701
686
  var localVarAxiosArgs;
702
687
  return __generator(this, function (_a) {
703
688
  switch (_a.label) {
704
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options)];
689
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options)];
705
690
  case 1:
706
691
  localVarAxiosArgs = _a.sent();
707
692
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -722,14 +707,13 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
722
707
  /**
723
708
  * This will charge the policy voucher.
724
709
  * @summary Charges the policy voucher.
725
- * @param {any} code Unique identifier for the object.
726
710
  * @param {ChargePolicyVoucherRequestDto} chargePolicyVoucherRequestDto
727
711
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
728
712
  * @param {*} [options] Override http request option.
729
713
  * @throws {RequiredError}
730
714
  */
731
- chargePolicyVoucher: function (code, chargePolicyVoucherRequestDto, authorization, options) {
732
- return localVarFp.chargePolicyVoucher(code, chargePolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
715
+ chargePolicyVoucher: function (chargePolicyVoucherRequestDto, authorization, options) {
716
+ return localVarFp.chargePolicyVoucher(chargePolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
733
717
  },
734
718
  /**
735
719
  * This will check if the account is eligible for a specific voucher.
@@ -796,26 +780,24 @@ var PolicyVouchersApiFactory = function (configuration, basePath, axios) {
796
780
  /**
797
781
  * This will redeem the policy voucher.
798
782
  * @summary Redeems the policy voucher.
799
- * @param {any} code Unique identifier for the object.
800
783
  * @param {RedeemPolicyVoucherRequestDto} redeemPolicyVoucherRequestDto
801
784
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
802
785
  * @param {*} [options] Override http request option.
803
786
  * @throws {RequiredError}
804
787
  */
805
- redeemPolicyVoucher: function (code, redeemPolicyVoucherRequestDto, authorization, options) {
806
- return localVarFp.redeemPolicyVoucher(code, redeemPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
788
+ redeemPolicyVoucher: function (redeemPolicyVoucherRequestDto, authorization, options) {
789
+ return localVarFp.redeemPolicyVoucher(redeemPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
807
790
  },
808
791
  /**
809
792
  * This will withdraw the policy voucher.
810
793
  * @summary Withdraws the policy voucher.
811
- * @param {any} code Unique identifier for the object.
812
794
  * @param {WithdrawPolicyVoucherRequestDto} withdrawPolicyVoucherRequestDto
813
795
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
814
796
  * @param {*} [options] Override http request option.
815
797
  * @throws {RequiredError}
816
798
  */
817
- withdrawPolicyVoucher: function (code, withdrawPolicyVoucherRequestDto, authorization, options) {
818
- return localVarFp.withdrawPolicyVoucher(code, withdrawPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
799
+ withdrawPolicyVoucher: function (withdrawPolicyVoucherRequestDto, authorization, options) {
800
+ return localVarFp.withdrawPolicyVoucher(withdrawPolicyVoucherRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
819
801
  },
820
802
  };
821
803
  };
@@ -841,7 +823,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
841
823
  */
842
824
  PolicyVouchersApi.prototype.chargePolicyVoucher = function (requestParameters, options) {
843
825
  var _this = this;
844
- return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.code, requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
826
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).chargePolicyVoucher(requestParameters.chargePolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
845
827
  };
846
828
  /**
847
829
  * This will check if the account is eligible for a specific voucher.
@@ -914,7 +896,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
914
896
  */
915
897
  PolicyVouchersApi.prototype.redeemPolicyVoucher = function (requestParameters, options) {
916
898
  var _this = this;
917
- return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.code, requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
899
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).redeemPolicyVoucher(requestParameters.redeemPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
918
900
  };
919
901
  /**
920
902
  * This will withdraw the policy voucher.
@@ -926,7 +908,7 @@ var PolicyVouchersApi = /** @class */ (function (_super) {
926
908
  */
927
909
  PolicyVouchersApi.prototype.withdrawPolicyVoucher = function (requestParameters, options) {
928
910
  var _this = this;
929
- return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.code, requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
911
+ return (0, exports.PolicyVouchersApiFp)(this.configuration).withdrawPolicyVoucher(requestParameters.withdrawPolicyVoucherRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
930
912
  };
931
913
  return PolicyVouchersApi;
932
914
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/discount-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/discount-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [