@emilgroup/discount-sdk 1.1.1-beta.2 → 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 +2 -2
- package/api/campaigns-api.ts +8 -8
- package/api/policy-vouchers-api.ts +21 -60
- package/dist/api/campaigns-api.d.ts +8 -8
- package/dist/api/campaigns-api.js +38 -91
- package/dist/api/default-api.js +5 -18
- package/dist/api/policy-vouchers-api.d.ts +12 -39
- package/dist/api/policy-vouchers-api.js +44 -103
- package/dist/api/vouchers-api.d.ts +3 -3
- package/dist/api/vouchers-api.js +17 -46
- package/dist/base.js +5 -5
- package/dist/common.d.ts +1 -1
- package/dist/common.js +2 -2
- package/package.json +3 -3
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.
|
|
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.
|
|
24
|
+
yarn add @emilgroup/discount-sdk@1.2.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CampaignApi`.
|
package/api/campaigns-api.ts
CHANGED
|
@@ -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 {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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 {
|
|
1086
|
+
* @type {string}
|
|
1087
1087
|
* @memberof CampaignsApiGetCampaign
|
|
1088
1088
|
*/
|
|
1089
|
-
readonly expand?:
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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(
|
|
491
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.chargePolicyVoucher(
|
|
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(
|
|
571
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.redeemPolicyVoucher(
|
|
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(
|
|
584
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicyVoucher(
|
|
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(
|
|
607
|
-
return localVarFp.chargePolicyVoucher(
|
|
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(
|
|
681
|
-
return localVarFp.redeemPolicyVoucher(
|
|
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(
|
|
693
|
-
return localVarFp.withdrawPolicyVoucher(
|
|
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.
|
|
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.
|
|
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.
|
|
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 {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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 {
|
|
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?:
|
|
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 {
|
|
518
|
+
* @type {string}
|
|
519
519
|
* @memberof CampaignsApiGetCampaign
|
|
520
520
|
*/
|
|
521
|
-
readonly expand?:
|
|
521
|
+
readonly expand?: string;
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
524
|
* Request parameters for listCampaigns operation in CampaignsApi.
|
|
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g
|
|
52
|
-
return g
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
53
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
54
|
function step(op) {
|
|
55
55
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -74,15 +74,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
77
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
79
|
};
|
|
@@ -109,14 +100,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
109
100
|
* @param {*} [options] Override http request option.
|
|
110
101
|
* @throws {RequiredError}
|
|
111
102
|
*/
|
|
112
|
-
createCampaign: function (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
args_1[_i - 2] = arguments[_i];
|
|
116
|
-
}
|
|
117
|
-
return __awaiter(_this, __spreadArray([createCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (createCampaignRequestDto, authorization, options) {
|
|
103
|
+
createCampaign: function (createCampaignRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
118
106
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
119
|
-
if (options === void 0) { options = {}; }
|
|
120
107
|
return __generator(this, function (_a) {
|
|
121
108
|
switch (_a.label) {
|
|
122
109
|
case 0:
|
|
@@ -163,14 +150,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
163
150
|
* @param {*} [options] Override http request option.
|
|
164
151
|
* @throws {RequiredError}
|
|
165
152
|
*/
|
|
166
|
-
createEligibleAccount: function (
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
args_1[_i - 3] = arguments[_i];
|
|
170
|
-
}
|
|
171
|
-
return __awaiter(_this, __spreadArray([code_1, createEligibleAccountRequestDto_1, authorization_1], args_1, true), void 0, function (code, createEligibleAccountRequestDto, authorization, options) {
|
|
153
|
+
createEligibleAccount: function (code, createEligibleAccountRequestDto, authorization, options) {
|
|
154
|
+
if (options === void 0) { options = {}; }
|
|
155
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
172
156
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
173
|
-
if (options === void 0) { options = {}; }
|
|
174
157
|
return __generator(this, function (_a) {
|
|
175
158
|
switch (_a.label) {
|
|
176
159
|
case 0:
|
|
@@ -219,14 +202,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
219
202
|
* @param {*} [options] Override http request option.
|
|
220
203
|
* @throws {RequiredError}
|
|
221
204
|
*/
|
|
222
|
-
deleteCampaign: function (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
args_1[_i - 2] = arguments[_i];
|
|
226
|
-
}
|
|
227
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
205
|
+
deleteCampaign: function (code, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
228
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
229
|
-
if (options === void 0) { options = {}; }
|
|
230
209
|
return __generator(this, function (_a) {
|
|
231
210
|
switch (_a.label) {
|
|
232
211
|
case 0:
|
|
@@ -272,14 +251,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
272
251
|
* @param {*} [options] Override http request option.
|
|
273
252
|
* @throws {RequiredError}
|
|
274
253
|
*/
|
|
275
|
-
deleteEligibleAccount: function (
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
args_1[_i - 3] = arguments[_i];
|
|
279
|
-
}
|
|
280
|
-
return __awaiter(_this, __spreadArray([code_1, accountCode_1, authorization_1], args_1, true), void 0, function (code, accountCode, authorization, options) {
|
|
254
|
+
deleteEligibleAccount: function (code, accountCode, authorization, options) {
|
|
255
|
+
if (options === void 0) { options = {}; }
|
|
256
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
257
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
-
if (options === void 0) { options = {}; }
|
|
283
258
|
return __generator(this, function (_a) {
|
|
284
259
|
switch (_a.label) {
|
|
285
260
|
case 0:
|
|
@@ -327,14 +302,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
327
302
|
* @param {*} [options] Override http request option.
|
|
328
303
|
* @throws {RequiredError}
|
|
329
304
|
*/
|
|
330
|
-
deleteEligibleAccounts: function (
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
args_1[_i - 2] = arguments[_i];
|
|
334
|
-
}
|
|
335
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
305
|
+
deleteEligibleAccounts: function (code, authorization, options) {
|
|
306
|
+
if (options === void 0) { options = {}; }
|
|
307
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
336
308
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
337
|
-
if (options === void 0) { options = {}; }
|
|
338
309
|
return __generator(this, function (_a) {
|
|
339
310
|
switch (_a.label) {
|
|
340
311
|
case 0:
|
|
@@ -376,18 +347,14 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
376
347
|
* @summary Retrieve the Campaign
|
|
377
348
|
* @param {string} code Unique identifier for the object.
|
|
378
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
379
|
-
* @param {
|
|
350
|
+
* @param {string} [expand] You can expand campaign in this endpoint.
|
|
380
351
|
* @param {*} [options] Override http request option.
|
|
381
352
|
* @throws {RequiredError}
|
|
382
353
|
*/
|
|
383
|
-
getCampaign: function (
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
args_1[_i - 3] = arguments[_i];
|
|
387
|
-
}
|
|
388
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) {
|
|
354
|
+
getCampaign: function (code, authorization, expand, options) {
|
|
355
|
+
if (options === void 0) { options = {}; }
|
|
356
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
389
357
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
390
|
-
if (options === void 0) { options = {}; }
|
|
391
358
|
return __generator(this, function (_a) {
|
|
392
359
|
switch (_a.label) {
|
|
393
360
|
case 0:
|
|
@@ -441,14 +408,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
441
408
|
* @param {*} [options] Override http request option.
|
|
442
409
|
* @throws {RequiredError}
|
|
443
410
|
*/
|
|
444
|
-
listCampaigns: function (
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
args_1[_i - 8] = arguments[_i];
|
|
448
|
-
}
|
|
449
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
411
|
+
listCampaigns: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
412
|
+
if (options === void 0) { options = {}; }
|
|
413
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
450
414
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
451
|
-
if (options === void 0) { options = {}; }
|
|
452
415
|
return __generator(this, function (_a) {
|
|
453
416
|
switch (_a.label) {
|
|
454
417
|
case 0:
|
|
@@ -517,14 +480,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
517
480
|
* @param {*} [options] Override http request option.
|
|
518
481
|
* @throws {RequiredError}
|
|
519
482
|
*/
|
|
520
|
-
listEligibleAccounts: function (
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
args_1[_i - 8] = arguments[_i];
|
|
524
|
-
}
|
|
525
|
-
return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
483
|
+
listEligibleAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
484
|
+
if (options === void 0) { options = {}; }
|
|
485
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
526
486
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
527
|
-
if (options === void 0) { options = {}; }
|
|
528
487
|
return __generator(this, function (_a) {
|
|
529
488
|
switch (_a.label) {
|
|
530
489
|
case 0:
|
|
@@ -588,14 +547,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
588
547
|
* @param {*} [options] Override http request option.
|
|
589
548
|
* @throws {RequiredError}
|
|
590
549
|
*/
|
|
591
|
-
updateCampaign: function (
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
args_1[_i - 3] = arguments[_i];
|
|
595
|
-
}
|
|
596
|
-
return __awaiter(_this, __spreadArray([code_1, updateCampaignRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignRequestDto, authorization, options) {
|
|
550
|
+
updateCampaign: function (code, updateCampaignRequestDto, authorization, options) {
|
|
551
|
+
if (options === void 0) { options = {}; }
|
|
552
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
597
553
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
598
|
-
if (options === void 0) { options = {}; }
|
|
599
554
|
return __generator(this, function (_a) {
|
|
600
555
|
switch (_a.label) {
|
|
601
556
|
case 0:
|
|
@@ -645,14 +600,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
645
600
|
* @param {*} [options] Override http request option.
|
|
646
601
|
* @throws {RequiredError}
|
|
647
602
|
*/
|
|
648
|
-
updateCampaignStatus: function (
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
args_1[_i - 3] = arguments[_i];
|
|
652
|
-
}
|
|
653
|
-
return __awaiter(_this, __spreadArray([code_1, updateCampaignStatusRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateCampaignStatusRequestDto, authorization, options) {
|
|
603
|
+
updateCampaignStatus: function (code, updateCampaignStatusRequestDto, authorization, options) {
|
|
604
|
+
if (options === void 0) { options = {}; }
|
|
605
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
654
606
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
655
|
-
if (options === void 0) { options = {}; }
|
|
656
607
|
return __generator(this, function (_a) {
|
|
657
608
|
switch (_a.label) {
|
|
658
609
|
case 0:
|
|
@@ -701,14 +652,10 @@ var CampaignsApiAxiosParamCreator = function (configuration) {
|
|
|
701
652
|
* @param {*} [options] Override http request option.
|
|
702
653
|
* @throws {RequiredError}
|
|
703
654
|
*/
|
|
704
|
-
uploadEligibleAccounts: function (
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
args_1[_i - 2] = arguments[_i];
|
|
708
|
-
}
|
|
709
|
-
return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) {
|
|
655
|
+
uploadEligibleAccounts: function (code, authorization, options) {
|
|
656
|
+
if (options === void 0) { options = {}; }
|
|
657
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
710
658
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
711
|
-
if (options === void 0) { options = {}; }
|
|
712
659
|
return __generator(this, function (_a) {
|
|
713
660
|
switch (_a.label) {
|
|
714
661
|
case 0:
|
|
@@ -867,7 +814,7 @@ var CampaignsApiFp = function (configuration) {
|
|
|
867
814
|
* @summary Retrieve the Campaign
|
|
868
815
|
* @param {string} code Unique identifier for the object.
|
|
869
816
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
870
|
-
* @param {
|
|
817
|
+
* @param {string} [expand] You can expand campaign in this endpoint.
|
|
871
818
|
* @param {*} [options] Override http request option.
|
|
872
819
|
* @throws {RequiredError}
|
|
873
820
|
*/
|
|
@@ -1075,7 +1022,7 @@ var CampaignsApiFactory = function (configuration, basePath, axios) {
|
|
|
1075
1022
|
* @summary Retrieve the Campaign
|
|
1076
1023
|
* @param {string} code Unique identifier for the object.
|
|
1077
1024
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1078
|
-
* @param {
|
|
1025
|
+
* @param {string} [expand] You can expand campaign in this endpoint.
|
|
1079
1026
|
* @param {*} [options] Override http request option.
|
|
1080
1027
|
* @throws {RequiredError}
|
|
1081
1028
|
*/
|