@wix/auto_sdk_pricing-plans_plans 1.0.68 → 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 {
@@ -988,24 +986,17 @@ interface PlanUpdatedEnvelope {
988
986
  * @eventType wix.pricing_plans.plan_updated
989
987
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
990
988
  * @slug updated
991
- * @deprecated
992
- * @replacedBy wix.pricing_plans.v3.plan_updated
993
- * @targetRemovalDate 2025-12-31
994
989
  */
995
990
  declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | Promise<void>): void;
996
991
  type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
997
992
  /**
998
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.
999
- * Deprecated: use QueryPlans or SearchPlans with visibility set to PUBLIC and archived set to false in the filter.
1000
994
  * @public
1001
995
  * @param options - Options for filtering and paging the list of public plans.
1002
996
  * @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
1003
997
  * @applicableIdentity APP
1004
998
  * @applicableIdentity VISITOR
1005
999
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
1006
- * @deprecated
1007
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1008
- * @targetRemovalDate 2025-12-31
1009
1000
  */
1010
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`> & {
1011
1002
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
@@ -1048,9 +1039,6 @@ interface ListPublicPlansOptions {
1048
1039
  * @applicableIdentity APP
1049
1040
  * @applicableIdentity VISITOR
1050
1041
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
1051
- * @deprecated
1052
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1053
- * @targetRemovalDate 2025-12-31
1054
1042
  */
1055
1043
  declare function queryPublicPlans(): PlansQueryBuilder;
1056
1044
  interface QueryOffsetResult {
@@ -1122,24 +1110,17 @@ interface PlansQueryBuilder {
1122
1110
  * @applicableIdentity APP
1123
1111
  * @returns Pricing plan.
1124
1112
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
1125
- * @deprecated
1126
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.GetPlan
1127
- * @targetRemovalDate 2025-12-31
1128
1113
  */
1129
1114
  declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1130
1115
  __applicationErrorsType?: GetPlanApplicationErrors;
1131
1116
  }>;
1132
1117
  /**
1133
1118
  * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
1134
- * Deprecated: use QueryPlans or SearchPlans instead.
1135
1119
  * @public
1136
1120
  * @param options - Options for filtering and paging the list of plans.
1137
1121
  * @permissionId PRICING_PLANS.READ_PLANS
1138
1122
  * @applicableIdentity APP
1139
1123
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
1140
- * @deprecated
1141
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.SearchPlans
1142
- * @targetRemovalDate 2025-12-31
1143
1124
  */
1144
1125
  declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1145
1126
  [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
@@ -1169,14 +1150,10 @@ interface ListPlansOptions {
1169
1150
  }
1170
1151
  /**
1171
1152
  * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
1172
- * Deprecated: use CountPlans instead in order to retrieve the total number of pricing plans.
1173
1153
  * @public
1174
1154
  * @permissionId PRICING_PLANS.READ_PLANS
1175
1155
  * @applicableIdentity APP
1176
1156
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
1177
- * @deprecated
1178
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.CountPlans
1179
- * @targetRemovalDate 2025-12-31
1180
1157
  */
1181
1158
  declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
1182
1159
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
@@ -1201,9 +1178,6 @@ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse,
1201
1178
  * @applicableIdentity APP
1202
1179
  * @returns Created plan.
1203
1180
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
1204
- * @deprecated
1205
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.CreatePlan
1206
- * @targetRemovalDate 2025-12-31
1207
1181
  */
1208
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> & {
1209
1183
  __applicationErrorsType?: CreatePlanApplicationErrors;
@@ -1221,9 +1195,6 @@ declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `p
1221
1195
  * @applicableIdentity APP
1222
1196
  * @returns Updated plan.
1223
1197
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
1224
- * @deprecated
1225
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1226
- * @targetRemovalDate 2025-12-31
1227
1198
  */
1228
1199
  declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1229
1200
  __applicationErrorsType?: UpdatePlanApplicationErrors;
@@ -1317,7 +1288,6 @@ interface UpdatePlan {
1317
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.
1318
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.)
1319
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.
1320
- * Deprecated: use UpdatePlan with visibility parameter in the request instead.
1321
1291
  * @param visible - Whether a plan is visible to members and site visitors. Updates the `public` field.
1322
1292
  * @public
1323
1293
  * @requiredField _id
@@ -1327,9 +1297,6 @@ interface UpdatePlan {
1327
1297
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1328
1298
  * @applicableIdentity APP
1329
1299
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
1330
- * @deprecated
1331
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1332
- * @targetRemovalDate 2025-12-31
1333
1300
  */
1334
1301
  declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1335
1302
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1338,18 +1305,12 @@ declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNu
1338
1305
  }>;
1339
1306
  /**
1340
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.
1341
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
1342
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
1343
- * Then, use BulkUpdatePlans to set the new plan as primary and remove the primary setting from the existing one.
1344
1308
  * @public
1345
1309
  * @requiredField _id
1346
1310
  * @param _id - ID of the pricing plan to set as the primary plan.
1347
1311
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1348
1312
  * @applicableIdentity APP
1349
1313
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
1350
- * @deprecated
1351
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1352
- * @targetRemovalDate 2025-12-31
1353
1314
  */
1354
1315
  declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1355
1316
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1358,31 +1319,28 @@ declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlan
1358
1319
  }>;
1359
1320
  /**
1360
1321
  * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
1361
- * Deprecated: Use QueryPlans along with BulkUpdatePlans instead.
1362
- * First, use QueryPlans with the primary set to true in the filter to retrieve existing plans and identify the primary ones.
1363
- * Then, use BulkUpdatePlans to remove the primary setting from all primary plans.
1364
1322
  * @public
1365
1323
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1366
1324
  * @applicableIdentity APP
1367
1325
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
1368
- * @deprecated
1369
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1370
- * @targetRemovalDate 2025-12-31
1371
1326
  */
1372
1327
  declare function clearPrimary(): Promise<void & {
1373
1328
  __applicationErrorsType?: ClearPrimaryApplicationErrors;
1374
1329
  }>;
1375
1330
  /**
1376
- * 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.
1377
1338
  * @public
1378
1339
  * @requiredField _id
1379
1340
  * @param _id - ID of the active plan to archive.
1380
1341
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1381
1342
  * @applicableIdentity APP
1382
1343
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
1383
- * @deprecated
1384
- * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1385
- * @targetRemovalDate 2025-12-31
1386
1344
  */
1387
1345
  declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1388
1346
  [P in PlanNonNullablePaths]: `plan.${P}`;