import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ListPublicPlansOptions, ListPublicPlansResponse, ListPublicPlansApplicationErrors, Plan, GetPlanApplicationErrors, ListPlansOptions, ListPlansResponse, ListPlansApplicationErrors, ListPlansValidationErrors, GetPlanStatsResponse, GetPlanStatsApplicationErrors, CreatePlanApplicationErrors, CreatePlanValidationErrors, UpdatePlan, UpdatePlanApplicationErrors, UpdatePlanValidationErrors, SetPlanVisibilityResponse, SetPlanVisibilityApplicationErrors, MakePlanPrimaryResponse, MakePlanPrimaryApplicationErrors, ClearPrimaryApplicationErrors, ArchivePlanResponse, ArchivePlanApplicationErrors, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanArchivedEnvelope, PlanUpdatedEnvelope, PlansQueryBuilder, PlanQuery, typedQueryPublicPlans } from './index.typings.js'; export { AccountInfo, AccountInfoMetadata, ActionEvent, ApplicationError, AppliedAt, AppliedAtWithLiterals, ArchivePlanRequest, ArchivedFilter, ArchivedFilterWithLiterals, ArrangePlansRequest, ArrangePlansResponse, BaseEventMetadata, BulkActionMetadata, BulkArchivePlanRequest, BulkArchivePlanResponse, BulkPlanResult, BuyerCanCancelUpdated, ClearPrimaryRequest, ClearPrimaryResponse, CommonQueryWithEntityContext, CountPlansRequest, CountPlansResponse, CreatePlanRequest, CreatePlanResponse, Cursors, DomainEvent, DomainEventBodyOneOf, Duration, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, Fee, FeeConfig, GetPlanRequest, GetPlanResponse, GetPlanStatsRequest, GetPlansPremiumStatusRequest, GetPlansPremiumStatusResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListPlansRequest, ListPublicPlansRequest, MakePlanPrimaryRequest, MessageEnvelope, Money, Paging, PagingMetadataV2, PeriodUnit, PeriodUnitWithLiterals, PlanArchived, PlanQuerySpec, PlansQueryResult, Pricing, PricingPricingModelOneOf, PublicFilter, PublicFilterWithLiterals, PublicPlan, QueryPublicPlansApplicationErrors, QueryPublicPlansRequest, QueryPublicPlansResponse, QueryPublicPlansValidationErrors, QueryV2, Recurrence, RestoreInfo, SearchPlansRequest, SearchPlansResponse, SetPlanVisibilityRequest, SortOrder, SortOrderWithLiterals, Sorting, StringList, UpdatePlanRequest, UpdatePlanResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function listPublicPlans$1(httpClient: HttpClient): ListPublicPlansSignature; interface ListPublicPlansSignature { /** * 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. * @param - Options for filtering and paging the list of public plans. * @deprecated */ (options?: ListPublicPlansOptions): Promise & { __applicationErrorsType?: ListPublicPlansApplicationErrors; }>; } declare function getPlan$1(httpClient: HttpClient): GetPlanSignature; interface GetPlanSignature { /** * Retrieves a pricing plan by ID. * @param - Plan ID. * @returns Pricing plan. * @deprecated */ (_id: string): Promise & { __applicationErrorsType?: GetPlanApplicationErrors; }>; } declare function listPlans$1(httpClient: HttpClient): ListPlansSignature; interface ListPlansSignature { /** * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans). * @param - Options for filtering and paging the list of plans. * @deprecated */ (options?: ListPlansOptions): Promise & { __applicationErrorsType?: ListPlansApplicationErrors; __validationErrorsType?: ListPlansValidationErrors; }>; } declare function getPlanStats$1(httpClient: HttpClient): GetPlanStatsSignature; interface GetPlanStatsSignature { /** * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans. * @deprecated */ (): Promise & { __applicationErrorsType?: GetPlanStatsApplicationErrors; }>; } declare function createPlan$1(httpClient: HttpClient): CreatePlanSignature; interface CreatePlanSignature { /** * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following: * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days. * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew. * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled). * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard. * @param - Information for the plan being created. * @returns Created plan. * @deprecated */ (plan: NonNullablePaths): Promise & { __applicationErrorsType?: CreatePlanApplicationErrors; __validationErrorsType?: CreatePlanValidationErrors; }>; } declare function updatePlan$1(httpClient: HttpClient): UpdatePlanSignature; interface UpdatePlanSignature { /** * Updates a pricing plan. * 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. * @param - ID of the plan to update. * @param - Options for updating the plan. * @returns Updated plan. * @deprecated */ (_id: string, plan: UpdatePlan): Promise & { __applicationErrorsType?: UpdatePlanApplicationErrors; __validationErrorsType?: UpdatePlanValidationErrors; }>; } declare function setPlanVisibility$1(httpClient: HttpClient): SetPlanVisibilitySignature; interface SetPlanVisibilitySignature { /** * Sets visibility for pricing plans. Visible plans are considered public plans. * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them. * 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.) * 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. * @param - Whether a plan is visible to members and site visitors. Updates the `public` field. * @param - The ID of the plan to either display or hide on the site page. * @param - Plan visibility options. * @deprecated */ (_id: string, visible: boolean): Promise & { __applicationErrorsType?: SetPlanVisibilityApplicationErrors; }>; } declare function makePlanPrimary$1(httpClient: HttpClient): MakePlanPrimarySignature; interface MakePlanPrimarySignature { /** * 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. * @param - ID of the pricing plan to set as the primary plan. * @deprecated */ (_id: string): Promise & { __applicationErrorsType?: MakePlanPrimaryApplicationErrors; }>; } declare function clearPrimary$1(httpClient: HttpClient): ClearPrimarySignature; interface ClearPrimarySignature { /** * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon. * @deprecated */ (): Promise; } declare function archivePlan$1(httpClient: HttpClient): ArchivePlanSignature; interface ArchivePlanSignature { /** * Archives a single plan. * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors. * This is because the plan's `public` property is automatically set to `false`. * Archived plans can't be purchased or reactivated. * 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. * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**. * > **Note:** An attempt to archive an already-archived plan throws an error. * @param - ID of the active plan to archive. * @deprecated */ (_id: string): Promise & { __applicationErrorsType?: ArchivePlanApplicationErrors; }>; } declare const onPlanBuyerCanCancelUpdated$1: EventDefinition; declare const onPlanCreated$1: EventDefinition; declare const onPlanArchived$1: EventDefinition; declare const onPlanUpdated$1: EventDefinition; declare function customQueryPublicPlans(httpClient: HttpClient): { (): PlansQueryBuilder; (query: PlanQuery): ReturnType; }; declare const listPublicPlans: MaybeContext & typeof listPublicPlans$1>; declare const getPlan: MaybeContext & typeof getPlan$1>; declare const listPlans: MaybeContext & typeof listPlans$1>; declare const getPlanStats: MaybeContext & typeof getPlanStats$1>; declare const createPlan: MaybeContext & typeof createPlan$1>; declare const updatePlan: MaybeContext & typeof updatePlan$1>; declare const setPlanVisibility: MaybeContext & typeof setPlanVisibility$1>; declare const makePlanPrimary: MaybeContext & typeof makePlanPrimary$1>; declare const clearPrimary: MaybeContext & typeof clearPrimary$1>; declare const archivePlan: MaybeContext & typeof archivePlan$1>; declare const queryPublicPlans: MaybeContext & typeof customQueryPublicPlans>; /** * Triggered when a plan's `buyerCanCancel` field is updated. * @deprecated */ declare const onPlanBuyerCanCancelUpdated: BuildEventDefinition & typeof onPlanBuyerCanCancelUpdated$1; /** * Triggered when a pricing plan is created. */ declare const onPlanCreated: BuildEventDefinition & typeof onPlanCreated$1; /** * Triggered when a pricing plan is archived. * @deprecated */ declare const onPlanArchived: BuildEventDefinition & typeof onPlanArchived$1; /** * Triggered when a pricing plan is updated. * @deprecated */ declare const onPlanUpdated: BuildEventDefinition & typeof onPlanUpdated$1; export { ArchivePlanApplicationErrors, ArchivePlanResponse, ClearPrimaryApplicationErrors, CreatePlanApplicationErrors, CreatePlanValidationErrors, GetPlanApplicationErrors, GetPlanStatsApplicationErrors, GetPlanStatsResponse, ListPlansApplicationErrors, ListPlansOptions, ListPlansResponse, ListPlansValidationErrors, ListPublicPlansApplicationErrors, ListPublicPlansOptions, ListPublicPlansResponse, MakePlanPrimaryApplicationErrors, MakePlanPrimaryResponse, Plan, PlanArchivedEnvelope, PlanBuyerCanCancelUpdatedEnvelope, PlanCreatedEnvelope, PlanQuery, PlanUpdatedEnvelope, PlansQueryBuilder, SetPlanVisibilityApplicationErrors, SetPlanVisibilityResponse, UpdatePlan, UpdatePlanApplicationErrors, UpdatePlanValidationErrors, archivePlan, clearPrimary, createPlan, getPlan, getPlanStats, listPlans, listPublicPlans, makePlanPrimary, onPlanArchived, onPlanBuyerCanCancelUpdated, onPlanCreated, onPlanUpdated, queryPublicPlans, setPlanVisibility, updatePlan };