@wix/pricing-plans 1.0.30 → 1.0.32
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/build/cjs/src/pricing-plans-v2-order.http.d.ts +8 -8
- package/build/cjs/src/pricing-plans-v2-order.http.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.public.d.ts +92 -9
- package/build/cjs/src/pricing-plans-v2-order.public.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.types.d.ts +640 -4
- package/build/cjs/src/pricing-plans-v2-order.types.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.universal.d.ts +589 -13
- package/build/cjs/src/pricing-plans-v2-order.universal.js +0 -2
- package/build/cjs/src/pricing-plans-v2-order.universal.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.http.d.ts +11 -11
- package/build/cjs/src/pricing-plans-v2-plan.http.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.public.d.ts +76 -10
- package/build/cjs/src/pricing-plans-v2-plan.types.d.ts +298 -2
- package/build/cjs/src/pricing-plans-v2-plan.types.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.universal.d.ts +242 -12
- package/build/cjs/src/pricing-plans-v2-plan.universal.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.http.d.ts +8 -8
- package/build/es/src/pricing-plans-v2-order.http.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.public.d.ts +92 -9
- package/build/es/src/pricing-plans-v2-order.public.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.types.d.ts +640 -4
- package/build/es/src/pricing-plans-v2-order.types.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.universal.d.ts +589 -13
- package/build/es/src/pricing-plans-v2-order.universal.js +0 -2
- package/build/es/src/pricing-plans-v2-order.universal.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.http.d.ts +11 -11
- package/build/es/src/pricing-plans-v2-plan.http.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.public.d.ts +76 -10
- package/build/es/src/pricing-plans-v2-plan.types.d.ts +298 -2
- package/build/es/src/pricing-plans-v2-plan.types.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.universal.d.ts +242 -12
- package/build/es/src/pricing-plans-v2-plan.universal.js.map +1 -1
- package/package.json +2 -2
@@ -57,6 +57,12 @@ export interface Plan {
|
|
57
57
|
buyerCanCancel?: boolean | null;
|
58
58
|
/** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
|
59
59
|
termsAndConditions?: string | null;
|
60
|
+
/**
|
61
|
+
* ID of the plan's checkout form.
|
62
|
+
*
|
63
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
64
|
+
*/
|
65
|
+
formId?: string | null;
|
60
66
|
}
|
61
67
|
/** This wrapper type exist in order to distinguish an empty string list from no list at all in update requests. */
|
62
68
|
export interface StringList {
|
@@ -181,8 +187,11 @@ export interface PublicPlan {
|
|
181
187
|
buyerCanCancel?: boolean | null;
|
182
188
|
/** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
|
183
189
|
termsAndConditions?: string | null;
|
184
|
-
|
185
|
-
|
190
|
+
/**
|
191
|
+
* ID of the plan's checkout form.
|
192
|
+
*
|
193
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
194
|
+
*/
|
186
195
|
formId?: string | null;
|
187
196
|
}
|
188
197
|
export interface PagingMetadataV2 {
|
@@ -367,3 +376,290 @@ export interface ArrangePlansRequest {
|
|
367
376
|
}
|
368
377
|
export interface ArrangePlansResponse {
|
369
378
|
}
|
379
|
+
export interface ListPublicPlansResponseNonNullableFields {
|
380
|
+
plans: {
|
381
|
+
id: string;
|
382
|
+
perks?: {
|
383
|
+
values: string[];
|
384
|
+
};
|
385
|
+
pricing?: {
|
386
|
+
subscription?: {
|
387
|
+
cycleDuration?: {
|
388
|
+
unit: PeriodUnit;
|
389
|
+
};
|
390
|
+
};
|
391
|
+
singlePaymentForDuration?: {
|
392
|
+
unit: PeriodUnit;
|
393
|
+
};
|
394
|
+
price?: {
|
395
|
+
value: string;
|
396
|
+
currency: string;
|
397
|
+
};
|
398
|
+
feeConfigs: {
|
399
|
+
fee?: {
|
400
|
+
name: string;
|
401
|
+
amount: string;
|
402
|
+
};
|
403
|
+
appliedAt: AppliedAt;
|
404
|
+
}[];
|
405
|
+
};
|
406
|
+
primary: boolean;
|
407
|
+
}[];
|
408
|
+
}
|
409
|
+
export interface QueryPublicPlansResponseNonNullableFields {
|
410
|
+
plans: {
|
411
|
+
id: string;
|
412
|
+
perks?: {
|
413
|
+
values: string[];
|
414
|
+
};
|
415
|
+
pricing?: {
|
416
|
+
subscription?: {
|
417
|
+
cycleDuration?: {
|
418
|
+
unit: PeriodUnit;
|
419
|
+
};
|
420
|
+
};
|
421
|
+
singlePaymentForDuration?: {
|
422
|
+
unit: PeriodUnit;
|
423
|
+
};
|
424
|
+
price?: {
|
425
|
+
value: string;
|
426
|
+
currency: string;
|
427
|
+
};
|
428
|
+
feeConfigs: {
|
429
|
+
fee?: {
|
430
|
+
name: string;
|
431
|
+
amount: string;
|
432
|
+
};
|
433
|
+
appliedAt: AppliedAt;
|
434
|
+
}[];
|
435
|
+
};
|
436
|
+
primary: boolean;
|
437
|
+
}[];
|
438
|
+
}
|
439
|
+
export interface GetPlanResponseNonNullableFields {
|
440
|
+
plan?: {
|
441
|
+
id: string;
|
442
|
+
perks?: {
|
443
|
+
values: string[];
|
444
|
+
};
|
445
|
+
pricing?: {
|
446
|
+
subscription?: {
|
447
|
+
cycleDuration?: {
|
448
|
+
unit: PeriodUnit;
|
449
|
+
};
|
450
|
+
};
|
451
|
+
singlePaymentForDuration?: {
|
452
|
+
unit: PeriodUnit;
|
453
|
+
};
|
454
|
+
price?: {
|
455
|
+
value: string;
|
456
|
+
currency: string;
|
457
|
+
};
|
458
|
+
feeConfigs: {
|
459
|
+
fee?: {
|
460
|
+
name: string;
|
461
|
+
amount: string;
|
462
|
+
};
|
463
|
+
appliedAt: AppliedAt;
|
464
|
+
}[];
|
465
|
+
};
|
466
|
+
archived: boolean;
|
467
|
+
primary: boolean;
|
468
|
+
hasOrders: boolean;
|
469
|
+
};
|
470
|
+
}
|
471
|
+
export interface ListPlansResponseNonNullableFields {
|
472
|
+
plans: {
|
473
|
+
id: string;
|
474
|
+
perks?: {
|
475
|
+
values: string[];
|
476
|
+
};
|
477
|
+
pricing?: {
|
478
|
+
subscription?: {
|
479
|
+
cycleDuration?: {
|
480
|
+
unit: PeriodUnit;
|
481
|
+
};
|
482
|
+
};
|
483
|
+
singlePaymentForDuration?: {
|
484
|
+
unit: PeriodUnit;
|
485
|
+
};
|
486
|
+
price?: {
|
487
|
+
value: string;
|
488
|
+
currency: string;
|
489
|
+
};
|
490
|
+
feeConfigs: {
|
491
|
+
fee?: {
|
492
|
+
name: string;
|
493
|
+
amount: string;
|
494
|
+
};
|
495
|
+
appliedAt: AppliedAt;
|
496
|
+
}[];
|
497
|
+
};
|
498
|
+
archived: boolean;
|
499
|
+
primary: boolean;
|
500
|
+
hasOrders: boolean;
|
501
|
+
}[];
|
502
|
+
}
|
503
|
+
export interface GetPlanStatsResponseNonNullableFields {
|
504
|
+
totalPlans: number;
|
505
|
+
}
|
506
|
+
export interface CreatePlanResponseNonNullableFields {
|
507
|
+
plan?: {
|
508
|
+
id: string;
|
509
|
+
perks?: {
|
510
|
+
values: string[];
|
511
|
+
};
|
512
|
+
pricing?: {
|
513
|
+
subscription?: {
|
514
|
+
cycleDuration?: {
|
515
|
+
unit: PeriodUnit;
|
516
|
+
};
|
517
|
+
};
|
518
|
+
singlePaymentForDuration?: {
|
519
|
+
unit: PeriodUnit;
|
520
|
+
};
|
521
|
+
price?: {
|
522
|
+
value: string;
|
523
|
+
currency: string;
|
524
|
+
};
|
525
|
+
feeConfigs: {
|
526
|
+
fee?: {
|
527
|
+
name: string;
|
528
|
+
amount: string;
|
529
|
+
};
|
530
|
+
appliedAt: AppliedAt;
|
531
|
+
}[];
|
532
|
+
};
|
533
|
+
archived: boolean;
|
534
|
+
primary: boolean;
|
535
|
+
hasOrders: boolean;
|
536
|
+
};
|
537
|
+
}
|
538
|
+
export interface UpdatePlanResponseNonNullableFields {
|
539
|
+
plan?: {
|
540
|
+
id: string;
|
541
|
+
perks?: {
|
542
|
+
values: string[];
|
543
|
+
};
|
544
|
+
pricing?: {
|
545
|
+
subscription?: {
|
546
|
+
cycleDuration?: {
|
547
|
+
unit: PeriodUnit;
|
548
|
+
};
|
549
|
+
};
|
550
|
+
singlePaymentForDuration?: {
|
551
|
+
unit: PeriodUnit;
|
552
|
+
};
|
553
|
+
price?: {
|
554
|
+
value: string;
|
555
|
+
currency: string;
|
556
|
+
};
|
557
|
+
feeConfigs: {
|
558
|
+
fee?: {
|
559
|
+
name: string;
|
560
|
+
amount: string;
|
561
|
+
};
|
562
|
+
appliedAt: AppliedAt;
|
563
|
+
}[];
|
564
|
+
};
|
565
|
+
archived: boolean;
|
566
|
+
primary: boolean;
|
567
|
+
hasOrders: boolean;
|
568
|
+
};
|
569
|
+
}
|
570
|
+
export interface SetPlanVisibilityResponseNonNullableFields {
|
571
|
+
plan?: {
|
572
|
+
id: string;
|
573
|
+
perks?: {
|
574
|
+
values: string[];
|
575
|
+
};
|
576
|
+
pricing?: {
|
577
|
+
subscription?: {
|
578
|
+
cycleDuration?: {
|
579
|
+
unit: PeriodUnit;
|
580
|
+
};
|
581
|
+
};
|
582
|
+
singlePaymentForDuration?: {
|
583
|
+
unit: PeriodUnit;
|
584
|
+
};
|
585
|
+
price?: {
|
586
|
+
value: string;
|
587
|
+
currency: string;
|
588
|
+
};
|
589
|
+
feeConfigs: {
|
590
|
+
fee?: {
|
591
|
+
name: string;
|
592
|
+
amount: string;
|
593
|
+
};
|
594
|
+
appliedAt: AppliedAt;
|
595
|
+
}[];
|
596
|
+
};
|
597
|
+
archived: boolean;
|
598
|
+
primary: boolean;
|
599
|
+
hasOrders: boolean;
|
600
|
+
};
|
601
|
+
}
|
602
|
+
export interface MakePlanPrimaryResponseNonNullableFields {
|
603
|
+
plan?: {
|
604
|
+
id: string;
|
605
|
+
perks?: {
|
606
|
+
values: string[];
|
607
|
+
};
|
608
|
+
pricing?: {
|
609
|
+
subscription?: {
|
610
|
+
cycleDuration?: {
|
611
|
+
unit: PeriodUnit;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
singlePaymentForDuration?: {
|
615
|
+
unit: PeriodUnit;
|
616
|
+
};
|
617
|
+
price?: {
|
618
|
+
value: string;
|
619
|
+
currency: string;
|
620
|
+
};
|
621
|
+
feeConfigs: {
|
622
|
+
fee?: {
|
623
|
+
name: string;
|
624
|
+
amount: string;
|
625
|
+
};
|
626
|
+
appliedAt: AppliedAt;
|
627
|
+
}[];
|
628
|
+
};
|
629
|
+
archived: boolean;
|
630
|
+
primary: boolean;
|
631
|
+
hasOrders: boolean;
|
632
|
+
};
|
633
|
+
}
|
634
|
+
export interface ArchivePlanResponseNonNullableFields {
|
635
|
+
plan?: {
|
636
|
+
id: string;
|
637
|
+
perks?: {
|
638
|
+
values: string[];
|
639
|
+
};
|
640
|
+
pricing?: {
|
641
|
+
subscription?: {
|
642
|
+
cycleDuration?: {
|
643
|
+
unit: PeriodUnit;
|
644
|
+
};
|
645
|
+
};
|
646
|
+
singlePaymentForDuration?: {
|
647
|
+
unit: PeriodUnit;
|
648
|
+
};
|
649
|
+
price?: {
|
650
|
+
value: string;
|
651
|
+
currency: string;
|
652
|
+
};
|
653
|
+
feeConfigs: {
|
654
|
+
fee?: {
|
655
|
+
name: string;
|
656
|
+
amount: string;
|
657
|
+
};
|
658
|
+
appliedAt: AppliedAt;
|
659
|
+
}[];
|
660
|
+
};
|
661
|
+
archived: boolean;
|
662
|
+
primary: boolean;
|
663
|
+
hasOrders: boolean;
|
664
|
+
};
|
665
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pricing-plans-v2-plan.types.js","sourceRoot":"","sources":["../../../src/pricing-plans-v2-plan.types.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"pricing-plans-v2-plan.types.js","sourceRoot":"","sources":["../../../src/pricing-plans-v2-plan.types.ts"],"names":[],"mappings":";;;AAyHA,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,qCAAuB,CAAA;IACvB,yBAAW,CAAA;IACX,2BAAa,CAAA;IACb,6BAAe,CAAA;IACf,2BAAa,CAAA;AACf,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAsBD,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,0DAA6C,CAAA;IAC7C,mHAAmH;IACnH,4CAA+B,CAAA;AACjC,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAkGD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB;AAuCD,IAAY,cAOX;AAPD,WAAY,cAAc;IACxB,yCAAyC;IACzC,mCAAiB,CAAA;IACjB,2CAA2C;IAC3C,uCAAqB,CAAA;IACrB,sDAAsD;IACtD,6DAA2C,CAAA;AAC7C,CAAC,EAPW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAOzB;AAED,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,2CAA2C;IAC3C,uDAAuC,CAAA;IACvC,iCAAiC;IACjC,iCAAiB,CAAA;IACjB,iCAAiC;IACjC,iCAAiB,CAAA;AACnB,CAAC,EAPW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAOvB"}
|
@@ -79,6 +79,8 @@ export interface Plan {
|
|
79
79
|
buyerCanCancel?: boolean | null;
|
80
80
|
/** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
|
81
81
|
termsAndConditions?: string | null;
|
82
|
+
/** Reserved for internal use. */
|
83
|
+
formId?: string | null;
|
82
84
|
}
|
83
85
|
/** This wrapper type exist in order to distinguish an empty string list from no list at all in update requests. */
|
84
86
|
export interface StringList {
|
@@ -219,9 +221,11 @@ export interface PublicPlan {
|
|
219
221
|
buyerCanCancel?: boolean | null;
|
220
222
|
/** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
|
221
223
|
termsAndConditions?: string | null;
|
222
|
-
/**
|
223
|
-
|
224
|
-
|
224
|
+
/**
|
225
|
+
* ID of the plan's checkout form.
|
226
|
+
*
|
227
|
+
* Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).
|
228
|
+
*/
|
225
229
|
formId?: string | null;
|
226
230
|
}
|
227
231
|
export interface PagingMetadataV2 {
|
@@ -438,6 +442,230 @@ export interface ArrangePlansRequest {
|
|
438
442
|
}
|
439
443
|
export interface ArrangePlansResponse {
|
440
444
|
}
|
445
|
+
export interface ListPublicPlansResponseNonNullableFields {
|
446
|
+
plans: {
|
447
|
+
_id: string;
|
448
|
+
perks?: {
|
449
|
+
values: string[];
|
450
|
+
};
|
451
|
+
pricing?: {
|
452
|
+
subscription?: {
|
453
|
+
cycleDuration?: {
|
454
|
+
unit: PeriodUnit;
|
455
|
+
};
|
456
|
+
};
|
457
|
+
singlePaymentForDuration?: {
|
458
|
+
unit: PeriodUnit;
|
459
|
+
};
|
460
|
+
price?: {
|
461
|
+
value: string;
|
462
|
+
currency: string;
|
463
|
+
};
|
464
|
+
};
|
465
|
+
primary: boolean;
|
466
|
+
}[];
|
467
|
+
}
|
468
|
+
export interface QueryPublicPlansResponseNonNullableFields {
|
469
|
+
plans: {
|
470
|
+
_id: string;
|
471
|
+
perks?: {
|
472
|
+
values: string[];
|
473
|
+
};
|
474
|
+
pricing?: {
|
475
|
+
subscription?: {
|
476
|
+
cycleDuration?: {
|
477
|
+
unit: PeriodUnit;
|
478
|
+
};
|
479
|
+
};
|
480
|
+
singlePaymentForDuration?: {
|
481
|
+
unit: PeriodUnit;
|
482
|
+
};
|
483
|
+
price?: {
|
484
|
+
value: string;
|
485
|
+
currency: string;
|
486
|
+
};
|
487
|
+
};
|
488
|
+
primary: boolean;
|
489
|
+
}[];
|
490
|
+
}
|
491
|
+
export interface GetPlanResponseNonNullableFields {
|
492
|
+
plan?: {
|
493
|
+
_id: string;
|
494
|
+
perks?: {
|
495
|
+
values: string[];
|
496
|
+
};
|
497
|
+
pricing?: {
|
498
|
+
subscription?: {
|
499
|
+
cycleDuration?: {
|
500
|
+
unit: PeriodUnit;
|
501
|
+
};
|
502
|
+
};
|
503
|
+
singlePaymentForDuration?: {
|
504
|
+
unit: PeriodUnit;
|
505
|
+
};
|
506
|
+
price?: {
|
507
|
+
value: string;
|
508
|
+
currency: string;
|
509
|
+
};
|
510
|
+
};
|
511
|
+
archived: boolean;
|
512
|
+
primary: boolean;
|
513
|
+
hasOrders: boolean;
|
514
|
+
};
|
515
|
+
}
|
516
|
+
export interface ListPlansResponseNonNullableFields {
|
517
|
+
plans: {
|
518
|
+
_id: string;
|
519
|
+
perks?: {
|
520
|
+
values: string[];
|
521
|
+
};
|
522
|
+
pricing?: {
|
523
|
+
subscription?: {
|
524
|
+
cycleDuration?: {
|
525
|
+
unit: PeriodUnit;
|
526
|
+
};
|
527
|
+
};
|
528
|
+
singlePaymentForDuration?: {
|
529
|
+
unit: PeriodUnit;
|
530
|
+
};
|
531
|
+
price?: {
|
532
|
+
value: string;
|
533
|
+
currency: string;
|
534
|
+
};
|
535
|
+
};
|
536
|
+
archived: boolean;
|
537
|
+
primary: boolean;
|
538
|
+
hasOrders: boolean;
|
539
|
+
}[];
|
540
|
+
}
|
541
|
+
export interface GetPlanStatsResponseNonNullableFields {
|
542
|
+
totalPlans: number;
|
543
|
+
}
|
544
|
+
export interface CreatePlanResponseNonNullableFields {
|
545
|
+
plan?: {
|
546
|
+
_id: string;
|
547
|
+
perks?: {
|
548
|
+
values: string[];
|
549
|
+
};
|
550
|
+
pricing?: {
|
551
|
+
subscription?: {
|
552
|
+
cycleDuration?: {
|
553
|
+
unit: PeriodUnit;
|
554
|
+
};
|
555
|
+
};
|
556
|
+
singlePaymentForDuration?: {
|
557
|
+
unit: PeriodUnit;
|
558
|
+
};
|
559
|
+
price?: {
|
560
|
+
value: string;
|
561
|
+
currency: string;
|
562
|
+
};
|
563
|
+
};
|
564
|
+
archived: boolean;
|
565
|
+
primary: boolean;
|
566
|
+
hasOrders: boolean;
|
567
|
+
};
|
568
|
+
}
|
569
|
+
export interface UpdatePlanResponseNonNullableFields {
|
570
|
+
plan?: {
|
571
|
+
_id: string;
|
572
|
+
perks?: {
|
573
|
+
values: string[];
|
574
|
+
};
|
575
|
+
pricing?: {
|
576
|
+
subscription?: {
|
577
|
+
cycleDuration?: {
|
578
|
+
unit: PeriodUnit;
|
579
|
+
};
|
580
|
+
};
|
581
|
+
singlePaymentForDuration?: {
|
582
|
+
unit: PeriodUnit;
|
583
|
+
};
|
584
|
+
price?: {
|
585
|
+
value: string;
|
586
|
+
currency: string;
|
587
|
+
};
|
588
|
+
};
|
589
|
+
archived: boolean;
|
590
|
+
primary: boolean;
|
591
|
+
hasOrders: boolean;
|
592
|
+
};
|
593
|
+
}
|
594
|
+
export interface SetPlanVisibilityResponseNonNullableFields {
|
595
|
+
plan?: {
|
596
|
+
_id: string;
|
597
|
+
perks?: {
|
598
|
+
values: string[];
|
599
|
+
};
|
600
|
+
pricing?: {
|
601
|
+
subscription?: {
|
602
|
+
cycleDuration?: {
|
603
|
+
unit: PeriodUnit;
|
604
|
+
};
|
605
|
+
};
|
606
|
+
singlePaymentForDuration?: {
|
607
|
+
unit: PeriodUnit;
|
608
|
+
};
|
609
|
+
price?: {
|
610
|
+
value: string;
|
611
|
+
currency: string;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
archived: boolean;
|
615
|
+
primary: boolean;
|
616
|
+
hasOrders: boolean;
|
617
|
+
};
|
618
|
+
}
|
619
|
+
export interface MakePlanPrimaryResponseNonNullableFields {
|
620
|
+
plan?: {
|
621
|
+
_id: string;
|
622
|
+
perks?: {
|
623
|
+
values: string[];
|
624
|
+
};
|
625
|
+
pricing?: {
|
626
|
+
subscription?: {
|
627
|
+
cycleDuration?: {
|
628
|
+
unit: PeriodUnit;
|
629
|
+
};
|
630
|
+
};
|
631
|
+
singlePaymentForDuration?: {
|
632
|
+
unit: PeriodUnit;
|
633
|
+
};
|
634
|
+
price?: {
|
635
|
+
value: string;
|
636
|
+
currency: string;
|
637
|
+
};
|
638
|
+
};
|
639
|
+
archived: boolean;
|
640
|
+
primary: boolean;
|
641
|
+
hasOrders: boolean;
|
642
|
+
};
|
643
|
+
}
|
644
|
+
export interface ArchivePlanResponseNonNullableFields {
|
645
|
+
plan?: {
|
646
|
+
_id: string;
|
647
|
+
perks?: {
|
648
|
+
values: string[];
|
649
|
+
};
|
650
|
+
pricing?: {
|
651
|
+
subscription?: {
|
652
|
+
cycleDuration?: {
|
653
|
+
unit: PeriodUnit;
|
654
|
+
};
|
655
|
+
};
|
656
|
+
singlePaymentForDuration?: {
|
657
|
+
unit: PeriodUnit;
|
658
|
+
};
|
659
|
+
price?: {
|
660
|
+
value: string;
|
661
|
+
currency: string;
|
662
|
+
};
|
663
|
+
};
|
664
|
+
archived: boolean;
|
665
|
+
primary: boolean;
|
666
|
+
hasOrders: boolean;
|
667
|
+
};
|
668
|
+
}
|
441
669
|
/**
|
442
670
|
* Retrieves a list of public pricing plans.
|
443
671
|
*
|
@@ -452,7 +680,7 @@ export interface ArrangePlansResponse {
|
|
452
680
|
* @applicableIdentity VISITOR
|
453
681
|
* @returns Fulfilled - List of public pricing plans.
|
454
682
|
*/
|
455
|
-
export declare function listPublicPlans(options?: ListPublicPlansOptions): Promise<ListPublicPlansResponse>;
|
683
|
+
export declare function listPublicPlans(options?: ListPublicPlansOptions): Promise<ListPublicPlansResponse & ListPublicPlansResponseNonNullableFields>;
|
456
684
|
export interface ListPublicPlansOptions {
|
457
685
|
/**
|
458
686
|
* Number of pricing plans to list.
|
@@ -557,7 +785,7 @@ export interface PlansQueryBuilder {
|
|
557
785
|
* @applicableIdentity APP
|
558
786
|
* @returns Fulfilled - The retrieved plan's information.
|
559
787
|
*/
|
560
|
-
export declare function getPlan(_id: string): Promise<Plan>;
|
788
|
+
export declare function getPlan(_id: string): Promise<Plan & NonNullable<GetPlanResponseNonNullableFields>['plan']>;
|
561
789
|
/**
|
562
790
|
* Retrieves a list of pricing plans.
|
563
791
|
*
|
@@ -568,7 +796,7 @@ export declare function getPlan(_id: string): Promise<Plan>;
|
|
568
796
|
* @applicableIdentity APP
|
569
797
|
* @returns Fulfilled - List of plans that match the given criteria.
|
570
798
|
*/
|
571
|
-
export declare function listPlans(options?: ListPlansOptions): Promise<ListPlansResponse>;
|
799
|
+
export declare function listPlans(options?: ListPlansOptions): Promise<ListPlansResponse & ListPlansResponseNonNullableFields>;
|
572
800
|
export interface ListPlansOptions {
|
573
801
|
/**
|
574
802
|
* Archived filter.
|
@@ -614,7 +842,7 @@ export interface ListPlansOptions {
|
|
614
842
|
* @applicableIdentity APP
|
615
843
|
* @returns Fulfilled - Overall statistics about the pricing plans.
|
616
844
|
*/
|
617
|
-
export declare function getPlanStats(): Promise<GetPlanStatsResponse>;
|
845
|
+
export declare function getPlanStats(): Promise<GetPlanStatsResponse & GetPlanStatsResponseNonNullableFields>;
|
618
846
|
/**
|
619
847
|
* Creates a pricing plan.
|
620
848
|
*
|
@@ -642,7 +870,7 @@ export declare function getPlanStats(): Promise<GetPlanStatsResponse>;
|
|
642
870
|
*
|
643
871
|
* Rejected - Error message.
|
644
872
|
*/
|
645
|
-
export declare function createPlan(plan: Plan): Promise<Plan>;
|
873
|
+
export declare function createPlan(plan: Plan): Promise<Plan & NonNullable<CreatePlanResponseNonNullableFields>['plan']>;
|
646
874
|
/**
|
647
875
|
* Updates a pricing plan.
|
648
876
|
*
|
@@ -661,7 +889,7 @@ export declare function createPlan(plan: Plan): Promise<Plan>;
|
|
661
889
|
*
|
662
890
|
* Rejected - Error message.
|
663
891
|
*/
|
664
|
-
export declare function updatePlan(_id: string, plan: UpdatePlan): Promise<Plan>;
|
892
|
+
export declare function updatePlan(_id: string, plan: UpdatePlan): Promise<Plan & NonNullable<UpdatePlanResponseNonNullableFields>['plan']>;
|
665
893
|
export interface UpdatePlan {
|
666
894
|
/**
|
667
895
|
* Plan ID.
|
@@ -736,6 +964,8 @@ export interface UpdatePlan {
|
|
736
964
|
buyerCanCancel?: boolean | null;
|
737
965
|
/** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
|
738
966
|
termsAndConditions?: string | null;
|
967
|
+
/** Reserved for internal use. */
|
968
|
+
formId?: string | null;
|
739
969
|
}
|
740
970
|
/**
|
741
971
|
* Sets visibility for non-archived pricing plans.
|
@@ -761,7 +991,7 @@ export interface UpdatePlan {
|
|
761
991
|
*
|
762
992
|
* Rejected - Error message.
|
763
993
|
*/
|
764
|
-
export declare function setPlanVisibility(_id: string, visible: boolean): Promise<SetPlanVisibilityResponse>;
|
994
|
+
export declare function setPlanVisibility(_id: string, visible: boolean): Promise<SetPlanVisibilityResponse & SetPlanVisibilityResponseNonNullableFields>;
|
765
995
|
/**
|
766
996
|
* Marks a pricing plan as the primary pricing plan.
|
767
997
|
*
|
@@ -778,7 +1008,7 @@ export declare function setPlanVisibility(_id: string, visible: boolean): Promis
|
|
778
1008
|
* @applicableIdentity APP
|
779
1009
|
* @returns Fulfilled - The primary plan.
|
780
1010
|
*/
|
781
|
-
export declare function makePlanPrimary(_id: string): Promise<MakePlanPrimaryResponse>;
|
1011
|
+
export declare function makePlanPrimary(_id: string): Promise<MakePlanPrimaryResponse & MakePlanPrimaryResponseNonNullableFields>;
|
782
1012
|
/**
|
783
1013
|
* Sets all pricing plans to no longer be primary.
|
784
1014
|
*
|
@@ -815,7 +1045,7 @@ export declare function clearPrimary(): Promise<void>;
|
|
815
1045
|
*
|
816
1046
|
* Rejected - Error message.
|
817
1047
|
*/
|
818
|
-
export declare function archivePlan(_id: string): Promise<ArchivePlanResponse>;
|
1048
|
+
export declare function archivePlan(_id: string): Promise<ArchivePlanResponse & ArchivePlanResponseNonNullableFields>;
|
819
1049
|
/**
|
820
1050
|
* Changes the display order of the pricing plans on the site page and in the Dashboard.
|
821
1051
|
*
|