@wix/auto_sdk_pricing-plans_pricing-plans-settings 1.0.13 → 1.0.14
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 +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +3 -2
- package/build/cjs/index.typings.js +1 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -2
- package/build/cjs/meta.js +1 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +3 -2
- package/build/es/index.typings.mjs +1 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -2
- package/build/es/meta.mjs +1 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +3 -2
- package/build/internal/cjs/index.typings.js +1 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -2
- package/build/internal/cjs/meta.js +1 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +3 -2
- package/build/internal/es/index.typings.mjs +1 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -2
- package/build/internal/es/meta.mjs +1 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../index.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.public.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.context.ts"],"sourcesContent":["export * from './src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\n\nexport interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /**\n * Platform fee percentage rate based on premium plan\n * @decimalValue options { gte:0, maxScale:2 }\n * @readonly\n */\n platformFeeRate?: string | null;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 1000\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Reset date of the quota.\n * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.\n */\n resetDate?: Date | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface Empty {}\n\nexport interface SubscriptionEvent extends SubscriptionEventEventOneOf {\n /** Triggered when a subscription is created. */\n created?: SubscriptionCreated;\n /**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\n assigned?: SubscriptionAssigned;\n /** Triggered when a subscription is canceled. */\n cancelled?: SubscriptionCancelled;\n /** Triggered when the subscription's auto renew is turned on. */\n autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;\n /** Triggered when the subscription's auto renew is turned off. */\n autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;\n /**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\n unassigned?: SubscriptionUnassigned;\n /**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\n transferred?: SubscriptionTransferred;\n /** Triggered when a recurring charge succeeds for a subscription. */\n recurringChargeSucceeded?: RecurringChargeSucceeded;\n /**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\n contractSwitched?: ContractSwitched;\n /**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\n nearEndOfPeriod?: SubscriptionNearEndOfPeriod;\n /**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\n pendingChange?: SubscriptionPendingChange;\n /** Triggered when a recurring charge attempt fails for a subscription. */\n recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;\n /**\n * ID of the subscription's event.\n * @format GUID\n */\n eventId?: string | null;\n /**\n * Date and time of the event in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n eventDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SubscriptionEventEventOneOf {\n /** Triggered when a subscription is created. */\n created?: SubscriptionCreated;\n /**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\n assigned?: SubscriptionAssigned;\n /** Triggered when a subscription is canceled. */\n cancelled?: SubscriptionCancelled;\n /** Triggered when the subscription's auto renew is turned on. */\n autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;\n /** Triggered when the subscription's auto renew is turned off. */\n autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;\n /**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\n unassigned?: SubscriptionUnassigned;\n /**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\n transferred?: SubscriptionTransferred;\n /** Triggered when a recurring charge succeeds for a subscription. */\n recurringChargeSucceeded?: RecurringChargeSucceeded;\n /**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\n contractSwitched?: ContractSwitched;\n /**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\n nearEndOfPeriod?: SubscriptionNearEndOfPeriod;\n /**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\n pendingChange?: SubscriptionPendingChange;\n /** Triggered when a recurring charge attempt fails for a subscription. */\n recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;\n}\n\n/** Triggered when a subscription is created. */\nexport interface SubscriptionCreated {\n /** Created subscription. */\n subscription?: Subscription;\n /** Metadata for the `created` event. */\n metadata?: Record<string, string>;\n /**\n * Subscription reactivation data.\n * A subscription can be reactivated for example if it was incorrectly canceled because of fraud and then reactivated\n * by the billing system\n */\n reactivationData?: ReactivationData;\n}\n\n/**\n * A subscription holds information about a Premium product that a Wix account\n * owner has purchased including details about the billing.\n */\nexport interface Subscription {\n /**\n * ID of the subscription.\n * @format GUID\n */\n _id?: string;\n /**\n * ID of the Wix account that purchased the subscription.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)\n * for which the subscription was purchased.\n * @format GUID\n */\n productId?: string;\n /**\n * Date and time the subscription was created in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n createdAt?: Date | null;\n /**\n * Date and time the subscription was last updated in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n updatedAt?: Date | null;\n /**\n * ID of the metasite that the subscription is assigned to.\n * Available only when the subscription is assigned to a Wix site.\n * Subscriptions for account level products can't be assigned to a Wix site.\n * @format GUID\n */\n metaSiteId?: string | null;\n /** Information about the system that manages the subscription's billing. */\n billingReference?: BillingReference;\n /** Information about the billing cycle of the subscription. */\n cycle?: Cycle;\n /**\n * Subscription status.\n *\n * + `UNKNOWN`: Default status.\n * + `AUTO_RENEW_ON`: Subscription is active and automatically renews at the end of the current billing cycle.\n * + `AUTO_RENEW_OFF`: Subscription is active but expires at the end of the current billing cycle.\n * + `MANUAL_RECURRING`: Subscription is active and renews at the end of the current billing cycle, in case the customer takes an action related to the payment.\n * + `CANCELLED`: Subscription isn't active because it has been canceled.\n * + `TRANSFERRED`: Subscription isn't active because it has been transferred to a different account. A different active subscription was created for the target account.\n */\n status?: SubscriptionStatusWithLiterals;\n /**\n * Date and time the subscription was last transferred from one Wix account to\n * another in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n transferredAt?: Date | null;\n /**\n * ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)\n * that the product, for which the subscription was purchased, belongs to.\n * @format GUID\n */\n productTypeId?: string;\n /** Version number, which increments by 1 each time the subscription is updated. */\n version?: number;\n /**\n * Whether the subscription is active. Includes the statuses\n * `\"AUTO_RENEW_ON\"`, `\"AUTO_RENEW_OFF\"`, and `\"MANUAL_RECURRING\"`.\n */\n active?: boolean;\n /**\n * Date and time the subscription was originally created in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * Differs from `createdAt` in case the subscription was originally created for a different Wix account and has been transferred.\n */\n originalCreationDate?: Date | null;\n /** Custom metadata about the subscription. */\n metadata?: Record<string, string>;\n /**\n * 2-letter country code in\n * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)\n * format.\n */\n countryCode?: string | null;\n /**\n * Seats of the product that the subscription was purchased for.\n * Will be Null for products that don't support seats.\n * @min 1\n * @max 500\n */\n seats?: number | null;\n}\n\nexport interface BillingReference {\n /**\n * Name of the billing system that manages the subscription.\n *\n * + `\"UNKNOWN\"`: Default value.\n * + `\"SBS\"`: [Wix Billing](https://github.com/wix-p/premium-billing/tree/master/sbs).\n * + `\"LICENSER\"`:\n * + `\"BASS\"`: [Billing and Subscriptions System](https://dev.wix.com/docs/rest/internal-only/premium/subscriptions-by-billing-by-wix/introduction).\n * + `\"RESELLER\"`: [External Reseller](https://dev.wix.com/api/rest/account-level-apis/resellers/introduction).\n */\n providerName?: ProviderNameWithLiterals;\n /** Current provider reference ID. */\n providerReferenceId?: string | null;\n /** Previous provider reference IDs. Used for when a subscription is extended, specifically for domains. */\n previousProviderReferenceIds?: string[];\n}\n\nexport enum ProviderName {\n UNKNOWN = 'UNKNOWN',\n SBS = 'SBS',\n LICENSER = 'LICENSER',\n BASS = 'BASS',\n RESELLER = 'RESELLER',\n RECURRING_INVOICES = 'RECURRING_INVOICES',\n}\n\n/** @enumType */\nexport type ProviderNameWithLiterals =\n | ProviderName\n | 'UNKNOWN'\n | 'SBS'\n | 'LICENSER'\n | 'BASS'\n | 'RESELLER'\n | 'RECURRING_INVOICES';\n\nexport interface Cycle extends CycleCycleSelectorOneOf {\n /** repetitive interval */\n interval?: Interval;\n /** one time */\n oneTime?: OneTime;\n}\n\n/** @oneof */\nexport interface CycleCycleSelectorOneOf {\n /** repetitive interval */\n interval?: Interval;\n /** one time */\n oneTime?: OneTime;\n}\n\nexport interface Interval {\n /** interval unit of measure */\n unit?: IntervalUnitWithLiterals;\n /** number of interval */\n count?: number;\n}\n\nexport enum IntervalUnit {\n /** unknown interval unit */\n UNKNOWN = 'UNKNOWN',\n /** day */\n DAY = 'DAY',\n /** week */\n WEEK = 'WEEK',\n /** month */\n MONTH = 'MONTH',\n /** year */\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type IntervalUnitWithLiterals =\n | IntervalUnit\n | 'UNKNOWN'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface OneTime {}\n\nexport enum SubscriptionStatus {\n UNKNOWN = 'UNKNOWN',\n AUTO_RENEW_ON = 'AUTO_RENEW_ON',\n AUTO_RENEW_OFF = 'AUTO_RENEW_OFF',\n MANUAL_RECURRING = 'MANUAL_RECURRING',\n CANCELLED = 'CANCELLED',\n TRANSFERRED = 'TRANSFERRED',\n}\n\n/** @enumType */\nexport type SubscriptionStatusWithLiterals =\n | SubscriptionStatus\n | 'UNKNOWN'\n | 'AUTO_RENEW_ON'\n | 'AUTO_RENEW_OFF'\n | 'MANUAL_RECURRING'\n | 'CANCELLED'\n | 'TRANSFERRED';\n\n/** Triggered when a subscription is reactivated. */\nexport interface ReactivationData {\n reactivationReason?: ReactivationReasonEnumWithLiterals;\n /**\n * In the event of reactivation after chargeback dispute, the subscription may be extended according to the\n * number of days it was inactive during the time of resolving the dispute\n */\n newEndOfPeriod?: Date | null;\n /** The original end date, before the inactive period. */\n oldEndOfPeriod?: Date | null;\n /** The difference in days between the new new_end_of_period and old_end_of_period */\n differenceInDays?: number | null;\n}\n\n/** Reason for subscription reactivation */\nexport enum ReactivationReasonEnum {\n UNKNOWN = 'UNKNOWN',\n /**\n * Subscription was reactivated due to billing status change from CANCELED to ACTIVE, for example if it was incorrectly\n * canceled because of suspicion of fraud\n */\n BILLING_STATUS_CHANGE = 'BILLING_STATUS_CHANGE',\n /** Subscription was reactivated after a chargeback dispute */\n REACTIVATED_AFTER_CHARGEBACK = 'REACTIVATED_AFTER_CHARGEBACK',\n}\n\n/** @enumType */\nexport type ReactivationReasonEnumWithLiterals =\n | ReactivationReasonEnum\n | 'UNKNOWN'\n | 'BILLING_STATUS_CHANGE'\n | 'REACTIVATED_AFTER_CHARGEBACK';\n\n/**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\nexport interface SubscriptionAssigned {\n /** Assigned subscription. */\n subscription?: Subscription;\n /**\n * ID of the metasite that the subscription has been assigned to before the update.\n * @format GUID\n */\n previousMetaSiteId?: string | null;\n}\n\n/** Triggered when a subscription is canceled. */\nexport interface SubscriptionCancelled {\n /** Canceled subscription. */\n subscription?: Subscription;\n /** Details about the cancellation including who canceled the subscription and why. */\n cancellationDetails?: CancellationDetails;\n /**\n * Whether the subscription is canceled immediately or expires at the end of the current billing cycle.\n *\n * Default: `false`\n */\n immediateCancel?: boolean;\n /** Whether the subscription was canceled during the free trial period. */\n canceledInFreeTrial?: boolean;\n /** The type of refund applied to the cancellation. */\n refundType?: RefundTypeWithLiterals;\n}\n\n/** Information about the cancellation flow including who canceled the subscription and why it was canceled. */\nexport interface CancellationDetails {\n /**\n * Cancellation code.\n *\n * Values supported for cancellations on behalf of the billing system: `-1`, `-2`, `-3`, `-4`, `-5`, `-6`, `-7`, `-8`.\n * For cancellations on behalf of the site owner or the service provider `cancellationCode`\n * is taken from the request of\n * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).\n *\n * + `-1`: The subscription has been cancelled by the billing system but none of the listed cancellation reasons applies.\n * + `-2`: There were payment problems.\n * + `-3`: There was a chargeback.\n * + `-4`: Customer support has canceled the subscription and issued a refund.\n * + `-5`: The site owner has changed their existing subscription.\n * + `-6`: The subscription has been transferred to a different Wix account.\n * + `-7`: The subscription has been canceled because the site owner hasn't manually authenticated the recurring payment during the subscription's grace period. For example, site owners must manually confirm recurring payments within 40 days when paying with boleto.\n * + `-8`: The Wix account that the subscription belonged to has been deleted.\n */\n cancellationCode?: number | null;\n /**\n * Cancellation reason. For cancellations on behalf of the site owner or the service provider `cancellationReason`\n * is taken from the request of\n * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).\n * For cancellations on behalf of the billing system `cancellationReason` is `null` or an empty string.\n */\n cancellationReason?: string | null;\n /**\n * Initiator of the cancellation. For `\"USER_REQUESTED\"` and `\"APP_MANAGED\"`,\n * `cancellationCode` and `cancellationReason` are taken from the request of\n * [Cancel Immediately](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately)\n * or [Cancel Immediately Offline](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately-offline).\n * For `\"PASSIVE\"`, cancellations `cancellationCode` is automatically calculated and `cancellationReason`\n * is `null` or an empty string.\n *\n * + `\"UNKNOWN`: Default value.\n * + `\"USER_REQUESTED\"`: The Wix account owner has canceled the subscription.\n * + `\"APP_MANAGED\"`: The service provider has canceled the subscription.\n * + `\"PASSIVE\"`: The billing system has canceled the subscription. For example, in case of payment failure or fraud.\n */\n initiator?: InitiatorWithLiterals;\n}\n\nexport enum Initiator {\n UNKNOWN = 'UNKNOWN',\n USER_REQUESTED = 'USER_REQUESTED',\n APP_MANAGED = 'APP_MANAGED',\n PASSIVE = 'PASSIVE',\n}\n\n/** @enumType */\nexport type InitiatorWithLiterals =\n | Initiator\n | 'UNKNOWN'\n | 'USER_REQUESTED'\n | 'APP_MANAGED'\n | 'PASSIVE';\n\nexport enum RefundType {\n UNKNOWN = 'UNKNOWN',\n NO_REFUND = 'NO_REFUND',\n FULL_REFUND = 'FULL_REFUND',\n PRORATED_REFUND = 'PRORATED_REFUND',\n}\n\n/** @enumType */\nexport type RefundTypeWithLiterals =\n | RefundType\n | 'UNKNOWN'\n | 'NO_REFUND'\n | 'FULL_REFUND'\n | 'PRORATED_REFUND';\n\n/** Triggered when the subscription's auto renew is turned on. */\nexport interface SubscriptionAutoRenewTurnedOn {\n /** Subscription for which auto renew is turned on. */\n subscription?: Subscription;\n /**\n * Supported values: `USER`, `APP`.\n *\n * Information about who turned auto renew on.\n * + `\"USER\"`: The site owner who purchased the subscription has turned auto renew on.\n * + `\"APP\"`: The service provider has turned auto renew on.\n */\n initiator?: string | null;\n}\n\n/** Triggered when the subscription's auto renew is turned off. */\nexport interface SubscriptionAutoRenewTurnedOff {\n /** Subscription for which auto renew is turned off. */\n subscription?: Subscription;\n /** Details about the cancellation including who canceled the subscription and why. */\n cancellationDetails?: CancellationDetails;\n /**\n * Whether the subscription is immediately canceled or expires at the end of the current billing cycle.\n *\n * Default: `false`\n */\n immediateCancel?: boolean;\n}\n\n/**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\nexport interface SubscriptionUnassigned {\n /** Unassigned subscription. */\n subscription?: Subscription;\n /**\n * ID of the metasite that the subscription has been assigned to before the event.\n * @format GUID\n */\n previousMetaSiteId?: string;\n /**\n * Reason why the subscription is unassigned.\n *\n * + `\"UNKNOWN\"`: Default value.\n * + `\"USER_REQUESTED\"`: The Wix account owner has unassigned the subscription.\n * + `\"REPLACED_BY_ANOTHER_SUBSCRIPTION\"`: A different subscription that replaces this subscription is assigned to the site.\n */\n unassignReason?: UnassignReasonWithLiterals;\n}\n\nexport enum UnassignReason {\n UNKNOWN = 'UNKNOWN',\n USER_REQUESTED = 'USER_REQUESTED',\n REPLACED_BY_ANOTHER_SUBSCRIPTION = 'REPLACED_BY_ANOTHER_SUBSCRIPTION',\n}\n\n/** @enumType */\nexport type UnassignReasonWithLiterals =\n | UnassignReason\n | 'UNKNOWN'\n | 'USER_REQUESTED'\n | 'REPLACED_BY_ANOTHER_SUBSCRIPTION';\n\n/**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\nexport interface SubscriptionTransferred {\n /** Original subscription that was canceled for the transfer. */\n originSubscription?: Subscription;\n /** Newly created subscription for the target account. */\n targetSubscription?: Subscription;\n}\n\n/** Triggered when a recurring charge succeeds for a subscription. */\nexport interface RecurringChargeSucceeded {\n /** Subscription for which the recurring charge has succeeded. */\n subscription?: Subscription;\n /** Indication that there was a successful charge at the end of the free trial period */\n freeTrialPeriodEnd?: boolean;\n}\n\n/**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\nexport interface ContractSwitched {\n /** Updated subscription. */\n subscription?: Subscription;\n /** Billing cycle before the update. */\n previousCycle?: Cycle;\n /**\n * ID of the product belonging to the subscription before the update.\n * @format GUID\n */\n previousProductId?: string;\n /**\n * ID of the product type that the subscription's original product belonged to before the update.\n * @format GUID\n */\n previousProductTypeId?: string;\n /**\n * Update type. __Note__: Doesn't include information about a product adjustment.\n * For that purpose, see `productAdjustment`.\n *\n * + `\"NOT_APPLICABLE\"`: Default value.\n * + `\"ADDITIONAL_QUANTITY\"`: An increased usage quota is added to the subscription. For example, a second mailbox is added to a subscription that previously included a single mailbox.\n * + `\"CREDIT_UNUSED_PERIOD\"`: The subscription is upgraded and the new price is less than the regular price. The new price applies to every billing cycle, not just the first cycle.\n * + `\"REFUND_PRICE_DIFF\"`: Not implemented.\n * + `\"ADJUST_PERIOD_END\"`: Not implemented.\n * + `\"DOWNGRADE_GRACE_PERIOD\"`: For downgrades during the grace period. In this situation, the site owner hasn’t paid yet and must immediately pay for the downgraded subscription.\n * + `\"FULL_AMOUNT_PERIOD\"`: For upgrades in which the site owner retains unused benefits. For example, site owners upgrading a Facebook Ads subscription retain their unused FB Ads credit. The unused credit is added to the new credit.\n * + `\"END_OF_PERIOD\"`: The subscription's billing current cycle is extended because of a downgrade.\n * + `\"PENDING_CHANGES\"`: The subscription's billing is updated, but the change doesn't apply immediately. Instead, the update becomes effective at the end of current billing cycle.\n * + `\"DOWNGRADE_RENEWAL\"`: The subscription is downgraded because of a declined payment. This prevents subscriptions from churning.\n */\n contractSwitchType?: ContractSwitchTypeWithLiterals;\n /**\n * ID of the metasite the subscription has been assigned to previously.\n * Available only in case the subscription is assigned to a different site.\n * @format GUID\n */\n previousMetaSiteId?: string | null;\n /**\n * Update reason.\n *\n * + `\"PRICE_INCREASE\"`: The subscription's price has been increased.\n * + `\"EXTERNAL_PROVIDER_TRIGGER\"`: Any reason other than a price increase.\n */\n contractSwitchReason?: ContractSwitchReasonWithLiterals;\n /** Information about the price update. Available only for updates with a price increase. */\n productPriceIncreaseData?: ProductPriceIncreaseData;\n /**\n * Information about a product adjustment. For example, a downgrade.\n * __Note__: This isn't the same as `contractSwitchType`.\n *\n * + `NOT_APPLICABLE`: There is no information about whether the product has been up- or downgraded.\n * + `DOWNGRADE`: The product has been downgraded.\n */\n productAdjustment?: ProductAdjustmentWithLiterals;\n /**\n * Number of seats before the contract switch.\n * @min 1\n * @max 500\n */\n previousSeats?: number | null;\n}\n\n/** Copied from SBS */\nexport enum ContractSwitchType {\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n ADDITIONAL_QUANTITY = 'ADDITIONAL_QUANTITY',\n CREDIT_UNUSED_PERIOD = 'CREDIT_UNUSED_PERIOD',\n REFUND_PRICE_DIFF = 'REFUND_PRICE_DIFF',\n ADJUST_PERIOD_END = 'ADJUST_PERIOD_END',\n DOWNGRADE_GRACE_PERIOD = 'DOWNGRADE_GRACE_PERIOD',\n FULL_AMOUNT_PERIOD = 'FULL_AMOUNT_PERIOD',\n END_OF_PERIOD = 'END_OF_PERIOD',\n PENDING_CHANGES = 'PENDING_CHANGES',\n DOWNGRADE_RENEWAL = 'DOWNGRADE_RENEWAL',\n FIXED_BILLING_DATE_PRORATION = 'FIXED_BILLING_DATE_PRORATION',\n}\n\n/** @enumType */\nexport type ContractSwitchTypeWithLiterals =\n | ContractSwitchType\n | 'NOT_APPLICABLE'\n | 'ADDITIONAL_QUANTITY'\n | 'CREDIT_UNUSED_PERIOD'\n | 'REFUND_PRICE_DIFF'\n | 'ADJUST_PERIOD_END'\n | 'DOWNGRADE_GRACE_PERIOD'\n | 'FULL_AMOUNT_PERIOD'\n | 'END_OF_PERIOD'\n | 'PENDING_CHANGES'\n | 'DOWNGRADE_RENEWAL'\n | 'FIXED_BILLING_DATE_PRORATION';\n\nexport enum ContractSwitchReason {\n EXTERNAL_PROVIDER_TRIGGER = 'EXTERNAL_PROVIDER_TRIGGER',\n PRICE_INCREASE = 'PRICE_INCREASE',\n}\n\n/** @enumType */\nexport type ContractSwitchReasonWithLiterals =\n | ContractSwitchReason\n | 'EXTERNAL_PROVIDER_TRIGGER'\n | 'PRICE_INCREASE';\n\n/** Triggered when a subscription's price is increased. */\nexport interface ProductPriceIncreaseData {\n /**\n * Price of the subscription before the update.\n * @format DECIMAL_VALUE\n */\n previousPrice?: string | null;\n /** A value that is used in order to select the correct email template to send the user regarding the price increase. */\n emailTemplateSelector?: string | null;\n /** Used to differentiate between migration segments. Does not have to be unique per segment. */\n segmentName?: string | null;\n /** Used to determine how the price increase was triggered. */\n priceIncreaseTrigger?: PriceIncreaseTriggerWithLiterals;\n}\n\n/** Reason for Price Increase Trigger */\nexport enum PriceIncreaseTrigger {\n NEAR_RENEWAL = 'NEAR_RENEWAL',\n RECURRING_SUCCESS = 'RECURRING_SUCCESS',\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type PriceIncreaseTriggerWithLiterals =\n | PriceIncreaseTrigger\n | 'NEAR_RENEWAL'\n | 'RECURRING_SUCCESS'\n | 'MANUAL';\n\n/** Triggered when a subscription's product is adusted. */\nexport enum ProductAdjustment {\n /** flag to show that the ContractSwitchedEvent is not applicable / needed */\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n /** flag to show that the ContractSwitchedEvent is a Downgrade */\n DOWNGRADE = 'DOWNGRADE',\n}\n\n/** @enumType */\nexport type ProductAdjustmentWithLiterals =\n | ProductAdjustment\n | 'NOT_APPLICABLE'\n | 'DOWNGRADE';\n\n/**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\nexport interface SubscriptionNearEndOfPeriod {\n /** Subscription that got close to the end of its billing cycle. */\n subscription?: Subscription;\n /** Whether the subscription is within the free trial period. */\n inFreeTrial?: boolean;\n}\n\n/**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\nexport interface SubscriptionPendingChange {\n /** Subscription for which a pending update is triggered. */\n subscription?: Subscription;\n}\n\n/** Triggered when a recurring charge attempt failed for a subscription. */\nexport interface RecurringChargeAttemptFailed {\n /** Subscription for which the recurring charge attempt has failed. */\n subscription?: Subscription;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: 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\n/**\n * Retrieves a site's Pricing Plans Settings.\n * @public\n * @documentationMaturity preview\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_READ\n * @applicableIdentity APP\n * @returns Pricing Plans settings\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings\n */\nexport async function getPricingPlansSettings(): Promise<\n NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param pricingPlansSettings - PricingPlansSettings to be updated, may be partial.\n * @public\n * @documentationMaturity preview\n * @requiredField pricingPlansSettings\n * @requiredField pricingPlansSettings.revision\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Updated PricingPlansSettings.\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings\n */\nexport async function updatePricingPlansSettings(\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pricingPlansSettings: pricingPlansSettings,\n });\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pricingPlansSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pricingPlansSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/settings/v1',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\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: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n PricingPlansSettings,\n getPricingPlansSettings as universalGetPricingPlansSettings,\n updatePricingPlansSettings as universalUpdatePricingPlansSettings,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/pricing-plans' };\n\nexport function getPricingPlansSettings(\n httpClient: HttpClient\n): GetPricingPlansSettingsSignature {\n return () =>\n universalGetPricingPlansSettings(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPricingPlansSettingsSignature {\n /**\n * Retrieves a site's Pricing Plans Settings.\n * @returns Pricing Plans settings\n */\n (): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;\n}\n\nexport function updatePricingPlansSettings(\n httpClient: HttpClient\n): UpdatePricingPlansSettingsSignature {\n return (\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n ) =>\n universalUpdatePricingPlansSettings(\n pricingPlansSettings,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdatePricingPlansSettingsSignature {\n /**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param - PricingPlansSettings to be updated, may be partial.\n * @returns Updated PricingPlansSettings.\n */\n (\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n ): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;\n}\n\nexport {\n ActionEvent,\n Asset,\n AssignedFromFloatingReason,\n BillingReference,\n BooleanFeature,\n CancelRequestedReason,\n CancellationDetails,\n ContractSwitchReason,\n ContractSwitchType,\n ContractSwitched,\n ContractSwitchedReason,\n Cycle,\n CycleCycleSelectorOneOf,\n DeleteContext,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n Feature,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n FeatureContext,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeaturePeriod,\n FeatureQuantityInfoOneOf,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n GetPricingPlansSettingsRequest,\n GetPricingPlansSettingsResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n Initiator,\n Interval,\n IntervalUnit,\n ManualFeatureCreationReason,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n MigratedFromLegacyReason,\n Namespace,\n NamespaceChanged,\n NewFeatureReason,\n OdeditorAssigned,\n OdeditorUnassigned,\n OneTime,\n PicassoAssigned,\n PicassoUnassigned,\n PriceIncreaseTrigger,\n PricingPlansSettings,\n ProductAdjustment,\n ProductPriceIncreaseData,\n ProviderName,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n ReactivationData,\n ReactivationReasonEnum,\n ReassignedFromSiteReason,\n ReassignedToAnotherSiteReason,\n RecurringChargeAttemptFailed,\n RecurringChargeSucceeded,\n RefundType,\n ReplacedByAnotherSubscriptionReason,\n RestoreInfo,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n State,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n Subscription,\n SubscriptionAssigned,\n SubscriptionAutoRenewTurnedOff,\n SubscriptionAutoRenewTurnedOn,\n SubscriptionCancelled,\n SubscriptionCreated,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionNearEndOfPeriod,\n SubscriptionPendingChange,\n SubscriptionStatus,\n SubscriptionTransferred,\n SubscriptionUnassigned,\n TaxableAddress,\n TransferredFromAnotherAccountReason,\n TransferredToAnotherAccountReason,\n UnAssingedToFloatingReason,\n UnassignReason,\n UpdatePricingPlansSettingsRequest,\n UpdatePricingPlansSettingsResponse,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n","import {\n getPricingPlansSettings as publicGetPricingPlansSettings,\n updatePricingPlansSettings as publicUpdatePricingPlansSettings,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getPricingPlansSettings: MaybeContext<\n BuildRESTFunction<typeof publicGetPricingPlansSettings> &\n typeof publicGetPricingPlansSettings\n> = /*#__PURE__*/ createRESTModule(publicGetPricingPlansSettings);\nexport const updatePricingPlansSettings: MaybeContext<\n BuildRESTFunction<typeof publicUpdatePricingPlansSettings> &\n typeof publicUpdatePricingPlansSettings\n> = /*#__PURE__*/ createRESTModule(publicUpdatePricingPlansSettings);\n\nexport {\n TaxableAddress,\n FeaturePeriod,\n ProviderName,\n IntervalUnit,\n SubscriptionStatus,\n ReactivationReasonEnum,\n Initiator,\n RefundType,\n UnassignReason,\n ContractSwitchType,\n ContractSwitchReason,\n PriceIncreaseTrigger,\n ProductAdjustment,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n WebhookIdentityType,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\nexport {\n PricingPlansSettings,\n ExtendedFields,\n GetPricingPlansSettingsRequest,\n GetPricingPlansSettingsResponse,\n UpdatePricingPlansSettingsRequest,\n UpdatePricingPlansSettingsResponse,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n Feature,\n FeatureQuantityInfoOneOf,\n FeatureContext,\n BooleanFeature,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n TransferredFromAnotherAccountReason,\n ReassignedFromSiteReason,\n AssignedFromFloatingReason,\n NewFeatureReason,\n ContractSwitchedReason,\n ManualFeatureCreationReason,\n MigratedFromLegacyReason,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n UnAssingedToFloatingReason,\n ReplacedByAnotherSubscriptionReason,\n ReassignedToAnotherSiteReason,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n TransferredToAnotherAccountReason,\n CancelRequestedReason,\n Empty,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionCreated,\n Subscription,\n BillingReference,\n Cycle,\n CycleCycleSelectorOneOf,\n Interval,\n OneTime,\n ReactivationData,\n SubscriptionAssigned,\n SubscriptionCancelled,\n CancellationDetails,\n SubscriptionAutoRenewTurnedOn,\n SubscriptionAutoRenewTurnedOff,\n SubscriptionUnassigned,\n SubscriptionTransferred,\n RecurringChargeSucceeded,\n ContractSwitched,\n ProductPriceIncreaseData,\n SubscriptionNearEndOfPeriod,\n SubscriptionPendingChange,\n RecurringChargeAttemptFailed,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\nexport {\n TaxableAddressWithLiterals,\n FeaturePeriodWithLiterals,\n ProviderNameWithLiterals,\n IntervalUnitWithLiterals,\n SubscriptionStatusWithLiterals,\n ReactivationReasonEnumWithLiterals,\n InitiatorWithLiterals,\n RefundTypeWithLiterals,\n UnassignReasonWithLiterals,\n ContractSwitchTypeWithLiterals,\n ContractSwitchReasonWithLiterals,\n PriceIncreaseTriggerWithLiterals,\n ProductAdjustmentWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;A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AAAA,EACR;AACF;AAkBA,eAAsBC,4BACpB,sBACsE;AAEtE,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD;AAAA,EACF,CAAC;AAED,QAAM,UACoD;AAAA,IACtD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI,GACtD;AAAA,EACN,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAD;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,sBAAsB,OAAO;AAAA,QACzD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,sBAAsB;AAAA,IACzB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEnlEO,SAASE,yBACd,YACkC;AAClC,SAAO,MACLA;AAAA;AAAA,IAEE,EAAE,WAAW;AAAA,EACf;AACJ;AAUO,SAASC,4BACd,YACqC;AACrC,SAAO,CACL,yBAEAA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClCA,IAAAC,uBAAiC;AAG1B,IAAMC,2BAGK,2DAAiBA,wBAA6B;AACzD,IAAMC,8BAGK,2DAAiBA,2BAAgC;","names":["getPricingPlansSettings","updatePricingPlansSettings","import_timestamp","import_rest_modules","payload","TaxableAddress","FeaturePeriod","ProviderName","IntervalUnit","SubscriptionStatus","ReactivationReasonEnum","Initiator","RefundType","UnassignReason","ContractSwitchType","ContractSwitchReason","PriceIncreaseTrigger","ProductAdjustment","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","getPricingPlansSettings","sdkTransformError","updatePricingPlansSettings","getPricingPlansSettings","updatePricingPlansSettings","import_rest_modules","getPricingPlansSettings","updatePricingPlansSettings"]}
|
|
1
|
+
{"version":3,"sources":["../../../index.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.public.ts","../../../src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.context.ts"],"sourcesContent":["export * from './src/pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.context.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixPricingPlansSettingsV1PricingPlansSettings from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.http.js';\n\nexport interface PricingPlansSettings {\n /**\n * Revision number, which increments by 1 each time the PricingPlans settings are updated. To prevent conflicting changes, the current revision must be passed when updating the PricingPlans settings.\n * Ignored when creating a PricingPlans settings.\n * @readonly\n */\n revision?: string | null;\n /**\n * Date and time the PricingPlansSettings was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PricingPlansSettings was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Site's taxable address, which determines how tax is calculated for pricing plans. */\n taxableAddress?: TaxableAddressWithLiterals;\n /** Data Extensions */\n extendedFields?: ExtendedFields;\n /**\n * Platform fee percentage rate based on premium plan\n * @decimalValue options { gte:0, maxScale:2 }\n * @readonly\n */\n platformFeeRate?: string | null;\n}\n\nexport enum TaxableAddress {\n UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n BILLING = 'BILLING',\n BUSINESS = 'BUSINESS',\n}\n\n/** @enumType */\nexport type TaxableAddressWithLiterals =\n | TaxableAddress\n | 'UNKNOWN_TYPE'\n | 'BILLING'\n | 'BUSINESS';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface GetPricingPlansSettingsRequest {}\n\nexport interface GetPricingPlansSettingsResponse {\n /** Pricing Plans settings */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsRequest {\n /** PricingPlansSettings to be updated, may be partial. */\n pricingPlansSettings: PricingPlansSettings;\n}\n\nexport interface UpdatePricingPlansSettingsResponse {\n /** Updated PricingPlansSettings. */\n pricingPlansSettings?: PricingPlansSettings;\n}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 1000\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Reset date of the quota.\n * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.\n */\n resetDate?: Date | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface Empty {}\n\nexport interface SubscriptionEvent extends SubscriptionEventEventOneOf {\n /** Triggered when a subscription is created. */\n created?: SubscriptionCreated;\n /**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\n assigned?: SubscriptionAssigned;\n /** Triggered when a subscription is canceled. */\n cancelled?: SubscriptionCancelled;\n /** Triggered when the subscription's auto renew is turned on. */\n autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;\n /** Triggered when the subscription's auto renew is turned off. */\n autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;\n /**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\n unassigned?: SubscriptionUnassigned;\n /**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\n transferred?: SubscriptionTransferred;\n /** Triggered when a recurring charge succeeds for a subscription. */\n recurringChargeSucceeded?: RecurringChargeSucceeded;\n /**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\n contractSwitched?: ContractSwitched;\n /**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\n nearEndOfPeriod?: SubscriptionNearEndOfPeriod;\n /**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\n pendingChange?: SubscriptionPendingChange;\n /** Triggered when a recurring charge attempt fails for a subscription. */\n recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;\n /**\n * ID of the subscription's event.\n * @format GUID\n */\n eventId?: string | null;\n /**\n * Date and time of the event in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n eventDate?: Date | null;\n}\n\n/** @oneof */\nexport interface SubscriptionEventEventOneOf {\n /** Triggered when a subscription is created. */\n created?: SubscriptionCreated;\n /**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\n assigned?: SubscriptionAssigned;\n /** Triggered when a subscription is canceled. */\n cancelled?: SubscriptionCancelled;\n /** Triggered when the subscription's auto renew is turned on. */\n autoRenewTurnedOn?: SubscriptionAutoRenewTurnedOn;\n /** Triggered when the subscription's auto renew is turned off. */\n autoRenewTurnedOff?: SubscriptionAutoRenewTurnedOff;\n /**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\n unassigned?: SubscriptionUnassigned;\n /**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\n transferred?: SubscriptionTransferred;\n /** Triggered when a recurring charge succeeds for a subscription. */\n recurringChargeSucceeded?: RecurringChargeSucceeded;\n /**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\n contractSwitched?: ContractSwitched;\n /**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\n nearEndOfPeriod?: SubscriptionNearEndOfPeriod;\n /**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\n pendingChange?: SubscriptionPendingChange;\n /** Triggered when a recurring charge attempt fails for a subscription. */\n recurringChargeAttemptFailed?: RecurringChargeAttemptFailed;\n}\n\n/** Triggered when a subscription is created. */\nexport interface SubscriptionCreated {\n /** Created subscription. */\n subscription?: Subscription;\n /** Metadata for the `created` event. */\n metadata?: Record<string, string>;\n /**\n * Subscription reactivation data.\n * A subscription can be reactivated for example if it was incorrectly canceled because of fraud and then reactivated\n * by the billing system\n */\n reactivationData?: ReactivationData;\n}\n\n/**\n * A subscription holds information about a Premium product that a Wix account\n * owner has purchased including details about the billing.\n */\nexport interface Subscription {\n /**\n * ID of the subscription.\n * @format GUID\n */\n _id?: string;\n /**\n * ID of the Wix account that purchased the subscription.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the [product](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/products/product-object)\n * for which the subscription was purchased.\n * @format GUID\n */\n productId?: string;\n /**\n * Date and time the subscription was created in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n createdAt?: Date | null;\n /**\n * Date and time the subscription was last updated in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n updatedAt?: Date | null;\n /**\n * ID of the metasite that the subscription is assigned to.\n * Available only when the subscription is assigned to a Wix site.\n * Subscriptions for account level products can't be assigned to a Wix site.\n * @format GUID\n */\n metaSiteId?: string | null;\n /** Information about the system that manages the subscription's billing. */\n billingReference?: BillingReference;\n /** Information about the billing cycle of the subscription. */\n cycle?: Cycle;\n /**\n * Subscription status.\n *\n * + `UNKNOWN`: Default status.\n * + `AUTO_RENEW_ON`: Subscription is active and automatically renews at the end of the current billing cycle.\n * + `AUTO_RENEW_OFF`: Subscription is active but expires at the end of the current billing cycle.\n * + `MANUAL_RECURRING`: Subscription is active and renews at the end of the current billing cycle, in case the customer takes an action related to the payment.\n * + `CANCELLED`: Subscription isn't active because it has been canceled.\n * + `TRANSFERRED`: Subscription isn't active because it has been transferred to a different account. A different active subscription was created for the target account.\n */\n status?: SubscriptionStatusWithLiterals;\n /**\n * Date and time the subscription was last transferred from one Wix account to\n * another in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n transferredAt?: Date | null;\n /**\n * ID of the [product type](https://bo.wix.com/wix-docs/rest/premium/premium-product-catalog-v2/product-types/product-type-object)\n * that the product, for which the subscription was purchased, belongs to.\n * @format GUID\n */\n productTypeId?: string;\n /** Version number, which increments by 1 each time the subscription is updated. */\n version?: number;\n /**\n * Whether the subscription is active. Includes the statuses\n * `\"AUTO_RENEW_ON\"`, `\"AUTO_RENEW_OFF\"`, and `\"MANUAL_RECURRING\"`.\n */\n active?: boolean;\n /**\n * Date and time the subscription was originally created in\n * [UTC datetime](https://en.wikipedia.org/wiki/Coordinated_Universal_Time)\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * Differs from `createdAt` in case the subscription was originally created for a different Wix account and has been transferred.\n */\n originalCreationDate?: Date | null;\n /** Custom metadata about the subscription. */\n metadata?: Record<string, string>;\n /**\n * 2-letter country code in\n * [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)\n * format.\n */\n countryCode?: string | null;\n /**\n * Seats of the product that the subscription was purchased for.\n * Will be Null for products that don't support seats.\n * @min 1\n * @max 500\n */\n seats?: number | null;\n}\n\nexport interface BillingReference {\n /**\n * Name of the billing system that manages the subscription.\n *\n * + `\"UNKNOWN\"`: Default value.\n * + `\"SBS\"`: [Wix Billing](https://github.com/wix-p/premium-billing/tree/master/sbs).\n * + `\"LICENSER\"`:\n * + `\"BASS\"`: [Billing and Subscriptions System](https://dev.wix.com/docs/rest/internal-only/premium/subscriptions-by-billing-by-wix/introduction).\n * + `\"RESELLER\"`: [External Reseller](https://dev.wix.com/api/rest/account-level-apis/resellers/introduction).\n */\n providerName?: ProviderNameWithLiterals;\n /** Current provider reference ID. */\n providerReferenceId?: string | null;\n /** Previous provider reference IDs. Used for when a subscription is extended, specifically for domains. */\n previousProviderReferenceIds?: string[];\n}\n\nexport enum ProviderName {\n UNKNOWN = 'UNKNOWN',\n SBS = 'SBS',\n LICENSER = 'LICENSER',\n BASS = 'BASS',\n RESELLER = 'RESELLER',\n RECURRING_INVOICES = 'RECURRING_INVOICES',\n}\n\n/** @enumType */\nexport type ProviderNameWithLiterals =\n | ProviderName\n | 'UNKNOWN'\n | 'SBS'\n | 'LICENSER'\n | 'BASS'\n | 'RESELLER'\n | 'RECURRING_INVOICES';\n\nexport interface Cycle extends CycleCycleSelectorOneOf {\n /** repetitive interval */\n interval?: Interval;\n /** one time */\n oneTime?: OneTime;\n}\n\n/** @oneof */\nexport interface CycleCycleSelectorOneOf {\n /** repetitive interval */\n interval?: Interval;\n /** one time */\n oneTime?: OneTime;\n}\n\nexport interface Interval {\n /** interval unit of measure */\n unit?: IntervalUnitWithLiterals;\n /** number of interval */\n count?: number;\n}\n\nexport enum IntervalUnit {\n /** unknown interval unit */\n UNKNOWN = 'UNKNOWN',\n /** day */\n DAY = 'DAY',\n /** week */\n WEEK = 'WEEK',\n /** month */\n MONTH = 'MONTH',\n /** year */\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type IntervalUnitWithLiterals =\n | IntervalUnit\n | 'UNKNOWN'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface OneTime {}\n\nexport enum SubscriptionStatus {\n UNKNOWN = 'UNKNOWN',\n AUTO_RENEW_ON = 'AUTO_RENEW_ON',\n AUTO_RENEW_OFF = 'AUTO_RENEW_OFF',\n MANUAL_RECURRING = 'MANUAL_RECURRING',\n CANCELLED = 'CANCELLED',\n TRANSFERRED = 'TRANSFERRED',\n}\n\n/** @enumType */\nexport type SubscriptionStatusWithLiterals =\n | SubscriptionStatus\n | 'UNKNOWN'\n | 'AUTO_RENEW_ON'\n | 'AUTO_RENEW_OFF'\n | 'MANUAL_RECURRING'\n | 'CANCELLED'\n | 'TRANSFERRED';\n\n/** Triggered when a subscription is reactivated. */\nexport interface ReactivationData {\n reactivationReason?: ReactivationReasonEnumWithLiterals;\n /**\n * In the event of reactivation after chargeback dispute, the subscription may be extended according to the\n * number of days it was inactive during the time of resolving the dispute\n */\n newEndOfPeriod?: Date | null;\n /** The original end date, before the inactive period. */\n oldEndOfPeriod?: Date | null;\n /** The difference in days between the new new_end_of_period and old_end_of_period */\n differenceInDays?: number | null;\n}\n\n/** Reason for subscription reactivation */\nexport enum ReactivationReasonEnum {\n UNKNOWN = 'UNKNOWN',\n /**\n * Subscription was reactivated due to billing status change from CANCELED to ACTIVE, for example if it was incorrectly\n * canceled because of suspicion of fraud\n */\n BILLING_STATUS_CHANGE = 'BILLING_STATUS_CHANGE',\n /** Subscription was reactivated after a chargeback dispute */\n REACTIVATED_AFTER_CHARGEBACK = 'REACTIVATED_AFTER_CHARGEBACK',\n}\n\n/** @enumType */\nexport type ReactivationReasonEnumWithLiterals =\n | ReactivationReasonEnum\n | 'UNKNOWN'\n | 'BILLING_STATUS_CHANGE'\n | 'REACTIVATED_AFTER_CHARGEBACK';\n\n/**\n * Triggered when a subscription is assigned to a Wix site, including the initial\n * assignment of a floating subscription or a re-assignement from a different site.\n */\nexport interface SubscriptionAssigned {\n /** Assigned subscription. */\n subscription?: Subscription;\n /**\n * ID of the metasite that the subscription has been assigned to before the update.\n * @format GUID\n */\n previousMetaSiteId?: string | null;\n}\n\n/** Triggered when a subscription is canceled. */\nexport interface SubscriptionCancelled {\n /** Canceled subscription. */\n subscription?: Subscription;\n /** Details about the cancellation including who canceled the subscription and why. */\n cancellationDetails?: CancellationDetails;\n /**\n * Whether the subscription is canceled immediately or expires at the end of the current billing cycle.\n *\n * Default: `false`\n */\n immediateCancel?: boolean;\n /** Whether the subscription was canceled during the free trial period. */\n canceledInFreeTrial?: boolean;\n /** The type of refund applied to the cancellation. */\n refundType?: RefundTypeWithLiterals;\n}\n\n/** Information about the cancellation flow including who canceled the subscription and why it was canceled. */\nexport interface CancellationDetails {\n /**\n * Cancellation code.\n *\n * Values supported for cancellations on behalf of the billing system: `-1`, `-2`, `-3`, `-4`, `-5`, `-6`, `-7`, `-8`.\n * For cancellations on behalf of the site owner or the service provider `cancellationCode`\n * is taken from the request of\n * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).\n *\n * + `-1`: The subscription has been cancelled by the billing system but none of the listed cancellation reasons applies.\n * + `-2`: There were payment problems.\n * + `-3`: There was a chargeback.\n * + `-4`: Customer support has canceled the subscription and issued a refund.\n * + `-5`: The site owner has changed their existing subscription.\n * + `-6`: The subscription has been transferred to a different Wix account.\n * + `-7`: The subscription has been canceled because the site owner hasn't manually authenticated the recurring payment during the subscription's grace period. For example, site owners must manually confirm recurring payments within 40 days when paying with boleto.\n * + `-8`: The Wix account that the subscription belonged to has been deleted.\n */\n cancellationCode?: number | null;\n /**\n * Cancellation reason. For cancellations on behalf of the site owner or the service provider `cancellationReason`\n * is taken from the request of\n * [Cancel Immediately Offline](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/cancel-immediately-offline).\n * For cancellations on behalf of the billing system `cancellationReason` is `null` or an empty string.\n */\n cancellationReason?: string | null;\n /**\n * Initiator of the cancellation. For `\"USER_REQUESTED\"` and `\"APP_MANAGED\"`,\n * `cancellationCode` and `cancellationReason` are taken from the request of\n * [Cancel Immediately](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately)\n * or [Cancel Immediately Offline](https://dev.wix.com/docs/rest/account-level/premium/premium-subscriptions-manager/subscription-v1/cancel-immediately-offline).\n * For `\"PASSIVE\"`, cancellations `cancellationCode` is automatically calculated and `cancellationReason`\n * is `null` or an empty string.\n *\n * + `\"UNKNOWN`: Default value.\n * + `\"USER_REQUESTED\"`: The Wix account owner has canceled the subscription.\n * + `\"APP_MANAGED\"`: The service provider has canceled the subscription.\n * + `\"PASSIVE\"`: The billing system has canceled the subscription. For example, in case of payment failure or fraud.\n */\n initiator?: InitiatorWithLiterals;\n}\n\nexport enum Initiator {\n UNKNOWN = 'UNKNOWN',\n USER_REQUESTED = 'USER_REQUESTED',\n APP_MANAGED = 'APP_MANAGED',\n PASSIVE = 'PASSIVE',\n}\n\n/** @enumType */\nexport type InitiatorWithLiterals =\n | Initiator\n | 'UNKNOWN'\n | 'USER_REQUESTED'\n | 'APP_MANAGED'\n | 'PASSIVE';\n\nexport enum RefundType {\n UNKNOWN = 'UNKNOWN',\n NO_REFUND = 'NO_REFUND',\n FULL_REFUND = 'FULL_REFUND',\n PRORATED_REFUND = 'PRORATED_REFUND',\n}\n\n/** @enumType */\nexport type RefundTypeWithLiterals =\n | RefundType\n | 'UNKNOWN'\n | 'NO_REFUND'\n | 'FULL_REFUND'\n | 'PRORATED_REFUND';\n\n/** Triggered when the subscription's auto renew is turned on. */\nexport interface SubscriptionAutoRenewTurnedOn {\n /** Subscription for which auto renew is turned on. */\n subscription?: Subscription;\n /**\n * Supported values: `USER`, `APP`.\n *\n * Information about who turned auto renew on.\n * + `\"USER\"`: The site owner who purchased the subscription has turned auto renew on.\n * + `\"APP\"`: The service provider has turned auto renew on.\n */\n initiator?: string | null;\n}\n\n/** Triggered when the subscription's auto renew is turned off. */\nexport interface SubscriptionAutoRenewTurnedOff {\n /** Subscription for which auto renew is turned off. */\n subscription?: Subscription;\n /** Details about the cancellation including who canceled the subscription and why. */\n cancellationDetails?: CancellationDetails;\n /**\n * Whether the subscription is immediately canceled or expires at the end of the current billing cycle.\n *\n * Default: `false`\n */\n immediateCancel?: boolean;\n}\n\n/**\n * Triggered when a subscription is unassigned from a Wix site and becomes\n * floating.\n */\nexport interface SubscriptionUnassigned {\n /** Unassigned subscription. */\n subscription?: Subscription;\n /**\n * ID of the metasite that the subscription has been assigned to before the event.\n * @format GUID\n */\n previousMetaSiteId?: string;\n /**\n * Reason why the subscription is unassigned.\n *\n * + `\"UNKNOWN\"`: Default value.\n * + `\"USER_REQUESTED\"`: The Wix account owner has unassigned the subscription.\n * + `\"REPLACED_BY_ANOTHER_SUBSCRIPTION\"`: A different subscription that replaces this subscription is assigned to the site.\n */\n unassignReason?: UnassignReasonWithLiterals;\n}\n\nexport enum UnassignReason {\n UNKNOWN = 'UNKNOWN',\n USER_REQUESTED = 'USER_REQUESTED',\n REPLACED_BY_ANOTHER_SUBSCRIPTION = 'REPLACED_BY_ANOTHER_SUBSCRIPTION',\n}\n\n/** @enumType */\nexport type UnassignReasonWithLiterals =\n | UnassignReason\n | 'UNKNOWN'\n | 'USER_REQUESTED'\n | 'REPLACED_BY_ANOTHER_SUBSCRIPTION';\n\n/**\n * Triggered when a subscription is transferred from one Wix account to another.\n * A transfer includes cancelling the original subscription and creating a new\n * subscription for the target account. The event returns both the original\n * and the new subscription.\n */\nexport interface SubscriptionTransferred {\n /** Original subscription that was canceled for the transfer. */\n originSubscription?: Subscription;\n /** Newly created subscription for the target account. */\n targetSubscription?: Subscription;\n}\n\n/** Triggered when a recurring charge succeeds for a subscription. */\nexport interface RecurringChargeSucceeded {\n /** Subscription for which the recurring charge has succeeded. */\n subscription?: Subscription;\n /** Indication that there was a successful charge at the end of the free trial period */\n freeTrialPeriodEnd?: boolean;\n}\n\n/**\n * Triggered when a subscription was updated including when its product has been\n * up- or downgraded or the billing cycle is changed.\n */\nexport interface ContractSwitched {\n /** Updated subscription. */\n subscription?: Subscription;\n /** Billing cycle before the update. */\n previousCycle?: Cycle;\n /**\n * ID of the product belonging to the subscription before the update.\n * @format GUID\n */\n previousProductId?: string;\n /**\n * ID of the product type that the subscription's original product belonged to before the update.\n * @format GUID\n */\n previousProductTypeId?: string;\n /**\n * Update type. __Note__: Doesn't include information about a product adjustment.\n * For that purpose, see `productAdjustment`.\n *\n * + `\"NOT_APPLICABLE\"`: Default value.\n * + `\"ADDITIONAL_QUANTITY\"`: An increased usage quota is added to the subscription. For example, a second mailbox is added to a subscription that previously included a single mailbox.\n * + `\"CREDIT_UNUSED_PERIOD\"`: The subscription is upgraded and the new price is less than the regular price. The new price applies to every billing cycle, not just the first cycle.\n * + `\"REFUND_PRICE_DIFF\"`: Not implemented.\n * + `\"ADJUST_PERIOD_END\"`: Not implemented.\n * + `\"DOWNGRADE_GRACE_PERIOD\"`: For downgrades during the grace period. In this situation, the site owner hasn’t paid yet and must immediately pay for the downgraded subscription.\n * + `\"FULL_AMOUNT_PERIOD\"`: For upgrades in which the site owner retains unused benefits. For example, site owners upgrading a Facebook Ads subscription retain their unused FB Ads credit. The unused credit is added to the new credit.\n * + `\"END_OF_PERIOD\"`: The subscription's billing current cycle is extended because of a downgrade.\n * + `\"PENDING_CHANGES\"`: The subscription's billing is updated, but the change doesn't apply immediately. Instead, the update becomes effective at the end of current billing cycle.\n * + `\"DOWNGRADE_RENEWAL\"`: The subscription is downgraded because of a declined payment. This prevents subscriptions from churning.\n */\n contractSwitchType?: ContractSwitchTypeWithLiterals;\n /**\n * ID of the metasite the subscription has been assigned to previously.\n * Available only in case the subscription is assigned to a different site.\n * @format GUID\n */\n previousMetaSiteId?: string | null;\n /**\n * Update reason.\n *\n * + `\"PRICE_INCREASE\"`: The subscription's price has been increased.\n * + `\"EXTERNAL_PROVIDER_TRIGGER\"`: Any reason other than a price increase.\n */\n contractSwitchReason?: ContractSwitchReasonWithLiterals;\n /** Information about the price update. Available only for updates with a price increase. */\n productPriceIncreaseData?: ProductPriceIncreaseData;\n /**\n * Information about a product adjustment. For example, a downgrade.\n * __Note__: This isn't the same as `contractSwitchType`.\n *\n * + `NOT_APPLICABLE`: There is no information about whether the product has been up- or downgraded.\n * + `DOWNGRADE`: The product has been downgraded.\n */\n productAdjustment?: ProductAdjustmentWithLiterals;\n /**\n * Number of seats before the contract switch.\n * @min 1\n * @max 500\n */\n previousSeats?: number | null;\n}\n\n/** Copied from SBS */\nexport enum ContractSwitchType {\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n ADDITIONAL_QUANTITY = 'ADDITIONAL_QUANTITY',\n CREDIT_UNUSED_PERIOD = 'CREDIT_UNUSED_PERIOD',\n REFUND_PRICE_DIFF = 'REFUND_PRICE_DIFF',\n ADJUST_PERIOD_END = 'ADJUST_PERIOD_END',\n DOWNGRADE_GRACE_PERIOD = 'DOWNGRADE_GRACE_PERIOD',\n FULL_AMOUNT_PERIOD = 'FULL_AMOUNT_PERIOD',\n END_OF_PERIOD = 'END_OF_PERIOD',\n PENDING_CHANGES = 'PENDING_CHANGES',\n DOWNGRADE_RENEWAL = 'DOWNGRADE_RENEWAL',\n FIXED_BILLING_DATE_PRORATION = 'FIXED_BILLING_DATE_PRORATION',\n IMMEDIATE_SWITCH = 'IMMEDIATE_SWITCH',\n}\n\n/** @enumType */\nexport type ContractSwitchTypeWithLiterals =\n | ContractSwitchType\n | 'NOT_APPLICABLE'\n | 'ADDITIONAL_QUANTITY'\n | 'CREDIT_UNUSED_PERIOD'\n | 'REFUND_PRICE_DIFF'\n | 'ADJUST_PERIOD_END'\n | 'DOWNGRADE_GRACE_PERIOD'\n | 'FULL_AMOUNT_PERIOD'\n | 'END_OF_PERIOD'\n | 'PENDING_CHANGES'\n | 'DOWNGRADE_RENEWAL'\n | 'FIXED_BILLING_DATE_PRORATION'\n | 'IMMEDIATE_SWITCH';\n\nexport enum ContractSwitchReason {\n EXTERNAL_PROVIDER_TRIGGER = 'EXTERNAL_PROVIDER_TRIGGER',\n PRICE_INCREASE = 'PRICE_INCREASE',\n}\n\n/** @enumType */\nexport type ContractSwitchReasonWithLiterals =\n | ContractSwitchReason\n | 'EXTERNAL_PROVIDER_TRIGGER'\n | 'PRICE_INCREASE';\n\n/** Triggered when a subscription's price is increased. */\nexport interface ProductPriceIncreaseData {\n /**\n * Price of the subscription before the update.\n * @format DECIMAL_VALUE\n */\n previousPrice?: string | null;\n /** A value that is used in order to select the correct email template to send the user regarding the price increase. */\n emailTemplateSelector?: string | null;\n /** Used to differentiate between migration segments. Does not have to be unique per segment. */\n segmentName?: string | null;\n /** Used to determine how the price increase was triggered. */\n priceIncreaseTrigger?: PriceIncreaseTriggerWithLiterals;\n}\n\n/** Reason for Price Increase Trigger */\nexport enum PriceIncreaseTrigger {\n NEAR_RENEWAL = 'NEAR_RENEWAL',\n RECURRING_SUCCESS = 'RECURRING_SUCCESS',\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type PriceIncreaseTriggerWithLiterals =\n | PriceIncreaseTrigger\n | 'NEAR_RENEWAL'\n | 'RECURRING_SUCCESS'\n | 'MANUAL';\n\n/** Triggered when a subscription's product is adusted. */\nexport enum ProductAdjustment {\n /** flag to show that the ContractSwitchedEvent is not applicable / needed */\n NOT_APPLICABLE = 'NOT_APPLICABLE',\n /** flag to show that the ContractSwitchedEvent is a Downgrade */\n DOWNGRADE = 'DOWNGRADE',\n}\n\n/** @enumType */\nexport type ProductAdjustmentWithLiterals =\n | ProductAdjustment\n | 'NOT_APPLICABLE'\n | 'DOWNGRADE';\n\n/**\n * Triggered when a subscription gets close to the end of its billing cycle.\n * The exact number of days is defined in the billing system.\n */\nexport interface SubscriptionNearEndOfPeriod {\n /** Subscription that got close to the end of its billing cycle. */\n subscription?: Subscription;\n /** Whether the subscription is within the free trial period. */\n inFreeTrial?: boolean;\n}\n\n/**\n * Triggered when a subscription is updated and the change doesn't happen\n * immediately but at the end of the current billing cycle.\n */\nexport interface SubscriptionPendingChange {\n /** Subscription for which a pending update is triggered. */\n subscription?: Subscription;\n}\n\n/** Triggered when a recurring charge attempt failed for a subscription. */\nexport interface RecurringChargeAttemptFailed {\n /** Subscription for which the recurring charge attempt has failed. */\n subscription?: Subscription;\n}\n\nexport interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n /**\n * A meta site id.\n * @format GUID\n */\n metaSiteId?: string;\n /** A meta site version. Monotonically increasing. */\n version?: string;\n /** A timestamp of the event. */\n timestamp?: string;\n /**\n * TODO(meta-site): Change validation once validations are disabled for consumers\n * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659\n * @maxSize 4000\n */\n assets?: Asset[];\n}\n\n/** @oneof */\nexport interface MetaSiteSpecialEventPayloadOneOf {\n /** Emitted on a meta site creation. */\n siteCreated?: SiteCreated;\n /** Emitted on a meta site transfer completion. */\n siteTransferred?: SiteTransferred;\n /** Emitted on a meta site deletion. */\n siteDeleted?: SiteDeleted;\n /** Emitted on a meta site restoration. */\n siteUndeleted?: SiteUndeleted;\n /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */\n sitePublished?: SitePublished;\n /** Emitted on a meta site unpublish. */\n siteUnpublished?: SiteUnpublished;\n /** Emitted when meta site is marked as template. */\n siteMarkedAsTemplate?: SiteMarkedAsTemplate;\n /** Emitted when meta site is marked as a WixSite. */\n siteMarkedAsWixSite?: SiteMarkedAsWixSite;\n /** Emitted when an application is provisioned (installed). */\n serviceProvisioned?: ServiceProvisioned;\n /** Emitted when an application is removed (uninstalled). */\n serviceRemoved?: ServiceRemoved;\n /** Emitted when meta site name (URL slug) is changed. */\n siteRenamedPayload?: SiteRenamed;\n /** Emitted when meta site was permanently deleted. */\n hardDeleted?: SiteHardDeleted;\n /** Emitted on a namespace change. */\n namespaceChanged?: NamespaceChanged;\n /** Emitted when Studio is attached. */\n studioAssigned?: StudioAssigned;\n /** Emitted when Studio is detached. */\n studioUnassigned?: StudioUnassigned;\n /**\n * Emitted when one of the URLs is changed. After this event you may call `urls-server` to fetch\n * the actual URL.\n *\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1732520791210559?thread_ts=1732027914.294059&cid=C0UHEBPFT\n * See: https://wix.slack.com/archives/C0UHEBPFT/p1744115197619459\n */\n urlChanged?: SiteUrlChanged;\n /** Site is marked as PurgedExternally */\n sitePurgedExternally?: SitePurgedExternally;\n /** Emitted when Odeditor is attached. */\n odeditorAssigned?: OdeditorAssigned;\n /** Emitted when Odeditor is detached. */\n odeditorUnassigned?: OdeditorUnassigned;\n /** Emitted when Picasso is attached. */\n picassoAssigned?: PicassoAssigned;\n /** Emitted when Picasso is detached. */\n picassoUnassigned?: PicassoUnassigned;\n /** Emitted when Wixel is attached. */\n wixelAssigned?: WixelAssigned;\n /** Emitted when Wixel is detached. */\n wixelUnassigned?: WixelUnassigned;\n /** Emitted when StudioTwo is attached. */\n studioTwoAssigned?: StudioTwoAssigned;\n /** Emitted when StudioTwo is detached. */\n studioTwoUnassigned?: StudioTwoUnassigned;\n}\n\nexport interface Asset {\n /**\n * An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum).\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * An instance id. For legacy reasons may be UUID or a string.\n * @maxLength 200\n */\n instanceId?: string;\n /** An application state. */\n state?: StateWithLiterals;\n}\n\nexport enum State {\n UNKNOWN = 'UNKNOWN',\n ENABLED = 'ENABLED',\n DISABLED = 'DISABLED',\n PENDING = 'PENDING',\n DEMO = 'DEMO',\n}\n\n/** @enumType */\nexport type StateWithLiterals =\n | State\n | 'UNKNOWN'\n | 'ENABLED'\n | 'DISABLED'\n | 'PENDING'\n | 'DEMO';\n\nexport interface SiteCreated {\n /**\n * A template identifier (empty if not created from a template).\n * @maxLength 36\n */\n originTemplateId?: string;\n /**\n * An account id of the owner.\n * @format GUID\n */\n ownerId?: string;\n /** A context in which meta site was created. */\n context?: SiteCreatedContextWithLiterals;\n /**\n * A meta site id from which this site was created.\n *\n * In case of a creation from a template it's a template id.\n * In case of a site duplication (\"Save As\" in dashboard or duplicate in UM) it's an id of a source site.\n * @format GUID\n */\n originMetaSiteId?: string | null;\n /**\n * A meta site name (URL slug).\n * @maxLength 20\n */\n siteName?: string;\n /** A namespace. */\n namespace?: NamespaceWithLiterals;\n}\n\nexport enum SiteCreatedContext {\n /** A valid option, we don't expose all reasons why site might be created. */\n OTHER = 'OTHER',\n /** A meta site was created from template. */\n FROM_TEMPLATE = 'FROM_TEMPLATE',\n /** A meta site was created by copying of the transfferred meta site. */\n DUPLICATE_BY_SITE_TRANSFER = 'DUPLICATE_BY_SITE_TRANSFER',\n /** A copy of existing meta site. */\n DUPLICATE = 'DUPLICATE',\n /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */\n OLD_SITE_TRANSFER = 'OLD_SITE_TRANSFER',\n /** deprecated A meta site was created for Flash editor. */\n FLASH = 'FLASH',\n}\n\n/** @enumType */\nexport type SiteCreatedContextWithLiterals =\n | SiteCreatedContext\n | 'OTHER'\n | 'FROM_TEMPLATE'\n | 'DUPLICATE_BY_SITE_TRANSFER'\n | 'DUPLICATE'\n | 'OLD_SITE_TRANSFER'\n | 'FLASH';\n\nexport enum Namespace {\n UNKNOWN_NAMESPACE = 'UNKNOWN_NAMESPACE',\n /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */\n WIX = 'WIX',\n /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n SHOUT_OUT = 'SHOUT_OUT',\n /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ALBUMS = 'ALBUMS',\n /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n WIX_STORES_TEST_DRIVE = 'WIX_STORES_TEST_DRIVE',\n /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n HOTELS = 'HOTELS',\n /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n CLUBS = 'CLUBS',\n /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n ONBOARDING_DRAFT = 'ONBOARDING_DRAFT',\n /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_SITE = 'DEV_SITE',\n /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n LOGOS = 'LOGOS',\n /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */\n VIDEO_MAKER = 'VIDEO_MAKER',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n PARTNER_DASHBOARD = 'PARTNER_DASHBOARD',\n /** MetaSites with this namespace will *not* be shown in a user's site list by default. */\n DEV_CENTER_COMPANY = 'DEV_CENTER_COMPANY',\n /**\n * A draft created by HTML editor on open. Upon \"first save\" it will be moved to be of WIX domain.\n *\n * Meta site with this namespace will *not* be shown in a user's site list by default.\n */\n HTML_DRAFT = 'HTML_DRAFT',\n /**\n * the user-journey for Fitness users who want to start from managing their business instead of designing their website.\n * Will be accessible from Site List and will not have a website app.\n * Once the user attaches a site, the site will become a regular wixsite.\n */\n SITELESS_BUSINESS = 'SITELESS_BUSINESS',\n /** Belongs to \"strategic products\" company. Supports new product in the creator's economy space. */\n CREATOR_ECONOMY = 'CREATOR_ECONOMY',\n /** It is to be used in the Business First efforts. */\n DASHBOARD_FIRST = 'DASHBOARD_FIRST',\n /** Bookings business flow with no site. */\n ANYWHERE = 'ANYWHERE',\n /** Namespace for Headless Backoffice with no editor */\n HEADLESS = 'HEADLESS',\n /**\n * Namespace for master site that will exist in parent account that will be referenced by subaccounts\n * The site will be used for account level CSM feature for enterprise\n */\n ACCOUNT_MASTER_CMS = 'ACCOUNT_MASTER_CMS',\n /** Rise.ai Siteless account management for Gift Cards and Store Credit. */\n RISE = 'RISE',\n /**\n * As part of the branded app new funnel, users now can create a meta site that will be branded app first.\n * There's a blank site behind the scene but it's blank).\n * The Mobile company will be the owner of this namespace.\n */\n BRANDED_FIRST = 'BRANDED_FIRST',\n /** Nownia.com Siteless account management for Ai Scheduling Assistant. */\n NOWNIA = 'NOWNIA',\n /**\n * UGC Templates are templates that are created by users for personal use and to sale to other users.\n * The Partners company owns this namespace.\n */\n UGC_TEMPLATE = 'UGC_TEMPLATE',\n /** Codux Headless Sites */\n CODUX = 'CODUX',\n /** Bobb - AI Design Creator. */\n MEDIA_DESIGN_CREATOR = 'MEDIA_DESIGN_CREATOR',\n /**\n * Shared Blog Site is a unique single site across Enterprise account,\n * This site will hold all Blog posts related to the Marketing product.\n */\n SHARED_BLOG_ENTERPRISE = 'SHARED_BLOG_ENTERPRISE',\n /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_FORMS = 'STANDALONE_FORMS',\n /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */\n STANDALONE_EVENTS = 'STANDALONE_EVENTS',\n /** MIMIR - Siteless account for MIMIR Ai Job runner. */\n MIMIR = 'MIMIR',\n /** Wix Twins platform. */\n TWINS = 'TWINS',\n /** Wix Nano. */\n NANO = 'NANO',\n /** Base44 headless sites. */\n BASE44 = 'BASE44',\n}\n\n/** @enumType */\nexport type NamespaceWithLiterals =\n | Namespace\n | 'UNKNOWN_NAMESPACE'\n | 'WIX'\n | 'SHOUT_OUT'\n | 'ALBUMS'\n | 'WIX_STORES_TEST_DRIVE'\n | 'HOTELS'\n | 'CLUBS'\n | 'ONBOARDING_DRAFT'\n | 'DEV_SITE'\n | 'LOGOS'\n | 'VIDEO_MAKER'\n | 'PARTNER_DASHBOARD'\n | 'DEV_CENTER_COMPANY'\n | 'HTML_DRAFT'\n | 'SITELESS_BUSINESS'\n | 'CREATOR_ECONOMY'\n | 'DASHBOARD_FIRST'\n | 'ANYWHERE'\n | 'HEADLESS'\n | 'ACCOUNT_MASTER_CMS'\n | 'RISE'\n | 'BRANDED_FIRST'\n | 'NOWNIA'\n | 'UGC_TEMPLATE'\n | 'CODUX'\n | 'MEDIA_DESIGN_CREATOR'\n | 'SHARED_BLOG_ENTERPRISE'\n | 'STANDALONE_FORMS'\n | 'STANDALONE_EVENTS'\n | 'MIMIR'\n | 'TWINS'\n | 'NANO'\n | 'BASE44';\n\n/** Site transferred to another user. */\nexport interface SiteTransferred {\n /**\n * A previous owner id (user that transfers meta site).\n * @format GUID\n */\n oldOwnerId?: string;\n /**\n * A new owner id (user that accepts meta site).\n * @format GUID\n */\n newOwnerId?: string;\n}\n\n/** Soft deletion of the meta site. Could be restored. */\nexport interface SiteDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface DeleteContext {\n /** When the meta site was deleted. */\n dateDeleted?: Date | null;\n /** A status. */\n deleteStatus?: DeleteStatusWithLiterals;\n /**\n * A reason (flow).\n * @maxLength 255\n */\n deleteOrigin?: string;\n /**\n * A service that deleted it.\n * @maxLength 255\n */\n initiatorId?: string | null;\n}\n\nexport enum DeleteStatus {\n UNKNOWN = 'UNKNOWN',\n TRASH = 'TRASH',\n DELETED = 'DELETED',\n PENDING_PURGE = 'PENDING_PURGE',\n PURGED_EXTERNALLY = 'PURGED_EXTERNALLY',\n}\n\n/** @enumType */\nexport type DeleteStatusWithLiterals =\n | DeleteStatus\n | 'UNKNOWN'\n | 'TRASH'\n | 'DELETED'\n | 'PENDING_PURGE'\n | 'PURGED_EXTERNALLY';\n\n/** Restoration of the meta site. */\nexport interface SiteUndeleted {}\n\n/** First publish of a meta site. Or subsequent publish after unpublish. */\nexport interface SitePublished {}\n\nexport interface SiteUnpublished {\n /**\n * A list of URLs previously associated with the meta site.\n * @maxLength 4000\n * @maxSize 10000\n */\n urls?: string[];\n}\n\nexport interface SiteMarkedAsTemplate {}\n\nexport interface SiteMarkedAsWixSite {}\n\n/**\n * Represents a service provisioned a site.\n *\n * Note on `origin_instance_id`:\n * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.\n * This is because of the following scenario:\n *\n * Imagine you have a template where a third-party application (TPA) includes some stub data,\n * such as a product catalog. When you create a site from this template, you inherit this\n * default product catalog. However, if the template's product catalog is modified,\n * your site will retain the catalog as it was at the time of site creation. This ensures that\n * your site remains consistent with what you initially received and does not include any\n * changes made to the original template afterward.\n * To ensure this, the TPA on the template gets a new instance_id.\n */\nexport interface ServiceProvisioned {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * An instance id from which this instance is originated.\n * @maxLength 36\n */\n originInstanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n /**\n * The origin meta site id\n * @format GUID\n */\n originMetaSiteId?: string | null;\n}\n\nexport interface ServiceRemoved {\n /**\n * Either UUID or EmbeddedServiceType.\n * @maxLength 36\n */\n appDefId?: string;\n /**\n * Not only UUID. Something here could be something weird.\n * @maxLength 36\n */\n instanceId?: string;\n /**\n * A version.\n * @maxLength 500\n */\n version?: string | null;\n}\n\n/** Rename of the site. Meaning, free public url has been changed as well. */\nexport interface SiteRenamed {\n /**\n * A new meta site name (URL slug).\n * @maxLength 20\n */\n newSiteName?: string;\n /**\n * A previous meta site name (URL slug).\n * @maxLength 255\n */\n oldSiteName?: string;\n}\n\n/**\n * Hard deletion of the meta site.\n *\n * Could not be restored. Therefore it's desirable to cleanup data.\n */\nexport interface SiteHardDeleted {\n /** A deletion context. */\n deleteContext?: DeleteContext;\n}\n\nexport interface NamespaceChanged {\n /** A previous namespace. */\n oldNamespace?: NamespaceWithLiterals;\n /** A new namespace. */\n newNamespace?: NamespaceWithLiterals;\n}\n\n/** Assigned Studio editor */\nexport interface StudioAssigned {}\n\n/** Unassigned Studio editor */\nexport interface StudioUnassigned {}\n\n/**\n * Fired in case site URLs were changed in any way: new secondary domain, published, account slug rename, site rename etc.\n *\n * This is an internal event, it's not propagated in special events, because it's non-actionable. If you need to keep up\n * with sites and its urls, you need to listen to another topic/event. Read about it:\n *\n * https://bo.wix.com/wix-docs/rest/meta-site/meta-site---urls-service\n */\nexport interface SiteUrlChanged {}\n\n/**\n * Used at the end of the deletion flow for both draft sites and when a user deletes a site.\n * Consumed by other teams to remove relevant data.\n */\nexport interface SitePurgedExternally {\n /**\n * @maxLength 2048\n * @maxSize 100\n * @deprecated\n * @targetRemovalDate 2025-04-15\n */\n appDefId?: string[];\n}\n\n/** Assigned Odeditor */\nexport interface OdeditorAssigned {}\n\n/** Unassigned Odeditor */\nexport interface OdeditorUnassigned {}\n\n/** Assigned Picasso editor */\nexport interface PicassoAssigned {}\n\n/** Unassigned Picasso */\nexport interface PicassoUnassigned {}\n\n/** Assigned Wixel */\nexport interface WixelAssigned {}\n\n/** Unassigned Wixel */\nexport interface WixelUnassigned {}\n\n/** Assigned StudioTwo */\nexport interface StudioTwoAssigned {}\n\n/** Unassigned StudioTwo */\nexport interface StudioTwoUnassigned {}\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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: 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\n/**\n * Retrieves a site's Pricing Plans Settings.\n * @public\n * @documentationMaturity preview\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_READ\n * @applicableIdentity APP\n * @returns Pricing Plans settings\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings\n */\nexport async function getPricingPlansSettings(): Promise<\n NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.getPricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {},\n singleArgumentUnchanged: false,\n },\n []\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param pricingPlansSettings - PricingPlansSettings to be updated, may be partial.\n * @public\n * @documentationMaturity preview\n * @requiredField pricingPlansSettings\n * @requiredField pricingPlansSettings.revision\n * @permissionId PRICING_PLANS.PRICING_PLANS_SETTINGS_UPDATE\n * @applicableIdentity APP\n * @returns Updated PricingPlansSettings.\n * @fqn wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings\n */\nexport async function updatePricingPlansSettings(\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n pricingPlansSettings: pricingPlansSettings,\n });\n\n const reqOpts =\n ambassadorWixPricingPlansSettingsV1PricingPlansSettings.updatePricingPlansSettings(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.pricingPlansSettings!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pricingPlansSettings: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pricingPlansSettings']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","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 resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'manage._base_domain_': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/pricing-plans-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/pricing-plans/settings/v1',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_pricing-plans_pricing-plans-settings';\n\n/** Retrieves a site's Pricing Plans Settings. */\nexport function getPricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPricingPlansSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.GetPricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\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: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPricingPlansSettings;\n}\n\n/**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n */\nexport function updatePricingPlansSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __updatePricingPlansSettings({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.pricing_plans.settings.v1.pricing_plans_settings',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.pricing_plans.settings.v1.PricingPlansSettingsService.UpdatePricingPlansSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPricingPlansSettingsV1PricingPlansSettingsServiceUrl({\n protoPath: '/v1/pricing-plans-settings',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'pricingPlansSettings.createdDate' },\n { path: 'pricingPlansSettings.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updatePricingPlansSettings;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n PricingPlansSettings,\n getPricingPlansSettings as universalGetPricingPlansSettings,\n updatePricingPlansSettings as universalUpdatePricingPlansSettings,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/pricing-plans' };\n\nexport function getPricingPlansSettings(\n httpClient: HttpClient\n): GetPricingPlansSettingsSignature {\n return () =>\n universalGetPricingPlansSettings(\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetPricingPlansSettingsSignature {\n /**\n * Retrieves a site's Pricing Plans Settings.\n * @returns Pricing Plans settings\n */\n (): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;\n}\n\nexport function updatePricingPlansSettings(\n httpClient: HttpClient\n): UpdatePricingPlansSettingsSignature {\n return (\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n ) =>\n universalUpdatePricingPlansSettings(\n pricingPlansSettings,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdatePricingPlansSettingsSignature {\n /**\n * Updates a site's Pricing Plans settings, or creates them if none exist.\n *\n * Each time the Pricing Plans settings are updated, `revision` increments by 1.\n * The current `revision` must be passed when updating the Pricing Plans settings.\n * This ensures you're working with the latest Pricing Plans settings and prevents unintended overwrites.\n * @param - PricingPlansSettings to be updated, may be partial.\n * @returns Updated PricingPlansSettings.\n */\n (\n pricingPlansSettings: NonNullablePaths<PricingPlansSettings, `revision`, 2>\n ): Promise<NonNullablePaths<PricingPlansSettings, `taxableAddress`, 2>>;\n}\n\nexport {\n ActionEvent,\n Asset,\n AssignedFromFloatingReason,\n BillingReference,\n BooleanFeature,\n CancelRequestedReason,\n CancellationDetails,\n ContractSwitchReason,\n ContractSwitchType,\n ContractSwitched,\n ContractSwitchedReason,\n Cycle,\n CycleCycleSelectorOneOf,\n DeleteContext,\n DeleteStatus,\n DomainEvent,\n DomainEventBodyOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n ExtendedFields,\n Feature,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n FeatureContext,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeaturePeriod,\n FeatureQuantityInfoOneOf,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n GetPricingPlansSettingsRequest,\n GetPricingPlansSettingsResponse,\n IdentificationData,\n IdentificationDataIdOneOf,\n Initiator,\n Interval,\n IntervalUnit,\n ManualFeatureCreationReason,\n MessageEnvelope,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n MigratedFromLegacyReason,\n Namespace,\n NamespaceChanged,\n NewFeatureReason,\n OdeditorAssigned,\n OdeditorUnassigned,\n OneTime,\n PicassoAssigned,\n PicassoUnassigned,\n PriceIncreaseTrigger,\n PricingPlansSettings,\n ProductAdjustment,\n ProductPriceIncreaseData,\n ProviderName,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n ReactivationData,\n ReactivationReasonEnum,\n ReassignedFromSiteReason,\n ReassignedToAnotherSiteReason,\n RecurringChargeAttemptFailed,\n RecurringChargeSucceeded,\n RefundType,\n ReplacedByAnotherSubscriptionReason,\n RestoreInfo,\n ServiceProvisioned,\n ServiceRemoved,\n SiteCreated,\n SiteCreatedContext,\n SiteDeleted,\n SiteHardDeleted,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n SitePublished,\n SitePurgedExternally,\n SiteRenamed,\n SiteTransferred,\n SiteUndeleted,\n SiteUnpublished,\n SiteUrlChanged,\n State,\n StudioAssigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n StudioUnassigned,\n Subscription,\n SubscriptionAssigned,\n SubscriptionAutoRenewTurnedOff,\n SubscriptionAutoRenewTurnedOn,\n SubscriptionCancelled,\n SubscriptionCreated,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionNearEndOfPeriod,\n SubscriptionPendingChange,\n SubscriptionStatus,\n SubscriptionTransferred,\n SubscriptionUnassigned,\n TaxableAddress,\n TransferredFromAnotherAccountReason,\n TransferredToAnotherAccountReason,\n UnAssingedToFloatingReason,\n UnassignReason,\n UpdatePricingPlansSettingsRequest,\n UpdatePricingPlansSettingsResponse,\n WebhookIdentityType,\n WixelAssigned,\n WixelUnassigned,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n","import {\n getPricingPlansSettings as publicGetPricingPlansSettings,\n updatePricingPlansSettings as publicUpdatePricingPlansSettings,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getPricingPlansSettings: MaybeContext<\n BuildRESTFunction<typeof publicGetPricingPlansSettings> &\n typeof publicGetPricingPlansSettings\n> = /*#__PURE__*/ createRESTModule(publicGetPricingPlansSettings);\nexport const updatePricingPlansSettings: MaybeContext<\n BuildRESTFunction<typeof publicUpdatePricingPlansSettings> &\n typeof publicUpdatePricingPlansSettings\n> = /*#__PURE__*/ createRESTModule(publicUpdatePricingPlansSettings);\n\nexport {\n TaxableAddress,\n FeaturePeriod,\n ProviderName,\n IntervalUnit,\n SubscriptionStatus,\n ReactivationReasonEnum,\n Initiator,\n RefundType,\n UnassignReason,\n ContractSwitchType,\n ContractSwitchReason,\n PriceIncreaseTrigger,\n ProductAdjustment,\n State,\n SiteCreatedContext,\n Namespace,\n DeleteStatus,\n WebhookIdentityType,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\nexport {\n PricingPlansSettings,\n ExtendedFields,\n GetPricingPlansSettingsRequest,\n GetPricingPlansSettingsResponse,\n UpdatePricingPlansSettingsRequest,\n UpdatePricingPlansSettingsResponse,\n FeatureEvent,\n FeatureEventEventOneOf,\n FeatureEnabled,\n FeatureEnabledReasonOneOf,\n Feature,\n FeatureQuantityInfoOneOf,\n FeatureContext,\n BooleanFeature,\n QuotaFeature,\n QuotaInfo,\n QuotaInfoEntry,\n TransferredFromAnotherAccountReason,\n ReassignedFromSiteReason,\n AssignedFromFloatingReason,\n NewFeatureReason,\n ContractSwitchedReason,\n ManualFeatureCreationReason,\n MigratedFromLegacyReason,\n FeatureDisabled,\n FeatureDisabledReasonOneOf,\n UnAssingedToFloatingReason,\n ReplacedByAnotherSubscriptionReason,\n ReassignedToAnotherSiteReason,\n FeatureUpdated,\n FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf,\n FeatureCancelled,\n FeatureCancelledReasonOneOf,\n TransferredToAnotherAccountReason,\n CancelRequestedReason,\n Empty,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionCreated,\n Subscription,\n BillingReference,\n Cycle,\n CycleCycleSelectorOneOf,\n Interval,\n OneTime,\n ReactivationData,\n SubscriptionAssigned,\n SubscriptionCancelled,\n CancellationDetails,\n SubscriptionAutoRenewTurnedOn,\n SubscriptionAutoRenewTurnedOff,\n SubscriptionUnassigned,\n SubscriptionTransferred,\n RecurringChargeSucceeded,\n ContractSwitched,\n ProductPriceIncreaseData,\n SubscriptionNearEndOfPeriod,\n SubscriptionPendingChange,\n RecurringChargeAttemptFailed,\n MetaSiteSpecialEvent,\n MetaSiteSpecialEventPayloadOneOf,\n Asset,\n SiteCreated,\n SiteTransferred,\n SiteDeleted,\n DeleteContext,\n SiteUndeleted,\n SitePublished,\n SiteUnpublished,\n SiteMarkedAsTemplate,\n SiteMarkedAsWixSite,\n ServiceProvisioned,\n ServiceRemoved,\n SiteRenamed,\n SiteHardDeleted,\n NamespaceChanged,\n StudioAssigned,\n StudioUnassigned,\n SiteUrlChanged,\n SitePurgedExternally,\n OdeditorAssigned,\n OdeditorUnassigned,\n PicassoAssigned,\n PicassoUnassigned,\n WixelAssigned,\n WixelUnassigned,\n StudioTwoAssigned,\n StudioTwoUnassigned,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\nexport {\n TaxableAddressWithLiterals,\n FeaturePeriodWithLiterals,\n ProviderNameWithLiterals,\n IntervalUnitWithLiterals,\n SubscriptionStatusWithLiterals,\n ReactivationReasonEnumWithLiterals,\n InitiatorWithLiterals,\n RefundTypeWithLiterals,\n UnassignReasonWithLiterals,\n ContractSwitchTypeWithLiterals,\n ContractSwitchReasonWithLiterals,\n PriceIncreaseTriggerWithLiterals,\n ProductAdjustmentWithLiterals,\n StateWithLiterals,\n SiteCreatedContextWithLiterals,\n NamespaceWithLiterals,\n DeleteStatusWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './pricing-plans-settings-v1-pricing-plans-settings-pricing-plans-settings.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAAA;AAAA,EAAA,kCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MAC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ings","import_timestamp","import_rest_modules","payload","TaxableAddress","FeaturePeriod","ProviderName","IntervalUnit","SubscriptionStatus","ReactivationReasonEnum","Initiator","RefundType","UnassignReason","ContractSwitchType","ContractSwitchReason","PriceIncreaseTrigger","ProductAdjustment","State","SiteCreatedContext","Namespace","DeleteStatus","WebhookIdentityType","getPricingPlansSettings","sdkTransformError","updatePricingPlansSettings","getPricingPlansSettings","updatePricingPlansSettings","import_rest_modules","getPricingPlansSettings","updatePricingPlansSettings"]}
|
|
@@ -1097,10 +1097,11 @@ declare enum ContractSwitchType {
|
|
|
1097
1097
|
END_OF_PERIOD = "END_OF_PERIOD",
|
|
1098
1098
|
PENDING_CHANGES = "PENDING_CHANGES",
|
|
1099
1099
|
DOWNGRADE_RENEWAL = "DOWNGRADE_RENEWAL",
|
|
1100
|
-
FIXED_BILLING_DATE_PRORATION = "FIXED_BILLING_DATE_PRORATION"
|
|
1100
|
+
FIXED_BILLING_DATE_PRORATION = "FIXED_BILLING_DATE_PRORATION",
|
|
1101
|
+
IMMEDIATE_SWITCH = "IMMEDIATE_SWITCH"
|
|
1101
1102
|
}
|
|
1102
1103
|
/** @enumType */
|
|
1103
|
-
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL' | 'FIXED_BILLING_DATE_PRORATION';
|
|
1104
|
+
type ContractSwitchTypeWithLiterals = ContractSwitchType | 'NOT_APPLICABLE' | 'ADDITIONAL_QUANTITY' | 'CREDIT_UNUSED_PERIOD' | 'REFUND_PRICE_DIFF' | 'ADJUST_PERIOD_END' | 'DOWNGRADE_GRACE_PERIOD' | 'FULL_AMOUNT_PERIOD' | 'END_OF_PERIOD' | 'PENDING_CHANGES' | 'DOWNGRADE_RENEWAL' | 'FIXED_BILLING_DATE_PRORATION' | 'IMMEDIATE_SWITCH';
|
|
1104
1105
|
declare enum ContractSwitchReason {
|
|
1105
1106
|
EXTERNAL_PROVIDER_TRIGGER = "EXTERNAL_PROVIDER_TRIGGER",
|
|
1106
1107
|
PRICE_INCREASE = "PRICE_INCREASE"
|
|
@@ -241,6 +241,7 @@ var ContractSwitchType = /* @__PURE__ */ ((ContractSwitchType2) => {
|
|
|
241
241
|
ContractSwitchType2["PENDING_CHANGES"] = "PENDING_CHANGES";
|
|
242
242
|
ContractSwitchType2["DOWNGRADE_RENEWAL"] = "DOWNGRADE_RENEWAL";
|
|
243
243
|
ContractSwitchType2["FIXED_BILLING_DATE_PRORATION"] = "FIXED_BILLING_DATE_PRORATION";
|
|
244
|
+
ContractSwitchType2["IMMEDIATE_SWITCH"] = "IMMEDIATE_SWITCH";
|
|
244
245
|
return ContractSwitchType2;
|
|
245
246
|
})(ContractSwitchType || {});
|
|
246
247
|
var ContractSwitchReason = /* @__PURE__ */ ((ContractSwitchReason2) => {
|