@wix/auto_sdk_pricing-plans_plans 1.0.85 → 1.0.86
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.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +5 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +5 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +5 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +5 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/pricing-plans-v2-plan-plans.http.ts","../../src/pricing-plans-v2-plan-plans.types.ts","../../src/pricing-plans-v2-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMembershipV2PlansPlansServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/plan-proxy',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n _: [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n {\n srcPath: '/_api/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_plans';\n\n/**\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function listPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __listPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPublicPlans;\n}\n\n/**\n * Creates a query to retrieve a list of public pricing plans.\n *\n *\n * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.\n *\n * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.\n *\n * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:\n * - [`skip`](#plansquerybuilder/skip): `0`\n * - [`limit`](#plansquerybuilder/limit): `50`\n *\n * 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.\n *\n * 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).\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function queryPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __queryPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPublicPlans;\n}\n\n/**\n * Retrieves a pricing plan by ID.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.GetPlan(), and will be removed on 2025-12-31.\n */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/**\n * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.SearchPlans(), and will be removed on 2025-12-31.\n */\nexport function listPlans(payload: object): RequestOptionsFactory<any> {\n function __listPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPlans;\n}\n\n/**\n * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CountPlans(), and will be removed on 2025-12-31.\n */\nexport function getPlanStats(payload: object): RequestOptionsFactory<any> {\n function __getPlanStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/stats',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPlanStats;\n}\n\n/**\n * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:\n * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.\n * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.\n * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).\n * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CreatePlan(), and will be removed on 2025-12-31.\n */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/**\n * Updates a pricing plan.\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/**\n * Sets visibility for pricing plans. Visible plans are considered public plans.\n * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.\n * 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.)\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function setPlanVisibility(payload: object): RequestOptionsFactory<any> {\n function __setPlanVisibility({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/visibility',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setPlanVisibility;\n}\n\n/**\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function makePlanPrimary(payload: object): RequestOptionsFactory<any> {\n function __makePlanPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/make-primary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __makePlanPrimary;\n}\n\n/**\n * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function clearPrimary(payload: object): RequestOptionsFactory<any> {\n function __clearPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/clear-primary',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __clearPrimary;\n}\n\n/**\n * Archives a single plan.\n * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.\n * This is because the plan's `public` property is automatically set to `false`.\n * Archived plans can't be purchased or reactivated.\n * 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.\n * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.\n * > **Note:** An attempt to archive an already-archived plan throws an error.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function archivePlan(payload: object): RequestOptionsFactory<any> {\n function __archivePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archivePlan;\n}\n","/** Information about the pricing plan. */\nexport interface Plan {\n /**\n * Plan ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Plan name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string | null;\n /**\n * Plan description.\n * @maxLength 450\n */\n description?: string | null;\n /** List of text strings that promote what is included with this plan. For example, \"Plenty of parking\" or \"Free gift on your birthday.\" */\n perks?: StringList;\n /** Plan price, payment schedule, and expiration. */\n pricing?: Pricing;\n /** Whether the plan is public (visible to site visitors and members). */\n public?: boolean | null;\n /**\n * Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.\n * @readonly\n */\n archived?: boolean;\n /**\n * Whether the plan is marked as primary.\n * @readonly\n */\n primary?: boolean;\n /**\n * Whether the plan has any orders (including pending and unpaid orders).\n * @readonly\n */\n hasOrders?: boolean;\n /**\n * Date plan was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date plan was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * URL-friendly version of plan name. Unique across all plans in the same site.\n * @minLength 1\n * @readonly\n * @format URL_SLUG\n */\n slug?: string | null;\n /**\n * Number of times the same buyer can purchase the plan. Currently limited to support:\n * - Empty value or a value of `0`, meaning no limitation.\n * - Value of `1`, meaning limited to 1 purchase per buyer.\n * @max 1\n */\n maxPurchasesPerBuyer?: number | null;\n /** Whether the buyer can start the plan at a later date. Defaults to false. */\n allowFutureStartDate?: boolean | null;\n /**\n * Whether the buyer is allowed to cancel their plan. Defaults to false.\n * If false, calling Request Cancellation returns an error.\n */\n buyerCanCancel?: boolean | null;\n /**\n * Any terms and conditions that apply to the plan. This information is displayed during checkout.\n * @maxLength 3000\n */\n termsAndConditions?: string | null;\n /**\n * ID of the form associated with the plan at checkout.\n *\n * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).\n * @format GUID\n */\n formId?: string | null;\n}\n\n/** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */\nexport interface StringList {\n /**\n * @minLength 1\n * @maxLength 1400\n * @maxSize 500\n */\n values?: string[];\n}\n\n/** Plan pricing information. Includes the price of the plan and payment details. */\nexport interface Pricing extends PricingPricingModelOneOf {\n /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a \"Wix subscription,\" which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */\n subscription?: Recurrence;\n /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */\n singlePaymentForDuration?: Duration;\n /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */\n singlePaymentUnlimited?: boolean | null;\n /** Amount for a single payment. For subscriptions, this is the amount to pay each payment cycle and it is required. For plans that are not recurring plans, it is the single payment amount for the whole subscription. */\n price?: Money;\n /**\n * Free trial period for the plan in days. Available only for recurring plans, meaning plans whose pricing model is `subscription`. Set to `0` to remove the free trial.\n * @max 999\n */\n freeTrialDays?: number | null;\n}\n\n/** @oneof */\nexport interface PricingPricingModelOneOf {\n /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a \"Wix subscription,\" which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */\n subscription?: Recurrence;\n /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */\n singlePaymentForDuration?: Duration;\n /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */\n singlePaymentUnlimited?: boolean | null;\n}\n\n/** An object specifying how often and for how long payments recur (may be forever). */\nexport interface Recurrence {\n /**\n * Number of payment cycles the subscription is valid for.\n * `0` for unlimited plans or for plans that are valid until canceled.\n */\n cycleDuration?: Duration;\n /**\n * Length of a payment cycle. For example, 1 month to have monthly payments.\n * Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.\n * Currently, only a value of `1` is supported.\n * @max 2000\n */\n cycleCount?: number | null;\n}\n\n/** A duration expressed in number of time units. */\nexport interface Duration {\n /**\n * Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.\n * @min 1\n */\n count?: number | null;\n /** Unit of time for the cycle duration. */\n unit?: PeriodUnitWithLiterals;\n}\n\nexport enum PeriodUnit {\n /** Not defined. */\n UNDEFINED = 'UNDEFINED',\n /** Time unit is a day. */\n DAY = 'DAY',\n /** Time unit is a week. */\n WEEK = 'WEEK',\n /** Time unit is a month. */\n MONTH = 'MONTH',\n /** Time unit is a year. */\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type PeriodUnitWithLiterals =\n | PeriodUnit\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.\n * @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }\n */\n value?: string;\n /**\n * Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`.\n * @format CURRENCY\n */\n currency?: string;\n}\n\nexport interface FeeConfig {\n /** Fee configuration. */\n fee?: Fee;\n /** The time this fee will be charged. */\n appliedAt?: AppliedAtWithLiterals;\n}\n\nexport interface Fee {\n /**\n * Fee name\n * @minLength 1\n * @maxLength 40\n */\n name?: string;\n /**\n * Amount of fee to be charged\n * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }\n */\n amount?: string;\n}\n\nexport enum AppliedAt {\n UNKNOWN_CHARGE_EVENT = 'UNKNOWN_CHARGE_EVENT',\n /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */\n FIRST_PAYMENT = 'FIRST_PAYMENT',\n}\n\n/** @enumType */\nexport type AppliedAtWithLiterals =\n | AppliedAt\n | 'UNKNOWN_CHARGE_EVENT'\n | 'FIRST_PAYMENT';\n\nexport interface ListPublicPlansRequest {\n /**\n * Number of items to list. Defaults to `75`. See [limits](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#paging).\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /** Number of items to skip. Defaults to `0`. See [paging](https://dev.wix.com/docs/api-reference/articles/work-with-wix-apis/data-retrieval/about-the-wix-api-query-language#paging). */\n offset?: number | null;\n /**\n * IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.\n * @format GUID\n * @maxSize 100\n */\n planIds?: string[];\n}\n\nexport interface ListPublicPlansResponse {\n /** List of public pricing plans. */\n plans?: PublicPlan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\n/** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */\nexport interface PublicPlan {\n /**\n * Plan ID.\n * @format GUID\n */\n id?: string;\n /**\n * Plan name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string | null;\n /**\n * Plan description.\n * @maxLength 450\n */\n description?: string | null;\n /** What is included with this plan (for example, 1 weekly entrance to a specific class). */\n perks?: StringList;\n /** Plan price, payment schedule, and expiration. */\n pricing?: Pricing;\n /** Whether the plan is marked as primary. */\n primary?: boolean;\n /** Date plan was created. */\n createdDate?: Date | null;\n /** Date plan was last updated. */\n updatedDate?: Date | null;\n /**\n * URL-friendly version of plan name. Unique across all plans in the same site.\n * @minLength 1\n */\n slug?: string | null;\n /** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */\n maxPurchasesPerBuyer?: number | null;\n /** Whether the buyer can start the plan at a later date. Defaults to false. */\n allowFutureStartDate?: boolean | null;\n /** Whether the buyer is allowed to cancel their plan. Defaults to false. */\n buyerCanCancel?: boolean | null;\n /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */\n termsAndConditions?: string | null;\n /**\n * ID of the form associated with the plan at checkout.\n *\n * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).\n * @format GUID\n */\n formId?: string | null;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryPublicPlansRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 {\n /** A filter object. See [supported fields and operators](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans). */\n filter?: Record<string, any> | null;\n /** Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]. */\n sort?: Sorting[];\n /** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */\n paging?: Paging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface QueryPublicPlansResponse {\n /** List of public pricing plans that match the specified query. */\n plans?: PublicPlan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface GetPlanRequest {\n /**\n * Plan ID.\n * @format GUID\n */\n id: string;\n}\n\nexport interface GetPlanResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ListPlansRequest {\n /** Archived filter. Defaults to `ACTIVE` (not archived) only. */\n archived?: ArchivedFilterWithLiterals;\n /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */\n public?: PublicFilterWithLiterals;\n /**\n * Number of pricing plans to list. Defaults to `75`.\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /** Number of pricing plans to skip. Defaults to `0`. */\n offset?: number | null;\n /**\n * IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.\n * @format GUID\n * @maxSize 100\n */\n planIds?: string[];\n}\n\nexport enum ArchivedFilter {\n /** Returns all plans that are active. */\n ACTIVE = 'ACTIVE',\n /** Returns all plans that are archived. */\n ARCHIVED = 'ARCHIVED',\n /** Returns all plans that are active and archived. */\n ARCHIVED_AND_ACTIVE = 'ARCHIVED_AND_ACTIVE',\n}\n\n/** @enumType */\nexport type ArchivedFilterWithLiterals =\n | ArchivedFilter\n | 'ACTIVE'\n | 'ARCHIVED'\n | 'ARCHIVED_AND_ACTIVE';\n\nexport enum PublicFilter {\n /** Returns all public and hidden plans. */\n PUBLIC_AND_HIDDEN = 'PUBLIC_AND_HIDDEN',\n /** Returns only public plans. */\n PUBLIC = 'PUBLIC',\n /** Returns only hidden plans. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type PublicFilterWithLiterals =\n | PublicFilter\n | 'PUBLIC_AND_HIDDEN'\n | 'PUBLIC'\n | 'HIDDEN';\n\nexport interface ListPlansResponse {\n /** List of all public and hidden pricing plans. */\n plans?: Plan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface GetPlanStatsRequest {}\n\nexport interface GetPlanStatsResponse {\n /** Total number of plans created, including active plans (both public and hidden) and archived plans. */\n totalPlans?: number;\n}\n\nexport interface CreatePlanRequest {\n /** Plan details. */\n plan: Plan;\n}\n\nexport interface CreatePlanResponse {\n /** Created plan. */\n plan?: Plan;\n}\n\nexport interface UpdatePlanRequest {\n /** ID of the plan to update. */\n plan: Plan;\n}\n\nexport interface UpdatePlanResponse {\n /** Updated plan. */\n plan?: Plan;\n}\n\nexport interface BuyerCanCancelUpdated {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface SetPlanVisibilityRequest {\n /**\n * The ID of the plan to either display or hide on a site page.\n * @format GUID\n */\n id: string;\n /** Whether a plan is visible to members and site visitors. Updates the `public` field. */\n visible: boolean;\n}\n\nexport interface SetPlanVisibilityResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface MakePlanPrimaryRequest {\n /**\n * Pricing plan ID.\n * @format GUID\n */\n id: string;\n}\n\nexport interface MakePlanPrimaryResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ClearPrimaryRequest {}\n\nexport interface ClearPrimaryResponse {}\n\nexport interface ArchivePlanRequest {\n /**\n * ID of the active plan to archive.\n * @format GUID\n */\n id: string;\n}\n\nexport interface ArchivePlanResponse {\n /** Archived plan. */\n plan?: Plan;\n}\n\nexport interface PlanArchived {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface BulkArchivePlanRequest {\n /**\n * List of Plan IDs to archive.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n ids?: string[];\n /** Set to `true` to return the `Plan` entity in the response. */\n returnFullEntity?: boolean;\n}\n\nexport interface BulkArchivePlanResponse {\n /** Plans to be archived. */\n results?: BulkPlanResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPlanResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface ArrangePlansRequest {\n /**\n * IDs of all non-archived plans in the order you want them arranged.\n * @format GUID\n * @minSize 1\n */\n ids?: string[];\n}\n\nexport interface ArrangePlansResponse {}\n\nexport interface CountPlansRequest {\n /** The filter. */\n filter?: Record<string, any> | null;\n /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */\n visibility?: boolean | null;\n}\n\nexport interface CountPlansResponse {\n /** Number of plans in the response. */\n count?: number;\n}\n\nexport interface GetPlansPremiumStatusRequest {}\n\nexport interface GetPlansPremiumStatusResponse {\n /** True if a site has non-free, non-template plans. */\n hasPaidPlans?: boolean;\n /** True if a site has plans that were created before Pricing Plans became a premium app. */\n hasOldPlans?: boolean;\n}\n\nexport interface SearchPlansRequest {\n /** Query options. */\n query?: QueryV2;\n /**\n * Search phrase for the plan name.\n * @maxLength 50\n */\n searchPhrase?: string | null;\n}\n\nexport interface SearchPlansResponse {\n /** List of pricing plans that match the specified filter and search phrase. */\n plans?: Plan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type ListPublicPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type QueryPublicPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type QueryPublicPlansValidationErrors = {\n ruleName?: 'PAGING_LIMIT_OUT_OF_RANGE';\n};\n/** @docsIgnore */\nexport type GetPlanApplicationErrors =\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ListPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ListPlansValidationErrors =\n | {\n ruleName?: 'INVALID_ARCHIVE_FILTER';\n }\n | {\n ruleName?: 'INVALID_VISIBLE_FILTER';\n };\n/** @docsIgnore */\nexport type GetPlanStatsApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreatePlanApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreatePlanValidationErrors =\n | {\n ruleName?: 'PLAN_NAME_BLANK';\n }\n | {\n ruleName?: 'PLAN_FEE_NAME_BLANK';\n }\n | {\n ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';\n }\n | {\n ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';\n }\n | {\n ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';\n }\n | {\n ruleName?: 'invalid_duration_unit';\n }\n | {\n ruleName?: 'client_data_is_invalid';\n };\n/** @docsIgnore */\nexport type UpdatePlanApplicationErrors =\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdatePlanValidationErrors =\n | {\n ruleName?: 'MISSING_PLAN_ID';\n }\n | {\n ruleName?: 'PLAN_NAME_BLANK';\n }\n | {\n ruleName?: 'PLAN_FEE_NAME_BLANK';\n }\n | {\n ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';\n }\n | {\n ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';\n }\n | {\n ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';\n }\n | {\n ruleName?: 'INVALID_DURATION_UNIT';\n }\n | {\n ruleName?: 'update_not_supported';\n }\n | {\n ruleName?: 'invalid_period_amount';\n }\n | {\n ruleName?: 'price_missing';\n }\n | {\n ruleName?: 'duration_missing';\n }\n | {\n ruleName?: 'free_trial_not_supported';\n }\n | {\n ruleName?: 'client_data_is_invalid';\n };\n/** @docsIgnore */\nexport type SetPlanVisibilityApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'set_visibility_not_supported';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type MakePlanPrimaryApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'set_primary_not_supported';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ClearPrimaryApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ArchivePlanApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'already_archived';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixPricingPlansV2Plan from './pricing-plans-v2-plan-plans.http.js';\nimport * as ambassadorWixPricingPlansV2PlanTypes from './pricing-plans-v2-plan-plans.types.js';\nimport * as ambassadorWixPricingPlansV2PlanUniversalTypes from './pricing-plans-v2-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listPublicPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.listPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/public',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPublicPlans(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.queryPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/public/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.getPlanStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/stats',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setPlanVisibility(): __PublicMethodMetaInfo<\n 'PUT',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityResponse,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.setPlanVisibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v2/plans/{id}/visibility',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function makePlanPrimary(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.makePlanPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/make-primary',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function clearPrimary(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.clearPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/clear-primary',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archivePlan(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.archivePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/archive',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Plan as PlanOriginal,\n StringList as StringListOriginal,\n Pricing as PricingOriginal,\n PricingPricingModelOneOf as PricingPricingModelOneOfOriginal,\n Recurrence as RecurrenceOriginal,\n Duration as DurationOriginal,\n PeriodUnit as PeriodUnitOriginal,\n PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal,\n Money as MoneyOriginal,\n FeeConfig as FeeConfigOriginal,\n Fee as FeeOriginal,\n AppliedAt as AppliedAtOriginal,\n AppliedAtWithLiterals as AppliedAtWithLiteralsOriginal,\n ListPublicPlansRequest as ListPublicPlansRequestOriginal,\n ListPublicPlansResponse as ListPublicPlansResponseOriginal,\n PublicPlan as PublicPlanOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n QueryPublicPlansRequest as QueryPublicPlansRequestOriginal,\n QueryV2 as QueryV2Original,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n QueryPublicPlansResponse as QueryPublicPlansResponseOriginal,\n GetPlanRequest as GetPlanRequestOriginal,\n GetPlanResponse as GetPlanResponseOriginal,\n ListPlansRequest as ListPlansRequestOriginal,\n ArchivedFilter as ArchivedFilterOriginal,\n ArchivedFilterWithLiterals as ArchivedFilterWithLiteralsOriginal,\n PublicFilter as PublicFilterOriginal,\n PublicFilterWithLiterals as PublicFilterWithLiteralsOriginal,\n ListPlansResponse as ListPlansResponseOriginal,\n GetPlanStatsRequest as GetPlanStatsRequestOriginal,\n GetPlanStatsResponse as GetPlanStatsResponseOriginal,\n CreatePlanRequest as CreatePlanRequestOriginal,\n CreatePlanResponse as CreatePlanResponseOriginal,\n UpdatePlanRequest as UpdatePlanRequestOriginal,\n UpdatePlanResponse as UpdatePlanResponseOriginal,\n BuyerCanCancelUpdated as BuyerCanCancelUpdatedOriginal,\n SetPlanVisibilityRequest as SetPlanVisibilityRequestOriginal,\n SetPlanVisibilityResponse as SetPlanVisibilityResponseOriginal,\n MakePlanPrimaryRequest as MakePlanPrimaryRequestOriginal,\n MakePlanPrimaryResponse as MakePlanPrimaryResponseOriginal,\n ClearPrimaryRequest as ClearPrimaryRequestOriginal,\n ClearPrimaryResponse as ClearPrimaryResponseOriginal,\n ArchivePlanRequest as ArchivePlanRequestOriginal,\n ArchivePlanResponse as ArchivePlanResponseOriginal,\n PlanArchived as PlanArchivedOriginal,\n BulkArchivePlanRequest as BulkArchivePlanRequestOriginal,\n BulkArchivePlanResponse as BulkArchivePlanResponseOriginal,\n BulkPlanResult as BulkPlanResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n ArrangePlansRequest as ArrangePlansRequestOriginal,\n ArrangePlansResponse as ArrangePlansResponseOriginal,\n CountPlansRequest as CountPlansRequestOriginal,\n CountPlansResponse as CountPlansResponseOriginal,\n GetPlansPremiumStatusRequest as GetPlansPremiumStatusRequestOriginal,\n GetPlansPremiumStatusResponse as GetPlansPremiumStatusResponseOriginal,\n SearchPlansRequest as SearchPlansRequestOriginal,\n SearchPlansResponse as SearchPlansResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n ListPublicPlansApplicationErrors as ListPublicPlansApplicationErrorsOriginal,\n QueryPublicPlansApplicationErrors as QueryPublicPlansApplicationErrorsOriginal,\n QueryPublicPlansValidationErrors as QueryPublicPlansValidationErrorsOriginal,\n GetPlanApplicationErrors as GetPlanApplicationErrorsOriginal,\n ListPlansApplicationErrors as ListPlansApplicationErrorsOriginal,\n ListPlansValidationErrors as ListPlansValidationErrorsOriginal,\n GetPlanStatsApplicationErrors as GetPlanStatsApplicationErrorsOriginal,\n CreatePlanApplicationErrors as CreatePlanApplicationErrorsOriginal,\n CreatePlanValidationErrors as CreatePlanValidationErrorsOriginal,\n UpdatePlanApplicationErrors as UpdatePlanApplicationErrorsOriginal,\n UpdatePlanValidationErrors as UpdatePlanValidationErrorsOriginal,\n SetPlanVisibilityApplicationErrors as SetPlanVisibilityApplicationErrorsOriginal,\n MakePlanPrimaryApplicationErrors as MakePlanPrimaryApplicationErrorsOriginal,\n ClearPrimaryApplicationErrors as ClearPrimaryApplicationErrorsOriginal,\n ArchivePlanApplicationErrors as ArchivePlanApplicationErrorsOriginal,\n} from './pricing-pl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AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,YAAY,OAAO;AAErD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","PeriodUnit","AppliedAt","SortOrder","ArchivedFilter","PublicFilter","WebhookIdentityType","listPublicPlans","queryPublicPlans","getPlan","listPlans","getPlanStats","createPlan","updatePlan","setPlanVisibility","makePlanPrimary","clearPrimary","archivePlan"]}
|
|
1
|
+
{"version":3,"sources":["../../src/pricing-plans-v2-plan-plans.http.ts","../../src/pricing-plans-v2-plan-plans.types.ts","../../src/pricing-plans-v2-plan-plans.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressMembershipV2PlansPlansServiceV2Url(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/plan-proxy',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.pub.wix-code.com': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n '*.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n _: [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor-flow.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'forums.wixapps.net': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n {\n srcPath: '/_api/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/paid-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/v2/plans',\n destPath: '/v2/plans',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_plans';\n\n/**\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function listPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __listPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPublicPlans;\n}\n\n/**\n * Creates a query to retrieve a list of public pricing plans.\n *\n *\n * The `queryPublicPlans()` method builds a query to retrieve a list of up to 1,000 public plans and returns a [`PublicPlansQueryBuilder`](#plansquerybuilder) object.\n *\n * The returned object contains the query definition which is typically used to run the query using the [`find()`](#plansquerybuilder/find) method.\n *\n * You can refine the query by chaining `PublicPlansQueryBuilder` methods onto the query. `PublicPlansQueryBuilder` methods enable you to sort, filter, and control the results that `queryPublicPlans()` returns.\n *\n * `queryPublicPlans()` runs with the following `PublicPlansQueryBuilder` defaults that you can override:\n * - [`skip`](#plansquerybuilder/skip): `0`\n * - [`limit`](#plansquerybuilder/limit): `50`\n *\n * 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.\n *\n * 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).\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.QueryPlans(), and will be removed on 2025-12-31.\n */\nexport function queryPublicPlans(payload: object): RequestOptionsFactory<any> {\n function __queryPublicPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/public/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPublicPlans;\n}\n\n/**\n * Retrieves a pricing plan by ID.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.GetPlan(), and will be removed on 2025-12-31.\n */\nexport function getPlan(payload: object): RequestOptionsFactory<any> {\n function __getPlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPlan;\n}\n\n/**\n * Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.SearchPlans(), and will be removed on 2025-12-31.\n */\nexport function listPlans(payload: object): RequestOptionsFactory<any> {\n function __listPlans({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'plans.createdDate' },\n { path: 'plans.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listPlans;\n}\n\n/**\n * Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CountPlans(), and will be removed on 2025-12-31.\n */\nexport function getPlanStats(payload: object): RequestOptionsFactory<any> {\n function __getPlanStats({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'GET' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/stats',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getPlanStats;\n}\n\n/**\n * Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following:\n * - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days.\n * - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew.\n * - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled).\n * Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.CreatePlan(), and will be removed on 2025-12-31.\n */\nexport function createPlan(payload: object): RequestOptionsFactory<any> {\n function __createPlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createPlan;\n}\n\n/**\n * Updates a pricing plan.\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function updatePlan(payload: object): RequestOptionsFactory<any> {\n function __updatePlan({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PATCH' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{plan.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePlan;\n}\n\n/**\n * Sets visibility for pricing plans. Visible plans are considered public plans.\n * By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them.\n * 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.)\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function setPlanVisibility(payload: object): RequestOptionsFactory<any> {\n function __setPlanVisibility({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'PUT' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/visibility',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __setPlanVisibility;\n}\n\n/**\n * 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.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function makePlanPrimary(payload: object): RequestOptionsFactory<any> {\n function __makePlanPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn:\n 'com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/make-primary',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __makePlanPrimary;\n}\n\n/**\n * Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.BulkUpdatePlans(), and will be removed on 2025-12-31.\n */\nexport function clearPrimary(payload: object): RequestOptionsFactory<any> {\n function __clearPrimary({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/clear-primary',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __clearPrimary;\n}\n\n/**\n * Archives a single plan.\n * When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors.\n * This is because the plan's `public` property is automatically set to `false`.\n * Archived plans can't be purchased or reactivated.\n * 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.\n * Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**.\n * > **Note:** An attempt to archive an already-archived plan throws an error.\n * @deprecated It has been replaced with wix.pricing_plans.plans.v3.PlanService.UpdatePlan(), and will be removed on 2025-12-31.\n */\nexport function archivePlan(payload: object): RequestOptionsFactory<any> {\n function __archivePlan({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.v2.plan',\n method: 'POST' as any,\n methodFqn: 'com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixpressMembershipV2PlansPlansServiceV2Url({\n protoPath: '/v2/plans/{id}/archive',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'plan.createdDate' }, { path: 'plan.updatedDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __archivePlan;\n}\n","/** Information about the pricing plan. */\nexport interface Plan {\n /**\n * Plan ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Plan name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string | null;\n /**\n * Plan description.\n * @maxLength 450\n */\n description?: string | null;\n /** List of text strings that promote what is included with this plan. For example, \"Plenty of parking\" or \"Free gift on your birthday.\" */\n perks?: StringList;\n /** Plan price, payment schedule, and expiration. */\n pricing?: Pricing;\n /** Whether the plan is public (visible to site visitors and members). */\n public?: boolean | null;\n /**\n * Whether the plan is archived. Archived plans are not visible and can't be purchased anymore, but existing purchases remain in effect.\n * @readonly\n */\n archived?: boolean;\n /**\n * Whether the plan is marked as primary.\n * @readonly\n */\n primary?: boolean;\n /**\n * Whether the plan has any orders (including pending and unpaid orders).\n * @readonly\n */\n hasOrders?: boolean;\n /**\n * Date plan was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date plan was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * URL-friendly version of plan name. Unique across all plans in the same site.\n * @minLength 1\n * @readonly\n * @format URL_SLUG\n */\n slug?: string | null;\n /**\n * Number of times the same buyer can purchase the plan. Currently limited to support:\n * - Empty value or a value of `0`, meaning no limitation.\n * - Value of `1`, meaning limited to 1 purchase per buyer.\n * @max 1\n */\n maxPurchasesPerBuyer?: number | null;\n /** Whether the buyer can start the plan at a later date. Defaults to false. */\n allowFutureStartDate?: boolean | null;\n /**\n * Whether the buyer is allowed to cancel their plan. Defaults to false.\n * If false, calling Request Cancellation returns an error.\n */\n buyerCanCancel?: boolean | null;\n /**\n * Any terms and conditions that apply to the plan. This information is displayed during checkout.\n * @maxLength 3000\n */\n termsAndConditions?: string | null;\n /**\n * ID of the form associated with the plan at checkout.\n *\n * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).\n * @format GUID\n */\n formId?: string | null;\n}\n\n/** This wrapper type exists to distinguish an empty string list from no list at all in update requests. */\nexport interface StringList {\n /**\n * @minLength 1\n * @maxLength 1400\n * @maxSize 500\n */\n values?: string[];\n}\n\n/** Plan pricing information. Includes the price of the plan and payment details. */\nexport interface Pricing extends PricingPricingModelOneOf {\n /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a \"Wix subscription,\" which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */\n subscription?: Recurrence;\n /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */\n singlePaymentForDuration?: Duration;\n /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */\n singlePaymentUnlimited?: boolean | null;\n /** Amount for a single payment. For subscriptions, this is the amount to pay each payment cycle and it is required. For plans that are not recurring plans, it is the single payment amount for the whole subscription. */\n price?: Money;\n /**\n * Free trial period for the plan in days. Available only for recurring plans, meaning plans whose pricing model is `subscription`. Set to `0` to remove the free trial.\n * @max 999\n */\n freeTrialDays?: number | null;\n}\n\n/** @oneof */\nexport interface PricingPricingModelOneOf {\n /** Pricing model indicating that the plan has recurring payments. This type of subscription is not a \"Wix subscription,\" which encompasses various types of subscriptions, such as Wix Stores subscriptions, Wix invoice subscriptions, and all pricing plan models. */\n subscription?: Recurrence;\n /** Pricing model indicating a single payment per cycle and the length of the cycle. The cycle is the duration of the plan, not a payment cycle. */\n singlePaymentForDuration?: Duration;\n /** Pricing model indicating the plan is paid in a single payment. The plan is valid until canceled. */\n singlePaymentUnlimited?: boolean | null;\n}\n\n/** An object specifying how often and for how long payments recur (may be forever). */\nexport interface Recurrence {\n /**\n * Number of payment cycles the subscription is valid for.\n * `0` for unlimited plans or for plans that are valid until canceled.\n */\n cycleDuration?: Duration;\n /**\n * Length of a payment cycle. For example, 1 month to have monthly payments.\n * Multiply `cycleDuration`'s `count` by `cycleCount` to get the subscription duration.\n * Currently, only a value of `1` is supported.\n * @max 2000\n */\n cycleCount?: number | null;\n}\n\n/** A duration expressed in number of time units. */\nexport interface Duration {\n /**\n * Number of days, months, weeks, or years in a single payment cycle. Currently limited to support only `1`.\n * @min 1\n */\n count?: number | null;\n /** Unit of time for the cycle duration. */\n unit?: PeriodUnitWithLiterals;\n}\n\nexport enum PeriodUnit {\n /** Not defined. */\n UNDEFINED = 'UNDEFINED',\n /** Time unit is a day. */\n DAY = 'DAY',\n /** Time unit is a week. */\n WEEK = 'WEEK',\n /** Time unit is a month. */\n MONTH = 'MONTH',\n /** Time unit is a year. */\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type PeriodUnitWithLiterals =\n | PeriodUnit\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface Money {\n /**\n * Monetary amount. Decimal string with a period as a decimal separator. For example, `'3.99'`. Can't be negative.\n * @decimalValue options { lt:1000000000000, gte:0.000, maxScale:3 }\n */\n value?: string;\n /**\n * Currency code. Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `'USD'`.\n * @format CURRENCY\n */\n currency?: string;\n}\n\nexport interface FeeConfig {\n /** Fee configuration. */\n fee?: Fee;\n /** The time this fee will be charged. */\n appliedAt?: AppliedAtWithLiterals;\n}\n\nexport interface Fee {\n /**\n * Fee name\n * @minLength 1\n * @maxLength 40\n */\n name?: string;\n /**\n * Amount of fee to be charged\n * @decimalValue options { lt:1000000000000, gt:0.000, maxScale:3 }\n */\n amount?: string;\n}\n\nexport enum AppliedAt {\n UNKNOWN_CHARGE_EVENT = 'UNKNOWN_CHARGE_EVENT',\n /** Will charge the fee on the first payment. If the order has a free trial, it will charge after the free trial. */\n FIRST_PAYMENT = 'FIRST_PAYMENT',\n}\n\n/** @enumType */\nexport type AppliedAtWithLiterals =\n | AppliedAt\n | 'UNKNOWN_CHARGE_EVENT'\n | 'FIRST_PAYMENT';\n\nexport interface ListPublicPlansRequest {\n /**\n * Number of items to list. Defaults to `75`. See limits ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) | [REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)).\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /** Number of items to skip. Defaults to `0`. See paging ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/list-public-plans) |[REST](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#paging)). */\n offset?: number | null;\n /**\n * IDs of plans to list. Non-existent IDs are ignored and don't cause errors. You can specify a maximum of 100 IDs.\n * @format GUID\n * @maxSize 100\n */\n planIds?: string[];\n}\n\nexport interface ListPublicPlansResponse {\n /** List of public pricing plans. */\n plans?: PublicPlan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\n/** Public plan entity containing information about the pricing plan. Can be read by any site member or visitor. */\nexport interface PublicPlan {\n /**\n * Plan ID.\n * @format GUID\n */\n id?: string;\n /**\n * Plan name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string | null;\n /**\n * Plan description.\n * @maxLength 450\n */\n description?: string | null;\n /** What is included with this plan (for example, 1 weekly entrance to a specific class). */\n perks?: StringList;\n /** Plan price, payment schedule, and expiration. */\n pricing?: Pricing;\n /** Whether the plan is marked as primary. */\n primary?: boolean;\n /** Date plan was created. */\n createdDate?: Date | null;\n /** Date plan was last updated. */\n updatedDate?: Date | null;\n /**\n * URL-friendly version of plan name. Unique across all plans in the same site.\n * @minLength 1\n */\n slug?: string | null;\n /** Number of times the same buyer can purchase the plan. An empty value or a value of 0 means no limitation. */\n maxPurchasesPerBuyer?: number | null;\n /** Whether the buyer can start the plan at a later date. Defaults to false. */\n allowFutureStartDate?: boolean | null;\n /** Whether the buyer is allowed to cancel their plan. Defaults to false. */\n buyerCanCancel?: boolean | null;\n /** Any terms and conditions that apply to the plan. This information is displayed during checkout. */\n termsAndConditions?: string | null;\n /**\n * ID of the form associated with the plan at checkout.\n *\n * Learn more about [forms](https://support.wix.com/en/article/wix-forms-an-overview).\n * @format GUID\n */\n formId?: string | null;\n}\n\nexport interface PagingMetadataV2 {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n cursors?: Cursors;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface QueryPublicPlansRequest {\n /** Query options. */\n query?: QueryV2;\n}\n\nexport interface QueryV2 {\n /** A filter object. See supported fields and operators ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/query-public-plans) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/filter-and-sort#wix-pricing-plans_pricing-plans_plans_filter-and-sort_query-public-plans)). */\n filter?: Record<string, any> | null;\n /** Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]. */\n sort?: Sorting[];\n /** Pointer to page of results using offset. Can't be used together with 'cursorPaging'. */\n paging?: Paging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface QueryPublicPlansResponse {\n /** List of public pricing plans that match the specified query. */\n plans?: PublicPlan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface GetPlanRequest {\n /**\n * Plan ID.\n * @format GUID\n */\n id: string;\n}\n\nexport interface GetPlanResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ListPlansRequest {\n /** Archived filter. Defaults to `ACTIVE` (not archived) only. */\n archived?: ArchivedFilterWithLiterals;\n /** Visibility filter. Defaults to `PUBLIC_AND_HIDDEN` (meaning, both are listed). */\n public?: PublicFilterWithLiterals;\n /**\n * Number of pricing plans to list. Defaults to `75`.\n * @min 1\n * @max 100\n */\n limit?: number | null;\n /** Number of pricing plans to skip. Defaults to `0`. */\n offset?: number | null;\n /**\n * IDs of plans to list. If non-existent IDs are specified, they are ignored and don't cause errors. If no IDs are specified, all public and hidden plans are listed according to the order displayed in a site's dashboard (which you can set with Arrange Plans). You can specify a maximum of 100 IDs.\n * @format GUID\n * @maxSize 100\n */\n planIds?: string[];\n}\n\nexport enum ArchivedFilter {\n /** Returns all plans that are active. */\n ACTIVE = 'ACTIVE',\n /** Returns all plans that are archived. */\n ARCHIVED = 'ARCHIVED',\n /** Returns all plans that are active and archived. */\n ARCHIVED_AND_ACTIVE = 'ARCHIVED_AND_ACTIVE',\n}\n\n/** @enumType */\nexport type ArchivedFilterWithLiterals =\n | ArchivedFilter\n | 'ACTIVE'\n | 'ARCHIVED'\n | 'ARCHIVED_AND_ACTIVE';\n\nexport enum PublicFilter {\n /** Returns all public and hidden plans. */\n PUBLIC_AND_HIDDEN = 'PUBLIC_AND_HIDDEN',\n /** Returns only public plans. */\n PUBLIC = 'PUBLIC',\n /** Returns only hidden plans. */\n HIDDEN = 'HIDDEN',\n}\n\n/** @enumType */\nexport type PublicFilterWithLiterals =\n | PublicFilter\n | 'PUBLIC_AND_HIDDEN'\n | 'PUBLIC'\n | 'HIDDEN';\n\nexport interface ListPlansResponse {\n /** List of all public and hidden pricing plans. */\n plans?: Plan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface GetPlanStatsRequest {}\n\nexport interface GetPlanStatsResponse {\n /** Total number of plans created, including active plans (both public and hidden) and archived plans. */\n totalPlans?: number;\n}\n\nexport interface CreatePlanRequest {\n /** Plan details. */\n plan: Plan;\n}\n\nexport interface CreatePlanResponse {\n /** Created plan. */\n plan?: Plan;\n}\n\nexport interface UpdatePlanRequest {\n /** ID of the plan to update. */\n plan: Plan;\n}\n\nexport interface UpdatePlanResponse {\n /** Updated plan. */\n plan?: Plan;\n}\n\nexport interface BuyerCanCancelUpdated {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface SetPlanVisibilityRequest {\n /**\n * The ID of the plan to either display or hide on a site page.\n * @format GUID\n */\n id: string;\n /** Whether a plan is visible to members and site visitors. Updates the `public` field. */\n visible: boolean;\n}\n\nexport interface SetPlanVisibilityResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface MakePlanPrimaryRequest {\n /**\n * Pricing plan ID.\n * @format GUID\n */\n id: string;\n}\n\nexport interface MakePlanPrimaryResponse {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ClearPrimaryRequest {}\n\nexport interface ClearPrimaryResponse {}\n\nexport interface ArchivePlanRequest {\n /**\n * ID of the active plan to archive.\n * @format GUID\n */\n id: string;\n}\n\nexport interface ArchivePlanResponse {\n /** Archived plan. */\n plan?: Plan;\n}\n\nexport interface PlanArchived {\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface BulkArchivePlanRequest {\n /**\n * List of Plan IDs to archive.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n ids?: string[];\n /** Set to `true` to return the `Plan` entity in the response. */\n returnFullEntity?: boolean;\n}\n\nexport interface BulkArchivePlanResponse {\n /** Plans to be archived. */\n results?: BulkPlanResult[];\n /** Bulk action metadata. */\n bulkActionMetadata?: BulkActionMetadata;\n}\n\nexport interface BulkPlanResult {\n /** Item metadata. */\n itemMetadata?: ItemMetadata;\n /** Pricing plan. */\n plan?: Plan;\n}\n\nexport interface ItemMetadata {\n /** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */\n id?: string | null;\n /** Index of the item within the request array. Allows for correlation between request and response items. */\n originalIndex?: number;\n /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */\n success?: boolean;\n /** Details about the error in case of failure. */\n error?: ApplicationError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\nexport interface BulkActionMetadata {\n /** Number of items that were successfully processed. */\n totalSuccesses?: number;\n /** Number of items that couldn't be processed. */\n totalFailures?: number;\n /** Number of failures without details because detailed failure threshold was exceeded. */\n undetailedFailures?: number;\n}\n\nexport interface ArrangePlansRequest {\n /**\n * IDs of all non-archived plans in the order you want them arranged.\n * @format GUID\n * @minSize 1\n */\n ids?: string[];\n}\n\nexport interface ArrangePlansResponse {}\n\nexport interface CountPlansRequest {\n /** The filter. */\n filter?: Record<string, any> | null;\n /** If true, counts only visible plans (visible and not archived). If no value is specified, all plans are counted. */\n visibility?: boolean | null;\n}\n\nexport interface CountPlansResponse {\n /** Number of plans in the response. */\n count?: number;\n}\n\nexport interface GetPlansPremiumStatusRequest {}\n\nexport interface GetPlansPremiumStatusResponse {\n /** True if a site has non-free, non-template plans. */\n hasPaidPlans?: boolean;\n /** True if a site has plans that were created before Pricing Plans became a premium app. */\n hasOldPlans?: boolean;\n}\n\nexport interface SearchPlansRequest {\n /** Query options. */\n query?: QueryV2;\n /**\n * Search phrase for the plan name.\n * @maxLength 50\n */\n searchPhrase?: string | null;\n}\n\nexport interface SearchPlansResponse {\n /** List of pricing plans that match the specified filter and search phrase. */\n plans?: Plan[];\n /** Object containing paging-related data (such as the number of plans returned, the offset, and so on). */\n pagingMetadata?: PagingMetadataV2;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n/** @docsIgnore */\nexport type ListPublicPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type QueryPublicPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type QueryPublicPlansValidationErrors = {\n ruleName?: 'PAGING_LIMIT_OUT_OF_RANGE';\n};\n/** @docsIgnore */\nexport type GetPlanApplicationErrors =\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ListPlansApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ListPlansValidationErrors =\n | {\n ruleName?: 'INVALID_ARCHIVE_FILTER';\n }\n | {\n ruleName?: 'INVALID_VISIBLE_FILTER';\n };\n/** @docsIgnore */\nexport type GetPlanStatsApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreatePlanApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreatePlanValidationErrors =\n | {\n ruleName?: 'PLAN_NAME_BLANK';\n }\n | {\n ruleName?: 'PLAN_FEE_NAME_BLANK';\n }\n | {\n ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';\n }\n | {\n ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';\n }\n | {\n ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';\n }\n | {\n ruleName?: 'invalid_duration_unit';\n }\n | {\n ruleName?: 'client_data_is_invalid';\n };\n/** @docsIgnore */\nexport type UpdatePlanApplicationErrors =\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdatePlanValidationErrors =\n | {\n ruleName?: 'MISSING_PLAN_ID';\n }\n | {\n ruleName?: 'PLAN_NAME_BLANK';\n }\n | {\n ruleName?: 'PLAN_FEE_NAME_BLANK';\n }\n | {\n ruleName?: 'PERIOD_AMOUNT_OUT_OF_RANGE';\n }\n | {\n ruleName?: 'RECURRING_PLAN_PAYMENT_PRICE_MISSING';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_DURATION_TOO_SHORT';\n }\n | {\n ruleName?: 'RECURRING_PLAN_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_CYCLE_COUNT_INVALID';\n }\n | {\n ruleName?: 'SINGLE_PAYMENT_FREE_TRIAL_UNSUPPORTED';\n }\n | {\n ruleName?: 'INVALID_SINGLE_PAYMENT_WITHOUT_DURATION';\n }\n | {\n ruleName?: 'INVALID_DURATION_UNIT';\n }\n | {\n ruleName?: 'update_not_supported';\n }\n | {\n ruleName?: 'invalid_period_amount';\n }\n | {\n ruleName?: 'price_missing';\n }\n | {\n ruleName?: 'duration_missing';\n }\n | {\n ruleName?: 'free_trial_not_supported';\n }\n | {\n ruleName?: 'client_data_is_invalid';\n };\n/** @docsIgnore */\nexport type SetPlanVisibilityApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'set_visibility_not_supported';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type MakePlanPrimaryApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'set_primary_not_supported';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type ClearPrimaryApplicationErrors = {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ArchivePlanApplicationErrors =\n | {\n code?: 'PRICING_PLANS_NOT_INSTALLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'plan_not_found';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'already_archived';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixPricingPlansV2Plan from './pricing-plans-v2-plan-plans.http.js';\nimport * as ambassadorWixPricingPlansV2PlanTypes from './pricing-plans-v2-plan-plans.types.js';\nimport * as ambassadorWixPricingPlansV2PlanUniversalTypes from './pricing-plans-v2-plan-plans.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function listPublicPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.listPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/public',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryPublicPlans(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.QueryPublicPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.QueryPublicPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.queryPublicPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/public/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlan(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.getPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/{id}',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function listPlans(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ListPlansResponse,\n ambassadorWixPricingPlansV2PlanTypes.ListPlansResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.listPlans(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getPlanStats(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.GetPlanStatsResponse,\n ambassadorWixPricingPlansV2PlanTypes.GetPlanStatsResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.getPlanStats(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/plans/stats',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createPlan(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.CreatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.CreatePlanResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.createPlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updatePlan(): __PublicMethodMetaInfo<\n 'PATCH',\n { planId: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.UpdatePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.UpdatePlanResponse\n> {\n const payload = { plan: { id: ':planId' } } as any;\n\n const getRequestOptions = ambassadorWixPricingPlansV2Plan.updatePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/plans/{plan.id}',\n pathParams: { planId: 'planId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setPlanVisibility(): __PublicMethodMetaInfo<\n 'PUT',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.SetPlanVisibilityResponse,\n ambassadorWixPricingPlansV2PlanTypes.SetPlanVisibilityResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.setPlanVisibility(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v2/plans/{id}/visibility',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function makePlanPrimary(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.MakePlanPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.MakePlanPrimaryResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.makePlanPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/make-primary',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function clearPrimary(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ClearPrimaryResponse,\n ambassadorWixPricingPlansV2PlanTypes.ClearPrimaryResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.clearPrimary(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/clear-primary',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function archivePlan(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanRequest,\n ambassadorWixPricingPlansV2PlanUniversalTypes.ArchivePlanResponse,\n ambassadorWixPricingPlansV2PlanTypes.ArchivePlanResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixPricingPlansV2Plan.archivePlan(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/plans/{id}/archive',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Plan as PlanOriginal,\n StringList as StringListOriginal,\n Pricing as PricingOriginal,\n PricingPricingModelOneOf as PricingPricingModelOneOfOriginal,\n Recurrence as RecurrenceOriginal,\n Duration as DurationOriginal,\n PeriodUnit as PeriodUnitOriginal,\n PeriodUnitWithLiterals as PeriodUnitWithLiteralsOriginal,\n Money as MoneyOriginal,\n FeeConfig as FeeConfigOriginal,\n Fee as FeeOriginal,\n AppliedAt as AppliedAtOriginal,\n AppliedAtWithLiterals as AppliedAtWithLiteralsOriginal,\n ListPublicPlansRequest as ListPublicPlansRequestOriginal,\n ListPublicPlansResponse as ListPublicPlansResponseOriginal,\n PublicPlan as PublicPlanOriginal,\n PagingMetadataV2 as PagingMetadataV2Original,\n Cursors as CursorsOriginal,\n QueryPublicPlansRequest as QueryPublicPlansRequestOriginal,\n QueryV2 as QueryV2Original,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n Paging as PagingOriginal,\n QueryPublicPlansResponse as QueryPublicPlansResponseOriginal,\n GetPlanRequest as GetPlanRequestOriginal,\n GetPlanResponse as GetPlanResponseOriginal,\n ListPlansRequest as ListPlansRequestOriginal,\n ArchivedFilter as ArchivedFilterOriginal,\n ArchivedFilterWithLiterals as ArchivedFilterWithLiteralsOriginal,\n PublicFilter as PublicFilterOriginal,\n PublicFilterWithLiterals as PublicFilterWithLiteralsOriginal,\n ListPlansResponse as ListPlansResponseOriginal,\n GetPlanStatsRequest as GetPlanStatsRequestOriginal,\n GetPlanStatsResponse as GetPlanStatsResponseOriginal,\n CreatePlanRequest as CreatePlanRequestOriginal,\n CreatePlanResponse as CreatePlanResponseOriginal,\n UpdatePlanRequest as UpdatePlanRequestOriginal,\n UpdatePlanResponse as UpdatePlanResponseOriginal,\n BuyerCanCancelUpdated as BuyerCanCancelUpdatedOriginal,\n SetPlanVisibilityRequest as SetPlanVisibilityRequestOriginal,\n SetPlanVisibilityResponse as SetPlanVisibilityResponseOriginal,\n MakePlanPrimaryRequest as MakePlanPrimaryRequestOriginal,\n MakePlanPrimaryResponse as MakePlanPrimaryResponseOriginal,\n ClearPrimaryRequest as ClearPrimaryRequestOriginal,\n ClearPrimaryResponse as ClearPrimaryResponseOriginal,\n ArchivePlanRequest as ArchivePlanRequestOriginal,\n ArchivePlanResponse as ArchivePlanResponseOriginal,\n PlanArchived as PlanArchivedOriginal,\n BulkArchivePlanRequest as BulkArchivePlanRequestOriginal,\n BulkArchivePlanResponse as BulkArchivePlanResponseOriginal,\n BulkPlanResult as BulkPlanResultOriginal,\n ItemMetadata as ItemMetadataOriginal,\n ApplicationError as ApplicationErrorOriginal,\n BulkActionMetadata as BulkActionMetadataOriginal,\n ArrangePlansRequest as ArrangePlansRequestOriginal,\n ArrangePlansResponse as ArrangePlansResponseOriginal,\n CountPlansRequest as CountPlansRequestOriginal,\n CountPlansResponse as CountPlansResponseOriginal,\n GetPlansPremiumStatusRequest as GetPlansPremiumStatusRequestOriginal,\n GetPlansPremiumStatusResponse as GetPlansPremiumStatusResponseOriginal,\n SearchPlansRequest as SearchPlansRequestOriginal,\n SearchPlansResponse as SearchPlansResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n ListPublicPlansApplicationErrors as ListPublicPlansApplicationErrorsOriginal,\n QueryPublicPlansApplicationErrors as QueryPublicPlansApplicationErrorsOriginal,\n QueryPublicPlansValidationErrors as QueryPublicPlansValidationErrorsOriginal,\n GetPlanApplicationErrors as GetPlanApplicationErrorsOriginal,\n ListPlansApplicationErrors as ListPlansApplicationErrorsOriginal,\n ListPlansValidationErrors as ListPlansValidationErrorsOriginal,\n GetPlanStatsApplicationErrors as GetPlanStatsApplicationErrorsOriginal,\n CreatePlanApplicationErrors as CreatePlanApplicationErrorsOriginal,\n CreatePlanValidationErrors as CreatePlanValidationErrorsOriginal,\n UpdatePlanApplicationErrors as UpdatePlanApplicationErrorsOriginal,\n UpdatePlanValidationErrors as UpdatePlanValidationErrorsOriginal,\n SetPlanVisibilityApplicationErrors as SetPlanVisibilityApplicationErrorsOriginal,\n MakePlanPrimaryApplicationErrors as MakePlanPrimaryApplicationErrorsOriginal,\n ClearPrimaryApplicationErrors as ClearPrimaryApplicationErrorsOriginal,\n ArchivePlanApplicationErrors as ArchivePlanApplicationErrorsOriginal,\n} from './pricing-plans-v2-plan-plans.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AAC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AAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","PeriodUnit","AppliedAt","SortOrder","ArchivedFilter","PublicFilter","WebhookIdentityType","listPublicPlans","queryPublicPlans","getPlan","listPlans","getPlanStats","createPlan","updatePlan","setPlanVisibility","makePlanPrimary","clearPrimary","archivePlan"]}
|