@wix/auto_sdk_ecom_ecommerce-settings 1.0.8 → 1.0.9

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts","../../src/ecom-v1-ecommerce-settings-ecommerce-settings.http.ts"],"sourcesContent":["export * from './src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.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 ambassadorWixEcomV1EcommerceSettings from './ecom-v1-ecommerce-settings-ecommerce-settings.http.js';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface EcommerceSettings {\n /**\n * Additional Fees service plugin configuration.\n * @internal\n */\n additionalFeesServicePlugin?: ServicePluginConfiguration;\n /**\n * Validations service plugin configuration.\n * @internal\n */\n validationsServicePlugin?: ServicePluginConfiguration;\n /**\n * Tax configuration.\n * @internal\n */\n tax?: TaxConfiguration;\n /**\n * Discount rules configuration.\n * @internal\n */\n discountRules?: DiscountRulesConfiguration;\n /**\n * Checkout settings.\n * @internal\n */\n checkout?: CheckoutSettings;\n /**\n * Delivery configuration.\n * @internal\n */\n delivery?: DeliveryConfiguration;\n /**\n * Whether the site is a premium site.\n * @internal\n */\n premiumSite?: boolean | null;\n /**\n * Business information.\n * @internal\n */\n businessInfo?: BusinessProperties;\n}\n\nexport interface ServicePluginConfiguration {\n /**\n * List of active providers.\n * @maxSize 100\n */\n activeProviders?: ActiveProvider[];\n}\n\nexport interface ActiveProvider {\n /**\n * App ID of the provider.\n * @format GUID\n */\n appId?: string;\n /**\n * Flows that trigger the provider.\n * @maxSize 100\n */\n triggerFlows?: TriggerFlowWithLiterals[];\n}\n\nexport enum TriggerFlow {\n /** Provider is triggered during cart interactions. */\n CART = 'CART',\n /** Provider is triggered during the checkout process. */\n CHECKOUT = 'CHECKOUT',\n}\n\n/** @enumType */\nexport type TriggerFlowWithLiterals = TriggerFlow | 'CART' | 'CHECKOUT';\n\nexport interface TaxConfiguration {\n /**\n * Whether at least one tax region is configured and connected to a tax calculator.\n * Learn more about the [Tax Regions API](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-regions/introduction).\n */\n configured?: boolean | null;\n /**\n * Whether tax is included in item prices.\n * Learn more about [tax inclusion in item prices](https://support.wix.com/en/article/including-tax-in-the-product-price).\n */\n taxIncludedInItemPrices?: boolean | null;\n}\n\nexport interface DiscountRulesConfiguration {\n /**\n * Whether at least one discount rule is configured and active.\n * Learn more about the [Discount Rules API](https://dev.wix.com/docs/rest/business-solutions/e-commerce/discount-rules/introduction).\n */\n active?: boolean | null;\n}\n\nexport interface CheckoutSettings {\n /** Checkout policies. */\n checkoutPolicies?: CheckoutPolicies;\n /** Settings that apply to checkout fields and the checkout process. */\n checkoutFields?: CheckoutFields;\n /** Checkout brand settings. */\n checkoutBrand?: CheckoutBrand;\n /**\n * Date and time the checkout settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout settings were updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Billing information required to complete the checkout. */\n checkoutBillingFields?: CheckoutBillingFieldsWithLiterals;\n}\n\nexport interface CheckoutPolicies {\n /** Terms and conditions. */\n termsAndConditions?: TermsAndConditionsPolicy;\n /** Privacy policy. */\n privacyPolicy?: PrivacyPolicy;\n /** Return policy. */\n returnPolicy?: ReturnPolicy;\n /** Digital item policy. */\n digitalItemPolicy?: DigitalItemPolicy;\n /** \"Contact us\" information. */\n contactUs?: ContactUsPolicy;\n /** Custom policy. */\n customPolicy?: CustomCheckoutPolicy;\n}\n\nexport interface TermsAndConditionsPolicy {\n /**\n * Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Terms and conditions policy content. */\n content?: string | null;\n}\n\nexport interface PrivacyPolicy {\n /**\n * Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Privacy policy content. */\n content?: string | null;\n}\n\nexport interface ReturnPolicy {\n /**\n * Whether the return policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Return policy content. */\n content?: string | null;\n}\n\nexport interface DigitalItemPolicy {\n /**\n * Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Digital item policy content. */\n content?: string | null;\n}\n\nexport interface ContactUsPolicy {\n /**\n * Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Contact us policy content. */\n content?: string | null;\n}\n\nexport interface CustomCheckoutPolicy {\n /**\n * Whether the custom policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Custom policy content. */\n content?: string | null;\n /** Custom policy title. */\n title?: string | null;\n}\n\nexport interface CheckoutFields {\n /**\n * Subscription checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n subscriptionCheckbox?: CheckboxField;\n /**\n * Policy agreement checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n policyAgreementCheckbox?: CheckboxField;\n /**\n * Whether the ability to redeem a gift card is enabled. <br><br>\n *\n * Default: `false`\n */\n giftCardRedeemEnabled?: boolean | null;\n /**\n * Whether to allow for MIT transactions. <br><br>\n *\n * Default: `false`\n */\n mitEnabled?: boolean | null;\n /**\n * Whether to allow for Auth & Capture transactions. <br><br>\n *\n * Default: `false`\n */\n delayCaptureEnabled?: boolean | null;\n /**\n * Whether to automatically capture the transaction before the authorization expires.\n *\n * Default: `true`\n * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.\n */\n captureBeforeExpiryEnabled?: boolean | null;\n}\n\nexport interface CheckboxField {\n /** Whether the checkbox is visible to the customer. */\n visible?: boolean | null;\n /** Whether the checkbox is checked by default. */\n checkedByDefault?: boolean | null;\n}\n\nexport interface CheckoutBrand {\n /** Checkout header. */\n header?: CheckoutHeader;\n}\n\nexport interface CheckoutHeader {\n /**\n * Textual content to be included in the header (e.g. Business Name)\n * @maxLength 55\n */\n text?: string | null;\n /**\n * Text color hex code.\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /** Specifications for when a logo is included in the header. */\n logo?: Logo;\n /**\n * Alignment within the header.\n *\n * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.\n */\n alignment?: AlignmentWithLiterals;\n /**\n * Whether to display the 'Checkout' label within the header.\n * Depending on the locale, the label may be translated.\n */\n displayCheckoutLabel?: boolean | null;\n /** Continue shopping specifications. */\n continueShopping?: ContinueShopping;\n /** Background fill specifications. */\n backgroundFill?: BackgroundFill;\n}\n\nexport interface Logo {\n /** Size of the logo. */\n size?: LogoSizeWithLiterals;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum LogoSize {\n UNKNOWN_LOGO_SIZE = 'UNKNOWN_LOGO_SIZE',\n SMALL = 'SMALL',\n MEDIUM = 'MEDIUM',\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type LogoSizeWithLiterals =\n | LogoSize\n | 'UNKNOWN_LOGO_SIZE'\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE';\n\nexport enum Alignment {\n UNKNOWN_ALIGNMENT = 'UNKNOWN_ALIGNMENT',\n SIDE = 'SIDE',\n CENTER = 'CENTER',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals =\n | Alignment\n | 'UNKNOWN_ALIGNMENT'\n | 'SIDE'\n | 'CENTER';\n\nexport interface ContinueShopping {\n /** Whether the continue shopping element is hidden. */\n hidden?: boolean | null;\n /** Display type for the continue shopping element. */\n displayType?: DisplayTypeWithLiterals;\n}\n\nexport enum DisplayType {\n UNKNOWN_DISPLAY_TYPE = 'UNKNOWN_DISPLAY_TYPE',\n TEXT = 'TEXT',\n ICON = 'ICON',\n}\n\n/** @enumType */\nexport type DisplayTypeWithLiterals =\n | DisplayType\n | 'UNKNOWN_DISPLAY_TYPE'\n | 'TEXT'\n | 'ICON';\n\nexport interface BackgroundFill extends BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: string;\n}\n\n/** @oneof */\nexport interface BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: string;\n}\n\nexport enum CheckoutBillingFields {\n /** Default value. This value is unused. */\n UNKNOWN_CHECKOUT_BILLING_FIELDS = 'UNKNOWN_CHECKOUT_BILLING_FIELDS',\n /** All billing information fields are required. */\n All_FIELDS = 'All_FIELDS',\n /** Minimum required fields as defined by the country, payment method and payment provider. */\n MINIMUM_REQUIRED_FIELDS = 'MINIMUM_REQUIRED_FIELDS',\n}\n\n/** @enumType */\nexport type CheckoutBillingFieldsWithLiterals =\n | CheckoutBillingFields\n | 'UNKNOWN_CHECKOUT_BILLING_FIELDS'\n | 'All_FIELDS'\n | 'MINIMUM_REQUIRED_FIELDS';\n\nexport interface DeliveryConfiguration {\n /**\n * Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.\n * @deprecated Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.\n * @targetRemovalDate 2025-12-31\n */\n destinationScope?: DestinationScopeWithLiterals;\n /**\n * The list of destinations.\n * @maxSize 200\n * @deprecated The list of destinations.\n * @targetRemovalDate 2025-12-31\n */\n destinations?: Destination[];\n /**\n * Whether postal code is required to support delivery calculations.\n * @deprecated Whether postal code is required to support delivery calculations.\n * @targetRemovalDate 2025-12-31\n */\n postalCodeRequired?: boolean | null;\n /**\n * List of countries and subdivisions and their delivery destination properties\n * @maxSize 195\n */\n countries?: CountryDeliveryProperties[];\n /** Delivery destination properties for Rest Of World */\n restOfWorld?: DeliveryDestinationProperties;\n}\n\nexport enum DestinationScope {\n /** Specific destinations are configured. */\n SPECIFIC_DESTINATIONS = 'SPECIFIC_DESTINATIONS',\n /** All destinations worldwide. */\n WORLDWIDE = 'WORLDWIDE',\n}\n\n/** @enumType */\nexport type DestinationScopeWithLiterals =\n | DestinationScope\n | 'SPECIFIC_DESTINATIONS'\n | 'WORLDWIDE';\n\n/** Geographic destination for a delivery region. */\nexport interface Destination {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n countryCode?: string;\n /**\n * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `\"US-CA\"` for California. If empty, the delivery region applies to the entire country.\n * @maxSize 100\n * @minLength 1\n * @maxLength 256\n */\n subdivisions?: string[];\n}\n\nexport interface CountryDeliveryProperties {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string;\n /** Delivery destination properties for the country. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n /**\n * List of subdivisions and their delivery destination properties.\n * @maxSize 100\n */\n subdivisions?: SubdivisionDeliveryProperties[];\n}\n\nexport interface DeliveryDestinationProperties {\n /** Whether a postal code is required for delivery to this destination. */\n postalCodeRequired?: boolean;\n /** Whether only pickup is available at this destination. */\n pickupOnly?: boolean;\n}\n\nexport interface SubdivisionDeliveryProperties {\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @minLength 1\n * @maxLength 5\n */\n subdivision?: string;\n /** Delivery destination properties for the subdivision. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n}\n\n/** Ecommerce business properties, as defined in the source of truth: `site-properties`, including default values. */\nexport interface BusinessProperties {\n /**\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * Payment currency for the business (default is 'USD').\n * @format CURRENCY\n */\n currency?: string;\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 * Used by the business for site content, emails, notifications, etc (default is 'en').\n * @format LANGUAGE\n */\n language?: string;\n /** Locale for date, number, and measurement formatting (default is `en-US`). */\n locale?: Locale;\n /** Physical address of the business. */\n address?: Address;\n /** Business name. */\n name?: string | null;\n /** Business email address. */\n email?: string | null;\n /** Business phone number. */\n phone?: string | null;\n /** Business fax number. */\n fax?: string | null;\n /** Path to the business logo in Wix Media. */\n logo?: string | null;\n /** Business time zone. */\n timeZone?: string | null;\n /** Site display name. */\n siteDisplayName?: string | null;\n}\n\n/** Locale for date, number, and measurement formats. */\nexport interface Locale {\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 * @format LANGUAGE\n */\n language?: string;\n /**\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 * @format COUNTRY\n */\n country?: string | null;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision code in ISO 3166-2 format, e.g., \"US-NY\". */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Street name and number. */\n streetAddress?: StreetAddress;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface GetEcommerceSettingsRequest {\n /**\n * Fields to include in the response.\n * @minSize 1\n * @maxSize 25\n */\n fields: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELD = 'UNKNOWN_REQUESTED_FIELD',\n ADDITIONAL_FEES_SERVICE_PLUGIN = 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n VALIDATIONS_SERVICE_PLUGIN = 'VALIDATIONS_SERVICE_PLUGIN',\n TAX = 'TAX',\n DISCOUNT_RULES = 'DISCOUNT_RULES',\n CHECKOUT = 'CHECKOUT',\n DELIVERY = 'DELIVERY',\n PREMIUM_SITE = 'PREMIUM_SITE',\n BUSINESS_INFO = 'BUSINESS_INFO',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELD'\n | 'ADDITIONAL_FEES_SERVICE_PLUGIN'\n | 'VALIDATIONS_SERVICE_PLUGIN'\n | 'TAX'\n | 'DISCOUNT_RULES'\n | 'CHECKOUT'\n | 'DELIVERY'\n | 'PREMIUM_SITE'\n | 'BUSINESS_INFO';\n\nexport interface GetEcommerceSettingsResponse {\n /** Ecommerce settings. */\n ecommerceSettings?: EcommerceSettings;\n /** A list of errors that occurred while retrieving the eCommerce settings. */\n errors?: Error[];\n}\n\nexport interface Error {\n /** The requested field the error is related to. */\n requestedField?: RequestedFieldsWithLiterals;\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 Empty {}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 1000\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Reset date of the quota.\n * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.\n */\n resetDate?: Date | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature was synced manually, for example by immigrator task */\nexport interface ManualSyncReason {\n /**\n * Optional description of the manual sync source (e.g. \"immigrator\", \"quota-sync\").\n * @maxLength 100\n */\n source?: string | null;\n}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Information about manual sync (e.g. immigrator task). */\n manualSync?: ManualSyncReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface EcomSitePropertiesChangedEvent {}\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/** @docsIgnore */\nexport type GetEcommerceSettingsApplicationErrors = {\n code?: 'SITE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Retrieves site eCommerce settings.\n * @param fields - Fields to include in the response.\n * @public\n * @documentationMaturity preview\n * @requiredField fields\n * @permissionId ECOM.ECOMMERCE_SETTINGS_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings\n */\nexport async function getEcommerceSettings(\n fields: RequestedFieldsWithLiterals[]\n): Promise<\n NonNullablePaths<\n GetEcommerceSettingsResponse,\n `errors` | `errors.${number}.requestedField`,\n 4\n > & {\n __applicationErrorsType?: GetEcommerceSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fields: fields });\n\n const reqOpts =\n ambassadorWixEcomV1EcommerceSettings.getEcommerceSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'ecommerceSettings.businessInfo.address' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fields: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fields']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } 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 resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_ecommerce-settings';\n\n/** Retrieves site eCommerce settings. */\nexport function getEcommerceSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getEcommerceSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.ecommerce_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl({\n protoPath: '/v1/ecommerce-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'ecommerceSettings.checkout.createdDate' },\n { path: 'ecommerceSettings.checkout.updatedDate' },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getEcommerceSettings;\n}\n"],"mappings":"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","names":["getEcommerceSettings","import_rest_modules","payload","import_transform_paths","TriggerFlow","LogoSize","Alignment","DisplayType","CheckoutBillingFields","DestinationScope","RequestedFields","FeaturePeriod","WebhookIdentityType","getEcommerceSettings","sdkTransformError"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts","../../src/ecom-v1-ecommerce-settings-ecommerce-settings.http.ts"],"sourcesContent":["export * from './src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.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 ambassadorWixEcomV1EcommerceSettings from './ecom-v1-ecommerce-settings-ecommerce-settings.http.js';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface EcommerceSettings {\n /**\n * Additional Fees service plugin configuration.\n * @internal\n */\n additionalFeesServicePlugin?: ServicePluginConfiguration;\n /**\n * Validations service plugin configuration.\n * @internal\n */\n validationsServicePlugin?: ServicePluginConfiguration;\n /**\n * Tax configuration.\n * @internal\n */\n tax?: TaxConfiguration;\n /**\n * Discount rules configuration.\n * @internal\n */\n discountRules?: DiscountRulesConfiguration;\n /**\n * Checkout settings.\n * @internal\n */\n checkout?: CheckoutSettings;\n /**\n * Delivery configuration.\n * @internal\n */\n delivery?: DeliveryConfiguration;\n /**\n * Whether the site is a premium site.\n * @internal\n */\n premiumSite?: boolean | null;\n /**\n * Business information.\n * @internal\n */\n businessInfo?: BusinessProperties;\n}\n\nexport interface ServicePluginConfiguration {\n /**\n * List of active providers.\n * @maxSize 100\n */\n activeProviders?: ActiveProvider[];\n}\n\nexport interface ActiveProvider {\n /**\n * App ID of the provider.\n * @format GUID\n */\n appId?: string;\n /**\n * Flows that trigger the provider.\n * @maxSize 100\n */\n triggerFlows?: TriggerFlowWithLiterals[];\n}\n\nexport enum TriggerFlow {\n /** Provider is triggered during cart interactions. */\n CART = 'CART',\n /** Provider is triggered during the checkout process. */\n CHECKOUT = 'CHECKOUT',\n}\n\n/** @enumType */\nexport type TriggerFlowWithLiterals = TriggerFlow | 'CART' | 'CHECKOUT';\n\nexport interface TaxConfiguration {\n /**\n * Whether at least one tax region is configured and connected to a tax calculator.\n * Learn more about the [Tax Regions API](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-regions/introduction).\n */\n configured?: boolean | null;\n /**\n * Whether tax is included in item prices.\n * Learn more about [tax inclusion in item prices](https://support.wix.com/en/article/including-tax-in-the-product-price).\n */\n taxIncludedInItemPrices?: boolean | null;\n}\n\nexport interface DiscountRulesConfiguration {\n /**\n * Whether at least one discount rule is configured and active.\n * Learn more about the [Discount Rules API](https://dev.wix.com/docs/rest/business-solutions/e-commerce/discount-rules/introduction).\n */\n active?: boolean | null;\n}\n\nexport interface CheckoutSettings {\n /** Checkout policies. */\n checkoutPolicies?: CheckoutPolicies;\n /** Settings that apply to checkout fields and the checkout process. */\n checkoutFields?: CheckoutFields;\n /** Checkout brand settings. */\n checkoutBrand?: CheckoutBrand;\n /**\n * Date and time the checkout settings were created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout settings were updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /** Billing information required to complete the checkout. */\n checkoutBillingFields?: CheckoutBillingFieldsWithLiterals;\n}\n\nexport interface CheckoutPolicies {\n /** Terms and conditions. */\n termsAndConditions?: TermsAndConditionsPolicy;\n /** Privacy policy. */\n privacyPolicy?: PrivacyPolicy;\n /** Return policy. */\n returnPolicy?: ReturnPolicy;\n /** Digital item policy. */\n digitalItemPolicy?: DigitalItemPolicy;\n /** \"Contact us\" information. */\n contactUs?: ContactUsPolicy;\n /** Custom policy. */\n customPolicy?: CustomCheckoutPolicy;\n}\n\nexport interface TermsAndConditionsPolicy {\n /**\n * Whether the terms and conditions policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Terms and conditions policy content. */\n content?: string | null;\n}\n\nexport interface PrivacyPolicy {\n /**\n * Whether the privacy policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Privacy policy content. */\n content?: string | null;\n}\n\nexport interface ReturnPolicy {\n /**\n * Whether the return policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Return policy content. */\n content?: string | null;\n}\n\nexport interface DigitalItemPolicy {\n /**\n * Whether the digital item policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Digital item policy content. */\n content?: string | null;\n}\n\nexport interface ContactUsPolicy {\n /**\n * Whether the contact us policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Contact us policy content. */\n content?: string | null;\n}\n\nexport interface CustomCheckoutPolicy {\n /**\n * Whether the custom policy is visible to the customer in the checkout page. <br><br>\n *\n * Default: `false`\n */\n visible?: boolean | null;\n /** Custom policy content. */\n content?: string | null;\n /** Custom policy title. */\n title?: string | null;\n}\n\nexport interface CheckoutFields {\n /**\n * Subscription checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n subscriptionCheckbox?: CheckboxField;\n /**\n * Policy agreement checkbox. <br><br>\n *\n * Defaults:\n * + `visible`: `false`\n * + `checkedByDefault`: `false`\n */\n policyAgreementCheckbox?: CheckboxField;\n /**\n * Whether the ability to redeem a gift card is enabled. <br><br>\n *\n * Default: `false`\n */\n giftCardRedeemEnabled?: boolean | null;\n /**\n * Whether to allow for MIT transactions. <br><br>\n *\n * Default: `false`\n */\n mitEnabled?: boolean | null;\n /**\n * Whether to allow for Auth & Capture transactions. <br><br>\n *\n * Default: `false`\n */\n delayCaptureEnabled?: boolean | null;\n /**\n * Whether to automatically capture the transaction before the authorization expires.\n *\n * Default: `true`\n * >**Note:** this setting is only relevant when `delay_capture_enabled: true`.\n */\n captureBeforeExpiryEnabled?: boolean | null;\n}\n\nexport interface CheckboxField {\n /** Whether the checkbox is visible to the customer. */\n visible?: boolean | null;\n /** Whether the checkbox is checked by default. */\n checkedByDefault?: boolean | null;\n}\n\nexport interface CheckoutBrand {\n /** Checkout header. */\n header?: CheckoutHeader;\n}\n\nexport interface CheckoutHeader {\n /**\n * Textual content to be included in the header (e.g. Business Name)\n * @maxLength 55\n */\n text?: string | null;\n /**\n * Text color hex code.\n * @format COLOR_HEX\n */\n textColor?: string | null;\n /** Specifications for when a logo is included in the header. */\n logo?: Logo;\n /**\n * Alignment within the header.\n *\n * >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.\n */\n alignment?: AlignmentWithLiterals;\n /**\n * Whether to display the 'Checkout' label within the header.\n * Depending on the locale, the label may be translated.\n */\n displayCheckoutLabel?: boolean | null;\n /** Continue shopping specifications. */\n continueShopping?: ContinueShopping;\n /** Background fill specifications. */\n backgroundFill?: BackgroundFill;\n}\n\nexport interface Logo {\n /** Size of the logo. */\n size?: LogoSizeWithLiterals;\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport enum LogoSize {\n UNKNOWN_LOGO_SIZE = 'UNKNOWN_LOGO_SIZE',\n SMALL = 'SMALL',\n MEDIUM = 'MEDIUM',\n LARGE = 'LARGE',\n}\n\n/** @enumType */\nexport type LogoSizeWithLiterals =\n | LogoSize\n | 'UNKNOWN_LOGO_SIZE'\n | 'SMALL'\n | 'MEDIUM'\n | 'LARGE';\n\nexport enum Alignment {\n UNKNOWN_ALIGNMENT = 'UNKNOWN_ALIGNMENT',\n SIDE = 'SIDE',\n CENTER = 'CENTER',\n}\n\n/** @enumType */\nexport type AlignmentWithLiterals =\n | Alignment\n | 'UNKNOWN_ALIGNMENT'\n | 'SIDE'\n | 'CENTER';\n\nexport interface ContinueShopping {\n /** Whether the continue shopping element is hidden. */\n hidden?: boolean | null;\n /** Display type for the continue shopping element. */\n displayType?: DisplayTypeWithLiterals;\n}\n\nexport enum DisplayType {\n UNKNOWN_DISPLAY_TYPE = 'UNKNOWN_DISPLAY_TYPE',\n TEXT = 'TEXT',\n ICON = 'ICON',\n}\n\n/** @enumType */\nexport type DisplayTypeWithLiterals =\n | DisplayType\n | 'UNKNOWN_DISPLAY_TYPE'\n | 'TEXT'\n | 'ICON';\n\nexport interface BackgroundFill extends BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: string;\n}\n\n/** @oneof */\nexport interface BackgroundFillOptionsOneOf {\n /**\n * Background color hex code.\n * @format COLOR_HEX\n */\n color?: string | null;\n /** Background image. */\n image?: string;\n}\n\nexport enum CheckoutBillingFields {\n /** Default value. This value is unused. */\n UNKNOWN_CHECKOUT_BILLING_FIELDS = 'UNKNOWN_CHECKOUT_BILLING_FIELDS',\n /** All billing information fields are required. */\n All_FIELDS = 'All_FIELDS',\n /** Minimum required fields as defined by the country, payment method and payment provider. */\n MINIMUM_REQUIRED_FIELDS = 'MINIMUM_REQUIRED_FIELDS',\n}\n\n/** @enumType */\nexport type CheckoutBillingFieldsWithLiterals =\n | CheckoutBillingFields\n | 'UNKNOWN_CHECKOUT_BILLING_FIELDS'\n | 'All_FIELDS'\n | 'MINIMUM_REQUIRED_FIELDS';\n\nexport interface DeliveryConfiguration {\n /**\n * Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.\n * @deprecated Scope of destinations, when `WORLDWIDE` is selected, the destinations list will be empty.\n * @targetRemovalDate 2025-12-31\n */\n destinationScope?: DestinationScopeWithLiterals;\n /**\n * The list of destinations.\n * @maxSize 200\n * @deprecated The list of destinations.\n * @targetRemovalDate 2025-12-31\n */\n destinations?: Destination[];\n /**\n * Whether postal code is required to support delivery calculations.\n * @deprecated Whether postal code is required to support delivery calculations.\n * @targetRemovalDate 2025-12-31\n */\n postalCodeRequired?: boolean | null;\n /**\n * List of countries and subdivisions and their delivery destination properties\n * @maxSize 195\n */\n countries?: CountryDeliveryProperties[];\n /** Delivery destination properties for Rest Of World */\n restOfWorld?: DeliveryDestinationProperties;\n}\n\nexport enum DestinationScope {\n /** Specific destinations are configured. */\n SPECIFIC_DESTINATIONS = 'SPECIFIC_DESTINATIONS',\n /** All destinations worldwide. */\n WORLDWIDE = 'WORLDWIDE',\n}\n\n/** @enumType */\nexport type DestinationScopeWithLiterals =\n | DestinationScope\n | 'SPECIFIC_DESTINATIONS'\n | 'WORLDWIDE';\n\n/** Geographic destination for a delivery region. */\nexport interface Destination {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n countryCode?: string;\n /**\n * Subdivision codes in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format. For example, `\"US-CA\"` for California. If empty, the delivery region applies to the entire country.\n * @maxSize 100\n * @minLength 1\n * @maxLength 256\n */\n subdivisions?: string[];\n}\n\nexport interface CountryDeliveryProperties {\n /**\n * 2-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string;\n /** Delivery destination properties for the country. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n /**\n * List of subdivisions and their delivery destination properties.\n * @maxSize 100\n */\n subdivisions?: SubdivisionDeliveryProperties[];\n}\n\nexport interface DeliveryDestinationProperties {\n /** Whether a postal code is required for delivery to this destination. */\n postalCodeRequired?: boolean;\n /** Whether only pickup is available at this destination. */\n pickupOnly?: boolean;\n}\n\nexport interface SubdivisionDeliveryProperties {\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @minLength 1\n * @maxLength 5\n */\n subdivision?: string;\n /** Delivery destination properties for the subdivision. */\n deliveryDestinationProperties?: DeliveryDestinationProperties;\n}\n\n/** Ecommerce business properties, as defined in the source of truth: `site-properties`, including default values. */\nexport interface BusinessProperties {\n /**\n * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n * Payment currency for the business (default is 'USD').\n * @format CURRENCY\n */\n currency?: string;\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 * Used by the business for site content, emails, notifications, etc (default is 'en').\n * @format LANGUAGE\n */\n language?: string;\n /** Locale for date, number, and measurement formatting (default is `en-US`). */\n locale?: Locale;\n /** Physical address of the business. */\n address?: Address;\n /** Business name. */\n name?: string | null;\n /** Business email address. */\n email?: string | null;\n /** Business phone number. */\n phone?: string | null;\n /** Business fax number. */\n fax?: string | null;\n /** Path to the business logo in Wix Media. */\n logo?: string | null;\n /** Business time zone. */\n timeZone?: string | null;\n /** Site display name. */\n siteDisplayName?: string | null;\n}\n\n/** Locale for date, number, and measurement formats. */\nexport interface Locale {\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 * @format LANGUAGE\n */\n language?: string;\n /**\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 * @format COUNTRY\n */\n country?: string | null;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision code in ISO 3166-2 format, e.g., \"US-NY\". */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Street name and number. */\n streetAddress?: StreetAddress;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n /**\n * tell us why you're invalidating the cache. You don't need to add your app name\n * @maxLength 256\n */\n reason?: string | null;\n /** Is local DS */\n localDc?: boolean;\n hardPurge?: boolean;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n /**\n * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n * @format GUID\n */\n siteId?: string;\n /** Invalidate by App */\n app?: App;\n /** Invalidate by page id */\n page?: Page;\n /** Invalidate by URI path */\n uri?: URI;\n /** Invalidate by file (for media files such as PDFs) */\n file?: File;\n /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n customTag?: CustomTag;\n}\n\nexport interface App {\n /**\n * The AppDefId\n * @minLength 1\n */\n appDefId?: string;\n /**\n * The instance Id\n * @format GUID\n */\n instanceId?: string;\n}\n\nexport interface Page {\n /**\n * the msid the page is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by Page ID\n * @minLength 1\n */\n pageId?: string;\n}\n\nexport interface URI {\n /**\n * the msid the URI is on\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n * @minLength 1\n */\n uriPath?: string;\n}\n\nexport interface File {\n /**\n * the msid the file is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Invalidate by filename (for media files such as PDFs)\n * @minLength 1\n * @maxLength 256\n */\n fileName?: string;\n}\n\nexport interface CustomTag {\n /**\n * the msid the tag is related to\n * @format GUID\n */\n metaSiteId?: string;\n /**\n * Tag to invalidate by\n * @minLength 1\n * @maxLength 256\n */\n tag?: string;\n}\n\nexport interface GetEcommerceSettingsRequest {\n /**\n * Fields to include in the response.\n * @minSize 1\n * @maxSize 25\n */\n fields: RequestedFieldsWithLiterals[];\n}\n\nexport enum RequestedFields {\n UNKNOWN_REQUESTED_FIELD = 'UNKNOWN_REQUESTED_FIELD',\n ADDITIONAL_FEES_SERVICE_PLUGIN = 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n VALIDATIONS_SERVICE_PLUGIN = 'VALIDATIONS_SERVICE_PLUGIN',\n TAX = 'TAX',\n DISCOUNT_RULES = 'DISCOUNT_RULES',\n CHECKOUT = 'CHECKOUT',\n DELIVERY = 'DELIVERY',\n PREMIUM_SITE = 'PREMIUM_SITE',\n BUSINESS_INFO = 'BUSINESS_INFO',\n}\n\n/** @enumType */\nexport type RequestedFieldsWithLiterals =\n | RequestedFields\n | 'UNKNOWN_REQUESTED_FIELD'\n | 'ADDITIONAL_FEES_SERVICE_PLUGIN'\n | 'VALIDATIONS_SERVICE_PLUGIN'\n | 'TAX'\n | 'DISCOUNT_RULES'\n | 'CHECKOUT'\n | 'DELIVERY'\n | 'PREMIUM_SITE'\n | 'BUSINESS_INFO';\n\nexport interface GetEcommerceSettingsResponse {\n /** Ecommerce settings. */\n ecommerceSettings?: EcommerceSettings;\n /** A list of errors that occurred while retrieving the eCommerce settings. */\n errors?: Error[];\n}\n\nexport interface Error {\n /** The requested field the error is related to. */\n requestedField?: RequestedFieldsWithLiterals;\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 Empty {}\n\nexport interface FeatureEvent extends FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n /**\n * Timestamp of the event in\n * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time).\n */\n timestamp?: Date | null;\n}\n\n/** @oneof */\nexport interface FeatureEventEventOneOf {\n /**\n * Information about an event that makes a feature eligible to the user.\n * Triggered for example, for new features or when a feature is reassigned\n * to an account or a site.\n */\n enabled?: FeatureEnabled;\n /**\n * Information about an event that disables a feature for the user.\n * Triggered for example, when a feature is unassigned from a site,\n * reassigned to a different site, or the user switched to a different contract.\n */\n disabled?: FeatureDisabled;\n /**\n * Information about an event that updates a feature. An `updated` event\n * is triggered for example by the\n * [Report Quota Usage](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/report-quota-usage)\n * and [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter)\n * endpoints.\n */\n updated?: FeatureUpdated;\n /**\n * Information about an event that cancels a feature for the user.\n * Triggered for example, when a feature is canceled, transferred to\n * another account, or the user switched to a different contract.\n */\n cancelled?: FeatureCancelled;\n}\n\n/** Feature created or enabled after disabled state */\nexport interface FeatureEnabled extends FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n /** Enabled feature. */\n feature?: Feature;\n /**\n * Information about a transfer from another account.\n * __Deprecated__. Use `reason.transferred_from_another_account` instead.\n * @format GUID\n */\n transferredFromAccount?: string | null;\n /**\n * Information about a transfer from another site.\n * __Deprecated__. Use `reason.reassigned_from_site` instead.\n * @format GUID\n */\n reassignedFromMetasite?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureEnabledReasonOneOf {\n /** Information about a transfer from another account. */\n transferredFromAnotherAccount?: TransferredFromAnotherAccountReason;\n /** Information about a transfer from another site. */\n reassignedFromSite?: ReassignedFromSiteReason;\n /** Information about a feature that hadn't been assigned to site. */\n assignedFromFloating?: AssignedFromFloatingReason;\n /** Information about the new feature. */\n newFeature?: NewFeatureReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the manually created features. */\n manualFeatureCreation?: ManualFeatureCreationReason;\n /** Information about a feature that was migrated from legacy. */\n migratedFromLegacy?: MigratedFromLegacyReason;\n}\n\nexport interface Feature extends FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n /**\n * ID of the feature. __Note:__ Isn't unique. For example, all features that\n * are available to free Wix accounts or site in some capacity have\n * `{\"id\": \"DEFAULT\"}`. Use `uniqueName` as unique identifier for a feature.\n * @readonly\n */\n _id?: string;\n /**\n * Unique name of the feature. Only lower case letters, numbers, and dashes\n * `-` are supported. Used in the endpoints of the\n * [Features Manager API](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/introduction)\n * to specify the feature. Not visible to customers. We recommend to start\n * the unique name with a prefix describing your organization or Wix company.\n * For example, `bookings` or `crm`.\n *\n * Min: 2 characters\n * Max: 50 characters\n * @minLength 2\n * @maxLength 50\n */\n uniqueName?: string;\n /**\n * Information about whether the feature belongs to a Wix account or site.\n * Account features have `context.userId`. Site features have `context.metaSiteId` in case\n * they're assigned to a specific site. Site features that aren't assigned to\n * a specific site have neither ID.\n */\n context?: FeatureContext;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n createdAt?: Date | null;\n /**\n * Deprecated.\n * @readonly\n * @deprecated\n */\n updatedAt?: Date | null;\n /**\n * Aggregated information about how often customers can use the feature.\n * Available only for quota features.\n */\n quotaInfo?: QuotaInfo;\n /**\n * Whether the customer is currently allowed to use the feature.\n * `true` means that the customer can use the feature. This means a boolean\n * feature is active or a quota feature has remaining usage.\n * `false` means that the customer can't use the feature.\n * This means a boolean feature isn't active or a quota feature doesn't\n * have remaining usage.\n */\n enabled?: boolean;\n /**\n * ID of the [subscription](https://bo.wix.com/wix-docs/rest/premium/premium-subscriptions-manager/subscription-object)\n * to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Metadata of the feature. Wix Premium uses the metadata object to indicate\n * that customers who purchase a product with the feature also get\n * access to an additional product. For these bundled products `metadata`\n * looks like this: `{\"tpa\": \"{\"appDefId\": \"sample-app-def-id-1234567890\", \"vendorProductId\": \"sample-productId\"}}\"`.\n * But you can use the `metadata` property for other purposes, too.\n */\n metadata?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface FeatureQuantityInfoOneOf {\n /**\n * Deprecated. Use `enabled` instead.\n * @deprecated\n */\n booleanFeature?: BooleanFeature;\n /**\n * Deprecated. Use `quotaInfo` instead.\n * @deprecated\n */\n quotaFeature?: QuotaFeature;\n}\n\n/**\n * Context this feature is currently connected to.\n * Note: Do not confuse with feature scope which is configured in the product catalog\n * and defines in which context the product can be used\n */\nexport interface FeatureContext {\n /**\n * ID of the Wix account that the feature instance belongs to.\n * Available for both site and account level feature instances.\n * @format GUID\n */\n userId?: string;\n /**\n * ID of the meta site that the feature instance is assigned to.\n * Only available for site level feature instances that are assigned to a Wix\n * site. Not available for account level and unassigned site level feature\n * instances.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/**\n * A feature that can be either \"enabled\" or \"disabled\". The default/freemium setting is always OFF, and the premium setting is always ON (meaning, unlimited usage without tracking).\n * A boolean feature is similar to a quantitive feature with a default limit of 0 and UNLIMITED premium limit (although a bit simplified).\n */\nexport interface BooleanFeature {}\n\n/** A feature with a periodic usage limitation. The default limit is defined in the Feature Spec, the Premium limits are defined in the respective ProductFeature. */\nexport interface QuotaFeature {\n /** Default (or Freemium) quota limitation. if left undefined the free feature has unlimited amount. */\n limit?: string | null;\n /** Periodic time-frame to reset the usage counter. You may use NO_PERIOD if counter shouldn't be reset. */\n period?: FeaturePeriodWithLiterals;\n /** Usage measurement units (seconds? MBs? unitless?). Usage reported will be counted in multiples of this basic unit. */\n units?: string | null;\n}\n\n/** Determines the reset cycle of the feature usage. */\nexport enum FeaturePeriod {\n NO_PERIOD = 'NO_PERIOD',\n MILLISECOND = 'MILLISECOND',\n SECOND = 'SECOND',\n MINUTE = 'MINUTE',\n HOUR = 'HOUR',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type FeaturePeriodWithLiterals =\n | FeaturePeriod\n | 'NO_PERIOD'\n | 'MILLISECOND'\n | 'SECOND'\n | 'MINUTE'\n | 'HOUR'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface QuotaInfo {\n /**\n * Aggregation of how often the customer is allowed to use the feature at the time of the request.\n * `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Deprecated because a feature can have multiple periods defined. Use `period` in `breakdown` entries instead.\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n * @deprecated\n * @replacedBy breakdown.period\n * @targetRemovalDate 2026-03-31\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * Aggregation of how often the customer has used the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * Aggregation of how often the customer can still use the feature.\n * `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * Breakdown of quota information entries, entry per feature instance.\n * @maxSize 1000\n */\n breakdown?: QuotaInfoEntry[];\n}\n\nexport interface QuotaInfoEntry {\n /**\n * If quota is of free feature, the id would be empty (None).\n * If quota is of premium feature, this is the ID of the feature instance.\n * @format GUID\n */\n featureInstanceId?: string | null;\n /**\n * How often the customer is allowed to use the feature during the specified\n * period. `null` means that the customer has unlimited access to the feature.\n */\n limit?: string | null;\n /**\n * Time frame for the usage limitation. `NO_PERIOD` means that `remainingUsage`\n * isn't automatically reset to the feature's `limit` after a specific period.\n * You may still manually call\n * [Reset Usage Counter](https://bo.wix.com/wix-docs/rest/premium/premium-features-manager/reset-usage-counter).\n */\n period?: FeaturePeriodWithLiterals;\n /**\n * How often the customer has used the feature during the current\n * period.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will contain the value `-1`.\n */\n currentUsage?: string;\n /**\n * How often the customer can still use the feature during the current\n * period. `null` means that the customer has unlimited access to the feature.\n * This value is retrieved from the Quota Manager/Rate Limiter system. If the\n * `exclude_quota_usage` field in the `ListFeaturesRequest` was set to `true`,\n * this field will not be populated.\n */\n remainingUsage?: string | null;\n /**\n * ID of the subscription to which the feature instance belongs.\n * @format GUID\n */\n subscriptionId?: string | null;\n /**\n * Reset date of the quota.\n * Relevant only for features with a period that is not `NO_PERIOD`, and only for features that are managed by the Quota Manager system.\n */\n resetDate?: Date | null;\n}\n\n/** Subscription transferred from another account, features on the current account were enabled. */\nexport interface TransferredFromAnotherAccountReason {\n /**\n * Information about a transfer from another account.\n * @format GUID\n */\n transferredFromAccount?: string;\n}\n\n/** Subscription moved from one site to another in the same account, features enabled on the target site */\nexport interface ReassignedFromSiteReason {\n /**\n * Information about a transfer from another site.\n * @format GUID\n */\n reassignedFromMetasite?: string;\n}\n\n/** Subscription was floating and assigned to site, features enabled on the target site */\nexport interface AssignedFromFloatingReason {}\n\n/** New subscription created and features created as enabled */\nexport interface NewFeatureReason {}\n\n/** Subscription was upgraded or downgraded, as a result new features enabled, missing features disabled , quantities are updated */\nexport interface ContractSwitchedReason {}\n\n/** a call to CreateFeature in features-writer, creates feature that is not attached to subscription */\nexport interface ManualFeatureCreationReason {}\n\n/** Subscription created due to migration from old premium model */\nexport interface MigratedFromLegacyReason {}\n\n/** Feature disabled and can be enabled in the future */\nexport interface FeatureDisabled extends FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n /**\n * Disabled feature. Includes information about the feature's new state,\n * possibly its new context.\n */\n feature?: Feature;\n /**\n * ID of the meta site for which the feature has been disabled.\n * @format GUID\n */\n metaSiteId?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureDisabledReasonOneOf {\n /** Information about a feature that's no longer assigned to a site. */\n unassingedToFloating?: UnAssingedToFloatingReason;\n /**\n * Information about a feature that's been replaced by a feature from a\n * different subscription.\n */\n replacedByAnotherSubscription?: ReplacedByAnotherSubscriptionReason;\n /**\n * Information about a feature that's been reassigned to a different\n * site.\n */\n reassignedToAnotherSite?: ReassignedToAnotherSiteReason;\n}\n\n/** Subscription was unassigned from the site and moved into floating state */\nexport interface UnAssingedToFloatingReason {}\n\n/** Another subscription was assigned to the site, causing existing features on this site to be disabled */\nexport interface ReplacedByAnotherSubscriptionReason {}\n\n/** Subscription was assigned to another site, causing features on the origin site to be disabled. */\nexport interface ReassignedToAnotherSiteReason {\n /**\n * Information about a transfer to the site.\n * @format GUID\n */\n reassignedToMetasite?: string;\n}\n\n/** Feature updated, for example Quota was increased due to upgrade */\nexport interface FeatureUpdated\n extends FeatureUpdatedPreviousQuantityInfoOneOf,\n FeatureUpdatedReasonOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /**\n * Updated feature. Includes information about the feature's new state and\n * possibly its new context.\n */\n feature?: Feature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedPreviousQuantityInfoOneOf {\n /** Information about a feature that doesn't have a usage quota. */\n booleanFeature?: BooleanFeature;\n /** Information about a feature that has a usage quota. */\n quotaFeature?: QuotaFeature;\n}\n\n/** @oneof */\nexport interface FeatureUpdatedReasonOneOf {\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n}\n\n/** Feature was permanently cancelled */\nexport interface FeatureCancelled extends FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n /** Canceled feature. */\n feature?: Feature;\n /**\n * Information about a transfer to the account.\n * __Deprecated__. Use `reason.transferred_to_account` instead.\n * @format GUID\n */\n transferredToAccount?: string | null;\n}\n\n/** @oneof */\nexport interface FeatureCancelledReasonOneOf {\n /** Information about a transfer to the account. */\n transferredToAnotherAccount?: TransferredToAnotherAccountReason;\n /** Information about the contract switch. */\n contractSwitched?: ContractSwitchedReason;\n /** Information about the feature cancellation. */\n cancelRequest?: CancelRequestedReason;\n}\n\n/** Subscription was transferred to another account, features in the origin account were cancelled */\nexport interface TransferredToAnotherAccountReason {\n /**\n * Information about a transfer to the account.\n * @format GUID\n */\n transferredToAccount?: string;\n}\n\n/** Cancellation was requested from the subscription manager api, might be a result of billing event, or direct call */\nexport interface CancelRequestedReason {}\n\nexport interface EcomSitePropertiesChangedEvent {}\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/** @docsIgnore */\nexport type GetEcommerceSettingsApplicationErrors = {\n code?: 'SITE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n\n/**\n * Retrieves site eCommerce settings.\n * @param fields - Fields to include in the response.\n * @public\n * @documentationMaturity preview\n * @requiredField fields\n * @permissionId ECOM.ECOMMERCE_SETTINGS_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings\n */\nexport async function getEcommerceSettings(\n fields: RequestedFieldsWithLiterals[]\n): Promise<\n NonNullablePaths<\n GetEcommerceSettingsResponse,\n `errors` | `errors.${number}.requestedField`,\n 4\n > & {\n __applicationErrorsType?: GetEcommerceSettingsApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ fields: fields });\n\n const reqOpts =\n ambassadorWixEcomV1EcommerceSettings.getEcommerceSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [{ path: 'ecommerceSettings.businessInfo.address' }],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { fields: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['fields']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } 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 resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/_api/ecommerce-settings',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_ecommerce-settings';\n\n/** Retrieves site eCommerce settings. */\nexport function getEcommerceSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getEcommerceSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.ecommerce_settings',\n method: 'GET' as any,\n methodFqn:\n 'wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl({\n protoPath: '/v1/ecommerce-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'ecommerceSettings.checkout.createdDate' },\n { path: 'ecommerceSettings.checkout.updatedDate' },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.urlExpirationDate',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.urlExpirationDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.x',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.y',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.x',\n },\n {\n path: 'ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.y',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getEcommerceSettings;\n}\n"],"mappings":"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","names":["getEcommerceSettings","import_rest_modules","payload","import_transform_paths","TriggerFlow","LogoSize","Alignment","DisplayType","CheckoutBillingFields","DestinationScope","RequestedFields","FeaturePeriod","WebhookIdentityType","getEcommerceSettings","sdkTransformError"]}
@@ -760,8 +760,6 @@ interface FeatureEnabled extends FeatureEnabledReasonOneOf {
760
760
  manualFeatureCreation?: ManualFeatureCreationReason;
761
761
  /** Information about a feature that was migrated from legacy. */
762
762
  migratedFromLegacy?: MigratedFromLegacyReason;
763
- /** Information about manual sync (e.g. immigrator task). */
764
- manualSync?: ManualSyncReason;
765
763
  /** Enabled feature. */
766
764
  feature?: Feature;
767
765
  /**
@@ -793,8 +791,6 @@ interface FeatureEnabledReasonOneOf {
793
791
  manualFeatureCreation?: ManualFeatureCreationReason;
794
792
  /** Information about a feature that was migrated from legacy. */
795
793
  migratedFromLegacy?: MigratedFromLegacyReason;
796
- /** Information about manual sync (e.g. immigrator task). */
797
- manualSync?: ManualSyncReason;
798
794
  }
799
795
  interface Feature extends FeatureQuantityInfoOneOf {
800
796
  /**
@@ -1054,14 +1050,6 @@ interface ManualFeatureCreationReason {
1054
1050
  /** Subscription created due to migration from old premium model */
1055
1051
  interface MigratedFromLegacyReason {
1056
1052
  }
1057
- /** Feature was synced manually, for example by immigrator task */
1058
- interface ManualSyncReason {
1059
- /**
1060
- * Optional description of the manual sync source (e.g. "immigrator", "quota-sync").
1061
- * @maxLength 100
1062
- */
1063
- source?: string | null;
1064
- }
1065
1053
  /** Feature disabled and can be enabled in the future */
1066
1054
  interface FeatureDisabled extends FeatureDisabledReasonOneOf {
1067
1055
  /** Information about a feature that's no longer assigned to a site. */
@@ -1124,8 +1112,6 @@ interface FeatureUpdated extends FeatureUpdatedPreviousQuantityInfoOneOf, Featur
1124
1112
  quotaFeature?: QuotaFeature;
1125
1113
  /** Information about the contract switch. */
1126
1114
  contractSwitched?: ContractSwitchedReason;
1127
- /** Information about manual sync (e.g. immigrator task). */
1128
- manualSync?: ManualSyncReason;
1129
1115
  /**
1130
1116
  * Updated feature. Includes information about the feature's new state and
1131
1117
  * possibly its new context.
@@ -1143,8 +1129,6 @@ interface FeatureUpdatedPreviousQuantityInfoOneOf {
1143
1129
  interface FeatureUpdatedReasonOneOf {
1144
1130
  /** Information about the contract switch. */
1145
1131
  contractSwitched?: ContractSwitchedReason;
1146
- /** Information about manual sync (e.g. immigrator task). */
1147
- manualSync?: ManualSyncReason;
1148
1132
  }
1149
1133
  /** Feature was permanently cancelled */
1150
1134
  interface FeatureCancelled extends FeatureCancelledReasonOneOf {
@@ -1154,8 +1138,6 @@ interface FeatureCancelled extends FeatureCancelledReasonOneOf {
1154
1138
  contractSwitched?: ContractSwitchedReason;
1155
1139
  /** Information about the feature cancellation. */
1156
1140
  cancelRequest?: CancelRequestedReason;
1157
- /** Information about manual sync (e.g. immigrator task). */
1158
- manualSync?: ManualSyncReason;
1159
1141
  /** Canceled feature. */
1160
1142
  feature?: Feature;
1161
1143
  /**
@@ -1173,8 +1155,6 @@ interface FeatureCancelledReasonOneOf {
1173
1155
  contractSwitched?: ContractSwitchedReason;
1174
1156
  /** Information about the feature cancellation. */
1175
1157
  cancelRequest?: CancelRequestedReason;
1176
- /** Information about manual sync (e.g. immigrator task). */
1177
- manualSync?: ManualSyncReason;
1178
1158
  }
1179
1159
  /** Subscription was transferred to another account, features in the origin account were cancelled */
1180
1160
  interface TransferredToAnotherAccountReason {
@@ -1299,4 +1279,4 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
1299
1279
  };
1300
1280
  declare function getEcommerceSettings(): __PublicMethodMetaInfo<'GET', {}, GetEcommerceSettingsRequest$1, GetEcommerceSettingsRequest, GetEcommerceSettingsResponse$1, GetEcommerceSettingsResponse>;
1301
1281
 
1302
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, type Destination as DestinationOriginal, DestinationScope as DestinationScopeOriginal, type DestinationScopeWithLiterals as DestinationScopeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type ManualSyncReason as ManualSyncReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };
1282
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type ActiveProvider as ActiveProviderOriginal, type Address as AddressOriginal, Alignment as AlignmentOriginal, type AlignmentWithLiterals as AlignmentWithLiteralsOriginal, type App as AppOriginal, type AssignedFromFloatingReason as AssignedFromFloatingReasonOriginal, type BackgroundFillOptionsOneOf as BackgroundFillOptionsOneOfOriginal, type BackgroundFill as BackgroundFillOriginal, type BooleanFeature as BooleanFeatureOriginal, type BusinessProperties as BusinessPropertiesOriginal, type CancelRequestedReason as CancelRequestedReasonOriginal, type CheckboxField as CheckboxFieldOriginal, CheckoutBillingFields as CheckoutBillingFieldsOriginal, type CheckoutBillingFieldsWithLiterals as CheckoutBillingFieldsWithLiteralsOriginal, type CheckoutBrand as CheckoutBrandOriginal, type CheckoutFields as CheckoutFieldsOriginal, type CheckoutHeader as CheckoutHeaderOriginal, type CheckoutPolicies as CheckoutPoliciesOriginal, type CheckoutSettings as CheckoutSettingsOriginal, type ContactUsPolicy as ContactUsPolicyOriginal, type ContinueShopping as ContinueShoppingOriginal, type ContractSwitchedReason as ContractSwitchedReasonOriginal, type CountryDeliveryProperties as CountryDeliveryPropertiesOriginal, type CustomCheckoutPolicy as CustomCheckoutPolicyOriginal, type CustomTag as CustomTagOriginal, type DeliveryConfiguration as DeliveryConfigurationOriginal, type DeliveryDestinationProperties as DeliveryDestinationPropertiesOriginal, type Destination as DestinationOriginal, DestinationScope as DestinationScopeOriginal, type DestinationScopeWithLiterals as DestinationScopeWithLiteralsOriginal, type DigitalItemPolicy as DigitalItemPolicyOriginal, type DiscountRulesConfiguration as DiscountRulesConfigurationOriginal, DisplayType as DisplayTypeOriginal, type DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type EcomSitePropertiesChangedEvent as EcomSitePropertiesChangedEventOriginal, type EcommerceSettings as EcommerceSettingsOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type Error as ErrorOriginal, type FeatureCancelled as FeatureCancelledOriginal, type FeatureCancelledReasonOneOf as FeatureCancelledReasonOneOfOriginal, type FeatureContext as FeatureContextOriginal, type FeatureDisabled as FeatureDisabledOriginal, type FeatureDisabledReasonOneOf as FeatureDisabledReasonOneOfOriginal, type FeatureEnabled as FeatureEnabledOriginal, type FeatureEnabledReasonOneOf as FeatureEnabledReasonOneOfOriginal, type FeatureEventEventOneOf as FeatureEventEventOneOfOriginal, type FeatureEvent as FeatureEventOriginal, type Feature as FeatureOriginal, FeaturePeriod as FeaturePeriodOriginal, type FeaturePeriodWithLiterals as FeaturePeriodWithLiteralsOriginal, type FeatureQuantityInfoOneOf as FeatureQuantityInfoOneOfOriginal, type FeatureUpdated as FeatureUpdatedOriginal, type FeatureUpdatedPreviousQuantityInfoOneOf as FeatureUpdatedPreviousQuantityInfoOneOfOriginal, type FeatureUpdatedReasonOneOf as FeatureUpdatedReasonOneOfOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type GetEcommerceSettingsApplicationErrors as GetEcommerceSettingsApplicationErrorsOriginal, type GetEcommerceSettingsRequest as GetEcommerceSettingsRequestOriginal, type GetEcommerceSettingsResponse as GetEcommerceSettingsResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type Locale as LocaleOriginal, type Logo as LogoOriginal, LogoSize as LogoSizeOriginal, type LogoSizeWithLiterals as LogoSizeWithLiteralsOriginal, type ManualFeatureCreationReason as ManualFeatureCreationReasonOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MigratedFromLegacyReason as MigratedFromLegacyReasonOriginal, type NewFeatureReason as NewFeatureReasonOriginal, type Page as PageOriginal, type PrivacyPolicy as PrivacyPolicyOriginal, type QuotaFeature as QuotaFeatureOriginal, type QuotaInfoEntry as QuotaInfoEntryOriginal, type QuotaInfo as QuotaInfoOriginal, type ReassignedFromSiteReason as ReassignedFromSiteReasonOriginal, type ReassignedToAnotherSiteReason as ReassignedToAnotherSiteReasonOriginal, type ReplacedByAnotherSubscriptionReason as ReplacedByAnotherSubscriptionReasonOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type ReturnPolicy as ReturnPolicyOriginal, type ServicePluginConfiguration as ServicePluginConfigurationOriginal, type StreetAddress as StreetAddressOriginal, type SubdivisionDeliveryProperties as SubdivisionDeliveryPropertiesOriginal, type TaxConfiguration as TaxConfigurationOriginal, type TermsAndConditionsPolicy as TermsAndConditionsPolicyOriginal, type TransferredFromAnotherAccountReason as TransferredFromAnotherAccountReasonOriginal, type TransferredToAnotherAccountReason as TransferredToAnotherAccountReasonOriginal, TriggerFlow as TriggerFlowOriginal, type TriggerFlowWithLiterals as TriggerFlowWithLiteralsOriginal, type URI as URIOriginal, type UnAssingedToFloatingReason as UnAssingedToFloatingReasonOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, getEcommerceSettings };