@moonbase.sh/storefront-api 3.10.0 → 3.11.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/dist/index.cjs +68 -1
- package/dist/index.d.cts +994 -2
- package/dist/index.d.ts +994 -2
- package/dist/index.js +68 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3441,6 +3441,706 @@ declare const milestoneProgressSchema: z.ZodObject<{
|
|
|
3441
3441
|
})[]>;
|
|
3442
3442
|
description?: string | null | undefined;
|
|
3443
3443
|
}>;
|
|
3444
|
+
declare const pricingOptionSchema: z.ZodObject<{
|
|
3445
|
+
id: z.ZodString;
|
|
3446
|
+
name: z.ZodString;
|
|
3447
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
3448
|
+
}, "strip", z.ZodTypeAny, {
|
|
3449
|
+
id: string;
|
|
3450
|
+
name: string;
|
|
3451
|
+
cycleLength: CycleLength;
|
|
3452
|
+
}, {
|
|
3453
|
+
id: string;
|
|
3454
|
+
name: string;
|
|
3455
|
+
cycleLength: CycleLength;
|
|
3456
|
+
}>;
|
|
3457
|
+
declare const pendingPlanChangeSchema: z.ZodObject<{
|
|
3458
|
+
option: z.ZodObject<{
|
|
3459
|
+
id: z.ZodString;
|
|
3460
|
+
name: z.ZodString;
|
|
3461
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
3462
|
+
}, "strip", z.ZodTypeAny, {
|
|
3463
|
+
id: string;
|
|
3464
|
+
name: string;
|
|
3465
|
+
cycleLength: CycleLength;
|
|
3466
|
+
}, {
|
|
3467
|
+
id: string;
|
|
3468
|
+
name: string;
|
|
3469
|
+
cycleLength: CycleLength;
|
|
3470
|
+
}>;
|
|
3471
|
+
takesEffectAt: z.ZodDate;
|
|
3472
|
+
nextTotal: z.ZodObject<{
|
|
3473
|
+
original: z.ZodObject<{
|
|
3474
|
+
currency: z.ZodString;
|
|
3475
|
+
amount: z.ZodNumber;
|
|
3476
|
+
}, "strip", z.ZodTypeAny, {
|
|
3477
|
+
currency: string;
|
|
3478
|
+
amount: number;
|
|
3479
|
+
}, {
|
|
3480
|
+
currency: string;
|
|
3481
|
+
amount: number;
|
|
3482
|
+
}>;
|
|
3483
|
+
discount: z.ZodObject<{
|
|
3484
|
+
currency: z.ZodString;
|
|
3485
|
+
amount: z.ZodNumber;
|
|
3486
|
+
}, "strip", z.ZodTypeAny, {
|
|
3487
|
+
currency: string;
|
|
3488
|
+
amount: number;
|
|
3489
|
+
}, {
|
|
3490
|
+
currency: string;
|
|
3491
|
+
amount: number;
|
|
3492
|
+
}>;
|
|
3493
|
+
subtotal: z.ZodObject<{
|
|
3494
|
+
currency: z.ZodString;
|
|
3495
|
+
amount: z.ZodNumber;
|
|
3496
|
+
}, "strip", z.ZodTypeAny, {
|
|
3497
|
+
currency: string;
|
|
3498
|
+
amount: number;
|
|
3499
|
+
}, {
|
|
3500
|
+
currency: string;
|
|
3501
|
+
amount: number;
|
|
3502
|
+
}>;
|
|
3503
|
+
taxes: z.ZodObject<{
|
|
3504
|
+
currency: z.ZodString;
|
|
3505
|
+
amount: z.ZodNumber;
|
|
3506
|
+
}, "strip", z.ZodTypeAny, {
|
|
3507
|
+
currency: string;
|
|
3508
|
+
amount: number;
|
|
3509
|
+
}, {
|
|
3510
|
+
currency: string;
|
|
3511
|
+
amount: number;
|
|
3512
|
+
}>;
|
|
3513
|
+
due: z.ZodObject<{
|
|
3514
|
+
currency: z.ZodString;
|
|
3515
|
+
amount: z.ZodNumber;
|
|
3516
|
+
}, "strip", z.ZodTypeAny, {
|
|
3517
|
+
currency: string;
|
|
3518
|
+
amount: number;
|
|
3519
|
+
}, {
|
|
3520
|
+
currency: string;
|
|
3521
|
+
amount: number;
|
|
3522
|
+
}>;
|
|
3523
|
+
cartOfferDiscount: z.ZodOptional<z.ZodObject<{
|
|
3524
|
+
currency: z.ZodString;
|
|
3525
|
+
amount: z.ZodNumber;
|
|
3526
|
+
}, "strip", z.ZodTypeAny, {
|
|
3527
|
+
currency: string;
|
|
3528
|
+
amount: number;
|
|
3529
|
+
}, {
|
|
3530
|
+
currency: string;
|
|
3531
|
+
amount: number;
|
|
3532
|
+
}>>;
|
|
3533
|
+
}, "strip", z.ZodTypeAny, {
|
|
3534
|
+
discount: {
|
|
3535
|
+
currency: string;
|
|
3536
|
+
amount: number;
|
|
3537
|
+
};
|
|
3538
|
+
original: {
|
|
3539
|
+
currency: string;
|
|
3540
|
+
amount: number;
|
|
3541
|
+
};
|
|
3542
|
+
subtotal: {
|
|
3543
|
+
currency: string;
|
|
3544
|
+
amount: number;
|
|
3545
|
+
};
|
|
3546
|
+
taxes: {
|
|
3547
|
+
currency: string;
|
|
3548
|
+
amount: number;
|
|
3549
|
+
};
|
|
3550
|
+
due: {
|
|
3551
|
+
currency: string;
|
|
3552
|
+
amount: number;
|
|
3553
|
+
};
|
|
3554
|
+
cartOfferDiscount?: {
|
|
3555
|
+
currency: string;
|
|
3556
|
+
amount: number;
|
|
3557
|
+
} | undefined;
|
|
3558
|
+
}, {
|
|
3559
|
+
discount: {
|
|
3560
|
+
currency: string;
|
|
3561
|
+
amount: number;
|
|
3562
|
+
};
|
|
3563
|
+
original: {
|
|
3564
|
+
currency: string;
|
|
3565
|
+
amount: number;
|
|
3566
|
+
};
|
|
3567
|
+
subtotal: {
|
|
3568
|
+
currency: string;
|
|
3569
|
+
amount: number;
|
|
3570
|
+
};
|
|
3571
|
+
taxes: {
|
|
3572
|
+
currency: string;
|
|
3573
|
+
amount: number;
|
|
3574
|
+
};
|
|
3575
|
+
due: {
|
|
3576
|
+
currency: string;
|
|
3577
|
+
amount: number;
|
|
3578
|
+
};
|
|
3579
|
+
cartOfferDiscount?: {
|
|
3580
|
+
currency: string;
|
|
3581
|
+
amount: number;
|
|
3582
|
+
} | undefined;
|
|
3583
|
+
}>;
|
|
3584
|
+
keepsDiscount: z.ZodBoolean;
|
|
3585
|
+
scheduledAt: z.ZodDate;
|
|
3586
|
+
}, "strip", z.ZodTypeAny, {
|
|
3587
|
+
option: {
|
|
3588
|
+
id: string;
|
|
3589
|
+
name: string;
|
|
3590
|
+
cycleLength: CycleLength;
|
|
3591
|
+
};
|
|
3592
|
+
takesEffectAt: Date;
|
|
3593
|
+
nextTotal: {
|
|
3594
|
+
discount: {
|
|
3595
|
+
currency: string;
|
|
3596
|
+
amount: number;
|
|
3597
|
+
};
|
|
3598
|
+
original: {
|
|
3599
|
+
currency: string;
|
|
3600
|
+
amount: number;
|
|
3601
|
+
};
|
|
3602
|
+
subtotal: {
|
|
3603
|
+
currency: string;
|
|
3604
|
+
amount: number;
|
|
3605
|
+
};
|
|
3606
|
+
taxes: {
|
|
3607
|
+
currency: string;
|
|
3608
|
+
amount: number;
|
|
3609
|
+
};
|
|
3610
|
+
due: {
|
|
3611
|
+
currency: string;
|
|
3612
|
+
amount: number;
|
|
3613
|
+
};
|
|
3614
|
+
cartOfferDiscount?: {
|
|
3615
|
+
currency: string;
|
|
3616
|
+
amount: number;
|
|
3617
|
+
} | undefined;
|
|
3618
|
+
};
|
|
3619
|
+
keepsDiscount: boolean;
|
|
3620
|
+
scheduledAt: Date;
|
|
3621
|
+
}, {
|
|
3622
|
+
option: {
|
|
3623
|
+
id: string;
|
|
3624
|
+
name: string;
|
|
3625
|
+
cycleLength: CycleLength;
|
|
3626
|
+
};
|
|
3627
|
+
takesEffectAt: Date;
|
|
3628
|
+
nextTotal: {
|
|
3629
|
+
discount: {
|
|
3630
|
+
currency: string;
|
|
3631
|
+
amount: number;
|
|
3632
|
+
};
|
|
3633
|
+
original: {
|
|
3634
|
+
currency: string;
|
|
3635
|
+
amount: number;
|
|
3636
|
+
};
|
|
3637
|
+
subtotal: {
|
|
3638
|
+
currency: string;
|
|
3639
|
+
amount: number;
|
|
3640
|
+
};
|
|
3641
|
+
taxes: {
|
|
3642
|
+
currency: string;
|
|
3643
|
+
amount: number;
|
|
3644
|
+
};
|
|
3645
|
+
due: {
|
|
3646
|
+
currency: string;
|
|
3647
|
+
amount: number;
|
|
3648
|
+
};
|
|
3649
|
+
cartOfferDiscount?: {
|
|
3650
|
+
currency: string;
|
|
3651
|
+
amount: number;
|
|
3652
|
+
} | undefined;
|
|
3653
|
+
};
|
|
3654
|
+
keepsDiscount: boolean;
|
|
3655
|
+
scheduledAt: Date;
|
|
3656
|
+
}>;
|
|
3657
|
+
declare const subscriptionPlanOptionSchema: z.ZodObject<{
|
|
3658
|
+
option: z.ZodObject<{
|
|
3659
|
+
id: z.ZodString;
|
|
3660
|
+
name: z.ZodString;
|
|
3661
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
3662
|
+
}, "strip", z.ZodTypeAny, {
|
|
3663
|
+
id: string;
|
|
3664
|
+
name: string;
|
|
3665
|
+
cycleLength: CycleLength;
|
|
3666
|
+
}, {
|
|
3667
|
+
id: string;
|
|
3668
|
+
name: string;
|
|
3669
|
+
cycleLength: CycleLength;
|
|
3670
|
+
}>;
|
|
3671
|
+
nextTotal: z.ZodObject<{
|
|
3672
|
+
original: z.ZodObject<{
|
|
3673
|
+
currency: z.ZodString;
|
|
3674
|
+
amount: z.ZodNumber;
|
|
3675
|
+
}, "strip", z.ZodTypeAny, {
|
|
3676
|
+
currency: string;
|
|
3677
|
+
amount: number;
|
|
3678
|
+
}, {
|
|
3679
|
+
currency: string;
|
|
3680
|
+
amount: number;
|
|
3681
|
+
}>;
|
|
3682
|
+
discount: z.ZodObject<{
|
|
3683
|
+
currency: z.ZodString;
|
|
3684
|
+
amount: z.ZodNumber;
|
|
3685
|
+
}, "strip", z.ZodTypeAny, {
|
|
3686
|
+
currency: string;
|
|
3687
|
+
amount: number;
|
|
3688
|
+
}, {
|
|
3689
|
+
currency: string;
|
|
3690
|
+
amount: number;
|
|
3691
|
+
}>;
|
|
3692
|
+
subtotal: z.ZodObject<{
|
|
3693
|
+
currency: z.ZodString;
|
|
3694
|
+
amount: z.ZodNumber;
|
|
3695
|
+
}, "strip", z.ZodTypeAny, {
|
|
3696
|
+
currency: string;
|
|
3697
|
+
amount: number;
|
|
3698
|
+
}, {
|
|
3699
|
+
currency: string;
|
|
3700
|
+
amount: number;
|
|
3701
|
+
}>;
|
|
3702
|
+
taxes: z.ZodObject<{
|
|
3703
|
+
currency: z.ZodString;
|
|
3704
|
+
amount: z.ZodNumber;
|
|
3705
|
+
}, "strip", z.ZodTypeAny, {
|
|
3706
|
+
currency: string;
|
|
3707
|
+
amount: number;
|
|
3708
|
+
}, {
|
|
3709
|
+
currency: string;
|
|
3710
|
+
amount: number;
|
|
3711
|
+
}>;
|
|
3712
|
+
due: z.ZodObject<{
|
|
3713
|
+
currency: z.ZodString;
|
|
3714
|
+
amount: z.ZodNumber;
|
|
3715
|
+
}, "strip", z.ZodTypeAny, {
|
|
3716
|
+
currency: string;
|
|
3717
|
+
amount: number;
|
|
3718
|
+
}, {
|
|
3719
|
+
currency: string;
|
|
3720
|
+
amount: number;
|
|
3721
|
+
}>;
|
|
3722
|
+
cartOfferDiscount: z.ZodOptional<z.ZodObject<{
|
|
3723
|
+
currency: z.ZodString;
|
|
3724
|
+
amount: z.ZodNumber;
|
|
3725
|
+
}, "strip", z.ZodTypeAny, {
|
|
3726
|
+
currency: string;
|
|
3727
|
+
amount: number;
|
|
3728
|
+
}, {
|
|
3729
|
+
currency: string;
|
|
3730
|
+
amount: number;
|
|
3731
|
+
}>>;
|
|
3732
|
+
}, "strip", z.ZodTypeAny, {
|
|
3733
|
+
discount: {
|
|
3734
|
+
currency: string;
|
|
3735
|
+
amount: number;
|
|
3736
|
+
};
|
|
3737
|
+
original: {
|
|
3738
|
+
currency: string;
|
|
3739
|
+
amount: number;
|
|
3740
|
+
};
|
|
3741
|
+
subtotal: {
|
|
3742
|
+
currency: string;
|
|
3743
|
+
amount: number;
|
|
3744
|
+
};
|
|
3745
|
+
taxes: {
|
|
3746
|
+
currency: string;
|
|
3747
|
+
amount: number;
|
|
3748
|
+
};
|
|
3749
|
+
due: {
|
|
3750
|
+
currency: string;
|
|
3751
|
+
amount: number;
|
|
3752
|
+
};
|
|
3753
|
+
cartOfferDiscount?: {
|
|
3754
|
+
currency: string;
|
|
3755
|
+
amount: number;
|
|
3756
|
+
} | undefined;
|
|
3757
|
+
}, {
|
|
3758
|
+
discount: {
|
|
3759
|
+
currency: string;
|
|
3760
|
+
amount: number;
|
|
3761
|
+
};
|
|
3762
|
+
original: {
|
|
3763
|
+
currency: string;
|
|
3764
|
+
amount: number;
|
|
3765
|
+
};
|
|
3766
|
+
subtotal: {
|
|
3767
|
+
currency: string;
|
|
3768
|
+
amount: number;
|
|
3769
|
+
};
|
|
3770
|
+
taxes: {
|
|
3771
|
+
currency: string;
|
|
3772
|
+
amount: number;
|
|
3773
|
+
};
|
|
3774
|
+
due: {
|
|
3775
|
+
currency: string;
|
|
3776
|
+
amount: number;
|
|
3777
|
+
};
|
|
3778
|
+
cartOfferDiscount?: {
|
|
3779
|
+
currency: string;
|
|
3780
|
+
amount: number;
|
|
3781
|
+
} | undefined;
|
|
3782
|
+
}>;
|
|
3783
|
+
takesEffectAt: z.ZodDate;
|
|
3784
|
+
keepsDiscount: z.ZodBoolean;
|
|
3785
|
+
current: z.ZodBoolean;
|
|
3786
|
+
scheduled: z.ZodBoolean;
|
|
3787
|
+
}, "strip", z.ZodTypeAny, {
|
|
3788
|
+
option: {
|
|
3789
|
+
id: string;
|
|
3790
|
+
name: string;
|
|
3791
|
+
cycleLength: CycleLength;
|
|
3792
|
+
};
|
|
3793
|
+
takesEffectAt: Date;
|
|
3794
|
+
nextTotal: {
|
|
3795
|
+
discount: {
|
|
3796
|
+
currency: string;
|
|
3797
|
+
amount: number;
|
|
3798
|
+
};
|
|
3799
|
+
original: {
|
|
3800
|
+
currency: string;
|
|
3801
|
+
amount: number;
|
|
3802
|
+
};
|
|
3803
|
+
subtotal: {
|
|
3804
|
+
currency: string;
|
|
3805
|
+
amount: number;
|
|
3806
|
+
};
|
|
3807
|
+
taxes: {
|
|
3808
|
+
currency: string;
|
|
3809
|
+
amount: number;
|
|
3810
|
+
};
|
|
3811
|
+
due: {
|
|
3812
|
+
currency: string;
|
|
3813
|
+
amount: number;
|
|
3814
|
+
};
|
|
3815
|
+
cartOfferDiscount?: {
|
|
3816
|
+
currency: string;
|
|
3817
|
+
amount: number;
|
|
3818
|
+
} | undefined;
|
|
3819
|
+
};
|
|
3820
|
+
keepsDiscount: boolean;
|
|
3821
|
+
current: boolean;
|
|
3822
|
+
scheduled: boolean;
|
|
3823
|
+
}, {
|
|
3824
|
+
option: {
|
|
3825
|
+
id: string;
|
|
3826
|
+
name: string;
|
|
3827
|
+
cycleLength: CycleLength;
|
|
3828
|
+
};
|
|
3829
|
+
takesEffectAt: Date;
|
|
3830
|
+
nextTotal: {
|
|
3831
|
+
discount: {
|
|
3832
|
+
currency: string;
|
|
3833
|
+
amount: number;
|
|
3834
|
+
};
|
|
3835
|
+
original: {
|
|
3836
|
+
currency: string;
|
|
3837
|
+
amount: number;
|
|
3838
|
+
};
|
|
3839
|
+
subtotal: {
|
|
3840
|
+
currency: string;
|
|
3841
|
+
amount: number;
|
|
3842
|
+
};
|
|
3843
|
+
taxes: {
|
|
3844
|
+
currency: string;
|
|
3845
|
+
amount: number;
|
|
3846
|
+
};
|
|
3847
|
+
due: {
|
|
3848
|
+
currency: string;
|
|
3849
|
+
amount: number;
|
|
3850
|
+
};
|
|
3851
|
+
cartOfferDiscount?: {
|
|
3852
|
+
currency: string;
|
|
3853
|
+
amount: number;
|
|
3854
|
+
} | undefined;
|
|
3855
|
+
};
|
|
3856
|
+
keepsDiscount: boolean;
|
|
3857
|
+
current: boolean;
|
|
3858
|
+
scheduled: boolean;
|
|
3859
|
+
}>;
|
|
3860
|
+
declare const subscriptionPlanOptionsSchema: z.ZodObject<{
|
|
3861
|
+
unavailable: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3862
|
+
plans: z.ZodArray<z.ZodObject<{
|
|
3863
|
+
option: z.ZodObject<{
|
|
3864
|
+
id: z.ZodString;
|
|
3865
|
+
name: z.ZodString;
|
|
3866
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
3867
|
+
}, "strip", z.ZodTypeAny, {
|
|
3868
|
+
id: string;
|
|
3869
|
+
name: string;
|
|
3870
|
+
cycleLength: CycleLength;
|
|
3871
|
+
}, {
|
|
3872
|
+
id: string;
|
|
3873
|
+
name: string;
|
|
3874
|
+
cycleLength: CycleLength;
|
|
3875
|
+
}>;
|
|
3876
|
+
nextTotal: z.ZodObject<{
|
|
3877
|
+
original: z.ZodObject<{
|
|
3878
|
+
currency: z.ZodString;
|
|
3879
|
+
amount: z.ZodNumber;
|
|
3880
|
+
}, "strip", z.ZodTypeAny, {
|
|
3881
|
+
currency: string;
|
|
3882
|
+
amount: number;
|
|
3883
|
+
}, {
|
|
3884
|
+
currency: string;
|
|
3885
|
+
amount: number;
|
|
3886
|
+
}>;
|
|
3887
|
+
discount: z.ZodObject<{
|
|
3888
|
+
currency: z.ZodString;
|
|
3889
|
+
amount: z.ZodNumber;
|
|
3890
|
+
}, "strip", z.ZodTypeAny, {
|
|
3891
|
+
currency: string;
|
|
3892
|
+
amount: number;
|
|
3893
|
+
}, {
|
|
3894
|
+
currency: string;
|
|
3895
|
+
amount: number;
|
|
3896
|
+
}>;
|
|
3897
|
+
subtotal: z.ZodObject<{
|
|
3898
|
+
currency: z.ZodString;
|
|
3899
|
+
amount: z.ZodNumber;
|
|
3900
|
+
}, "strip", z.ZodTypeAny, {
|
|
3901
|
+
currency: string;
|
|
3902
|
+
amount: number;
|
|
3903
|
+
}, {
|
|
3904
|
+
currency: string;
|
|
3905
|
+
amount: number;
|
|
3906
|
+
}>;
|
|
3907
|
+
taxes: z.ZodObject<{
|
|
3908
|
+
currency: z.ZodString;
|
|
3909
|
+
amount: z.ZodNumber;
|
|
3910
|
+
}, "strip", z.ZodTypeAny, {
|
|
3911
|
+
currency: string;
|
|
3912
|
+
amount: number;
|
|
3913
|
+
}, {
|
|
3914
|
+
currency: string;
|
|
3915
|
+
amount: number;
|
|
3916
|
+
}>;
|
|
3917
|
+
due: z.ZodObject<{
|
|
3918
|
+
currency: z.ZodString;
|
|
3919
|
+
amount: z.ZodNumber;
|
|
3920
|
+
}, "strip", z.ZodTypeAny, {
|
|
3921
|
+
currency: string;
|
|
3922
|
+
amount: number;
|
|
3923
|
+
}, {
|
|
3924
|
+
currency: string;
|
|
3925
|
+
amount: number;
|
|
3926
|
+
}>;
|
|
3927
|
+
cartOfferDiscount: z.ZodOptional<z.ZodObject<{
|
|
3928
|
+
currency: z.ZodString;
|
|
3929
|
+
amount: z.ZodNumber;
|
|
3930
|
+
}, "strip", z.ZodTypeAny, {
|
|
3931
|
+
currency: string;
|
|
3932
|
+
amount: number;
|
|
3933
|
+
}, {
|
|
3934
|
+
currency: string;
|
|
3935
|
+
amount: number;
|
|
3936
|
+
}>>;
|
|
3937
|
+
}, "strip", z.ZodTypeAny, {
|
|
3938
|
+
discount: {
|
|
3939
|
+
currency: string;
|
|
3940
|
+
amount: number;
|
|
3941
|
+
};
|
|
3942
|
+
original: {
|
|
3943
|
+
currency: string;
|
|
3944
|
+
amount: number;
|
|
3945
|
+
};
|
|
3946
|
+
subtotal: {
|
|
3947
|
+
currency: string;
|
|
3948
|
+
amount: number;
|
|
3949
|
+
};
|
|
3950
|
+
taxes: {
|
|
3951
|
+
currency: string;
|
|
3952
|
+
amount: number;
|
|
3953
|
+
};
|
|
3954
|
+
due: {
|
|
3955
|
+
currency: string;
|
|
3956
|
+
amount: number;
|
|
3957
|
+
};
|
|
3958
|
+
cartOfferDiscount?: {
|
|
3959
|
+
currency: string;
|
|
3960
|
+
amount: number;
|
|
3961
|
+
} | undefined;
|
|
3962
|
+
}, {
|
|
3963
|
+
discount: {
|
|
3964
|
+
currency: string;
|
|
3965
|
+
amount: number;
|
|
3966
|
+
};
|
|
3967
|
+
original: {
|
|
3968
|
+
currency: string;
|
|
3969
|
+
amount: number;
|
|
3970
|
+
};
|
|
3971
|
+
subtotal: {
|
|
3972
|
+
currency: string;
|
|
3973
|
+
amount: number;
|
|
3974
|
+
};
|
|
3975
|
+
taxes: {
|
|
3976
|
+
currency: string;
|
|
3977
|
+
amount: number;
|
|
3978
|
+
};
|
|
3979
|
+
due: {
|
|
3980
|
+
currency: string;
|
|
3981
|
+
amount: number;
|
|
3982
|
+
};
|
|
3983
|
+
cartOfferDiscount?: {
|
|
3984
|
+
currency: string;
|
|
3985
|
+
amount: number;
|
|
3986
|
+
} | undefined;
|
|
3987
|
+
}>;
|
|
3988
|
+
takesEffectAt: z.ZodDate;
|
|
3989
|
+
keepsDiscount: z.ZodBoolean;
|
|
3990
|
+
current: z.ZodBoolean;
|
|
3991
|
+
scheduled: z.ZodBoolean;
|
|
3992
|
+
}, "strip", z.ZodTypeAny, {
|
|
3993
|
+
option: {
|
|
3994
|
+
id: string;
|
|
3995
|
+
name: string;
|
|
3996
|
+
cycleLength: CycleLength;
|
|
3997
|
+
};
|
|
3998
|
+
takesEffectAt: Date;
|
|
3999
|
+
nextTotal: {
|
|
4000
|
+
discount: {
|
|
4001
|
+
currency: string;
|
|
4002
|
+
amount: number;
|
|
4003
|
+
};
|
|
4004
|
+
original: {
|
|
4005
|
+
currency: string;
|
|
4006
|
+
amount: number;
|
|
4007
|
+
};
|
|
4008
|
+
subtotal: {
|
|
4009
|
+
currency: string;
|
|
4010
|
+
amount: number;
|
|
4011
|
+
};
|
|
4012
|
+
taxes: {
|
|
4013
|
+
currency: string;
|
|
4014
|
+
amount: number;
|
|
4015
|
+
};
|
|
4016
|
+
due: {
|
|
4017
|
+
currency: string;
|
|
4018
|
+
amount: number;
|
|
4019
|
+
};
|
|
4020
|
+
cartOfferDiscount?: {
|
|
4021
|
+
currency: string;
|
|
4022
|
+
amount: number;
|
|
4023
|
+
} | undefined;
|
|
4024
|
+
};
|
|
4025
|
+
keepsDiscount: boolean;
|
|
4026
|
+
current: boolean;
|
|
4027
|
+
scheduled: boolean;
|
|
4028
|
+
}, {
|
|
4029
|
+
option: {
|
|
4030
|
+
id: string;
|
|
4031
|
+
name: string;
|
|
4032
|
+
cycleLength: CycleLength;
|
|
4033
|
+
};
|
|
4034
|
+
takesEffectAt: Date;
|
|
4035
|
+
nextTotal: {
|
|
4036
|
+
discount: {
|
|
4037
|
+
currency: string;
|
|
4038
|
+
amount: number;
|
|
4039
|
+
};
|
|
4040
|
+
original: {
|
|
4041
|
+
currency: string;
|
|
4042
|
+
amount: number;
|
|
4043
|
+
};
|
|
4044
|
+
subtotal: {
|
|
4045
|
+
currency: string;
|
|
4046
|
+
amount: number;
|
|
4047
|
+
};
|
|
4048
|
+
taxes: {
|
|
4049
|
+
currency: string;
|
|
4050
|
+
amount: number;
|
|
4051
|
+
};
|
|
4052
|
+
due: {
|
|
4053
|
+
currency: string;
|
|
4054
|
+
amount: number;
|
|
4055
|
+
};
|
|
4056
|
+
cartOfferDiscount?: {
|
|
4057
|
+
currency: string;
|
|
4058
|
+
amount: number;
|
|
4059
|
+
} | undefined;
|
|
4060
|
+
};
|
|
4061
|
+
keepsDiscount: boolean;
|
|
4062
|
+
current: boolean;
|
|
4063
|
+
scheduled: boolean;
|
|
4064
|
+
}>, "many">;
|
|
4065
|
+
}, "strip", z.ZodTypeAny, {
|
|
4066
|
+
plans: {
|
|
4067
|
+
option: {
|
|
4068
|
+
id: string;
|
|
4069
|
+
name: string;
|
|
4070
|
+
cycleLength: CycleLength;
|
|
4071
|
+
};
|
|
4072
|
+
takesEffectAt: Date;
|
|
4073
|
+
nextTotal: {
|
|
4074
|
+
discount: {
|
|
4075
|
+
currency: string;
|
|
4076
|
+
amount: number;
|
|
4077
|
+
};
|
|
4078
|
+
original: {
|
|
4079
|
+
currency: string;
|
|
4080
|
+
amount: number;
|
|
4081
|
+
};
|
|
4082
|
+
subtotal: {
|
|
4083
|
+
currency: string;
|
|
4084
|
+
amount: number;
|
|
4085
|
+
};
|
|
4086
|
+
taxes: {
|
|
4087
|
+
currency: string;
|
|
4088
|
+
amount: number;
|
|
4089
|
+
};
|
|
4090
|
+
due: {
|
|
4091
|
+
currency: string;
|
|
4092
|
+
amount: number;
|
|
4093
|
+
};
|
|
4094
|
+
cartOfferDiscount?: {
|
|
4095
|
+
currency: string;
|
|
4096
|
+
amount: number;
|
|
4097
|
+
} | undefined;
|
|
4098
|
+
};
|
|
4099
|
+
keepsDiscount: boolean;
|
|
4100
|
+
current: boolean;
|
|
4101
|
+
scheduled: boolean;
|
|
4102
|
+
}[];
|
|
4103
|
+
unavailable?: string | null | undefined;
|
|
4104
|
+
}, {
|
|
4105
|
+
plans: {
|
|
4106
|
+
option: {
|
|
4107
|
+
id: string;
|
|
4108
|
+
name: string;
|
|
4109
|
+
cycleLength: CycleLength;
|
|
4110
|
+
};
|
|
4111
|
+
takesEffectAt: Date;
|
|
4112
|
+
nextTotal: {
|
|
4113
|
+
discount: {
|
|
4114
|
+
currency: string;
|
|
4115
|
+
amount: number;
|
|
4116
|
+
};
|
|
4117
|
+
original: {
|
|
4118
|
+
currency: string;
|
|
4119
|
+
amount: number;
|
|
4120
|
+
};
|
|
4121
|
+
subtotal: {
|
|
4122
|
+
currency: string;
|
|
4123
|
+
amount: number;
|
|
4124
|
+
};
|
|
4125
|
+
taxes: {
|
|
4126
|
+
currency: string;
|
|
4127
|
+
amount: number;
|
|
4128
|
+
};
|
|
4129
|
+
due: {
|
|
4130
|
+
currency: string;
|
|
4131
|
+
amount: number;
|
|
4132
|
+
};
|
|
4133
|
+
cartOfferDiscount?: {
|
|
4134
|
+
currency: string;
|
|
4135
|
+
amount: number;
|
|
4136
|
+
} | undefined;
|
|
4137
|
+
};
|
|
4138
|
+
keepsDiscount: boolean;
|
|
4139
|
+
current: boolean;
|
|
4140
|
+
scheduled: boolean;
|
|
4141
|
+
}[];
|
|
4142
|
+
unavailable?: string | null | undefined;
|
|
4143
|
+
}>;
|
|
3444
4144
|
declare const subscriptionSchema: z.ZodObject<{
|
|
3445
4145
|
id: z.ZodString;
|
|
3446
4146
|
status: z.ZodNativeEnum<typeof SubscriptionStatus>;
|
|
@@ -3681,6 +4381,219 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
3681
4381
|
description?: string | null | undefined;
|
|
3682
4382
|
}>>>;
|
|
3683
4383
|
embeddedUpdatePaymentUrl: z.ZodOptional<z.ZodString>;
|
|
4384
|
+
pricingOption: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4385
|
+
id: z.ZodString;
|
|
4386
|
+
name: z.ZodString;
|
|
4387
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
4388
|
+
}, "strip", z.ZodTypeAny, {
|
|
4389
|
+
id: string;
|
|
4390
|
+
name: string;
|
|
4391
|
+
cycleLength: CycleLength;
|
|
4392
|
+
}, {
|
|
4393
|
+
id: string;
|
|
4394
|
+
name: string;
|
|
4395
|
+
cycleLength: CycleLength;
|
|
4396
|
+
}>>>>;
|
|
4397
|
+
pendingChange: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4398
|
+
option: z.ZodObject<{
|
|
4399
|
+
id: z.ZodString;
|
|
4400
|
+
name: z.ZodString;
|
|
4401
|
+
cycleLength: z.ZodNativeEnum<typeof CycleLength>;
|
|
4402
|
+
}, "strip", z.ZodTypeAny, {
|
|
4403
|
+
id: string;
|
|
4404
|
+
name: string;
|
|
4405
|
+
cycleLength: CycleLength;
|
|
4406
|
+
}, {
|
|
4407
|
+
id: string;
|
|
4408
|
+
name: string;
|
|
4409
|
+
cycleLength: CycleLength;
|
|
4410
|
+
}>;
|
|
4411
|
+
takesEffectAt: z.ZodDate;
|
|
4412
|
+
nextTotal: z.ZodObject<{
|
|
4413
|
+
original: z.ZodObject<{
|
|
4414
|
+
currency: z.ZodString;
|
|
4415
|
+
amount: z.ZodNumber;
|
|
4416
|
+
}, "strip", z.ZodTypeAny, {
|
|
4417
|
+
currency: string;
|
|
4418
|
+
amount: number;
|
|
4419
|
+
}, {
|
|
4420
|
+
currency: string;
|
|
4421
|
+
amount: number;
|
|
4422
|
+
}>;
|
|
4423
|
+
discount: z.ZodObject<{
|
|
4424
|
+
currency: z.ZodString;
|
|
4425
|
+
amount: z.ZodNumber;
|
|
4426
|
+
}, "strip", z.ZodTypeAny, {
|
|
4427
|
+
currency: string;
|
|
4428
|
+
amount: number;
|
|
4429
|
+
}, {
|
|
4430
|
+
currency: string;
|
|
4431
|
+
amount: number;
|
|
4432
|
+
}>;
|
|
4433
|
+
subtotal: z.ZodObject<{
|
|
4434
|
+
currency: z.ZodString;
|
|
4435
|
+
amount: z.ZodNumber;
|
|
4436
|
+
}, "strip", z.ZodTypeAny, {
|
|
4437
|
+
currency: string;
|
|
4438
|
+
amount: number;
|
|
4439
|
+
}, {
|
|
4440
|
+
currency: string;
|
|
4441
|
+
amount: number;
|
|
4442
|
+
}>;
|
|
4443
|
+
taxes: z.ZodObject<{
|
|
4444
|
+
currency: z.ZodString;
|
|
4445
|
+
amount: z.ZodNumber;
|
|
4446
|
+
}, "strip", z.ZodTypeAny, {
|
|
4447
|
+
currency: string;
|
|
4448
|
+
amount: number;
|
|
4449
|
+
}, {
|
|
4450
|
+
currency: string;
|
|
4451
|
+
amount: number;
|
|
4452
|
+
}>;
|
|
4453
|
+
due: z.ZodObject<{
|
|
4454
|
+
currency: z.ZodString;
|
|
4455
|
+
amount: z.ZodNumber;
|
|
4456
|
+
}, "strip", z.ZodTypeAny, {
|
|
4457
|
+
currency: string;
|
|
4458
|
+
amount: number;
|
|
4459
|
+
}, {
|
|
4460
|
+
currency: string;
|
|
4461
|
+
amount: number;
|
|
4462
|
+
}>;
|
|
4463
|
+
cartOfferDiscount: z.ZodOptional<z.ZodObject<{
|
|
4464
|
+
currency: z.ZodString;
|
|
4465
|
+
amount: z.ZodNumber;
|
|
4466
|
+
}, "strip", z.ZodTypeAny, {
|
|
4467
|
+
currency: string;
|
|
4468
|
+
amount: number;
|
|
4469
|
+
}, {
|
|
4470
|
+
currency: string;
|
|
4471
|
+
amount: number;
|
|
4472
|
+
}>>;
|
|
4473
|
+
}, "strip", z.ZodTypeAny, {
|
|
4474
|
+
discount: {
|
|
4475
|
+
currency: string;
|
|
4476
|
+
amount: number;
|
|
4477
|
+
};
|
|
4478
|
+
original: {
|
|
4479
|
+
currency: string;
|
|
4480
|
+
amount: number;
|
|
4481
|
+
};
|
|
4482
|
+
subtotal: {
|
|
4483
|
+
currency: string;
|
|
4484
|
+
amount: number;
|
|
4485
|
+
};
|
|
4486
|
+
taxes: {
|
|
4487
|
+
currency: string;
|
|
4488
|
+
amount: number;
|
|
4489
|
+
};
|
|
4490
|
+
due: {
|
|
4491
|
+
currency: string;
|
|
4492
|
+
amount: number;
|
|
4493
|
+
};
|
|
4494
|
+
cartOfferDiscount?: {
|
|
4495
|
+
currency: string;
|
|
4496
|
+
amount: number;
|
|
4497
|
+
} | undefined;
|
|
4498
|
+
}, {
|
|
4499
|
+
discount: {
|
|
4500
|
+
currency: string;
|
|
4501
|
+
amount: number;
|
|
4502
|
+
};
|
|
4503
|
+
original: {
|
|
4504
|
+
currency: string;
|
|
4505
|
+
amount: number;
|
|
4506
|
+
};
|
|
4507
|
+
subtotal: {
|
|
4508
|
+
currency: string;
|
|
4509
|
+
amount: number;
|
|
4510
|
+
};
|
|
4511
|
+
taxes: {
|
|
4512
|
+
currency: string;
|
|
4513
|
+
amount: number;
|
|
4514
|
+
};
|
|
4515
|
+
due: {
|
|
4516
|
+
currency: string;
|
|
4517
|
+
amount: number;
|
|
4518
|
+
};
|
|
4519
|
+
cartOfferDiscount?: {
|
|
4520
|
+
currency: string;
|
|
4521
|
+
amount: number;
|
|
4522
|
+
} | undefined;
|
|
4523
|
+
}>;
|
|
4524
|
+
keepsDiscount: z.ZodBoolean;
|
|
4525
|
+
scheduledAt: z.ZodDate;
|
|
4526
|
+
}, "strip", z.ZodTypeAny, {
|
|
4527
|
+
option: {
|
|
4528
|
+
id: string;
|
|
4529
|
+
name: string;
|
|
4530
|
+
cycleLength: CycleLength;
|
|
4531
|
+
};
|
|
4532
|
+
takesEffectAt: Date;
|
|
4533
|
+
nextTotal: {
|
|
4534
|
+
discount: {
|
|
4535
|
+
currency: string;
|
|
4536
|
+
amount: number;
|
|
4537
|
+
};
|
|
4538
|
+
original: {
|
|
4539
|
+
currency: string;
|
|
4540
|
+
amount: number;
|
|
4541
|
+
};
|
|
4542
|
+
subtotal: {
|
|
4543
|
+
currency: string;
|
|
4544
|
+
amount: number;
|
|
4545
|
+
};
|
|
4546
|
+
taxes: {
|
|
4547
|
+
currency: string;
|
|
4548
|
+
amount: number;
|
|
4549
|
+
};
|
|
4550
|
+
due: {
|
|
4551
|
+
currency: string;
|
|
4552
|
+
amount: number;
|
|
4553
|
+
};
|
|
4554
|
+
cartOfferDiscount?: {
|
|
4555
|
+
currency: string;
|
|
4556
|
+
amount: number;
|
|
4557
|
+
} | undefined;
|
|
4558
|
+
};
|
|
4559
|
+
keepsDiscount: boolean;
|
|
4560
|
+
scheduledAt: Date;
|
|
4561
|
+
}, {
|
|
4562
|
+
option: {
|
|
4563
|
+
id: string;
|
|
4564
|
+
name: string;
|
|
4565
|
+
cycleLength: CycleLength;
|
|
4566
|
+
};
|
|
4567
|
+
takesEffectAt: Date;
|
|
4568
|
+
nextTotal: {
|
|
4569
|
+
discount: {
|
|
4570
|
+
currency: string;
|
|
4571
|
+
amount: number;
|
|
4572
|
+
};
|
|
4573
|
+
original: {
|
|
4574
|
+
currency: string;
|
|
4575
|
+
amount: number;
|
|
4576
|
+
};
|
|
4577
|
+
subtotal: {
|
|
4578
|
+
currency: string;
|
|
4579
|
+
amount: number;
|
|
4580
|
+
};
|
|
4581
|
+
taxes: {
|
|
4582
|
+
currency: string;
|
|
4583
|
+
amount: number;
|
|
4584
|
+
};
|
|
4585
|
+
due: {
|
|
4586
|
+
currency: string;
|
|
4587
|
+
amount: number;
|
|
4588
|
+
};
|
|
4589
|
+
cartOfferDiscount?: {
|
|
4590
|
+
currency: string;
|
|
4591
|
+
amount: number;
|
|
4592
|
+
} | undefined;
|
|
4593
|
+
};
|
|
4594
|
+
keepsDiscount: boolean;
|
|
4595
|
+
scheduledAt: Date;
|
|
4596
|
+
}>>>>;
|
|
3684
4597
|
content: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
3685
4598
|
type: z.ZodLiteral<"Product">;
|
|
3686
4599
|
quantity: z.ZodNumber;
|
|
@@ -7184,6 +8097,47 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
7184
8097
|
description?: string | null | undefined;
|
|
7185
8098
|
} | null | undefined;
|
|
7186
8099
|
embeddedUpdatePaymentUrl?: string | undefined;
|
|
8100
|
+
pricingOption?: {
|
|
8101
|
+
id: string;
|
|
8102
|
+
name: string;
|
|
8103
|
+
cycleLength: CycleLength;
|
|
8104
|
+
} | null | undefined;
|
|
8105
|
+
pendingChange?: {
|
|
8106
|
+
option: {
|
|
8107
|
+
id: string;
|
|
8108
|
+
name: string;
|
|
8109
|
+
cycleLength: CycleLength;
|
|
8110
|
+
};
|
|
8111
|
+
takesEffectAt: Date;
|
|
8112
|
+
nextTotal: {
|
|
8113
|
+
discount: {
|
|
8114
|
+
currency: string;
|
|
8115
|
+
amount: number;
|
|
8116
|
+
};
|
|
8117
|
+
original: {
|
|
8118
|
+
currency: string;
|
|
8119
|
+
amount: number;
|
|
8120
|
+
};
|
|
8121
|
+
subtotal: {
|
|
8122
|
+
currency: string;
|
|
8123
|
+
amount: number;
|
|
8124
|
+
};
|
|
8125
|
+
taxes: {
|
|
8126
|
+
currency: string;
|
|
8127
|
+
amount: number;
|
|
8128
|
+
};
|
|
8129
|
+
due: {
|
|
8130
|
+
currency: string;
|
|
8131
|
+
amount: number;
|
|
8132
|
+
};
|
|
8133
|
+
cartOfferDiscount?: {
|
|
8134
|
+
currency: string;
|
|
8135
|
+
amount: number;
|
|
8136
|
+
} | undefined;
|
|
8137
|
+
};
|
|
8138
|
+
keepsDiscount: boolean;
|
|
8139
|
+
scheduledAt: Date;
|
|
8140
|
+
} | null | undefined;
|
|
7187
8141
|
}, {
|
|
7188
8142
|
id: string;
|
|
7189
8143
|
status: SubscriptionStatus;
|
|
@@ -7566,12 +8520,18 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
7566
8520
|
description?: string | null | undefined;
|
|
7567
8521
|
} | null | undefined;
|
|
7568
8522
|
embeddedUpdatePaymentUrl?: string | undefined;
|
|
8523
|
+
pricingOption?: unknown;
|
|
8524
|
+
pendingChange?: unknown;
|
|
7569
8525
|
}>;
|
|
7570
8526
|
|
|
7571
8527
|
declare const schemas$6_milestoneProgressSchema: typeof milestoneProgressSchema;
|
|
8528
|
+
declare const schemas$6_pendingPlanChangeSchema: typeof pendingPlanChangeSchema;
|
|
8529
|
+
declare const schemas$6_pricingOptionSchema: typeof pricingOptionSchema;
|
|
8530
|
+
declare const schemas$6_subscriptionPlanOptionSchema: typeof subscriptionPlanOptionSchema;
|
|
8531
|
+
declare const schemas$6_subscriptionPlanOptionsSchema: typeof subscriptionPlanOptionsSchema;
|
|
7572
8532
|
declare const schemas$6_subscriptionSchema: typeof subscriptionSchema;
|
|
7573
8533
|
declare namespace schemas$6 {
|
|
7574
|
-
export { schemas$6_milestoneProgressSchema as milestoneProgressSchema, schemas$6_subscriptionSchema as subscriptionSchema };
|
|
8534
|
+
export { schemas$6_milestoneProgressSchema as milestoneProgressSchema, schemas$6_pendingPlanChangeSchema as pendingPlanChangeSchema, schemas$6_pricingOptionSchema as pricingOptionSchema, schemas$6_subscriptionPlanOptionSchema as subscriptionPlanOptionSchema, schemas$6_subscriptionPlanOptionsSchema as subscriptionPlanOptionsSchema, schemas$6_subscriptionSchema as subscriptionSchema };
|
|
7575
8535
|
}
|
|
7576
8536
|
|
|
7577
8537
|
declare enum SubscriptionStatus {
|
|
@@ -7603,6 +8563,20 @@ interface SubscriptionCancellationFeedback {
|
|
|
7603
8563
|
}
|
|
7604
8564
|
type Subscription = z.infer<typeof subscriptionSchema>;
|
|
7605
8565
|
type MilestoneProgress = z.infer<typeof milestoneProgressSchema>;
|
|
8566
|
+
/** A subscription's plan: one of the pricing options of its product or bundle. */
|
|
8567
|
+
type PricingOption = z.infer<typeof pricingOptionSchema>;
|
|
8568
|
+
/**
|
|
8569
|
+
* A switch to another plan, scheduled for the end of the subscription's paid period. Nothing is
|
|
8570
|
+
* charged until then: the renewal at `takesEffectAt` charges `nextTotal` and starts the new plan.
|
|
8571
|
+
*/
|
|
8572
|
+
type PendingPlanChange = z.infer<typeof pendingPlanChangeSchema>;
|
|
8573
|
+
/** A plan a subscription is on or can switch to, with what its next renewal would charge on it. */
|
|
8574
|
+
type SubscriptionPlanOption = z.infer<typeof subscriptionPlanOptionSchema>;
|
|
8575
|
+
/**
|
|
8576
|
+
* The plans a subscription can switch to, the one it is on listed first. When it can't switch,
|
|
8577
|
+
* `unavailable` says why, in words that can be shown to the customer as they are.
|
|
8578
|
+
*/
|
|
8579
|
+
type SubscriptionPlanOptions = z.infer<typeof subscriptionPlanOptionsSchema>;
|
|
7606
8580
|
|
|
7607
8581
|
declare class SubscriptionEndpoints {
|
|
7608
8582
|
private readonly api;
|
|
@@ -7618,6 +8592,24 @@ declare class SubscriptionEndpoints {
|
|
|
7618
8592
|
* period ends. Pass `feedback` to record why they are cancelling.
|
|
7619
8593
|
*/
|
|
7620
8594
|
cancel(subscriptionId: string, feedback?: SubscriptionCancellationFeedback): Promise<Subscription>;
|
|
8595
|
+
/**
|
|
8596
|
+
* The plans the subscription can switch to when its current period ends, each with what the
|
|
8597
|
+
* next renewal would charge on it. The plan it is on comes first. When it can't switch,
|
|
8598
|
+
* `unavailable` says why, ready to show to the customer.
|
|
8599
|
+
*/
|
|
8600
|
+
getPlanOptions(subscriptionId: string): Promise<SubscriptionPlanOptions>;
|
|
8601
|
+
/**
|
|
8602
|
+
* Switches the subscription to another plan when its current period ends. Nothing is charged
|
|
8603
|
+
* now: the next renewal charges the new plan and starts its cycle. Until then the customer can
|
|
8604
|
+
* switch again, and passing the plan it is on keeps that plan. Returns the updated subscription,
|
|
8605
|
+
* with the switch in `pendingChange`.
|
|
8606
|
+
*/
|
|
8607
|
+
changePlan(subscriptionId: string, variationId: string): Promise<Subscription>;
|
|
8608
|
+
/**
|
|
8609
|
+
* Keeps the subscription on its current plan, dropping a switch scheduled with `changePlan`.
|
|
8610
|
+
* Returns the updated subscription.
|
|
8611
|
+
*/
|
|
8612
|
+
cancelPlanChange(subscriptionId: string): Promise<Subscription>;
|
|
7621
8613
|
renew(subscriptionId: string, returnUrl: string, embedded: boolean): Promise<{
|
|
7622
8614
|
location: string;
|
|
7623
8615
|
}>;
|
|
@@ -51649,4 +52641,4 @@ declare class MoonbaseClient {
|
|
|
51649
52641
|
orders: OrderEndpoints;
|
|
51650
52642
|
}
|
|
51651
52643
|
|
|
51652
|
-
export { type Activation, ActivationMethod, type ActivationReleaseNotCovered, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, Architecture, type BundleLineItem, CaptchaRequiredError, type CartCatalog, type CartOrder, type CartTotal, type CartTotalCondition, CartUtils, type CommunicationPreferences, type CommunicationPreferencesInput, type CommunicationPreferencesView, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, type ImageFit, type ImageFormat, type ImageTransform, ImageUtils, InMemoryStore, type License, type LicenseReleaseAccess, LicenseStatus, type LineItem, type LineItemTotal, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, type OfferConditionContext, type OfferProgress, type OfferScope, OfferUtils, type OpenOrder, type Order, OrderStatus, type OrderTotal, type OwnedProduct, type Page, PasswordSetupRequiredError, Platform, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type ProductRelease, type ProductReleaseAccess, type PromotionDisplay, type Quantifiable, type RawPropertyArray, type RawPropertyObject, type RawPropertyValue, ReleaseNotCoveredError, type SignUpOptions, type SignUpResult, type SingleOrMultiple, StoreClosedError, type Storefront, type StorefrontBundle, type StorefrontLicenseUpgrade, type StorefrontLicenseUpgradeReleaseAccess, type StorefrontOffer, type StorefrontOfferTarget, type StorefrontProduct, type StorefrontPromotion, type StorefrontPromotionCta, type StorefrontPromotionTarget, type SubscribeInput, type SubscribeResponse, type Subscription, type SubscriptionCancellationFeedback, SubscriptionCancellationReason, SubscriptionStatus, type TaxEstimate, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type UserAccountConfirmedStatus, type Vendor, type VendorCaptcha, type VendorFeatures, type Voucher, accessTokenLifetime, imageWidths, isLocalStorageAvailable, isPromotionDisplay, isTransformableImageUrl, maxImageDimension, normalizeGroupIds, objectToQuery, parseOffSiteReferrer, problemDetailsSchema, promotionDisplays, resolveUtm, schemas, utmToObject };
|
|
52644
|
+
export { type Activation, ActivationMethod, type ActivationReleaseNotCovered, type ActivationRequest, ActivationRequestFulfillmentType, ActivationRequestStatus, ActivationStatus, type Address, Architecture, type BundleLineItem, CaptchaRequiredError, type CartCatalog, type CartOrder, type CartTotal, type CartTotalCondition, CartUtils, type CommunicationPreferences, type CommunicationPreferencesInput, type CommunicationPreferencesView, type CompletedOrder, ConnectableAccountProvider, type ConnectedAccount, ConsoleLogger, CycleLength, type Discount, DiscountUtils, type Download, type DownloadManifest, type ILogger, type IRecurrence, type IStore, type ITokenStore, type Identity, type ImageFit, type ImageFormat, type ImageTransform, ImageUtils, InMemoryStore, type License, type LicenseReleaseAccess, LicenseStatus, type LineItem, type LineItemTotal, LocalStorageStore, LogLevel, MarketingConsentType, type MilestoneProgress, type Money, type MoneyCollection, MoneyCollectionUtils, MoonbaseApi, MoonbaseClient, type MoonbaseConfiguration, MoonbaseError, NotAuthenticatedError, NotAuthorizedError, NotFoundError, type OfferCondition, type OfferConditionContext, type OfferProgress, type OfferScope, OfferUtils, type OpenOrder, type Order, OrderStatus, type OrderTotal, type OwnedProduct, type Page, PasswordSetupRequiredError, type PendingPlanChange, Platform, type PricingOption, type PricingTier, type PricingVariation, type ProblemDetails, type ProductLineItem, type ProductRelease, type ProductReleaseAccess, type PromotionDisplay, type Quantifiable, type RawPropertyArray, type RawPropertyObject, type RawPropertyValue, ReleaseNotCoveredError, type SignUpOptions, type SignUpResult, type SingleOrMultiple, StoreClosedError, type Storefront, type StorefrontBundle, type StorefrontLicenseUpgrade, type StorefrontLicenseUpgradeReleaseAccess, type StorefrontOffer, type StorefrontOfferTarget, type StorefrontProduct, type StorefrontPromotion, type StorefrontPromotionCta, type StorefrontPromotionTarget, type SubscribeInput, type SubscribeResponse, type Subscription, type SubscriptionCancellationFeedback, SubscriptionCancellationReason, type SubscriptionPlanOption, type SubscriptionPlanOptions, SubscriptionStatus, type TaxEstimate, TokenStore, type UrchinTrackingModule, type User, type UserAccountConfirmed, type UserAccountConfirmedStatus, type Vendor, type VendorCaptcha, type VendorFeatures, type Voucher, accessTokenLifetime, imageWidths, isLocalStorageAvailable, isPromotionDisplay, isTransformableImageUrl, maxImageDimension, normalizeGroupIds, objectToQuery, parseOffSiteReferrer, problemDetailsSchema, promotionDisplays, resolveUtm, schemas, utmToObject };
|