@wix/auto_sdk_pricing-plans_plans 1.0.67 → 1.0.69

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.
@@ -7,9 +7,7 @@ declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSigna
7
7
  interface ListPublicPlansSignature {
8
8
  /**
9
9
  * 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.
10
- * Deprecated: use QueryPlans or SearchPlans with visibility set to PUBLIC and archived set to false in the filter.
11
10
  * @param - Options for filtering and paging the list of public plans.
12
- * @deprecated
13
11
  */
14
12
  (options?: ListPublicPlansOptions): Promise<NonNullablePaths<ListPublicPlansResponse, `plans` | `plans.${number}._id` | `plans.${number}.pricing.subscription.cycleDuration.unit` | `plans.${number}.pricing.price.value` | `plans.${number}.pricing.price.currency` | `plans.${number}.primary`> & {
15
13
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
@@ -34,7 +32,6 @@ interface QueryPublicPlansSignature {
34
32
  * The methods that are chained to `queryPublicPlans()` are applied in the order they are called. For example, if you sort on the `_createdDate` property in ascending order and then on the `_id` property in ascending order, the results are sorted first by the created date of the items and then, if there are multiple results with the same date, the items are sorted by `_id` in ascending order, per created date value.
35
33
  *
36
34
  * The following `PublicPlansQueryBuilder` methods are supported for the `queryPublicPlans()` method. For a full description of the Plans object, see the object returned for the [`items`](#plansqueryresult/items) property in [`PublicPlansQueryResult`](#plansqueryresult).
37
- * @deprecated
38
35
  */
39
36
  (): PlansQueryBuilder;
40
37
  }
@@ -44,7 +41,6 @@ interface GetPlanSignature {
44
41
  * Retrieves a pricing plan by ID.
45
42
  * @param - Plan ID.
46
43
  * @returns Pricing plan.
47
- * @deprecated
48
44
  */
49
45
  (_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
50
46
  __applicationErrorsType?: GetPlanApplicationErrors;
@@ -54,9 +50,7 @@ declare function listPlans$1(httpClient: HttpClient): ListPlansSignature;
54
50
  interface ListPlansSignature {
55
51
  /**
56
52
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
57
- * Deprecated: use QueryPlans or SearchPlans instead.
58
53
  * @param - Options for filtering and paging the list of plans.
59
- * @deprecated
60
54
  */
61
55
  (options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
62
56
  [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
@@ -69,8 +63,6 @@ declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature;
69
63
  interface GetPlanStatsSignature {
70
64
  /**
71
65
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
72
- * Deprecated: use CountPlans instead in order to retrieve the total number of pricing plans.
73
- * @deprecated
74
66
  */
75
67
  (): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
76
68
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
@@ -86,7 +78,6 @@ interface CreatePlanSignature {
86
78
  * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
87
79
  * @param - Information for the plan being created.
88
80
  * @returns Created plan.
89
- * @deprecated
90
81
  */
91
82
  (plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
92
83
  __applicationErrorsType?: CreatePlanApplicationErrors;
@@ -101,7 +92,6 @@ interface UpdatePlanSignature {
101
92
  * @param - ID of the plan to update.
102
93
  * @param - Options for updating the plan.
103
94
  * @returns Updated plan.
104
- * @deprecated
105
95
  */
106
96
  (_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
107
97
  __applicationErrorsType?: UpdatePlanApplicationErrors;
@@ -115,11 +105,9 @@ interface SetPlanVisibilitySignature {
115
105
  * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
116
106
  * 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.)
117
107
  * 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.
118
- * Deprecated: use UpdatePlan with visibility parameter in the request instead.
119
108
  * @param - Whether a plan is visible to members and site visitors. Updates the `public` field.
120
109
  * @param - The ID of the plan to either display or hide on the site page.
121
110
  * @param - Plan visibility options.
122
- * @deprecated
123
111
  */
124
112
  (_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
125
113
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -131,11 +119,7 @@ declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySigna
131
119
  interface MakePlanPrimarySignature {
132
120
  /**
133
121
  * 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.
134
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
135
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
136
- * Then, use BulkUpdatePlans to set the new plan as primary and remove the primary setting from the existing one.
137
122
  * @param - ID of the pricing plan to set as the primary plan.
138
- * @deprecated
139
123
  */
140
124
  (_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
141
125
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -147,10 +131,6 @@ declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature;
147
131
  interface ClearPrimarySignature {
148
132
  /**
149
133
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
150
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
151
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
152
- * Then, use BulkUpdatePlans to remove the primary setting from all primary plans.
153
- * @deprecated
154
134
  */
155
135
  (): Promise<void & {
156
136
  __applicationErrorsType?: ClearPrimaryApplicationErrors;
@@ -159,9 +139,14 @@ interface ClearPrimarySignature {
159
139
  declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature;
160
140
  interface ArchivePlanSignature {
161
141
  /**
162
- * Deprecated: Use UpdatePlan with archived set to true instead.
142
+ * Archives a single plan.
143
+ * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
144
+ * This is because the plan's `public` property is automatically set to `false`.
145
+ * Archived plans can't be purchased or reactivated.
146
+ * 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.
147
+ * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
148
+ * > **Note:** An attempt to archive an already-archived plan throws an error.
163
149
  * @param - ID of the active plan to archive.
164
- * @deprecated
165
150
  */
166
151
  (_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
167
152
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -187,7 +172,6 @@ declare const clearPrimary: MaybeContext<BuildRESTFunction<typeof clearPrimary$1
187
172
  declare const archivePlan: MaybeContext<BuildRESTFunction<typeof archivePlan$1> & typeof archivePlan$1>;
188
173
  /**
189
174
  * Triggered when a plan's `buyerCanCancel` field is updated.
190
- * @deprecated
191
175
  */
192
176
  declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuyerCanCancelUpdated$1>;
193
177
  /**
@@ -196,7 +180,6 @@ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition<typeof onPlanBuy
196
180
  declare const onPlanCreated: BuildEventDefinition<typeof onPlanCreated$1>;
197
181
  /**
198
182
  * Triggered when a pricing plan is archived.
199
- * @deprecated
200
183
  */
201
184
  declare const onPlanArchived: BuildEventDefinition<typeof onPlanArchived$1>;
202
185
  /**