@wix/pricing-plans 1.0.107 → 1.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/pricing-plans",
3
- "version": "1.0.107",
3
+ "version": "1.0.108",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,8 +21,8 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/pricing-plans_orders": "1.0.49",
25
- "@wix/pricing-plans_plans": "1.0.49"
24
+ "@wix/pricing-plans_orders": "1.0.50",
25
+ "@wix/pricing-plans_plans": "1.0.50"
26
26
  },
27
27
  "devDependencies": {
28
28
  "glob": "^10.4.1",
@@ -47,5 +47,5 @@
47
47
  "fqdn": ""
48
48
  }
49
49
  },
50
- "falconPackageHash": "711f75048a0f3d070099b8467db45b775f38a9fbaa1bfa92dd61390a"
50
+ "falconPackageHash": "fc998679a9d9cc48275c27ce0c17e467405baef674efccd149f9aa3d"
51
51
  }
@@ -709,27 +709,35 @@ interface Tax {
709
709
  }
710
710
  /** An object specifying how often and for how long payments recur (may be forever). */
711
711
  interface Recurrence$1 {
712
- /** Length of one payment cycle. */
712
+ /**
713
+ * Number of payment cycles the subscription is valid for.
714
+ * `0` for unlimited plans or for plans that are valid until canceled.
715
+ */
713
716
  cycleDuration?: Duration$1;
714
717
  /**
715
- * Amount of payment cycles this subscription is valid for.
716
- *
717
- * `0` for unlimited or until-canceled.
718
+ * Length of a payment cycle. For example, 1 month to have monthly payments.
719
+ * Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.
720
+ * Currently, only a value of `1` is supported.
718
721
  */
719
722
  cycleCount?: number | null;
720
723
  }
721
724
  /** A duration expressed in number of time units. */
722
725
  interface Duration$1 {
723
- /** The amount of a duration `unit` in a single payment cycle. */
726
+ /** Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`. */
724
727
  count?: number | null;
725
728
  /** Unit of time for the cycle duration. */
726
729
  unit?: PeriodUnit$1;
727
730
  }
728
731
  declare enum PeriodUnit$1 {
732
+ /** Not defined. */
729
733
  UNDEFINED = "UNDEFINED",
734
+ /** Time unit is a day. */
730
735
  DAY = "DAY",
736
+ /** Time unit is a week. */
731
737
  WEEK = "WEEK",
738
+ /** Time unit is a month. */
732
739
  MONTH = "MONTH",
740
+ /** Time unit is a year. */
733
741
  YEAR = "YEAR"
734
742
  }
735
743
  interface Coupon {
@@ -2677,7 +2685,7 @@ interface Plan {
2677
2685
  name?: string | null;
2678
2686
  /** Plan description. */
2679
2687
  description?: string | null;
2680
- /** What is included with this plan (e.g., 1 weekly entrance to a specific class). */
2688
+ /** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
2681
2689
  perks?: StringList;
2682
2690
  /** Plan price, payment schedule, and expiration. */
2683
2691
  pricing?: Pricing;
@@ -2716,14 +2724,17 @@ interface Plan {
2716
2724
  /**
2717
2725
  * Number of times the same buyer can purchase the plan. Currently limited to support:
2718
2726
  * - Empty value or a value of `0`, meaning no limitation.
2719
- * - Value of `1`, meaning limited to one purchase per buyer.
2727
+ * - Value of `1`, meaning limited to 1 purchase per buyer.
2720
2728
  */
2721
2729
  maxPurchasesPerBuyer?: number | null;
2722
2730
  /** Whether the buyer can start the plan at a later date. Defaults to false. */
2723
2731
  allowFutureStartDate?: boolean | null;
2724
- /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
2732
+ /**
2733
+ * Whether the buyer is allowed to cancel their plan. Defaults to false.
2734
+ * If false, calling Request Cancellation returns an error.
2735
+ */
2725
2736
  buyerCanCancel?: boolean | null;
2726
- /** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
2737
+ /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
2727
2738
  termsAndConditions?: string | null;
2728
2739
  /**
2729
2740
  * ID of the form associated with the plan at checkout.
@@ -2732,67 +2743,75 @@ interface Plan {
2732
2743
  */
2733
2744
  formId?: string | null;
2734
2745
  }
2735
- /** This wrapper type exist in order to distinguish an empty string list from no list at all in update requests. */
2746
+ /** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */
2736
2747
  interface StringList {
2737
2748
  values?: string[];
2738
2749
  }
2739
2750
  /** Plan pricing information. Includes the price of the plan and payment details. */
2740
2751
  interface Pricing extends PricingPricingModelOneOf {
2741
- /** Plan has recurring payments. */
2752
+ /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
2742
2753
  subscription?: Recurrence;
2743
- /** One time payment, plan is valid for the specified duration. */
2754
+ /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
2744
2755
  singlePaymentForDuration?: Duration;
2745
- /** One time payment, plan is valid until it is canceled. */
2756
+ /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
2746
2757
  singlePaymentUnlimited?: boolean | null;
2747
- /** Amount for a single payment (or the whole subscription if it's not a recurring plan) */
2758
+ /** Amount for a single payment. For subscriptions, this is the amount to pay each payment cycle and it is required. For plans that are not recurring plans, it is the single payment amount for the whole subscription. */
2748
2759
  price?: Money;
2749
- /** Free trial period for the plan in days. It’s available only for recurring plans. Set to 0 to remove free trial. */
2760
+ /** Free trial period for the plan in days. Available only for recurring plans, meaning plans whose pricing model is `subscription`. Set to `0` to remove the free trial. */
2750
2761
  freeTrialDays?: number | null;
2751
2762
  }
2752
2763
  /** @oneof */
2753
2764
  interface PricingPricingModelOneOf {
2754
- /** Plan has recurring payments. */
2765
+ /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a "Wix subscription," which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */
2755
2766
  subscription?: Recurrence;
2756
- /** One time payment, plan is valid for the specified duration. */
2767
+ /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */
2757
2768
  singlePaymentForDuration?: Duration;
2758
- /** One time payment, plan is valid until it is canceled. */
2769
+ /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */
2759
2770
  singlePaymentUnlimited?: boolean | null;
2760
2771
  }
2761
2772
  /** An object specifying how often and for how long payments recur (may be forever). */
2762
2773
  interface Recurrence {
2763
- /** Length of one payment cycle. */
2774
+ /**
2775
+ * Number of payment cycles the subscription is valid for.
2776
+ * `0` for unlimited plans or for plans that are valid until canceled.
2777
+ */
2764
2778
  cycleDuration?: Duration;
2765
2779
  /**
2766
- * Amount of payment cycles this subscription is valid for.
2767
- *
2768
- * `0` for unlimited or until-canceled.
2780
+ * Length of a payment cycle. For example, 1 month to have monthly payments.
2781
+ * Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.
2782
+ * Currently, only a value of `1` is supported.
2769
2783
  */
2770
2784
  cycleCount?: number | null;
2771
2785
  }
2772
2786
  /** A duration expressed in number of time units. */
2773
2787
  interface Duration {
2774
- /** The amount of a duration `unit` in a single payment cycle. */
2788
+ /** Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`. */
2775
2789
  count?: number | null;
2776
2790
  /** Unit of time for the cycle duration. */
2777
2791
  unit?: PeriodUnit;
2778
2792
  }
2779
2793
  declare enum PeriodUnit {
2794
+ /** Not defined. */
2780
2795
  UNDEFINED = "UNDEFINED",
2796
+ /** Time unit is a day. */
2781
2797
  DAY = "DAY",
2798
+ /** Time unit is a week. */
2782
2799
  WEEK = "WEEK",
2800
+ /** Time unit is a month. */
2783
2801
  MONTH = "MONTH",
2802
+ /** Time unit is a year. */
2784
2803
  YEAR = "YEAR"
2785
2804
  }
2786
2805
  interface Money {
2787
- /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). */
2806
+ /** Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative. */
2788
2807
  value?: string;
2789
- /** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
2808
+ /** Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`. */
2790
2809
  currency?: string;
2791
2810
  }
2792
2811
  interface FeeConfig {
2793
2812
  /** Fee configuration. */
2794
2813
  fee?: Fee;
2795
- /** The time this fee will be charged */
2814
+ /** The time this fee will be charged. */
2796
2815
  appliedAt?: AppliedAt;
2797
2816
  }
2798
2817
  interface Fee {
@@ -2803,21 +2822,21 @@ interface Fee {
2803
2822
  }
2804
2823
  declare enum AppliedAt {
2805
2824
  UNKNOWN_CHARGE_EVENT = "UNKNOWN_CHARGE_EVENT",
2806
- /** Will charge the fee on first payment. If order has a free trial meaning it will charge after the free trial. */
2825
+ /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */
2807
2826
  FIRST_PAYMENT = "FIRST_PAYMENT"
2808
2827
  }
2809
2828
  interface ListPublicPlansRequest {
2810
- /** Number of items to list. Defaults to 75. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
2829
+ /** Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
2811
2830
  limit?: number | null;
2812
- /** Number of items to skip. Defaults to 0. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
2831
+ /** Number of items to skip. Defaults to `0`. See paging ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) |[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
2813
2832
  offset?: number | null;
2814
- /** IDs of plans to list. Non-existent IDs will be ignored and won't cause errors. You can pass a maximum of 100 IDs. */
2833
+ /** IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs. */
2815
2834
  planIds?: string[];
2816
2835
  }
2817
2836
  interface ListPublicPlansResponse {
2818
2837
  /** List of public pricing plans. */
2819
2838
  plans?: PublicPlan[];
2820
- /** Object containing paging-related data (number of plans returned, offset). */
2839
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
2821
2840
  pagingMetadata?: PagingMetadataV2;
2822
2841
  }
2823
2842
  /** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */
@@ -2828,7 +2847,7 @@ interface PublicPlan {
2828
2847
  name?: string | null;
2829
2848
  /** Plan description. */
2830
2849
  description?: string | null;
2831
- /** What is included with this plan (e.g., 1 weekly entrance to a specific class). */
2850
+ /** What is included with this plan (for example, 1 weekly entrance to a specific class). */
2832
2851
  perks?: StringList;
2833
2852
  /** Plan price, payment schedule, and expiration. */
2834
2853
  pricing?: Pricing;
@@ -2840,13 +2859,13 @@ interface PublicPlan {
2840
2859
  _updatedDate?: Date | null;
2841
2860
  /** URL-friendly version of plan name. Unique across all plans in the same site. */
2842
2861
  slug?: string | null;
2843
- /** Number of times the same buyer can purchase the plan. An empty value or a value of zero means no limitation. */
2862
+ /** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */
2844
2863
  maxPurchasesPerBuyer?: number | null;
2845
2864
  /** Whether the buyer can start the plan at a later date. Defaults to false. */
2846
2865
  allowFutureStartDate?: boolean | null;
2847
2866
  /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
2848
2867
  buyerCanCancel?: boolean | null;
2849
- /** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
2868
+ /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
2850
2869
  termsAndConditions?: string | null;
2851
2870
  /**
2852
2871
  * ID of the form associated with the plan at checkout.
@@ -2874,15 +2893,15 @@ interface Cursors {
2874
2893
  prev?: string | null;
2875
2894
  }
2876
2895
  interface QueryPublicPlansRequest {
2877
- /** Query */
2896
+ /** Query options. */
2878
2897
  query?: QueryV2;
2879
2898
  }
2880
2899
  interface QueryV2 {
2881
- /** A filter object. See [supported fields and operators](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans) */
2900
+ /** A filter object. See supported fields and operators ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/query-public-plans) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans)). */
2882
2901
  filter?: Record<string, any> | null;
2883
- /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}] */
2902
+ /** Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]. */
2884
2903
  sort?: Sorting[];
2885
- /** Pointer to page of results using offset. Can not be used together with 'cursorPaging' */
2904
+ /** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */
2886
2905
  paging?: Paging;
2887
2906
  }
2888
2907
  interface Sorting {
@@ -2904,7 +2923,7 @@ interface Paging {
2904
2923
  interface QueryPublicPlansResponse {
2905
2924
  /** List of public pricing plans that match the specified query. */
2906
2925
  plans?: PublicPlan[];
2907
- /** Object containing paging-related data (number of plans returned, offset). */
2926
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
2908
2927
  pagingMetadata?: PagingMetadataV2;
2909
2928
  }
2910
2929
  interface GetPlanRequest {
@@ -2916,15 +2935,15 @@ interface GetPlanResponse {
2916
2935
  plan?: Plan;
2917
2936
  }
2918
2937
  interface ListPlansRequest {
2919
- /** Archived filter. Defaults to ACTIVE (not archived) only. */
2938
+ /** Archived filter. Defaults to `ACTIVE` (not archived) only. */
2920
2939
  archived?: ArchivedFilter;
2921
- /** Visibility filter. Defaults to PUBLIC_AND_HIDDEN (meaning, both are listed). */
2940
+ /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
2922
2941
  public?: PublicFilter;
2923
- /** Number of pricing plans to list. Defaults to 75. */
2942
+ /** Number of pricing plans to list. Defaults to `75`. */
2924
2943
  limit?: number | null;
2925
- /** Number of pricing plans to skip. Defaults to 0. */
2944
+ /** Number of pricing plans to skip. Defaults to `0`. */
2926
2945
  offset?: number | null;
2927
- /** Plan ID filter. Non-existent IDs are ignored, and won't cause errors. You can pass a maximum of 100 IDs. */
2946
+ /** IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs. */
2928
2947
  planIds?: string[];
2929
2948
  }
2930
2949
  declare enum ArchivedFilter {
@@ -2946,7 +2965,7 @@ declare enum PublicFilter {
2946
2965
  interface ListPlansResponse {
2947
2966
  /** List of all public and hidden pricing plans. */
2948
2967
  plans?: Plan[];
2949
- /** Object containing paging-related data (number of plans returned, offset). */
2968
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
2950
2969
  pagingMetadata?: PagingMetadataV2;
2951
2970
  }
2952
2971
  interface GetPlanStatsRequest {
@@ -2956,7 +2975,7 @@ interface GetPlanStatsResponse {
2956
2975
  totalPlans?: number;
2957
2976
  }
2958
2977
  interface CreatePlanRequest {
2959
- /** Plan info. */
2978
+ /** Plan details. */
2960
2979
  plan: Plan;
2961
2980
  }
2962
2981
  interface CreatePlanResponse {
@@ -2964,7 +2983,7 @@ interface CreatePlanResponse {
2964
2983
  plan?: Plan;
2965
2984
  }
2966
2985
  interface UpdatePlanRequest {
2967
- /** Plan info. */
2986
+ /** ID of the plan to update. */
2968
2987
  plan: Plan;
2969
2988
  }
2970
2989
  interface UpdatePlanResponse {
@@ -2976,7 +2995,7 @@ interface BuyerCanCancelUpdated {
2976
2995
  plan?: Plan;
2977
2996
  }
2978
2997
  interface SetPlanVisibilityRequest {
2979
- /** Plan ID. */
2998
+ /** The ID of the plan to either display or hide on a site page. */
2980
2999
  _id: string;
2981
3000
  /** Whether a plan is visible to members and site visitors. Updates the `public` field. */
2982
3001
  visible: boolean;
@@ -2986,6 +3005,7 @@ interface SetPlanVisibilityResponse {
2986
3005
  plan?: Plan;
2987
3006
  }
2988
3007
  interface MakePlanPrimaryRequest {
3008
+ /** Pricing plan ID. */
2989
3009
  _id: string;
2990
3010
  }
2991
3011
  interface MakePlanPrimaryResponse {
@@ -2997,7 +3017,7 @@ interface ClearPrimaryRequest {
2997
3017
  interface ClearPrimaryResponse {
2998
3018
  }
2999
3019
  interface ArchivePlanRequest {
3000
- /** ID of the plan to archive. */
3020
+ /** ID of the active plan to archive. */
3001
3021
  _id: string;
3002
3022
  }
3003
3023
  interface ArchivePlanResponse {
@@ -3011,7 +3031,7 @@ interface PlanArchived {
3011
3031
  interface BulkArchivePlanRequest {
3012
3032
  /** List of Plan IDs to archive. */
3013
3033
  ids?: string[];
3014
- /** Set to true to return Plan entity in response. */
3034
+ /** Set to `true` to return the `Plan` entity in the response. */
3015
3035
  returnFullEntity?: boolean;
3016
3036
  }
3017
3037
  interface BulkArchivePlanResponse {
@@ -3053,7 +3073,7 @@ interface BulkActionMetadata {
3053
3073
  undetailedFailures?: number;
3054
3074
  }
3055
3075
  interface ArrangePlansRequest {
3056
- /** List of plan IDs. */
3076
+ /** IDs of all non-archived plans in the order you want them arranged. */
3057
3077
  ids?: string[];
3058
3078
  }
3059
3079
  interface ArrangePlansResponse {
@@ -3061,7 +3081,7 @@ interface ArrangePlansResponse {
3061
3081
  interface CountPlansRequest {
3062
3082
  /** The filter. */
3063
3083
  filter?: Record<string, any> | null;
3064
- /** If true, will count only visible plans (visible and not archived). If no value is given all site's plans will be counted. */
3084
+ /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */
3065
3085
  visibility?: boolean | null;
3066
3086
  }
3067
3087
  interface CountPlansResponse {
@@ -3071,21 +3091,21 @@ interface CountPlansResponse {
3071
3091
  interface GetPlansPremiumStatusRequest {
3072
3092
  }
3073
3093
  interface GetPlansPremiumStatusResponse {
3074
- /** True if site has non-free, non-template plans. */
3094
+ /** True if a site has non-free, non-template plans. */
3075
3095
  hasPaidPlans?: boolean;
3076
- /** True if site has plans that were created before Pricing Plans became a premium app. */
3096
+ /** True if a site has plans that were created before Pricing Plans became a premium app. */
3077
3097
  hasOldPlans?: boolean;
3078
3098
  }
3079
3099
  interface SearchPlansRequest {
3080
- /** Query */
3100
+ /** Query options. */
3081
3101
  query?: QueryV2;
3082
- /** Search phrase for plan name */
3102
+ /** Search phrase for the plan name. */
3083
3103
  searchPhrase?: string | null;
3084
3104
  }
3085
3105
  interface SearchPlansResponse {
3086
3106
  /** List of pricing plans that match the specified filter and search phrase. */
3087
3107
  plans?: Plan[];
3088
- /** Object containing paging-related data (number of plans returned, offset). */
3108
+ /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */
3089
3109
  pagingMetadata?: PagingMetadataV2;
3090
3110
  }
3091
3111
  interface DomainEvent extends DomainEventBodyOneOf {
@@ -3332,11 +3352,11 @@ interface PlanUpdatedEnvelope {
3332
3352
  metadata: EventMetadata;
3333
3353
  }
3334
3354
  interface ListPublicPlansOptions {
3335
- /** Number of items to list. Defaults to 75. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
3355
+ /** Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
3336
3356
  limit?: number | null;
3337
- /** Number of items to skip. Defaults to 0. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
3357
+ /** Number of items to skip. Defaults to `0`. See paging ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) |[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */
3338
3358
  offset?: number | null;
3339
- /** IDs of plans to list. Non-existent IDs will be ignored and won't cause errors. You can pass a maximum of 100 IDs. */
3359
+ /** IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs. */
3340
3360
  planIds?: string[];
3341
3361
  }
3342
3362
  interface QueryOffsetResult {
@@ -3400,15 +3420,15 @@ interface PlansQueryBuilder {
3400
3420
  find: () => Promise<PlansQueryResult>;
3401
3421
  }
3402
3422
  interface ListPlansOptions {
3403
- /** Archived filter. Defaults to ACTIVE (not archived) only. */
3423
+ /** Archived filter. Defaults to `ACTIVE` (not archived) only. */
3404
3424
  archived?: ArchivedFilter;
3405
- /** Visibility filter. Defaults to PUBLIC_AND_HIDDEN (meaning, both are listed). */
3425
+ /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */
3406
3426
  public?: PublicFilter;
3407
- /** Number of pricing plans to list. Defaults to 75. */
3427
+ /** Number of pricing plans to list. Defaults to `75`. */
3408
3428
  limit?: number | null;
3409
- /** Number of pricing plans to skip. Defaults to 0. */
3429
+ /** Number of pricing plans to skip. Defaults to `0`. */
3410
3430
  offset?: number | null;
3411
- /** Plan ID filter. Non-existent IDs are ignored, and won't cause errors. You can pass a maximum of 100 IDs. */
3431
+ /** IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs. */
3412
3432
  planIds?: string[];
3413
3433
  }
3414
3434
  interface UpdatePlan {
@@ -3421,7 +3441,7 @@ interface UpdatePlan {
3421
3441
  name?: string | null;
3422
3442
  /** Plan description. */
3423
3443
  description?: string | null;
3424
- /** What is included with this plan (e.g., 1 weekly entrance to a specific class). */
3444
+ /** List of text strings that promote what is included with this plan. For example, "Plenty of parking" or "Free gift on your birthday." */
3425
3445
  perks?: StringList;
3426
3446
  /** Plan price, payment schedule, and expiration. */
3427
3447
  pricing?: Pricing;
@@ -3460,14 +3480,17 @@ interface UpdatePlan {
3460
3480
  /**
3461
3481
  * Number of times the same buyer can purchase the plan. Currently limited to support:
3462
3482
  * - Empty value or a value of `0`, meaning no limitation.
3463
- * - Value of `1`, meaning limited to one purchase per buyer.
3483
+ * - Value of `1`, meaning limited to 1 purchase per buyer.
3464
3484
  */
3465
3485
  maxPurchasesPerBuyer?: number | null;
3466
3486
  /** Whether the buyer can start the plan at a later date. Defaults to false. */
3467
3487
  allowFutureStartDate?: boolean | null;
3468
- /** Whether the buyer is allowed to cancel their plan. Defaults to false. */
3488
+ /**
3489
+ * Whether the buyer is allowed to cancel their plan. Defaults to false.
3490
+ * If false, calling Request Cancellation returns an error.
3491
+ */
3469
3492
  buyerCanCancel?: boolean | null;
3470
- /** Any terms and conditions that apply to the plan. This information will be displayed during checkout. */
3493
+ /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */
3471
3494
  termsAndConditions?: string | null;
3472
3495
  /**
3473
3496
  * ID of the form associated with the plan at checkout.
@@ -3480,7 +3503,7 @@ interface UpdatePlan {
3480
3503
  declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature;
3481
3504
  interface ListPublicPlansSignature {
3482
3505
  /**
3483
- * Retrieves a list of up to 100 public pricing plans.
3506
+ * Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.
3484
3507
  * @param - Options for filtering and paging the list of public plans.
3485
3508
  */
3486
3509
  (options?: ListPublicPlansOptions | undefined): Promise<ListPublicPlansResponse & ListPublicPlansResponseNonNullableFields>;
@@ -3527,14 +3550,18 @@ interface ListPlansSignature {
3527
3550
  declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
3528
3551
  interface GetPlanStatsSignature {
3529
3552
  /**
3530
- * Gets statistics about the pricing plans. Currently providing only the total number of pricing plans.
3553
+ * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
3531
3554
  */
3532
3555
  (): Promise<GetPlanStatsResponse & GetPlanStatsResponseNonNullableFields>;
3533
3556
  }
3534
3557
  declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature;
3535
3558
  interface CreatePlanSignature {
3536
3559
  /**
3537
- * Creates a pricing plan.
3560
+ * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:
3561
+ * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.
3562
+ * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.
3563
+ * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).
3564
+ * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
3538
3565
  * @param - Information for the plan being created.
3539
3566
  * @returns Created plan.
3540
3567
  */
@@ -3544,7 +3571,7 @@ declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature;
3544
3571
  interface UpdatePlanSignature {
3545
3572
  /**
3546
3573
  * Updates a pricing plan.
3547
- * Updating a plan does not impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
3574
+ * Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
3548
3575
  * @param - ID of the plan to update.
3549
3576
  * @param - Options for updating the plan.
3550
3577
  * @returns Updated plan.
@@ -3555,9 +3582,9 @@ declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilityS
3555
3582
  interface SetPlanVisibilitySignature {
3556
3583
  /**
3557
3584
  * Sets visibility for pricing plans. Visible plans are considered public plans.
3558
- * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors cannot choose them.
3559
- * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and cannot be made active again.)
3560
- * Changing a plan’s visibility does not impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
3585
+ * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
3586
+ * As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.)
3587
+ * Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
3561
3588
  * @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
3562
3589
  * @param - The ID of the plan to either display or hide on the site page.
3563
3590
  * @param - Plan visibility options.
@@ -3567,7 +3594,7 @@ interface SetPlanVisibilitySignature {
3567
3594
  declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature;
3568
3595
  interface MakePlanPrimarySignature {
3569
3596
  /**
3570
- * Marks a pricing plan as the primary pricing plan. When viewing pricing plans on the site, the primary plan is highlighted with a customizable ribbon.
3597
+ * Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.
3571
3598
  * @param - ID of the pricing plan to set as the primary plan.
3572
3599
  */
3573
3600
  (_id: string): Promise<MakePlanPrimaryResponse & MakePlanPrimaryResponseNonNullableFields>;
@@ -3575,7 +3602,7 @@ interface MakePlanPrimarySignature {
3575
3602
  declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
3576
3603
  interface ClearPrimarySignature {
3577
3604
  /**
3578
- * Sets all pricing plans as not primary. When viewing pricing plans on the site, no plan is highlighted with a customizable ribbon.
3605
+ * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
3579
3606
  */
3580
3607
  (): Promise<void>;
3581
3608
  }
@@ -3583,10 +3610,12 @@ declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
3583
3610
  interface ArchivePlanSignature {
3584
3611
  /**
3585
3612
  * Archives a single plan.
3586
- * When a plan is archived, it is no longer visible as a public plan that can be chosen by site members or visitors. Archived plans cannot be purchased.
3587
- * An archived plan cannot be made active again.
3588
- * Plan archiving does not impact existing orders made for the plan. All orders for the plan are still active and keep their perks.
3589
- * Site owners can see archived plans in the Dashboard under Pricing Plans -> Archived Plans.
3613
+ * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
3614
+ * This is because the plan's `public` property is automatically set to `false`.
3615
+ * Archived plans can't be purchased or reactivated.
3616
+ * Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms.
3617
+ * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
3618
+ * > **Note:** An attempt to archive an already-archived plan throws an error.
3590
3619
  * @param - ID of the active plan to archive.
3591
3620
  */
3592
3621
  (_id: string): Promise<ArchivePlanResponse & ArchivePlanResponseNonNullableFields>;
@@ -3612,25 +3641,25 @@ declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1>
3612
3641
 
3613
3642
  type _publicOnPlanBuyerCanCancelUpdatedType = typeof onPlanBuyerCanCancelUpdated$1;
3614
3643
  /**
3615
- * An event that is triggered when a plan's `buyerCanCancel` field is updated.
3644
+ * Triggered when a plan's `buyerCanCancel` field is updated.
3616
3645
  */
3617
3646
  declare const onPlanBuyerCanCancelUpdated: ReturnType<typeof createEventModule<_publicOnPlanBuyerCanCancelUpdatedType>>;
3618
3647
 
3619
3648
  type _publicOnPlanCreatedType = typeof onPlanCreated$1;
3620
3649
  /**
3621
- * An event that is triggered when a pricing plan is created.
3650
+ * Triggered when a pricing plan is created.
3622
3651
  */
3623
3652
  declare const onPlanCreated: ReturnType<typeof createEventModule<_publicOnPlanCreatedType>>;
3624
3653
 
3625
3654
  type _publicOnPlanArchivedType = typeof onPlanArchived$1;
3626
3655
  /**
3627
- * An event that is triggered when a pricing plan is archived.
3656
+ * Triggered when a pricing plan is archived.
3628
3657
  */
3629
3658
  declare const onPlanArchived: ReturnType<typeof createEventModule<_publicOnPlanArchivedType>>;
3630
3659
 
3631
3660
  type _publicOnPlanUpdatedType = typeof onPlanUpdated$1;
3632
3661
  /**
3633
- * An event that is triggered when a pricing plan is updated.
3662
+ * Triggered when a pricing plan is updated.
3634
3663
  */
3635
3664
  declare const onPlanUpdated: ReturnType<typeof createEventModule<_publicOnPlanUpdatedType>>;
3636
3665