@wix/auto_sdk_pricing-plans_plans 1.0.69 → 1.0.70

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,6 +905,7 @@ 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
908
909
  */
909
910
  declare function onPlanBuyerCanCancelUpdated(handler: (event: PlanBuyerCanCancelUpdatedEnvelope) => void | Promise<void>): void;
910
911
  interface PlanCreatedEnvelope {
@@ -959,6 +960,7 @@ interface PlanArchivedEnvelope {
959
960
  * @eventType wix.pricing_plans.plan_plan_archived
960
961
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
961
962
  * @slug plan_archived
963
+ * @deprecated
962
964
  */
963
965
  declare function onPlanArchived(handler: (event: PlanArchivedEnvelope) => void | Promise<void>): void;
964
966
  interface PlanUpdatedEnvelope {
@@ -986,6 +988,9 @@ interface PlanUpdatedEnvelope {
986
988
  * @eventType wix.pricing_plans.plan_updated
987
989
  * @serviceIdentifier com.wixpress.membership.v2.plans.PlansServiceV2
988
990
  * @slug updated
991
+ * @deprecated
992
+ * @replacedBy wix.pricing_plans.v3.plan_updated
993
+ * @targetRemovalDate 2025-12-31
989
994
  */
990
995
  declare function onPlanUpdated(handler: (event: PlanUpdatedEnvelope) => void | Promise<void>): void;
991
996
  type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycleDuration.unit` | `pricing.price.value` | `pricing.price.currency` | `archived` | `primary` | `hasOrders`;
@@ -997,6 +1002,9 @@ type PlanNonNullablePaths = `_id` | `perks.values` | `pricing.subscription.cycle
997
1002
  * @applicableIdentity APP
998
1003
  * @applicableIdentity VISITOR
999
1004
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
1005
+ * @deprecated
1006
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1007
+ * @targetRemovalDate 2025-12-31
1000
1008
  */
1001
1009
  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`> & {
1002
1010
  __applicationErrorsType?: ListPublicPlansApplicationErrors;
@@ -1039,6 +1047,9 @@ interface ListPublicPlansOptions {
1039
1047
  * @applicableIdentity APP
1040
1048
  * @applicableIdentity VISITOR
1041
1049
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
1050
+ * @deprecated
1051
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.QueryPlans
1052
+ * @targetRemovalDate 2025-12-31
1042
1053
  */
1043
1054
  declare function queryPublicPlans(): PlansQueryBuilder;
1044
1055
  interface QueryOffsetResult {
@@ -1110,6 +1121,9 @@ interface PlansQueryBuilder {
1110
1121
  * @applicableIdentity APP
1111
1122
  * @returns Pricing plan.
1112
1123
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
1124
+ * @deprecated
1125
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.GetPlan
1126
+ * @targetRemovalDate 2025-12-31
1113
1127
  */
1114
1128
  declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1115
1129
  __applicationErrorsType?: GetPlanApplicationErrors;
@@ -1121,6 +1135,9 @@ declare function getPlan(_id: string): Promise<NonNullablePaths<Plan, PlanNonNul
1121
1135
  * @permissionId PRICING_PLANS.READ_PLANS
1122
1136
  * @applicableIdentity APP
1123
1137
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
1138
+ * @deprecated
1139
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.SearchPlans
1140
+ * @targetRemovalDate 2025-12-31
1124
1141
  */
1125
1142
  declare function listPlans(options?: ListPlansOptions): Promise<NonNullablePaths<ListPlansResponse, {
1126
1143
  [P in PlanNonNullablePaths]: `plans.${number}.${P}`;
@@ -1154,6 +1171,9 @@ interface ListPlansOptions {
1154
1171
  * @permissionId PRICING_PLANS.READ_PLANS
1155
1172
  * @applicableIdentity APP
1156
1173
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
1174
+ * @deprecated
1175
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.CountPlans
1176
+ * @targetRemovalDate 2025-12-31
1157
1177
  */
1158
1178
  declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse, `totalPlans`> & {
1159
1179
  __applicationErrorsType?: GetPlanStatsApplicationErrors;
@@ -1178,6 +1198,9 @@ declare function getPlanStats(): Promise<NonNullablePaths<GetPlanStatsResponse,
1178
1198
  * @applicableIdentity APP
1179
1199
  * @returns Created plan.
1180
1200
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
1201
+ * @deprecated
1202
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.CreatePlan
1203
+ * @targetRemovalDate 2025-12-31
1181
1204
  */
1182
1205
  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> & {
1183
1206
  __applicationErrorsType?: CreatePlanApplicationErrors;
@@ -1195,6 +1218,9 @@ declare function createPlan(plan: NonNullablePaths<Plan, `name` | `pricing` | `p
1195
1218
  * @applicableIdentity APP
1196
1219
  * @returns Updated plan.
1197
1220
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
1221
+ * @deprecated
1222
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1223
+ * @targetRemovalDate 2025-12-31
1198
1224
  */
1199
1225
  declare function updatePlan(_id: string, plan: UpdatePlan): Promise<NonNullablePaths<Plan, PlanNonNullablePaths> & {
1200
1226
  __applicationErrorsType?: UpdatePlanApplicationErrors;
@@ -1297,6 +1323,9 @@ interface UpdatePlan {
1297
1323
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1298
1324
  * @applicableIdentity APP
1299
1325
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
1326
+ * @deprecated
1327
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1328
+ * @targetRemovalDate 2025-12-31
1300
1329
  */
1301
1330
  declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNullablePaths<SetPlanVisibilityResponse, {
1302
1331
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1311,6 +1340,9 @@ declare function setPlanVisibility(_id: string, visible: boolean): Promise<NonNu
1311
1340
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1312
1341
  * @applicableIdentity APP
1313
1342
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
1343
+ * @deprecated
1344
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1345
+ * @targetRemovalDate 2025-12-31
1314
1346
  */
1315
1347
  declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlanPrimaryResponse, {
1316
1348
  [P in PlanNonNullablePaths]: `plan.${P}`;
@@ -1323,6 +1355,9 @@ declare function makePlanPrimary(_id: string): Promise<NonNullablePaths<MakePlan
1323
1355
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1324
1356
  * @applicableIdentity APP
1325
1357
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
1358
+ * @deprecated
1359
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans
1360
+ * @targetRemovalDate 2025-12-31
1326
1361
  */
1327
1362
  declare function clearPrimary(): Promise<void & {
1328
1363
  __applicationErrorsType?: ClearPrimaryApplicationErrors;
@@ -1341,6 +1376,9 @@ declare function clearPrimary(): Promise<void & {
1341
1376
  * @permissionId PRICING_PLANS.MANAGE_PLANS
1342
1377
  * @applicableIdentity APP
1343
1378
  * @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
1379
+ * @deprecated
1380
+ * @replacedBy wix.pricing_plans.plans.v3.PlanService.UpdatePlan
1381
+ * @targetRemovalDate 2025-12-31
1344
1382
  */
1345
1383
  declare function archivePlan(_id: string): Promise<NonNullablePaths<ArchivePlanResponse, {
1346
1384
  [P in PlanNonNullablePaths]: `plan.${P}`;