@wix/auto_sdk_ecom_catalog 1.0.75 → 1.0.77

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":["../../src/service-plugins-types.ts"],"sourcesContent":["export interface GetCatalogItemsRequest {\n /**\n * Catalog reference details for the items to retrieve, including quantity of each item.\n * @minSize 1\n * @maxSize 300\n */\n catalogReferences?: CatalogReferenceAndQuantity[];\n /**\n * Weight measurement unit.\n *\n * By default, Wix sends the weight unit specified in the site's settings.\n */\n weightUnit?: WeightUnit;\n /**\n * Currency to return item prices in, in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. For example, `USD` or `EUR`.\n *\n * By default, Wix sends the currency specified in the site's settings.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * The business location ID associated with the requested items.\n * Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @internal\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Buyer information.\n * @internal\n */\n buyerInfo?: BuyerInfo;\n}\n\nexport interface CatalogReferenceAndQuantity {\n /** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */\n catalogReference?: CatalogReference;\n /** Item quantity. */\n quantity?: number;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in `key:value` pairs.\n *\n * Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.\n *\n * For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)\n * or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction).\n */\n options?: Record<string, any> | null;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** Buyer Info */\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n /**\n * Visitor ID - if the buyer is **not** a site member.\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID - if the buyer is a site member.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * User ID - if the buyer (or cart owner) is a Wix user.\n * @format GUID\n * @readonly\n */\n userId?: string;\n /**\n * Contact ID. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n /**\n * Visitor ID - if the buyer is **not** a site member.\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID - if the buyer is a site member.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * User ID - if the buyer (or cart owner) is a Wix user.\n * @format GUID\n * @readonly\n */\n userId?: string;\n}\n\nexport interface GetCatalogItemsResponse {\n /**\n * Details for each item, including catalog reference details and item data. Any items that don't exist in the catalog are excluded.\n * If none of the requested items exist in the catalog, this array must be empty.\n */\n catalogItems?: Item[];\n}\n\nexport interface Item {\n /** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */\n catalogReference?: CatalogReference;\n /** Item data. Contains full details about the item. */\n data?: ItemData;\n}\n\nexport interface ItemData {\n /** __Required.__ Item name. */\n productName?: ProductName;\n /**\n * URL for the item's page on the site.\n *\n * This is used to link back to the relevant item page from the cart page. If not provided, the site URL is used.\n */\n url?: string;\n /** __Required.__ Item type. Either one of the preset types or a custom type. */\n itemType?: ItemType;\n /**\n * __Required.__ Item price with discounts applied. If a catalog-defined discount applies, the discount is reflected in this price.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n price?: string;\n /**\n * Item price **before** applying any catalog-defined discount.\n *\n * Default: Value of `price` field, if no catalog-defined discount applies.\n * @format DECIMAL_VALUE\n */\n fullPrice?: string | null;\n /**\n * The tax group ID associated with this item. Learn more about the [Tax Groups Service Plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/tax-groups-integration-service-plugin/introduction).\n * @format GUID\n */\n taxGroupId?: string | null;\n /**\n * Line item description lines. Used for displaying the item in a cart, checkout or order. For example, if you want `Size: Large` to appear under the item name, create a description line with `\"name\": {\"original\": \"Size\"}` and `\"plainText\": {\"original\": \"Large\"}`.\n *\n * Default: No description line.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Line item image details. Supports images from the [Wix Media Manager](https://support.wix.com/en/article/wix-media-accessing-the-media-manager) only.\n *\n * To use an image from another source, first upload it to the Media Manager.\n * You can retrieve the ID, width and height of an image from the Wix Media Manager.\n */\n media?: string;\n /**\n * Quantity of the item available for purchase. Only return if the catalog manages inventory.\n * If not returned, a buyer can increase the quantity of this item to add to the cart or checkout without limit.\n * @max 100000000\n */\n quantityAvailable?: number | null;\n /** Physical properties of the item. Only return for physical items. When applicable, contains information such as SKU and item weight. */\n physicalProperties?: PhysicalProperties;\n /**\n * Coupon scopes. These specify which app and items a coupon applies to.\n * Should be used by Bookings, Stores, and Events in line with the current [Coupons API](https://bo.wix.com/wix-docs/rest/stores/coupons/valid-scope-values).\n * @internal\n */\n couponScopes?: Scope[];\n /** Subscription option info. */\n subscriptionOptionInfo?: SubscriptionOptionInfo;\n /**\n * ID of the fulfiller for this item. This field is internal and only used by Stores.\n * @internal\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Digital file details. Required if `itemType.preset` is `DIGITAL`.\n * @internal\n */\n digitalFile?: SecuredMedia;\n /**\n * Deprecated. Use the `deliveryProfileId` instead.\n * Shipping group ID. This field is internal and only used by Stores.\n * @internal\n * @format GUID\n * @readonly\n * @deprecated Deprecated. Use the `deliveryProfileId` instead.\n * Shipping group ID. This field is internal and only used by Stores.\n * @targetRemovalDate 2025-02-13\n */\n shippingGroupId?: string | null;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionType;\n /** Service properties. When applicable, this contains information such as time and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Additional ID for the item in the catalog.\n * This field provides an additional identifier for the item if your flow requires another ID as well as `catalogReference.catalogItemId`.\n * Can be used for membership validation.\n *\n * Default: Same as `catalogReference.catalogItemId`.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Additional description for the price. Return when additional information about the price is needed.\n *\n * For example, when `price` is `\"0\"` but additional details about the actual price are needed, such as `\"Starts at $67\"`.\n */\n priceDescription?: PriceDescription;\n /**\n * Partial payment to be paid upfront during the checkout. Return when `paymentOption` is `DEPOSIT_ONLINE`.\n *\n * Default: If `paymentOption` is `DEPOSIT_ONLINE` but `depositAmount` is not provided, the item is treated as if `paymentOption` is `FULL_PAYMENT_ONLINE`.\n * @format DECIMAL_VALUE\n */\n depositAmount?: string | null;\n /**\n * Delivery profile ID for the product.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n *\n * Default: `false`\n */\n fixedQuantity?: boolean;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * Additional Fees to be added to this item calculation.\n * @maxSize 5\n */\n additionalFees?: AdditionalFee[];\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n */\n membersOnly?: boolean;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * Platform fee to be added to this item calculation. This field is internal for Wix verticals.\n * @internal\n */\n platformFee?: PlatformFee;\n /**\n * ID of the app providing upsells for this item.\n * @internal\n * @format GUID\n */\n upsellOptionsAppId?: string | null;\n /**\n * Resolved bundle details.\n * @internal\n */\n bundleInfo?: BundleInfo;\n}\n\nexport interface ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n /** @documentationMaturity preview\n * @internal\n */\n BUNDLE = 'BUNDLE',\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /**\n * Description line plain text value.\n * @internal\n * @deprecated\n */\n plainTextValue?: PlainTextValue;\n /**\n * Description line color.\n * @internal\n * @deprecated\n */\n color?: string;\n /** Description line name. */\n name?: DescriptionLineName;\n /**\n * Description line type.\n * @internal\n * @deprecated\n */\n lineType?: DescriptionLineType;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {\n /**\n * Description line plain text value.\n * @internal\n * @deprecated\n */\n plainTextValue?: PlainTextValue;\n /**\n * Description line color.\n * @internal\n * @deprecated\n */\n color?: string;\n}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n /**\n * Product dimensions (length, width, height of the physical product).\n * @internal\n */\n productDimensions?: Dimensions;\n /**\n * Package dimensions (length, width, height of the shipping package).\n * @internal\n */\n packageDimensions?: Dimensions;\n}\n\nexport interface Dimensions {\n /**\n * Length. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n length?: string | null;\n /**\n * Width. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n width?: string | null;\n /**\n * Height. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n height?: string | null;\n /** Unit of measurement for dimensions (length, width, height). */\n unit?: DimensionsUnit;\n}\n\nexport enum DimensionsUnit {\n UNKNOWN_DIMENSIONS_UNIT = 'UNKNOWN_DIMENSIONS_UNIT',\n /** Millimeters. */\n MM = 'MM',\n /** Centimeters. */\n CM = 'CM',\n /** Meters. */\n M = 'M',\n /** Inches. */\n IN = 'IN',\n /** Feet. */\n FT = 'FT',\n /** Yards. */\n YD = 'YD',\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n /**\n * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.\n * @internal\n */\n startDate?: Date | null;\n /**\n * Billing configuration for recurring charges.\n * @internal\n */\n billingSettings?: BillingSettings;\n /**\n * Whether the product/service/subscription access period is aligned with the billing period.\n * @internal\n */\n productPeriodAlignment?: ProductPeriodAlignment;\n /**\n * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers\n * are charged the item's `price`.\n *\n * When `billingCycles` is set, every entry must end on or before the last billing cycle.\n * @internal\n * @maxSize 1\n */\n cyclePriceOverrides?: CyclePriceOverride[];\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\n /**\n * Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial.\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface BillingSettings {\n /**\n * Day of month (1-28) to anchor recurring billing to. When set, billing recurs on this day each cycle. Does not apply to weekly subscriptions.\n * @min 1\n * @max 28\n */\n anchorDay?: number | null;\n}\n\nexport enum ProductPeriodAlignment {\n /** Billing period equals the product/service/subscription access period. */\n ALIGNED_WITH_BILLING_PERIOD = 'ALIGNED_WITH_BILLING_PERIOD',\n /** Billing period is independent of the product/service/subscription access period. */\n NOT_ALIGNED_WITH_BILLING_PERIOD = 'NOT_ALIGNED_WITH_BILLING_PERIOD',\n}\n\nexport interface CyclePriceOverride {\n /**\n * __Required.__ First billing cycle the price applies to. The first paid cycle of the\n * subscription is `1`. A free trial period, if any, is cycle `0`.\n * @min 1\n * @max 1\n */\n cycleFrom?: number;\n /**\n * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.\n * @min 1\n * @max 1\n */\n numberOfCycles?: number | null;\n /**\n * __Required.__ Unit price for the cycles this entry covers, in the item's currency.\n * Can be higher than, lower than, or equal to the item's `price`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }\n */\n price?: string;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileType;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n SECURE_RAW = 'SECURE_RAW',\n}\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n /**\n * Date and time the service is to be ended, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the date and time a class will end.\n * @internal\n */\n endDate?: Date | null;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\nexport enum TaxableAddressType {\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code or ID.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Additional fee's name.\n *\n * Max: 50 characters\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /**\n * Total additional fees. This `price` does not include any taxes that may apply to these additional fees.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n price?: string;\n /**\n * Tax details.\n *\n * > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.\n */\n taxDetails?: TaxDetails;\n /**\n * Number of subscription cycle this fee applies to\n * default None - all billing cycle\n * @internal\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n}\n\n/** Tax details. */\nexport interface TaxDetails {\n /** Whether additional fee is taxable. */\n taxable?: boolean;\n /**\n * Reserved for internal use.\n * @format GUID\n */\n taxGroupId?: string | null;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /**\n * The price of the modifier.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string | null;\n}\n\nexport interface PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: ChargeType;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** Resolved bundle details. */\nexport interface BundleInfo {\n /**\n * The items included in the bundle.\n * @minSize 1\n * @maxSize 10\n */\n items?: BundledItem[];\n}\n\n/** One item included in a bundle. */\nexport interface BundledItem {\n /** Catalog and item reference of the bundled item. */\n catalogReference?: CatalogReference;\n /**\n * Number of units of this item in a single bundle.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * The item's own price for 1 unit outside the bundle, with catalog discounts applied.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string;\n /** Item name. */\n productName?: ProductName;\n /** Item type. */\n itemType?: ItemType;\n /**\n * The tax group ID associated with this item.\n * @format GUID\n */\n taxGroupId?: string | null;\n /**\n * Description lines for displaying the item.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Item image details. */\n media?: string;\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /**\n * ID of the fulfiller for this item.\n * @internal\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Digital file details.\n * @internal\n */\n digitalFile?: SecuredMedia;\n /**\n * Additional ID for the item in the catalog.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Delivery profile ID for the product.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Modifier groups added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /** URL of the item's page on a site. */\n url?: string;\n /**\n * Additional Fees to be added to this item calculation.\n * @maxSize 5\n */\n additionalFees?: AdditionalFee[];\n /**\n * Platform fee for the item. Internal for Wix verticals.\n * @internal\n */\n platformFee?: PlatformFee;\n /** Service properties, such as time and number of participants. */\n serviceProperties?: ServiceProperties;\n}\n\nexport interface QueryCatalogItemsRequest {\n /**\n * A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.\n * @minLength 1\n * @maxLength 100\n * @maxSize 100\n */\n catalogItemIds?: string[] | null;\n /**\n * An item name to filter by. If exists, the result will only include items with name that starts with this string.\n * @minLength 1\n * @maxLength 100\n */\n catalogItemName?: string | null;\n /** Paging options to limit and skip a number of items. */\n paging?: Paging;\n /**\n * Optional, if exist add filter by numericId gt last_numeric_id\n * https://dev.wix.com/api/rest/wix-stores/pagination#wix-stores_pagination_pagination\n */\n lastNumericId?: string | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface QueryCatalogItemsResponse {\n /** Catalog info and item data. */\n catalogItems?: BasicItem[];\n /** Paging metadata. */\n metadata?: PagingMetadata;\n}\n\nexport interface BasicItem {\n /**\n * The ID of the item.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /** The name of the item. */\n name?: string;\n /**\n * Item price range - the minimum and maximum prices of all the item's variants.\n * @internal\n * @readonly\n */\n priceRange?: NumericPropertyRange;\n /** Item Media items. */\n image?: string[];\n /** The current status of the inventory */\n inStock?: boolean;\n /** current version of an item. Each time the item is modified, its `revision` changes */\n revision?: string | null;\n /**\n * True if the item has any subscription plan defined\n * @internal\n */\n isSubscription?: boolean;\n /**\n * Unique numeric ID\n * @readonly\n */\n numericId?: string | null;\n /**\n * Purchase types the item supports.\n *\n * An empty list means the item's purchase types are unknown, not that the item supports none.\n * @internal\n * @maxSize 2\n */\n purchaseTypes?: PurchaseType[];\n}\n\nexport interface NumericPropertyRange {\n /** Minimum value. */\n minValue?: number;\n /** Maximum value. */\n maxValue?: number;\n}\n\n/** A purchase type a catalog's items can be bought as. */\nexport enum PurchaseType {\n /** The item can be bought as a one-time purchase. */\n ONE_TIME = 'ONE_TIME',\n /** The item can be purchased as a subscription. */\n SUBSCRIPTION = 'SUBSCRIPTION',\n}\n\nexport interface PagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface CatalogSPIConfig {\n /** Base URI which Wix eCommerce will call to access Catalog service plugin endpoints. For example, to call the Get Catalog Items endpoint at `https://my-external-catalog.com/get-catalog-items`, the base URI you provide here is `https://my-external-catalog.com`. */\n deploymentUri?: string;\n /** Configuration details for discounts applied to all items in the catalog. */\n allItemsDiscount?: AllItemsDiscountConfig;\n /** Configuration details for discounts applied to specific items in the catalog. */\n specificItemsDiscount?: SpecificItemsDiscountConfig;\n /**\n * The purchase types this catalog's items support (one-time and/or subscription).\n * Used by the discount-rule editor to offer only the purchase-type options relevant to this catalog.\n * An empty list means no restriction is declared and all purchase types are offered.\n */\n supportedPurchaseTypes?: PurchaseType[];\n}\n\n/** Configuration for all items discount functionality in the catalog. */\nexport interface AllItemsDiscountConfig {\n /**\n * Whether the discount is enabled.\n *\n * Default: `false`.\n */\n enabled?: boolean;\n /**\n * Translation key for text to display to the site owner.\n * __Deprecated.__ Use `name` instead.\n * @internal\n * @minLength 5\n * @maxLength 30\n * @deprecated Translation key for text to display to the site owner.\n * __Deprecated.__ Use `name` instead.\n * @replacedBy name\n * @targetRemovalDate 2024-05-01\n */\n translationKey?: string;\n /**\n * Translatable name for \"all items discount\" in the catalog.\n * For example, for restaurant menus, this could be \"All dishes\".\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n}\n\n/** Configuration for discount functionality in the catalog. */\nexport interface SpecificItemsDiscountConfig {\n /**\n * Whether the discount is enabled.\n *\n * Default: `false`.\n */\n enabled?: boolean;\n /**\n * Translation key for text to display to the site owner. deprecated use name instead .\n * For example, for restaurant menus, this could be \"Specific dishes\".\n * @internal\n * @minLength 5\n * @maxLength 30\n * @deprecated Translation key for text to display to the site owner. deprecated use name instead .\n * For example, for restaurant menus, this could be \"Specific dishes\".\n * @replacedBy name\n * @targetRemovalDate 2024-05-01\n */\n translationKey?: string;\n /**\n * Translatable name for \"all items discount\" in the catalog.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n}\n\n/**\n * this message is not directly used by any service,\n * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.\n * e.g. SPIs, event-handlers, etc..\n * NOTE: this context object MUST be provided as the last argument in each Velo method signature.\n *\n * Example:\n * ```typescript\n * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {\n * ...\n * }\n * ```\n */\nexport interface Context {\n /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */\n requestId?: string | null;\n /**\n * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.\n * @format CURRENCY\n */\n currency?: string | null;\n /** An object that describes the identity that triggered this request. */\n identity?: IdentificationData;\n /** A string representing a language and region in the format of `\"xx-XX\"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash \"-\", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `\"en-US\"`. */\n languages?: string[];\n /**\n * The service provider app's instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Extension ID in Dev Center.\n * @internal\n * @maxLength 256\n */\n appExtensionId?: string | null;\n /**\n * Extension type in Dev Center.\n * @internal\n * @maxLength 256\n */\n appExtensionType?: string | null;\n /**\n * Invoked function.\n * @internal\n * @maxLength 256\n */\n functionName?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\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?: IdentityType;\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"],"mappings":";AAwEO,IAAK,aAAL,kBAAKA,gBAAL;AAEL,EAAAA,YAAA,6BAA0B;AAE1B,EAAAA,YAAA,QAAK;AAEL,EAAAA,YAAA,QAAK;AANK,SAAAA;AAAA,GAAA;AA8SL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,aAAU;AAIV,EAAAA,gBAAA,YAAS;AATC,SAAAA;AAAA,GAAA;AAgHL,IAAK,sBAAL,kBAAKC,yBAAL;AAEL,EAAAA,qBAAA,kBAAe;AAEf,EAAAA,qBAAA,gBAAa;AAEb,EAAAA,qBAAA,WAAQ;AANE,SAAAA;AAAA,GAAA;AAmDL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,6BAA0B;AAE1B,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,OAAI;AAEJ,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAbK,SAAAA;AAAA,GAAA;AA4FL,IAAK,wBAAL,kBAAKC,2BAAL;AACL,EAAAA,uBAAA,eAAY;AACZ,EAAAA,uBAAA,SAAM;AACN,EAAAA,uBAAA,UAAO;AACP,EAAAA,uBAAA,WAAQ;AACR,EAAAA,uBAAA,UAAO;AALG,SAAAA;AAAA,GAAA;AA4BL,IAAK,yBAAL,kBAAKC,4BAAL;AAEL,EAAAA,wBAAA,iCAA8B;AAE9B,EAAAA,wBAAA,qCAAkC;AAJxB,SAAAA;AAAA,GAAA;AA4EL,IAAK,WAAL,kBAAKC,cAAL;AACL,EAAAA,UAAA,iBAAc;AACd,EAAAA,UAAA,oBAAiB;AACjB,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,qBAAkB;AAClB,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,oBAAiB;AACjB,EAAAA,UAAA,gBAAa;AAPH,SAAAA;AAAA,GAAA;AAWL,IAAK,oBAAL,kBAAKC,uBAAL;AAEL,EAAAA,mBAAA,yBAAsB;AAEtB,EAAAA,mBAAA,0BAAuB;AAEvB,EAAAA,mBAAA,gBAAa;AAEb,EAAAA,mBAAA,oBAAiB;AAEjB,EAAAA,mBAAA,wBAAqB;AAKrB,EAAAA,mBAAA,8CAA2C;AAfjC,SAAAA;AAAA,GAAA;AAkEL,IAAK,qBAAL,kBAAKC,wBAAL;AACL,EAAAA,oBAAA,cAAW;AACX,EAAAA,oBAAA,aAAU;AACV,EAAAA,oBAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;AAkJL,IAAK,aAAL,kBAAKC,gBAAL;AAEL,EAAAA,YAAA,aAAU;AAEV,EAAAA,YAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;AA2LL,IAAK,eAAL,kBAAKC,kBAAL;AAEL,EAAAA,cAAA,cAAW;AAEX,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAmJL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,uBAAoB;AACpB,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,SAAM;AALI,SAAAA;AAAA,GAAA;","names":["WeightUnit","ItemTypePreset","DescriptionLineType","DimensionsUnit","SubscriptionFrequency","ProductPeriodAlignment","FileType","PaymentOptionType","TaxableAddressType","ChargeType","PurchaseType","IdentityType"]}
1
+ {"version":3,"sources":["../../src/service-plugins-types.ts"],"sourcesContent":["export interface GetCatalogItemsRequest {\n /**\n * Catalog reference details for the items to retrieve, including quantity of each item.\n * @minSize 1\n * @maxSize 300\n */\n catalogReferences?: CatalogReferenceAndQuantity[];\n /**\n * Weight measurement unit.\n *\n * By default, Wix sends the weight unit specified in the site's settings.\n */\n weightUnit?: WeightUnit;\n /**\n * Currency to return item prices in, in [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) format. For example, `USD` or `EUR`.\n *\n * By default, Wix sends the currency specified in the site's settings.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * The business location ID associated with the requested items.\n * Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @internal\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Buyer information.\n * @internal\n */\n buyerInfo?: BuyerInfo;\n}\n\nexport interface CatalogReferenceAndQuantity {\n /** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */\n catalogReference?: CatalogReference;\n /** Item quantity. */\n quantity?: number;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in `key:value` pairs.\n *\n * Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.\n *\n * For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)\n * or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction).\n */\n options?: Record<string, any> | null;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** Buyer Info */\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n /**\n * Visitor ID - if the buyer is **not** a site member.\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID - if the buyer is a site member.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * User ID - if the buyer (or cart owner) is a Wix user.\n * @format GUID\n * @readonly\n */\n userId?: string;\n /**\n * Contact ID. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n /**\n * Visitor ID - if the buyer is **not** a site member.\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID - if the buyer is a site member.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * User ID - if the buyer (or cart owner) is a Wix user.\n * @format GUID\n * @readonly\n */\n userId?: string;\n}\n\nexport interface GetCatalogItemsResponse {\n /**\n * Details for each item, including catalog reference details and item data. Any items that don't exist in the catalog are excluded.\n * If none of the requested items exist in the catalog, this array must be empty.\n */\n catalogItems?: Item[];\n}\n\nexport interface Item {\n /** Catalog and item reference info. Holds IDs for the item and the catalog it belongs to, as well as further optional details. This is identical in the request and response. */\n catalogReference?: CatalogReference;\n /** Item data. Contains full details about the item. */\n data?: ItemData;\n}\n\nexport interface ItemData {\n /** __Required.__ Item name. */\n productName?: ProductName;\n /**\n * URL for the item's page on the site.\n *\n * This is used to link back to the relevant item page from the cart page. If not provided, the site URL is used.\n */\n url?: string;\n /** __Required.__ Item type. Either one of the preset types or a custom type. */\n itemType?: ItemType;\n /**\n * __Required.__ Item price with discounts applied. If a catalog-defined discount applies, the discount is reflected in this price.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n price?: string;\n /**\n * Item price **before** applying any catalog-defined discount.\n *\n * Default: Value of `price` field, if no catalog-defined discount applies.\n * @format DECIMAL_VALUE\n */\n fullPrice?: string | null;\n /**\n * The tax group ID associated with this item. Learn more about the [Tax Groups Service Plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/tax-groups-integration-service-plugin/introduction).\n * @format GUID\n */\n taxGroupId?: string | null;\n /**\n * Line item description lines. Used for displaying the item in a cart, checkout or order. For example, if you want `Size: Large` to appear under the item name, create a description line with `\"name\": {\"original\": \"Size\"}` and `\"plainText\": {\"original\": \"Large\"}`.\n *\n * Default: No description line.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Line item image details. Supports images from the [Wix Media Manager](https://support.wix.com/en/article/wix-media-accessing-the-media-manager) only.\n *\n * To use an image from another source, first upload it to the Media Manager.\n * You can retrieve the ID, width and height of an image from the Wix Media Manager.\n */\n media?: string;\n /**\n * Quantity of the item available for purchase. Only return if the catalog manages inventory.\n * If not returned, a buyer can increase the quantity of this item to add to the cart or checkout without limit.\n * @max 100000000\n */\n quantityAvailable?: number | null;\n /** Physical properties of the item. Only return for physical items. When applicable, contains information such as SKU and item weight. */\n physicalProperties?: PhysicalProperties;\n /**\n * Coupon scopes. These specify which app and items a coupon applies to.\n * Should be used by Bookings, Stores, and Events in line with the current [Coupons API](https://bo.wix.com/wix-docs/rest/stores/coupons/valid-scope-values).\n * @internal\n */\n couponScopes?: Scope[];\n /** Subscription option info. */\n subscriptionOptionInfo?: SubscriptionOptionInfo;\n /**\n * ID of the fulfiller for this item. This field is internal and only used by Stores.\n * @internal\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Digital file details. Required if `itemType.preset` is `DIGITAL`.\n * @internal\n */\n digitalFile?: SecuredMedia;\n /**\n * Deprecated. Use the `deliveryProfileId` instead.\n * Shipping group ID. This field is internal and only used by Stores.\n * @internal\n * @format GUID\n * @readonly\n * @deprecated Deprecated. Use the `deliveryProfileId` instead.\n * Shipping group ID. This field is internal and only used by Stores.\n * @targetRemovalDate 2025-02-13\n */\n shippingGroupId?: string | null;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionType;\n /** Service properties. When applicable, this contains information such as time and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Additional ID for the item in the catalog.\n * This field provides an additional identifier for the item if your flow requires another ID as well as `catalogReference.catalogItemId`.\n * Can be used for membership validation.\n *\n * Default: Same as `catalogReference.catalogItemId`.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Additional description for the price. Return when additional information about the price is needed.\n *\n * For example, when `price` is `\"0\"` but additional details about the actual price are needed, such as `\"Starts at $67\"`.\n */\n priceDescription?: PriceDescription;\n /**\n * Partial payment to be paid upfront during the checkout. Return when `paymentOption` is `DEPOSIT_ONLINE`.\n *\n * Default: If `paymentOption` is `DEPOSIT_ONLINE` but `depositAmount` is not provided, the item is treated as if `paymentOption` is `FULL_PAYMENT_ONLINE`.\n * @format DECIMAL_VALUE\n */\n depositAmount?: string | null;\n /**\n * Delivery profile ID for the product.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n *\n * Default: `false`\n */\n fixedQuantity?: boolean;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * Additional Fees to be added to this item calculation.\n * @maxSize 5\n */\n additionalFees?: AdditionalFee[];\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n */\n membersOnly?: boolean;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * Platform fee to be added to this item calculation. This field is internal for Wix verticals.\n * @internal\n */\n platformFee?: PlatformFee;\n /**\n * ID of the app providing upsells for this item.\n * @internal\n * @format GUID\n */\n upsellOptionsAppId?: string | null;\n /**\n * Resolved bundle details.\n *\n * Required when `itemType.preset` is `BUNDLE`, and not supported otherwise.\n * @internal\n */\n bundleInfo?: BundleInfo;\n}\n\nexport interface ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n /** @documentationMaturity preview\n * @internal\n */\n BUNDLE = 'BUNDLE',\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /**\n * Description line plain text value.\n * @internal\n * @deprecated\n */\n plainTextValue?: PlainTextValue;\n /**\n * Description line color.\n * @internal\n * @deprecated\n */\n color?: string;\n /** Description line name. */\n name?: DescriptionLineName;\n /**\n * Description line type.\n * @internal\n * @deprecated\n */\n lineType?: DescriptionLineType;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {\n /**\n * Description line plain text value.\n * @internal\n * @deprecated\n */\n plainTextValue?: PlainTextValue;\n /**\n * Description line color.\n * @internal\n * @deprecated\n */\n color?: string;\n}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n /** Product dimensions (length, width, height of the physical product). */\n productDimensions?: Dimensions;\n /** Package dimensions (length, width, height of the shipping package). */\n packageDimensions?: Dimensions;\n}\n\nexport interface Dimensions {\n /**\n * Length. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n length?: string | null;\n /**\n * Width. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n width?: string | null;\n /**\n * Height. Measurement unit is handled at the system level (metric/imperial).\n * @decimalValue options { gte:0, lte:999999999, maxScale:6 }\n */\n height?: string | null;\n /** Unit of measurement for dimensions (length, width, height). */\n unit?: DimensionsUnit;\n}\n\nexport enum DimensionsUnit {\n UNKNOWN_DIMENSIONS_UNIT = 'UNKNOWN_DIMENSIONS_UNIT',\n /** Millimeters. */\n MM = 'MM',\n /** Centimeters. */\n CM = 'CM',\n /** Meters. */\n M = 'M',\n /** Inches. */\n IN = 'IN',\n /** Feet. */\n FT = 'FT',\n /** Yards. */\n YD = 'YD',\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n /**\n * Date and time the subscription starts.\n *\n * The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.\n */\n startDate?: Date | null;\n /** Billing configuration for recurring charges. */\n billingSettings?: BillingSettings;\n /**\n * How the access period of the product, service, or subscription relates to the billing period.\n *\n * Default: `ALIGNED_WITH_BILLING_PERIOD`\n * @internal\n */\n productPeriodAlignment?: ProductPeriodAlignment;\n /**\n * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers\n * are charged the item's `price`.\n *\n * When `billingCycles` is set, every entry must end on or before the last billing cycle.\n * @internal\n * @maxSize 1\n */\n cyclePriceOverrides?: CyclePriceOverride[];\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\n /**\n * Number of frequency units in the free trial period. For example, frequency `MONTH` with interval `3` means a 3-month free trial.\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface BillingSettings {\n /**\n * Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.\n *\n * Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.\n * @min 1\n * @max 28\n */\n anchorDay?: number | null;\n}\n\nexport enum ProductPeriodAlignment {\n /** Billing period equals the product/service/subscription access period. */\n ALIGNED_WITH_BILLING_PERIOD = 'ALIGNED_WITH_BILLING_PERIOD',\n /** Billing period is independent of the product/service/subscription access period. */\n NOT_ALIGNED_WITH_BILLING_PERIOD = 'NOT_ALIGNED_WITH_BILLING_PERIOD',\n}\n\nexport interface CyclePriceOverride {\n /**\n * __Required.__ First billing cycle the price applies to. The first paid cycle of the\n * subscription is `1`. A free trial period, if any, is cycle `0`.\n * @min 1\n * @max 1\n */\n cycleFrom?: number;\n /**\n * __Required.__ Number of consecutive billing cycles the price applies to, starting at `cycleFrom`.\n * @min 1\n * @max 1\n */\n numberOfCycles?: number | null;\n /**\n * __Required.__ Unit price for the cycles this entry covers, in the item's currency.\n * Can be higher than, lower than, or equal to the item's `price`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:4 }\n */\n price?: string;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileType;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n SECURE_RAW = 'SECURE_RAW',\n}\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n /**\n * Date and time the service is to be ended, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the date and time a class will end.\n * @internal\n */\n endDate?: Date | null;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\nexport enum TaxableAddressType {\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code or ID.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Additional fee's name.\n *\n * Max: 50 characters\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /**\n * Total additional fees. This `price` does not include any taxes that may apply to these additional fees.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n price?: string;\n /**\n * Tax details.\n *\n * > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.\n */\n taxDetails?: TaxDetails;\n /**\n * Number of billing cycles the fee applies to, starting from the first billing cycle.\n *\n * Used only when the item is a subscription.\n *\n * Default: The fee applies to every billing cycle.\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n}\n\n/** Tax details. */\nexport interface TaxDetails {\n /** Whether additional fee is taxable. */\n taxable?: boolean;\n /**\n * Reserved for internal use.\n * @format GUID\n */\n taxGroupId?: string | null;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /**\n * The price of the modifier.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string | null;\n}\n\nexport interface PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: ChargeType;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** Resolved bundle details. */\nexport interface BundleInfo {\n /**\n * The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.\n * @minSize 1\n * @maxSize 10\n */\n items?: BundledItem[];\n}\n\n/** One item included in a bundle. */\nexport interface BundledItem {\n /** __Required.__ Catalog and item reference of the bundled item. */\n catalogReference?: CatalogReference;\n /**\n * Number of units of this item in a single bundle.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string;\n /** __Required.__ Item name. */\n productName?: ProductName;\n /** __Required.__ Item type. Gift cards and bundles aren't allowed. */\n itemType?: ItemType;\n /**\n * The tax group ID associated with this item.\n * @format GUID\n */\n taxGroupId?: string | null;\n /**\n * Description lines for displaying the item.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Item image details. */\n media?: string;\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /**\n * ID of the fulfiller for this item.\n * @internal\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Digital file details.\n * @internal\n */\n digitalFile?: SecuredMedia;\n /**\n * Additional ID for the item in the catalog.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Delivery profile ID for the product.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Modifier groups added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /** URL of the item's page on a site. */\n url?: string;\n /**\n * Additional Fees to be added to this item calculation.\n * @maxSize 5\n */\n additionalFees?: AdditionalFee[];\n /**\n * Platform fee for the item. Internal for Wix verticals.\n * @internal\n */\n platformFee?: PlatformFee;\n /** Service properties, such as time and number of participants. */\n serviceProperties?: ServiceProperties;\n}\n\nexport interface QueryCatalogItemsRequest {\n /**\n * A list of itemIDs to filter by. If exists, the result will only include the items with the IDs passed.\n * @minLength 1\n * @maxLength 100\n * @maxSize 100\n */\n catalogItemIds?: string[] | null;\n /**\n * An item name to filter by. If exists, the result will only include items with name that starts with this string.\n * @minLength 1\n * @maxLength 100\n */\n catalogItemName?: string | null;\n /** Paging options to limit and skip a number of items. */\n paging?: Paging;\n /**\n * Optional, if exist add filter by numericId gt last_numeric_id\n * https://dev.wix.com/api/rest/wix-stores/pagination#wix-stores_pagination_pagination\n */\n lastNumericId?: string | null;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface QueryCatalogItemsResponse {\n /** Catalog info and item data. */\n catalogItems?: BasicItem[];\n /** Paging metadata. */\n metadata?: PagingMetadata;\n}\n\nexport interface BasicItem {\n /**\n * The ID of the item.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /** The name of the item. */\n name?: string;\n /**\n * Item price range - the minimum and maximum prices of all the item's variants.\n * @internal\n * @readonly\n */\n priceRange?: NumericPropertyRange;\n /** Item Media items. */\n image?: string[];\n /** The current status of the inventory */\n inStock?: boolean;\n /** current version of an item. Each time the item is modified, its `revision` changes */\n revision?: string | null;\n /**\n * True if the item has any subscription plan defined\n * @internal\n */\n isSubscription?: boolean;\n /**\n * Unique numeric ID\n * @readonly\n */\n numericId?: string | null;\n /**\n * Purchase types the item supports.\n *\n * An empty list means the item's purchase types are unknown, not that the item supports none.\n * @internal\n * @maxSize 2\n */\n purchaseTypes?: PurchaseType[];\n}\n\nexport interface NumericPropertyRange {\n /** Minimum value. */\n minValue?: number;\n /** Maximum value. */\n maxValue?: number;\n}\n\n/** A purchase type a catalog's items can be bought as. */\nexport enum PurchaseType {\n /** The item can be bought as a one-time purchase. */\n ONE_TIME = 'ONE_TIME',\n /** The item can be purchased as a subscription. */\n SUBSCRIPTION = 'SUBSCRIPTION',\n}\n\nexport interface PagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Offset that was requested. */\n offset?: number | null;\n /** Total number of items that match the query. */\n total?: number | null;\n /** Flag that indicates the server failed to calculate the `total` field. */\n tooManyToCount?: boolean | null;\n /**\n * Indicates if there are more results after the current page.\n * If `true`, another page of results can be retrieved.\n * If `false`, this is the last page.\n * @internal\n */\n hasNext?: boolean | null;\n}\n\nexport interface CatalogSPIConfig {\n /** Base URI which Wix eCommerce will call to access Catalog service plugin endpoints. For example, to call the Get Catalog Items endpoint at `https://my-external-catalog.com/get-catalog-items`, the base URI you provide here is `https://my-external-catalog.com`. */\n deploymentUri?: string;\n /** Configuration details for discounts applied to all items in the catalog. */\n allItemsDiscount?: AllItemsDiscountConfig;\n /** Configuration details for discounts applied to specific items in the catalog. */\n specificItemsDiscount?: SpecificItemsDiscountConfig;\n /**\n * The purchase types this catalog's items support (one-time and/or subscription).\n * Used by the discount-rule editor to offer only the purchase-type options relevant to this catalog.\n * An empty list means no restriction is declared and all purchase types are offered.\n */\n supportedPurchaseTypes?: PurchaseType[];\n}\n\n/** Configuration for all items discount functionality in the catalog. */\nexport interface AllItemsDiscountConfig {\n /**\n * Whether the discount is enabled.\n *\n * Default: `false`.\n */\n enabled?: boolean;\n /**\n * Translation key for text to display to the site owner.\n * __Deprecated.__ Use `name` instead.\n * @internal\n * @minLength 5\n * @maxLength 30\n * @deprecated Translation key for text to display to the site owner.\n * __Deprecated.__ Use `name` instead.\n * @replacedBy name\n * @targetRemovalDate 2024-05-01\n */\n translationKey?: string;\n /**\n * Translatable name for \"all items discount\" in the catalog.\n * For example, for restaurant menus, this could be \"All dishes\".\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n}\n\n/** Configuration for discount functionality in the catalog. */\nexport interface SpecificItemsDiscountConfig {\n /**\n * Whether the discount is enabled.\n *\n * Default: `false`.\n */\n enabled?: boolean;\n /**\n * Translation key for text to display to the site owner. deprecated use name instead .\n * For example, for restaurant menus, this could be \"Specific dishes\".\n * @internal\n * @minLength 5\n * @maxLength 30\n * @deprecated Translation key for text to display to the site owner. deprecated use name instead .\n * For example, for restaurant menus, this could be \"Specific dishes\".\n * @replacedBy name\n * @targetRemovalDate 2024-05-01\n */\n translationKey?: string;\n /**\n * Translatable name for \"all items discount\" in the catalog.\n * @minLength 1\n * @maxLength 100\n */\n name?: string | null;\n}\n\n/**\n * this message is not directly used by any service,\n * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.\n * e.g. SPIs, event-handlers, etc..\n * NOTE: this context object MUST be provided as the last argument in each Velo method signature.\n *\n * Example:\n * ```typescript\n * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {\n * ...\n * }\n * ```\n */\nexport interface Context {\n /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */\n requestId?: string | null;\n /**\n * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.\n * @format CURRENCY\n */\n currency?: string | null;\n /** An object that describes the identity that triggered this request. */\n identity?: IdentificationData;\n /** A string representing a language and region in the format of `\"xx-XX\"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash \"-\", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `\"en-US\"`. */\n languages?: string[];\n /**\n * The service provider app's instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Extension ID in Dev Center.\n * @internal\n * @maxLength 256\n */\n appExtensionId?: string | null;\n /**\n * Extension type in Dev Center.\n * @internal\n * @maxLength 256\n */\n appExtensionType?: string | null;\n /**\n * Invoked function.\n * @internal\n * @maxLength 256\n */\n functionName?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\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?: IdentityType;\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"],"mappings":";AAwEO,IAAK,aAAL,kBAAKA,gBAAL;AAEL,EAAAA,YAAA,6BAA0B;AAE1B,EAAAA,YAAA,QAAK;AAEL,EAAAA,YAAA,QAAK;AANK,SAAAA;AAAA,GAAA;AA+SL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,aAAU;AAIV,EAAAA,gBAAA,YAAS;AATC,SAAAA;AAAA,GAAA;AAgHL,IAAK,sBAAL,kBAAKC,yBAAL;AAEL,EAAAA,qBAAA,kBAAe;AAEf,EAAAA,qBAAA,gBAAa;AAEb,EAAAA,qBAAA,WAAQ;AANE,SAAAA;AAAA,GAAA;AA6CL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,6BAA0B;AAE1B,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,OAAI;AAEJ,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAEL,EAAAA,gBAAA,QAAK;AAbK,SAAAA;AAAA,GAAA;AA4FL,IAAK,wBAAL,kBAAKC,2BAAL;AACL,EAAAA,uBAAA,eAAY;AACZ,EAAAA,uBAAA,SAAM;AACN,EAAAA,uBAAA,UAAO;AACP,EAAAA,uBAAA,WAAQ;AACR,EAAAA,uBAAA,UAAO;AALG,SAAAA;AAAA,GAAA;AA8BL,IAAK,yBAAL,kBAAKC,4BAAL;AAEL,EAAAA,wBAAA,iCAA8B;AAE9B,EAAAA,wBAAA,qCAAkC;AAJxB,SAAAA;AAAA,GAAA;AA4EL,IAAK,WAAL,kBAAKC,cAAL;AACL,EAAAA,UAAA,iBAAc;AACd,EAAAA,UAAA,oBAAiB;AACjB,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,qBAAkB;AAClB,EAAAA,UAAA,kBAAe;AACf,EAAAA,UAAA,oBAAiB;AACjB,EAAAA,UAAA,gBAAa;AAPH,SAAAA;AAAA,GAAA;AAWL,IAAK,oBAAL,kBAAKC,uBAAL;AAEL,EAAAA,mBAAA,yBAAsB;AAEtB,EAAAA,mBAAA,0BAAuB;AAEvB,EAAAA,mBAAA,gBAAa;AAEb,EAAAA,mBAAA,oBAAiB;AAEjB,EAAAA,mBAAA,wBAAqB;AAKrB,EAAAA,mBAAA,8CAA2C;AAfjC,SAAAA;AAAA,GAAA;AAkEL,IAAK,qBAAL,kBAAKC,wBAAL;AACL,EAAAA,oBAAA,cAAW;AACX,EAAAA,oBAAA,aAAU;AACV,EAAAA,oBAAA,cAAW;AAHD,SAAAA;AAAA,GAAA;AAoJL,IAAK,aAAL,kBAAKC,gBAAL;AAEL,EAAAA,YAAA,aAAU;AAEV,EAAAA,YAAA,cAAW;AAJD,SAAAA;AAAA,GAAA;AA2LL,IAAK,eAAL,kBAAKC,kBAAL;AAEL,EAAAA,cAAA,cAAW;AAEX,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAmJL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,aAAU;AACV,EAAAA,cAAA,uBAAoB;AACpB,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,cAAW;AACX,EAAAA,cAAA,SAAM;AALI,SAAAA;AAAA,GAAA;","names":["WeightUnit","ItemTypePreset","DescriptionLineType","DimensionsUnit","SubscriptionFrequency","ProductPeriodAlignment","FileType","PaymentOptionType","TaxableAddressType","ChargeType","PurchaseType","IdentityType"]}
@@ -244,6 +244,11 @@ interface ItemData {
244
244
  savePaymentMethod?: boolean;
245
245
  /** Address to use for tax calculation purposes. */
246
246
  taxableAddress?: TaxableAddress;
247
+ /**
248
+ * ID of the app managing the inventory.
249
+ * @format GUID
250
+ */
251
+ inventoryAppId?: string | null;
247
252
  /**
248
253
  * Policies to be displayed to the customer on the checkout page.
249
254
  * @maxSize 5
@@ -387,6 +392,10 @@ interface PhysicalProperties {
387
392
  sku?: string | null;
388
393
  /** Whether this line item is shippable. */
389
394
  shippable?: boolean;
395
+ /** Product dimensions (length, width, height of the physical product). */
396
+ productDimensions?: Dimensions;
397
+ /** Package dimensions (length, width, height of the shipping package). */
398
+ packageDimensions?: Dimensions;
390
399
  }
391
400
  interface Dimensions {
392
401
  /**
@@ -468,6 +477,14 @@ interface SubscriptionSettings {
468
477
  * If None => no free trial
469
478
  */
470
479
  freeTrialPeriod?: FreeTrialPeriod;
480
+ /**
481
+ * Date and time the subscription starts.
482
+ *
483
+ * The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.
484
+ */
485
+ startDate?: Date | null;
486
+ /** Billing configuration for recurring charges. */
487
+ billingSettings?: BillingSettings;
471
488
  }
472
489
  /** Frequency unit of recurring payment */
473
490
  declare enum SubscriptionFrequency {
@@ -489,7 +506,9 @@ interface FreeTrialPeriod {
489
506
  }
490
507
  interface BillingSettings {
491
508
  /**
492
- * Day of month (1-28) to anchor recurring billing to. When set, billing recurs on this day each cycle. Does not apply to weekly subscriptions.
509
+ * Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.
510
+ *
511
+ * Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.
493
512
  * @min 1
494
513
  * @max 28
495
514
  */
@@ -676,6 +695,16 @@ interface AdditionalFee {
676
695
  * > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.
677
696
  */
678
697
  taxDetails?: TaxDetails;
698
+ /**
699
+ * Number of billing cycles the fee applies to, starting from the first billing cycle.
700
+ *
701
+ * Used only when the item is a subscription.
702
+ *
703
+ * Default: The fee applies to every billing cycle.
704
+ * @min 1
705
+ * @max 999
706
+ */
707
+ subscriptionCycles?: number | null;
679
708
  }
680
709
  /** Tax details. */
681
710
  interface TaxDetails {
@@ -770,7 +799,7 @@ declare enum ChargeType {
770
799
  /** Resolved bundle details. */
771
800
  interface BundleInfo {
772
801
  /**
773
- * The items included in the bundle.
802
+ * The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
774
803
  * @minSize 1
775
804
  * @maxSize 10
776
805
  */
@@ -778,7 +807,7 @@ interface BundleInfo {
778
807
  }
779
808
  /** One item included in a bundle. */
780
809
  interface BundledItem {
781
- /** Catalog and item reference of the bundled item. */
810
+ /** __Required.__ Catalog and item reference of the bundled item. */
782
811
  catalogReference?: CatalogReference;
783
812
  /**
784
813
  * Number of units of this item in a single bundle.
@@ -787,13 +816,13 @@ interface BundledItem {
787
816
  */
788
817
  quantity?: number;
789
818
  /**
790
- * The item's own price for 1 unit outside the bundle, with catalog discounts applied.
819
+ * __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
791
820
  * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
792
821
  */
793
822
  price?: string;
794
- /** Item name. */
823
+ /** __Required.__ Item name. */
795
824
  productName?: ProductName;
796
- /** Item type. */
825
+ /** __Required.__ Item type. Gift cards and bundles aren't allowed. */
797
826
  itemType?: ItemType;
798
827
  /**
799
828
  * The tax group ID associated with this item.
@@ -1,5 +1,5 @@
1
- import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.js';
2
- export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.js';
1
+ import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.js';
2
+ export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.js';
3
3
  import { BuildServicePluginDefinition } from '@wix/sdk-types';
4
4
 
5
5
  declare const provideHandlers: BuildServicePluginDefinition<typeof provideHandlers$1> & typeof provideHandlers$1;
@@ -1,5 +1,5 @@
1
- import { ad as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.js';
2
- export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.js';
1
+ import { ad as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.js';
2
+ export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.js';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /**
@@ -286,7 +286,6 @@ interface ItemData {
286
286
  taxableAddress?: TaxableAddress;
287
287
  /**
288
288
  * ID of the app managing the inventory.
289
- * @internal
290
289
  * @format GUID
291
290
  */
292
291
  inventoryAppId?: string | null;
@@ -324,6 +323,8 @@ interface ItemData {
324
323
  upsellOptionsAppId?: string | null;
325
324
  /**
326
325
  * Resolved bundle details.
326
+ *
327
+ * Required when `itemType.preset` is `BUNDLE`, and not supported otherwise.
327
328
  * @internal
328
329
  */
329
330
  bundleInfo?: BundleInfo;
@@ -483,15 +484,9 @@ interface PhysicalProperties {
483
484
  sku?: string | null;
484
485
  /** Whether this line item is shippable. */
485
486
  shippable?: boolean;
486
- /**
487
- * Product dimensions (length, width, height of the physical product).
488
- * @internal
489
- */
487
+ /** Product dimensions (length, width, height of the physical product). */
490
488
  productDimensions?: Dimensions;
491
- /**
492
- * Package dimensions (length, width, height of the shipping package).
493
- * @internal
494
- */
489
+ /** Package dimensions (length, width, height of the shipping package). */
495
490
  packageDimensions?: Dimensions;
496
491
  }
497
492
  interface Dimensions {
@@ -575,17 +570,17 @@ interface SubscriptionSettings {
575
570
  */
576
571
  freeTrialPeriod?: FreeTrialPeriod;
577
572
  /**
578
- * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
579
- * @internal
573
+ * Date and time the subscription starts.
574
+ *
575
+ * The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.
580
576
  */
581
577
  startDate?: Date | null;
582
- /**
583
- * Billing configuration for recurring charges.
584
- * @internal
585
- */
578
+ /** Billing configuration for recurring charges. */
586
579
  billingSettings?: BillingSettings;
587
580
  /**
588
- * Whether the product/service/subscription access period is aligned with the billing period.
581
+ * How the access period of the product, service, or subscription relates to the billing period.
582
+ *
583
+ * Default: `ALIGNED_WITH_BILLING_PERIOD`
589
584
  * @internal
590
585
  */
591
586
  productPeriodAlignment?: ProductPeriodAlignment;
@@ -619,7 +614,9 @@ interface FreeTrialPeriod {
619
614
  }
620
615
  interface BillingSettings {
621
616
  /**
622
- * Day of month (1-28) to anchor recurring billing to. When set, billing recurs on this day each cycle. Does not apply to weekly subscriptions.
617
+ * Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.
618
+ *
619
+ * Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.
623
620
  * @min 1
624
621
  * @max 28
625
622
  */
@@ -813,9 +810,11 @@ interface AdditionalFee {
813
810
  */
814
811
  taxDetails?: TaxDetails;
815
812
  /**
816
- * Number of subscription cycle this fee applies to
817
- * default None - all billing cycle
818
- * @internal
813
+ * Number of billing cycles the fee applies to, starting from the first billing cycle.
814
+ *
815
+ * Used only when the item is a subscription.
816
+ *
817
+ * Default: The fee applies to every billing cycle.
819
818
  * @min 1
820
819
  * @max 999
821
820
  */
@@ -914,7 +913,7 @@ declare enum ChargeType {
914
913
  /** Resolved bundle details. */
915
914
  interface BundleInfo {
916
915
  /**
917
- * The items included in the bundle.
916
+ * The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
918
917
  * @minSize 1
919
918
  * @maxSize 10
920
919
  */
@@ -922,7 +921,7 @@ interface BundleInfo {
922
921
  }
923
922
  /** One item included in a bundle. */
924
923
  interface BundledItem {
925
- /** Catalog and item reference of the bundled item. */
924
+ /** __Required.__ Catalog and item reference of the bundled item. */
926
925
  catalogReference?: CatalogReference;
927
926
  /**
928
927
  * Number of units of this item in a single bundle.
@@ -931,13 +930,13 @@ interface BundledItem {
931
930
  */
932
931
  quantity?: number;
933
932
  /**
934
- * The item's own price for 1 unit outside the bundle, with catalog discounts applied.
933
+ * __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
935
934
  * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
936
935
  */
937
936
  price?: string;
938
- /** Item name. */
937
+ /** __Required.__ Item name. */
939
938
  productName?: ProductName;
940
- /** Item type. */
939
+ /** __Required.__ Item type. Gift cards and bundles aren't allowed. */
941
940
  itemType?: ItemType;
942
941
  /**
943
942
  * The tax group ID associated with this item.
@@ -1,5 +1,5 @@
1
- import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.mjs';
2
- export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.mjs';
1
+ import { p as provideHandlers$1 } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.mjs';
2
+ export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, c as GetCatalogItemsResponse, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.mjs';
3
3
  import { BuildServicePluginDefinition } from '@wix/sdk-types';
4
4
 
5
5
  declare const provideHandlers: BuildServicePluginDefinition<typeof provideHandlers$1> & typeof provideHandlers$1;
@@ -1,5 +1,5 @@
1
- import { ad as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.mjs';
2
- export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-DtIwymPI.mjs';
1
+ import { ad as GetCatalogItemsEnvelope, c as GetCatalogItemsResponse } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.mjs';
2
+ export { O as AdditionalFee, a7 as AllItemsDiscountConfig, a2 as BasicItem, v as BillingSettings, Z as BundleInfo, _ as BundledItem, B as BuyerInfo, b as BuyerInfoIdOneOf, a as CatalogReference, C as CatalogReferenceAndQuantity, a6 as CatalogSPIConfig, Y as ChargeType, l as Color, a9 as Context, x as CyclePriceOverride, y as Description, D as DescriptionLine, i as DescriptionLineDescriptionLineValueOneOf, j as DescriptionLineName, m as DescriptionLineType, h as DescriptionLineValueOneOf, o as Dimensions, q as DimensionsUnit, A as FileType, F as FreeTrialPeriod, G as GetCatalogItemsRequest, r as Group, ab as IdentificationData, ac as IdentificationDataIdOneOf, aa as IdentityType, I as Item, d as ItemData, V as ItemModifier, e as ItemType, f as ItemTypeItemTypeDataOneOf, g as ItemTypePreset, R as ModifierGroup, a3 as NumericPropertyRange, a0 as Paging, a5 as PagingMetadata, E as PaymentOptionType, n as PhysicalProperties, k as PlainTextValue, X as PlatformFee, N as Policy, J as PriceDescription, P as ProductName, w as ProductPeriodAlignment, a4 as PurchaseType, $ as QueryCatalogItemsRequest, a1 as QueryCatalogItemsResponse, S as Scope, z as SecuredMedia, H as ServiceProperties, a8 as SpecificItemsDiscountConfig, u as SubscriptionFrequency, s as SubscriptionOptionInfo, t as SubscriptionSettings, Q as TaxDetails, K as TaxableAddress, L as TaxableAddressTaxableAddressDataOneOf, M as TaxableAddressType, T as Title, U as TranslatableString, W as WeightUnit } from './interfaces-ecommerce-v1-catalog-provider.public-otREpPWh.mjs';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /**
@@ -286,7 +286,6 @@ interface ItemData {
286
286
  taxableAddress?: TaxableAddress;
287
287
  /**
288
288
  * ID of the app managing the inventory.
289
- * @internal
290
289
  * @format GUID
291
290
  */
292
291
  inventoryAppId?: string | null;
@@ -324,6 +323,8 @@ interface ItemData {
324
323
  upsellOptionsAppId?: string | null;
325
324
  /**
326
325
  * Resolved bundle details.
326
+ *
327
+ * Required when `itemType.preset` is `BUNDLE`, and not supported otherwise.
327
328
  * @internal
328
329
  */
329
330
  bundleInfo?: BundleInfo;
@@ -483,15 +484,9 @@ interface PhysicalProperties {
483
484
  sku?: string | null;
484
485
  /** Whether this line item is shippable. */
485
486
  shippable?: boolean;
486
- /**
487
- * Product dimensions (length, width, height of the physical product).
488
- * @internal
489
- */
487
+ /** Product dimensions (length, width, height of the physical product). */
490
488
  productDimensions?: Dimensions;
491
- /**
492
- * Package dimensions (length, width, height of the shipping package).
493
- * @internal
494
- */
489
+ /** Package dimensions (length, width, height of the shipping package). */
495
490
  packageDimensions?: Dimensions;
496
491
  }
497
492
  interface Dimensions {
@@ -575,17 +570,17 @@ interface SubscriptionSettings {
575
570
  */
576
571
  freeTrialPeriod?: FreeTrialPeriod;
577
572
  /**
578
- * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.
579
- * @internal
573
+ * Date and time the subscription starts.
574
+ *
575
+ * The first charge happens when the order is placed. When `freeTrialPeriod` is set, the first charge happens when the free trial ends.
580
576
  */
581
577
  startDate?: Date | null;
582
- /**
583
- * Billing configuration for recurring charges.
584
- * @internal
585
- */
578
+ /** Billing configuration for recurring charges. */
586
579
  billingSettings?: BillingSettings;
587
580
  /**
588
- * Whether the product/service/subscription access period is aligned with the billing period.
581
+ * How the access period of the product, service, or subscription relates to the billing period.
582
+ *
583
+ * Default: `ALIGNED_WITH_BILLING_PERIOD`
589
584
  * @internal
590
585
  */
591
586
  productPeriodAlignment?: ProductPeriodAlignment;
@@ -619,7 +614,9 @@ interface FreeTrialPeriod {
619
614
  }
620
615
  interface BillingSettings {
621
616
  /**
622
- * Day of month (1-28) to anchor recurring billing to. When set, billing recurs on this day each cycle. Does not apply to weekly subscriptions.
617
+ * Day of the month that recurring charges fall on. For example, `15` to charge on the 15th of each month.
618
+ *
619
+ * Used only when the subscription's `frequency` is `MONTH` and `interval` is `1`.
623
620
  * @min 1
624
621
  * @max 28
625
622
  */
@@ -813,9 +810,11 @@ interface AdditionalFee {
813
810
  */
814
811
  taxDetails?: TaxDetails;
815
812
  /**
816
- * Number of subscription cycle this fee applies to
817
- * default None - all billing cycle
818
- * @internal
813
+ * Number of billing cycles the fee applies to, starting from the first billing cycle.
814
+ *
815
+ * Used only when the item is a subscription.
816
+ *
817
+ * Default: The fee applies to every billing cycle.
819
818
  * @min 1
820
819
  * @max 999
821
820
  */
@@ -914,7 +913,7 @@ declare enum ChargeType {
914
913
  /** Resolved bundle details. */
915
914
  interface BundleInfo {
916
915
  /**
917
- * The items included in the bundle.
916
+ * The items included in the bundle. Their `quantity` values must add up to at least 2, and each must have a different `catalogReference`.
918
917
  * @minSize 1
919
918
  * @maxSize 10
920
919
  */
@@ -922,7 +921,7 @@ interface BundleInfo {
922
921
  }
923
922
  /** One item included in a bundle. */
924
923
  interface BundledItem {
925
- /** Catalog and item reference of the bundled item. */
924
+ /** __Required.__ Catalog and item reference of the bundled item. */
926
925
  catalogReference?: CatalogReference;
927
926
  /**
928
927
  * Number of units of this item in a single bundle.
@@ -931,13 +930,13 @@ interface BundledItem {
931
930
  */
932
931
  quantity?: number;
933
932
  /**
934
- * The item's own price for 1 unit outside the bundle, with catalog discounts applied.
933
+ * __Required.__ The item's own price for 1 unit outside the bundle, with catalog discounts applied.
935
934
  * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
936
935
  */
937
936
  price?: string;
938
- /** Item name. */
937
+ /** __Required.__ Item name. */
939
938
  productName?: ProductName;
940
- /** Item type. */
939
+ /** __Required.__ Item type. Gift cards and bundles aren't allowed. */
941
940
  itemType?: ItemType;
942
941
  /**
943
942
  * The tax group ID associated with this item.