@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.
@@ -905,7 +905,6 @@ interface PlanBuyerCanCancelUpdatedEnvelope {
905
905
  * @eventType wix.pricing_plans.plan_buyer_can_cancel_updated
906
906
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
907
907
  * @slug buyer_can_cancel_updated
908
- * @deprecated
909
908
  */
910
909
  declare function onPlanBuyerCanCancelUpdated(handler: (event: PlanBuyerCanCancelUpdatedEnvelope) => void | Promise<void>): void;
911
910
  interface PlanCreatedEnvelope {
@@ -960,7 +959,6 @@ interface PlanArchivedEnvelope {
960
959
  * @eventType wix.pricing_plans.plan_plan_archived
961
960
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
962
961
  * @slug plan_archived
963
- * @deprecated
964
962
  */
965
963
  declare function onPlanArchived(handler: (event: PlanArchivedEnvelope) => void | Promise<void>): void;
966
964
  interface PlanUpdatedEnvelope {
@@ -993,16 +991,12 @@ declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | P
993
991
  type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
994
992
  /**
995
993
  * 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.
996
- * Deprecated: use QueryPlans or SearchPlans with visibility set to PUBLIC and archived set to false in the filter.
997
994
  * @public
998
995
  * @param options - Options for filtering and paging the list of public plans.
999
996
  * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
1000
997
  * @applicableIdentity APP
1001
998
  * @applicableIdentity VISITOR
1002
999
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
1003
- * @deprecated
1004
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1005
- * @targetRemovalDate 2025-12-31
1006
1000
  */
1007
1001
  declare function listPublicPlans(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`> & {
1008
1002
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
@@ -1045,9 +1039,6 @@ interface ListPublicPlansOptions {
1045
1039
  * @applicableIdentity APP
1046
1040
  * @applicableIdentity VISITOR
1047
1041
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
1048
- * @deprecated
1049
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1050
- * @targetRemovalDate 2025-12-31
1051
1042
  */
1052
1043
  declare function queryPublicPlans(): PlansQueryBuilder;
1053
1044
  interface QueryOffsetResult {
@@ -1119,24 +1110,17 @@ interface PlansQueryBuilder {
1119
1110
  * @applicableIdentity APP
1120
1111
  * @returns Pricing plan.
1121
1112
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
1122
- * @deprecated
1123
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.GetPlan
1124
- * @targetRemovalDate 2025-12-31
1125
1113
  */
1126
1114
  declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1127
1115
  __applicationErrorsType?: GetPlanApplicationErrors;
1128
1116
  }>;
1129
1117
  /**
1130
1118
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
1131
- * Deprecated: use QueryPlans or SearchPlans instead.
1132
1119
  * @public
1133
1120
  * @param options - Options for filtering and paging the list of plans.
1134
1121
  * @permissionId PRICING_PLANS.READ_PLANS
1135
1122
  * @applicableIdentity APP
1136
1123
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
1137
- * @deprecated
1138
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.SearchPlans
1139
- * @targetRemovalDate 2025-12-31
1140
1124
  */
1141
1125
  declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1142
1126
  [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
@@ -1166,14 +1150,10 @@ interface ListPlansOptions {
1166
1150
  }
1167
1151
  /**
1168
1152
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
1169
- * Deprecated: use CountPlans instead in order to retrieve the total number of pricing plans.
1170
1153
  * @public
1171
1154
  * @permissionId PRICING_PLANS.READ_PLANS
1172
1155
  * @applicableIdentity APP
1173
1156
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
1174
- * @deprecated
1175
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.CountPlans
1176
- * @targetRemovalDate 2025-12-31
1177
1157
  */
1178
1158
  declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
1179
1159
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
@@ -1198,9 +1178,6 @@ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse,
1198
1178
  * @applicableIdentity APP
1199
1179
  * @returns Created plan.
1200
1180
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
1201
- * @deprecated
1202
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.CreatePlan
1203
- * @targetRemovalDate 2025-12-31
1204
1181
  */
1205
1182
  declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `pricing.singlePaymentForDuration.count` | `pricing.subscription.cycleCount` | `pricing.subscription.cycleDuration` | `pricing.subscription.cycleDuration.count`>): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1206
1183
  __applicationErrorsType?: CreatePlanApplicationErrors;
@@ -1218,9 +1195,6 @@ declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `p
1218
1195
  * @applicableIdentity APP
1219
1196
  * @returns Updated plan.
1220
1197
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
1221
- * @deprecated
1222
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1223
- * @targetRemovalDate 2025-12-31
1224
1198
  */
1225
1199
  declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1226
1200
  __applicationErrorsType?: UpdatePlanApplicationErrors;
@@ -1314,7 +1288,6 @@ interface UpdatePlan {
1314
1288
  * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.
1315
1289
  * 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.)
1316
1290
  * 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.
1317
- * Deprecated: use UpdatePlan with visibility parameter in the request instead.
1318
1291
  * @param visible - Whether a plan is visible to members and site visitors. Updates the `public` field.
1319
1292
  * @public
1320
1293
  * @requiredField _id
@@ -1324,9 +1297,6 @@ interface UpdatePlan {
1324
1297
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1325
1298
  * @applicableIdentity APP
1326
1299
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
1327
- * @deprecated
1328
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1329
- * @targetRemovalDate 2025-12-31
1330
1300
  */
1331
1301
  declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1332
1302
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1335,18 +1305,12 @@ declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNu
1335
1305
  }>;
1336
1306
  /**
1337
1307
  * 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.
1338
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
1339
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
1340
- * Then, use BulkUpdatePlans to set the new plan as primary and remove the primary setting from the existing one.
1341
1308
  * @public
1342
1309
  * @requiredField _id
1343
1310
  * @param _id - ID of the pricing plan to set as the primary plan.
1344
1311
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1345
1312
  * @applicableIdentity APP
1346
1313
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
1347
- * @deprecated
1348
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1349
- * @targetRemovalDate 2025-12-31
1350
1314
  */
1351
1315
  declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1352
1316
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1355,31 +1319,28 @@ declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlan
1355
1319
  }>;
1356
1320
  /**
1357
1321
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
1358
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
1359
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
1360
- * Then, use BulkUpdatePlans to remove the primary setting from all primary plans.
1361
1322
  * @public
1362
1323
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1363
1324
  * @applicableIdentity APP
1364
1325
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
1365
- * @deprecated
1366
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1367
- * @targetRemovalDate 2025-12-31
1368
1326
  */
1369
1327
  declare function clearPrimary(): Promise<void & {
1370
1328
  __applicationErrorsType?: ClearPrimaryApplicationErrors;
1371
1329
  }>;
1372
1330
  /**
1373
- * Deprecated: Use UpdatePlan with archived set to true instead.
1331
+ * Archives a single plan.
1332
+ * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.
1333
+ * This is because the plan's `public` property is automatically set to `false`.
1334
+ * Archived plans can't be purchased or reactivated.
1335
+ * 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.
1336
+ * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.
1337
+ * > **Note:** An attempt to archive an already-archived plan throws an error.
1374
1338
  * @public
1375
1339
  * @requiredField _id
1376
1340
  * @param _id - ID of the active plan to archive.
1377
1341
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1378
1342
  * @applicableIdentity APP
1379
1343
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
1380
- * @deprecated
1381
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1382
- * @targetRemovalDate 2025-12-31
1383
1344
  */
1384
1345
  declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1385
1346
  [P in PlanNonNullablePaths]: `plan.${P}`;