@wix/auto_sdk_premium-assets_premium-assets 1.0.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../index.ts","../../src/premium-asset-v2-premium-asset-premium-assets.universal.ts","../../src/premium-asset-v2-premium-asset-premium-assets.http.ts","../../src/premium-asset-v2-premium-asset-premium-assets.public.ts","../../src/premium-asset-v2-premium-asset-premium-assets.context.ts"],"sourcesContent":["export * from './src/premium-asset-v2-premium-asset-premium-assets.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 ambassadorWixPremiumAssetV2PremiumAsset from './premium-asset-v2-premium-asset-premium-assets.http.js';\n\n/**\n * An asset is a materialized view of a\n * [Premium subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * and the related product. The product may be saved in the\n * [Premium Product Catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n */\nexport interface PremiumAsset extends PremiumAssetTypeSpecificDataOneOf {\n /**\n * Information about the [domain](https://support.wix.com/en/article/purchasing-a-domain-from-wix-3133977).\n * Available only for domains.\n */\n domainsData?: DomainData;\n /**\n * Information about the [business email](https://support.wix.com/en/article/business-email-an-overview).\n * Available only for mailboxes.\n */\n mailboxesData?: MailboxData;\n /**\n * Information about the digital good.\n * Available only for digital goods.\n */\n digitalGoodsData?: DigitalGoodsData;\n /**\n * Custom fields defined by the product schema.\n * These key-value pairs are copied from the subscription's metadata field,\n * which usually originates from the billing order's external params.\n * Useful for storing product-specific data like domain names for mailboxes.\n */\n typeSpecificFields?: TypeSpecificFields;\n /**\n * ID of the asset record itself.\n *\n * This identifies the asset, not the thing the asset describes. To identify the\n * underlying subscription, domain registration, digital goods package, or\n * mailbox, use `premiumId` instead.\n * @internal\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Date and time the asset was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the asset was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Premium ID of the asset. Available for all product types.\n *\n * + For subscriptions identical to the ID of the [subscription](https://dev.wix.com/docs/rest/internal-only/premium/premium-subscriptions-manager/subscription-v1/subscription-object).\n * + For domains identical to the [registration ID](https://dev.wix.com/docs/rest/business-management/domain-registrar/registar/registration-object).\n * + For digital goods identical to the ID of the digital goods package.\n * + For mailboxes identical to the Google mailbox GUID.\n * @format GUID\n * @readonly\n */\n premiumId?: string;\n /**\n * Date and time the source entity was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * @readonly\n */\n sourceEntityCreatedDate?: Date | null;\n /**\n * Date and time the original source entity was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * Differs from `source_entity_created_date` when the subscription was created by transfer, and is equal when created by purchase.\n * @readonly\n */\n sourceEntityOriginalCreationDate?: Date | null;\n /** Information about the site to which the asset is connected to. */\n siteData?: SiteData;\n /**\n * ID of the Wix account that owns the asset. Can be a workspace ID or an\n * account ID.\n * @format GUID\n */\n accountOwnerId?: string;\n /** Information about the asset's billing provider. */\n billingReference?: V2BillingReference;\n /**\n * Status of the asset.\n * - `\"UNKNOWN_STATUS\"`: There is no information about the asset's status.\n * - `\"ACTIVE\"`: The asset is available to the customer.\n * - `\"NOT_ACTIVE\"`: The asset isn't available to the customer. Covers every inactive situation - cancelled, expired, stopped, failed and fraudulent subscriptions all report `\"NOT_ACTIVE\"` and aren't distinguished. Subscriptions pending at the billing provider also report `\"NOT_ACTIVE\"` rather than `\"PENDING\"`.\n * - `\"TRANSFERRED\"`: The asset has been transferred and no longer available to the customer. There is a new asset that is created as part of the transfer.\n * - `\"PENDING\"`: The asset isn't yet available to the customer, because of an ongoing external process.\n */\n status?: AssetStatusWithLiterals;\n /**\n * Whether the asset is actually available to the owner. Relevant only for\n * domains with status `\"ACTIVE\"`.\n */\n deliveryComplete?: boolean;\n /**\n * Information about whether the asset renews at the end of the current\n * billing cycle.\n */\n renewalType?: RenewalTypeWithLiterals;\n /** Information about the asset's billing cycle. */\n billingCycle?: V1Cycle;\n /**\n * Date and time the asset expires in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * Available only for `{\"renewalType\": \"AUTO_RENEW_OFF\"}`.\n */\n subscriptionEndDate?: Date | null;\n /**\n * Information about changes to the asset that are still pending.\n * Available only for `{\"status\": \"PENDING\"}`.\n */\n pendingChanges?: ServicePendingChanges;\n /**\n * Information about the Premium entity related to the asset.\n * Available for all assets.\n */\n productData?: ProductData;\n /** Information about the asset's billing. */\n wixBillingDetails?: BillingDetails;\n /**\n * End date and time of the refund period in `YYYY-MM-DDThh:mm:ss.sssZ` format.\n * Available only for products that support a money back policy.\n */\n moneyBackPeriodEndDate?: Date | null;\n /**\n * Information about the asset's free trial or deferred billing state.\n * Populated when the asset was purchased with a free trial, and also while\n * billing is deferred pending an external activation. Remains populated after\n * a trial ends, with `inFreeTrialPeriod` set to `false`.\n */\n freeTrialData?: V2FreeTrialData;\n /**\n * Number of seats/licenses for the subscription.\n * Null means the asset doesn't support seats.\n * @min 1\n * @max 500\n */\n seats?: number | null;\n}\n\n/** @oneof */\nexport interface PremiumAssetTypeSpecificDataOneOf {\n /**\n * Information about the [domain](https://support.wix.com/en/article/purchasing-a-domain-from-wix-3133977).\n * Available only for domains.\n */\n domainsData?: DomainData;\n /**\n * Information about the [business email](https://support.wix.com/en/article/business-email-an-overview).\n * Available only for mailboxes.\n */\n mailboxesData?: MailboxData;\n /**\n * Information about the digital good.\n * Available only for digital goods.\n */\n digitalGoodsData?: DigitalGoodsData;\n /**\n * Custom fields defined by the product schema.\n * These key-value pairs are copied from the subscription's metadata field,\n * which usually originates from the billing order's external params.\n * Useful for storing product-specific data like domain names for mailboxes.\n */\n typeSpecificFields?: TypeSpecificFields;\n}\n\nexport interface SiteData {\n /**\n * ID of the metassite that the asset belongs to.\n * @format GUID\n */\n metasiteId?: string;\n /** Human-readable display name of the Wix site that the asset belongs to. */\n siteName?: string;\n}\n\nexport interface DomainData {\n /**\n * Domain name including TLD.\n * @format HOSTNAME\n */\n domain?: string;\n /**\n * Whether the domain is the site's\n * [primary domain](https://support.wix.com/en/article/switching-your-primary-and-redirected-domains).\n * Available only in case the domains is assigned to a site.\n */\n primary?: boolean;\n /**\n * Whether the domain owner's personal information is stored in the WHOIS\n * database or replaced with details about Wix. Learn more about\n * [domain privacy](https://support.wix.com/en/article/about-domain-privacy).\n *\n * + `\"UNKNOWN_PRIVACY\"`: There's no information about the domain's privacy.\n * + `\"NOT_PURCHASED\"`: The domain was purchased without privacy. The domain owner's personal information is publicly visible in the WHOIS database.\n * + `\"PRIVACY_TURNED_ON\"`: The domain was purchased with privacy. And the domain owner's personal information is replaced with Wix's details in the WHOIS database.\n * + `\"PRIVACY_TURNED_OFF\"`: The domain was purchased with privacy. But the domain owner's personal information is publicly visible in the WHOIS database, because the domain owner has diabled the domain's privacy in Wix.\n */\n privacy?: DomainPrivacyWithLiterals;\n /**\n * Expiration date of the domain in\n * `YYYY-MM-DDThh:mm:ss.sssZ` format.\n */\n expirationDate?: Date | null;\n /**\n * Information about the time period during which the domain owner can extend\n * the domain. Learn more about\n * [extending domains](https://support.wix.com/en/article/extending-your-wix-domain-subscription).\n */\n validExtendPeriod?: TimeInterval;\n /** Whether the domain's registration is valid at the external registrar. */\n validInRegistrar?: boolean;\n /**\n * Information about the time period during which the domain owner can redeem\n * the domain. During this time the owner can't extend the domain regularly.\n * Learn more about\n * [redeeming domains](https://support.wix.com/en/article/retrieving-an-expired-domain-during-the-redemption-period).\n */\n redemptionPeriod?: TimeInterval;\n /** Whether dnssec was bought by user */\n dnssecSupported?: boolean;\n /** Whether insurance was bought by user */\n insuranceSupported?: boolean;\n /** Whether domain insurance has been activated */\n insuranceActivated?: boolean;\n}\n\nexport enum DomainPrivacy {\n UNKNOWN_PRIVACY = 'UNKNOWN_PRIVACY',\n /** rivacy feature not purchased for this domain */\n NOT_PURCHASED = 'NOT_PURCHASED',\n /** rivacy feature purchased and enabled */\n PRIVACY_TURNED_ON = 'PRIVACY_TURNED_ON',\n /** rivacy feature purchased and disabled */\n PRIVACY_TURNED_OFF = 'PRIVACY_TURNED_OFF',\n}\n\n/** @enumType */\nexport type DomainPrivacyWithLiterals =\n | DomainPrivacy\n | 'UNKNOWN_PRIVACY'\n | 'NOT_PURCHASED'\n | 'PRIVACY_TURNED_ON'\n | 'PRIVACY_TURNED_OFF';\n\n/** Defines a time interval between two timestamps (finite or infinite) */\nexport interface TimeInterval {\n /** Timestamp of interval start. No value implies negative infinity */\n startTime?: Date | null;\n /** Timestamp of interval end. No value implies positive infinity */\n endTime?: Date | null;\n}\n\nexport interface MailboxData {\n /** Domain name including TLD to which the business email is connected. */\n domainName?: string;\n /** Number of licenses for the business email. */\n seats?: number;\n /**\n * External company that sold the business email.\n *\n * + `\"GOOGLE\"`: [Google Workspace](https://support.wix.com/en/article/google-workspace-choosing-a-plan).\n * + `\"MSN\"`: [MSN Office Suite for emails](https://support.microsoft.com/en-us/topic/how-to-contact-msn-customer-support-6e4e8f2c-d479-caa2-d726-666e588307d7#:~:text=MSN%20is%20the%20Microsoft%20information,offers%20Internet%20subscriptions%20and%20services.).\n */\n vendor?: VendorTypeWithLiterals;\n}\n\nexport enum VendorType {\n UNKNOWN_VENDOR = 'UNKNOWN_VENDOR',\n /** G-Suite/Workspace used for mail */\n GOOGLE = 'GOOGLE',\n /** MSN Office Suite used for mail */\n MSN = 'MSN',\n}\n\n/** @enumType */\nexport type VendorTypeWithLiterals =\n | VendorType\n | 'UNKNOWN_VENDOR'\n | 'GOOGLE'\n | 'MSN';\n\nexport interface DigitalGoodsData {\n /**\n * Type of the digital good.\n *\n * + `\"UNKNOWN_DIGITAL_GOOD_TYPE\"`: There's no information about the type of digital good.\n * + `\"IMAGE\"`: Image purchased from Wix.\n * + `\"VIDEO\"`: Video purchased from Wix.\n * + `\"LOGO\"`: Logo created with the [Wix Logo Maker](https://support.wix.com/en/article/wix-logo-creating-a-logo-with-the-new-wix-logo-maker).\n */\n digitalGoodsType?: DigitalGoodsTypeWithLiterals;\n}\n\nexport enum DigitalGoodsType {\n UNKNOWN_DIGITAL_GOOD_TYPE = 'UNKNOWN_DIGITAL_GOOD_TYPE',\n IMAGE = 'IMAGE',\n VIDEO = 'VIDEO',\n LOGO = 'LOGO',\n}\n\n/** @enumType */\nexport type DigitalGoodsTypeWithLiterals =\n | DigitalGoodsType\n | 'UNKNOWN_DIGITAL_GOOD_TYPE'\n | 'IMAGE'\n | 'VIDEO'\n | 'LOGO';\n\n/**\n * Custom fields defined by the product schema.\n * These key-value pairs are copied from the subscription's metadata field,\n * which originates from the billing order's external params.\n * Useful for storing product-specific data like domain names for mailboxes.\n */\nexport interface TypeSpecificFields {\n /** @maxSize 20 */\n fields?: Record<string, string>;\n}\n\nexport interface V2BillingReference {\n /**\n * Name of the billing system that manages the subscription.\n *\n * + `\"UNKNOWN_BILLING_PROVIDER\"`: There is no information about the billing system.\n * + `\"SBS\"`: Wix Billing.\n * + `\"LICENSER\"`: [Premium Licenser](https://dev.wix.com/docs/rest/internal-only/premium/premium-licenser/introduction).\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?: BillingReferenceProviderNameWithLiterals;\n /** Current provider reference ID. */\n providerReferenceId?: string;\n}\n\nexport enum BillingReferenceProviderName {\n UNKNOWN_BILLING_PROVIDER = 'UNKNOWN_BILLING_PROVIDER',\n SBS = 'SBS',\n LICENSER = 'LICENSER',\n BASS = 'BASS',\n RESELLER = 'RESELLER',\n RECURRING_INVOICES = 'RECURRING_INVOICES',\n}\n\n/** @enumType */\nexport type BillingReferenceProviderNameWithLiterals =\n | BillingReferenceProviderName\n | 'UNKNOWN_BILLING_PROVIDER'\n | 'SBS'\n | 'LICENSER'\n | 'BASS'\n | 'RESELLER'\n | 'RECURRING_INVOICES';\n\nexport enum AssetStatus {\n UNKNOWN_STATUS = 'UNKNOWN_STATUS',\n ACTIVE = 'ACTIVE',\n NOT_ACTIVE = 'NOT_ACTIVE',\n TRANSFERRED = 'TRANSFERRED',\n /** Used when creating subscription for product that was initially purchased by a non real time payment method such as Boleto ot SEPA and can take a while to be delivered */\n PENDING = 'PENDING',\n}\n\n/** @enumType */\nexport type AssetStatusWithLiterals =\n | AssetStatus\n | 'UNKNOWN_STATUS'\n | 'ACTIVE'\n | 'NOT_ACTIVE'\n | 'TRANSFERRED'\n | 'PENDING';\n\nexport enum RenewalType {\n UNKNOWN_RENEWAL_TYPE = 'UNKNOWN_RENEWAL_TYPE',\n /** Subscription renewed when current period ends with automatic payment method, for example credit card */\n AUTO_RENEW_ON = 'AUTO_RENEW_ON',\n /** Subscription is turned off at current period end date */\n AUTO_RENEW_OFF = 'AUTO_RENEW_OFF',\n /** Subscription is renewed when current period ends only if paid for manually */\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type RenewalTypeWithLiterals =\n | RenewalType\n | 'UNKNOWN_RENEWAL_TYPE'\n | 'AUTO_RENEW_ON'\n | 'AUTO_RENEW_OFF'\n | 'MANUAL';\n\nexport interface V1Cycle {\n /**\n * Payment type.\n * + `UNKNOWN`: The payment type hasn't been set.\n * + `ONE_TIME`: The reseller pays Wix in a single payment.\n * + `RECURRING`: The reseller pays Wix on a recurring schedule.\n */\n cycleType?: CycleTypeWithLiterals;\n /** Duration of the billing cycle. Available only for `RECURRING` payments. */\n cycleDuration?: CycleDuration;\n}\n\nexport enum DurationDurationUnit {\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 DurationDurationUnitWithLiterals =\n | DurationDurationUnit\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport enum CycleType {\n ONE_TIME = 'ONE_TIME',\n RECURRING = 'RECURRING',\n}\n\n/** @enumType */\nexport type CycleTypeWithLiterals = CycleType | 'ONE_TIME' | 'RECURRING';\n\nexport interface CycleDuration {\n /** Unit of the billing cycle. */\n unit?: DurationDurationUnitWithLiterals;\n /** Count of units that make up the billing cycle. */\n count?: number;\n}\n\n/** Billing cycle change that will be applied at the end of period */\nexport interface ServicePendingChanges {\n /** Information about the billing cycle. */\n billingCycle?: V1Cycle;\n /**\n * ID of the product that's not yet available to the customer.\n * @deprecated ID of the product that's not yet available to the customer.\n * @replacedBy product\n * @targetRemovalDate 2025-11-02\n */\n productId?: string | null;\n /**\n * The product that will be change to at the end of period.\n * Only id and name are populated\n */\n product?: ProductData;\n}\n\nexport interface ProductData {\n /**\n * [Product ID](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/products/product-object)\n * of the asset as defined in the\n * [product catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n */\n productId?: string;\n /**\n * [Product family ID](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/product-families/product-family-object)\n * of the asset as defined in the\n * [product catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n * @format GUID\n */\n productFamilyId?: string | null;\n /**\n * [Product type ID](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/product-types/product-type-object)\n * of the asset as defined in the\n * [product catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n * @format GUID\n */\n productTypeId?: string;\n /**\n * Name of the product type as defined in the\n * [product catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n */\n productTypeName?: string;\n /**\n * Name of the product as defined in the\n * [product catalog](https://dev.wix.com/docs/rest/internal-only/premium/premium-product-catalog-v2/introduction).\n */\n productName?: string;\n /**\n * Whether the assets belongs to a Wix account or site.\n * Account level assets can't be assigned to a site. Each account may only own a\n * single asset for each product.\n * Site level assets can be assigned to a site or exist floating (assigned\n * to an account but not to a site). Each site may only own a single asset for\n * each product.\n */\n productContext?: string | null;\n}\n\nexport interface BillingDetails {\n /** Information about the payment method. */\n paymentMethod?: V2PaymentMethod;\n /**\n * Details about the last invoice. Identical to `last_successful_invoice_details`\n * in case the `paymentStatus` of the last invoice is `\"PAID\"` or `\"REFUNDED\"`.\n */\n lastInvoiceDetails?: InvoiceDetails;\n /**\n * Details about the next invoice. Doesn't include information about the price\n * and currency, since those values may change before the next invoice is sent.\n * If needed, you can retrieve this information directly from the relevant\n * billing system.\n */\n nextInvoiceDetails?: NextInvoiceDetails;\n /**\n * Details about the last succesful invoice. Identical to `last_invoice_details`\n * in case the `paymentStatus` of the last invoice is `\"PAID\"` or `\"REFUNDED\"`.\n */\n lastSuccessfulInvoiceDetails?: InvoiceDetails;\n /**\n * Whether the invoice is sent on behalf of a non-Wix app, with the app provider\n * using the [Custom Charges SPI](https://dev.wix.com/docs/rest/internal-only/premium/custom-charges-spi/introduction).\n */\n customCharges?: boolean;\n}\n\nexport interface V2PaymentMethod {\n /** Information about the payment method. */\n paymentMethodType?: string;\n /** Subtype of the payment method. */\n paymentMethodSubType?: string | null;\n /**\n * The brand of the payment method\n * @maxLength 100\n */\n paymentBrand?: string | null;\n /** Human-readable description. Relevant for credit cards. */\n displayLabel?: string;\n /** ID of the payment source. */\n paymentSourceId?: string;\n /**\n * ID of the owner of the payment method.\n * @format GUID\n */\n billingAccountOwner?: string | null;\n}\n\nexport interface InvoiceDetails {\n /** ID of the invoice. */\n invoiceId?: string;\n /** Date of the invoice in `YYYY-MM-DDThh:mm:ss.sssZ` format. */\n date?: Date | null;\n /**\n * 3-letter currency code in\n * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes)\n * format.\n * @format CURRENCY\n */\n currencyCode?: string;\n /**\n * Price of the Premium asset in zero-decimal format: https://docs.stripe.com/currencies#zero-decimal.\n * For example, 9.5$ will become 950 (950 cents).\n * @format DECIMAL_VALUE\n */\n amount?: string;\n /**\n * Status of the payment.\n *\n * + `\"UNKNOWN_PAYMENT_STATUS\"`: There's no information about the payment status.\n * + `\"PAID\"`: The customer has successfully paid for the invoice.\n * + `\"REFUNDED\"`: Wix has refunded the customer.\n * + `\"CHARGE_ATTEMPT_FAILED\"`: Wix has tried to charge the customer but failed to collect the payment. Relevant for the following invoice statuses in the billing systems : `\"CREDIT_NOTE\"`, `\"ERROR_CHARGES\"`, `\"DECLINED_CHARGES\"`, and `\"BAD_DEBT\"`.\n * + `\"IN_PROGRESS\"`: Wix is currently trying to charge the customer.\n * + `\"NO_PAYMENT\"`: There is no invoice. Relevant mostly for transferred assets.\n * + `\"NOT_BILLABLE\"`: The invoice requires a manual payment from the customer. Wix can't automatically collect the payment.\n */\n paymentStatus?: V2PaymentStatusWithLiterals;\n}\n\nexport enum V2PaymentStatus {\n UNKNOWN_PAYMENT_STATUS = 'UNKNOWN_PAYMENT_STATUS',\n PAID = 'PAID',\n REFUNDED = 'REFUNDED',\n CHARGE_ATTEMPT_FAILED = 'CHARGE_ATTEMPT_FAILED',\n IN_PROGRESS = 'IN_PROGRESS',\n NO_PAYMENT = 'NO_PAYMENT',\n NOT_BILLABLE = 'NOT_BILLABLE',\n}\n\n/** @enumType */\nexport type V2PaymentStatusWithLiterals =\n | V2PaymentStatus\n | 'UNKNOWN_PAYMENT_STATUS'\n | 'PAID'\n | 'REFUNDED'\n | 'CHARGE_ATTEMPT_FAILED'\n | 'IN_PROGRESS'\n | 'NO_PAYMENT'\n | 'NOT_BILLABLE';\n\n/**\n * Note: this info does not include price and currency since they can\n * change before next payment is made, and amount depends on tax changes and must be retrieved directly from\n * the billing system\n */\nexport interface NextInvoiceDetails {\n /** Next billing date in `YYYY-MM-DDThh:mm:ss.sssZ` format. */\n date?: Date | null;\n}\n\nexport interface V2FreeTrialData {\n /**\n * date when the free trial ends\n * @readonly\n */\n endDate?: Date | null;\n /**\n * Whether the asset is currently within its free trial period. Also `true`\n * when billing is deferred pending external activation\n * (`pendingExternalActivation` is `true`). Use `pendingExternalActivation`\n * to distinguish a free trial from a deferred-billing hold.\n * @readonly\n */\n inFreeTrialPeriod?: boolean;\n /**\n * Whether billing for the asset is on hold pending activation by an external\n * party. While this is `true` the customer isn't charged, and the asset only\n * starts billing once the external activation completes.\n * @readonly\n */\n pendingExternalActivation?: boolean;\n}\n\nexport interface DomainRegistrationChangedEvent {\n domainName?: string;\n crudType?: CrudTypeWithLiterals;\n registrationId?: string;\n changeTime?: Date | null;\n}\n\nexport enum CrudType {\n INVALID_CRUD_TYPE = 'INVALID_CRUD_TYPE',\n CREATE = 'CREATE',\n UPDATE = 'UPDATE',\n DELETE = 'DELETE',\n /** Unfortunately this action is used by hibernate save in wix-war */\n CREATE_OR_UPDATE = 'CREATE_OR_UPDATE',\n}\n\n/** @enumType */\nexport type CrudTypeWithLiterals =\n | CrudType\n | 'INVALID_CRUD_TYPE'\n | 'CREATE'\n | 'UPDATE'\n | 'DELETE'\n | 'CREATE_OR_UPDATE';\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 /** Triggered when a subscription is updated. */\n updated?: SubscriptionUpdated;\n /** Triggered when a Vista reseller subscription is migrated into Wix SBS billing. */\n migratedFromVista?: SubscriptionMigratedFromVista;\n /**\n * Triggered when a Vista migration is reverted, restoring the original\n * reseller billing provider and product.\n */\n vistaMigrationReverted?: SubscriptionVistaMigrationReverted;\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 /** Triggered when a subscription is updated. */\n updated?: SubscriptionUpdated;\n /** Triggered when a Vista reseller subscription is migrated into Wix SBS billing. */\n migratedFromVista?: SubscriptionMigratedFromVista;\n /**\n * Triggered when a Vista migration is reverted, restoring the original\n * reseller billing provider and product.\n */\n vistaMigrationReverted?: SubscriptionVistaMigrationReverted;\n}\n\n/** Triggered when a subscription is created. */\nexport interface SubscriptionCreated {\n /** Created subscription. */\n subscription?: V1Subscription;\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 V1Subscription {\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?: SubscriptionStatusEnumSubscriptionStatusWithLiterals;\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 * `true` if this subscription is part of a dependency relationship —\n * either as the main subscription or as a dependent.\n * @readonly\n */\n hasDependency?: boolean;\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 SubscriptionStatusEnumSubscriptionStatus {\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 SubscriptionStatusEnumSubscriptionStatusWithLiterals =\n | SubscriptionStatusEnumSubscriptionStatus\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?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\n /** Newly created subscription for the target account. */\n targetSubscription?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\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 FLAT_PRICE_DIFFERENCE = 'FLAT_PRICE_DIFFERENCE',\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 | 'FLAT_PRICE_DIFFERENCE';\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?: V1Subscription;\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?: V1Subscription;\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?: V1Subscription;\n /** Reason the recurring charge attempt failed or could not be made. */\n reason?: RecurringChargeFailureReasonWithLiterals;\n /**\n * ID of the invoice associated with the recurring charge failure.\n * @maxLength 36\n */\n invoiceId?: string | null;\n}\n\nexport enum RecurringChargeFailureReason {\n CHARGE_FAILURE = 'CHARGE_FAILURE',\n CREDIT_CARD_EXPIRED = 'CREDIT_CARD_EXPIRED',\n NO_ACTIVE_BILLING_ACCOUNT = 'NO_ACTIVE_BILLING_ACCOUNT',\n}\n\n/** @enumType */\nexport type RecurringChargeFailureReasonWithLiterals =\n | RecurringChargeFailureReason\n | 'CHARGE_FAILURE'\n | 'CREDIT_CARD_EXPIRED'\n | 'NO_ACTIVE_BILLING_ACCOUNT';\n\n/** Triggered when a subscription is updated. */\nexport interface SubscriptionUpdated {\n /** Updated subscription. */\n subscription?: V1Subscription;\n}\n\n/** Triggered when a Vista reseller subscription is migrated into Wix SBS billing. */\nexport interface SubscriptionMigratedFromVista {\n /** The Vista migration ID for this subscription (returned by the Vista API). */\n vistaMigrationId?: string;\n /** The new SBS service ID created for this subscription. */\n newSbsServiceId?: string;\n /** Full subscription context for owner extraction and notifications. */\n subscription?: V1Subscription;\n /** Date and time of the next scheduled billing charge. */\n nextBillingDate?: Date | null;\n /** Amount to be charged on the next billing date (decimal string, e.g. \"9.99\"). */\n nextBillingAmount?: string;\n /** ISO 4217 currency code for the billing amount (e.g. \"USD\"). */\n currency?: string;\n /**\n * Date and time when billing officially transitions from VistaPrint to Wix.\n * Used in notification emails as the effective date of the billing changeover.\n */\n effectiveDate?: Date | null;\n /** The original Wix product ID from Vista (before migration mapping). */\n previousWixProductId?: string;\n /** The new Wix product ID after applying the Vista product mapping. */\n newWixProductId?: string;\n}\n\n/**\n * Triggered when a Vista migration is reverted, restoring the original\n * reseller billing provider and product.\n */\nexport interface SubscriptionVistaMigrationReverted {\n /** The reverted subscription with its original billing provider and product restored. */\n subscription?: V1Subscription;\n}\n\nexport interface DomainChangedEvent extends DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n domainName?: string;\n changeTime?: Date | null;\n}\n\n/** @oneof */\nexport interface DomainChangedEventPayloadOneOf {\n /** WARNING: `registered` event payload is DEPRECATED */\n registered?: Registered;\n /** WARNING: `registration_cancelled` event payload is DEPRECATED */\n registrationCancelled?: RegistrationCancelled;\n connectedToSite?: ConnectedToSite;\n disconnectedFromSite?: DisconnectedFromSite;\n /** WARNING: `registration_extended` event payload is DEPRECATED */\n registrationExtended?: RegistrationExtended;\n /** WARNING: `owner_changed` event payload is DEPRECATED */\n ownerChanged?: OwnerChanged;\n /** WARNING: `privacy_changed` event payload is DEPRECATED */\n privacyChanged?: PrivacyChanged;\n /** WARNING: `management_type_changed` event payload is DEPRECATED */\n managementTypeChanged?: ManagementTypeChanged;\n /** WARNING: `billing_subscription_cancelled` event payload is DEPRECATED */\n billingSubscriptionCancelled?: BillingSubscriptionCancelled;\n /** WARNING: `connection_verified` event payload is DEPRECATED */\n connectionVerified?: ConnectionVerified;\n /** WARNING: `connection_lost` event payload is DEPRECATED */\n connectionLost?: ConnectionLost;\n /** WARNING: `expiration_date_changed` event payload is DEPRECATED */\n expirationDateChanged?: ExpirationDateChanged;\n propagationStarted?: PropagationStarted;\n verificationStarted?: VerificationStarted;\n contactVerificationStatusChanged?: ContactVerificationStatusChanged;\n /** Expiry/GraceStarted */\n expired?: Expired;\n /** GraceEnded/RedemptionStarted */\n graceEnded?: GraceEnded;\n /** RedemptionEnded */\n redemptionEnded?: RedemptionEnded;\n /** enable or disable dnssec */\n dnssecChanged?: DnssecChanged;\n /** domain SKU updated due to price increase */\n priceIncreaseProcessed?: PriceIncreaseProcessed;\n}\n\nexport interface Registered {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface RegistrationCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectedToSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface DisconnectedFromSite {\n /** @format GUID */\n msid?: string;\n}\n\nexport interface RegistrationExtended {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface OwnerChanged {\n /** @format GUID */\n oldUserGuid?: string;\n /** @format GUID */\n newUserGuid?: string;\n /** @format GUID */\n oldRegistrationId?: string | null;\n /** @format GUID */\n newRegistrationId?: string | null;\n}\n\nexport interface PrivacyChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ManagementTypeChanged {}\n\nexport interface BillingSubscriptionCancelled {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface ConnectionVerified {}\n\nexport interface ConnectionLost {}\n\nexport interface ExpirationDateChanged {\n /** @format GUID */\n registrationId?: string;\n}\n\nexport interface PropagationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface VerificationStarted {\n /** @format GUID */\n userGuid?: string;\n}\n\nexport interface ContactVerificationStatusChanged {\n status?: ContactVerificationStatusWithLiterals;\n}\n\nexport enum ContactVerificationStatus {\n PENDING = 'PENDING',\n DEACTIVATED = 'DEACTIVATED',\n CONFIRMED_BY_WIX = 'CONFIRMED_BY_WIX',\n CONFIRMED_BY_REGDOTCOM = 'CONFIRMED_BY_REGDOTCOM',\n}\n\n/** @enumType */\nexport type ContactVerificationStatusWithLiterals =\n | ContactVerificationStatus\n | 'PENDING'\n | 'DEACTIVATED'\n | 'CONFIRMED_BY_WIX'\n | 'CONFIRMED_BY_REGDOTCOM';\n\nexport interface Expired {}\n\nexport interface GraceEnded {}\n\nexport interface RedemptionEnded {}\n\nexport interface DnssecChanged {\n /**\n * unique registration id\n * @format GUID\n */\n registrationId?: string;\n}\n\nexport interface PriceIncreaseProcessed {}\n\n/** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */\nexport interface SitePropertiesNotification {\n /** The site ID for which this update notification applies. */\n metasiteId?: string;\n /** The actual update event. */\n event?: SitePropertiesEvent;\n /**\n * A convenience set of mappings from the MetaSite ID to its constituent services.\n * @maxSize 500\n */\n translations?: Translation[];\n /** Context of the notification */\n changeContext?: ChangeContext;\n}\n\n/** The actual update event for a particular notification. */\nexport interface SitePropertiesEvent {\n /** Version of the site's properties represented by this update. */\n version?: number;\n /** Set of properties that were updated - corresponds to the fields in \"properties\". */\n fields?: string[];\n /** Updated properties. */\n properties?: Properties;\n}\n\nexport interface Properties {\n /** Site categories. */\n categories?: Categories;\n /** Site locale. */\n locale?: Locale;\n /**\n * Site language.\n *\n * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.\n */\n language?: string | null;\n /**\n * Site currency format used to bill customers.\n *\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n */\n paymentCurrency?: string | null;\n /** Timezone in `America/New_York` format. */\n timeZone?: string | null;\n /** Email address. */\n email?: string | null;\n /** Phone number. */\n phone?: string | null;\n /** Fax number. */\n fax?: string | null;\n /** Address. */\n address?: V4Address;\n /** Site display name. */\n siteDisplayName?: string | null;\n /** Business name. */\n businessName?: string | null;\n /** Path to the site's logo in Wix Media (without Wix Media base URL). */\n logo?: string | null;\n /** Site description. */\n description?: string | null;\n /**\n * Business schedule. Regular and exceptional time periods when the business is open or the service is available.\n *\n * __Note:__ Not supported by Wix Bookings.\n */\n businessSchedule?: BusinessSchedule;\n /** Supported languages of a site and the primary language. */\n multilingual?: Multilingual;\n /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */\n consentPolicy?: ConsentPolicy;\n /**\n * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.\n *\n * Site business type.\n */\n businessConfig?: string | null;\n /** External site URL that uses Wix as its headless business solution. */\n externalSiteUrl?: string | null;\n /** Track clicks analytics. */\n trackClicksAnalytics?: boolean;\n /**\n * Company ID issued to the business by local authorities. Appears on invoices and price quotes.\n * @maxLength 50\n */\n companyId?: string | null;\n}\n\nexport interface Categories {\n /** Primary site category. */\n primary?: string;\n /**\n * Secondary site category.\n * @maxSize 50\n */\n secondary?: string[];\n /** Business Term Id */\n businessTermId?: string | null;\n}\n\nexport interface Locale {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */\n country?: string;\n}\n\nexport interface V4Address {\n /** Street name. */\n street?: string;\n /** City name. */\n city?: string;\n /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */\n country?: string;\n /** State. */\n state?: string;\n /**\n * Zip or postal code.\n * @maxLength 20\n */\n zip?: string;\n /** Extra information to be displayed in the address. */\n hint?: AddressHint;\n /** Whether this address represents a physical location. */\n isPhysical?: boolean;\n /** Google-formatted version of this address. */\n googleFormattedAddress?: string;\n /** Street number. */\n streetNumber?: string;\n /** Apartment number. */\n apartmentNumber?: string;\n /** Geographic coordinates of location. */\n coordinates?: GeoCoordinates;\n}\n\n/**\n * Extra information on displayed addresses.\n * This is used for display purposes. Used to add additional data about the address, such as \"In the passage\".\n * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.\n */\nexport interface AddressHint {\n /** Extra text displayed next to, or instead of, the actual address. */\n text?: string;\n /** Where the extra text should be displayed. */\n placement?: PlacementTypeWithLiterals;\n}\n\n/** Where the extra text should be displayed: before, after or instead of the actual address. */\nexport enum PlacementType {\n BEFORE = 'BEFORE',\n AFTER = 'AFTER',\n REPLACE = 'REPLACE',\n}\n\n/** @enumType */\nexport type PlacementTypeWithLiterals =\n | PlacementType\n | 'BEFORE'\n | 'AFTER'\n | 'REPLACE';\n\n/** Geocoordinates for a particular address. */\nexport interface GeoCoordinates {\n /** Latitude of the location. Must be between -90 and 90. */\n latitude?: number;\n /** Longitude of the location. Must be between -180 and 180. */\n longitude?: number;\n}\n\n/** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */\nexport interface BusinessSchedule {\n /**\n * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.\n * @maxSize 100\n */\n periods?: TimePeriod[];\n /**\n * Exceptions to the business's regular hours. The business can be open or closed during the exception.\n * @maxSize 100\n */\n specialHourPeriod?: SpecialHourPeriod[];\n}\n\n/** Weekly recurring time periods when the business is regularly open or the service is available. */\nexport interface TimePeriod {\n /** Day of the week the period starts on. */\n openDay?: DayOfWeekWithLiterals;\n /**\n * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n */\n openTime?: string;\n /** Day of the week the period ends on. */\n closeDay?: DayOfWeekWithLiterals;\n /**\n * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents\n * midnight at the end of the specified day.\n *\n * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.\n */\n closeTime?: string;\n}\n\n/** Enumerates the days of the week. */\nexport enum DayOfWeek {\n MONDAY = 'MONDAY',\n TUESDAY = 'TUESDAY',\n WEDNESDAY = 'WEDNESDAY',\n THURSDAY = 'THURSDAY',\n FRIDAY = 'FRIDAY',\n SATURDAY = 'SATURDAY',\n SUNDAY = 'SUNDAY',\n}\n\n/** @enumType */\nexport type DayOfWeekWithLiterals =\n | DayOfWeek\n | 'MONDAY'\n | 'TUESDAY'\n | 'WEDNESDAY'\n | 'THURSDAY'\n | 'FRIDAY'\n | 'SATURDAY'\n | 'SUNDAY';\n\n/** Exception to the business's regular hours. The business can be open or closed during the exception. */\nexport interface SpecialHourPeriod {\n /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n startDate?: string;\n /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */\n endDate?: string;\n /**\n * Whether the business is closed (or the service is not available) during the exception.\n *\n * Default: `true`.\n */\n isClosed?: boolean;\n /** Additional info about the exception. For example, \"We close earlier on New Year's Eve.\" */\n comment?: string;\n}\n\nexport interface Multilingual {\n /**\n * Supported languages list.\n * @maxSize 200\n */\n supportedLanguages?: SupportedLanguage[];\n /** Whether to redirect to user language. */\n autoRedirect?: boolean;\n}\n\nexport interface SupportedLanguage {\n /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */\n languageCode?: string;\n /** Locale. */\n locale?: Locale;\n /** Whether the supported language is the primary language for the site. */\n isPrimary?: boolean;\n /** Language icon. */\n countryCode?: string;\n /** How the language will be resolved. For internal use. */\n resolutionMethod?: ResolutionMethodWithLiterals;\n /** Whether the supported language is the primary language for site visitors. */\n isVisitorPrimary?: boolean | null;\n}\n\nexport enum ResolutionMethod {\n QUERY_PARAM = 'QUERY_PARAM',\n SUBDOMAIN = 'SUBDOMAIN',\n SUBDIRECTORY = 'SUBDIRECTORY',\n}\n\n/** @enumType */\nexport type ResolutionMethodWithLiterals =\n | ResolutionMethod\n | 'QUERY_PARAM'\n | 'SUBDOMAIN'\n | 'SUBDIRECTORY';\n\nexport interface ConsentPolicy {\n /** Whether the site uses cookies that are essential to site operation. Always `true`. */\n essential?: boolean | null;\n /** Whether the site uses cookies that affect site performance and other functional measurements. */\n functional?: boolean | null;\n /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */\n analytics?: boolean | null;\n /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */\n advertising?: boolean | null;\n /** CCPA compliance flag. */\n dataToThirdParty?: boolean | null;\n}\n\n/** A single mapping from the MetaSite ID to a particular service. */\nexport interface Translation {\n /** The service type. */\n serviceType?: string;\n /** The application definition ID; this only applies to services of type ThirdPartyApps. */\n appDefId?: string;\n /** The instance ID of the service. */\n instanceId?: string;\n}\n\nexport interface ChangeContext extends ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\n/** @oneof */\nexport interface ChangeContextPayloadOneOf {\n /** Properties were updated. */\n propertiesChange?: PropertiesChange;\n /** Default properties were created on site creation. */\n siteCreated?: SiteCreated;\n /** Properties were cloned on site cloning. */\n siteCloned?: SiteCloned;\n}\n\nexport interface PropertiesChange {}\n\nexport interface SiteCreated {\n /** Origin template site id. */\n originTemplateId?: string | null;\n}\n\nexport interface SiteCloned {\n /** Origin site id. */\n originMetaSiteId?: string;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n 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 DigitalGoodChangeMessage\n extends DigitalGoodChangeMessagePayloadOneOf {\n /** Digital good delivered */\n delivered?: DigitalGoodDelivered;\n /** Digital good canceled */\n cancelled?: DigitalGoodCancelled;\n /** Premium id */\n premiumId?: string;\n /**\n * Sbs service id\n * @format GUID\n */\n sbsServiceId?: string;\n /** Change time */\n changeTime?: Date | null;\n}\n\n/** @oneof */\nexport interface DigitalGoodChangeMessagePayloadOneOf {\n /** Digital good delivered */\n delivered?: DigitalGoodDelivered;\n /** Digital good canceled */\n cancelled?: DigitalGoodCancelled;\n}\n\nexport interface DigitalGoodDelivered {}\n\nexport interface DigitalGoodCancelled {}\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 /** Details related to the account */\n accountInfo?: AccountInfo;\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\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** Second produce for individual asset, each with its extended info. */\nexport interface RecollectPremiumAssetExtended\n extends RecollectPremiumAssetExtendedBillingDetailsOneOf {\n sbsBillingDetails?: SbsBillingDetails;\n bassBillingDetails?: BassBillingDetails;\n asset?: RecollectPremiumAsset;\n}\n\n/** @oneof */\nexport interface RecollectPremiumAssetExtendedBillingDetailsOneOf {\n sbsBillingDetails?: SbsBillingDetails;\n bassBillingDetails?: BassBillingDetails;\n}\n\n/** Service entity */\nexport interface Service {\n /**\n * service id\n * @format GUID\n * @readonly\n */\n serviceId?: string | null;\n /**\n * last invoice id\n * @readonly\n */\n lastInvoiceId?: string;\n /**\n * product id\n * @format GUID\n * @readonly\n */\n productId?: string | null;\n /**\n * creation date\n * @readonly\n */\n createdOn?: Date | null;\n /**\n * end date of subscription period\n * @readonly\n */\n endOfPeriod?: Date | null;\n /**\n * date of next renewal\n * @readonly\n */\n nextRenewal?: Date | null;\n /**\n * date of last renewal\n * @readonly\n */\n lastRenewal?: Date | null;\n /**\n * service status\n * @readonly\n */\n status?: ServiceStatusWithLiterals;\n /**\n * currency\n * @readonly\n * @format CURRENCY\n */\n currency?: string | null;\n /**\n * cycle\n * @readonly\n */\n cycle?: Cycle;\n /**\n * quantity of products\n * @readonly\n */\n quantity?: number;\n /**\n * payment source id\n * @format GUID\n */\n paymentSourceId?: string | null;\n /**\n * the metadata will be copied from the order line item this service was created from\n * @readonly\n */\n metadata?: Record<string, string>;\n /** recurring type of this service */\n recurringType?: RecurringTypeMessageRecurringTypeWithLiterals;\n /** pending changes that would be applied on the service in the future */\n pendingChanges?: PendingChanges;\n /** is external charge */\n externalCharge?: boolean;\n /** the external id of the service in the billing system */\n externalId?: string | null;\n /**\n * last successfully paid invoice id\n * @readonly\n */\n lastSuccessfulInvoiceId?: string;\n /**\n * indication of free trial data for service, if None - free trial was never activated for this service\n * @readonly\n */\n freeTrialData?: FreeTrialData;\n /**\n * transfer details, in case the service was transferred\n * @readonly\n */\n transferDetails?: TransferDetails;\n /**\n * total number of billing cycles. Service are created with this value set to 1, except free trial services which are created with 0.\n * @readonly\n */\n billingCyclesTotal?: number;\n /**\n * service discount details\n * @readonly\n */\n discountDetails?: DiscountDetails;\n /** price override amount */\n priceOverrideAmount?: string | null;\n /**\n * pricing plan guid\n * @format GUID\n * @readonly\n */\n pricingPlanGuid?: string;\n /** tax calculation type */\n taxCalculationType?: TaxCalculationTypeWithLiterals;\n /**\n * days before renewal when charge occurs\n * @readonly\n */\n chargeDaysBeforeRenewal?: number | null;\n /**\n * deferred-billing marker; only present when the service was purchased with a deferred-billing hold\n * @readonly\n */\n deferredBillingData?: DeferredBillingData;\n}\n\nexport interface CycleMessage {\n /** billing cycle of the service */\n cycle?: Cycle;\n}\n\n/** service statuses */\nexport enum ServiceStatus {\n UNKNOWN = 'UNKNOWN',\n ACTIVE = 'ACTIVE',\n CANCELED = 'CANCELED',\n FRAUDULENT = 'FRAUDULENT',\n SUSPENDED = 'SUSPENDED',\n UNPAID = 'UNPAID',\n}\n\n/** @enumType */\nexport type ServiceStatusWithLiterals =\n | ServiceStatus\n | 'UNKNOWN'\n | 'ACTIVE'\n | 'CANCELED'\n | 'FRAUDULENT'\n | 'SUSPENDED'\n | 'UNPAID';\n\nexport enum RecurringTypeMessageRecurringType {\n UNKNOWN = 'UNKNOWN',\n MANUAL = 'MANUAL',\n OFF = 'OFF',\n AUTO = 'AUTO',\n}\n\n/** @enumType */\nexport type RecurringTypeMessageRecurringTypeWithLiterals =\n | RecurringTypeMessageRecurringType\n | 'UNKNOWN'\n | 'MANUAL'\n | 'OFF'\n | 'AUTO';\n\nexport interface PendingChanges {\n /** service billing cycle change that will happen at the next cycle */\n cycle?: CycleMessage;\n /**\n * service productId change that will happen at the next cycle\n * @format GUID\n */\n productId?: string | null;\n}\n\nexport interface FreeTrialData {\n /**\n * date when the free trial ends\n * @readonly\n */\n endDate?: Date | null;\n /** indication if the service is currently on free trial period */\n active?: boolean;\n /** number of free trial days based on the product configuration. */\n numberOfDays?: number | null;\n}\n\nexport interface TransferDetails {\n /**\n * source service id\n * @format GUID\n * @readonly\n */\n sourceServiceId?: string | null;\n /**\n * destination service id\n * @format GUID\n * @readonly\n */\n destinationServiceId?: string | null;\n}\n\nexport interface DiscountDetails {\n /**\n * last used coupon guid\n * @format GUID\n */\n lastCouponGuid?: string;\n /**\n * last used coupon code\n * @maxLength 64\n */\n lastCouponCode?: string | null;\n}\n\nexport enum TaxCalculationType {\n UNKNOWN_TAX_CALCULATION_TYPE = 'UNKNOWN_TAX_CALCULATION_TYPE',\n TAX_CALC_TYPE_REGULAR = 'TAX_CALC_TYPE_REGULAR',\n TAX_CALC_TYPE_EXCLUDE_FROM_TAXES = 'TAX_CALC_TYPE_EXCLUDE_FROM_TAXES',\n TAX_CALC_TYPE_TAX_INCLUDED = 'TAX_CALC_TYPE_TAX_INCLUDED',\n TAX_CALC_TYPE_EXEMPTED_FOR_TAXES = 'TAX_CALC_TYPE_EXEMPTED_FOR_TAXES',\n TAX_CALC_TYPE_PARTIALLY_EXEMPTED_FOR_TAXES = 'TAX_CALC_TYPE_PARTIALLY_EXEMPTED_FOR_TAXES',\n}\n\n/** @enumType */\nexport type TaxCalculationTypeWithLiterals =\n | TaxCalculationType\n | 'UNKNOWN_TAX_CALCULATION_TYPE'\n | 'TAX_CALC_TYPE_REGULAR'\n | 'TAX_CALC_TYPE_EXCLUDE_FROM_TAXES'\n | 'TAX_CALC_TYPE_TAX_INCLUDED'\n | 'TAX_CALC_TYPE_EXEMPTED_FOR_TAXES'\n | 'TAX_CALC_TYPE_PARTIALLY_EXEMPTED_FOR_TAXES';\n\n/** deferred-billing marker of a service; absent from Service when billing was never deferred for it */\nexport interface DeferredBillingData {\n /**\n * true while the service is still parked in the deferred-billing hold (billing not yet activated)\n * @readonly\n */\n deferred?: boolean;\n /**\n * when billing was activated; only set once deferred is false\n * @readonly\n */\n activationDate?: Date | null;\n}\n\n/** Payment source entity */\nexport interface PaymentSource {\n /**\n * payment source id\n * @format GUID\n * @readonly\n */\n paymentSourceId?: string | null;\n /** payment method */\n paymentMethod?: PaymentMethod;\n /** billing contact */\n billingContact?: Address;\n /** is default - ABOUT TO BE DEPRECATED, do not use. */\n isDefault?: boolean;\n /** is saved */\n isSaved?: boolean;\n /**\n * owner of this payment source\n * @format GUID\n * @readonly\n */\n ownerId?: string | null;\n /** is verified */\n isVerified?: boolean;\n /** displayable label for payment method */\n paymentMethodDisplayLabel?: string;\n /**\n * date the payment source was created\n * @readonly\n */\n _createdDate?: Date | null;\n}\n\n/** Public credit card */\nexport interface PublicCreditCard {\n /**\n * name of credit card holder\n * @readonly\n */\n holderName?: string;\n /**\n * last digits (usually last 4)\n * @readonly\n */\n lastDigits?: string;\n /**\n * credit card expiration\n * @readonly\n */\n expiration?: YearMonth;\n /**\n * card brand, i.e. Visa, AmericanExpress\n * @readonly\n */\n cardBrand?: string;\n /**\n * id of bin record\n * @readonly\n */\n bin?: string;\n}\n\nexport interface YearMonth {\n /**\n * year\n * @min 2019\n * @max 2099\n */\n year?: number;\n /**\n * month\n * @min 1\n * @max 12\n */\n month?: number;\n}\n\n/** Public presentation of SEPA Direct Debit */\nexport interface PublicSepaDetails {\n /**\n * name of account holder\n * @readonly\n */\n accountHolderName?: string;\n /**\n * @format COUNTRY\n * @readonly\n */\n ibanCountryCode?: string;\n /**\n * last chars (usually last 5)\n * @readonly\n */\n ibanLastChars?: string;\n /**\n * The payment method type this account was created from if it was not created as a Direct Debit by user (ex: Sofort, iDeal)\n * @readonly\n */\n accountOriginPaymentMethod?: V1PaymentMethodType;\n}\n\nexport interface V1PaymentMethodType\n extends V1PaymentMethodTypeType_SelectorOneOf {\n card?: Card;\n directDebit?: DirectDebit;\n cash?: Cash;\n bankTransfer?: BankTransfer;\n alternativePaymentMethod?: AlternativePaymentMethod;\n /** indicates if the payment method should be explicitly verified */\n shouldVerify?: boolean | null;\n}\n\n/** @oneof */\nexport interface V1PaymentMethodTypeType_SelectorOneOf {\n card?: Card;\n directDebit?: DirectDebit;\n cash?: Cash;\n bankTransfer?: BankTransfer;\n alternativePaymentMethod?: AlternativePaymentMethod;\n}\n\nexport enum CardBrand {\n UNKNOWN = 'UNKNOWN',\n VISA = 'VISA',\n MASTERCARD = 'MASTERCARD',\n /** American Express */\n AMEX = 'AMEX',\n DISCOVER = 'DISCOVER',\n JCB = 'JCB',\n /** Diners Club */\n DINERS = 'DINERS',\n /** Carte Bancaire */\n CARTE_BLUE = 'CARTE_BLUE',\n ELO = 'ELO',\n /** deprecated, please use UNIONPAY */\n UNION_PAY = 'UNION_PAY',\n UNIONPAY = 'UNIONPAY',\n}\n\n/** @enumType */\nexport type CardBrandWithLiterals =\n | CardBrand\n | 'UNKNOWN'\n | 'VISA'\n | 'MASTERCARD'\n | 'AMEX'\n | 'DISCOVER'\n | 'JCB'\n | 'DINERS'\n | 'CARTE_BLUE'\n | 'ELO'\n | 'UNION_PAY'\n | 'UNIONPAY';\n\nexport interface CardBrands {\n brand?: CardBrandWithLiterals[];\n}\n\nexport interface AllCardBrands {}\n\nexport enum DirectDebitBrand {\n UNKNOWN = 'UNKNOWN',\n SEPA = 'SEPA',\n}\n\n/** @enumType */\nexport type DirectDebitBrandWithLiterals =\n | DirectDebitBrand\n | 'UNKNOWN'\n | 'SEPA';\n\nexport enum CashType {\n UNKNOWN = 'UNKNOWN',\n BOLETO = 'BOLETO',\n}\n\n/** @enumType */\nexport type CashTypeWithLiterals = CashType | 'UNKNOWN' | 'BOLETO';\n\nexport enum BankTransferType {\n UNKNOWN = 'UNKNOWN',\n SOFORT = 'SOFORT',\n}\n\n/** @enumType */\nexport type BankTransferTypeWithLiterals =\n | BankTransferType\n | 'UNKNOWN'\n | 'SOFORT';\n\nexport enum RecurringType {\n None = 'None',\n AUTO = 'AUTO',\n HYBRID = 'HYBRID',\n /** for payment methods like PIX that use fixed mandate for recurring */\n FIXED_MANDATE = 'FIXED_MANDATE',\n}\n\n/** @enumType */\nexport type RecurringTypeWithLiterals =\n | RecurringType\n | 'None'\n | 'AUTO'\n | 'HYBRID'\n | 'FIXED_MANDATE';\n\nexport interface PaymentType {\n /** if payment will be made online, if yes user will redirect to pay else user will get information how to pay */\n isOnline?: boolean;\n /** if payment will get status response immediately */\n isRealtime?: boolean;\n /** type of payment recurring */\n recurringType?: RecurringTypeWithLiterals;\n /** if the payment method is saved, i.e. it can be used for future payments without re-entering the details */\n savedMethod?: boolean;\n /** if the payment method requires a fixed mandate (e.g., PIX) */\n fixedMandate?: boolean;\n}\n\nexport interface Account {\n /** the external app id to connect payments widget on rendering */\n appId?: string;\n /** the external appInstance id to connect payments widget on rendering */\n instanceId?: string;\n}\n\nexport enum AlternativePaymentMethodType {\n UNKNOWN = 'UNKNOWN',\n PAYPAL = 'PAYPAL',\n /** Without PaymentIntegration - Stripe India (in the future, with PaymentIntegration: STRIPE_INDIA). With PaymentIntegration - Apple Pay, Razorpay, Cashier CC */\n EXTERNAL_CREDIT_CARD = 'EXTERNAL_CREDIT_CARD',\n SOFORT = 'SOFORT',\n SEPA_OFFLINE = 'SEPA_OFFLINE',\n RAZORPAY = 'RAZORPAY',\n PIX = 'PIX',\n BANK_TRANSFER = 'BANK_TRANSFER',\n UPI = 'UPI',\n /** Paired with PaymentIntegration STRIPE_SPT or STRIPE_LINK. */\n STRIPE = 'STRIPE',\n}\n\n/** @enumType */\nexport type AlternativePaymentMethodTypeWithLiterals =\n | AlternativePaymentMethodType\n | 'UNKNOWN'\n | 'PAYPAL'\n | 'EXTERNAL_CREDIT_CARD'\n | 'SOFORT'\n | 'SEPA_OFFLINE'\n | 'RAZORPAY'\n | 'PIX'\n | 'BANK_TRANSFER'\n | 'UPI'\n | 'STRIPE';\n\nexport interface PaymentBrand {\n /** payment brand type */\n brand?: string;\n /**\n * URL of the logo of the payment brand\n * @format WEB_URL\n */\n logoUrl?: string | null;\n}\n\n/**\n * PaymentIntegration is a discriminator used together with AlternativePaymentMethodType.\n * Valid pairings (enforced at runtime by PaymentSourceConverters):\n * EXTERNAL_CREDIT_CARD + NONE → Stripe India (current)\n * EXTERNAL_CREDIT_CARD + STRIPE_INDIA → Stripe India (new, to migrate to)\n * EXTERNAL_CREDIT_CARD + APPLE_PAY → Apple Pay\n * EXTERNAL_CREDIT_CARD + RAZORPAY_INTEGRATION → Razorpay CC\n * EXTERNAL_CREDIT_CARD + CASHIER_CC → Credit Card via Cashier widget\n * STRIPE + STRIPE_SPT → Stripe Projects (Shared-Payment-Token)\n * STRIPE + STRIPE_LINK → Stripe Link (Stripe PaymentElement, initial-only; recurring rides saved-PM path)\n * UPI + RAZORPAY_INTEGRATION → Razorpay UPI\n * All other AlternativePaymentMethodType values use NONE (no integration).\n */\nexport enum PaymentIntegration {\n /** e.g. for payments that don’t need special source or integration */\n NONE = 'NONE',\n APPLE_PAY = 'APPLE_PAY',\n RAZORPAY_INTEGRATION = 'RAZORPAY_INTEGRATION',\n STRIPE_INDIA = 'STRIPE_INDIA',\n CASHIER_CC = 'CASHIER_CC',\n STRIPE_SPT = 'STRIPE_SPT',\n STRIPE_LINK = 'STRIPE_LINK',\n}\n\n/** @enumType */\nexport type PaymentIntegrationWithLiterals =\n | PaymentIntegration\n | 'NONE'\n | 'APPLE_PAY'\n | 'RAZORPAY_INTEGRATION'\n | 'STRIPE_INDIA'\n | 'CASHIER_CC'\n | 'STRIPE_SPT'\n | 'STRIPE_LINK';\n\nexport interface Card extends CardSupportedBrandsOneOf {\n brands?: CardBrands;\n allBrands?: AllCardBrands;\n}\n\n/** @oneof */\nexport interface CardSupportedBrandsOneOf {\n brands?: CardBrands;\n allBrands?: AllCardBrands;\n}\n\nexport interface DirectDebit {\n brand?: DirectDebitBrandWithLiterals;\n}\n\nexport interface Cash {\n cashType?: CashTypeWithLiterals;\n}\n\nexport interface BankTransfer {\n bankTransferType?: BankTransferTypeWithLiterals;\n}\n\nexport interface AlternativePaymentMethod {\n /** billing unique id for payment method, can be several for each payment method */\n _id?: string;\n /** APM name to show in order page */\n name?: string;\n /**\n * URL of the logo of the apm.\n * @format WEB_URL\n */\n logoUrl?: string | null;\n /** payment configuration of the alternative payment method */\n paymentType?: PaymentType;\n /**\n * price of minimum amount in APM to send validate payment transaction\n * @format DECIMAL_VALUE\n */\n minimalPaymentAmount?: string | null;\n /**\n * to communicate to the user the expiry of the offline payment instructions\n * @readonly\n */\n paymentExpiryByDays?: number | null;\n /** the external unique id of the payment method */\n externalPaymentMethodUniqueId?: string;\n /** the external account to connect payments widget */\n externalAccount?: Account;\n /** the identifier of the payment method */\n alternativePaymentMethodType?: AlternativePaymentMethodTypeWithLiterals;\n /**\n * payment brand\n * @maxSize 100\n * @readonly\n */\n brand?: PaymentBrand[];\n /** the payment integration type, for example APPLE_PAY */\n paymentIntegration?: PaymentIntegrationWithLiterals;\n /**\n * maximum recurring mandate amount, computed dynamically from order total\n * @format DECIMAL_VALUE\n */\n mandateMaxAmount?: string | null;\n /**\n * PAC ID used to resolve payment methods; FE forwards to payment-services-web so the widget uses the correct gateway config (e.g., sandbox Stripe vs production)\n * @format GUID\n */\n paymentAcceptanceConfigurationId?: string | null;\n}\n\n/** Public presentation of a Direct Debit */\nexport interface PublicDirectDebitDetails {\n sepaDetails?: PublicSepaDetails;\n}\n\nexport interface CashDetails {\n cashType?: CashTypeWithLiterals;\n}\n\nexport interface BankTransferDetails {\n type?: BankTransferTypeWithLiterals;\n}\n\nexport interface PublicAlternativePaymentMethodDetails {\n /** billing unique id, using for filtering the available payment method */\n alternativePaymentMethodId?: string;\n /** Display name of the payment method used */\n buyerPaymentMethodName?: string;\n /** payment method type, for example PAYPAL */\n alternativePaymentMethodType?: AlternativePaymentMethodTypeWithLiterals;\n /** payment brand */\n paymentBrand?: PaymentBrand;\n /** Display name of the buyer */\n buyerNameDescriptor?: string;\n /**\n * specific gateway data. For example, \"emandate\" for India gateways.\n * @maxSize 32\n * @readonly\n */\n data?: Record<string, string>;\n /** payment method expiration */\n expiration?: YearMonth;\n /** payment method integration, for example APPLE_PAY */\n paymentIntegration?: PaymentIntegrationWithLiterals;\n}\n\nexport interface ExternalPaymentMethodDetails {\n /** billing unique id, using for filtering the available payment method */\n _id?: string;\n paymentDisplayProperties?: PaymentDisplayProperties;\n /** payment method type, for example PAYPAL, CREDIT_CARD */\n paymentMethodType?: PaymentMethodTypeWithLiterals;\n}\n\nexport interface PaymentDisplayProperties {\n /** Display name of the buyer */\n buyerNameDescriptor?: string;\n /** Display name of the payment method */\n buyerPaymentDescriptor?: string;\n /** payment brand */\n paymentBrand?: PaymentBrand;\n /**\n * specific gateway data. For example, \"mandate\" for India gateways.\n * @maxSize 32\n */\n data?: Record<string, string>;\n}\n\nexport enum PaymentMethodType {\n UNKNOWN = 'UNKNOWN',\n PAYPAL = 'PAYPAL',\n EXTERNAL_CREDIT_CARD = 'EXTERNAL_CREDIT_CARD',\n SOFORT = 'SOFORT',\n SEPA_OFFLINE = 'SEPA_OFFLINE',\n RAZORPAY = 'RAZORPAY',\n PIX = 'PIX',\n}\n\n/** @enumType */\nexport type PaymentMethodTypeWithLiterals =\n | PaymentMethodType\n | 'UNKNOWN'\n | 'PAYPAL'\n | 'EXTERNAL_CREDIT_CARD'\n | 'SOFORT'\n | 'SEPA_OFFLINE'\n | 'RAZORPAY'\n | 'PIX';\n\n/** Payment method entity */\nexport interface PaymentMethod extends PaymentMethodPaymentMethodSelectorOneOf {\n /** credit card */\n publicCreditCard?: PublicCreditCard;\n /** DEPRECATED -> Use PublicDirectDebitDetails.PublicSepaDetails instead */\n publicSepaDetails?: PublicSepaDetails;\n /** Direct Debit */\n publicDirectDebitDetails?: PublicDirectDebitDetails;\n /** cash payment for example Boleto */\n cashDetails?: CashDetails;\n /** bank transfer for example SOFORT, iDeal */\n bankTransferDetails?: BankTransferDetails;\n /**\n * @deprecated\n * @replacedBy external_payment_method_details\n */\n publicAlternativePaymentMethodDetails?: PublicAlternativePaymentMethodDetails;\n /** external payment method (for example Cashier-PayPal) */\n externalPaymentMethodDetails?: ExternalPaymentMethodDetails;\n /** Whether this payment method may be offered to the user as a reusable saved option. Unlike is_saved (whether this source is stored for future use), this reflects the method's own eligibility to be shown as saved. */\n displayableAsSaved?: boolean;\n}\n\n/** @oneof */\nexport interface PaymentMethodPaymentMethodSelectorOneOf {\n /** credit card */\n publicCreditCard?: PublicCreditCard;\n /** DEPRECATED -> Use PublicDirectDebitDetails.PublicSepaDetails instead */\n publicSepaDetails?: PublicSepaDetails;\n /** Direct Debit */\n publicDirectDebitDetails?: PublicDirectDebitDetails;\n /** cash payment for example Boleto */\n cashDetails?: CashDetails;\n /** bank transfer for example SOFORT, iDeal */\n bankTransferDetails?: BankTransferDetails;\n /**\n * @deprecated\n * @replacedBy external_payment_method_details\n */\n publicAlternativePaymentMethodDetails?: PublicAlternativePaymentMethodDetails;\n /** external payment method (for example Cashier-PayPal) */\n externalPaymentMethodDetails?: ExternalPaymentMethodDetails;\n}\n\nexport interface Address {\n /** first name */\n fullName?: FullName;\n /**\n * country code (two characters, i.e. US, GB, BR, etc)\n * @format COUNTRY\n */\n country?: string;\n /**\n * state code (ISO 3166-2 format, i.e. US-AL for US state Alabama)\n * @maxLength 6\n */\n stateCode?: string | null;\n /**\n * city\n * @maxLength 100\n */\n city?: string | null;\n /**\n * zip code\n * @maxLength 50\n */\n zipCode?: string | null;\n /**\n * phone number\n * @format PHONE\n */\n phoneNumber?: string | null;\n /**\n * company name\n * @maxLength 100\n */\n company?: string | null;\n /** street */\n street?: Street;\n /** tax information */\n taxInfo?: TaxInfo;\n /**\n * email\n * @format EMAIL\n */\n email?: string | null;\n}\n\nexport interface FullName {\n /**\n * first name\n * @maxLength 100\n */\n firstName?: string;\n /**\n * last name\n * @maxLength 100\n */\n lastName?: string;\n}\n\nexport interface Street {\n /**\n * street name\n * @maxLength 100\n */\n name?: string;\n /**\n * street number\n * @maxLength 10\n */\n number?: string;\n}\n\nexport interface TaxInfo {\n /** tax id */\n taxId?: string;\n /** tax type, accepting values: REGULAR / EU_VAT/ JAPAN_JCT / AU_GST / US_TAX / SG_GST */\n taxType?: string;\n /** tax info models */\n models?: TaxInfoModel[];\n}\n\nexport interface TaxInfoModel {\n /** tax id */\n taxId?: string;\n /** tax type, accepting values: REGULAR / EU_VAT/ JAPAN_JCT / AU_GST / US_TAX / SG_GST */\n taxType?: string;\n}\n\n/** Invoice entity */\nexport interface Invoice {\n /**\n * invoice id\n * @readonly\n */\n invoiceId?: string;\n /**\n * shipping data\n * @readonly\n */\n shipping?: Shipping;\n /**\n * payment source id. Usually GUID but can be empty\n * @maxLength 36\n */\n paymentSourceId?: string;\n /**\n * date of creation\n * @readonly\n */\n createdOn?: Date | null;\n /**\n * currency\n * @readonly\n * @format CURRENCY\n */\n currency?: string;\n /**\n * list of invoice line items\n * @readonly\n */\n invoiceLineItems?: InvoiceLineItem[];\n /**\n * status\n * @readonly\n */\n invoiceStatus?: InvoiceStatusWithLiterals;\n /**\n * the metadata will be a copy of the metadata with which the original order was created\n * @readonly\n */\n metadata?: Record<string, string>;\n /**\n * total amount\n * @readonly\n */\n totalAmount?: string;\n /**\n * invoice refer for an initial or recurring order\n * @readonly\n */\n recurring?: boolean;\n /**\n * external owner id\n * @format GUID\n * @readonly\n */\n externalOwnerId?: string | null;\n /**\n * the successful charge date of the invoice\n * @readonly\n */\n paymentDate?: Date | null;\n /**\n * total amount paid (subtract refunds from the amount in total_amount)\n * @readonly\n */\n totalAmountPaid?: string;\n /**\n * order id\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * list of the latest transactions related to this invoice\n * @maxSize 100\n * @readonly\n */\n transactions?: TransactionData[];\n /**\n * tenant id, based on the invoice line item products\n * @format GUID\n * @readonly\n */\n tenantId?: string | null;\n /**\n * card network used by the successful charge selected for display\n * @maxLength 50\n * @readonly\n */\n successfulChargeCardBrand?: string | null;\n /**\n * Error code for the latest declined charge, resolved from its transaction note.\n * Unset unless the last transaction was declined.\n * @maxLength 20\n * @readonly\n */\n declineErrorCode?: string | null;\n}\n\nexport interface Shipping extends ShippingShippingSelectorOneOf {\n /** a customer shipping details */\n shippingDetails?: ShippingDetails;\n /** a customer self pickup */\n selfPickup?: SelfPickup;\n}\n\n/** @oneof */\nexport interface ShippingShippingSelectorOneOf {\n /** a customer shipping details */\n shippingDetails?: ShippingDetails;\n /** a customer self pickup */\n selfPickup?: SelfPickup;\n}\n\nexport interface ShippingDetails {\n /** shipping address */\n address?: Address;\n /** tracking number */\n trackingNumber?: string;\n}\n\nexport interface SelfPickup {}\n\n/** Invoice line item entity */\nexport interface InvoiceLineItem {\n /**\n * invoice line id\n * @format GUID\n * @readonly\n */\n invoiceLineItemId?: string | null;\n /**\n * product id\n * @format GUID\n * @readonly\n */\n productId?: string | null;\n /**\n * cycle\n * @readonly\n */\n cycle?: Cycle;\n /**\n * unit price\n * @readonly\n */\n unitAmount?: string;\n /**\n * quantity of units\n * @readonly\n */\n quantity?: number;\n /**\n * amount before taxes\n * @readonly\n */\n beforeTaxesAmount?: string;\n /**\n * total amount including taxes\n * @readonly\n */\n totalAmount?: string;\n /**\n * service id\n * @format GUID\n * @readonly\n */\n serviceId?: string | null;\n /**\n * list of taxes\n * @readonly\n */\n taxes?: Tax[];\n /**\n * the metadata will be a a reference to the service metadata\n * @readonly\n */\n metadata?: Record<string, string>;\n /**\n * list of taxes with amounts\n * @readonly\n */\n taxAmounts?: TaxAmount[];\n /**\n * the total price of this item before adding/reducing taxes/discounts/credit\n * @readonly\n */\n subTotalAmount?: string;\n /**\n * discount from applied coupon that will be reduced\n * @readonly\n */\n discountAmount?: string;\n /**\n * external charge id that refer to this invoice line item\n * @readonly\n */\n externalChargeId?: string | null;\n /**\n * coupon that was used to create this invoice line item\n * @readonly\n */\n usedCoupon?: CouponData;\n /**\n * for cycle based services, the start of the period\n * @readonly\n */\n periodStart?: Date | null;\n /**\n * for cycle based services, the end of the period\n * @readonly\n */\n periodEnd?: Date | null;\n /**\n * line-item credit that reduces the amount due (SBS calcCredit slice); excludes coupon/virtual-money/account credit\n * @readonly\n */\n creditAmount?: string;\n}\n\n/** tax entity */\nexport interface Tax {\n /** tax name */\n name?: string;\n /**\n * tax percent, will save two numeric values after decimal point\n * @max 100\n */\n percent?: number;\n /** If taxId is valid and country can be exempted for tax => set to true */\n isTaxExempt?: boolean;\n}\n\nexport interface TaxAmount {\n /** tax entity */\n tax?: Tax;\n /** tax amount */\n amount?: string;\n}\n\nexport interface CouponData {\n /**\n * coupon id\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * coupon name\n * @readonly\n */\n name?: string | null;\n}\n\nexport enum InvoiceStatus {\n UNKNOWN = 'UNKNOWN',\n DRAFT = 'DRAFT',\n PAID = 'PAID',\n VOID = 'VOID',\n REFUNDED = 'REFUNDED',\n DECLINED = 'DECLINED',\n PAYMENT_IN_PROGRESS = 'PAYMENT_IN_PROGRESS',\n}\n\n/** @enumType */\nexport type InvoiceStatusWithLiterals =\n | InvoiceStatus\n | 'UNKNOWN'\n | 'DRAFT'\n | 'PAID'\n | 'VOID'\n | 'REFUNDED'\n | 'DECLINED'\n | 'PAYMENT_IN_PROGRESS';\n\nexport interface TransactionData {\n /**\n * transaction id\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * transaction code\n * @maxLength 100\n * @readonly\n */\n code?: string | null;\n}\n\nexport interface Subscription {\n /**\n * Subscription's unique id. Automatically generated and read-only.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Date when subscription was created\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date when subscription was updated\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Revision of subscription. Increments upon changes\n * @readonly\n */\n revision?: string | null;\n /**\n * Subscription name: minLength is 1, maxLength is 150\n * @maxLength 150\n */\n name?: string;\n /**\n * Subscription description. Optional.\n * @maxLength 500\n */\n description?: string | null;\n /**\n * 3. No Start Date:\n * - If the start_date is not provided, this field will default to \"now\",\n * meaning the subscription will start immediately.\n */\n startDate?: Date | null;\n /**\n * Represents when the subscription will end, relevant for subscriptions with a termed period.\n * If not provided, will be calculated based on billing schedule. Should be empty for evergreen subscription.\n * Note: A 13-hour tolerance is applied when validating the end date to handle for time zone differences and minor discrepancies.\n */\n endDate?: Date | null;\n /** Business origin subscription is coming from. In site-level subscription it will be vertical app_id and entity_id */\n origin?: BusinessOrigin;\n /** Customer information like id and identity type (member or contact) */\n customer?: Customer;\n /**\n * Status of subscription\n * @readonly\n */\n status?: SubscriptionStatusWithLiterals;\n /** Billing details parameters including schedule, currency, etc. */\n billingSettings?: BillingSettings;\n /**\n * Includes many attributes about billing status of the subscription\n * @readonly\n */\n billingStatus?: BillingStatus;\n /** Shipping address associated with subscription. At the moment used only for payments. Optional. */\n shippingAddress?: FullAddressDetails;\n /** Restrictions on possible subscription actions. If not provided, default policies are all restrictions enabled. */\n policies?: SubscriptionPolicies;\n /**\n * Information related to either paused subscription or scheduled for future pause\n * @readonly\n */\n pauseInfo?: PauseInfo;\n /**\n * Information related to cancellation for already canceled subscription or scheduled for cancel\n * @readonly\n */\n cancellationInfo?: CancellationInfo;\n /**\n * Pending update for the next billing cycle\n * @readonly\n */\n pendingUpdateData?: SubscriptionUpdateData;\n /**\n * Indicator whether subscription is managed by BASS or external system, like SAPI, for example.\n * @internal\n * @readonly\n */\n bassManaged?: boolean;\n /**\n * Key / Value store to keep up to 10 additional values related to the subscription.\n * Key max length = 50, Value max length = 200. Value can not be empty.\n * Should not include any sensitive or PII information.\n * @maxSize 10\n */\n metadata?: Record<string, string>;\n /**\n * Pending update for a specific date\n * @readonly\n */\n specificDatePendingUpdateData?: SpecificDateSubscriptionUpdateData;\n /**\n * ChangesCounter of subscription. Increments upon every change to the domain\n * @readonly\n */\n changesCounter?: string | null;\n /**\n * Billing order id. Optional.\n * @format GUID\n */\n orderId?: string | null;\n /** Platform origin subscription is coming from. */\n platformOrigin?: PlatformOrigin;\n /**\n * The Business Location ID represents a business location in an external service, which includes the business address.\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Indicates BASS needs an operator choice for billing start when resuming this subscription.\n * @internal\n * @readonly\n */\n requiresResumeBillingStartChoice?: boolean;\n /**\n * items, minSize is 1, maxSize is 100\n * @maxSize 100\n */\n items?: Item[];\n}\n\nexport interface BusinessOrigin {\n /** @format GUID */\n appId?: string | null;\n /** @format GUID */\n entityId?: string | null;\n}\n\nexport interface Customer extends CustomerIdOneOf {\n /**\n * Visitor ID of the customer. Available when the customer is an anonymous\n * site visitor.\n * @format GUID\n */\n visitorId?: string;\n /**\n * Contact ID of the customer. Available when the customer is a\n * [contact](https://dev.wix.com/docs/rest/api-reference/people-communications/contacts/contacts/contact-v-4#contact-object).\n * @format GUID\n */\n contactId?: string;\n /**\n * Member ID of the customer. Available when the customer is a\n * [member](https://dev.wix.com/docs/rest/api-reference/people-communications/members/members#member-object).\n * @format GUID\n */\n memberId?: string;\n /**\n * Wix account ID\n * @format GUID\n */\n accountId?: string;\n}\n\n/** @oneof */\nexport interface CustomerIdOneOf {\n /**\n * Visitor ID of the customer. Available when the customer is an anonymous\n * site visitor.\n * @format GUID\n */\n visitorId?: string;\n /**\n * Contact ID of the customer. Available when the customer is a\n * [contact](https://dev.wix.com/docs/rest/api-reference/people-communications/contacts/contacts/contact-v-4#contact-object).\n * @format GUID\n */\n contactId?: string;\n /**\n * Member ID of the customer. Available when the customer is a\n * [member](https://dev.wix.com/docs/rest/api-reference/people-communications/members/members#member-object).\n * @format GUID\n */\n memberId?: string;\n /**\n * Wix account ID\n * @format GUID\n */\n accountId?: string;\n}\n\nexport enum SubscriptionStatus {\n UNKNOWN = 'UNKNOWN',\n /** Subscription created in this status, but hasn't been paid for yet. Filtered out from subscriptions querying. */\n DRAFT = 'DRAFT',\n /** Subscription that will be active in future. */\n PENDING = 'PENDING',\n /** Subscription is active */\n ACTIVE = 'ACTIVE',\n /** Subscription is paused */\n PAUSED = 'PAUSED',\n /** Subscription was ended */\n ENDED = 'ENDED',\n /** Subscription was canceled or auto-renew off. Ended before its time. */\n CANCELED = 'CANCELED',\n}\n\n/** @enumType */\nexport type SubscriptionStatusWithLiterals =\n | SubscriptionStatus\n | 'UNKNOWN'\n | 'DRAFT'\n | 'PENDING'\n | 'ACTIVE'\n | 'PAUSED'\n | 'ENDED'\n | 'CANCELED';\n\nexport interface BillingSettings {\n /**\n * Currency of all subscription items prices. Three letter ISO currency code. https://en.wikipedia.org/wiki/ISO_4217\n * @format CURRENCY\n */\n currency?: string;\n /** customer payment source to make recurring payments with */\n paymentMethod?: V1PaymentMethod;\n /** Instructs how payments will be collected. */\n collectionMethod?: CollectionMethodWithLiterals;\n /**\n * Duration of cycle. For example, 1 MONTH, 2 WEEKS, 7 DAYS, 1 YEAR etc.\n * Shortest supported cycle duration is 7 days.\n */\n cycleDuration?: Duration;\n /**\n * Number of billing cycles. If not set subscription auto-renewed until cycle-auto-renew will be disabled.\n * @min 1\n */\n totalCycles?: number | null;\n /** If set to false, subscription will be canceled at the next billing cycle. */\n cycleAutoRenew?: boolean;\n /** Billing Schedule to be defined in order to override default billing schedule */\n customBillingSchedule?: CustomBillingSchedule;\n /** Definition of trial period */\n freeTrialDuration?: Duration;\n /**\n * Shipping costs collected each cycle\n * @format DECIMAL_VALUE\n * @deprecated\n * @replacedBy shipping_charges\n * @targetRemovalDate 2024-10-31\n */\n shippingFee?: string | null;\n /** Billing address associated with subscription to be used for payments. */\n billingAddress?: FullAddressDetails;\n taxSettings?: TaxSettings;\n /**\n * Fees that are only added to an invoice when a specific condition is met.\n * For example, a setup fee that only applies to the very first invoice of a\n * subscription.\n *\n * Max: 5 additional fees\n * @maxSize 5\n */\n additionalFees?: AdditionalFee[];\n /** Shipping fee charges */\n shippingCharges?: ShippingCharges;\n /**\n * General discount that applied to all items in the subscription\n * @maxSize 5\n */\n discounts?: Discount[];\n /**\n * Details about the external collection service.\n * Only set when the collection_method is EXTERNAL.\n */\n externalCollectionDetails?: ExternalCollectionDetails;\n /**\n * Day of month (1-28) on which the first recurring billing date is anchored.\n * Applies to monthly subscriptions only. Subsequent billing dates may shift\n * if the subscription is modified (e.g. payment date update, pause/resume).\n * @internal\n * @min 1\n * @max 28\n */\n billingAnchorDay?: number | null;\n}\n\nexport interface V1PaymentMethod {\n /**\n * reference to payment source id stored in payments system\n * @format GUID\n */\n _id?: string;\n}\n\nexport enum CollectionMethod {\n UNKNOWN = 'UNKNOWN',\n /** Subscriber automatically charged */\n AUTO_CHARGE = 'AUTO_CHARGE',\n /** Payments manually collected and managed by owner */\n OFFLINE = 'OFFLINE',\n /** Payment will be collected somehow. Billing only issues invoice per cycle. */\n SEND_INVOICE = 'SEND_INVOICE',\n /** Payment will be collected externally */\n EXTERNAL = 'EXTERNAL',\n /** Indicates the product has a zero amount, meaning its free with no payment required. */\n FREE = 'FREE',\n}\n\n/** @enumType */\nexport type CollectionMethodWithLiterals =\n | CollectionMethod\n | 'UNKNOWN'\n | 'AUTO_CHARGE'\n | 'OFFLINE'\n | 'SEND_INVOICE'\n | 'EXTERNAL'\n | 'FREE';\n\nexport interface Duration {\n /** Duration unit: DAY, WEEK, MONTH, YEAR */\n unit?: DurationUnitWithLiterals;\n /**\n * Amount of units. For example, 1 MONTH, 1 YEAR, 2 WEEKS, etc. Optional. Default is 1.\n * @min 1\n */\n count?: number | null;\n}\n\nexport enum DurationUnit {\n UNKNOWN = 'UNKNOWN',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type DurationUnitWithLiterals =\n | DurationUnit\n | 'UNKNOWN'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface CustomBillingSchedule {\n /**\n * Amount of cycles to be paid on Subscription creation, currently only cycles_to_pay_on_creation equals to 1 is supported\n * When used with Subscription.start_date, Subscription cycles will be paid on creation but Subscription will be activated in the future\n * @min 1\n * @max 1\n */\n cyclesToPayOnCreation?: number | null;\n}\n\nexport interface FullAddressDetails {\n /** Details about the person associated with the address. */\n contactDetails?: FullAddressContactDetails;\n /** Information about the address. */\n address?: V1Address;\n}\n\nexport interface FullAddressContactDetails {\n /** First name of the contact. */\n firstName?: string | null;\n /** Last name of the contact. */\n lastName?: string | null;\n /**\n * Phone number of the contact.\n * @format PHONE\n */\n phone?: string | null;\n /** Company associated with the contact. */\n company?: string | null;\n /**\n * Email address of the contact.\n * @format EMAIL\n */\n email?: string | null;\n}\n\nexport interface V1Address extends V1AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine1?: string | null;\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 * @format COUNTRY\n */\n country?: string | null;\n /**\n * Subdivision. Usually a state, region, prefecture, or province code,\n * according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2).\n */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n}\n\n/** @oneof */\nexport interface V1AddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: StreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface TaxSettings {\n /** If true then taxes are included in given prices */\n inclusive?: boolean;\n}\n\nexport interface AdditionalFee {\n /**\n * Name of the conditional fee.\n *\n * Max: 500 characters\n * @maxLength 500\n */\n name?: string;\n /**\n * Amount of the conditional fee.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n amount?: string;\n /**\n * When the fee is added to the invoice.\n *\n * + `UNKNOWN_FEE_TRIGGER`: There is no information about when the fee is added to an invoice.\n * + `FIRST_PAYMENT`: The fee is only added to the very first invoice of a subscription.\n * @deprecated When the fee is added to the invoice.\n *\n * + `UNKNOWN_FEE_TRIGGER`: There is no information about when the fee is added to an invoice.\n * + `FIRST_PAYMENT`: The fee is only added to the very first invoice of a subscription.\n * @replacedBy cycles\n * @targetRemovalDate 2025-12-31\n */\n trigger?: AdditionalFeeTriggerWithLiterals;\n /** Information about the tax of the conditional fee. */\n tax?: V1Tax;\n /**\n * Specifies the cycles during which the fee will be applied. If this field is provided,\n * it determines the exact range of cycles the fee applies to. The logic is as follows:\n *\n * - `cycle_from`: The first cycle the fee will be added to. Must be greater than 0.\n * - `number_of_cycles`: The number of consecutive cycles the fee will be applied to,\n * starting from `cycle_from`. If not specified, the fee applies to all cycles starting\n * from `cycle_from`.\n *\n * Example:\n * - `cycle_from = 1, number_of_cycles = 3`: Fee applies to cycles 1, 2, and 3.\n * - `cycle_from = 2, number_of_cycles = None`: Fee applies to cycles 2 and onward indefinitely.\n *\n * If `cycles` is not specified (`None`), the fee will be applied on all cycles.\n */\n cycles?: Cycles;\n /** Indicates the source of the fee, Contains app_id and entity_id */\n origin?: Origin;\n}\n\nexport enum AdditionalFeeTrigger {\n UNKNOWN = 'UNKNOWN',\n /** Charge upon subscription first payment */\n FIRST_PAYMENT = 'FIRST_PAYMENT',\n}\n\n/** @enumType */\nexport type AdditionalFeeTriggerWithLiterals =\n | AdditionalFeeTrigger\n | 'UNKNOWN'\n | 'FIRST_PAYMENT';\n\nexport interface V1Tax extends V1TaxValueOneOf {\n /**\n * Tax amount for the invoice's line item. Available when the tax is an\n * amount and not a precentage.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n amount?: string;\n /**\n * Tax amount for the invoice's line item price and application fee.\n * Can't be combined with `invoiceItems.priceDetails.discount`.\n * Available when the tax is a precentage and not an amount.\n *\n * Min: `0.01`\n * Max: `100`\n * @decimalValue options { gt:0.00, lte:100 }\n */\n percentage?: string;\n /** Dynamic tax calculation */\n dynamic?: DynamicTax;\n}\n\n/** @oneof */\nexport interface V1TaxValueOneOf {\n /**\n * Tax amount for the invoice's line item. Available when the tax is an\n * amount and not a precentage.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n amount?: string;\n /**\n * Tax amount for the invoice's line item price and application fee.\n * Can't be combined with `invoiceItems.priceDetails.discount`.\n * Available when the tax is a precentage and not an amount.\n *\n * Min: `0.01`\n * Max: `100`\n * @decimalValue options { gt:0.00, lte:100 }\n */\n percentage?: string;\n /** Dynamic tax calculation */\n dynamic?: DynamicTax;\n}\n\nexport interface DynamicTax {\n /**\n * Tax group ID used to calculate tax, default will be used if not available\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Taxable address used to calculate tax */\n taxableAddressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN = 'UNKNOWN',\n /** Tax will be calculated using a single address */\n BUSINESS = 'BUSINESS',\n /** Tax will be calculated using multiple address (from BUSINESS to BILLING) */\n BILLING = 'BILLING',\n /** Tax will be calculated using multiple address (from BUSINESS to SHIPPING) */\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface Cycles {\n /**\n * The cycle will start. Minimum cycle number is 1\n * @min 1\n */\n cycleFrom?: number;\n /**\n * Number of cycles to be applied on. In order to apply a on all cycles until the end of the subscription, this field should be empty.\n * @min 1\n */\n numberOfCycles?: number | null;\n}\n\nexport interface Origin {\n /** @format GUID */\n appId?: string;\n /** @format GUID */\n entityId?: string;\n}\n\nexport interface ShippingCharges {\n /**\n * Amount of the shipping fee in `0.00` format.\n *\n * Min: `0.01`\n * @decimalValue options { gte:0.00, maxScale:2 }\n */\n amount?: string;\n /** Tax of the shipping fee */\n tax?: V1Tax;\n /** @maxSize 5 */\n discounts?: Discount[];\n}\n\nexport interface Discount extends DiscountValueOneOf {\n /**\n * Discount amount.\n * Available when the discount is an amount.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n amount?: string;\n /**\n * Discount percentage.\n * Available when the discount is a parcentage value.\n *\n * Min: `0.01`\n * Max: `100`\n * @decimalValue options { gt:0.00, lte:100 }\n */\n percentage?: string;\n cycles?: DiscountCycles;\n /** Discount origin is coming from. Contains app_id and entity_id */\n origin?: DiscountOrigin;\n}\n\n/** @oneof */\nexport interface DiscountValueOneOf {\n /**\n * Discount amount.\n * Available when the discount is an amount.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n amount?: string;\n /**\n * Discount percentage.\n * Available when the discount is a parcentage value.\n *\n * Min: `0.01`\n * Max: `100`\n * @decimalValue options { gt:0.00, lte:100 }\n */\n percentage?: string;\n}\n\nexport interface DiscountCycles {\n /**\n * The cycle from which the discount will start. Minimum cycle number is 1\n * @min 1\n */\n cycleFrom?: number;\n /**\n * Number of cycles to be applied on them discount. In order to apply a discount on all cycles until the end of the subscription, this field should be empty.\n * @min 1\n */\n numberOfCycles?: number | null;\n}\n\nexport interface DiscountOrigin {\n /** @format GUID */\n appId?: string;\n /** @format GUID */\n entityId?: string;\n}\n\nexport interface ExternalCollectionDetails {\n /** The name of the external collector. */\n collectorName?: string;\n}\n\nexport interface BillingStatus {\n /**\n * Current cycle of subscription billing schedule. When billing schedule starts cycles start from 1\n * and incremented each next billing cycle.\n * In case billing schedule not started (free trial, pay later start later) then current_cycle will remain 0\n */\n currentCycle?: number;\n /** how many cycled are remaining, For auto-renew subscriptions is not set. */\n remainingCycles?: number | null;\n /** Date when charge will be for next billing cycle */\n nextBillingDate?: Date | null;\n /** Previous Date charged for previous billing cycle */\n previousBillingDate?: Date | null;\n /** last payment details */\n latestPaymentData?: PaymentData;\n /** Free trial data */\n freeTrialData?: V1FreeTrialData;\n /**\n * Update billing date operation data\n * @internal\n */\n updateBillingDateData?: UpdateBillingDateData;\n /**\n * Grace period information during grace period after payment failure\n * @readonly\n */\n gracePeriodData?: GracePeriodData;\n}\n\nexport interface PaymentData {\n /**\n * Latest payment's invoice ID\n * @format GUID\n */\n invoiceId?: string;\n /** Latest payment's status: UNPAID/PAID/FAILED */\n paymentStatus?: PaymentStatusWithLiterals;\n /** Latest payment's totals. */\n totals?: Totals;\n initialFailedPaymentDate?: Date | null;\n /** Tax-related data for the latest payment */\n taxData?: PaymentTaxData;\n /**\n * Currency used when this payment was made. Three letter ISO currency code.\n * @format CURRENCY\n */\n currency?: string | null;\n}\n\nexport enum PaymentStatus {\n /** Payment status unknown */\n UNKNOWN = 'UNKNOWN',\n /** Payment has not been paid */\n UNPAID = 'UNPAID',\n /** Payment has been paid // TODO: p13n review: we are not sending event when in SEND_INVOICE mode cycle was paid. should we and which event? */\n PAID = 'PAID',\n /** Payment failed */\n FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type PaymentStatusWithLiterals =\n | PaymentStatus\n | 'UNKNOWN'\n | 'UNPAID'\n | 'PAID'\n | 'FAILED';\n\nexport interface Totals {\n /**\n * Total price of the subscription that the customer must pay per billing\n * cycle. Calculated as: `subtotal + tax + shippingFee + applicationFee + extraCharge - discount - credit`\n * Note: platformFee is NOT included in this calculation as it is absorbed by the merchant and does not affect the customer's total.\n * @format DECIMAL_VALUE\n * @readonly\n */\n totalPrice?: string;\n /**\n * Subtotal of all line items that belong to the subscription.\n * Calculated as: `sum_{i=1}^{n} (itemPrice[i] * quantity[i])`\n * @format DECIMAL_VALUE\n * @readonly\n */\n subtotal?: string;\n /**\n * Total tax.\n * @format DECIMAL_VALUE\n * @readonly\n */\n tax?: string | null;\n /**\n * Tax-exempt amount.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0.00, maxScale:2 }\n * @readonly\n */\n exempt?: string | null;\n /**\n * Total discount.\n * @format DECIMAL_VALUE\n * @readonly\n */\n discount?: string | null;\n /**\n * Total application fee.\n * @format DECIMAL_VALUE\n * @readonly\n */\n applicationFee?: string | null;\n /**\n * Total shipping fee.\n * @format DECIMAL_VALUE\n * @readonly\n */\n shippingFee?: string | null;\n /**\n * Total extra charges without tax.\n * @format DECIMAL_VALUE\n * @readonly\n */\n extraCharge?: string | null;\n /**\n * Total credits without tax.\n * @format DECIMAL_VALUE\n * @readonly\n */\n credit?: string | null;\n /**\n * The tax amount for the proration, which is also included in the total tax.\n * @format DECIMAL_VALUE\n * @readonly\n */\n prorationTax?: string | null;\n /**\n * Platform fee calculated based on vertical-specific billing settings configuration.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0.00, maxScale:2 }\n * @readonly\n */\n platformFee?: string | null;\n}\n\nexport interface PaymentTaxData {\n /**\n * A detailed breakdown of the tax authorities for all subscription items from the latest payment\n * @minSize 1\n * @maxSize 100\n */\n taxBreakdowns?: TaxBreakdown[];\n /**\n * Tax amount for all subscription items\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0.00, maxScale:2 }\n */\n taxAmount?: string | null;\n}\n\nexport interface TaxBreakdown {\n taxType?: string;\n /** @decimalValue options { maxScale:4 } */\n taxRate?: string;\n /** @format DECIMAL_VALUE */\n taxAmount?: string | null;\n /** @format DECIMAL_VALUE */\n taxableAmount?: string | null;\n /** @format DECIMAL_VALUE */\n nonTaxableAmount?: string | null;\n /**\n * Name of the tax that was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * @maxLength 200\n */\n taxName?: string | null;\n /**\n * Jurisdiction that taxes were calculated for.\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** Type of jurisdiction that taxes were calculated for. */\n jurisdictionType?: string;\n /**\n * Provider-specific metadata (e.g., Avalara trans/svc codes for financial reporting)\n * @maxSize 20\n */\n metadata?: Record<string, string>;\n}\n\nexport interface V1FreeTrialData {\n /**\n * Date when free trial starts\n * @readonly\n */\n startDate?: Date | null;\n /**\n * Date when free trial ends\n * @readonly\n */\n endDate?: Date | null;\n}\n\nexport interface UpdateBillingDateData {\n /**\n * Date until the subscription is paid for.\n * Different from `nextBillingDate` only when the next billing date is updated without immediately issuing a new invoice.\n */\n paidUntil?: Date | null;\n /** Information about how to adjust the item's payment due to the update of the billing date */\n proration?: Proration;\n}\n\nexport interface Proration extends ProrationTypeOneOf {\n /**\n * BASS automatically calculates the proration amount based on the number\n * of days added to or removed from the current billing cycle. BASS uses\n * this formula to calculate the charge or credit amount:\n * `(Subscription total for the current billing cycle) * (number of days added to or removed from the current billing cycle) / (total number of days for the current billing cycle before the adjustment)`.\n * For example, the customer has paid 100 UDS for the current\n * billing cycle that last 31 days, and you want to extend the cycle by 8\n * days. Then, BASS calculates the proration amount like this:\n * `100 USD * 8 days / 31 days`, which equals `25.81 USD`.\n */\n timeBased?: TimeBasedProration;\n /** Proration amount that's based on your custom calculation. */\n custom?: CustomProration;\n}\n\n/** @oneof */\nexport interface ProrationTypeOneOf {\n /**\n * BASS automatically calculates the proration amount based on the number\n * of days added to or removed from the current billing cycle. BASS uses\n * this formula to calculate the charge or credit amount:\n * `(Subscription total for the current billing cycle) * (number of days added to or removed from the current billing cycle) / (total number of days for the current billing cycle before the adjustment)`.\n * For example, the customer has paid 100 UDS for the current\n * billing cycle that last 31 days, and you want to extend the cycle by 8\n * days. Then, BASS calculates the proration amount like this:\n * `100 USD * 8 days / 31 days`, which equals `25.81 USD`.\n */\n timeBased?: TimeBasedProration;\n /** Proration amount that's based on your custom calculation. */\n custom?: CustomProration;\n}\n\nexport interface TimeBasedProration {}\n\nexport interface CustomProration extends CustomProrationAmountOneOf {\n /**\n * Proration charge amount that's based on your custom calculation.\n * Increases the total that the customer must pay with the next invoice.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n charge?: string;\n /**\n * Proration credit amount that's based on your custom calculation.\n * Lowers the total that the customer must pay with the next invoice.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n credit?: string;\n}\n\n/** @oneof */\nexport interface CustomProrationAmountOneOf {\n /**\n * Proration charge amount that's based on your custom calculation.\n * Increases the total that the customer must pay with the next invoice.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n charge?: string;\n /**\n * Proration credit amount that's based on your custom calculation.\n * Lowers the total that the customer must pay with the next invoice.\n *\n * Min: `0.01`\n * @decimalValue options { gt:0.00 }\n */\n credit?: string;\n}\n\nexport interface GracePeriodData {\n /**\n * Grace period start date\n * @readonly\n */\n startDate?: Date | null;\n /**\n * Grace period end date\n * @readonly\n */\n endDate?: Date | null;\n /** Automatic retry data during grade period, if have any. Optional. */\n automaticRetryData?: AutomaticRetryData;\n}\n\nexport interface AutomaticRetryData {\n enabled?: boolean;\n}\n\nexport interface SubscriptionPolicies {\n /** Subscription can be canceled by the customer who bought it */\n customerCanCancel?: boolean;\n /** Subscription end date can be updated by business */\n businessCanExtend?: boolean;\n /** Subscription can be canceled not only immediately, but also at end of billing cycle by turning off auto-renew */\n allowEndOfCycleCancellation?: boolean;\n /**\n * Deprecated. Never in production. BASS does not read or write this field; UoU gates use\n * `CustomerSettingsResolver` → BBS `customer_settings_by_app_def_id` or Legacy booleans above.\n * @deprecated\n */\n customerActionSettings?: CustomerActionSettings;\n /**\n * Number of self-service actions already used on this subscription.\n * @readonly\n */\n customerActionCounters?: CustomerActionCounters;\n}\n\n/**\n * Per-action merchant configuration for customer self-service actions.\n * All booleans use BoolValue (optional) so verticals can selectively override defaults.\n */\nexport interface CustomerActionSettings {\n /** Skip cycle action settings */\n skip?: SkipActionSettings;\n /** Pause/resume action settings */\n pauseResume?: PauseResumeActionSettings;\n /** Cancel action settings */\n cancel?: CancelActionSettings;\n /** Update payment method action settings */\n upm?: UpmActionSettings;\n /** Update billing date action settings */\n updateBillingDate?: UpdateBillingDateActionSettings;\n}\n\n/** Controls skip cycle functionality — lets a customer skip one or more billing cycles. */\nexport interface SkipActionSettings {\n /** Whether the skip action is enabled */\n enabled?: boolean | null;\n /** Skip action configuration */\n configuration?: SkipActionConfiguration;\n}\n\n/** Configuration for the skip cycle action. */\nexport interface SkipActionConfiguration {\n /** Maximum number of billing cycles a customer can skip */\n maxSkipCycles?: number | null;\n /** Minimum days before billing date to allow skip */\n daysBeforeSkipAllowed?: number | null;\n /** Minimum days before billing date to allow resume from skip */\n daysBeforeResumeAllowed?: number | null;\n /** Minimum days before billing date to cancel a scheduled skip */\n daysBeforeCancelSkipAllowed?: number | null;\n /** Maximum number of times a customer can perform skip action */\n maxSkipUserActions?: number | null;\n /** Allow skipping the next billing cycle */\n skipNextCycle?: boolean | null;\n /** Allow skipping future billing cycles */\n skipFutureCycles?: boolean | null;\n /** Allow reversing a pending skip */\n unskip?: boolean | null;\n /** Allow cancelling a scheduled skip-pause */\n cancelScheduledPause?: boolean | null;\n /** Allow immediate resume from skip */\n resumeImmediately?: boolean | null;\n /** Allow resume at the next billing date */\n resumeAtNextBillingDate?: boolean | null;\n /** Allow resume at a specific date */\n resumeAtSpecificDate?: boolean | null;\n /** Allow setting auto-resume after N cycles */\n autoResumeCycles?: boolean | null;\n}\n\n/**\n * Subscription pause/resume settings — full pause of billing, not skip.\n * Skip action (temporary pause for N cycles) is configured via SkipActionSettings.\n */\nexport interface PauseResumeActionSettings {\n /** Whether the pause/resume action is enabled */\n enabled?: boolean | null;\n /** Pause/resume action configuration */\n configuration?: PauseResumeActionConfiguration;\n}\n\n/**\n * Configuration for the subscription pause/resume action.\n * Skip action (temporary pause for N cycles) is configured via SkipActionConfiguration.\n */\nexport interface PauseResumeActionConfiguration {\n /** Minimum days before billing date to allow pause */\n daysBeforePauseAllowed?: number | null;\n /** Maximum cycles for auto-resume after pause */\n maxAutoResumeCycles?: number | null;\n /** Minimum days before billing date to allow resume */\n daysBeforeResumeAllowed?: number | null;\n /** Minimum days before billing to cancel scheduled pause */\n daysBeforeCancelScheduledPauseAllowed?: number | null;\n /** Maximum number of times a customer can perform pause action */\n maxPauseUserActions?: number | null;\n}\n\n/** Cancel subscription action settings. */\nexport interface CancelActionSettings {\n /** Whether the cancel action is enabled */\n enabled?: boolean | null;\n /** Cancel action configuration */\n configuration?: CancelActionConfiguration;\n}\n\n/** Configuration for the cancel subscription action. */\nexport interface CancelActionConfiguration {\n /** Minimum days before period end to allow cancellation */\n minDaysBeforePeriodEnd?: number | null;\n}\n\n/** Update Payment Method action settings — toggle only, no additional configuration. */\nexport interface UpmActionSettings {\n /** Whether the update payment method action is enabled */\n enabled?: boolean | null;\n}\n\n/** Update billing date action settings. */\nexport interface UpdateBillingDateActionSettings {\n /** Whether the update billing date action is enabled */\n enabled?: boolean | null;\n /** Update billing date configuration */\n configuration?: UpdateBillingDateActionConfiguration;\n}\n\n/** Configuration for the update billing date action. */\nexport interface UpdateBillingDateActionConfiguration {\n /** Whether to adjust price when billing date changes */\n priceAdjustmentEnabled?: boolean | null;\n /** Maximum days the billing date can be moved forward */\n maxDaysAdvance?: number | null;\n /** Maximum days the billing date can be postponed */\n maxDaysPostpone?: number | null;\n /** Minimum days from today for the new billing date */\n minDaysFromToday?: number | null;\n /** Whether to allow advancing billing date for weekly subscriptions */\n allowAdvanceForWeekly?: boolean | null;\n}\n\nexport interface CustomerActionCounters {\n /**\n * Number of self-service skips already used. Unset means zero.\n * @readonly\n */\n skipCount?: number | null;\n /**\n * Number of self-service pauses already used. Unset means zero.\n * @readonly\n */\n pauseCount?: number | null;\n}\n\nexport interface PauseInfo {\n pausePolicy?: PausePolicyWithLiterals;\n pauseAt?: PauseAtWithLiterals;\n startDate?: Date | null;\n startCycle?: number | null;\n resumeAt?: ResumeAtWithLiterals;\n resumeDate?: Date | null;\n resumeCycle?: number | null;\n}\n\nexport enum PausePolicy {\n NONE = 'NONE',\n /** Pause the payment and the service. When resuming, the subscription end date is extended by the number of cycles postponed, and if the pause happened in a middle of a cycle, the payment date is postponed by the amount of days that already paid. */\n SERVICE_AND_PAYMENTS = 'SERVICE_AND_PAYMENTS',\n /** Pause the service and continue the billing. When resuming, extend the service by the time that was paused */\n SERVICE_ONLY = 'SERVICE_ONLY',\n}\n\n/** @enumType */\nexport type PausePolicyWithLiterals =\n | PausePolicy\n | 'NONE'\n | 'SERVICE_AND_PAYMENTS'\n | 'SERVICE_ONLY';\n\nexport enum PauseAt {\n /** Cancel scheduled pause */\n NONE = 'NONE',\n /** Pause the subscription now */\n IMMEDIATELY = 'IMMEDIATELY',\n /** Pause the subscription at the next billing date */\n NEXT_BILLING_DATE = 'NEXT_BILLING_DATE',\n /** A specific date must be defined in Schedule.specific_date */\n SPECIFIC_DATE = 'SPECIFIC_DATE',\n /** The number of cycles must be defined in Schedule.number_of_cycles */\n NUMBER_OF_CYCLES_FROM_TODAY = 'NUMBER_OF_CYCLES_FROM_TODAY',\n /** Pause subscription after N billing cycles from the next billing date. Used for skip-cycle feature where customers skip future billing cycles. Requires Schedule.number_of_cycles to specify how many cycles to wait before pausing. */\n NUMBER_OF_CYCLES_FROM_NEXT_BILLING_DATE = 'NUMBER_OF_CYCLES_FROM_NEXT_BILLING_DATE',\n}\n\n/** @enumType */\nexport type PauseAtWithLiterals =\n | PauseAt\n | 'NONE'\n | 'IMMEDIATELY'\n | 'NEXT_BILLING_DATE'\n | 'SPECIFIC_DATE'\n | 'NUMBER_OF_CYCLES_FROM_TODAY'\n | 'NUMBER_OF_CYCLES_FROM_NEXT_BILLING_DATE';\n\nexport enum ResumeAt {\n /** Cancel scheduled resume */\n NONE = 'NONE',\n /** Resume the subscription now */\n IMMEDIATELY = 'IMMEDIATELY',\n /** Resume the subscription at the next billing date */\n NEXT_BILLING_DATE = 'NEXT_BILLING_DATE',\n /** A specific date must be defined in Schedule.specific_date */\n SPECIFIC_DATE = 'SPECIFIC_DATE',\n /** Resume subscription after N billing cycles from when the pause starts. Automatically resumes subscription after skipping the specified number of cycles. Requires Schedule.number_of_cycles to specify how many cycles to skip before resuming. */\n NUMBER_OF_CYCLES_FROM_PAUSE_START = 'NUMBER_OF_CYCLES_FROM_PAUSE_START',\n}\n\n/** @enumType */\nexport type ResumeAtWithLiterals =\n | ResumeAt\n | 'NONE'\n | 'IMMEDIATELY'\n | 'NEXT_BILLING_DATE'\n | 'SPECIFIC_DATE'\n | 'NUMBER_OF_CYCLES_FROM_PAUSE_START';\n\nexport interface CancellationInfo {\n /** Subscription cancel date. Can contain a future or past date */\n cancellationDate?: Date | null;\n /** Initiator for cancellation */\n initiator?: HistoryActionInitiatorWithLiterals;\n /** Reason for cancellation. Optional. */\n reason?: string | null;\n}\n\nexport enum HistoryActionInitiator {\n UNDEFINED = 'UNDEFINED',\n BUSINESS = 'BUSINESS',\n CUSTOMER = 'CUSTOMER',\n SYSTEM = 'SYSTEM',\n PAYMENT_FAILURE = 'PAYMENT_FAILURE',\n}\n\n/** @enumType */\nexport type HistoryActionInitiatorWithLiterals =\n | HistoryActionInitiator\n | 'UNDEFINED'\n | 'BUSINESS'\n | 'CUSTOMER'\n | 'SYSTEM'\n | 'PAYMENT_FAILURE';\n\nexport interface SubscriptionUpdateData {\n /** @maxSize 100 */\n itemsToUpdate?: ItemChange[];\n /** @maxSize 99 */\n itemsToAdd?: Item[];\n /**\n * @format GUID\n * @maxSize 99\n */\n itemsToDelete?: string[] | null;\n /** @readonly */\n numberOfRequests?: number;\n}\n\nexport interface ItemChange {\n /**\n * Item ID\n * @format GUID\n */\n _id?: string;\n pricingModel?: PricingModel;\n /** @min 1 */\n quantity?: number | null;\n tax?: V1Tax;\n}\n\nexport interface PricingModel extends PricingModelModelOneOf {\n /** Fixed item price. */\n fixedPrice?: FixedPrice;\n /** External/metered pricing (see ExternalPrice comment for details). */\n externalPrice?: ExternalPrice;\n}\n\n/** @oneof */\nexport interface PricingModelModelOneOf {\n /** Fixed item price. */\n fixedPrice?: FixedPrice;\n /** External/metered pricing (see ExternalPrice comment for details). */\n externalPrice?: ExternalPrice;\n}\n\nexport interface FixedPrice {\n /**\n * Fixed item price with a period as a decimal separator. For example, `3.99`.\n * Price doesn't include tax, discounts, or application fee.\n *\n * Min: `0.01`\n * @decimalValue options { gte:0.00, maxScale:2 }\n */\n itemPrice?: string;\n}\n\n/**\n * External/metered pricing where price comes from an external provider at billing time.\n *\n * The external pricing provider is determined by the Subscription's PlatformOrigin.app_id.\n * BASS maintains a hardcoded mapping from app_id to the service client (e.g., CustomChargesService).\n * To add support for other platforms (e.g., eCom), add the mapping in BASS code.\n */\nexport interface ExternalPrice {\n /**\n * Optional fixed base amount (added to external charges)\n * @decimalValue options { gte:0.00, maxScale:2 }\n */\n baseAmount?: string | null;\n}\n\nexport interface Item {\n /**\n * Unique identifier of subscription item. Automatically generated and read-only.\n * @readonly\n * @format GUID\n */\n _id?: string | null;\n /**\n * Name of the item. Typically product name.\n * @minLength 1\n * @maxLength 200\n */\n name?: string;\n /**\n * Description of the item.\n * @maxLength 500\n */\n description?: string | null;\n /** References to external product catalog data known to client. */\n catalogReference?: CatalogReference;\n /** Category of item. Whether it is digital or physical one. */\n category?: ItemCategoryWithLiterals;\n /**\n * Amount of products\n * @min 1\n */\n quantity?: number;\n /** Pricing model of the item. Whether fixed price or dynamic price models. */\n pricingModel?: PricingModel;\n /** Tax, positive value, optional */\n tax?: V1Tax;\n /**\n * Discounts applied on item price\n * @maxSize 5\n */\n discounts?: Discount[];\n /** Application specific fee, positive value, optional (if application_fee == 0, don't include it to request). Only positive values. */\n applicationFee?: ApplicationFee;\n /**\n * External reference identifier for mapping item in consumer's system.\n * This allows the consumer to correlate the item in their system with the item in this API.\n * @format GUID\n */\n externalId?: string | null;\n /**\n * Key / Value store to keep up to 10 additional values related to the subscription item.\n * Key max length = 50, Value max length = 200. Value can not be empty.\n * Should not include any sensitive or PII information.\n * @maxSize 10\n */\n metadata?: Record<string, string>;\n}\n\nexport interface CatalogReference {\n /**\n * Product ID from the external catalog.\n * @minLength 1\n * @maxLength 50\n */\n catalogItemId?: string;\n /**\n * ID of the app that the product catalog belongs to.\n * When omitted, BASS assumes that the product belongs to the subscription's\n * `origin.appId`.\n *\n * Min: 1 character\n * Max: 50 characters\n * @minLength 1\n * @maxLength 50\n */\n appId?: string | null;\n}\n\nexport enum ItemCategory {\n UNKNOWN = 'UNKNOWN',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n}\n\n/** @enumType */\nexport type ItemCategoryWithLiterals =\n | ItemCategory\n | 'UNKNOWN'\n | 'PHYSICAL'\n | 'DIGITAL';\n\nexport interface ApplicationFee extends ApplicationFeeValueOneOf {\n /**\n * Amount of the application fee in `0.00` format.\n * @format DECIMAL_VALUE\n */\n amount?: string;\n /**\n * Discounts for the application fee.\n *\n * Max: 5 discounts\n * @maxSize 5\n */\n discounts?: Discount[];\n}\n\n/** @oneof */\nexport interface ApplicationFeeValueOneOf {\n /**\n * Amount of the application fee in `0.00` format.\n * @format DECIMAL_VALUE\n */\n amount?: string;\n}\n\nexport interface SpecificDateSubscriptionUpdateData {\n updateData?: SubscriptionUpdateData;\n executionDate?: Date | null;\n}\n\nexport interface PlatformOrigin {\n /** @format GUID */\n appId?: string | null;\n /** @format GUID */\n entityId?: string | null;\n}\n\nexport interface RecollectPremiumAsset\n extends RecollectPremiumAssetRecollectAssetOneOf {\n subscription?: RecollectSubscription;\n domainRegistration?: RecollectRegistration;\n googleMailbox?: RecollectGoogleMailbox;\n digitalGood?: RecollectDigitalGood;\n}\n\n/** @oneof */\nexport interface RecollectPremiumAssetRecollectAssetOneOf {\n subscription?: RecollectSubscription;\n domainRegistration?: RecollectRegistration;\n googleMailbox?: RecollectGoogleMailbox;\n digitalGood?: RecollectDigitalGood;\n}\n\nexport interface RecollectSubscription {\n /**\n * @format GUID\n * @readonly\n */\n subscriptionGuid?: string;\n billingReference?: V2BillingReference;\n}\n\nexport interface RecollectRegistration {\n registration?: Registration;\n billingReference?: V2BillingReference;\n}\n\nexport interface Registration extends RegistrationCanExtendDataOneOf {\n /** reason the domain registration cannot be extended */\n cannotExtendReason?: CannotExtendReasonEnumWithLiterals;\n domain?: string;\n /** domain registration date */\n registeredAt?: Date | null;\n /** domain expiration date */\n expiresAt?: Date | null;\n /** deprecated. use privacy_enabled */\n privacy?: boolean;\n /** whether it's possible to transfer domain away. If true - transfer is prohibited until `icann_transfer_locked_until` date */\n transferLocked?: boolean;\n /** domain concat info */\n contacts?: Contacts;\n registrar?: RegistrarNameWithLiterals;\n /** domain's first nameserver */\n ns1?: string;\n /** domain's second nameserver */\n ns2?: string;\n referralAppId?: string;\n icannTransferLockedUntil?: Date | null;\n icannContactVerificationStatus?: ICANNContactVerificationStatusWithLiterals;\n /** corresponds to service id in SBS */\n extContractId?: string | null;\n lifecycleStatus?: LifecycleStatus;\n /** @format GUID */\n userId?: string;\n graceStartsAt?: Date | null;\n redemptionStartsAt?: Date | null;\n redemptionEndsAt?: Date | null;\n /** whether it's possible to renew domain explicitly */\n explicitRenewalAllowed?: boolean;\n /** when record in DB was created */\n createdAt?: Date | null;\n /** whether auto renew is enabled on registrar */\n autoRenew?: boolean;\n /** hides/show user's contact information on whois */\n privacyEnabled?: boolean;\n /** whether privacy was bought by user */\n privacySupported?: boolean;\n /** unique registration id */\n registrationId?: string;\n /** represents user id domain was transferred to */\n transferredUserGuid?: string | null;\n /** legal type for .CA domains */\n legalType?: LegalType;\n /** legal entity type for .IT domains */\n entityType?: EntityType;\n /** reg_code can be VAT/TAX/Fiscal code for .IT domains */\n regCode?: string | null;\n /** policy reason for .COM.AU domains */\n policyReason?: PolicyReason;\n /** eligibility type for .COM.AU domains */\n eligibilityType?: EligibilityType;\n /** eligibility id type for .COM.AU domains */\n eligibilityIdType?: EligibilityIdType;\n /** eligibility id for .COM.AU domains */\n eligibilityId?: string | null;\n /** registrant name for .COM.AU domains */\n registrantName?: string | null;\n /** change of registrant status */\n icannStatusInfo?: ICANNStatusInfo;\n /** sku Id */\n skuId?: number;\n /** billing provider type, e.g. SBS, RESELLER */\n billingProviderType?: BillingProviderTypeWithLiterals;\n /** the registrations redeem process status */\n redeemStatus?: RedeemStatusEnumWithLiterals;\n /** redeem process start date */\n redeemStartedAt?: Date | null;\n /**\n * whether dnssec was bought by user\n * @readonly\n */\n dnssecSupported?: boolean;\n /**\n * whether the domain has a higher price due to its perceived value or demand\n * @readonly\n */\n premium?: boolean;\n /** whether the domain registration is extendable */\n canExtend?: boolean;\n /**\n * whether insurance was bought by user\n * @readonly\n */\n insuranceSupported?: boolean;\n /**\n * Invoice id\n * @maxLength 256\n */\n lastOrderInvoiceId?: string | null;\n /** invoice creation time */\n orderInvoiceStartDate?: Date | null;\n /** invoice end date */\n orderInvoiceEndDate?: Date | null;\n /** setup complete */\n setupComplete?: boolean;\n /** specifies whether the insurance has been activated */\n insuranceActivated?: boolean;\n /** specifies whether the insurance was enabled */\n insuranceEnabled?: boolean;\n /** specifies whether the dnssec was enabled */\n dnssecEnabled?: boolean;\n /** nexus category for .US domains */\n nexusCategory?: NexusCategory;\n /**\n * national/business ID for .SE domains\n * @maxLength 20\n */\n seIdNumber?: string | null;\n /**\n * government-issued ID (DNI/NIF/NIE) for .ES domains\n * @maxLength 20\n */\n esGovId?: string | null;\n /** registrant type for .CO.IL/.ORG.IL domains */\n ilRegistrantType?: IlRegistrantType;\n /**\n * company registration number for .CO.IL/.ORG.IL organizations\n * @maxLength 30\n */\n ilRegistrationNumber?: string | null;\n /**\n * Whether the domain is delegated to Wix name servers or to the customer's own.\n * Derived: the stored customer intent when there is one, otherwise the name servers themselves.\n * The intent is consulted first because a parked domain sits on the parking pair, which describes\n * Wix's state rather than the customer's choice, and restore puts the intent back.\n */\n nameServersType?: NameServersTypeEnumWithLiterals;\n /**\n * First name server the customer asked for through SetDomainNameServers, empty for a domain on Wix\n * name servers. Read-only, kept through a park so restore can put it back. Exposed for debugging -\n * clients should read name_servers_type rather than interpret this.\n * @format HOSTNAME\n * @readonly\n */\n intentNs1?: string;\n /**\n * Second name server the customer asked for through SetDomainNameServers, empty for a domain on\n * Wix name servers. Read-only, kept through a park so restore can put it back.\n * @format HOSTNAME\n * @readonly\n */\n intentNs2?: string;\n /** type of the .ES government-issued ID carried in es_gov_id */\n esIdType?: EsIdType;\n}\n\n/** @oneof */\nexport interface RegistrationCanExtendDataOneOf {\n /** reason the domain registration cannot be extended */\n cannotExtendReason?: CannotExtendReasonEnumWithLiterals;\n}\n\nexport interface ActiveRegistration {}\n\nexport interface InactiveRegistration {\n inRedemption?: boolean;\n}\n\nexport interface Contacts {\n registrant?: Contact;\n admin?: Contact;\n tech?: Contact;\n}\n\nexport interface Contact {\n firstName?: string;\n lastName?: string;\n /** @format EMAIL */\n email?: string;\n company?: string | null;\n streetAddress?: string;\n city?: string;\n state?: string;\n postalCode?: string;\n countryCode?: string;\n phone?: string;\n semiPrivacyPhone?: string | null;\n /** @format EMAIL */\n semiPrivacyEmail?: string | null;\n /** currently used only for .CA domains, can be EN or FR */\n language?: string | null;\n}\n\nexport enum RegistrarName {\n UNKNOWN = 'UNKNOWN',\n REGISTER_DOT_COM = 'REGISTER_DOT_COM',\n TUCOWS = 'TUCOWS',\n WIX = 'WIX',\n DYNADOT_RESELLER = 'DYNADOT_RESELLER',\n DYNADOT_REGISTRAR = 'DYNADOT_REGISTRAR',\n}\n\n/** @enumType */\nexport type RegistrarNameWithLiterals =\n | RegistrarName\n | 'UNKNOWN'\n | 'REGISTER_DOT_COM'\n | 'TUCOWS'\n | 'WIX'\n | 'DYNADOT_RESELLER'\n | 'DYNADOT_REGISTRAR';\n\nexport enum ICANNContactVerificationStatus {\n VERIFICATION_STATUS_UNKNOWN = 'VERIFICATION_STATUS_UNKNOWN',\n PENDING = 'PENDING',\n DEACTIVATED = 'DEACTIVATED',\n VERIFIED = 'VERIFIED',\n}\n\n/** @enumType */\nexport type ICANNContactVerificationStatusWithLiterals =\n | ICANNContactVerificationStatus\n | 'VERIFICATION_STATUS_UNKNOWN'\n | 'PENDING'\n | 'DEACTIVATED'\n | 'VERIFIED';\n\nexport interface LifecycleStatus extends LifecycleStatusStatusOneOf {\n /** domain is active */\n active?: ActiveRegistration;\n /** domain is expired or was transferred away from wix */\n inactive?: InactiveRegistration;\n}\n\n/** @oneof */\nexport interface LifecycleStatusStatusOneOf {\n /** domain is active */\n active?: ActiveRegistration;\n /** domain is expired or was transferred away from wix */\n inactive?: InactiveRegistration;\n}\n\nexport interface LegalType {\n value?: LegalTypeEnumWithLiterals;\n}\n\nexport enum LegalTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Aboriginal */\n ABO = 'ABO',\n /** Association */\n ASS = 'ASS',\n /** CanadianCorporation */\n CCO = 'CCO',\n /** CanadianCitizen */\n CCT = 'CCT',\n /** Educational Institution */\n EDU = 'EDU',\n /** Government */\n GOV = 'GOV',\n /** Hospital */\n HOP = 'HOP',\n /** IndianBand */\n INB = 'INB',\n /** Library, Archive, or Museum */\n LAM = 'LAM',\n /** Legal Representative */\n LGR = 'LGR',\n /** Her Majesty the Queen */\n MAJ = 'MAJ',\n /** Protected byTrademarks Act */\n OMK = 'OMK',\n /** PoliticalParty */\n PLT = 'PLT',\n /** Partnership */\n PRT = 'PRT',\n /** Permanent Resident */\n RES = 'RES',\n /** Trademark Owner */\n TDM = 'TDM',\n /** TradeUnion */\n TRD = 'TRD',\n /** Trust */\n TRS = 'TRS',\n}\n\n/** @enumType */\nexport type LegalTypeEnumWithLiterals =\n | LegalTypeEnum\n | 'UNKNOWN'\n | 'ABO'\n | 'ASS'\n | 'CCO'\n | 'CCT'\n | 'EDU'\n | 'GOV'\n | 'HOP'\n | 'INB'\n | 'LAM'\n | 'LGR'\n | 'MAJ'\n | 'OMK'\n | 'PLT'\n | 'PRT'\n | 'RES'\n | 'TDM'\n | 'TRD'\n | 'TRS';\n\nexport interface EntityType {\n value?: EntityTypeEnumWithLiterals;\n}\n\nexport enum EntityTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Italian resident */\n ITR = 'ITR',\n /** Foreign resident; Resident/Company of the EEA (excluding Italy), the Swiss Confederation, the Republic of San Marino, or the Vatican City State */\n FOR = 'FOR',\n /** Company or One man company */\n COM = 'COM',\n /** Freelance worker */\n FWI = 'FWI',\n /** Non profit organization */\n NPO = 'NPO',\n /** Public organization */\n POI = 'POI',\n /** Other subjects */\n OSI = 'OSI',\n}\n\n/** @enumType */\nexport type EntityTypeEnumWithLiterals =\n | EntityTypeEnum\n | 'UNKNOWN'\n | 'ITR'\n | 'FOR'\n | 'COM'\n | 'FWI'\n | 'NPO'\n | 'POI'\n | 'OSI';\n\nexport interface PolicyReason {\n value?: PolicyReasonEnumWithLiterals;\n}\n\nexport enum PolicyReasonEnum {\n UNKNOWN = 'UNKNOWN',\n /** The name exactly matches the acronym or abbreviation of the registrant's company or trading name, organization or association name, or trademark. */\n EXC = 'EXC',\n /** The name is connected closely and substantially to the registrant. */\n CLS = 'CLS',\n}\n\n/** @enumType */\nexport type PolicyReasonEnumWithLiterals =\n | PolicyReasonEnum\n | 'UNKNOWN'\n | 'EXC'\n | 'CLS';\n\nexport interface EligibilityType {\n value?: EligibilityTypeEnumWithLiterals;\n}\n\nexport enum EligibilityTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Company */\n COM = 'COM',\n /** Sole Trader */\n STR = 'STR',\n /** Partnership */\n PRT = 'PRT',\n /** Trademark Owner */\n TRO = 'TRO',\n /** Pending TM Owner */\n PTO = 'PTO',\n /** Commonwealth entity */\n CWE = 'CWE',\n /** Government Body */\n GVB = 'GVB',\n /** Incorporated Association */\n INA = 'INA',\n /** Trust */\n TRS = 'TRS',\n /** Statutory Body */\n STB = 'STB',\n /** Trading Cooperative */\n TRC = 'TRC',\n /** Registered Business */\n RBU = 'RBU',\n}\n\n/** @enumType */\nexport type EligibilityTypeEnumWithLiterals =\n | EligibilityTypeEnum\n | 'UNKNOWN'\n | 'COM'\n | 'STR'\n | 'PRT'\n | 'TRO'\n | 'PTO'\n | 'CWE'\n | 'GVB'\n | 'INA'\n | 'TRS'\n | 'STB'\n | 'TRC'\n | 'RBU';\n\nexport interface EligibilityIdType {\n value?: EligibilityIdTypeEnumWithLiterals;\n}\n\nexport enum EligibilityIdTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Australian Business Number */\n ABN = 'ABN',\n /** Australian Company Number */\n ACN = 'ACN',\n}\n\n/** @enumType */\nexport type EligibilityIdTypeEnumWithLiterals =\n | EligibilityIdTypeEnum\n | 'UNKNOWN'\n | 'ABN'\n | 'ACN';\n\nexport interface ICANNStatusInfo extends ICANNStatusInfoStatusOneOf {\n pending?: Pending;\n verified?: Verified;\n deactivated?: Deactivated;\n}\n\n/** @oneof */\nexport interface ICANNStatusInfoStatusOneOf {\n pending?: Pending;\n verified?: Verified;\n deactivated?: Deactivated;\n}\n\nexport interface Pending {\n deactivationDate?: Date | null;\n pendingEmails?: string[];\n}\n\nexport interface Verified {}\n\nexport interface Deactivated {\n unverifiedEmails?: string[];\n}\n\nexport enum BillingProviderType {\n UNKNOWN = 'UNKNOWN',\n SBS = 'SBS',\n RESELLER = 'RESELLER',\n}\n\n/** @enumType */\nexport type BillingProviderTypeWithLiterals =\n | BillingProviderType\n | 'UNKNOWN'\n | 'SBS'\n | 'RESELLER';\n\nexport enum RedeemStatusEnum {\n /** Domain is redemption period and can try to redeem */\n CAN_REDEEM = 'CAN_REDEEM',\n /** A transition status for when a redeem request is being processed */\n REDEEM_IN_PROGRESS = 'REDEEM_IN_PROGRESS',\n /** CC tries to redeem manually a domain and fails, usually because time has passed */\n REDEEM_FAILED = 'REDEEM_FAILED',\n /** Edge case: user will start a redeem intent when the domain redemption period is passed */\n CANNOT_REDEEM = 'CANNOT_REDEEM',\n}\n\n/** @enumType */\nexport type RedeemStatusEnumWithLiterals =\n | RedeemStatusEnum\n | 'CAN_REDEEM'\n | 'REDEEM_IN_PROGRESS'\n | 'REDEEM_FAILED'\n | 'CANNOT_REDEEM';\n\nexport enum CannotExtendReasonEnum {\n /** The domain is inactive */\n DOMAIN_INACTIVE = 'DOMAIN_INACTIVE',\n /** The domain TLD does not support explicit extend operation */\n EXPLICIT_EXTEND_NOT_SUPPORTED_FOR_TLD = 'EXPLICIT_EXTEND_NOT_SUPPORTED_FOR_TLD',\n /** The domain is in redemption period */\n DOMAIN_IN_REDEMPTION = 'DOMAIN_IN_REDEMPTION',\n /** The domain cannot be extended since it was delivered in the last 24h */\n RECENT_DOMAIN_DELIVERY = 'RECENT_DOMAIN_DELIVERY',\n /** The domain max term reached */\n MAX_TERM_REACHED = 'MAX_TERM_REACHED',\n /** The domain is in the middle of transfer between registrars */\n DOMAIN_IN_TRANSFER_BETWEEN_REGISTRARS = 'DOMAIN_IN_TRANSFER_BETWEEN_REGISTRARS',\n /** The domain is outside the TLD renewal window (e.g. .au allows renewal only within 90 days before expiry) */\n OUTSIDE_RENEWAL_WINDOW = 'OUTSIDE_RENEWAL_WINDOW',\n /** An extend of the domain is already being delivered, the user should try again once it completes */\n EXTEND_IN_PROGRESS = 'EXTEND_IN_PROGRESS',\n}\n\n/** @enumType */\nexport type CannotExtendReasonEnumWithLiterals =\n | CannotExtendReasonEnum\n | 'DOMAIN_INACTIVE'\n | 'EXPLICIT_EXTEND_NOT_SUPPORTED_FOR_TLD'\n | 'DOMAIN_IN_REDEMPTION'\n | 'RECENT_DOMAIN_DELIVERY'\n | 'MAX_TERM_REACHED'\n | 'DOMAIN_IN_TRANSFER_BETWEEN_REGISTRARS'\n | 'OUTSIDE_RENEWAL_WINDOW'\n | 'EXTEND_IN_PROGRESS';\n\nexport interface NexusCategory {\n value?: NexusCategoryEnumWithLiterals;\n}\n\nexport enum NexusCategoryEnum {\n UNKNOWN = 'UNKNOWN',\n /** US citizen */\n C11 = 'C11',\n /** Permanent resident */\n C12 = 'C12',\n /** US entity or organization */\n C21 = 'C21',\n /** Foreign entity with a presence in the US market */\n C31 = 'C31',\n /** Foreign entity with a US office */\n C32 = 'C32',\n}\n\n/** @enumType */\nexport type NexusCategoryEnumWithLiterals =\n | NexusCategoryEnum\n | 'UNKNOWN'\n | 'C11'\n | 'C12'\n | 'C21'\n | 'C31'\n | 'C32';\n\nexport interface IlRegistrantType {\n value?: IlRegistrantTypeEnumWithLiterals;\n}\n\nexport enum IlRegistrantTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Natural person */\n INDIVIDUAL = 'INDIVIDUAL',\n /** Company, association, or other legal entity */\n ORGANIZATION = 'ORGANIZATION',\n}\n\n/** @enumType */\nexport type IlRegistrantTypeEnumWithLiterals =\n | IlRegistrantTypeEnum\n | 'UNKNOWN'\n | 'INDIVIDUAL'\n | 'ORGANIZATION';\n\nexport enum NameServersTypeEnum {\n UNKNOWN_NAME_SERVERS_TYPE = 'UNKNOWN_NAME_SERVERS_TYPE',\n /** delegated to Wix name servers */\n INTERNAL_NAME_SERVERS = 'INTERNAL_NAME_SERVERS',\n /** delegated to the customer's own name servers */\n EXTERNAL_NAME_SERVERS = 'EXTERNAL_NAME_SERVERS',\n}\n\n/** @enumType */\nexport type NameServersTypeEnumWithLiterals =\n | NameServersTypeEnum\n | 'UNKNOWN_NAME_SERVERS_TYPE'\n | 'INTERNAL_NAME_SERVERS'\n | 'EXTERNAL_NAME_SERVERS';\n\nexport interface EsIdType {\n value?: EsIdTypeEnumWithLiterals;\n}\n\nexport enum EsIdTypeEnum {\n UNKNOWN = 'UNKNOWN',\n /** Any ID that is neither a NIF nor a NIE - typically a foreign national or tax ID */\n OTHER = 'OTHER',\n /** Spanish tax identification number. A Spanish company sends its CIF under this type */\n NIF = 'NIF',\n /** Foreigner identity number issued in Spain */\n NIE = 'NIE',\n}\n\n/** @enumType */\nexport type EsIdTypeEnumWithLiterals =\n | EsIdTypeEnum\n | 'UNKNOWN'\n | 'OTHER'\n | 'NIF'\n | 'NIE';\n\nexport interface RecollectGoogleMailbox {\n /**\n * @format GUID\n * @readonly\n */\n mailboxGuid?: string;\n billingReference?: V2BillingReference;\n}\n\nexport interface RecollectDigitalGood {\n /**\n * @format GUID\n * @readonly\n */\n packageGuid?: string;\n billingReference?: V2BillingReference;\n}\n\nexport interface SbsBillingDetails {\n sbsService?: Service;\n paymentSource?: PaymentSource;\n lastSuccessfulInvoice?: Invoice;\n lastInvoice?: Invoice;\n}\n\nexport interface BassBillingDetails {\n subscription?: Subscription;\n}\n\n/** First produce for bulk of assets. */\nexport interface BulkRecollectPremiumAsset {\n /** @maxSize 5000 */\n recollectAssets?: RecollectPremiumAsset[];\n}\n\nexport interface RecollectAccountRequest {\n /** @format GUID */\n accountId?: string;\n}\n\nexport interface RecollectAccountResponse {\n /** number of assets to delete */\n assetsToDeleteCount?: number;\n /** number of assets to update */\n assetsToUpdateCount?: number;\n /** number of assets to create */\n assetsToCreateCount?: number;\n}\n\nexport interface RecollectAssetsRequest {\n /** @maxSize 30 */\n assets?: AssetToRecollect[];\n}\n\nexport enum AssetType {\n DIGITAL_GOODS = 'DIGITAL_GOODS',\n MAILBOX = 'MAILBOX',\n SUBSCRIPTION = 'SUBSCRIPTION',\n DOMAIN = 'DOMAIN',\n}\n\n/** @enumType */\nexport type AssetTypeWithLiterals =\n | AssetType\n | 'DIGITAL_GOODS'\n | 'MAILBOX'\n | 'SUBSCRIPTION'\n | 'DOMAIN';\n\nexport interface AssetToRecollect extends AssetToRecollectAssetClassifierOneOf {\n assetType?: AssetTypeWithLiterals;\n /** @format GUID */\n productTypeId?: string;\n /**\n * ID of the Premium asset to recollect.\n * @format GUID\n */\n premiumId?: string;\n}\n\n/** @oneof */\nexport interface AssetToRecollectAssetClassifierOneOf {\n assetType?: AssetTypeWithLiterals;\n /** @format GUID */\n productTypeId?: string;\n}\n\nexport interface RecollectAssetsResponse {\n /** success/failure status of the recollect action for each asset */\n results?: RecollectAssetResult[];\n}\n\nexport interface RecollectAssetResult {\n /** @format GUID */\n premiumId?: string;\n status?: ActionStatus;\n}\n\nexport interface ActionStatus extends ActionStatusStatusOneOf {\n /** No exception during action execution */\n actionSuccess?: Success;\n /** There was an exception during action execution */\n actionFailure?: Failure;\n}\n\n/** @oneof */\nexport interface ActionStatusStatusOneOf {\n /** No exception during action execution */\n actionSuccess?: Success;\n /** There was an exception during action execution */\n actionFailure?: Failure;\n}\n\nexport interface Success {}\n\nexport interface Failure {\n /** Exception message that caused action failure */\n exceptionMsg?: string;\n}\n\nexport interface DeleteAssetRequest {\n /** @format GUID */\n premiumId?: string;\n}\n\nexport interface QueryAccountPremiumAssetsRequest {\n /** [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language). */\n cursorQuery?: V2CursorQuery;\n /**\n * Whether the response includes also Premium assets for which the specified account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps).\n *\n * The service may ignore this setting when permitted assets cannot affect the result,\n * such as when filtering for unassigned assets.\n *\n * Default: `false`\n */\n includePermitted?: boolean | null;\n}\n\nexport interface V2CursorQuery extends V2CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: V2CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface V2CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: V2CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n /**\n * When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by\n * a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.\n *\n * If multiple filters are provided, they are combined with AND operator.\n *\n * Example:\n * Given we have document like {\"id\": \"1\", \"nestedField\": [{\"price\": 10, \"region\": \"EU\"}, {\"price\": 20, \"region\": \"US\"}]}\n * and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be\n * { fieldName: \"nestedField.price\", \"select_items_by\": [{\"nestedField.region\": \"US\"}] }\n * @internal\n * @maxSize 10\n */\n selectItemsBy?: Record<string, any>[] | null;\n /**\n * Origin point for geo-distance sorting on a GEO field\n * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).\n */\n origin?: AddressLocation;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface V2CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 64000\n */\n cursor?: string | null;\n}\n\nexport interface QueryAccountPremiumAssetsResponse {\n /** Retrieved Premium assets. */\n premiumAssets?: PremiumAsset[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n /**\n * Total number of items matching the filter.\n * Available only on the first page of *Search* results, not included in *Query* or *List* results.\n * If the Search results span multiple pages, the value of `total` will exceed the number of items returned on the first page.\n * @internal\n */\n total?: number | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface GetPremiumAssetRequest {\n /**\n * ID of the Premium asset to retrieve.\n * @format GUID\n */\n premiumAssetId?: string;\n}\n\nexport interface GetPremiumAssetResponse {\n /** Retrieved Premium asset. */\n premiumAsset?: PremiumAsset;\n}\n\nexport interface GetPremiumAssetByPremiumIdRequest {\n /**\n * Premium ID of the Premium asset to retrieve.\n * @format GUID\n */\n premiumId?: string;\n}\n\nexport interface GetPremiumAssetByPremiumIdResponse {\n /** Retrieved Premium asset. */\n premiumAsset?: PremiumAsset;\n}\n\nexport interface BulkGetPermittedPremiumAssetsRequest {\n /**\n * Premium IDs of the Premium assets to retrieve. An empty list returns an empty response.\n * @format GUID\n * @maxSize 300\n */\n premiumIds?: string[];\n}\n\nexport interface BulkGetPermittedPremiumAssetsResponse {\n /** Existing requested Premium assets that the caller is permitted to read. */\n premiumAssets?: PremiumAsset[];\n}\n\nexport interface QueryPremiumAssetsRequest {\n /**\n * [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @deprecated [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @replacedBy cursor_query\n * @targetRemovalDate 2024-07-31\n */\n query?: CursorQuery;\n /** [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language). */\n cursorQuery?: V2CursorQuery;\n /**\n * Whether the response includes also Premium assets for which the specified account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps).\n *\n * The service may ignore this setting when permitted assets cannot affect the result,\n * such as when filtering for unassigned assets.\n *\n * Default: `false`\n */\n includePermitted?: boolean | null;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryPremiumAssetsResponse {\n /** Retrieved Premium assets. */\n premiumAssets?: PremiumAsset[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface SearchPremiumAssetsRequest {\n /**\n * [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @deprecated [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @replacedBy cursor_search\n * @targetRemovalDate 2024-07-31\n */\n search?: CursorSearch;\n /**\n * Whether the response includes also Premium assets for which the specified account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps).\n *\n * The service may ignore this setting when permitted assets cannot affect the result,\n * such as when filtering for unassigned assets.\n *\n * Default: `false`\n */\n includePermitted?: boolean | null;\n /** [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language). */\n cursorSearch?: V2CursorSearch;\n}\n\nexport interface CursorSearch extends CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n /**\n * Filter object.\n *\n * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * List of sort objects.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Logical groupings of data into facets, with summaries for each facet. For example, use aggregations to allow site visitors to narrow down their search results by selecting specific categories.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields. */\n search?: SearchDetails;\n /**\n * Time zone to adjust date-time-based filters and aggregations, in ISO 8601 (including offsets) or IANA time zone database (including time zone IDs) format.\n * Applies to all relevant filters and aggregations, unless overridden by providing timestamps including time zone. For example, \"2023-12-20T10:52:34.795Z\".\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface CursorSearchPagingMethodOneOf {\n /**\n * Cursor paging options.\n *\n * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Aggregation extends AggregationKindOneOf {\n /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n dateHistogram?: DateHistogramAggregation;\n /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n nested?: NestedAggregation;\n /** A geotile grid aggregation groups geo point values into buckets that represent map tiles at a given precision, for map clustering visualizations. */\n geotileGrid?: GeotileGridAggregation;\n /**\n * Aggregation name, returned in `aggregations.results.name`.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation to perform. Must align with the corresponding aggregation field. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n */\n fieldPath?: string;\n /**\n * Deprecated. Use `nested` instead.\n * @deprecated Deprecated. Use `nested` instead.\n * @replacedBy kind.nested\n * @targetRemovalDate 2024-03-30\n */\n groupBy?: GroupByAggregation;\n}\n\n/** @oneof */\nexport interface AggregationKindOneOf {\n /** A value aggregation calculates metrics such as count for specific fields within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of products for each price listed in the store. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.) For example, use a date histogram to find how many reservations have been made at a restaurant each week. */\n dateHistogram?: DateHistogramAggregation;\n /** A nested aggregation is applied within the results of another aggregation. Rather than aggregating directly on the primary dataset, first group data using one aggregation and then apply another aggregation within each group. It allows for more complex analyses where you can summarize data at different levels of detail or hierarchy. For example, to get the number of products that are in stock and out of stock for each price listed, first perform a value aggregation on `discountedPriceNumeric`, and a second value aggregation on `inStock`. */\n nested?: NestedAggregation;\n /** A geotile grid aggregation groups geo point values into buckets that represent map tiles at a given precision, for map clustering visualizations. */\n geotileGrid?: GeotileGridAggregation;\n}\n\nexport interface RangeBucket {\n /** Inclusive lower bound of the range. Required if `to` is not provided. */\n from?: number | null;\n /** Exclusive upper bound of the range. Required if `from` is not provided. */\n to?: number | null;\n}\n\nexport enum SortType {\n /** Number of matches in the results. */\n COUNT = 'COUNT',\n /** Alphabetically by the field value. */\n VALUE = 'VALUE',\n}\n\n/** @enumType */\nexport type SortTypeWithLiterals = SortType | 'COUNT' | 'VALUE';\n\nexport enum SortDirection {\n /** Descending order. */\n DESC = 'DESC',\n /** Ascending order. */\n ASC = 'ASC',\n}\n\n/** @enumType */\nexport type SortDirectionWithLiterals = SortDirection | 'DESC' | 'ASC';\n\nexport enum MissingValues {\n /** Exclude missing values from the aggregation results. */\n EXCLUDE = 'EXCLUDE',\n /** Include missing values in the aggregation results. */\n INCLUDE = 'INCLUDE',\n}\n\n/** @enumType */\nexport type MissingValuesWithLiterals = MissingValues | 'EXCLUDE' | 'INCLUDE';\n\nexport interface IncludeMissingValuesOptions {\n /**\n * Specify a custom name for the bucket containing the missing values. Defaults are `\"N/A\"` for strings, `0` for integers, and `false` for booleans.\n * @maxLength 20\n */\n addToBucket?: string;\n}\n\nexport enum ScalarType {\n /** Total number of distinct values. */\n COUNT_DISTINCT = 'COUNT_DISTINCT',\n /** Minimum value. */\n MIN = 'MIN',\n /** Maximum value. */\n MAX = 'MAX',\n /**\n * Sum of values.\n * @internal\n */\n SUM = 'SUM',\n /**\n * Average of values.\n * @internal\n */\n AVG = 'AVG',\n}\n\n/** @enumType */\nexport type ScalarTypeWithLiterals =\n | ScalarType\n | 'COUNT_DISTINCT'\n | 'MIN'\n | 'MAX';\n\nexport interface ValueAggregation extends ValueAggregationOptionsOneOf {\n /** Options for including missing values in results. */\n includeOptions?: IncludeMissingValuesOptions;\n /** Sort type. */\n sortType?: SortTypeWithLiterals;\n /** Sort direction. */\n sortDirection?: SortDirectionWithLiterals;\n /**\n * Number of aggregation results to return.\n * Min: `1`\n * Max: `250`\n * Default: `10`\n */\n limit?: number | null;\n /**\n * Whether to include or exclude missing values in the aggregation results.\n * Default: `EXCLUDE`.\n */\n missingValues?: MissingValuesWithLiterals;\n}\n\n/** @oneof */\nexport interface ValueAggregationOptionsOneOf {\n /** Options for including missing values in results. */\n includeOptions?: IncludeMissingValuesOptions;\n}\n\nexport enum NestedAggregationType {\n /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n VALUE = 'VALUE',\n /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n RANGE = 'RANGE',\n /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n SCALAR = 'SCALAR',\n /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n}\n\n/** @enumType */\nexport type NestedAggregationTypeWithLiterals =\n | NestedAggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM';\n\nexport interface RangeAggregation {\n /**\n * List of range buckets. During aggregation each entity is placed in the first bucket its value falls into, based on the provided range bounds.\n * @maxSize 50\n */\n buckets?: RangeBucket[];\n}\n\nexport interface ScalarAggregation {\n /** Operator type for the scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n}\n\nexport interface DateHistogramAggregation {\n /** Interval for date histogram aggregation. */\n interval?: DateHistogramAggregationIntervalWithLiterals;\n}\n\nexport enum DateHistogramAggregationInterval {\n YEAR = 'YEAR',\n MONTH = 'MONTH',\n WEEK = 'WEEK',\n DAY = 'DAY',\n HOUR = 'HOUR',\n MINUTE = 'MINUTE',\n SECOND = 'SECOND',\n}\n\n/** @enumType */\nexport type DateHistogramAggregationIntervalWithLiterals =\n | DateHistogramAggregationInterval\n | 'YEAR'\n | 'MONTH'\n | 'WEEK'\n | 'DAY'\n | 'HOUR'\n | 'MINUTE'\n | 'SECOND';\n\nexport interface NestedAggregationItem extends NestedAggregationItemKindOneOf {\n /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n dateHistogram?: DateHistogramAggregation;\n /**\n * Unique, caller-defined aggregation name, returned in `aggregations.results`.\n * @maxLength 100\n */\n name?: string | null;\n /** Type of aggregation to perform. The matching aggregation field must be passed. */\n type?: NestedAggregationTypeWithLiterals;\n /**\n * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationItemKindOneOf {\n /** A value aggregation calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. For example, use a value aggregation to get the number (count) of orders for each order status. */\n value?: ValueAggregation;\n /** A range aggregation calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. For example, use a range aggregation to compare the number of reservations made for parties of 4 or less to the number of reservations made for parties with 5 or more. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n range?: RangeAggregation;\n /** A scalar aggregation calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n scalar?: ScalarAggregation;\n /** A date histogram calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). For example, use a date histogram to determine how many reservations have been made at a restaurant each week. If ranges overlap, a record that fits more than one range will only be counted in the first range that matches the criteria. */\n dateHistogram?: DateHistogramAggregation;\n}\n\nexport enum AggregationType {\n /** Calculates the distribution of a specific field's values within a dataset, providing insights into the overall distribution and key statistics of those values. */\n VALUE = 'VALUE',\n /** Calculates the count of the values from the specified field in the dataset that fall within the range of each bucket you define. */\n RANGE = 'RANGE',\n /** Calculates a single numerical value from a dataset, summarizing the dataset into one key metric: `COUNT_DISTINCT`, `SUM`, `AVG`, `MIN`, or `MAX`. */\n SCALAR = 'SCALAR',\n /** Calculates the count of time values from the specified field in the dataset that fall within each time interval you define (hour, day, week, etc.). */\n DATE_HISTOGRAM = 'DATE_HISTOGRAM',\n /** Flattened list of aggregations, where each aggregation is nested within previous one. */\n NESTED = 'NESTED',\n /** Groups geo point values into buckets that represent map tiles at a given precision, for map clustering. */\n GEOTILE_GRID = 'GEOTILE_GRID',\n}\n\n/** @enumType */\nexport type AggregationTypeWithLiterals =\n | AggregationType\n | 'VALUE'\n | 'RANGE'\n | 'SCALAR'\n | 'DATE_HISTOGRAM'\n | 'NESTED'\n | 'GEOTILE_GRID';\n\n/** Nested aggregation expressed through a list of aggregation where each next aggregation is nested within previous one. */\nexport interface NestedAggregation {\n /**\n * Flattened list of aggregations, where each aggregation is nested within previous one.\n * @minSize 2\n * @maxSize 3\n */\n nestedAggregations?: NestedAggregationItem[];\n}\n\n/** Groups geo point values into buckets that represent map tiles at a given precision, for map clustering. */\nexport interface GeotileGridAggregation {\n /**\n * Precision (zoom) level of the geotile grid. Higher values produce smaller, more numerous tiles.\n * @max 29\n */\n precision?: number;\n}\n\nexport interface GroupByAggregation extends GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n /**\n * Unique, caller-defined aggregation name, returned in `aggregations.results`.\n * @maxLength 100\n */\n name?: string | null;\n /**\n * Field to aggregate by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface GroupByAggregationKindOneOf {\n /** Value aggregation configuration. */\n value?: ValueAggregation;\n}\n\nexport interface SearchDetails {\n /** Search mode. Defines the search logic for combining multiple terms in the `expression`. */\n mode?: ModeWithLiterals;\n /**\n * Search term or expression.\n * @maxLength 100\n */\n expression?: string | null;\n /**\n * Fields to search in. If the array is empty, all searchable fields are searched. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n * @maxSize 20\n */\n fields?: string[];\n /** Whether to enable the search function to use an algorithm to automatically find results that are close to the search expression, such as typos and declensions. */\n fuzzy?: boolean;\n}\n\nexport enum Mode {\n /** At least one of the search terms must be present. */\n OR = 'OR',\n /** All search terms must be present. */\n AND = 'AND',\n}\n\n/** @enumType */\nexport type ModeWithLiterals = Mode | 'OR' | 'AND';\n\nexport interface V2CursorSearch extends V2CursorSearchPagingMethodOneOf {\n /**\n * Cursor pointing to page of results.\n * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.\n */\n cursorPaging?: V2CursorPaging;\n /** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the form [{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]\n * @maxSize 10\n */\n sort?: Sorting[];\n /**\n * Aggregations | Faceted search: refers to a way to explore large amounts of data by displaying summaries about various partitions of the data and later allowing to narrow the navigation to a specific partition.\n * @maxSize 10\n */\n aggregations?: Aggregation[];\n /** Free text to match in searchable fields */\n search?: SearchDetails;\n /**\n * UTC offset or IANA time zone. Valid values are\n * ISO 8601 UTC offsets, such as +02:00 or -06:00,\n * and IANA time zone IDs, such as Europe/Rome\n *\n * Affects all filters and aggregations returned values.\n * You may override this behavior in a specific filter by providing\n * timestamps including time zone. e.g. `\"2023-12-20T10:52:34.795Z\"`\n * @maxLength 50\n */\n timeZone?: string | null;\n}\n\n/** @oneof */\nexport interface V2CursorSearchPagingMethodOneOf {\n /**\n * Cursor pointing to page of results.\n * When requesting 'cursor_paging.cursor', no `filter`, `sort` or `search` can be provided.\n */\n cursorPaging?: V2CursorPaging;\n}\n\nexport interface SearchPremiumAssetsResponse {\n /** Retrieved Premium assets. */\n premiumAssets?: PremiumAsset[];\n /** Paging metadata. */\n pagingMetadata?: CursorPagingMetadata;\n /** Aggregation data */\n aggregations?: AggregationData;\n}\n\nexport interface AggregationData {\n /**\n * List of the aggregated data results.\n * @maxSize 10000\n */\n results?: AggregationResults[];\n}\n\nexport interface ValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number;\n}\n\nexport interface RangeAggregationResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Total number of entities in this range. */\n count?: number;\n}\n\nexport interface NestedAggregationResults\n extends NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /**\n * Unique, caller-defined aggregation name, identifiable by the requested aggregation `name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field which the data was aggregated by.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface NestedAggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n}\n\nexport interface ValueResults {\n /**\n * List of value aggregations.\n * @maxSize 250\n */\n results?: ValueAggregationResult[];\n}\n\nexport interface RangeResults {\n /**\n * List of ranges returned in the same order as requested.\n * @maxSize 50\n */\n results?: RangeAggregationResult[];\n}\n\nexport interface AggregationResultsScalarResult {\n /** Type of scalar aggregation. */\n type?: ScalarTypeWithLiterals;\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface NestedValueAggregationResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Nested aggregations. */\n nestedResults?: NestedAggregationResults;\n}\n\nexport interface ValueResult {\n /**\n * Value of the field.\n * @maxLength 1000\n */\n value?: string;\n /** Number of entities with this value. */\n count?: number | null;\n}\n\nexport interface RangeResult {\n /** Inclusive lower bound of the range. */\n from?: number | null;\n /** Exclusive upper bound of the range. */\n to?: number | null;\n /** Number of entities in this range. */\n count?: number | null;\n}\n\nexport interface ScalarResult {\n /** Value of the scalar aggregation. */\n value?: number;\n}\n\nexport interface ScalarDateResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\nexport interface NestedResultValue extends NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\n/** @oneof */\nexport interface NestedResultValueResultOneOf {\n /** Value aggregation result. */\n value?: ValueResult;\n /** Range aggregation result. */\n range?: RangeResult;\n /** Scalar aggregation result. */\n scalar?: ScalarResult;\n /** Date histogram aggregation result. */\n dateHistogram?: ValueResult;\n /** Scalar date aggregation result. */\n scalarDate?: ScalarDateResult;\n}\n\nexport interface Results {\n /** List of nested aggregations. */\n results?: Record<string, NestedResultValue>;\n}\n\nexport interface DateHistogramResult {\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n /** Number of entities in the bucket. */\n count?: number;\n}\n\nexport interface GeotileGridBucket {\n /**\n * Tile key in `zoom/x/y` format.\n * @maxLength 30\n */\n tileKey?: string;\n /** Number of entities whose geo point falls inside the tile. */\n count?: number;\n /** Centroid of the geo points in the tile. */\n centroid?: AddressLocation;\n}\n\nexport interface GroupByValueResults {\n /**\n * List of value aggregations.\n * @maxSize 1000\n */\n results?: NestedValueAggregationResult[];\n}\n\nexport interface DateHistogramResults {\n /**\n * List of date histogram aggregations.\n * @maxSize 200\n */\n results?: DateHistogramResult[];\n}\n\n/** Results of `NESTED` aggregation type in a flattened array, identifiable by the requested aggregation `name`. */\nexport interface NestedResults {\n /**\n * List of nested aggregations.\n * @maxSize 1000\n */\n results?: Results[];\n}\n\nexport interface AggregationResultsScalarDateResult {\n /** Type of scalar date aggregation. Possible values: `MIN`, `MAX`. */\n type?: ScalarTypeWithLiterals;\n /**\n * Date in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.\n * @maxLength 100\n */\n value?: string;\n}\n\n/** Geotile grid aggregation results — one bucket per map tile at the requested precision. */\nexport interface GeotileGridResults {\n /**\n * List of tile buckets.\n * @maxSize 1000\n */\n results?: GeotileGridBucket[];\n}\n\nexport interface AggregationResults extends AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n /** Geotile grid aggregation results. */\n geotileGrid?: GeotileGridResults;\n /**\n * Aggregation name, returned in `aggregations.results.name`.\n * @maxLength 100\n */\n name?: string;\n /** Aggregation type. Must align with the corresponding aggregation field. */\n type?: AggregationTypeWithLiterals;\n /**\n * Field to aggregate by. Use dot notation to specify a JSON path. For example, `order.address.streetName`.\n * @maxLength 200\n */\n fieldPath?: string;\n}\n\n/** @oneof */\nexport interface AggregationResultsResultOneOf {\n /** Value aggregation results. */\n values?: ValueResults;\n /** Range aggregation results. */\n ranges?: RangeResults;\n /** Scalar aggregation results. */\n scalar?: AggregationResultsScalarResult;\n /** Group by value aggregation results. */\n groupedByValue?: GroupByValueResults;\n /** Date histogram aggregation results. */\n dateHistogram?: DateHistogramResults;\n /** Nested aggregation results. */\n nested?: NestedResults;\n /** Date aggregation results. */\n scalarDate?: AggregationResultsScalarDateResult;\n /** Geotile grid aggregation results. */\n geotileGrid?: GeotileGridResults;\n}\n\nexport interface CountPremiumAssetsRequest {\n /** Filter which Premium assets are counted. */\n filter?: Record<string, any> | null;\n /**\n * Whether the count includes also Premium assets for which the specified account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps).\n *\n * The service may ignore this setting when permitted assets cannot affect the result,\n * such as when filtering for unassigned assets.\n *\n * Default: `false`\n */\n includePermitted?: boolean | null;\n}\n\nexport interface CountPremiumAssetsResponse {\n /** Number of Premium assets belonging to the account. */\n count?: number;\n}\n\nexport interface ListSitesPremiumStatusRequest {\n /**\n * List of metasite IDs for which to identify the Premium status.\n *\n * Min: `1`\n * Max: `100`\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n metaSiteIds?: string[];\n}\n\nexport interface ListSitesPremiumStatusResponse {\n /** List of sites and their Premium status. */\n sitePremiumStatus?: SitePremiumStatus[];\n}\n\nexport interface SitePremiumStatus {\n /**\n * Metasite ID.\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * The site's Premium status.\n *\n * + `\"UNKNOWN_PREMIUM_STATUS\"`: There's no information about the site's Premium status.\n * + `\"FREE\"`: The site doesn't have a Premium plan that's currently active.\n * + `\"PREMIUM\"`: The site has a Premium plan that's currently active.\n */\n premiumStatus?: PremiumStatusWithLiterals;\n}\n\nexport enum PremiumStatus {\n /** Site does not have a premium plan connected to it */\n FREE = 'FREE',\n /** Site has an active premium plan connected to it */\n PREMIUM = 'PREMIUM',\n}\n\n/** @enumType */\nexport type PremiumStatusWithLiterals = PremiumStatus | 'FREE' | 'PREMIUM';\n/** @docsIgnore */\nexport type QueryPremiumAssetsApplicationErrors =\n | {\n code?: 'TARGET_ACCOUNT_MISSING_IN_CONTEXT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'METASITE_MISSING_IN_CONTEXT';\n description?: string;\n data?: Record<string, any>;\n };\n\n/**\n * Retrieves a list of Premium assets, given the provided [paging][1] and\n * [filtering][2]. Assets for which the account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps)\n * aren't returned by default.\n *\n *\n * You must pass `targetAccountId` explicitly as a header parameter to query\n * assets. The call fails if you omit it.\n *\n * To query assets for which the account is Billing Manager pass\n * `{\"includePermitted\": true}`.\n *\n * Sorting is applied to the first page of results only. Following requests use\n * the cursor token, which already carries the sort from the first call.\n *\n * Up to 100 Premium assets can be returned per request. The default\n * `cursorPaging.limit` is 50.\n *\n * To learn how to query Premium assets, see [API Query Language][3].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/pagination\n * [2]: https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching\n * [3]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @public\n * @documentationMaturity preview\n * @permissionId PREMIUM.PREMIUM_ASSET_READ\n * @fqn wix.premium.asset.reader.v2.PremiumAssetReaderService.QueryPremiumAssets\n */\nexport async function queryPremiumAssets(\n options?: QueryPremiumAssetsOptions\n): Promise<\n NonNullablePaths<\n QueryPremiumAssetsResponse,\n | `premiumAssets`\n | `premiumAssets.${number}.domainsData.domain`\n | `premiumAssets.${number}.domainsData.primary`\n | `premiumAssets.${number}.domainsData.privacy`\n | `premiumAssets.${number}.domainsData.validInRegistrar`\n | `premiumAssets.${number}.domainsData.dnssecSupported`\n | `premiumAssets.${number}.domainsData.insuranceSupported`\n | `premiumAssets.${number}.domainsData.insuranceActivated`\n | `premiumAssets.${number}.mailboxesData.domainName`\n | `premiumAssets.${number}.mailboxesData.seats`\n | `premiumAssets.${number}.mailboxesData.vendor`\n | `premiumAssets.${number}.digitalGoodsData.digitalGoodsType`\n | `premiumAssets.${number}.premiumId`\n | `premiumAssets.${number}.siteData.metasiteId`\n | `premiumAssets.${number}.siteData.siteName`\n | `premiumAssets.${number}.accountOwnerId`\n | `premiumAssets.${number}.billingReference.providerName`\n | `premiumAssets.${number}.billingReference.providerReferenceId`\n | `premiumAssets.${number}.status`\n | `premiumAssets.${number}.deliveryComplete`\n | `premiumAssets.${number}.renewalType`\n | `premiumAssets.${number}.billingCycle.cycleType`\n | `premiumAssets.${number}.billingCycle.cycleDuration.unit`\n | `premiumAssets.${number}.billingCycle.cycleDuration.count`\n | `premiumAssets.${number}.pendingChanges.product.productId`\n | `premiumAssets.${number}.pendingChanges.product.productTypeId`\n | `premiumAssets.${number}.pendingChanges.product.productTypeName`\n | `premiumAssets.${number}.pendingChanges.product.productName`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentMethodType`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.displayLabel`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentSourceId`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.invoiceId`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.currencyCode`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.amount`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.paymentStatus`\n | `premiumAssets.${number}.wixBillingDetails.customCharges`\n | `premiumAssets.${number}.freeTrialData.inFreeTrialPeriod`\n | `premiumAssets.${number}.freeTrialData.pendingExternalActivation`,\n 6\n > & {\n __applicationErrorsType?: QueryPremiumAssetsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n query: options?.query,\n cursorQuery: options?.cursorQuery,\n includePermitted: options?.includePermitted,\n });\n\n const reqOpts =\n ambassadorWixPremiumAssetV2PremiumAsset.queryPremiumAssets(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n query: '$[0].query',\n cursorQuery: '$[0].cursorQuery',\n includePermitted: '$[0].includePermitted',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface QueryPremiumAssetsOptions {\n /**\n * [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @deprecated [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @replacedBy cursor_query\n * @targetRemovalDate 2024-07-31\n */\n query?: CursorQuery;\n /** [WQL expression](https://dev.wix.com/api/rest/getting-started/api-query-language). */\n cursorQuery?: V2CursorQuery;\n /**\n * Whether the response includes also Premium assets for which the specified account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps).\n *\n * The service may ignore this setting when permitted assets cannot affect the result,\n * such as when filtering for unassigned assets.\n *\n * Default: `false`\n */\n includePermitted?: boolean | null;\n}\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixPremiumAssetReaderV2PremiumAssetReaderServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'manage.base44.com': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n 'vibe._base_domain_': [\n {\n srcPath: '/_api/premium-asset-view-reader',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/premium-asset-view-reader/premium-status',\n destPath: '/v2/premium-assets/premium-status',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_premium-assets_premium-assets';\n\n/**\n * Retrieves a list of Premium assets, given the provided [paging][1] and\n * [filtering][2]. Assets for which the account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps)\n * aren't returned by default.\n *\n *\n * You must pass `targetAccountId` explicitly as a header parameter to query\n * assets. The call fails if you omit it.\n *\n * To query assets for which the account is Billing Manager pass\n * `{\"includePermitted\": true}`.\n *\n * Sorting is applied to the first page of results only. Following requests use\n * the cursor token, which already carries the sort from the first call.\n *\n * Up to 100 Premium assets can be returned per request. The default\n * `cursorPaging.limit` is 50.\n *\n * To learn how to query Premium assets, see [API Query Language][3].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/pagination\n * [2]: https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching\n * [3]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPremiumAssets(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPremiumAssets({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'query.sort.origin.latitude' },\n { path: 'query.sort.origin.longitude' },\n { path: 'cursorQuery.sort.origin.latitude' },\n { path: 'cursorQuery.sort.origin.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.premium.asset.v2.premium_asset',\n method: 'POST' as any,\n methodFqn:\n 'wix.premium.asset.reader.v2.PremiumAssetReaderService.QueryPremiumAssets',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixPremiumAssetReaderV2PremiumAssetReaderServiceUrl({\n protoPath: '/v2/premium-assets/query',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'premiumAssets.createdDate' },\n { path: 'premiumAssets.updatedDate' },\n { path: 'premiumAssets.sourceEntityCreatedDate' },\n { path: 'premiumAssets.sourceEntityOriginalCreationDate' },\n { path: 'premiumAssets.subscriptionEndDate' },\n { path: 'premiumAssets.moneyBackPeriodEndDate' },\n { path: 'premiumAssets.domainsData.expirationDate' },\n { path: 'premiumAssets.domainsData.validExtendPeriod.startTime' },\n { path: 'premiumAssets.domainsData.validExtendPeriod.endTime' },\n { path: 'premiumAssets.domainsData.redemptionPeriod.startTime' },\n { path: 'premiumAssets.domainsData.redemptionPeriod.endTime' },\n {\n path: 'premiumAssets.wixBillingDetails.lastInvoiceDetails.date',\n },\n {\n path: 'premiumAssets.wixBillingDetails.nextInvoiceDetails.date',\n },\n {\n path: 'premiumAssets.wixBillingDetails.lastSuccessfulInvoiceDetails.date',\n },\n { path: 'premiumAssets.freeTrialData.endDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __queryPremiumAssets;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n QueryPremiumAssetsApplicationErrors,\n QueryPremiumAssetsOptions,\n QueryPremiumAssetsResponse,\n queryPremiumAssets as universalQueryPremiumAssets,\n} from './premium-asset-v2-premium-asset-premium-assets.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/premium-assets' };\n\nexport function queryPremiumAssets(\n httpClient: HttpClient\n): QueryPremiumAssetsSignature {\n return (options?: QueryPremiumAssetsOptions) =>\n universalQueryPremiumAssets(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface QueryPremiumAssetsSignature {\n /**\n * Retrieves a list of Premium assets, given the provided [paging][1] and\n * [filtering][2]. Assets for which the account is\n * [Billing Manager](https://support.wix.com/en/article/roles-permissions-overview#roles-for-integrated-wix-apps)\n * aren't returned by default.\n *\n *\n * You must pass `targetAccountId` explicitly as a header parameter to query\n * assets. The call fails if you omit it.\n *\n * To query assets for which the account is Billing Manager pass\n * `{\"includePermitted\": true}`.\n *\n * Sorting is applied to the first page of results only. Following requests use\n * the cursor token, which already carries the sort from the first call.\n *\n * Up to 100 Premium assets can be returned per request. The default\n * `cursorPaging.limit` is 50.\n *\n * To learn how to query Premium assets, see [API Query Language][3].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/pagination\n * [2]: https://dev.wix.com/api/rest/contacts/contacts/sorting,-filtering,-and-searching\n * [3]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\n (options?: QueryPremiumAssetsOptions): Promise<\n NonNullablePaths<\n QueryPremiumAssetsResponse,\n | `premiumAssets`\n | `premiumAssets.${number}.domainsData.domain`\n | `premiumAssets.${number}.domainsData.primary`\n | `premiumAssets.${number}.domainsData.privacy`\n | `premiumAssets.${number}.domainsData.validInRegistrar`\n | `premiumAssets.${number}.domainsData.dnssecSupported`\n | `premiumAssets.${number}.domainsData.insuranceSupported`\n | `premiumAssets.${number}.domainsData.insuranceActivated`\n | `premiumAssets.${number}.mailboxesData.domainName`\n | `premiumAssets.${number}.mailboxesData.seats`\n | `premiumAssets.${number}.mailboxesData.vendor`\n | `premiumAssets.${number}.digitalGoodsData.digitalGoodsType`\n | `premiumAssets.${number}.premiumId`\n | `premiumAssets.${number}.siteData.metasiteId`\n | `premiumAssets.${number}.siteData.siteName`\n | `premiumAssets.${number}.accountOwnerId`\n | `premiumAssets.${number}.billingReference.providerName`\n | `premiumAssets.${number}.billingReference.providerReferenceId`\n | `premiumAssets.${number}.status`\n | `premiumAssets.${number}.deliveryComplete`\n | `premiumAssets.${number}.renewalType`\n | `premiumAssets.${number}.billingCycle.cycleType`\n | `premiumAssets.${number}.billingCycle.cycleDuration.unit`\n | `premiumAssets.${number}.billingCycle.cycleDuration.count`\n | `premiumAssets.${number}.pendingChanges.product.productId`\n | `premiumAssets.${number}.pendingChanges.product.productTypeId`\n | `premiumAssets.${number}.pendingChanges.product.productTypeName`\n | `premiumAssets.${number}.pendingChanges.product.productName`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentMethodType`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.displayLabel`\n | `premiumAssets.${number}.wixBillingDetails.paymentMethod.paymentSourceId`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.invoiceId`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.currencyCode`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.amount`\n | `premiumAssets.${number}.wixBillingDetails.lastInvoiceDetails.paymentStatus`\n | `premiumAssets.${number}.wixBillingDetails.customCharges`\n | `premiumAssets.${number}.freeTrialData.inFreeTrialPeriod`\n | `premiumAssets.${number}.freeTrialData.pendingExternalActivation`,\n 6\n > & {\n __applicationErrorsType?: QueryPremiumAssetsApplicationErrors;\n }\n >;\n}\n\nexport {\n Account,\n AccountInfo,\n ActionEvent,\n ActionStatus,\n ActionStatusStatusOneOf,\n ActiveRegistration,\n AdditionalFee,\n AdditionalFeeTrigger,\n Address,\n AddressHint,\n AddressLocation,\n Aggregation,\n AggregationData,\n AggregationKindOneOf,\n AggregationResults,\n AggregationResultsResultOneOf,\n AggregationResultsScalarDateResult,\n AggregationResultsScalarResult,\n AggregationType,\n AllCardBrands,\n AlternativePaymentMethod,\n AlternativePaymentMethodType,\n ApplicationFee,\n ApplicationFeeValueOneOf,\n AssetStatus,\n AssetToRecollect,\n AssetToRecollectAssetClassifierOneOf,\n AssetType,\n AutomaticRetryData,\n BankTransfer,\n BankTransferDetails,\n BankTransferType,\n BassBillingDetails,\n BillingDetails,\n BillingProviderType,\n BillingReference,\n BillingReferenceProviderName,\n BillingSettings,\n BillingStatus,\n BillingSubscriptionCancelled,\n BulkGetPermittedPremiumAssetsRequest,\n BulkGetPermittedPremiumAssetsResponse,\n BulkRecollectPremiumAsset,\n BusinessOrigin,\n BusinessSchedule,\n CancelActionConfiguration,\n CancelActionSettings,\n CancellationDetails,\n CancellationInfo,\n CannotExtendReasonEnum,\n Card,\n CardBrand,\n CardBrands,\n CardSupportedBrandsOneOf,\n Cash,\n CashDetails,\n CashType,\n CatalogReference,\n Categories,\n ChangeContext,\n ChangeContextPayloadOneOf,\n CollectionMethod,\n ConnectedToSite,\n ConnectionLost,\n ConnectionVerified,\n ConsentPolicy,\n Contact,\n ContactVerificationStatus,\n ContactVerificationStatusChanged,\n Contacts,\n ContractSwitchReason,\n ContractSwitchType,\n ContractSwitched,\n CountPremiumAssetsRequest,\n CountPremiumAssetsResponse,\n CouponData,\n CrudType,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Cursors,\n CustomBillingSchedule,\n CustomProration,\n CustomProrationAmountOneOf,\n Customer,\n CustomerActionCounters,\n CustomerActionSettings,\n CustomerIdOneOf,\n Cycle,\n CycleCycleSelectorOneOf,\n CycleDuration,\n CycleMessage,\n CycleType,\n Cycles,\n DateHistogramAggregation,\n DateHistogramAggregationInterval,\n DateHistogramResult,\n DateHistogramResults,\n DayOfWeek,\n Deactivated,\n DeferredBillingData,\n DeleteAssetRequest,\n DigitalGoodCancelled,\n DigitalGoodChangeMessage,\n DigitalGoodChangeMessagePayloadOneOf,\n DigitalGoodDelivered,\n DigitalGoodsData,\n DigitalGoodsType,\n DirectDebit,\n DirectDebitBrand,\n DisconnectedFromSite,\n Discount,\n DiscountCycles,\n DiscountDetails,\n DiscountOrigin,\n DiscountValueOneOf,\n DnssecChanged,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n DomainData,\n DomainEvent,\n DomainEventBodyOneOf,\n DomainPrivacy,\n DomainRegistrationChangedEvent,\n Duration,\n DurationDurationUnit,\n DurationUnit,\n DynamicTax,\n EligibilityIdType,\n EligibilityIdTypeEnum,\n EligibilityType,\n EligibilityTypeEnum,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityType,\n EntityTypeEnum,\n EntityUpdatedEvent,\n EsIdType,\n EsIdTypeEnum,\n ExpirationDateChanged,\n Expired,\n ExternalCollectionDetails,\n ExternalPaymentMethodDetails,\n ExternalPrice,\n Failure,\n FixedPrice,\n FreeTrialData,\n FullAddressContactDetails,\n FullAddressDetails,\n FullName,\n GeoCoordinates,\n GeotileGridAggregation,\n GeotileGridBucket,\n GeotileGridResults,\n GetPremiumAssetByPremiumIdRequest,\n GetPremiumAssetByPremiumIdResponse,\n GetPremiumAssetRequest,\n GetPremiumAssetResponse,\n GraceEnded,\n GracePeriodData,\n GroupByAggregation,\n GroupByAggregationKindOneOf,\n GroupByValueResults,\n HistoryActionInitiator,\n ICANNContactVerificationStatus,\n ICANNStatusInfo,\n ICANNStatusInfoStatusOneOf,\n IdentificationData,\n IdentificationDataIdOneOf,\n IlRegistrantType,\n IlRegistrantTypeEnum,\n InactiveRegistration,\n IncludeMissingValuesOptions,\n Initiator,\n Interval,\n IntervalUnit,\n Invoice,\n InvoiceDetails,\n InvoiceLineItem,\n InvoiceStatus,\n Item,\n ItemCategory,\n ItemChange,\n LegalType,\n LegalTypeEnum,\n LifecycleStatus,\n LifecycleStatusStatusOneOf,\n ListSitesPremiumStatusRequest,\n ListSitesPremiumStatusResponse,\n Locale,\n MailboxData,\n ManagementTypeChanged,\n MessageEnvelope,\n MissingValues,\n Mode,\n Multilingual,\n NameServersTypeEnum,\n NestedAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n NestedAggregationType,\n NestedResultValue,\n NestedResultValueResultOneOf,\n NestedResults,\n NestedValueAggregationResult,\n NextInvoiceDetails,\n NexusCategory,\n NexusCategoryEnum,\n OneTime,\n Origin,\n OwnerChanged,\n PauseAt,\n PauseInfo,\n PausePolicy,\n PauseResumeActionConfiguration,\n PauseResumeActionSettings,\n PaymentBrand,\n PaymentData,\n PaymentDisplayProperties,\n PaymentIntegration,\n PaymentMethod,\n PaymentMethodPaymentMethodSelectorOneOf,\n PaymentMethodType,\n PaymentSource,\n PaymentStatus,\n PaymentTaxData,\n PaymentType,\n Pending,\n PendingChanges,\n PlacementType,\n PlatformOrigin,\n PolicyReason,\n PolicyReasonEnum,\n PremiumAsset,\n PremiumAssetTypeSpecificDataOneOf,\n PremiumStatus,\n PriceIncreaseProcessed,\n PriceIncreaseTrigger,\n PricingModel,\n PricingModelModelOneOf,\n PrivacyChanged,\n ProductAdjustment,\n ProductData,\n ProductPriceIncreaseData,\n PropagationStarted,\n Properties,\n PropertiesChange,\n Proration,\n ProrationTypeOneOf,\n ProviderName,\n PublicAlternativePaymentMethodDetails,\n PublicCreditCard,\n PublicDirectDebitDetails,\n PublicSepaDetails,\n QueryAccountPremiumAssetsRequest,\n QueryAccountPremiumAssetsResponse,\n QueryPremiumAssetsOptions,\n QueryPremiumAssetsRequest,\n QueryPremiumAssetsResponse,\n RangeAggregation,\n RangeAggregationResult,\n RangeBucket,\n RangeResult,\n RangeResults,\n ReactivationData,\n ReactivationReasonEnum,\n RecollectAccountRequest,\n RecollectAccountResponse,\n RecollectAssetResult,\n RecollectAssetsRequest,\n RecollectAssetsResponse,\n RecollectDigitalGood,\n RecollectGoogleMailbox,\n RecollectPremiumAsset,\n RecollectPremiumAssetExtended,\n RecollectPremiumAssetExtendedBillingDetailsOneOf,\n RecollectPremiumAssetRecollectAssetOneOf,\n RecollectRegistration,\n RecollectSubscription,\n RecurringChargeAttemptFailed,\n RecurringChargeFailureReason,\n RecurringChargeSucceeded,\n RecurringType,\n RecurringTypeMessageRecurringType,\n RedeemStatusEnum,\n RedemptionEnded,\n RefundType,\n Registered,\n RegistrarName,\n Registration,\n RegistrationCanExtendDataOneOf,\n RegistrationCancelled,\n RegistrationExtended,\n RenewalType,\n ResolutionMethod,\n RestoreInfo,\n Results,\n ResumeAt,\n SbsBillingDetails,\n ScalarAggregation,\n ScalarDateResult,\n ScalarResult,\n ScalarType,\n SearchDetails,\n SearchPremiumAssetsRequest,\n SearchPremiumAssetsResponse,\n SelfPickup,\n Service,\n ServicePendingChanges,\n ServiceStatus,\n Shipping,\n ShippingCharges,\n ShippingDetails,\n ShippingShippingSelectorOneOf,\n SiteCloned,\n SiteCreated,\n SiteData,\n SitePremiumStatus,\n SitePropertiesEvent,\n SitePropertiesNotification,\n SkipActionConfiguration,\n SkipActionSettings,\n SortDirection,\n SortOrder,\n SortType,\n Sorting,\n SpecialHourPeriod,\n SpecificDateSubscriptionUpdateData,\n Street,\n StreetAddress,\n Subscription,\n SubscriptionAssigned,\n SubscriptionAutoRenewTurnedOff,\n SubscriptionAutoRenewTurnedOn,\n SubscriptionCancelled,\n SubscriptionCreated,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionMigratedFromVista,\n SubscriptionNearEndOfPeriod,\n SubscriptionPendingChange,\n SubscriptionPolicies,\n SubscriptionStatus,\n SubscriptionStatusEnumSubscriptionStatus,\n SubscriptionTransferred,\n SubscriptionUnassigned,\n SubscriptionUpdateData,\n SubscriptionUpdated,\n SubscriptionVistaMigrationReverted,\n Success,\n SupportedLanguage,\n Tax,\n TaxAmount,\n TaxBreakdown,\n TaxCalculationType,\n TaxInfo,\n TaxInfoModel,\n TaxSettings,\n TaxableAddressType,\n TimeBasedProration,\n TimeInterval,\n TimePeriod,\n Totals,\n TransactionData,\n TransferDetails,\n Translation,\n TypeSpecificFields,\n UnassignReason,\n UpdateBillingDateActionConfiguration,\n UpdateBillingDateActionSettings,\n UpdateBillingDateData,\n UpmActionSettings,\n V1Address,\n V1AddressStreetOneOf,\n V1Cycle,\n V1FreeTrialData,\n V1PaymentMethod,\n V1PaymentMethodType,\n V1PaymentMethodTypeType_SelectorOneOf,\n V1Subscription,\n V1Tax,\n V1TaxValueOneOf,\n V2BillingReference,\n V2CursorPaging,\n V2CursorQuery,\n V2CursorQueryPagingMethodOneOf,\n V2CursorSearch,\n V2CursorSearchPagingMethodOneOf,\n V2FreeTrialData,\n V2PaymentMethod,\n V2PaymentStatus,\n V4Address,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n ValueAggregationResult,\n ValueResult,\n ValueResults,\n VendorType,\n VerificationStarted,\n Verified,\n WebhookIdentityType,\n YearMonth,\n} from './premium-asset-v2-premium-asset-premium-assets.universal.js';\n","import { queryPremiumAssets as publicQueryPremiumAssets } from './premium-asset-v2-premium-asset-premium-assets.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const queryPremiumAssets: MaybeContext<\n BuildRESTFunction<typeof publicQueryPremiumAssets> &\n typeof publicQueryPremiumAssets\n> = /*#__PURE__*/ createRESTModule(publicQueryPremiumAssets);\n\nexport {\n DomainPrivacy,\n VendorType,\n DigitalGoodsType,\n BillingReferenceProviderName,\n AssetStatus,\n RenewalType,\n DurationDurationUnit,\n CycleType,\n V2PaymentStatus,\n CrudType,\n ProviderName,\n IntervalUnit,\n SubscriptionStatusEnumSubscriptionStatus,\n ReactivationReasonEnum,\n Initiator,\n RefundType,\n UnassignReason,\n ContractSwitchType,\n ContractSwitchReason,\n PriceIncreaseTrigger,\n ProductAdjustment,\n RecurringChargeFailureReason,\n ContactVerificationStatus,\n PlacementType,\n DayOfWeek,\n ResolutionMethod,\n WebhookIdentityType,\n ServiceStatus,\n RecurringTypeMessageRecurringType,\n TaxCalculationType,\n CardBrand,\n DirectDebitBrand,\n CashType,\n BankTransferType,\n RecurringType,\n AlternativePaymentMethodType,\n PaymentIntegration,\n PaymentMethodType,\n InvoiceStatus,\n SubscriptionStatus,\n CollectionMethod,\n DurationUnit,\n AdditionalFeeTrigger,\n TaxableAddressType,\n PaymentStatus,\n PausePolicy,\n PauseAt,\n ResumeAt,\n HistoryActionInitiator,\n ItemCategory,\n RegistrarName,\n ICANNContactVerificationStatus,\n LegalTypeEnum,\n EntityTypeEnum,\n PolicyReasonEnum,\n EligibilityTypeEnum,\n EligibilityIdTypeEnum,\n BillingProviderType,\n RedeemStatusEnum,\n CannotExtendReasonEnum,\n NexusCategoryEnum,\n IlRegistrantTypeEnum,\n NameServersTypeEnum,\n EsIdTypeEnum,\n AssetType,\n SortOrder,\n SortType,\n SortDirection,\n MissingValues,\n ScalarType,\n NestedAggregationType,\n DateHistogramAggregationInterval,\n AggregationType,\n Mode,\n PremiumStatus,\n} from './premium-asset-v2-premium-asset-premium-assets.universal.js';\nexport {\n PremiumAsset,\n PremiumAssetTypeSpecificDataOneOf,\n SiteData,\n DomainData,\n TimeInterval,\n MailboxData,\n DigitalGoodsData,\n TypeSpecificFields,\n V2BillingReference,\n V1Cycle,\n CycleDuration,\n ServicePendingChanges,\n ProductData,\n BillingDetails,\n V2PaymentMethod,\n InvoiceDetails,\n NextInvoiceDetails,\n V2FreeTrialData,\n DomainRegistrationChangedEvent,\n Empty,\n SubscriptionEvent,\n SubscriptionEventEventOneOf,\n SubscriptionCreated,\n V1Subscription,\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 SubscriptionUpdated,\n SubscriptionMigratedFromVista,\n SubscriptionVistaMigrationReverted,\n DomainChangedEvent,\n DomainChangedEventPayloadOneOf,\n Registered,\n RegistrationCancelled,\n ConnectedToSite,\n DisconnectedFromSite,\n RegistrationExtended,\n OwnerChanged,\n PrivacyChanged,\n ManagementTypeChanged,\n BillingSubscriptionCancelled,\n ConnectionVerified,\n ConnectionLost,\n ExpirationDateChanged,\n PropagationStarted,\n VerificationStarted,\n ContactVerificationStatusChanged,\n Expired,\n GraceEnded,\n RedemptionEnded,\n DnssecChanged,\n PriceIncreaseProcessed,\n SitePropertiesNotification,\n SitePropertiesEvent,\n Properties,\n Categories,\n Locale,\n V4Address,\n AddressHint,\n GeoCoordinates,\n BusinessSchedule,\n TimePeriod,\n SpecialHourPeriod,\n Multilingual,\n SupportedLanguage,\n ConsentPolicy,\n Translation,\n ChangeContext,\n ChangeContextPayloadOneOf,\n PropertiesChange,\n SiteCreated,\n SiteCloned,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n DigitalGoodChangeMessage,\n DigitalGoodChangeMessagePayloadOneOf,\n DigitalGoodDelivered,\n DigitalGoodCancelled,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n RecollectPremiumAssetExtended,\n RecollectPremiumAssetExtendedBillingDetailsOneOf,\n Service,\n CycleMessage,\n PendingChanges,\n FreeTrialData,\n TransferDetails,\n DiscountDetails,\n DeferredBillingData,\n PaymentSource,\n PublicCreditCard,\n YearMonth,\n PublicSepaDetails,\n V1PaymentMethodType,\n V1PaymentMethodTypeType_SelectorOneOf,\n CardBrands,\n AllCardBrands,\n PaymentType,\n Account,\n PaymentBrand,\n Card,\n CardSupportedBrandsOneOf,\n DirectDebit,\n Cash,\n BankTransfer,\n AlternativePaymentMethod,\n PublicDirectDebitDetails,\n CashDetails,\n BankTransferDetails,\n PublicAlternativePaymentMethodDetails,\n ExternalPaymentMethodDetails,\n PaymentDisplayProperties,\n PaymentMethod,\n PaymentMethodPaymentMethodSelectorOneOf,\n Address,\n FullName,\n Street,\n TaxInfo,\n TaxInfoModel,\n Invoice,\n Shipping,\n ShippingShippingSelectorOneOf,\n ShippingDetails,\n SelfPickup,\n InvoiceLineItem,\n Tax,\n TaxAmount,\n CouponData,\n TransactionData,\n Subscription,\n BusinessOrigin,\n Customer,\n CustomerIdOneOf,\n BillingSettings,\n V1PaymentMethod,\n Duration,\n CustomBillingSchedule,\n FullAddressDetails,\n FullAddressContactDetails,\n V1Address,\n V1AddressStreetOneOf,\n StreetAddress,\n TaxSettings,\n AdditionalFee,\n V1Tax,\n V1TaxValueOneOf,\n DynamicTax,\n Cycles,\n Origin,\n ShippingCharges,\n Discount,\n DiscountValueOneOf,\n DiscountCycles,\n DiscountOrigin,\n ExternalCollectionDetails,\n BillingStatus,\n PaymentData,\n Totals,\n PaymentTaxData,\n TaxBreakdown,\n V1FreeTrialData,\n UpdateBillingDateData,\n Proration,\n ProrationTypeOneOf,\n TimeBasedProration,\n CustomProration,\n CustomProrationAmountOneOf,\n GracePeriodData,\n AutomaticRetryData,\n SubscriptionPolicies,\n CustomerActionSettings,\n SkipActionSettings,\n SkipActionConfiguration,\n PauseResumeActionSettings,\n PauseResumeActionConfiguration,\n CancelActionSettings,\n CancelActionConfiguration,\n UpmActionSettings,\n UpdateBillingDateActionSettings,\n UpdateBillingDateActionConfiguration,\n CustomerActionCounters,\n PauseInfo,\n CancellationInfo,\n SubscriptionUpdateData,\n ItemChange,\n PricingModel,\n PricingModelModelOneOf,\n FixedPrice,\n ExternalPrice,\n Item,\n CatalogReference,\n ApplicationFee,\n ApplicationFeeValueOneOf,\n SpecificDateSubscriptionUpdateData,\n PlatformOrigin,\n RecollectPremiumAsset,\n RecollectPremiumAssetRecollectAssetOneOf,\n RecollectSubscription,\n RecollectRegistration,\n Registration,\n RegistrationCanExtendDataOneOf,\n ActiveRegistration,\n InactiveRegistration,\n Contacts,\n Contact,\n LifecycleStatus,\n LifecycleStatusStatusOneOf,\n LegalType,\n EntityType,\n PolicyReason,\n EligibilityType,\n EligibilityIdType,\n ICANNStatusInfo,\n ICANNStatusInfoStatusOneOf,\n Pending,\n Verified,\n Deactivated,\n NexusCategory,\n IlRegistrantType,\n EsIdType,\n RecollectGoogleMailbox,\n RecollectDigitalGood,\n SbsBillingDetails,\n BassBillingDetails,\n BulkRecollectPremiumAsset,\n RecollectAccountRequest,\n RecollectAccountResponse,\n RecollectAssetsRequest,\n AssetToRecollect,\n AssetToRecollectAssetClassifierOneOf,\n RecollectAssetsResponse,\n RecollectAssetResult,\n ActionStatus,\n ActionStatusStatusOneOf,\n Success,\n Failure,\n DeleteAssetRequest,\n QueryAccountPremiumAssetsRequest,\n V2CursorQuery,\n V2CursorQueryPagingMethodOneOf,\n Sorting,\n AddressLocation,\n V2CursorPaging,\n QueryAccountPremiumAssetsResponse,\n CursorPagingMetadata,\n Cursors,\n GetPremiumAssetRequest,\n GetPremiumAssetResponse,\n GetPremiumAssetByPremiumIdRequest,\n GetPremiumAssetByPremiumIdResponse,\n BulkGetPermittedPremiumAssetsRequest,\n BulkGetPermittedPremiumAssetsResponse,\n QueryPremiumAssetsRequest,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n CursorPaging,\n QueryPremiumAssetsResponse,\n SearchPremiumAssetsRequest,\n CursorSearch,\n CursorSearchPagingMethodOneOf,\n Aggregation,\n AggregationKindOneOf,\n RangeBucket,\n IncludeMissingValuesOptions,\n ValueAggregation,\n ValueAggregationOptionsOneOf,\n RangeAggregation,\n ScalarAggregation,\n DateHistogramAggregation,\n NestedAggregationItem,\n NestedAggregationItemKindOneOf,\n NestedAggregation,\n GeotileGridAggregation,\n GroupByAggregation,\n GroupByAggregationKindOneOf,\n SearchDetails,\n V2CursorSearch,\n V2CursorSearchPagingMethodOneOf,\n SearchPremiumAssetsResponse,\n AggregationData,\n ValueAggregationResult,\n RangeAggregationResult,\n NestedAggregationResults,\n NestedAggregationResultsResultOneOf,\n ValueResults,\n RangeResults,\n AggregationResultsScalarResult,\n NestedValueAggregationResult,\n ValueResult,\n RangeResult,\n ScalarResult,\n ScalarDateResult,\n NestedResultValue,\n NestedResultValueResultOneOf,\n Results,\n DateHistogramResult,\n GeotileGridBucket,\n GroupByValueResults,\n DateHistogramResults,\n NestedResults,\n AggregationResultsScalarDateResult,\n GeotileGridResults,\n AggregationResults,\n AggregationResultsResultOneOf,\n CountPremiumAssetsRequest,\n CountPremiumAssetsResponse,\n ListSitesPremiumStatusRequest,\n ListSitesPremiumStatusResponse,\n SitePremiumStatus,\n QueryPremiumAssetsOptions,\n} from './premium-asset-v2-premium-asset-premium-assets.universal.js';\nexport {\n DomainPrivacyWithLiterals,\n VendorTypeWithLiterals,\n DigitalGoodsTypeWithLiterals,\n BillingReferenceProviderNameWithLiterals,\n AssetStatusWithLiterals,\n RenewalTypeWithLiterals,\n DurationDurationUnitWithLiterals,\n CycleTypeWithLiterals,\n V2PaymentStatusWithLiterals,\n CrudTypeWithLiterals,\n ProviderNameWithLiterals,\n IntervalUnitWithLiterals,\n SubscriptionStatusEnumSubscriptionStatusWithLiterals,\n ReactivationReasonEnumWithLiterals,\n InitiatorWithLiterals,\n RefundTypeWithLiterals,\n UnassignReasonWithLiterals,\n ContractSwitchTypeWithLiterals,\n ContractSwitchReasonWithLiterals,\n PriceIncreaseTriggerWithLiterals,\n ProductAdjustmentWithLiterals,\n RecurringChargeFailureReasonWithLiterals,\n ContactVerificationStatusWithLiterals,\n PlacementTypeWithLiterals,\n DayOfWeekWithLiterals,\n ResolutionMethodWithLiterals,\n WebhookIdentityTypeWithLiterals,\n ServiceStatusWithLiterals,\n RecurringTypeMessageRecurringTypeWithLiterals,\n TaxCalculationTypeWithLiterals,\n CardBrandWithLiterals,\n DirectDebitBrandWithLiterals,\n CashTypeWithLiterals,\n BankTransferTypeWithLiterals,\n RecurringTypeWithLiterals,\n AlternativePaymentMethodTypeWithLiterals,\n PaymentIntegrationWithLiterals,\n PaymentMethodTypeWithLiterals,\n InvoiceStatusWithLiterals,\n SubscriptionStatusWithLiterals,\n CollectionMethodWithLiterals,\n DurationUnitWithLiterals,\n AdditionalFeeTriggerWithLiterals,\n TaxableAddressTypeWithLiterals,\n PaymentStatusWithLiterals,\n PausePolicyWithLiterals,\n PauseAtWithLiterals,\n ResumeAtWithLiterals,\n HistoryActionInitiatorWithLiterals,\n ItemCategoryWithLiterals,\n RegistrarNameWithLiterals,\n ICANNContactVerificationStatusWithLiterals,\n LegalTypeEnumWithLiterals,\n EntityTypeEnumWithLiterals,\n PolicyReasonEnumWithLiterals,\n EligibilityTypeEnumWithLiterals,\n EligibilityIdTypeEnumWithLiterals,\n BillingProviderTypeWithLiterals,\n RedeemStatusEnumWithLiterals,\n CannotExtendReasonEnumWithLiterals,\n NexusCategoryEnumWithLiterals,\n IlRegistrantTypeEnumWithLiterals,\n NameServersTypeEnumWithLiterals,\n EsIdTypeEnumWithLiterals,\n AssetTypeWithLiterals,\n SortOrderWithLiterals,\n SortTypeWithLiterals,\n SortDirectionWithLiterals,\n MissingValuesWithLiterals,\n ScalarTypeWithLiterals,\n NestedAggregationTypeWithLiterals,\n DateHistogramAggregationIntervalWithLiterals,\n AggregationTypeWithLiterals,\n ModeWithLiterals,\n PremiumStatusWithLiterals,\n QueryPremiumAssetsApplicationErrors,\n} from './premium-asset-v2-premium-asset-premium-assets.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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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QACE,wBAAwB,CAAC;AAAA,QACzB,0BAA0B;AAAA,UACxB,OAAO;AAAA,UACP,aAAa;AAAA,UACb,kBAAkB;AAAA,QACpB;AAAA,QACA,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;;;AEp/MO,SAASC,oBACd,YAC6B;AAC7B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;AClBA,IAAAC,uBAAiC;AAG1B,IAAMC,sBAGK,2DAAiBA,mBAAwB;","names":["queryPremiumAssets","payload","DomainPrivacy","VendorType","DigitalGoodsType","BillingReferenceProviderName","AssetStatus","RenewalType","DurationDurationUnit","CycleType","V2PaymentStatus","CrudType","ProviderName","IntervalUnit","SubscriptionStatusEnumSubscriptionStatus","ReactivationReasonEnum","Initiator","RefundType","UnassignReason","ContractSwitchType","ContractSwitchReason","PriceIncreaseTrigger","ProductAdjustment","RecurringChargeFailureReason","ContactVerificationStatus","PlacementType","DayOfWeek","ResolutionMethod","WebhookIdentityType","ServiceStatus","RecurringTypeMessageRecurringType","TaxCalculationType","CardBrand","DirectDebitBrand","CashType","BankTransferType","RecurringType","AlternativePaymentMethodType","PaymentIntegration","PaymentMethodType","InvoiceStatus","SubscriptionStatus","CollectionMethod","DurationUnit","AdditionalFeeTrigger","TaxableAddressType","PaymentStatus","PausePolicy","PauseAt","ResumeAt","HistoryActionInitiator","ItemCategory","RegistrarName","ICANNContactVerificationStatus","LegalTypeEnum","EntityTypeEnum","PolicyReasonEnum","EligibilityTypeEnum","EligibilityIdTypeEnum","BillingProviderType","RedeemStatusEnum","CannotExtendReasonEnum","NexusCategoryEnum","IlRegistrantTypeEnum","NameServersTypeEnum","EsIdTypeEnum","AssetType","SortOrder","SortType","SortDirection","MissingValues","ScalarType","NestedAggregationType","DateHistogramAggregationInterval","AggregationType","Mode","PremiumStatus","queryPremiumAssets","sdkTransformError","queryPremiumAssets","import_rest_modules","queryPremiumAssets"]}