@wix/subscription 1.0.1 → 1.0.3

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.
@@ -33,6 +33,7 @@ interface Subscription {
33
33
  /**
34
34
  * Represents when the subscription will end, relevant for subscriptions with a termed period.
35
35
  * If not provided, will be calculated based on billing schedule. Should be empty for evergreen subscription.
36
+ * Note: A 13-hour tolerance is applied when validating the end date to handle for time zone differences and minor discrepancies.
36
37
  */
37
38
  endDate?: Date;
38
39
  /** Business origin subscription is coming from. In site-level subscription it will be vertical app_id and entity_id */
@@ -324,6 +325,8 @@ interface Tax extends TaxValueOneOf {
324
325
  * Max: `100`
325
326
  */
326
327
  percentage?: string;
328
+ /** Dynamic tax calculation */
329
+ dynamic?: DynamicTax;
327
330
  }
328
331
  /** @oneof */
329
332
  interface TaxValueOneOf {
@@ -343,6 +346,11 @@ interface TaxValueOneOf {
343
346
  * Max: `100`
344
347
  */
345
348
  percentage?: string;
349
+ /** Dynamic tax calculation */
350
+ dynamic?: DynamicTax;
351
+ }
352
+ interface DynamicTax {
353
+ taxGroupId?: string | null;
346
354
  }
347
355
  interface Discount extends DiscountValueOneOf {
348
356
  /**
@@ -1078,7 +1086,7 @@ interface GetSubscriptionResponse {
1078
1086
  subscription?: Subscription;
1079
1087
  }
1080
1088
  interface CustomerCancelSubscriptionRequest {
1081
- _id?: string;
1089
+ _id: string;
1082
1090
  /** Optional action reason message */
1083
1091
  reason?: string | null;
1084
1092
  }
@@ -1086,7 +1094,7 @@ interface CustomerCancelSubscriptionResponse {
1086
1094
  subscription?: Subscription;
1087
1095
  }
1088
1096
  interface CustomerTurnOnAutoRenewalRequest {
1089
- _id?: string;
1097
+ _id: string;
1090
1098
  /** Optional action reason message */
1091
1099
  reason?: string | null;
1092
1100
  }
@@ -1094,7 +1102,7 @@ interface CustomerTurnOnAutoRenewalResponse {
1094
1102
  subscription?: Subscription;
1095
1103
  }
1096
1104
  interface CustomerTurnOffAutoRenewalRequest {
1097
- _id?: string;
1105
+ _id: string;
1098
1106
  /** Optional action reason message */
1099
1107
  reason?: string | null;
1100
1108
  }
@@ -1103,18 +1111,18 @@ interface CustomerTurnOffAutoRenewalResponse {
1103
1111
  }
1104
1112
  interface CustomerExtendSubscriptionRequest {
1105
1113
  /** The ID of the subscription to be extended */
1106
- _id?: string;
1114
+ _id: string;
1107
1115
  /** Optional action reason message */
1108
1116
  reason?: string | null;
1109
1117
  /** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
1110
- billingCyclesToAdd?: number | null;
1118
+ billingCyclesToAdd: number | null;
1111
1119
  }
1112
1120
  interface CustomerExtendSubscriptionResponse {
1113
1121
  /** The now extended subscription */
1114
1122
  subscription?: Subscription;
1115
1123
  }
1116
1124
  interface QuerySubscriptionsRequest {
1117
- query: QueryV2;
1125
+ query?: QueryV2;
1118
1126
  }
1119
1127
  interface QueryV2 extends QueryV2PagingMethodOneOf {
1120
1128
  /** Paging options to limit and skip the number of items. */
@@ -1243,7 +1251,7 @@ interface UpdateSubscriptionPaymentMethodResponse {
1243
1251
  subscription?: Subscription;
1244
1252
  }
1245
1253
  interface CustomerAllowedActionsRequest {
1246
- _id?: string;
1254
+ _id: string;
1247
1255
  }
1248
1256
  interface CustomerAllowedActionsResponse {
1249
1257
  actions?: Action[];
@@ -1277,7 +1285,7 @@ declare enum ExtendPolicyType {
1277
1285
  }
1278
1286
  interface CustomerListUpcomingChargesRequest {
1279
1287
  /** Subscription id upcoming charge to be previewed for */
1280
- _id?: string;
1288
+ _id: string;
1281
1289
  }
1282
1290
  interface CustomerListUpcomingChargesResponse {
1283
1291
  /** Subscription upcoming charge. Will be empty if no more billing scheduled. */
@@ -1488,7 +1496,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
1488
1496
  slug?: string;
1489
1497
  /** ID of the entity associated with the event. */
1490
1498
  entityId?: string;
1491
- /** Event timestamp. */
1499
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1492
1500
  eventTime?: Date;
1493
1501
  /**
1494
1502
  * Whether the event was triggered as a result of a privacy regulation application
@@ -2572,3205 +2580,304 @@ interface HandleSubscriptionAfterInvoiceMarkedAsPaidRequest {
2572
2580
  subscriptionId?: string;
2573
2581
  transactionId?: string;
2574
2582
  }
2583
+ interface CustomerNonNullableFields {
2584
+ visitorId: string;
2585
+ contactId: string;
2586
+ memberId: string;
2587
+ accountId: string;
2588
+ }
2589
+ interface PaymentMethodNonNullableFields {
2590
+ _id: string;
2591
+ }
2592
+ interface DurationNonNullableFields {
2593
+ unit: DurationUnit;
2594
+ }
2595
+ interface StreetAddressNonNullableFields {
2596
+ number: string;
2597
+ name: string;
2598
+ }
2599
+ interface AddressNonNullableFields {
2600
+ streetAddress?: StreetAddressNonNullableFields;
2601
+ }
2602
+ interface FullAddressDetailsNonNullableFields {
2603
+ address?: AddressNonNullableFields;
2604
+ }
2605
+ interface TaxSettingsNonNullableFields {
2606
+ inclusive: boolean;
2607
+ }
2608
+ interface TaxNonNullableFields {
2609
+ amount: string;
2610
+ percentage: string;
2611
+ }
2612
+ interface AdditionalFeeNonNullableFields {
2613
+ name: string;
2614
+ amount: string;
2615
+ trigger: AdditionalFeeTrigger;
2616
+ tax?: TaxNonNullableFields;
2617
+ }
2618
+ interface DiscountCyclesNonNullableFields {
2619
+ cycleFrom: number;
2620
+ }
2621
+ interface DiscountOriginNonNullableFields {
2622
+ appId: string;
2623
+ entityId: string;
2624
+ }
2625
+ interface DiscountNonNullableFields {
2626
+ amount: string;
2627
+ percentage: string;
2628
+ cycles?: DiscountCyclesNonNullableFields;
2629
+ origin?: DiscountOriginNonNullableFields;
2630
+ }
2631
+ interface ExternalCollectionDetailsNonNullableFields {
2632
+ collectorName: string;
2633
+ }
2634
+ interface BillingSettingsNonNullableFields {
2635
+ currency: string;
2636
+ paymentMethod?: PaymentMethodNonNullableFields;
2637
+ collectionMethod: CollectionMethod;
2638
+ cycleDuration?: DurationNonNullableFields;
2639
+ cycleAutoRenew: boolean;
2640
+ freeTrialDuration?: DurationNonNullableFields;
2641
+ billingAddress?: FullAddressDetailsNonNullableFields;
2642
+ taxSettings?: TaxSettingsNonNullableFields;
2643
+ additionalFees: AdditionalFeeNonNullableFields[];
2644
+ discounts: DiscountNonNullableFields[];
2645
+ externalCollectionDetails?: ExternalCollectionDetailsNonNullableFields;
2646
+ }
2647
+ interface TotalsNonNullableFields {
2648
+ totalPrice: string;
2649
+ subtotal: string;
2650
+ }
2651
+ interface PaymentDataNonNullableFields {
2652
+ invoiceId: string;
2653
+ paymentStatus: PaymentStatus;
2654
+ totals?: TotalsNonNullableFields;
2655
+ }
2656
+ interface CustomProrationNonNullableFields {
2657
+ charge: string;
2658
+ credit: string;
2659
+ }
2660
+ interface ProrationNonNullableFields {
2661
+ custom?: CustomProrationNonNullableFields;
2662
+ }
2663
+ interface UpdateBillingDateDataNonNullableFields {
2664
+ proration?: ProrationNonNullableFields;
2665
+ }
2666
+ interface AutomaticRetryDataNonNullableFields {
2667
+ enabled: boolean;
2668
+ }
2669
+ interface GracePeriodDataNonNullableFields {
2670
+ automaticRetryData?: AutomaticRetryDataNonNullableFields;
2671
+ }
2672
+ interface BillingStatusNonNullableFields {
2673
+ currentCycle: number;
2674
+ latestPaymentData?: PaymentDataNonNullableFields;
2675
+ updateBillingDateData?: UpdateBillingDateDataNonNullableFields;
2676
+ gracePeriodData?: GracePeriodDataNonNullableFields;
2677
+ }
2678
+ interface SubscriptionPoliciesNonNullableFields {
2679
+ customerCanCancel: boolean;
2680
+ businessCanExtend: boolean;
2681
+ allowEndOfCycleCancellation: boolean;
2682
+ }
2683
+ interface PauseInfoNonNullableFields {
2684
+ pausePolicy: PausePolicy;
2685
+ pauseAt: PauseAt;
2686
+ resumeAt: ResumeAt;
2687
+ }
2688
+ interface CancellationInfoNonNullableFields {
2689
+ initiator: HistoryActionInitiator;
2690
+ }
2691
+ interface FixedPriceNonNullableFields {
2692
+ itemPrice: string;
2693
+ }
2694
+ interface PricingModelNonNullableFields {
2695
+ fixedPrice?: FixedPriceNonNullableFields;
2696
+ }
2697
+ interface ItemChangeNonNullableFields {
2698
+ _id: string;
2699
+ pricingModel?: PricingModelNonNullableFields;
2700
+ tax?: TaxNonNullableFields;
2701
+ }
2702
+ interface CatalogReferenceNonNullableFields {
2703
+ catalogItemId: string;
2704
+ }
2705
+ interface ApplicationFeeNonNullableFields {
2706
+ amount: string;
2707
+ discounts: DiscountNonNullableFields[];
2708
+ }
2709
+ interface ItemNonNullableFields {
2710
+ name: string;
2711
+ catalogReference?: CatalogReferenceNonNullableFields;
2712
+ category: ItemCategory;
2713
+ quantity: number;
2714
+ pricingModel?: PricingModelNonNullableFields;
2715
+ tax?: TaxNonNullableFields;
2716
+ discounts: DiscountNonNullableFields[];
2717
+ applicationFee?: ApplicationFeeNonNullableFields;
2718
+ }
2719
+ interface SubscriptionUpdateDataNonNullableFields {
2720
+ itemsToUpdate: ItemChangeNonNullableFields[];
2721
+ itemsToAdd: ItemNonNullableFields[];
2722
+ numberOfRequests: number;
2723
+ }
2724
+ interface SpecificDateSubscriptionUpdateDataNonNullableFields {
2725
+ updateData?: SubscriptionUpdateDataNonNullableFields;
2726
+ }
2727
+ interface SubscriptionNonNullableFields {
2728
+ name: string;
2729
+ customer?: CustomerNonNullableFields;
2730
+ status: SubscriptionStatusEnumSubscriptionStatus;
2731
+ billingSettings?: BillingSettingsNonNullableFields;
2732
+ billingStatus?: BillingStatusNonNullableFields;
2733
+ shippingAddress?: FullAddressDetailsNonNullableFields;
2734
+ policies?: SubscriptionPoliciesNonNullableFields;
2735
+ pauseInfo?: PauseInfoNonNullableFields;
2736
+ cancellationInfo?: CancellationInfoNonNullableFields;
2737
+ pendingUpdateData?: SubscriptionUpdateDataNonNullableFields;
2738
+ bassManaged: boolean;
2739
+ specificDatePendingUpdateData?: SpecificDateSubscriptionUpdateDataNonNullableFields;
2740
+ items: ItemNonNullableFields[];
2741
+ }
2575
2742
  interface GetSubscriptionResponseNonNullableFields {
2576
- subscription?: {
2577
- name: string;
2578
- customer?: {
2579
- visitorId: string;
2580
- contactId: string;
2581
- memberId: string;
2582
- accountId: string;
2583
- };
2584
- status: SubscriptionStatusEnumSubscriptionStatus;
2585
- billingSettings?: {
2586
- currency: string;
2587
- paymentMethod?: {
2588
- _id: string;
2589
- };
2590
- collectionMethod: CollectionMethod;
2591
- cycleDuration?: {
2592
- unit: DurationUnit;
2593
- };
2594
- cycleAutoRenew: boolean;
2595
- freeTrialDuration?: {
2596
- unit: DurationUnit;
2597
- };
2598
- taxSettings?: {
2599
- inclusive: boolean;
2600
- };
2601
- additionalFees: {
2602
- name: string;
2603
- amount: string;
2604
- trigger: AdditionalFeeTrigger;
2605
- tax?: {
2606
- amount: string;
2607
- percentage: string;
2608
- };
2609
- }[];
2610
- discounts: {
2611
- amount: string;
2612
- percentage: string;
2613
- cycles?: {
2614
- cycleFrom: number;
2615
- };
2616
- origin?: {
2617
- appId: string;
2618
- entityId: string;
2619
- };
2620
- }[];
2621
- externalCollectionDetails?: {
2622
- collectorName: string;
2623
- };
2624
- };
2625
- billingStatus?: {
2626
- currentCycle: number;
2627
- latestPaymentData?: {
2628
- invoiceId: string;
2629
- paymentStatus: PaymentStatus;
2630
- totals?: {
2631
- totalPrice: string;
2632
- subtotal: string;
2633
- };
2634
- };
2635
- gracePeriodData?: {
2636
- automaticRetryData?: {
2637
- enabled: boolean;
2638
- };
2639
- };
2640
- };
2641
- policies?: {
2642
- customerCanCancel: boolean;
2643
- businessCanExtend: boolean;
2644
- allowEndOfCycleCancellation: boolean;
2645
- };
2646
- pauseInfo?: {
2647
- pausePolicy: PausePolicy;
2648
- pauseAt: PauseAt;
2649
- resumeAt: ResumeAt;
2650
- };
2651
- cancellationInfo?: {
2652
- initiator: HistoryActionInitiator;
2653
- };
2654
- pendingUpdateData?: {
2655
- itemsToUpdate: {
2656
- _id: string;
2657
- pricingModel?: {
2658
- fixedPrice?: {
2659
- itemPrice: string;
2660
- };
2661
- };
2662
- tax?: {
2663
- amount: string;
2664
- percentage: string;
2665
- };
2666
- }[];
2667
- itemsToAdd: {
2668
- name: string;
2669
- catalogReference?: {
2670
- catalogItemId: string;
2671
- };
2672
- category: ItemCategory;
2673
- quantity: number;
2674
- pricingModel?: {
2675
- fixedPrice?: {
2676
- itemPrice: string;
2677
- };
2678
- };
2679
- tax?: {
2680
- amount: string;
2681
- percentage: string;
2682
- };
2683
- discounts: {
2684
- amount: string;
2685
- percentage: string;
2686
- cycles?: {
2687
- cycleFrom: number;
2688
- };
2689
- origin?: {
2690
- appId: string;
2691
- entityId: string;
2692
- };
2693
- }[];
2694
- applicationFee?: {
2695
- amount: string;
2696
- discounts: {
2697
- amount: string;
2698
- percentage: string;
2699
- cycles?: {
2700
- cycleFrom: number;
2701
- };
2702
- origin?: {
2703
- appId: string;
2704
- entityId: string;
2705
- };
2706
- }[];
2707
- };
2708
- }[];
2709
- numberOfRequests: number;
2710
- };
2711
- specificDatePendingUpdateData?: {
2712
- updateData?: {
2713
- itemsToUpdate: {
2714
- _id: string;
2715
- pricingModel?: {
2716
- fixedPrice?: {
2717
- itemPrice: string;
2718
- };
2719
- };
2720
- tax?: {
2721
- amount: string;
2722
- percentage: string;
2723
- };
2724
- }[];
2725
- itemsToAdd: {
2726
- name: string;
2727
- catalogReference?: {
2728
- catalogItemId: string;
2729
- };
2730
- category: ItemCategory;
2731
- quantity: number;
2732
- pricingModel?: {
2733
- fixedPrice?: {
2734
- itemPrice: string;
2735
- };
2736
- };
2737
- tax?: {
2738
- amount: string;
2739
- percentage: string;
2740
- };
2741
- discounts: {
2742
- amount: string;
2743
- percentage: string;
2744
- cycles?: {
2745
- cycleFrom: number;
2746
- };
2747
- origin?: {
2748
- appId: string;
2749
- entityId: string;
2750
- };
2751
- }[];
2752
- applicationFee?: {
2753
- amount: string;
2754
- discounts: {
2755
- amount: string;
2756
- percentage: string;
2757
- cycles?: {
2758
- cycleFrom: number;
2759
- };
2760
- origin?: {
2761
- appId: string;
2762
- entityId: string;
2763
- };
2764
- }[];
2765
- };
2766
- }[];
2767
- numberOfRequests: number;
2768
- };
2769
- };
2770
- items: {
2771
- name: string;
2772
- catalogReference?: {
2773
- catalogItemId: string;
2774
- };
2775
- category: ItemCategory;
2776
- quantity: number;
2777
- pricingModel?: {
2778
- fixedPrice?: {
2779
- itemPrice: string;
2780
- };
2781
- };
2782
- tax?: {
2783
- amount: string;
2784
- percentage: string;
2785
- };
2786
- discounts: {
2787
- amount: string;
2788
- percentage: string;
2789
- cycles?: {
2790
- cycleFrom: number;
2791
- };
2792
- origin?: {
2793
- appId: string;
2794
- entityId: string;
2795
- };
2796
- }[];
2797
- applicationFee?: {
2798
- amount: string;
2799
- discounts: {
2800
- amount: string;
2801
- percentage: string;
2802
- cycles?: {
2803
- cycleFrom: number;
2804
- };
2805
- origin?: {
2806
- appId: string;
2807
- entityId: string;
2808
- };
2809
- }[];
2810
- };
2811
- }[];
2812
- };
2743
+ subscription?: SubscriptionNonNullableFields;
2744
+ }
2745
+ interface CustomerCancelSubscriptionResponseNonNullableFields {
2746
+ subscription?: SubscriptionNonNullableFields;
2747
+ }
2748
+ interface CustomerTurnOnAutoRenewalResponseNonNullableFields {
2749
+ subscription?: SubscriptionNonNullableFields;
2750
+ }
2751
+ interface CustomerTurnOffAutoRenewalResponseNonNullableFields {
2752
+ subscription?: SubscriptionNonNullableFields;
2753
+ }
2754
+ interface CustomerExtendSubscriptionResponseNonNullableFields {
2755
+ subscription?: SubscriptionNonNullableFields;
2756
+ }
2757
+ interface QuerySubscriptionsResponseNonNullableFields {
2758
+ subscriptions: SubscriptionNonNullableFields[];
2813
2759
  }
2814
2760
  interface UpdateSubscriptionPaymentMethodResponseNonNullableFields {
2815
- subscription?: {
2816
- name: string;
2817
- customer?: {
2818
- visitorId: string;
2819
- contactId: string;
2820
- memberId: string;
2821
- accountId: string;
2822
- };
2823
- status: SubscriptionStatusEnumSubscriptionStatus;
2824
- billingSettings?: {
2825
- currency: string;
2826
- paymentMethod?: {
2827
- _id: string;
2828
- };
2829
- collectionMethod: CollectionMethod;
2830
- cycleDuration?: {
2831
- unit: DurationUnit;
2832
- };
2833
- cycleAutoRenew: boolean;
2834
- freeTrialDuration?: {
2835
- unit: DurationUnit;
2836
- };
2837
- taxSettings?: {
2838
- inclusive: boolean;
2839
- };
2840
- additionalFees: {
2841
- name: string;
2842
- amount: string;
2843
- trigger: AdditionalFeeTrigger;
2844
- tax?: {
2845
- amount: string;
2846
- percentage: string;
2847
- };
2848
- }[];
2849
- discounts: {
2850
- amount: string;
2851
- percentage: string;
2852
- cycles?: {
2853
- cycleFrom: number;
2854
- };
2855
- origin?: {
2856
- appId: string;
2857
- entityId: string;
2858
- };
2859
- }[];
2860
- externalCollectionDetails?: {
2861
- collectorName: string;
2862
- };
2863
- };
2864
- billingStatus?: {
2865
- currentCycle: number;
2866
- latestPaymentData?: {
2867
- invoiceId: string;
2868
- paymentStatus: PaymentStatus;
2869
- totals?: {
2870
- totalPrice: string;
2871
- subtotal: string;
2872
- };
2873
- };
2874
- gracePeriodData?: {
2875
- automaticRetryData?: {
2876
- enabled: boolean;
2877
- };
2878
- };
2879
- };
2880
- policies?: {
2881
- customerCanCancel: boolean;
2882
- businessCanExtend: boolean;
2883
- allowEndOfCycleCancellation: boolean;
2884
- };
2885
- pauseInfo?: {
2886
- pausePolicy: PausePolicy;
2887
- pauseAt: PauseAt;
2888
- resumeAt: ResumeAt;
2889
- };
2890
- cancellationInfo?: {
2891
- initiator: HistoryActionInitiator;
2892
- };
2893
- pendingUpdateData?: {
2894
- itemsToUpdate: {
2895
- _id: string;
2896
- pricingModel?: {
2897
- fixedPrice?: {
2898
- itemPrice: string;
2899
- };
2900
- };
2901
- tax?: {
2902
- amount: string;
2903
- percentage: string;
2904
- };
2905
- }[];
2906
- itemsToAdd: {
2907
- name: string;
2908
- catalogReference?: {
2909
- catalogItemId: string;
2910
- };
2911
- category: ItemCategory;
2912
- quantity: number;
2913
- pricingModel?: {
2914
- fixedPrice?: {
2915
- itemPrice: string;
2916
- };
2917
- };
2918
- tax?: {
2919
- amount: string;
2920
- percentage: string;
2921
- };
2922
- discounts: {
2923
- amount: string;
2924
- percentage: string;
2925
- cycles?: {
2926
- cycleFrom: number;
2927
- };
2928
- origin?: {
2929
- appId: string;
2930
- entityId: string;
2931
- };
2932
- }[];
2933
- applicationFee?: {
2934
- amount: string;
2935
- discounts: {
2936
- amount: string;
2937
- percentage: string;
2938
- cycles?: {
2939
- cycleFrom: number;
2940
- };
2941
- origin?: {
2942
- appId: string;
2943
- entityId: string;
2944
- };
2945
- }[];
2946
- };
2947
- }[];
2948
- numberOfRequests: number;
2949
- };
2950
- specificDatePendingUpdateData?: {
2951
- updateData?: {
2952
- itemsToUpdate: {
2953
- _id: string;
2954
- pricingModel?: {
2955
- fixedPrice?: {
2956
- itemPrice: string;
2957
- };
2958
- };
2959
- tax?: {
2960
- amount: string;
2961
- percentage: string;
2962
- };
2963
- }[];
2964
- itemsToAdd: {
2965
- name: string;
2966
- catalogReference?: {
2967
- catalogItemId: string;
2968
- };
2969
- category: ItemCategory;
2970
- quantity: number;
2971
- pricingModel?: {
2972
- fixedPrice?: {
2973
- itemPrice: string;
2974
- };
2975
- };
2976
- tax?: {
2977
- amount: string;
2978
- percentage: string;
2979
- };
2980
- discounts: {
2981
- amount: string;
2982
- percentage: string;
2983
- cycles?: {
2984
- cycleFrom: number;
2985
- };
2986
- origin?: {
2987
- appId: string;
2988
- entityId: string;
2989
- };
2990
- }[];
2991
- applicationFee?: {
2992
- amount: string;
2993
- discounts: {
2994
- amount: string;
2995
- percentage: string;
2996
- cycles?: {
2997
- cycleFrom: number;
2998
- };
2999
- origin?: {
3000
- appId: string;
3001
- entityId: string;
3002
- };
3003
- }[];
3004
- };
3005
- }[];
3006
- numberOfRequests: number;
3007
- };
3008
- };
3009
- items: {
3010
- name: string;
3011
- catalogReference?: {
3012
- catalogItemId: string;
3013
- };
3014
- category: ItemCategory;
3015
- quantity: number;
3016
- pricingModel?: {
3017
- fixedPrice?: {
3018
- itemPrice: string;
3019
- };
3020
- };
3021
- tax?: {
3022
- amount: string;
3023
- percentage: string;
3024
- };
3025
- discounts: {
3026
- amount: string;
3027
- percentage: string;
3028
- cycles?: {
3029
- cycleFrom: number;
3030
- };
3031
- origin?: {
3032
- appId: string;
3033
- entityId: string;
3034
- };
3035
- }[];
3036
- applicationFee?: {
3037
- amount: string;
3038
- discounts: {
3039
- amount: string;
3040
- percentage: string;
3041
- cycles?: {
3042
- cycleFrom: number;
3043
- };
3044
- origin?: {
3045
- appId: string;
3046
- entityId: string;
3047
- };
3048
- }[];
3049
- };
3050
- }[];
3051
- };
2761
+ subscription?: SubscriptionNonNullableFields;
2762
+ }
2763
+ interface ActionNonNullableFields {
2764
+ actionType: ActionType;
2765
+ pausePolicies: PausePolicy[];
2766
+ pauseAt: PauseAt[];
2767
+ resumeAt: ResumeAt[];
2768
+ extendPolicies: ExtendPolicyType[];
2769
+ }
2770
+ interface CustomerAllowedActionsResponseNonNullableFields {
2771
+ actions: ActionNonNullableFields[];
2772
+ }
2773
+ interface RecurringNonNullableFields {
2774
+ cycleNumber: number;
2775
+ }
2776
+ interface InvoiceDiscountNonNullableFields {
2777
+ amount: string;
2778
+ percentage: string;
2779
+ origin?: DiscountOriginNonNullableFields;
2780
+ }
2781
+ interface InvoiceApplicationFeeNonNullableFields {
2782
+ amount: string;
2783
+ discount?: InvoiceDiscountNonNullableFields;
2784
+ }
2785
+ interface PriceDetailsNonNullableFields {
2786
+ price: string;
2787
+ tax?: TaxNonNullableFields;
2788
+ discount?: InvoiceDiscountNonNullableFields;
2789
+ applicationFeeDetails?: InvoiceApplicationFeeNonNullableFields;
2790
+ }
2791
+ interface InvoiceItemNonNullableFields {
2792
+ recurring?: RecurringNonNullableFields;
2793
+ _id: string;
2794
+ subscriptionId: string;
2795
+ name: string;
2796
+ catalogReference?: CatalogReferenceNonNullableFields;
2797
+ category: ItemCategory;
2798
+ quantity: number;
2799
+ priceDetails?: PriceDetailsNonNullableFields;
2800
+ totals?: TotalsNonNullableFields;
2801
+ }
2802
+ interface SubscriptionChargeNonNullableFields {
2803
+ cycle: number;
2804
+ totals?: TotalsNonNullableFields;
2805
+ invoiceItems: InvoiceItemNonNullableFields[];
2806
+ discount?: InvoiceDiscountNonNullableFields;
2807
+ }
2808
+ interface CustomerListUpcomingChargesResponseNonNullableFields {
2809
+ upcomingCharge?: SubscriptionChargeNonNullableFields;
2810
+ }
2811
+ interface InitiatePaymentMethodSetupResponseNonNullableFields {
2812
+ paymentOrderId: string;
3052
2813
  }
3053
2814
  interface UpdateSubscriptionBillingDateResponseNonNullableFields {
3054
- subscription?: {
3055
- name: string;
3056
- customer?: {
3057
- visitorId: string;
3058
- contactId: string;
3059
- memberId: string;
3060
- accountId: string;
3061
- };
3062
- status: SubscriptionStatusEnumSubscriptionStatus;
3063
- billingSettings?: {
3064
- currency: string;
3065
- paymentMethod?: {
3066
- _id: string;
3067
- };
3068
- collectionMethod: CollectionMethod;
3069
- cycleDuration?: {
3070
- unit: DurationUnit;
3071
- };
3072
- cycleAutoRenew: boolean;
3073
- freeTrialDuration?: {
3074
- unit: DurationUnit;
3075
- };
3076
- taxSettings?: {
3077
- inclusive: boolean;
3078
- };
3079
- additionalFees: {
3080
- name: string;
3081
- amount: string;
3082
- trigger: AdditionalFeeTrigger;
3083
- tax?: {
3084
- amount: string;
3085
- percentage: string;
3086
- };
3087
- }[];
3088
- discounts: {
3089
- amount: string;
3090
- percentage: string;
3091
- cycles?: {
3092
- cycleFrom: number;
3093
- };
3094
- origin?: {
3095
- appId: string;
3096
- entityId: string;
3097
- };
3098
- }[];
3099
- externalCollectionDetails?: {
3100
- collectorName: string;
3101
- };
3102
- };
3103
- billingStatus?: {
3104
- currentCycle: number;
3105
- latestPaymentData?: {
3106
- invoiceId: string;
3107
- paymentStatus: PaymentStatus;
3108
- totals?: {
3109
- totalPrice: string;
3110
- subtotal: string;
3111
- };
3112
- };
3113
- gracePeriodData?: {
3114
- automaticRetryData?: {
3115
- enabled: boolean;
3116
- };
3117
- };
3118
- };
3119
- policies?: {
3120
- customerCanCancel: boolean;
3121
- businessCanExtend: boolean;
3122
- allowEndOfCycleCancellation: boolean;
3123
- };
3124
- pauseInfo?: {
3125
- pausePolicy: PausePolicy;
3126
- pauseAt: PauseAt;
3127
- resumeAt: ResumeAt;
3128
- };
3129
- cancellationInfo?: {
3130
- initiator: HistoryActionInitiator;
3131
- };
3132
- pendingUpdateData?: {
3133
- itemsToUpdate: {
3134
- _id: string;
3135
- pricingModel?: {
3136
- fixedPrice?: {
3137
- itemPrice: string;
3138
- };
3139
- };
3140
- tax?: {
3141
- amount: string;
3142
- percentage: string;
3143
- };
3144
- }[];
3145
- itemsToAdd: {
3146
- name: string;
3147
- catalogReference?: {
3148
- catalogItemId: string;
3149
- };
3150
- category: ItemCategory;
3151
- quantity: number;
3152
- pricingModel?: {
3153
- fixedPrice?: {
3154
- itemPrice: string;
3155
- };
3156
- };
3157
- tax?: {
3158
- amount: string;
3159
- percentage: string;
3160
- };
3161
- discounts: {
3162
- amount: string;
3163
- percentage: string;
3164
- cycles?: {
3165
- cycleFrom: number;
3166
- };
3167
- origin?: {
3168
- appId: string;
3169
- entityId: string;
3170
- };
3171
- }[];
3172
- applicationFee?: {
3173
- amount: string;
3174
- discounts: {
3175
- amount: string;
3176
- percentage: string;
3177
- cycles?: {
3178
- cycleFrom: number;
3179
- };
3180
- origin?: {
3181
- appId: string;
3182
- entityId: string;
3183
- };
3184
- }[];
3185
- };
3186
- }[];
3187
- numberOfRequests: number;
3188
- };
3189
- specificDatePendingUpdateData?: {
3190
- updateData?: {
3191
- itemsToUpdate: {
3192
- _id: string;
3193
- pricingModel?: {
3194
- fixedPrice?: {
3195
- itemPrice: string;
3196
- };
3197
- };
3198
- tax?: {
3199
- amount: string;
3200
- percentage: string;
3201
- };
3202
- }[];
3203
- itemsToAdd: {
3204
- name: string;
3205
- catalogReference?: {
3206
- catalogItemId: string;
3207
- };
3208
- category: ItemCategory;
3209
- quantity: number;
3210
- pricingModel?: {
3211
- fixedPrice?: {
3212
- itemPrice: string;
3213
- };
3214
- };
3215
- tax?: {
3216
- amount: string;
3217
- percentage: string;
3218
- };
3219
- discounts: {
3220
- amount: string;
3221
- percentage: string;
3222
- cycles?: {
3223
- cycleFrom: number;
3224
- };
3225
- origin?: {
3226
- appId: string;
3227
- entityId: string;
3228
- };
3229
- }[];
3230
- applicationFee?: {
3231
- amount: string;
3232
- discounts: {
3233
- amount: string;
3234
- percentage: string;
3235
- cycles?: {
3236
- cycleFrom: number;
3237
- };
3238
- origin?: {
3239
- appId: string;
3240
- entityId: string;
3241
- };
3242
- }[];
3243
- };
3244
- }[];
3245
- numberOfRequests: number;
3246
- };
3247
- };
3248
- items: {
3249
- name: string;
3250
- catalogReference?: {
3251
- catalogItemId: string;
3252
- };
3253
- category: ItemCategory;
3254
- quantity: number;
3255
- pricingModel?: {
3256
- fixedPrice?: {
3257
- itemPrice: string;
3258
- };
3259
- };
3260
- tax?: {
3261
- amount: string;
3262
- percentage: string;
3263
- };
3264
- discounts: {
3265
- amount: string;
3266
- percentage: string;
3267
- cycles?: {
3268
- cycleFrom: number;
3269
- };
3270
- origin?: {
3271
- appId: string;
3272
- entityId: string;
3273
- };
3274
- }[];
3275
- applicationFee?: {
3276
- amount: string;
3277
- discounts: {
3278
- amount: string;
3279
- percentage: string;
3280
- cycles?: {
3281
- cycleFrom: number;
3282
- };
3283
- origin?: {
3284
- appId: string;
3285
- entityId: string;
3286
- };
3287
- }[];
3288
- };
3289
- }[];
3290
- };
2815
+ subscription?: SubscriptionNonNullableFields;
3291
2816
  }
3292
2817
  interface CancelSubscriptionResponseNonNullableFields {
3293
- subscription?: {
3294
- name: string;
3295
- customer?: {
3296
- visitorId: string;
3297
- contactId: string;
3298
- memberId: string;
3299
- accountId: string;
3300
- };
3301
- status: SubscriptionStatusEnumSubscriptionStatus;
3302
- billingSettings?: {
3303
- currency: string;
3304
- paymentMethod?: {
3305
- _id: string;
3306
- };
3307
- collectionMethod: CollectionMethod;
3308
- cycleDuration?: {
3309
- unit: DurationUnit;
3310
- };
3311
- cycleAutoRenew: boolean;
3312
- freeTrialDuration?: {
3313
- unit: DurationUnit;
3314
- };
3315
- taxSettings?: {
3316
- inclusive: boolean;
3317
- };
3318
- additionalFees: {
3319
- name: string;
3320
- amount: string;
3321
- trigger: AdditionalFeeTrigger;
3322
- tax?: {
3323
- amount: string;
3324
- percentage: string;
3325
- };
3326
- }[];
3327
- discounts: {
3328
- amount: string;
3329
- percentage: string;
3330
- cycles?: {
3331
- cycleFrom: number;
3332
- };
3333
- origin?: {
3334
- appId: string;
3335
- entityId: string;
3336
- };
3337
- }[];
3338
- externalCollectionDetails?: {
3339
- collectorName: string;
3340
- };
3341
- };
3342
- billingStatus?: {
3343
- currentCycle: number;
3344
- latestPaymentData?: {
3345
- invoiceId: string;
3346
- paymentStatus: PaymentStatus;
3347
- totals?: {
3348
- totalPrice: string;
3349
- subtotal: string;
3350
- };
3351
- };
3352
- gracePeriodData?: {
3353
- automaticRetryData?: {
3354
- enabled: boolean;
3355
- };
3356
- };
3357
- };
3358
- policies?: {
3359
- customerCanCancel: boolean;
3360
- businessCanExtend: boolean;
3361
- allowEndOfCycleCancellation: boolean;
3362
- };
3363
- pauseInfo?: {
3364
- pausePolicy: PausePolicy;
3365
- pauseAt: PauseAt;
3366
- resumeAt: ResumeAt;
3367
- };
3368
- cancellationInfo?: {
3369
- initiator: HistoryActionInitiator;
3370
- };
3371
- pendingUpdateData?: {
3372
- itemsToUpdate: {
3373
- _id: string;
3374
- pricingModel?: {
3375
- fixedPrice?: {
3376
- itemPrice: string;
3377
- };
3378
- };
3379
- tax?: {
3380
- amount: string;
3381
- percentage: string;
3382
- };
3383
- }[];
3384
- itemsToAdd: {
3385
- name: string;
3386
- catalogReference?: {
3387
- catalogItemId: string;
3388
- };
3389
- category: ItemCategory;
3390
- quantity: number;
3391
- pricingModel?: {
3392
- fixedPrice?: {
3393
- itemPrice: string;
3394
- };
3395
- };
3396
- tax?: {
3397
- amount: string;
3398
- percentage: string;
3399
- };
3400
- discounts: {
3401
- amount: string;
3402
- percentage: string;
3403
- cycles?: {
3404
- cycleFrom: number;
3405
- };
3406
- origin?: {
3407
- appId: string;
3408
- entityId: string;
3409
- };
3410
- }[];
3411
- applicationFee?: {
3412
- amount: string;
3413
- discounts: {
3414
- amount: string;
3415
- percentage: string;
3416
- cycles?: {
3417
- cycleFrom: number;
3418
- };
3419
- origin?: {
3420
- appId: string;
3421
- entityId: string;
3422
- };
3423
- }[];
3424
- };
3425
- }[];
3426
- numberOfRequests: number;
3427
- };
3428
- specificDatePendingUpdateData?: {
3429
- updateData?: {
3430
- itemsToUpdate: {
3431
- _id: string;
3432
- pricingModel?: {
3433
- fixedPrice?: {
3434
- itemPrice: string;
3435
- };
3436
- };
3437
- tax?: {
3438
- amount: string;
3439
- percentage: string;
3440
- };
3441
- }[];
3442
- itemsToAdd: {
3443
- name: string;
3444
- catalogReference?: {
3445
- catalogItemId: string;
3446
- };
3447
- category: ItemCategory;
3448
- quantity: number;
3449
- pricingModel?: {
3450
- fixedPrice?: {
3451
- itemPrice: string;
3452
- };
3453
- };
3454
- tax?: {
3455
- amount: string;
3456
- percentage: string;
3457
- };
3458
- discounts: {
3459
- amount: string;
3460
- percentage: string;
3461
- cycles?: {
3462
- cycleFrom: number;
3463
- };
3464
- origin?: {
3465
- appId: string;
3466
- entityId: string;
3467
- };
3468
- }[];
3469
- applicationFee?: {
3470
- amount: string;
3471
- discounts: {
3472
- amount: string;
3473
- percentage: string;
3474
- cycles?: {
3475
- cycleFrom: number;
3476
- };
3477
- origin?: {
3478
- appId: string;
3479
- entityId: string;
3480
- };
3481
- }[];
3482
- };
3483
- }[];
3484
- numberOfRequests: number;
3485
- };
3486
- };
3487
- items: {
3488
- name: string;
3489
- catalogReference?: {
3490
- catalogItemId: string;
3491
- };
3492
- category: ItemCategory;
3493
- quantity: number;
3494
- pricingModel?: {
3495
- fixedPrice?: {
3496
- itemPrice: string;
3497
- };
3498
- };
3499
- tax?: {
3500
- amount: string;
3501
- percentage: string;
3502
- };
3503
- discounts: {
3504
- amount: string;
3505
- percentage: string;
3506
- cycles?: {
3507
- cycleFrom: number;
3508
- };
3509
- origin?: {
3510
- appId: string;
3511
- entityId: string;
3512
- };
3513
- }[];
3514
- applicationFee?: {
3515
- amount: string;
3516
- discounts: {
3517
- amount: string;
3518
- percentage: string;
3519
- cycles?: {
3520
- cycleFrom: number;
3521
- };
3522
- origin?: {
3523
- appId: string;
3524
- entityId: string;
3525
- };
3526
- }[];
3527
- };
3528
- }[];
3529
- };
2818
+ subscription?: SubscriptionNonNullableFields;
3530
2819
  }
3531
2820
  interface PauseSubscriptionResponseNonNullableFields {
3532
- subscription?: {
3533
- name: string;
3534
- customer?: {
3535
- visitorId: string;
3536
- contactId: string;
3537
- memberId: string;
3538
- accountId: string;
3539
- };
3540
- status: SubscriptionStatusEnumSubscriptionStatus;
3541
- billingSettings?: {
3542
- currency: string;
3543
- paymentMethod?: {
3544
- _id: string;
3545
- };
3546
- collectionMethod: CollectionMethod;
3547
- cycleDuration?: {
3548
- unit: DurationUnit;
3549
- };
3550
- cycleAutoRenew: boolean;
3551
- freeTrialDuration?: {
3552
- unit: DurationUnit;
3553
- };
3554
- taxSettings?: {
3555
- inclusive: boolean;
3556
- };
3557
- additionalFees: {
3558
- name: string;
3559
- amount: string;
3560
- trigger: AdditionalFeeTrigger;
3561
- tax?: {
3562
- amount: string;
3563
- percentage: string;
3564
- };
3565
- }[];
3566
- discounts: {
3567
- amount: string;
3568
- percentage: string;
3569
- cycles?: {
3570
- cycleFrom: number;
3571
- };
3572
- origin?: {
3573
- appId: string;
3574
- entityId: string;
3575
- };
3576
- }[];
3577
- externalCollectionDetails?: {
3578
- collectorName: string;
3579
- };
3580
- };
3581
- billingStatus?: {
3582
- currentCycle: number;
3583
- latestPaymentData?: {
3584
- invoiceId: string;
3585
- paymentStatus: PaymentStatus;
3586
- totals?: {
3587
- totalPrice: string;
3588
- subtotal: string;
3589
- };
3590
- };
3591
- gracePeriodData?: {
3592
- automaticRetryData?: {
3593
- enabled: boolean;
3594
- };
3595
- };
3596
- };
3597
- policies?: {
3598
- customerCanCancel: boolean;
3599
- businessCanExtend: boolean;
3600
- allowEndOfCycleCancellation: boolean;
3601
- };
3602
- pauseInfo?: {
3603
- pausePolicy: PausePolicy;
3604
- pauseAt: PauseAt;
3605
- resumeAt: ResumeAt;
3606
- };
3607
- cancellationInfo?: {
3608
- initiator: HistoryActionInitiator;
3609
- };
3610
- pendingUpdateData?: {
3611
- itemsToUpdate: {
3612
- _id: string;
3613
- pricingModel?: {
3614
- fixedPrice?: {
3615
- itemPrice: string;
3616
- };
3617
- };
3618
- tax?: {
3619
- amount: string;
3620
- percentage: string;
3621
- };
3622
- }[];
3623
- itemsToAdd: {
3624
- name: string;
3625
- catalogReference?: {
3626
- catalogItemId: string;
3627
- };
3628
- category: ItemCategory;
3629
- quantity: number;
3630
- pricingModel?: {
3631
- fixedPrice?: {
3632
- itemPrice: string;
3633
- };
3634
- };
3635
- tax?: {
3636
- amount: string;
3637
- percentage: string;
3638
- };
3639
- discounts: {
3640
- amount: string;
3641
- percentage: string;
3642
- cycles?: {
3643
- cycleFrom: number;
3644
- };
3645
- origin?: {
3646
- appId: string;
3647
- entityId: string;
3648
- };
3649
- }[];
3650
- applicationFee?: {
3651
- amount: string;
3652
- discounts: {
3653
- amount: string;
3654
- percentage: string;
3655
- cycles?: {
3656
- cycleFrom: number;
3657
- };
3658
- origin?: {
3659
- appId: string;
3660
- entityId: string;
3661
- };
3662
- }[];
3663
- };
3664
- }[];
3665
- numberOfRequests: number;
3666
- };
3667
- specificDatePendingUpdateData?: {
3668
- updateData?: {
3669
- itemsToUpdate: {
3670
- _id: string;
3671
- pricingModel?: {
3672
- fixedPrice?: {
3673
- itemPrice: string;
3674
- };
3675
- };
3676
- tax?: {
3677
- amount: string;
3678
- percentage: string;
3679
- };
3680
- }[];
3681
- itemsToAdd: {
3682
- name: string;
3683
- catalogReference?: {
3684
- catalogItemId: string;
3685
- };
3686
- category: ItemCategory;
3687
- quantity: number;
3688
- pricingModel?: {
3689
- fixedPrice?: {
3690
- itemPrice: string;
3691
- };
3692
- };
3693
- tax?: {
3694
- amount: string;
3695
- percentage: string;
3696
- };
3697
- discounts: {
3698
- amount: string;
3699
- percentage: string;
3700
- cycles?: {
3701
- cycleFrom: number;
3702
- };
3703
- origin?: {
3704
- appId: string;
3705
- entityId: string;
3706
- };
3707
- }[];
3708
- applicationFee?: {
3709
- amount: string;
3710
- discounts: {
3711
- amount: string;
3712
- percentage: string;
3713
- cycles?: {
3714
- cycleFrom: number;
3715
- };
3716
- origin?: {
3717
- appId: string;
3718
- entityId: string;
3719
- };
3720
- }[];
3721
- };
3722
- }[];
3723
- numberOfRequests: number;
3724
- };
3725
- };
3726
- items: {
3727
- name: string;
3728
- catalogReference?: {
3729
- catalogItemId: string;
3730
- };
3731
- category: ItemCategory;
3732
- quantity: number;
3733
- pricingModel?: {
3734
- fixedPrice?: {
3735
- itemPrice: string;
3736
- };
3737
- };
3738
- tax?: {
3739
- amount: string;
3740
- percentage: string;
3741
- };
3742
- discounts: {
3743
- amount: string;
3744
- percentage: string;
3745
- cycles?: {
3746
- cycleFrom: number;
3747
- };
3748
- origin?: {
3749
- appId: string;
3750
- entityId: string;
3751
- };
3752
- }[];
3753
- applicationFee?: {
3754
- amount: string;
3755
- discounts: {
3756
- amount: string;
3757
- percentage: string;
3758
- cycles?: {
3759
- cycleFrom: number;
3760
- };
3761
- origin?: {
3762
- appId: string;
3763
- entityId: string;
3764
- };
3765
- }[];
3766
- };
3767
- }[];
3768
- };
2821
+ subscription?: SubscriptionNonNullableFields;
3769
2822
  }
3770
2823
  interface ResumeSubscriptionResponseNonNullableFields {
3771
- subscription?: {
3772
- name: string;
3773
- customer?: {
3774
- visitorId: string;
3775
- contactId: string;
3776
- memberId: string;
3777
- accountId: string;
3778
- };
3779
- status: SubscriptionStatusEnumSubscriptionStatus;
3780
- billingSettings?: {
3781
- currency: string;
3782
- paymentMethod?: {
3783
- _id: string;
3784
- };
3785
- collectionMethod: CollectionMethod;
3786
- cycleDuration?: {
3787
- unit: DurationUnit;
3788
- };
3789
- cycleAutoRenew: boolean;
3790
- freeTrialDuration?: {
3791
- unit: DurationUnit;
3792
- };
3793
- taxSettings?: {
3794
- inclusive: boolean;
3795
- };
3796
- additionalFees: {
3797
- name: string;
3798
- amount: string;
3799
- trigger: AdditionalFeeTrigger;
3800
- tax?: {
3801
- amount: string;
3802
- percentage: string;
3803
- };
3804
- }[];
3805
- discounts: {
3806
- amount: string;
3807
- percentage: string;
3808
- cycles?: {
3809
- cycleFrom: number;
3810
- };
3811
- origin?: {
3812
- appId: string;
3813
- entityId: string;
3814
- };
3815
- }[];
3816
- externalCollectionDetails?: {
3817
- collectorName: string;
3818
- };
3819
- };
3820
- billingStatus?: {
3821
- currentCycle: number;
3822
- latestPaymentData?: {
3823
- invoiceId: string;
3824
- paymentStatus: PaymentStatus;
3825
- totals?: {
3826
- totalPrice: string;
3827
- subtotal: string;
3828
- };
3829
- };
3830
- gracePeriodData?: {
3831
- automaticRetryData?: {
3832
- enabled: boolean;
3833
- };
3834
- };
3835
- };
3836
- policies?: {
3837
- customerCanCancel: boolean;
3838
- businessCanExtend: boolean;
3839
- allowEndOfCycleCancellation: boolean;
3840
- };
3841
- pauseInfo?: {
3842
- pausePolicy: PausePolicy;
3843
- pauseAt: PauseAt;
3844
- resumeAt: ResumeAt;
3845
- };
3846
- cancellationInfo?: {
3847
- initiator: HistoryActionInitiator;
3848
- };
3849
- pendingUpdateData?: {
3850
- itemsToUpdate: {
3851
- _id: string;
3852
- pricingModel?: {
3853
- fixedPrice?: {
3854
- itemPrice: string;
3855
- };
3856
- };
3857
- tax?: {
3858
- amount: string;
3859
- percentage: string;
3860
- };
3861
- }[];
3862
- itemsToAdd: {
3863
- name: string;
3864
- catalogReference?: {
3865
- catalogItemId: string;
3866
- };
3867
- category: ItemCategory;
3868
- quantity: number;
3869
- pricingModel?: {
3870
- fixedPrice?: {
3871
- itemPrice: string;
3872
- };
3873
- };
3874
- tax?: {
3875
- amount: string;
3876
- percentage: string;
3877
- };
3878
- discounts: {
3879
- amount: string;
3880
- percentage: string;
3881
- cycles?: {
3882
- cycleFrom: number;
3883
- };
3884
- origin?: {
3885
- appId: string;
3886
- entityId: string;
3887
- };
3888
- }[];
3889
- applicationFee?: {
3890
- amount: string;
3891
- discounts: {
3892
- amount: string;
3893
- percentage: string;
3894
- cycles?: {
3895
- cycleFrom: number;
3896
- };
3897
- origin?: {
3898
- appId: string;
3899
- entityId: string;
3900
- };
3901
- }[];
3902
- };
3903
- }[];
3904
- numberOfRequests: number;
3905
- };
3906
- specificDatePendingUpdateData?: {
3907
- updateData?: {
3908
- itemsToUpdate: {
3909
- _id: string;
3910
- pricingModel?: {
3911
- fixedPrice?: {
3912
- itemPrice: string;
3913
- };
3914
- };
3915
- tax?: {
3916
- amount: string;
3917
- percentage: string;
3918
- };
3919
- }[];
3920
- itemsToAdd: {
3921
- name: string;
3922
- catalogReference?: {
3923
- catalogItemId: string;
3924
- };
3925
- category: ItemCategory;
3926
- quantity: number;
3927
- pricingModel?: {
3928
- fixedPrice?: {
3929
- itemPrice: string;
3930
- };
3931
- };
3932
- tax?: {
3933
- amount: string;
3934
- percentage: string;
3935
- };
3936
- discounts: {
3937
- amount: string;
3938
- percentage: string;
3939
- cycles?: {
3940
- cycleFrom: number;
3941
- };
3942
- origin?: {
3943
- appId: string;
3944
- entityId: string;
3945
- };
3946
- }[];
3947
- applicationFee?: {
3948
- amount: string;
3949
- discounts: {
3950
- amount: string;
3951
- percentage: string;
3952
- cycles?: {
3953
- cycleFrom: number;
3954
- };
3955
- origin?: {
3956
- appId: string;
3957
- entityId: string;
3958
- };
3959
- }[];
3960
- };
3961
- }[];
3962
- numberOfRequests: number;
3963
- };
3964
- };
3965
- items: {
3966
- name: string;
3967
- catalogReference?: {
3968
- catalogItemId: string;
3969
- };
3970
- category: ItemCategory;
3971
- quantity: number;
3972
- pricingModel?: {
3973
- fixedPrice?: {
3974
- itemPrice: string;
3975
- };
3976
- };
3977
- tax?: {
3978
- amount: string;
3979
- percentage: string;
3980
- };
3981
- discounts: {
3982
- amount: string;
3983
- percentage: string;
3984
- cycles?: {
3985
- cycleFrom: number;
3986
- };
3987
- origin?: {
3988
- appId: string;
3989
- entityId: string;
3990
- };
3991
- }[];
3992
- applicationFee?: {
3993
- amount: string;
3994
- discounts: {
3995
- amount: string;
3996
- percentage: string;
3997
- cycles?: {
3998
- cycleFrom: number;
3999
- };
4000
- origin?: {
4001
- appId: string;
4002
- entityId: string;
4003
- };
4004
- }[];
4005
- };
4006
- }[];
4007
- };
4008
- }
4009
- interface QuerySubscriptionsResponseNonNullableFields {
4010
- subscriptions: {
4011
- name: string;
4012
- customer?: {
4013
- visitorId: string;
4014
- contactId: string;
4015
- memberId: string;
4016
- accountId: string;
4017
- };
4018
- status: SubscriptionStatusEnumSubscriptionStatus;
4019
- billingSettings?: {
4020
- currency: string;
4021
- paymentMethod?: {
4022
- _id: string;
4023
- };
4024
- collectionMethod: CollectionMethod;
4025
- cycleDuration?: {
4026
- unit: DurationUnit;
4027
- };
4028
- cycleAutoRenew: boolean;
4029
- freeTrialDuration?: {
4030
- unit: DurationUnit;
4031
- };
4032
- taxSettings?: {
4033
- inclusive: boolean;
4034
- };
4035
- additionalFees: {
4036
- name: string;
4037
- amount: string;
4038
- trigger: AdditionalFeeTrigger;
4039
- tax?: {
4040
- amount: string;
4041
- percentage: string;
4042
- };
4043
- }[];
4044
- discounts: {
4045
- amount: string;
4046
- percentage: string;
4047
- cycles?: {
4048
- cycleFrom: number;
4049
- };
4050
- origin?: {
4051
- appId: string;
4052
- entityId: string;
4053
- };
4054
- }[];
4055
- externalCollectionDetails?: {
4056
- collectorName: string;
4057
- };
4058
- };
4059
- billingStatus?: {
4060
- currentCycle: number;
4061
- latestPaymentData?: {
4062
- invoiceId: string;
4063
- paymentStatus: PaymentStatus;
4064
- totals?: {
4065
- totalPrice: string;
4066
- subtotal: string;
4067
- };
4068
- };
4069
- gracePeriodData?: {
4070
- automaticRetryData?: {
4071
- enabled: boolean;
4072
- };
4073
- };
4074
- };
4075
- policies?: {
4076
- customerCanCancel: boolean;
4077
- businessCanExtend: boolean;
4078
- allowEndOfCycleCancellation: boolean;
4079
- };
4080
- pauseInfo?: {
4081
- pausePolicy: PausePolicy;
4082
- pauseAt: PauseAt;
4083
- resumeAt: ResumeAt;
4084
- };
4085
- cancellationInfo?: {
4086
- initiator: HistoryActionInitiator;
4087
- };
4088
- pendingUpdateData?: {
4089
- itemsToUpdate: {
4090
- _id: string;
4091
- pricingModel?: {
4092
- fixedPrice?: {
4093
- itemPrice: string;
4094
- };
4095
- };
4096
- tax?: {
4097
- amount: string;
4098
- percentage: string;
4099
- };
4100
- }[];
4101
- itemsToAdd: {
4102
- name: string;
4103
- catalogReference?: {
4104
- catalogItemId: string;
4105
- };
4106
- category: ItemCategory;
4107
- quantity: number;
4108
- pricingModel?: {
4109
- fixedPrice?: {
4110
- itemPrice: string;
4111
- };
4112
- };
4113
- tax?: {
4114
- amount: string;
4115
- percentage: string;
4116
- };
4117
- discounts: {
4118
- amount: string;
4119
- percentage: string;
4120
- cycles?: {
4121
- cycleFrom: number;
4122
- };
4123
- origin?: {
4124
- appId: string;
4125
- entityId: string;
4126
- };
4127
- }[];
4128
- applicationFee?: {
4129
- amount: string;
4130
- discounts: {
4131
- amount: string;
4132
- percentage: string;
4133
- cycles?: {
4134
- cycleFrom: number;
4135
- };
4136
- origin?: {
4137
- appId: string;
4138
- entityId: string;
4139
- };
4140
- }[];
4141
- };
4142
- }[];
4143
- numberOfRequests: number;
4144
- };
4145
- specificDatePendingUpdateData?: {
4146
- updateData?: {
4147
- itemsToUpdate: {
4148
- _id: string;
4149
- pricingModel?: {
4150
- fixedPrice?: {
4151
- itemPrice: string;
4152
- };
4153
- };
4154
- tax?: {
4155
- amount: string;
4156
- percentage: string;
4157
- };
4158
- }[];
4159
- itemsToAdd: {
4160
- name: string;
4161
- catalogReference?: {
4162
- catalogItemId: string;
4163
- };
4164
- category: ItemCategory;
4165
- quantity: number;
4166
- pricingModel?: {
4167
- fixedPrice?: {
4168
- itemPrice: string;
4169
- };
4170
- };
4171
- tax?: {
4172
- amount: string;
4173
- percentage: string;
4174
- };
4175
- discounts: {
4176
- amount: string;
4177
- percentage: string;
4178
- cycles?: {
4179
- cycleFrom: number;
4180
- };
4181
- origin?: {
4182
- appId: string;
4183
- entityId: string;
4184
- };
4185
- }[];
4186
- applicationFee?: {
4187
- amount: string;
4188
- discounts: {
4189
- amount: string;
4190
- percentage: string;
4191
- cycles?: {
4192
- cycleFrom: number;
4193
- };
4194
- origin?: {
4195
- appId: string;
4196
- entityId: string;
4197
- };
4198
- }[];
4199
- };
4200
- }[];
4201
- numberOfRequests: number;
4202
- };
4203
- };
4204
- items: {
4205
- name: string;
4206
- catalogReference?: {
4207
- catalogItemId: string;
4208
- };
4209
- category: ItemCategory;
4210
- quantity: number;
4211
- pricingModel?: {
4212
- fixedPrice?: {
4213
- itemPrice: string;
4214
- };
4215
- };
4216
- tax?: {
4217
- amount: string;
4218
- percentage: string;
4219
- };
4220
- discounts: {
4221
- amount: string;
4222
- percentage: string;
4223
- cycles?: {
4224
- cycleFrom: number;
4225
- };
4226
- origin?: {
4227
- appId: string;
4228
- entityId: string;
4229
- };
4230
- }[];
4231
- applicationFee?: {
4232
- amount: string;
4233
- discounts: {
4234
- amount: string;
4235
- percentage: string;
4236
- cycles?: {
4237
- cycleFrom: number;
4238
- };
4239
- origin?: {
4240
- appId: string;
4241
- entityId: string;
4242
- };
4243
- }[];
4244
- };
4245
- }[];
4246
- }[];
2824
+ subscription?: SubscriptionNonNullableFields;
4247
2825
  }
4248
2826
  interface SearchSubscriptionsResponseNonNullableFields {
4249
- subscriptions: {
4250
- name: string;
4251
- customer?: {
4252
- visitorId: string;
4253
- contactId: string;
4254
- memberId: string;
4255
- accountId: string;
4256
- };
4257
- status: SubscriptionStatusEnumSubscriptionStatus;
4258
- billingSettings?: {
4259
- currency: string;
4260
- paymentMethod?: {
4261
- _id: string;
4262
- };
4263
- collectionMethod: CollectionMethod;
4264
- cycleDuration?: {
4265
- unit: DurationUnit;
4266
- };
4267
- cycleAutoRenew: boolean;
4268
- freeTrialDuration?: {
4269
- unit: DurationUnit;
4270
- };
4271
- taxSettings?: {
4272
- inclusive: boolean;
4273
- };
4274
- additionalFees: {
4275
- name: string;
4276
- amount: string;
4277
- trigger: AdditionalFeeTrigger;
4278
- tax?: {
4279
- amount: string;
4280
- percentage: string;
4281
- };
4282
- }[];
4283
- discounts: {
4284
- amount: string;
4285
- percentage: string;
4286
- cycles?: {
4287
- cycleFrom: number;
4288
- };
4289
- origin?: {
4290
- appId: string;
4291
- entityId: string;
4292
- };
4293
- }[];
4294
- externalCollectionDetails?: {
4295
- collectorName: string;
4296
- };
4297
- };
4298
- billingStatus?: {
4299
- currentCycle: number;
4300
- latestPaymentData?: {
4301
- invoiceId: string;
4302
- paymentStatus: PaymentStatus;
4303
- totals?: {
4304
- totalPrice: string;
4305
- subtotal: string;
4306
- };
4307
- };
4308
- gracePeriodData?: {
4309
- automaticRetryData?: {
4310
- enabled: boolean;
4311
- };
4312
- };
4313
- };
4314
- policies?: {
4315
- customerCanCancel: boolean;
4316
- businessCanExtend: boolean;
4317
- allowEndOfCycleCancellation: boolean;
4318
- };
4319
- pauseInfo?: {
4320
- pausePolicy: PausePolicy;
4321
- pauseAt: PauseAt;
4322
- resumeAt: ResumeAt;
4323
- };
4324
- cancellationInfo?: {
4325
- initiator: HistoryActionInitiator;
4326
- };
4327
- pendingUpdateData?: {
4328
- itemsToUpdate: {
4329
- _id: string;
4330
- pricingModel?: {
4331
- fixedPrice?: {
4332
- itemPrice: string;
4333
- };
4334
- };
4335
- tax?: {
4336
- amount: string;
4337
- percentage: string;
4338
- };
4339
- }[];
4340
- itemsToAdd: {
4341
- name: string;
4342
- catalogReference?: {
4343
- catalogItemId: string;
4344
- };
4345
- category: ItemCategory;
4346
- quantity: number;
4347
- pricingModel?: {
4348
- fixedPrice?: {
4349
- itemPrice: string;
4350
- };
4351
- };
4352
- tax?: {
4353
- amount: string;
4354
- percentage: string;
4355
- };
4356
- discounts: {
4357
- amount: string;
4358
- percentage: string;
4359
- cycles?: {
4360
- cycleFrom: number;
4361
- };
4362
- origin?: {
4363
- appId: string;
4364
- entityId: string;
4365
- };
4366
- }[];
4367
- applicationFee?: {
4368
- amount: string;
4369
- discounts: {
4370
- amount: string;
4371
- percentage: string;
4372
- cycles?: {
4373
- cycleFrom: number;
4374
- };
4375
- origin?: {
4376
- appId: string;
4377
- entityId: string;
4378
- };
4379
- }[];
4380
- };
4381
- }[];
4382
- numberOfRequests: number;
4383
- };
4384
- specificDatePendingUpdateData?: {
4385
- updateData?: {
4386
- itemsToUpdate: {
4387
- _id: string;
4388
- pricingModel?: {
4389
- fixedPrice?: {
4390
- itemPrice: string;
4391
- };
4392
- };
4393
- tax?: {
4394
- amount: string;
4395
- percentage: string;
4396
- };
4397
- }[];
4398
- itemsToAdd: {
4399
- name: string;
4400
- catalogReference?: {
4401
- catalogItemId: string;
4402
- };
4403
- category: ItemCategory;
4404
- quantity: number;
4405
- pricingModel?: {
4406
- fixedPrice?: {
4407
- itemPrice: string;
4408
- };
4409
- };
4410
- tax?: {
4411
- amount: string;
4412
- percentage: string;
4413
- };
4414
- discounts: {
4415
- amount: string;
4416
- percentage: string;
4417
- cycles?: {
4418
- cycleFrom: number;
4419
- };
4420
- origin?: {
4421
- appId: string;
4422
- entityId: string;
4423
- };
4424
- }[];
4425
- applicationFee?: {
4426
- amount: string;
4427
- discounts: {
4428
- amount: string;
4429
- percentage: string;
4430
- cycles?: {
4431
- cycleFrom: number;
4432
- };
4433
- origin?: {
4434
- appId: string;
4435
- entityId: string;
4436
- };
4437
- }[];
4438
- };
4439
- }[];
4440
- numberOfRequests: number;
4441
- };
4442
- };
4443
- items: {
4444
- name: string;
4445
- catalogReference?: {
4446
- catalogItemId: string;
4447
- };
4448
- category: ItemCategory;
4449
- quantity: number;
4450
- pricingModel?: {
4451
- fixedPrice?: {
4452
- itemPrice: string;
4453
- };
4454
- };
4455
- tax?: {
4456
- amount: string;
4457
- percentage: string;
4458
- };
4459
- discounts: {
4460
- amount: string;
4461
- percentage: string;
4462
- cycles?: {
4463
- cycleFrom: number;
4464
- };
4465
- origin?: {
4466
- appId: string;
4467
- entityId: string;
4468
- };
4469
- }[];
4470
- applicationFee?: {
4471
- amount: string;
4472
- discounts: {
4473
- amount: string;
4474
- percentage: string;
4475
- cycles?: {
4476
- cycleFrom: number;
4477
- };
4478
- origin?: {
4479
- appId: string;
4480
- entityId: string;
4481
- };
4482
- }[];
4483
- };
4484
- }[];
4485
- }[];
2827
+ subscriptions: SubscriptionNonNullableFields[];
2828
+ }
2829
+ interface CountByStatusNonNullableFields {
2830
+ status: SubscriptionStatusEnumSubscriptionStatus;
2831
+ count: number;
4486
2832
  }
4487
2833
  interface CountSubscriptionsResponseNonNullableFields {
4488
- countByStatus: {
4489
- status: SubscriptionStatusEnumSubscriptionStatus;
4490
- count: number;
4491
- }[];
2834
+ countByStatus: CountByStatusNonNullableFields[];
4492
2835
  total: number;
4493
2836
  }
4494
2837
  interface TurnOnSubscriptionAutoRenewalResponseNonNullableFields {
4495
- subscription?: {
4496
- name: string;
4497
- customer?: {
4498
- visitorId: string;
4499
- contactId: string;
4500
- memberId: string;
4501
- accountId: string;
4502
- };
4503
- status: SubscriptionStatusEnumSubscriptionStatus;
4504
- billingSettings?: {
4505
- currency: string;
4506
- paymentMethod?: {
4507
- _id: string;
4508
- };
4509
- collectionMethod: CollectionMethod;
4510
- cycleDuration?: {
4511
- unit: DurationUnit;
4512
- };
4513
- cycleAutoRenew: boolean;
4514
- freeTrialDuration?: {
4515
- unit: DurationUnit;
4516
- };
4517
- taxSettings?: {
4518
- inclusive: boolean;
4519
- };
4520
- additionalFees: {
4521
- name: string;
4522
- amount: string;
4523
- trigger: AdditionalFeeTrigger;
4524
- tax?: {
4525
- amount: string;
4526
- percentage: string;
4527
- };
4528
- }[];
4529
- discounts: {
4530
- amount: string;
4531
- percentage: string;
4532
- cycles?: {
4533
- cycleFrom: number;
4534
- };
4535
- origin?: {
4536
- appId: string;
4537
- entityId: string;
4538
- };
4539
- }[];
4540
- externalCollectionDetails?: {
4541
- collectorName: string;
4542
- };
4543
- };
4544
- billingStatus?: {
4545
- currentCycle: number;
4546
- latestPaymentData?: {
4547
- invoiceId: string;
4548
- paymentStatus: PaymentStatus;
4549
- totals?: {
4550
- totalPrice: string;
4551
- subtotal: string;
4552
- };
4553
- };
4554
- gracePeriodData?: {
4555
- automaticRetryData?: {
4556
- enabled: boolean;
4557
- };
4558
- };
4559
- };
4560
- policies?: {
4561
- customerCanCancel: boolean;
4562
- businessCanExtend: boolean;
4563
- allowEndOfCycleCancellation: boolean;
4564
- };
4565
- pauseInfo?: {
4566
- pausePolicy: PausePolicy;
4567
- pauseAt: PauseAt;
4568
- resumeAt: ResumeAt;
4569
- };
4570
- cancellationInfo?: {
4571
- initiator: HistoryActionInitiator;
4572
- };
4573
- pendingUpdateData?: {
4574
- itemsToUpdate: {
4575
- _id: string;
4576
- pricingModel?: {
4577
- fixedPrice?: {
4578
- itemPrice: string;
4579
- };
4580
- };
4581
- tax?: {
4582
- amount: string;
4583
- percentage: string;
4584
- };
4585
- }[];
4586
- itemsToAdd: {
4587
- name: string;
4588
- catalogReference?: {
4589
- catalogItemId: string;
4590
- };
4591
- category: ItemCategory;
4592
- quantity: number;
4593
- pricingModel?: {
4594
- fixedPrice?: {
4595
- itemPrice: string;
4596
- };
4597
- };
4598
- tax?: {
4599
- amount: string;
4600
- percentage: string;
4601
- };
4602
- discounts: {
4603
- amount: string;
4604
- percentage: string;
4605
- cycles?: {
4606
- cycleFrom: number;
4607
- };
4608
- origin?: {
4609
- appId: string;
4610
- entityId: string;
4611
- };
4612
- }[];
4613
- applicationFee?: {
4614
- amount: string;
4615
- discounts: {
4616
- amount: string;
4617
- percentage: string;
4618
- cycles?: {
4619
- cycleFrom: number;
4620
- };
4621
- origin?: {
4622
- appId: string;
4623
- entityId: string;
4624
- };
4625
- }[];
4626
- };
4627
- }[];
4628
- numberOfRequests: number;
4629
- };
4630
- specificDatePendingUpdateData?: {
4631
- updateData?: {
4632
- itemsToUpdate: {
4633
- _id: string;
4634
- pricingModel?: {
4635
- fixedPrice?: {
4636
- itemPrice: string;
4637
- };
4638
- };
4639
- tax?: {
4640
- amount: string;
4641
- percentage: string;
4642
- };
4643
- }[];
4644
- itemsToAdd: {
4645
- name: string;
4646
- catalogReference?: {
4647
- catalogItemId: string;
4648
- };
4649
- category: ItemCategory;
4650
- quantity: number;
4651
- pricingModel?: {
4652
- fixedPrice?: {
4653
- itemPrice: string;
4654
- };
4655
- };
4656
- tax?: {
4657
- amount: string;
4658
- percentage: string;
4659
- };
4660
- discounts: {
4661
- amount: string;
4662
- percentage: string;
4663
- cycles?: {
4664
- cycleFrom: number;
4665
- };
4666
- origin?: {
4667
- appId: string;
4668
- entityId: string;
4669
- };
4670
- }[];
4671
- applicationFee?: {
4672
- amount: string;
4673
- discounts: {
4674
- amount: string;
4675
- percentage: string;
4676
- cycles?: {
4677
- cycleFrom: number;
4678
- };
4679
- origin?: {
4680
- appId: string;
4681
- entityId: string;
4682
- };
4683
- }[];
4684
- };
4685
- }[];
4686
- numberOfRequests: number;
4687
- };
4688
- };
4689
- items: {
4690
- name: string;
4691
- catalogReference?: {
4692
- catalogItemId: string;
4693
- };
4694
- category: ItemCategory;
4695
- quantity: number;
4696
- pricingModel?: {
4697
- fixedPrice?: {
4698
- itemPrice: string;
4699
- };
4700
- };
4701
- tax?: {
4702
- amount: string;
4703
- percentage: string;
4704
- };
4705
- discounts: {
4706
- amount: string;
4707
- percentage: string;
4708
- cycles?: {
4709
- cycleFrom: number;
4710
- };
4711
- origin?: {
4712
- appId: string;
4713
- entityId: string;
4714
- };
4715
- }[];
4716
- applicationFee?: {
4717
- amount: string;
4718
- discounts: {
4719
- amount: string;
4720
- percentage: string;
4721
- cycles?: {
4722
- cycleFrom: number;
4723
- };
4724
- origin?: {
4725
- appId: string;
4726
- entityId: string;
4727
- };
4728
- }[];
4729
- };
4730
- }[];
4731
- };
2838
+ subscription?: SubscriptionNonNullableFields;
4732
2839
  }
4733
2840
  interface TurnOffSubscriptionAutoRenewalResponseNonNullableFields {
4734
- subscription?: {
4735
- name: string;
4736
- customer?: {
4737
- visitorId: string;
4738
- contactId: string;
4739
- memberId: string;
4740
- accountId: string;
4741
- };
4742
- status: SubscriptionStatusEnumSubscriptionStatus;
4743
- billingSettings?: {
4744
- currency: string;
4745
- paymentMethod?: {
4746
- _id: string;
4747
- };
4748
- collectionMethod: CollectionMethod;
4749
- cycleDuration?: {
4750
- unit: DurationUnit;
4751
- };
4752
- cycleAutoRenew: boolean;
4753
- freeTrialDuration?: {
4754
- unit: DurationUnit;
4755
- };
4756
- taxSettings?: {
4757
- inclusive: boolean;
4758
- };
4759
- additionalFees: {
4760
- name: string;
4761
- amount: string;
4762
- trigger: AdditionalFeeTrigger;
4763
- tax?: {
4764
- amount: string;
4765
- percentage: string;
4766
- };
4767
- }[];
4768
- discounts: {
4769
- amount: string;
4770
- percentage: string;
4771
- cycles?: {
4772
- cycleFrom: number;
4773
- };
4774
- origin?: {
4775
- appId: string;
4776
- entityId: string;
4777
- };
4778
- }[];
4779
- externalCollectionDetails?: {
4780
- collectorName: string;
4781
- };
4782
- };
4783
- billingStatus?: {
4784
- currentCycle: number;
4785
- latestPaymentData?: {
4786
- invoiceId: string;
4787
- paymentStatus: PaymentStatus;
4788
- totals?: {
4789
- totalPrice: string;
4790
- subtotal: string;
4791
- };
4792
- };
4793
- gracePeriodData?: {
4794
- automaticRetryData?: {
4795
- enabled: boolean;
4796
- };
4797
- };
4798
- };
4799
- policies?: {
4800
- customerCanCancel: boolean;
4801
- businessCanExtend: boolean;
4802
- allowEndOfCycleCancellation: boolean;
4803
- };
4804
- pauseInfo?: {
4805
- pausePolicy: PausePolicy;
4806
- pauseAt: PauseAt;
4807
- resumeAt: ResumeAt;
4808
- };
4809
- cancellationInfo?: {
4810
- initiator: HistoryActionInitiator;
4811
- };
4812
- pendingUpdateData?: {
4813
- itemsToUpdate: {
4814
- _id: string;
4815
- pricingModel?: {
4816
- fixedPrice?: {
4817
- itemPrice: string;
4818
- };
4819
- };
4820
- tax?: {
4821
- amount: string;
4822
- percentage: string;
4823
- };
4824
- }[];
4825
- itemsToAdd: {
4826
- name: string;
4827
- catalogReference?: {
4828
- catalogItemId: string;
4829
- };
4830
- category: ItemCategory;
4831
- quantity: number;
4832
- pricingModel?: {
4833
- fixedPrice?: {
4834
- itemPrice: string;
4835
- };
4836
- };
4837
- tax?: {
4838
- amount: string;
4839
- percentage: string;
4840
- };
4841
- discounts: {
4842
- amount: string;
4843
- percentage: string;
4844
- cycles?: {
4845
- cycleFrom: number;
4846
- };
4847
- origin?: {
4848
- appId: string;
4849
- entityId: string;
4850
- };
4851
- }[];
4852
- applicationFee?: {
4853
- amount: string;
4854
- discounts: {
4855
- amount: string;
4856
- percentage: string;
4857
- cycles?: {
4858
- cycleFrom: number;
4859
- };
4860
- origin?: {
4861
- appId: string;
4862
- entityId: string;
4863
- };
4864
- }[];
4865
- };
4866
- }[];
4867
- numberOfRequests: number;
4868
- };
4869
- specificDatePendingUpdateData?: {
4870
- updateData?: {
4871
- itemsToUpdate: {
4872
- _id: string;
4873
- pricingModel?: {
4874
- fixedPrice?: {
4875
- itemPrice: string;
4876
- };
4877
- };
4878
- tax?: {
4879
- amount: string;
4880
- percentage: string;
4881
- };
4882
- }[];
4883
- itemsToAdd: {
4884
- name: string;
4885
- catalogReference?: {
4886
- catalogItemId: string;
4887
- };
4888
- category: ItemCategory;
4889
- quantity: number;
4890
- pricingModel?: {
4891
- fixedPrice?: {
4892
- itemPrice: string;
4893
- };
4894
- };
4895
- tax?: {
4896
- amount: string;
4897
- percentage: string;
4898
- };
4899
- discounts: {
4900
- amount: string;
4901
- percentage: string;
4902
- cycles?: {
4903
- cycleFrom: number;
4904
- };
4905
- origin?: {
4906
- appId: string;
4907
- entityId: string;
4908
- };
4909
- }[];
4910
- applicationFee?: {
4911
- amount: string;
4912
- discounts: {
4913
- amount: string;
4914
- percentage: string;
4915
- cycles?: {
4916
- cycleFrom: number;
4917
- };
4918
- origin?: {
4919
- appId: string;
4920
- entityId: string;
4921
- };
4922
- }[];
4923
- };
4924
- }[];
4925
- numberOfRequests: number;
4926
- };
4927
- };
4928
- items: {
4929
- name: string;
4930
- catalogReference?: {
4931
- catalogItemId: string;
4932
- };
4933
- category: ItemCategory;
4934
- quantity: number;
4935
- pricingModel?: {
4936
- fixedPrice?: {
4937
- itemPrice: string;
4938
- };
4939
- };
4940
- tax?: {
4941
- amount: string;
4942
- percentage: string;
4943
- };
4944
- discounts: {
4945
- amount: string;
4946
- percentage: string;
4947
- cycles?: {
4948
- cycleFrom: number;
4949
- };
4950
- origin?: {
4951
- appId: string;
4952
- entityId: string;
4953
- };
4954
- }[];
4955
- applicationFee?: {
4956
- amount: string;
4957
- discounts: {
4958
- amount: string;
4959
- percentage: string;
4960
- cycles?: {
4961
- cycleFrom: number;
4962
- };
4963
- origin?: {
4964
- appId: string;
4965
- entityId: string;
4966
- };
4967
- }[];
4968
- };
4969
- }[];
4970
- };
2841
+ subscription?: SubscriptionNonNullableFields;
4971
2842
  }
4972
2843
  interface MarkLatestInvoiceAsPaidResponseNonNullableFields {
4973
- subscription?: {
4974
- name: string;
4975
- customer?: {
4976
- visitorId: string;
4977
- contactId: string;
4978
- memberId: string;
4979
- accountId: string;
4980
- };
4981
- status: SubscriptionStatusEnumSubscriptionStatus;
4982
- billingSettings?: {
4983
- currency: string;
4984
- paymentMethod?: {
4985
- _id: string;
4986
- };
4987
- collectionMethod: CollectionMethod;
4988
- cycleDuration?: {
4989
- unit: DurationUnit;
4990
- };
4991
- cycleAutoRenew: boolean;
4992
- freeTrialDuration?: {
4993
- unit: DurationUnit;
4994
- };
4995
- taxSettings?: {
4996
- inclusive: boolean;
4997
- };
4998
- additionalFees: {
4999
- name: string;
5000
- amount: string;
5001
- trigger: AdditionalFeeTrigger;
5002
- tax?: {
5003
- amount: string;
5004
- percentage: string;
5005
- };
5006
- }[];
5007
- discounts: {
5008
- amount: string;
5009
- percentage: string;
5010
- cycles?: {
5011
- cycleFrom: number;
5012
- };
5013
- origin?: {
5014
- appId: string;
5015
- entityId: string;
5016
- };
5017
- }[];
5018
- externalCollectionDetails?: {
5019
- collectorName: string;
5020
- };
5021
- };
5022
- billingStatus?: {
5023
- currentCycle: number;
5024
- latestPaymentData?: {
5025
- invoiceId: string;
5026
- paymentStatus: PaymentStatus;
5027
- totals?: {
5028
- totalPrice: string;
5029
- subtotal: string;
5030
- };
5031
- };
5032
- gracePeriodData?: {
5033
- automaticRetryData?: {
5034
- enabled: boolean;
5035
- };
5036
- };
5037
- };
5038
- policies?: {
5039
- customerCanCancel: boolean;
5040
- businessCanExtend: boolean;
5041
- allowEndOfCycleCancellation: boolean;
5042
- };
5043
- pauseInfo?: {
5044
- pausePolicy: PausePolicy;
5045
- pauseAt: PauseAt;
5046
- resumeAt: ResumeAt;
5047
- };
5048
- cancellationInfo?: {
5049
- initiator: HistoryActionInitiator;
5050
- };
5051
- pendingUpdateData?: {
5052
- itemsToUpdate: {
5053
- _id: string;
5054
- pricingModel?: {
5055
- fixedPrice?: {
5056
- itemPrice: string;
5057
- };
5058
- };
5059
- tax?: {
5060
- amount: string;
5061
- percentage: string;
5062
- };
5063
- }[];
5064
- itemsToAdd: {
5065
- name: string;
5066
- catalogReference?: {
5067
- catalogItemId: string;
5068
- };
5069
- category: ItemCategory;
5070
- quantity: number;
5071
- pricingModel?: {
5072
- fixedPrice?: {
5073
- itemPrice: string;
5074
- };
5075
- };
5076
- tax?: {
5077
- amount: string;
5078
- percentage: string;
5079
- };
5080
- discounts: {
5081
- amount: string;
5082
- percentage: string;
5083
- cycles?: {
5084
- cycleFrom: number;
5085
- };
5086
- origin?: {
5087
- appId: string;
5088
- entityId: string;
5089
- };
5090
- }[];
5091
- applicationFee?: {
5092
- amount: string;
5093
- discounts: {
5094
- amount: string;
5095
- percentage: string;
5096
- cycles?: {
5097
- cycleFrom: number;
5098
- };
5099
- origin?: {
5100
- appId: string;
5101
- entityId: string;
5102
- };
5103
- }[];
5104
- };
5105
- }[];
5106
- numberOfRequests: number;
5107
- };
5108
- specificDatePendingUpdateData?: {
5109
- updateData?: {
5110
- itemsToUpdate: {
5111
- _id: string;
5112
- pricingModel?: {
5113
- fixedPrice?: {
5114
- itemPrice: string;
5115
- };
5116
- };
5117
- tax?: {
5118
- amount: string;
5119
- percentage: string;
5120
- };
5121
- }[];
5122
- itemsToAdd: {
5123
- name: string;
5124
- catalogReference?: {
5125
- catalogItemId: string;
5126
- };
5127
- category: ItemCategory;
5128
- quantity: number;
5129
- pricingModel?: {
5130
- fixedPrice?: {
5131
- itemPrice: string;
5132
- };
5133
- };
5134
- tax?: {
5135
- amount: string;
5136
- percentage: string;
5137
- };
5138
- discounts: {
5139
- amount: string;
5140
- percentage: string;
5141
- cycles?: {
5142
- cycleFrom: number;
5143
- };
5144
- origin?: {
5145
- appId: string;
5146
- entityId: string;
5147
- };
5148
- }[];
5149
- applicationFee?: {
5150
- amount: string;
5151
- discounts: {
5152
- amount: string;
5153
- percentage: string;
5154
- cycles?: {
5155
- cycleFrom: number;
5156
- };
5157
- origin?: {
5158
- appId: string;
5159
- entityId: string;
5160
- };
5161
- }[];
5162
- };
5163
- }[];
5164
- numberOfRequests: number;
5165
- };
5166
- };
5167
- items: {
5168
- name: string;
5169
- catalogReference?: {
5170
- catalogItemId: string;
5171
- };
5172
- category: ItemCategory;
5173
- quantity: number;
5174
- pricingModel?: {
5175
- fixedPrice?: {
5176
- itemPrice: string;
5177
- };
5178
- };
5179
- tax?: {
5180
- amount: string;
5181
- percentage: string;
5182
- };
5183
- discounts: {
5184
- amount: string;
5185
- percentage: string;
5186
- cycles?: {
5187
- cycleFrom: number;
5188
- };
5189
- origin?: {
5190
- appId: string;
5191
- entityId: string;
5192
- };
5193
- }[];
5194
- applicationFee?: {
5195
- amount: string;
5196
- discounts: {
5197
- amount: string;
5198
- percentage: string;
5199
- cycles?: {
5200
- cycleFrom: number;
5201
- };
5202
- origin?: {
5203
- appId: string;
5204
- entityId: string;
5205
- };
5206
- }[];
5207
- };
5208
- }[];
5209
- };
2844
+ subscription?: SubscriptionNonNullableFields;
2845
+ }
2846
+ interface AmountByStatusNonNullableFields {
2847
+ status: SubscriptionStatusEnumSubscriptionStatus;
2848
+ amount: number;
5210
2849
  }
5211
2850
  interface GetSubscriptionsStatsResponseNonNullableFields {
5212
- amountByStatuses: {
5213
- status: SubscriptionStatusEnumSubscriptionStatus;
5214
- amount: number;
5215
- }[];
2851
+ amountByStatuses: AmountByStatusNonNullableFields[];
5216
2852
  total: number;
5217
2853
  }
5218
2854
  interface ExtendSubscriptionResponseNonNullableFields {
5219
- subscription?: {
5220
- name: string;
5221
- customer?: {
5222
- visitorId: string;
5223
- contactId: string;
5224
- memberId: string;
5225
- accountId: string;
5226
- };
5227
- status: SubscriptionStatusEnumSubscriptionStatus;
5228
- billingSettings?: {
5229
- currency: string;
5230
- paymentMethod?: {
5231
- _id: string;
5232
- };
5233
- collectionMethod: CollectionMethod;
5234
- cycleDuration?: {
5235
- unit: DurationUnit;
5236
- };
5237
- cycleAutoRenew: boolean;
5238
- freeTrialDuration?: {
5239
- unit: DurationUnit;
5240
- };
5241
- taxSettings?: {
5242
- inclusive: boolean;
5243
- };
5244
- additionalFees: {
5245
- name: string;
5246
- amount: string;
5247
- trigger: AdditionalFeeTrigger;
5248
- tax?: {
5249
- amount: string;
5250
- percentage: string;
5251
- };
5252
- }[];
5253
- discounts: {
5254
- amount: string;
5255
- percentage: string;
5256
- cycles?: {
5257
- cycleFrom: number;
5258
- };
5259
- origin?: {
5260
- appId: string;
5261
- entityId: string;
5262
- };
5263
- }[];
5264
- externalCollectionDetails?: {
5265
- collectorName: string;
5266
- };
5267
- };
5268
- billingStatus?: {
5269
- currentCycle: number;
5270
- latestPaymentData?: {
5271
- invoiceId: string;
5272
- paymentStatus: PaymentStatus;
5273
- totals?: {
5274
- totalPrice: string;
5275
- subtotal: string;
5276
- };
5277
- };
5278
- gracePeriodData?: {
5279
- automaticRetryData?: {
5280
- enabled: boolean;
5281
- };
5282
- };
5283
- };
5284
- policies?: {
5285
- customerCanCancel: boolean;
5286
- businessCanExtend: boolean;
5287
- allowEndOfCycleCancellation: boolean;
5288
- };
5289
- pauseInfo?: {
5290
- pausePolicy: PausePolicy;
5291
- pauseAt: PauseAt;
5292
- resumeAt: ResumeAt;
5293
- };
5294
- cancellationInfo?: {
5295
- initiator: HistoryActionInitiator;
5296
- };
5297
- pendingUpdateData?: {
5298
- itemsToUpdate: {
5299
- _id: string;
5300
- pricingModel?: {
5301
- fixedPrice?: {
5302
- itemPrice: string;
5303
- };
5304
- };
5305
- tax?: {
5306
- amount: string;
5307
- percentage: string;
5308
- };
5309
- }[];
5310
- itemsToAdd: {
5311
- name: string;
5312
- catalogReference?: {
5313
- catalogItemId: string;
5314
- };
5315
- category: ItemCategory;
5316
- quantity: number;
5317
- pricingModel?: {
5318
- fixedPrice?: {
5319
- itemPrice: string;
5320
- };
5321
- };
5322
- tax?: {
5323
- amount: string;
5324
- percentage: string;
5325
- };
5326
- discounts: {
5327
- amount: string;
5328
- percentage: string;
5329
- cycles?: {
5330
- cycleFrom: number;
5331
- };
5332
- origin?: {
5333
- appId: string;
5334
- entityId: string;
5335
- };
5336
- }[];
5337
- applicationFee?: {
5338
- amount: string;
5339
- discounts: {
5340
- amount: string;
5341
- percentage: string;
5342
- cycles?: {
5343
- cycleFrom: number;
5344
- };
5345
- origin?: {
5346
- appId: string;
5347
- entityId: string;
5348
- };
5349
- }[];
5350
- };
5351
- }[];
5352
- numberOfRequests: number;
5353
- };
5354
- specificDatePendingUpdateData?: {
5355
- updateData?: {
5356
- itemsToUpdate: {
5357
- _id: string;
5358
- pricingModel?: {
5359
- fixedPrice?: {
5360
- itemPrice: string;
5361
- };
5362
- };
5363
- tax?: {
5364
- amount: string;
5365
- percentage: string;
5366
- };
5367
- }[];
5368
- itemsToAdd: {
5369
- name: string;
5370
- catalogReference?: {
5371
- catalogItemId: string;
5372
- };
5373
- category: ItemCategory;
5374
- quantity: number;
5375
- pricingModel?: {
5376
- fixedPrice?: {
5377
- itemPrice: string;
5378
- };
5379
- };
5380
- tax?: {
5381
- amount: string;
5382
- percentage: string;
5383
- };
5384
- discounts: {
5385
- amount: string;
5386
- percentage: string;
5387
- cycles?: {
5388
- cycleFrom: number;
5389
- };
5390
- origin?: {
5391
- appId: string;
5392
- entityId: string;
5393
- };
5394
- }[];
5395
- applicationFee?: {
5396
- amount: string;
5397
- discounts: {
5398
- amount: string;
5399
- percentage: string;
5400
- cycles?: {
5401
- cycleFrom: number;
5402
- };
5403
- origin?: {
5404
- appId: string;
5405
- entityId: string;
5406
- };
5407
- }[];
5408
- };
5409
- }[];
5410
- numberOfRequests: number;
5411
- };
5412
- };
5413
- items: {
5414
- name: string;
5415
- catalogReference?: {
5416
- catalogItemId: string;
5417
- };
5418
- category: ItemCategory;
5419
- quantity: number;
5420
- pricingModel?: {
5421
- fixedPrice?: {
5422
- itemPrice: string;
5423
- };
5424
- };
5425
- tax?: {
5426
- amount: string;
5427
- percentage: string;
5428
- };
5429
- discounts: {
5430
- amount: string;
5431
- percentage: string;
5432
- cycles?: {
5433
- cycleFrom: number;
5434
- };
5435
- origin?: {
5436
- appId: string;
5437
- entityId: string;
5438
- };
5439
- }[];
5440
- applicationFee?: {
5441
- amount: string;
5442
- discounts: {
5443
- amount: string;
5444
- percentage: string;
5445
- cycles?: {
5446
- cycleFrom: number;
5447
- };
5448
- origin?: {
5449
- appId: string;
5450
- entityId: string;
5451
- };
5452
- }[];
5453
- };
5454
- }[];
5455
- };
2855
+ subscription?: SubscriptionNonNullableFields;
2856
+ }
2857
+ interface UnsupportedReasonNonNullableFields {
2858
+ code: string;
2859
+ }
2860
+ interface UnsupportedActionNonNullableFields {
2861
+ actionType: ActionType;
2862
+ reasons: UnsupportedReasonNonNullableFields[];
5456
2863
  }
5457
2864
  interface AllowedActionsResponseNonNullableFields {
5458
- actions: {
5459
- actionType: ActionType;
5460
- pausePolicies: PausePolicy[];
5461
- pauseAt: PauseAt[];
5462
- resumeAt: ResumeAt[];
5463
- extendPolicies: ExtendPolicyType[];
5464
- }[];
5465
- unsupportedActions: {
5466
- actionType: ActionType;
5467
- reasons: {
5468
- code: string;
5469
- }[];
5470
- }[];
2865
+ actions: ActionNonNullableFields[];
2866
+ unsupportedActions: UnsupportedActionNonNullableFields[];
5471
2867
  }
5472
2868
  interface ListUpcomingChargesResponseNonNullableFields {
5473
- upcomingCharges: {
5474
- cycle: number;
5475
- totals?: {
5476
- totalPrice: string;
5477
- subtotal: string;
5478
- };
5479
- invoiceItems: {
5480
- recurring?: {
5481
- cycleNumber: number;
5482
- };
5483
- _id: string;
5484
- subscriptionId: string;
5485
- name: string;
5486
- catalogReference?: {
5487
- catalogItemId: string;
5488
- };
5489
- category: ItemCategory;
5490
- quantity: number;
5491
- priceDetails?: {
5492
- price: string;
5493
- tax?: {
5494
- amount: string;
5495
- percentage: string;
5496
- };
5497
- discount?: {
5498
- amount: string;
5499
- percentage: string;
5500
- origin?: {
5501
- appId: string;
5502
- entityId: string;
5503
- };
5504
- };
5505
- applicationFeeDetails?: {
5506
- amount: string;
5507
- discount?: {
5508
- amount: string;
5509
- percentage: string;
5510
- origin?: {
5511
- appId: string;
5512
- entityId: string;
5513
- };
5514
- };
5515
- };
5516
- };
5517
- totals?: {
5518
- totalPrice: string;
5519
- subtotal: string;
5520
- };
5521
- }[];
5522
- discount?: {
5523
- amount: string;
5524
- percentage: string;
5525
- origin?: {
5526
- appId: string;
5527
- entityId: string;
5528
- };
5529
- };
5530
- }[];
2869
+ upcomingCharges: SubscriptionChargeNonNullableFields[];
5531
2870
  }
5532
- interface InitiatePaymentMethodSetupResponseNonNullableFields {
5533
- paymentOrderId: string;
2871
+ interface ChargeNonNullableFields {
2872
+ cycleFrom: number;
2873
+ totals?: TotalsNonNullableFields;
2874
+ }
2875
+ interface PreviewSubscriptionChargesResponseNonNullableFields {
2876
+ charges: ChargeNonNullableFields[];
5534
2877
  }
5535
2878
  interface PayCycleResponseNonNullableFields {
5536
2879
  invoiceId: string;
5537
- subscription?: {
5538
- name: string;
5539
- customer?: {
5540
- visitorId: string;
5541
- contactId: string;
5542
- memberId: string;
5543
- accountId: string;
5544
- };
5545
- status: SubscriptionStatusEnumSubscriptionStatus;
5546
- billingSettings?: {
5547
- currency: string;
5548
- paymentMethod?: {
5549
- _id: string;
5550
- };
5551
- collectionMethod: CollectionMethod;
5552
- cycleDuration?: {
5553
- unit: DurationUnit;
5554
- };
5555
- cycleAutoRenew: boolean;
5556
- freeTrialDuration?: {
5557
- unit: DurationUnit;
5558
- };
5559
- taxSettings?: {
5560
- inclusive: boolean;
5561
- };
5562
- additionalFees: {
5563
- name: string;
5564
- amount: string;
5565
- trigger: AdditionalFeeTrigger;
5566
- tax?: {
5567
- amount: string;
5568
- percentage: string;
5569
- };
5570
- }[];
5571
- discounts: {
5572
- amount: string;
5573
- percentage: string;
5574
- cycles?: {
5575
- cycleFrom: number;
5576
- };
5577
- origin?: {
5578
- appId: string;
5579
- entityId: string;
5580
- };
5581
- }[];
5582
- externalCollectionDetails?: {
5583
- collectorName: string;
5584
- };
5585
- };
5586
- billingStatus?: {
5587
- currentCycle: number;
5588
- latestPaymentData?: {
5589
- invoiceId: string;
5590
- paymentStatus: PaymentStatus;
5591
- totals?: {
5592
- totalPrice: string;
5593
- subtotal: string;
5594
- };
5595
- };
5596
- gracePeriodData?: {
5597
- automaticRetryData?: {
5598
- enabled: boolean;
5599
- };
5600
- };
5601
- };
5602
- policies?: {
5603
- customerCanCancel: boolean;
5604
- businessCanExtend: boolean;
5605
- allowEndOfCycleCancellation: boolean;
5606
- };
5607
- pauseInfo?: {
5608
- pausePolicy: PausePolicy;
5609
- pauseAt: PauseAt;
5610
- resumeAt: ResumeAt;
5611
- };
5612
- cancellationInfo?: {
5613
- initiator: HistoryActionInitiator;
5614
- };
5615
- pendingUpdateData?: {
5616
- itemsToUpdate: {
5617
- _id: string;
5618
- pricingModel?: {
5619
- fixedPrice?: {
5620
- itemPrice: string;
5621
- };
5622
- };
5623
- tax?: {
5624
- amount: string;
5625
- percentage: string;
5626
- };
5627
- }[];
5628
- itemsToAdd: {
5629
- name: string;
5630
- catalogReference?: {
5631
- catalogItemId: string;
5632
- };
5633
- category: ItemCategory;
5634
- quantity: number;
5635
- pricingModel?: {
5636
- fixedPrice?: {
5637
- itemPrice: string;
5638
- };
5639
- };
5640
- tax?: {
5641
- amount: string;
5642
- percentage: string;
5643
- };
5644
- discounts: {
5645
- amount: string;
5646
- percentage: string;
5647
- cycles?: {
5648
- cycleFrom: number;
5649
- };
5650
- origin?: {
5651
- appId: string;
5652
- entityId: string;
5653
- };
5654
- }[];
5655
- applicationFee?: {
5656
- amount: string;
5657
- discounts: {
5658
- amount: string;
5659
- percentage: string;
5660
- cycles?: {
5661
- cycleFrom: number;
5662
- };
5663
- origin?: {
5664
- appId: string;
5665
- entityId: string;
5666
- };
5667
- }[];
5668
- };
5669
- }[];
5670
- numberOfRequests: number;
5671
- };
5672
- specificDatePendingUpdateData?: {
5673
- updateData?: {
5674
- itemsToUpdate: {
5675
- _id: string;
5676
- pricingModel?: {
5677
- fixedPrice?: {
5678
- itemPrice: string;
5679
- };
5680
- };
5681
- tax?: {
5682
- amount: string;
5683
- percentage: string;
5684
- };
5685
- }[];
5686
- itemsToAdd: {
5687
- name: string;
5688
- catalogReference?: {
5689
- catalogItemId: string;
5690
- };
5691
- category: ItemCategory;
5692
- quantity: number;
5693
- pricingModel?: {
5694
- fixedPrice?: {
5695
- itemPrice: string;
5696
- };
5697
- };
5698
- tax?: {
5699
- amount: string;
5700
- percentage: string;
5701
- };
5702
- discounts: {
5703
- amount: string;
5704
- percentage: string;
5705
- cycles?: {
5706
- cycleFrom: number;
5707
- };
5708
- origin?: {
5709
- appId: string;
5710
- entityId: string;
5711
- };
5712
- }[];
5713
- applicationFee?: {
5714
- amount: string;
5715
- discounts: {
5716
- amount: string;
5717
- percentage: string;
5718
- cycles?: {
5719
- cycleFrom: number;
5720
- };
5721
- origin?: {
5722
- appId: string;
5723
- entityId: string;
5724
- };
5725
- }[];
5726
- };
5727
- }[];
5728
- numberOfRequests: number;
5729
- };
5730
- };
5731
- items: {
5732
- name: string;
5733
- catalogReference?: {
5734
- catalogItemId: string;
5735
- };
5736
- category: ItemCategory;
5737
- quantity: number;
5738
- pricingModel?: {
5739
- fixedPrice?: {
5740
- itemPrice: string;
5741
- };
5742
- };
5743
- tax?: {
5744
- amount: string;
5745
- percentage: string;
5746
- };
5747
- discounts: {
5748
- amount: string;
5749
- percentage: string;
5750
- cycles?: {
5751
- cycleFrom: number;
5752
- };
5753
- origin?: {
5754
- appId: string;
5755
- entityId: string;
5756
- };
5757
- }[];
5758
- applicationFee?: {
5759
- amount: string;
5760
- discounts: {
5761
- amount: string;
5762
- percentage: string;
5763
- cycles?: {
5764
- cycleFrom: number;
5765
- };
5766
- origin?: {
5767
- appId: string;
5768
- entityId: string;
5769
- };
5770
- }[];
5771
- };
5772
- }[];
5773
- };
2880
+ subscription?: SubscriptionNonNullableFields;
5774
2881
  }
5775
2882
  interface BaseEventMetadata {
5776
2883
  /** App instance ID. */
@@ -5799,7 +2906,7 @@ interface EventMetadata extends BaseEventMetadata {
5799
2906
  slug?: string;
5800
2907
  /** ID of the entity associated with the event. */
5801
2908
  entityId?: string;
5802
- /** Event timestamp. */
2909
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
5803
2910
  eventTime?: Date;
5804
2911
  /**
5805
2912
  * Whether the event was triggered as a result of a privacy regulation application
@@ -5870,6 +2977,31 @@ interface SubscriptionLatestInvoiceMarkedAsPaidEnvelope {
5870
2977
  data: LatestInvoiceMarkedAsPaid;
5871
2978
  metadata: EventMetadata;
5872
2979
  }
2980
+ interface CustomerCancelSubscriptionOptions {
2981
+ /** Optional action reason message */
2982
+ reason?: string | null;
2983
+ }
2984
+ interface CustomerTurnOnSubscriptionAutoRenewalOptions {
2985
+ /** Optional action reason message */
2986
+ reason?: string | null;
2987
+ }
2988
+ interface CustomerTurnOffSubscriptionAutoRenewalOptions {
2989
+ /** Optional action reason message */
2990
+ reason?: string | null;
2991
+ }
2992
+ interface CustomerExtendSubscriptionOptions {
2993
+ /** Optional action reason message */
2994
+ reason?: string | null;
2995
+ /** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
2996
+ billingCyclesToAdd: number | null;
2997
+ }
2998
+ interface CustomerQuerySubscriptionsOptions {
2999
+ query?: QueryV2;
3000
+ }
3001
+ interface CustomerInitiatePaymentMethodSetupOptions {
3002
+ paymentMode?: PaymentMode;
3003
+ paymentSettings?: PaymentSettings;
3004
+ }
5873
3005
  interface UpdateSubscriptionBillingDateOptions {
5874
3006
  /**
5875
3007
  * Information about how BASS adjusts the total of the next invoice. Extending
@@ -5930,6 +3062,10 @@ interface ListUpcomingChargesOptions {
5930
3062
  */
5931
3063
  nextBillingDate?: Date;
5932
3064
  }
3065
+ interface PreviewSubscriptionChargesOptions extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
3066
+ /** Information about a non-existing subscription. */
3067
+ subscriptionInfo?: SubscriptionInfo;
3068
+ }
5933
3069
  interface InitiatePaymentMethodSetupOptions {
5934
3070
  paymentMode?: PaymentMode;
5935
3071
  paymentSettings?: PaymentSettings;
@@ -5939,9 +3075,11 @@ interface PayCycleOptions {
5939
3075
  tenantId: string;
5940
3076
  }
5941
3077
 
3078
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
5942
3079
  interface HttpClient {
5943
3080
  request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
5944
- fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
3081
+ fetchWithAuth: typeof fetch;
3082
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
5945
3083
  }
5946
3084
  type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
5947
3085
  type HttpResponse<T = any> = {
@@ -5962,6 +3100,7 @@ type APIMetadata = {
5962
3100
  entityFqdn?: string;
5963
3101
  packageName?: string;
5964
3102
  };
3103
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
5965
3104
  type EventDefinition<Payload = unknown, Type extends string = string> = {
5966
3105
  __type: 'event-definition';
5967
3106
  type: Type;
@@ -5970,6 +3109,8 @@ type EventDefinition<Payload = unknown, Type extends string = string> = {
5970
3109
  __payload: Payload;
5971
3110
  };
5972
3111
  declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
3112
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
3113
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
5973
3114
 
5974
3115
  declare global {
5975
3116
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
@@ -5978,40 +3119,52 @@ declare global {
5978
3119
  }
5979
3120
  }
5980
3121
 
5981
- declare const __metadata: {
5982
- PACKAGE_NAME: string;
5983
- };
5984
- declare function getSubscription(httpClient: HttpClient): (_id: string) => Promise<GetSubscriptionResponse & GetSubscriptionResponseNonNullableFields>;
5985
- declare function updateSubscriptionPaymentMethod(httpClient: HttpClient): (_id: string, paymentMethodId: string) => Promise<UpdateSubscriptionPaymentMethodResponse & UpdateSubscriptionPaymentMethodResponseNonNullableFields>;
5986
- declare function updateSubscriptionBillingDate(httpClient: HttpClient): (_id: string, billingDate: Date, options?: UpdateSubscriptionBillingDateOptions) => Promise<UpdateSubscriptionBillingDateResponse & UpdateSubscriptionBillingDateResponseNonNullableFields>;
5987
- declare function cancelSubscription(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<CancelSubscriptionResponse & CancelSubscriptionResponseNonNullableFields>;
5988
- declare function pauseSubscription(httpClient: HttpClient): (_id: string, options?: PauseSubscriptionOptions) => Promise<PauseSubscriptionResponse & PauseSubscriptionResponseNonNullableFields>;
5989
- declare function resumeSubscription(httpClient: HttpClient): (_id: string, options?: ResumeSubscriptionOptions) => Promise<ResumeSubscriptionResponse & ResumeSubscriptionResponseNonNullableFields>;
5990
- declare function querySubscriptions(httpClient: HttpClient): (query: QueryV2) => Promise<QuerySubscriptionsResponse & QuerySubscriptionsResponseNonNullableFields>;
5991
- declare function searchSubscriptions(httpClient: HttpClient): (options?: SearchSubscriptionsOptions) => Promise<SearchSubscriptionsResponse & SearchSubscriptionsResponseNonNullableFields>;
5992
- declare function countSubscriptions(httpClient: HttpClient): (options?: CountSubscriptionsOptions) => Promise<CountSubscriptionsResponse & CountSubscriptionsResponseNonNullableFields>;
5993
- declare function turnOnSubscriptionAutoRenewal(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<TurnOnSubscriptionAutoRenewalResponse & TurnOnSubscriptionAutoRenewalResponseNonNullableFields>;
5994
- declare function turnOffSubscriptionAutoRenewal(httpClient: HttpClient): (_id: string, actionContext: ActionContext) => Promise<TurnOffSubscriptionAutoRenewalResponse & TurnOffSubscriptionAutoRenewalResponseNonNullableFields>;
5995
- declare function markLatestInvoiceAsPaid(httpClient: HttpClient): (subscriptionId: string) => Promise<MarkLatestInvoiceAsPaidResponse & MarkLatestInvoiceAsPaidResponseNonNullableFields>;
5996
- declare function getSubscriptionsStats(httpClient: HttpClient): () => Promise<GetSubscriptionsStatsResponse & GetSubscriptionsStatsResponseNonNullableFields>;
5997
- declare function extendSubscription(httpClient: HttpClient): (_id: string, actionContext: ActionContext, options?: ExtendSubscriptionOptions) => Promise<ExtendSubscriptionResponse & ExtendSubscriptionResponseNonNullableFields>;
5998
- declare function allowedActions(httpClient: HttpClient): (_id: string, options?: AllowedActionsOptions) => Promise<AllowedActionsResponse & AllowedActionsResponseNonNullableFields>;
5999
- declare function listUpcomingCharges(httpClient: HttpClient): (subscriptionId: string, options?: ListUpcomingChargesOptions) => Promise<ListUpcomingChargesResponse & ListUpcomingChargesResponseNonNullableFields>;
6000
- declare function initiatePaymentMethodSetup(httpClient: HttpClient): (_id: string, options?: InitiatePaymentMethodSetupOptions) => Promise<InitiatePaymentMethodSetupResponse & InitiatePaymentMethodSetupResponseNonNullableFields>;
6001
- declare function payCycle(httpClient: HttpClient): (subscriptionId: string, options?: PayCycleOptions) => Promise<PayCycleResponse & PayCycleResponseNonNullableFields>;
6002
- declare const onSubscriptionCanceled: EventDefinition<SubscriptionCanceledEnvelope, "wix.billing.v1.subscription_canceled">;
6003
- declare const onSubscriptionExtended: EventDefinition<SubscriptionExtendedEnvelope, "wix.billing.v1.subscription_extended">;
6004
- declare const onSubscriptionUpdated: EventDefinition<SubscriptionUpdatedEnvelope, "wix.billing.v1.subscription_updated">;
6005
- declare const onSubscriptionBillingDateUpdated: EventDefinition<SubscriptionBillingDateUpdatedEnvelope, "wix.billing.v1.subscription_billing_date_updated">;
6006
- declare const onSubscriptionPaused: EventDefinition<SubscriptionPausedEnvelope, "wix.billing.v1.subscription_paused">;
6007
- declare const onSubscriptionPauseScheduled: EventDefinition<SubscriptionPauseScheduledEnvelope, "wix.billing.v1.subscription_pause_scheduled">;
6008
- declare const onSubscriptionPauseScheduleCanceled: EventDefinition<SubscriptionPauseScheduleCanceledEnvelope, "wix.billing.v1.subscription_pause_schedule_canceled">;
6009
- declare const onSubscriptionResumed: EventDefinition<SubscriptionResumedEnvelope, "wix.billing.v1.subscription_resumed">;
6010
- declare const onSubscriptionResumeScheduled: EventDefinition<SubscriptionResumeScheduledEnvelope, "wix.billing.v1.subscription_resume_scheduled">;
6011
- declare const onSubscriptionResumeScheduleCanceled: EventDefinition<SubscriptionResumeScheduleCanceledEnvelope, "wix.billing.v1.subscription_resume_schedule_canceled">;
6012
- declare const onSubscriptionAutoRenewalTurnedOn: EventDefinition<SubscriptionAutoRenewalTurnedOnEnvelope, "wix.billing.v1.subscription_auto_renewal_turned_on">;
6013
- declare const onSubscriptionAutoRenewalTurnedOff: EventDefinition<SubscriptionAutoRenewalTurnedOffEnvelope, "wix.billing.v1.subscription_auto_renewal_turned_off">;
6014
- declare const onSubscriptionLatestInvoiceMarkedAsPaid: EventDefinition<SubscriptionLatestInvoiceMarkedAsPaidEnvelope, "wix.billing.v1.subscription_latest_invoice_marked_as_paid">;
3122
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
3123
+
3124
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
3125
+
3126
+ declare const customerGetSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerGetSubscription>>;
3127
+ declare const customerCancelSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerCancelSubscription>>;
3128
+ declare const customerTurnOnSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicCustomerTurnOnSubscriptionAutoRenewal>>;
3129
+ declare const customerTurnOffSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicCustomerTurnOffSubscriptionAutoRenewal>>;
3130
+ declare const customerExtendSubscription: ReturnType<typeof createRESTModule<typeof publicCustomerExtendSubscription>>;
3131
+ declare const customerQuerySubscriptions: ReturnType<typeof createRESTModule<typeof publicCustomerQuerySubscriptions>>;
3132
+ declare const customerUpdateSubscriptionPaymentMethod: ReturnType<typeof createRESTModule<typeof publicCustomerUpdateSubscriptionPaymentMethod>>;
3133
+ declare const customerAllowedActions: ReturnType<typeof createRESTModule<typeof publicCustomerAllowedActions>>;
3134
+ declare const customerListUpcomingCharges: ReturnType<typeof createRESTModule<typeof publicCustomerListUpcomingCharges>>;
3135
+ declare const customerInitiatePaymentMethodSetup: ReturnType<typeof createRESTModule<typeof publicCustomerInitiatePaymentMethodSetup>>;
3136
+ declare const getSubscription: ReturnType<typeof createRESTModule<typeof publicGetSubscription>>;
3137
+ declare const updateSubscriptionPaymentMethod: ReturnType<typeof createRESTModule<typeof publicUpdateSubscriptionPaymentMethod>>;
3138
+ declare const updateSubscriptionBillingDate: ReturnType<typeof createRESTModule<typeof publicUpdateSubscriptionBillingDate>>;
3139
+ declare const cancelSubscription: ReturnType<typeof createRESTModule<typeof publicCancelSubscription>>;
3140
+ declare const pauseSubscription: ReturnType<typeof createRESTModule<typeof publicPauseSubscription>>;
3141
+ declare const resumeSubscription: ReturnType<typeof createRESTModule<typeof publicResumeSubscription>>;
3142
+ declare const querySubscriptions: ReturnType<typeof createRESTModule<typeof publicQuerySubscriptions>>;
3143
+ declare const searchSubscriptions: ReturnType<typeof createRESTModule<typeof publicSearchSubscriptions>>;
3144
+ declare const countSubscriptions: ReturnType<typeof createRESTModule<typeof publicCountSubscriptions>>;
3145
+ declare const turnOnSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicTurnOnSubscriptionAutoRenewal>>;
3146
+ declare const turnOffSubscriptionAutoRenewal: ReturnType<typeof createRESTModule<typeof publicTurnOffSubscriptionAutoRenewal>>;
3147
+ declare const markLatestInvoiceAsPaid: ReturnType<typeof createRESTModule<typeof publicMarkLatestInvoiceAsPaid>>;
3148
+ declare const getSubscriptionsStats: ReturnType<typeof createRESTModule<typeof publicGetSubscriptionsStats>>;
3149
+ declare const extendSubscription: ReturnType<typeof createRESTModule<typeof publicExtendSubscription>>;
3150
+ declare const allowedActions: ReturnType<typeof createRESTModule<typeof publicAllowedActions>>;
3151
+ declare const listUpcomingCharges: ReturnType<typeof createRESTModule<typeof publicListUpcomingCharges>>;
3152
+ declare const previewSubscriptionCharges: ReturnType<typeof createRESTModule<typeof publicPreviewSubscriptionCharges>>;
3153
+ declare const initiatePaymentMethodSetup: ReturnType<typeof createRESTModule<typeof publicInitiatePaymentMethodSetup>>;
3154
+ declare const payCycle: ReturnType<typeof createRESTModule<typeof publicPayCycle>>;
3155
+ declare const onSubscriptionCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionCanceled>>;
3156
+ declare const onSubscriptionExtended: ReturnType<typeof createEventModule<typeof publicOnSubscriptionExtended>>;
3157
+ declare const onSubscriptionUpdated: ReturnType<typeof createEventModule<typeof publicOnSubscriptionUpdated>>;
3158
+ declare const onSubscriptionBillingDateUpdated: ReturnType<typeof createEventModule<typeof publicOnSubscriptionBillingDateUpdated>>;
3159
+ declare const onSubscriptionPaused: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPaused>>;
3160
+ declare const onSubscriptionPauseScheduled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPauseScheduled>>;
3161
+ declare const onSubscriptionPauseScheduleCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionPauseScheduleCanceled>>;
3162
+ declare const onSubscriptionResumed: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumed>>;
3163
+ declare const onSubscriptionResumeScheduled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumeScheduled>>;
3164
+ declare const onSubscriptionResumeScheduleCanceled: ReturnType<typeof createEventModule<typeof publicOnSubscriptionResumeScheduleCanceled>>;
3165
+ declare const onSubscriptionAutoRenewalTurnedOn: ReturnType<typeof createEventModule<typeof publicOnSubscriptionAutoRenewalTurnedOn>>;
3166
+ declare const onSubscriptionAutoRenewalTurnedOff: ReturnType<typeof createEventModule<typeof publicOnSubscriptionAutoRenewalTurnedOff>>;
3167
+ declare const onSubscriptionLatestInvoiceMarkedAsPaid: ReturnType<typeof createEventModule<typeof publicOnSubscriptionLatestInvoiceMarkedAsPaid>>;
6015
3168
 
6016
3169
  type index_d_Action = Action;
6017
3170
  type index_d_ActionContext = ActionContext;
@@ -6083,17 +3236,29 @@ type index_d_CustomProrationAmountOneOf = CustomProrationAmountOneOf;
6083
3236
  type index_d_Customer = Customer;
6084
3237
  type index_d_CustomerAllowedActionsRequest = CustomerAllowedActionsRequest;
6085
3238
  type index_d_CustomerAllowedActionsResponse = CustomerAllowedActionsResponse;
3239
+ type index_d_CustomerAllowedActionsResponseNonNullableFields = CustomerAllowedActionsResponseNonNullableFields;
3240
+ type index_d_CustomerCancelSubscriptionOptions = CustomerCancelSubscriptionOptions;
6086
3241
  type index_d_CustomerCancelSubscriptionRequest = CustomerCancelSubscriptionRequest;
6087
3242
  type index_d_CustomerCancelSubscriptionResponse = CustomerCancelSubscriptionResponse;
3243
+ type index_d_CustomerCancelSubscriptionResponseNonNullableFields = CustomerCancelSubscriptionResponseNonNullableFields;
3244
+ type index_d_CustomerExtendSubscriptionOptions = CustomerExtendSubscriptionOptions;
6088
3245
  type index_d_CustomerExtendSubscriptionRequest = CustomerExtendSubscriptionRequest;
6089
3246
  type index_d_CustomerExtendSubscriptionResponse = CustomerExtendSubscriptionResponse;
3247
+ type index_d_CustomerExtendSubscriptionResponseNonNullableFields = CustomerExtendSubscriptionResponseNonNullableFields;
6090
3248
  type index_d_CustomerIdOneOf = CustomerIdOneOf;
3249
+ type index_d_CustomerInitiatePaymentMethodSetupOptions = CustomerInitiatePaymentMethodSetupOptions;
6091
3250
  type index_d_CustomerListUpcomingChargesRequest = CustomerListUpcomingChargesRequest;
6092
3251
  type index_d_CustomerListUpcomingChargesResponse = CustomerListUpcomingChargesResponse;
3252
+ type index_d_CustomerListUpcomingChargesResponseNonNullableFields = CustomerListUpcomingChargesResponseNonNullableFields;
3253
+ type index_d_CustomerQuerySubscriptionsOptions = CustomerQuerySubscriptionsOptions;
6093
3254
  type index_d_CustomerTurnOffAutoRenewalRequest = CustomerTurnOffAutoRenewalRequest;
6094
3255
  type index_d_CustomerTurnOffAutoRenewalResponse = CustomerTurnOffAutoRenewalResponse;
3256
+ type index_d_CustomerTurnOffAutoRenewalResponseNonNullableFields = CustomerTurnOffAutoRenewalResponseNonNullableFields;
3257
+ type index_d_CustomerTurnOffSubscriptionAutoRenewalOptions = CustomerTurnOffSubscriptionAutoRenewalOptions;
6095
3258
  type index_d_CustomerTurnOnAutoRenewalRequest = CustomerTurnOnAutoRenewalRequest;
6096
3259
  type index_d_CustomerTurnOnAutoRenewalResponse = CustomerTurnOnAutoRenewalResponse;
3260
+ type index_d_CustomerTurnOnAutoRenewalResponseNonNullableFields = CustomerTurnOnAutoRenewalResponseNonNullableFields;
3261
+ type index_d_CustomerTurnOnSubscriptionAutoRenewalOptions = CustomerTurnOnSubscriptionAutoRenewalOptions;
6097
3262
  type index_d_DeleteDraftSubscriptionRequest = DeleteDraftSubscriptionRequest;
6098
3263
  type index_d_DeleteDraftSubscriptionResponse = DeleteDraftSubscriptionResponse;
6099
3264
  type index_d_DeleteSubscriptionRequest = DeleteSubscriptionRequest;
@@ -6108,6 +3273,7 @@ type index_d_DomainEventBodyOneOf = DomainEventBodyOneOf;
6108
3273
  type index_d_Duration = Duration;
6109
3274
  type index_d_DurationUnit = DurationUnit;
6110
3275
  declare const index_d_DurationUnit: typeof DurationUnit;
3276
+ type index_d_DynamicTax = DynamicTax;
6111
3277
  type index_d_Empty = Empty;
6112
3278
  type index_d_EntityCreatedEvent = EntityCreatedEvent;
6113
3279
  type index_d_EntityDeletedEvent = EntityDeletedEvent;
@@ -6223,9 +3389,11 @@ type index_d_PaymentStatusEnumPaymentStatus = PaymentStatusEnumPaymentStatus;
6223
3389
  declare const index_d_PaymentStatusEnumPaymentStatus: typeof PaymentStatusEnumPaymentStatus;
6224
3390
  type index_d_PaymentTestMode = PaymentTestMode;
6225
3391
  declare const index_d_PaymentTestMode: typeof PaymentTestMode;
3392
+ type index_d_PreviewSubscriptionChargesOptions = PreviewSubscriptionChargesOptions;
6226
3393
  type index_d_PreviewSubscriptionChargesRequest = PreviewSubscriptionChargesRequest;
6227
3394
  type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf = PreviewSubscriptionChargesRequestSubscriptionOneOf;
6228
3395
  type index_d_PreviewSubscriptionChargesResponse = PreviewSubscriptionChargesResponse;
3396
+ type index_d_PreviewSubscriptionChargesResponseNonNullableFields = PreviewSubscriptionChargesResponseNonNullableFields;
6229
3397
  type index_d_PriceDetails = PriceDetails;
6230
3398
  type index_d_PricingModel = PricingModel;
6231
3399
  type index_d_PricingModelModelOneOf = PricingModelModelOneOf;
@@ -6413,10 +3581,19 @@ type index_d_V1SubscriptionUpdated = V1SubscriptionUpdated;
6413
3581
  type index_d_V2Subscription = V2Subscription;
6414
3582
  type index_d_WebhookIdentityType = WebhookIdentityType;
6415
3583
  declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
6416
- declare const index_d___metadata: typeof __metadata;
6417
3584
  declare const index_d_allowedActions: typeof allowedActions;
6418
3585
  declare const index_d_cancelSubscription: typeof cancelSubscription;
6419
3586
  declare const index_d_countSubscriptions: typeof countSubscriptions;
3587
+ declare const index_d_customerAllowedActions: typeof customerAllowedActions;
3588
+ declare const index_d_customerCancelSubscription: typeof customerCancelSubscription;
3589
+ declare const index_d_customerExtendSubscription: typeof customerExtendSubscription;
3590
+ declare const index_d_customerGetSubscription: typeof customerGetSubscription;
3591
+ declare const index_d_customerInitiatePaymentMethodSetup: typeof customerInitiatePaymentMethodSetup;
3592
+ declare const index_d_customerListUpcomingCharges: typeof customerListUpcomingCharges;
3593
+ declare const index_d_customerQuerySubscriptions: typeof customerQuerySubscriptions;
3594
+ declare const index_d_customerTurnOffSubscriptionAutoRenewal: typeof customerTurnOffSubscriptionAutoRenewal;
3595
+ declare const index_d_customerTurnOnSubscriptionAutoRenewal: typeof customerTurnOnSubscriptionAutoRenewal;
3596
+ declare const index_d_customerUpdateSubscriptionPaymentMethod: typeof customerUpdateSubscriptionPaymentMethod;
6420
3597
  declare const index_d_extendSubscription: typeof extendSubscription;
6421
3598
  declare const index_d_getSubscription: typeof getSubscription;
6422
3599
  declare const index_d_getSubscriptionsStats: typeof getSubscriptionsStats;
@@ -6438,6 +3615,7 @@ declare const index_d_onSubscriptionResumed: typeof onSubscriptionResumed;
6438
3615
  declare const index_d_onSubscriptionUpdated: typeof onSubscriptionUpdated;
6439
3616
  declare const index_d_pauseSubscription: typeof pauseSubscription;
6440
3617
  declare const index_d_payCycle: typeof payCycle;
3618
+ declare const index_d_previewSubscriptionCharges: typeof previewSubscriptionCharges;
6441
3619
  declare const index_d_querySubscriptions: typeof querySubscriptions;
6442
3620
  declare const index_d_resumeSubscription: typeof resumeSubscription;
6443
3621
  declare const index_d_searchSubscriptions: typeof searchSubscriptions;
@@ -6446,7 +3624,7 @@ declare const index_d_turnOnSubscriptionAutoRenewal: typeof turnOnSubscriptionAu
6446
3624
  declare const index_d_updateSubscriptionBillingDate: typeof updateSubscriptionBillingDate;
6447
3625
  declare const index_d_updateSubscriptionPaymentMethod: typeof updateSubscriptionPaymentMethod;
6448
3626
  declare namespace index_d {
6449
- export { type index_d_Action as Action, type index_d_ActionContext as ActionContext, type index_d_ActionDetails as ActionDetails, type index_d_ActionEvent as ActionEvent, index_d_ActionInitiator as ActionInitiator, index_d_ActionType as ActionType, type index_d_AddPausePeriodRequest as AddPausePeriodRequest, type index_d_AddPausePeriodResponse as AddPausePeriodResponse, type index_d_AdditionalFee as AdditionalFee, index_d_AdditionalFeeTrigger as AdditionalFeeTrigger, type index_d_Address as Address, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_AllowedActionsOptions as AllowedActionsOptions, type index_d_AllowedActionsRequest as AllowedActionsRequest, type index_d_AllowedActionsResponse as AllowedActionsResponse, type index_d_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type index_d_AmountByStatus as AmountByStatus, type index_d_ApplicationFee as ApplicationFee, type index_d_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type index_d_AttachInvoice as AttachInvoice, type index_d_AutomaticRetryData as AutomaticRetryData, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BillingSettings as BillingSettings, type index_d_BillingStatus as BillingStatus, type index_d_BulkItemChange as BulkItemChange, type index_d_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type index_d_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type index_d_BusinessOrigin as BusinessOrigin, type index_d_Cancel as Cancel, type index_d_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type index_d_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type index_d_CancelSubscriptionRequest as CancelSubscriptionRequest, type index_d_CancelSubscriptionResponse as CancelSubscriptionResponse, type index_d_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type index_d_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type index_d_CancellationInfo as CancellationInfo, index_d_CancellationInitiator as CancellationInitiator, type index_d_CatalogReference as CatalogReference, type index_d_Charge as Charge, index_d_CollectionMethod as CollectionMethod, type index_d_Complete as Complete, type index_d_ConvertSapiRequest as ConvertSapiRequest, type index_d_ConvertSapiResponse as ConvertSapiResponse, type index_d_CountByStatus as CountByStatus, type index_d_CountSubscriptionFilter as CountSubscriptionFilter, type index_d_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type index_d_CountSubscriptionsOptions as CountSubscriptionsOptions, type index_d_CountSubscriptionsRequest as CountSubscriptionsRequest, type index_d_CountSubscriptionsResponse as CountSubscriptionsResponse, type index_d_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type index_d_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type index_d_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type index_d_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type index_d_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type index_d_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type index_d_CreateSubscriptionRequest as CreateSubscriptionRequest, type index_d_CreateSubscriptionResponse as CreateSubscriptionResponse, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_CustomBillingSchedule as CustomBillingSchedule, type index_d_CustomProration as CustomProration, type index_d_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type index_d_Customer as Customer, type index_d_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type index_d_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type index_d_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type index_d_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type index_d_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type index_d_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type index_d_CustomerIdOneOf as CustomerIdOneOf, type index_d_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type index_d_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type index_d_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type index_d_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type index_d_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type index_d_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type index_d_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type index_d_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type index_d_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type index_d_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type index_d_DetachInvoice as DetachInvoice, type index_d_Discount as Discount, type index_d_DiscountCycles as DiscountCycles, type index_d_DiscountOrigin as DiscountOrigin, type index_d_DiscountValueOneOf as DiscountValueOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, index_d_DurationUnit as DurationUnit, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_ExtendPolicyType as ExtendPolicyType, type index_d_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type index_d_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type index_d_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type index_d_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type index_d_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type index_d_ExternalCollectionDetails as ExternalCollectionDetails, type index_d_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type index_d_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type index_d_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type index_d_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type index_d_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type index_d_FixedPrice as FixedPrice, type index_d_FreeTrailEnded as FreeTrailEnded, type index_d_FreeTrailStarted as FreeTrailStarted, type index_d_FreeTrialData as FreeTrialData, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_FullAddressDetails as FullAddressDetails, type index_d_FutureUpdatesRequested as FutureUpdatesRequested, type index_d_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type index_d_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type index_d_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type index_d_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type index_d_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type index_d_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type index_d_GetSubscriptionRequest as GetSubscriptionRequest, type index_d_GetSubscriptionResponse as GetSubscriptionResponse, type index_d_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type index_d_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type index_d_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type index_d_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type index_d_GracePeriodData as GracePeriodData, type index_d_GracePeriodEnded as GracePeriodEnded, type index_d_GracePeriodStarted as GracePeriodStarted, type index_d_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, index_d_HistoryActionInitiator as HistoryActionInitiator, index_d_HistoryViewMode as HistoryViewMode, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type index_d_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type index_d_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type index_d_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type index_d_InternalSubscriptionData as InternalSubscriptionData, type index_d_InvoiceAction as InvoiceAction, type index_d_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type index_d_InvoiceApplicationFee as InvoiceApplicationFee, type index_d_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type index_d_InvoiceDiscount as InvoiceDiscount, type index_d_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type index_d_InvoiceItem as InvoiceItem, type index_d_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, type index_d_Item as Item, index_d_ItemCategory as ItemCategory, type index_d_ItemChange as ItemChange, type index_d_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type index_d_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type index_d_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type index_d_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type index_d_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type index_d_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type index_d_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type index_d_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type index_d_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type index_d_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrationDetails as MigrationDetails, type index_d_Money as Money, type index_d_OneTime as OneTime, index_d_OrderMethod as OrderMethod, type index_d_OriginOverride as OriginOverride, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PauseAt as PauseAt, type index_d_PauseInfo as PauseInfo, type index_d_PausePeriod as PausePeriod, index_d_PausePolicy as PausePolicy, type index_d_PauseSubscriptionOptions as PauseSubscriptionOptions, type index_d_PauseSubscriptionRequest as PauseSubscriptionRequest, type index_d_PauseSubscriptionRequested as PauseSubscriptionRequested, type index_d_PauseSubscriptionResponse as PauseSubscriptionResponse, type index_d_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type index_d_PayCycleOptions as PayCycleOptions, type index_d_PayCycleRequest as PayCycleRequest, type index_d_PayCycleResponse as PayCycleResponse, type index_d_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type index_d_PayRecurringInvoice as PayRecurringInvoice, type index_d_PaymentData as PaymentData, type index_d_PaymentMethod as PaymentMethod, type index_d_PaymentMethodUpdated as PaymentMethodUpdated, index_d_PaymentMode as PaymentMode, type index_d_PaymentSettings as PaymentSettings, index_d_PaymentSettlementMethod as PaymentSettlementMethod, index_d_PaymentStatus as PaymentStatus, index_d_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, index_d_PaymentTestMode as PaymentTestMode, type index_d_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type index_d_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type index_d_PriceDetails as PriceDetails, type index_d_PricingModel as PricingModel, type index_d_PricingModelModelOneOf as PricingModelModelOneOf, type index_d_Proration as Proration, type index_d_ProrationTypeOneOf as ProrationTypeOneOf, type index_d_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type index_d_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type index_d_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_Recurring as Recurring, type index_d_RedirectUrls as RedirectUrls, index_d_RequestedFields as RequestedFields, type index_d_Reschedule as Reschedule, type index_d_ResetPendingUpdates as ResetPendingUpdates, type index_d_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type index_d_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type index_d_RestoreInfo as RestoreInfo, index_d_ResumeAt as ResumeAt, type index_d_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type index_d_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type index_d_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type index_d_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type index_d_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type index_d_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type index_d_ReviseSubscriptionResponse as ReviseSubscriptionResponse, index_d_RevivePolicy as RevivePolicy, type index_d_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type index_d_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type index_d_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type index_d_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type index_d_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type index_d_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type index_d_ScheduledPauseCanceled as ScheduledPauseCanceled, type index_d_ScheduledResumeCanceled as ScheduledResumeCanceled, type index_d_SearchSubscriptionRequest as SearchSubscriptionRequest, type index_d_SearchSubscriptionResponse as SearchSubscriptionResponse, type index_d_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type index_d_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type index_d_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type index_d_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type index_d_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type index_d_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type index_d_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type index_d_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type index_d_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type index_d_SetIsMigratedEvent as SetIsMigratedEvent, type index_d_SetShiftingDataRequest as SetShiftingDataRequest, type index_d_SetShiftingDataResponse as SetShiftingDataResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SortingClauses as SortingClauses, type index_d_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, index_d_Status as Status, type index_d_StreetAddress as StreetAddress, type index_d_Subscriber as Subscriber, type index_d_Subscription as Subscription, type index_d_SubscriptionActivated as SubscriptionActivated, type index_d_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type index_d_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type index_d_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type index_d_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type index_d_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type index_d_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type index_d_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type index_d_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type index_d_SubscriptionCanceled as SubscriptionCanceled, type index_d_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type index_d_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type index_d_SubscriptionCharge as SubscriptionCharge, type index_d_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type index_d_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type index_d_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type index_d_SubscriptionDeleted as SubscriptionDeleted, type index_d_SubscriptionDiff as SubscriptionDiff, type index_d_SubscriptionEnded as SubscriptionEnded, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type index_d_SubscriptionExpired as SubscriptionExpired, type index_d_SubscriptionExtended as SubscriptionExtended, type index_d_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type index_d_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type index_d_SubscriptionInfo as SubscriptionInfo, type index_d_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type index_d_SubscriptionInvoice as SubscriptionInvoice, type index_d_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type index_d_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type index_d_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type index_d_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type index_d_SubscriptionPaused as SubscriptionPaused, type index_d_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type index_d_SubscriptionPolicies as SubscriptionPolicies, type index_d_SubscriptionPolicy as SubscriptionPolicy, type index_d_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type index_d_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type index_d_SubscriptionResumed as SubscriptionResumed, type index_d_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type index_d_SubscriptionRevived as SubscriptionRevived, type index_d_SubscriptionStatus as SubscriptionStatus, index_d_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, index_d_SubscriptionStatusGroup as SubscriptionStatusGroup, type index_d_SubscriptionSuspended as SubscriptionSuspended, type index_d_SubscriptionTrialPeriod as SubscriptionTrialPeriod, index_d_SubscriptionType as SubscriptionType, type index_d_SubscriptionUpdateData as SubscriptionUpdateData, type index_d_SubscriptionUpdated as SubscriptionUpdated, type index_d_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type index_d_Suspension as Suspension, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_Tax as Tax, type index_d_TaxSettings as TaxSettings, type index_d_TaxValueOneOf as TaxValueOneOf, type index_d_TimeBasedProration as TimeBasedProration, type index_d_Totals as Totals, type index_d_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type index_d_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type index_d_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type index_d_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type index_d_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type index_d_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type index_d_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type index_d_UnsupportedAction as UnsupportedAction, type index_d_UnsupportedReason as UnsupportedReason, index_d_UpdateAction as UpdateAction, type index_d_UpdateBillingDateData as UpdateBillingDateData, type index_d_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type index_d_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type index_d_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type index_d_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type index_d_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type index_d_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type index_d_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type index_d_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type index_d_UpdateStatusRequest as UpdateStatusRequest, type index_d_UpdateStatusResponse as UpdateStatusResponse, type index_d_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type index_d_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type index_d_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type index_d_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type index_d_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type index_d_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type index_d_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type index_d_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type index_d_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type index_d_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type index_d_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type index_d_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type index_d_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type index_d_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type index_d_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type index_d_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type index_d_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type index_d_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type index_d_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type index_d_UpdatesApplied as UpdatesApplied, type index_d_V1Duration as V1Duration, type index_d_V1Subscription as V1Subscription, type index_d_V1SubscriptionActivated as V1SubscriptionActivated, type index_d_V1SubscriptionCanceled as V1SubscriptionCanceled, type index_d_V1SubscriptionCreated as V1SubscriptionCreated, type index_d_V1SubscriptionEvent as V1SubscriptionEvent, type index_d_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type index_d_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type index_d_V1SubscriptionResumed as V1SubscriptionResumed, index_d_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type index_d_V1SubscriptionUpdated as V1SubscriptionUpdated, type index_d_V2Subscription as V2Subscription, index_d_WebhookIdentityType as WebhookIdentityType, index_d___metadata as __metadata, index_d_allowedActions as allowedActions, index_d_cancelSubscription as cancelSubscription, index_d_countSubscriptions as countSubscriptions, index_d_extendSubscription as extendSubscription, index_d_getSubscription as getSubscription, index_d_getSubscriptionsStats as getSubscriptionsStats, index_d_initiatePaymentMethodSetup as initiatePaymentMethodSetup, index_d_listUpcomingCharges as listUpcomingCharges, index_d_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, index_d_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, index_d_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, index_d_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, index_d_onSubscriptionCanceled as onSubscriptionCanceled, index_d_onSubscriptionExtended as onSubscriptionExtended, index_d_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, index_d_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, index_d_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, index_d_onSubscriptionPaused as onSubscriptionPaused, index_d_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, index_d_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, index_d_onSubscriptionResumed as onSubscriptionResumed, index_d_onSubscriptionUpdated as onSubscriptionUpdated, index_d_pauseSubscription as pauseSubscription, index_d_payCycle as payCycle, index_d_querySubscriptions as querySubscriptions, index_d_resumeSubscription as resumeSubscription, index_d_searchSubscriptions as searchSubscriptions, index_d_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, index_d_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, index_d_updateSubscriptionBillingDate as updateSubscriptionBillingDate, index_d_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
3627
+ export { type index_d_Action as Action, type index_d_ActionContext as ActionContext, type index_d_ActionDetails as ActionDetails, type index_d_ActionEvent as ActionEvent, index_d_ActionInitiator as ActionInitiator, index_d_ActionType as ActionType, type index_d_AddPausePeriodRequest as AddPausePeriodRequest, type index_d_AddPausePeriodResponse as AddPausePeriodResponse, type index_d_AdditionalFee as AdditionalFee, index_d_AdditionalFeeTrigger as AdditionalFeeTrigger, type index_d_Address as Address, type index_d_AddressStreetOneOf as AddressStreetOneOf, type index_d_AllowedActionsOptions as AllowedActionsOptions, type index_d_AllowedActionsRequest as AllowedActionsRequest, type index_d_AllowedActionsResponse as AllowedActionsResponse, type index_d_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type index_d_AmountByStatus as AmountByStatus, type index_d_ApplicationFee as ApplicationFee, type index_d_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type index_d_AttachInvoice as AttachInvoice, type index_d_AutomaticRetryData as AutomaticRetryData, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BillingSettings as BillingSettings, type index_d_BillingStatus as BillingStatus, type index_d_BulkItemChange as BulkItemChange, type index_d_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type index_d_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type index_d_BusinessOrigin as BusinessOrigin, type index_d_Cancel as Cancel, type index_d_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type index_d_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type index_d_CancelSubscriptionRequest as CancelSubscriptionRequest, type index_d_CancelSubscriptionResponse as CancelSubscriptionResponse, type index_d_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type index_d_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type index_d_CancellationInfo as CancellationInfo, index_d_CancellationInitiator as CancellationInitiator, type index_d_CatalogReference as CatalogReference, type index_d_Charge as Charge, index_d_CollectionMethod as CollectionMethod, type index_d_Complete as Complete, type index_d_ConvertSapiRequest as ConvertSapiRequest, type index_d_ConvertSapiResponse as ConvertSapiResponse, type index_d_CountByStatus as CountByStatus, type index_d_CountSubscriptionFilter as CountSubscriptionFilter, type index_d_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type index_d_CountSubscriptionsOptions as CountSubscriptionsOptions, type index_d_CountSubscriptionsRequest as CountSubscriptionsRequest, type index_d_CountSubscriptionsResponse as CountSubscriptionsResponse, type index_d_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type index_d_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type index_d_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type index_d_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type index_d_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type index_d_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type index_d_CreateSubscriptionRequest as CreateSubscriptionRequest, type index_d_CreateSubscriptionResponse as CreateSubscriptionResponse, type index_d_CursorPaging as CursorPaging, type index_d_Cursors as Cursors, type index_d_CustomBillingSchedule as CustomBillingSchedule, type index_d_CustomProration as CustomProration, type index_d_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type index_d_Customer as Customer, type index_d_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type index_d_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type index_d_CustomerAllowedActionsResponseNonNullableFields as CustomerAllowedActionsResponseNonNullableFields, type index_d_CustomerCancelSubscriptionOptions as CustomerCancelSubscriptionOptions, type index_d_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type index_d_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type index_d_CustomerCancelSubscriptionResponseNonNullableFields as CustomerCancelSubscriptionResponseNonNullableFields, type index_d_CustomerExtendSubscriptionOptions as CustomerExtendSubscriptionOptions, type index_d_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type index_d_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type index_d_CustomerExtendSubscriptionResponseNonNullableFields as CustomerExtendSubscriptionResponseNonNullableFields, type index_d_CustomerIdOneOf as CustomerIdOneOf, type index_d_CustomerInitiatePaymentMethodSetupOptions as CustomerInitiatePaymentMethodSetupOptions, type index_d_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type index_d_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type index_d_CustomerListUpcomingChargesResponseNonNullableFields as CustomerListUpcomingChargesResponseNonNullableFields, type index_d_CustomerQuerySubscriptionsOptions as CustomerQuerySubscriptionsOptions, type index_d_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type index_d_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type index_d_CustomerTurnOffAutoRenewalResponseNonNullableFields as CustomerTurnOffAutoRenewalResponseNonNullableFields, type index_d_CustomerTurnOffSubscriptionAutoRenewalOptions as CustomerTurnOffSubscriptionAutoRenewalOptions, type index_d_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type index_d_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type index_d_CustomerTurnOnAutoRenewalResponseNonNullableFields as CustomerTurnOnAutoRenewalResponseNonNullableFields, type index_d_CustomerTurnOnSubscriptionAutoRenewalOptions as CustomerTurnOnSubscriptionAutoRenewalOptions, type index_d_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type index_d_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type index_d_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type index_d_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type index_d_DetachInvoice as DetachInvoice, type index_d_Discount as Discount, type index_d_DiscountCycles as DiscountCycles, type index_d_DiscountOrigin as DiscountOrigin, type index_d_DiscountValueOneOf as DiscountValueOneOf, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Duration as Duration, index_d_DurationUnit as DurationUnit, type index_d_DynamicTax as DynamicTax, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, index_d_ExtendPolicyType as ExtendPolicyType, type index_d_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type index_d_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type index_d_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type index_d_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type index_d_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type index_d_ExternalCollectionDetails as ExternalCollectionDetails, type index_d_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type index_d_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type index_d_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type index_d_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type index_d_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type index_d_FixedPrice as FixedPrice, type index_d_FreeTrailEnded as FreeTrailEnded, type index_d_FreeTrailStarted as FreeTrailStarted, type index_d_FreeTrialData as FreeTrialData, type index_d_FullAddressContactDetails as FullAddressContactDetails, type index_d_FullAddressDetails as FullAddressDetails, type index_d_FutureUpdatesRequested as FutureUpdatesRequested, type index_d_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type index_d_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type index_d_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type index_d_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type index_d_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type index_d_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type index_d_GetSubscriptionRequest as GetSubscriptionRequest, type index_d_GetSubscriptionResponse as GetSubscriptionResponse, type index_d_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type index_d_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type index_d_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type index_d_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type index_d_GracePeriodData as GracePeriodData, type index_d_GracePeriodEnded as GracePeriodEnded, type index_d_GracePeriodStarted as GracePeriodStarted, type index_d_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, index_d_HistoryActionInitiator as HistoryActionInitiator, index_d_HistoryViewMode as HistoryViewMode, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, index_d_IdentityType as IdentityType, type index_d_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type index_d_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type index_d_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type index_d_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type index_d_InternalSubscriptionData as InternalSubscriptionData, type index_d_InvoiceAction as InvoiceAction, type index_d_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type index_d_InvoiceApplicationFee as InvoiceApplicationFee, type index_d_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type index_d_InvoiceDiscount as InvoiceDiscount, type index_d_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type index_d_InvoiceItem as InvoiceItem, type index_d_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, type index_d_Item as Item, index_d_ItemCategory as ItemCategory, type index_d_ItemChange as ItemChange, type index_d_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type index_d_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type index_d_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type index_d_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type index_d_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type index_d_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type index_d_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type index_d_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type index_d_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type index_d_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type index_d_MessageEnvelope as MessageEnvelope, type index_d_MigrationDetails as MigrationDetails, type index_d_Money as Money, type index_d_OneTime as OneTime, index_d_OrderMethod as OrderMethod, type index_d_OriginOverride as OriginOverride, type index_d_Paging as Paging, type index_d_PagingMetadataV2 as PagingMetadataV2, index_d_PauseAt as PauseAt, type index_d_PauseInfo as PauseInfo, type index_d_PausePeriod as PausePeriod, index_d_PausePolicy as PausePolicy, type index_d_PauseSubscriptionOptions as PauseSubscriptionOptions, type index_d_PauseSubscriptionRequest as PauseSubscriptionRequest, type index_d_PauseSubscriptionRequested as PauseSubscriptionRequested, type index_d_PauseSubscriptionResponse as PauseSubscriptionResponse, type index_d_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type index_d_PayCycleOptions as PayCycleOptions, type index_d_PayCycleRequest as PayCycleRequest, type index_d_PayCycleResponse as PayCycleResponse, type index_d_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type index_d_PayRecurringInvoice as PayRecurringInvoice, type index_d_PaymentData as PaymentData, type index_d_PaymentMethod as PaymentMethod, type index_d_PaymentMethodUpdated as PaymentMethodUpdated, index_d_PaymentMode as PaymentMode, type index_d_PaymentSettings as PaymentSettings, index_d_PaymentSettlementMethod as PaymentSettlementMethod, index_d_PaymentStatus as PaymentStatus, index_d_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, index_d_PaymentTestMode as PaymentTestMode, type index_d_PreviewSubscriptionChargesOptions as PreviewSubscriptionChargesOptions, type index_d_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type index_d_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type index_d_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type index_d_PreviewSubscriptionChargesResponseNonNullableFields as PreviewSubscriptionChargesResponseNonNullableFields, type index_d_PriceDetails as PriceDetails, type index_d_PricingModel as PricingModel, type index_d_PricingModelModelOneOf as PricingModelModelOneOf, type index_d_Proration as Proration, type index_d_ProrationTypeOneOf as ProrationTypeOneOf, type index_d_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type index_d_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type index_d_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type index_d_QueryV2 as QueryV2, type index_d_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type index_d_Recurring as Recurring, type index_d_RedirectUrls as RedirectUrls, index_d_RequestedFields as RequestedFields, type index_d_Reschedule as Reschedule, type index_d_ResetPendingUpdates as ResetPendingUpdates, type index_d_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type index_d_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type index_d_RestoreInfo as RestoreInfo, index_d_ResumeAt as ResumeAt, type index_d_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type index_d_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type index_d_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type index_d_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type index_d_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type index_d_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type index_d_ReviseSubscriptionResponse as ReviseSubscriptionResponse, index_d_RevivePolicy as RevivePolicy, type index_d_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type index_d_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type index_d_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type index_d_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type index_d_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type index_d_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type index_d_ScheduledPauseCanceled as ScheduledPauseCanceled, type index_d_ScheduledResumeCanceled as ScheduledResumeCanceled, type index_d_SearchSubscriptionRequest as SearchSubscriptionRequest, type index_d_SearchSubscriptionResponse as SearchSubscriptionResponse, type index_d_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type index_d_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type index_d_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type index_d_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type index_d_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type index_d_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type index_d_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type index_d_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type index_d_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type index_d_SetIsMigratedEvent as SetIsMigratedEvent, type index_d_SetShiftingDataRequest as SetShiftingDataRequest, type index_d_SetShiftingDataResponse as SetShiftingDataResponse, index_d_SortOrder as SortOrder, type index_d_Sorting as Sorting, type index_d_SortingClauses as SortingClauses, type index_d_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, index_d_Status as Status, type index_d_StreetAddress as StreetAddress, type index_d_Subscriber as Subscriber, type index_d_Subscription as Subscription, type index_d_SubscriptionActivated as SubscriptionActivated, type index_d_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type index_d_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type index_d_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type index_d_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type index_d_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type index_d_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type index_d_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type index_d_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type index_d_SubscriptionCanceled as SubscriptionCanceled, type index_d_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type index_d_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type index_d_SubscriptionCharge as SubscriptionCharge, type index_d_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type index_d_SubscriptionCreated as SubscriptionCreated, type index_d_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type index_d_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type index_d_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type index_d_SubscriptionDeleted as SubscriptionDeleted, type index_d_SubscriptionDiff as SubscriptionDiff, type index_d_SubscriptionEnded as SubscriptionEnded, type index_d_SubscriptionEvent as SubscriptionEvent, type index_d_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type index_d_SubscriptionExpired as SubscriptionExpired, type index_d_SubscriptionExtended as SubscriptionExtended, type index_d_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type index_d_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, index_d_SubscriptionFrequency as SubscriptionFrequency, type index_d_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type index_d_SubscriptionInfo as SubscriptionInfo, type index_d_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type index_d_SubscriptionInvoice as SubscriptionInvoice, type index_d_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type index_d_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type index_d_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type index_d_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type index_d_SubscriptionPaused as SubscriptionPaused, type index_d_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type index_d_SubscriptionPolicies as SubscriptionPolicies, type index_d_SubscriptionPolicy as SubscriptionPolicy, type index_d_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type index_d_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type index_d_SubscriptionResumed as SubscriptionResumed, type index_d_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type index_d_SubscriptionRevived as SubscriptionRevived, type index_d_SubscriptionStatus as SubscriptionStatus, index_d_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, index_d_SubscriptionStatusGroup as SubscriptionStatusGroup, type index_d_SubscriptionSuspended as SubscriptionSuspended, type index_d_SubscriptionTrialPeriod as SubscriptionTrialPeriod, index_d_SubscriptionType as SubscriptionType, type index_d_SubscriptionUpdateData as SubscriptionUpdateData, type index_d_SubscriptionUpdated as SubscriptionUpdated, type index_d_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type index_d_Suspension as Suspension, type index_d_Task as Task, type index_d_TaskAction as TaskAction, type index_d_TaskActionActionOneOf as TaskActionActionOneOf, type index_d_TaskKey as TaskKey, type index_d_Tax as Tax, type index_d_TaxSettings as TaxSettings, type index_d_TaxValueOneOf as TaxValueOneOf, type index_d_TimeBasedProration as TimeBasedProration, type index_d_Totals as Totals, type index_d_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type index_d_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type index_d_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type index_d_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type index_d_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type index_d_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type index_d_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type index_d_UnsupportedAction as UnsupportedAction, type index_d_UnsupportedReason as UnsupportedReason, index_d_UpdateAction as UpdateAction, type index_d_UpdateBillingDateData as UpdateBillingDateData, type index_d_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type index_d_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type index_d_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type index_d_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type index_d_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type index_d_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type index_d_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type index_d_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type index_d_UpdateStatusRequest as UpdateStatusRequest, type index_d_UpdateStatusResponse as UpdateStatusResponse, type index_d_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type index_d_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type index_d_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type index_d_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type index_d_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type index_d_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type index_d_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type index_d_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type index_d_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type index_d_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type index_d_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type index_d_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type index_d_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type index_d_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type index_d_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type index_d_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type index_d_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type index_d_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type index_d_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type index_d_UpdatesApplied as UpdatesApplied, type index_d_V1Duration as V1Duration, type index_d_V1Subscription as V1Subscription, type index_d_V1SubscriptionActivated as V1SubscriptionActivated, type index_d_V1SubscriptionCanceled as V1SubscriptionCanceled, type index_d_V1SubscriptionCreated as V1SubscriptionCreated, type index_d_V1SubscriptionEvent as V1SubscriptionEvent, type index_d_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type index_d_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type index_d_V1SubscriptionResumed as V1SubscriptionResumed, index_d_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type index_d_V1SubscriptionUpdated as V1SubscriptionUpdated, type index_d_V2Subscription as V2Subscription, index_d_WebhookIdentityType as WebhookIdentityType, index_d_allowedActions as allowedActions, index_d_cancelSubscription as cancelSubscription, index_d_countSubscriptions as countSubscriptions, index_d_customerAllowedActions as customerAllowedActions, index_d_customerCancelSubscription as customerCancelSubscription, index_d_customerExtendSubscription as customerExtendSubscription, index_d_customerGetSubscription as customerGetSubscription, index_d_customerInitiatePaymentMethodSetup as customerInitiatePaymentMethodSetup, index_d_customerListUpcomingCharges as customerListUpcomingCharges, index_d_customerQuerySubscriptions as customerQuerySubscriptions, index_d_customerTurnOffSubscriptionAutoRenewal as customerTurnOffSubscriptionAutoRenewal, index_d_customerTurnOnSubscriptionAutoRenewal as customerTurnOnSubscriptionAutoRenewal, index_d_customerUpdateSubscriptionPaymentMethod as customerUpdateSubscriptionPaymentMethod, index_d_extendSubscription as extendSubscription, index_d_getSubscription as getSubscription, index_d_getSubscriptionsStats as getSubscriptionsStats, index_d_initiatePaymentMethodSetup as initiatePaymentMethodSetup, index_d_listUpcomingCharges as listUpcomingCharges, index_d_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, index_d_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, index_d_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, index_d_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, index_d_onSubscriptionCanceled as onSubscriptionCanceled, index_d_onSubscriptionExtended as onSubscriptionExtended, index_d_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, index_d_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, index_d_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, index_d_onSubscriptionPaused as onSubscriptionPaused, index_d_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, index_d_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, index_d_onSubscriptionResumed as onSubscriptionResumed, index_d_onSubscriptionUpdated as onSubscriptionUpdated, index_d_pauseSubscription as pauseSubscription, index_d_payCycle as payCycle, index_d_previewSubscriptionCharges as previewSubscriptionCharges, index_d_querySubscriptions as querySubscriptions, index_d_resumeSubscription as resumeSubscription, index_d_searchSubscriptions as searchSubscriptions, index_d_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, index_d_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, index_d_updateSubscriptionBillingDate as updateSubscriptionBillingDate, index_d_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
6450
3628
  }
6451
3629
 
6452
3630
  export { index_d as subscriptions };