{"version":3,"sources":["../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.ts","../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.ts","../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.ts","../../src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient } from '@wix/sdk-types';\nimport {\n  SubscriptionContract,\n  SubscriptionContractCreatedEnvelope,\n  SubscriptionContractDeletedEnvelope,\n  SubscriptionContractNonNullableFields,\n  SubscriptionContractUpdatedEnvelope,\n  SubscriptionContractsQueryBuilder,\n  getSubscriptionContract as universalGetSubscriptionContract,\n  querySubscriptionContracts as universalQuerySubscriptionContracts,\n} from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function getSubscriptionContract(\n  httpClient: HttpClient\n): GetSubscriptionContractSignature {\n  return (subscriptionContractId: string) =>\n    universalGetSubscriptionContract(\n      subscriptionContractId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetSubscriptionContractSignature {\n  /**\n   * Retrieves a SubscriptionContract.\n   * @param - ID of the SubscriptionContract to retrieve.\n   * @returns The requested SubscriptionContract.\n   */\n  (subscriptionContractId: string): Promise<\n    SubscriptionContract & SubscriptionContractNonNullableFields\n  >;\n}\n\nexport function querySubscriptionContracts(\n  httpClient: HttpClient\n): QuerySubscriptionContractsSignature {\n  return () =>\n    universalQuerySubscriptionContracts(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QuerySubscriptionContractsSignature {\n  /**\n   * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].\n   *\n   * Up to 300 SubscriptionContracts can be returned per request.\n   *\n   * To learn how to query SubscriptionContracts, see [API Query Language][2].\n   *\n   * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n   * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n   */\n  (): SubscriptionContractsQueryBuilder;\n}\n\nexport const onSubscriptionContractCreated = EventDefinition(\n  'wix.ecom.subscription_contracts.v1.subscription_contract_created',\n  true,\n  (event: SubscriptionContractCreatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.subscriptionSettings.startDate' },\n            { path: 'entity.lineItems.digitalFile.expirationDate' },\n            {\n              path: 'entity.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n            },\n            { path: 'entity.shippingInfo.logistics.deliverByDate' },\n            { path: 'entity.shippingInfo.logistics.deliveryTimeSlot.from' },\n            { path: 'entity.shippingInfo.logistics.deliveryTimeSlot.to' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'entity.lineItems.image' }],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'entity.lineItems.physicalProperties.weight' }],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            { path: 'entity.billingInfo.address' },\n            {\n              path: 'entity.shippingInfo.logistics.shippingDestination.address',\n            },\n            { path: 'entity.shippingInfo.logistics.pickupDetails.address' },\n            { path: 'entity.recipientInfo.address' },\n          ],\n        },\n      ])\n    )\n)<SubscriptionContractCreatedEnvelope>();\nexport const onSubscriptionContractDeleted = EventDefinition(\n  'wix.ecom.subscription_contracts.v1.subscription_contract_deleted',\n  true,\n  (event: SubscriptionContractDeletedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'undefined.createdDate' },\n            { path: 'undefined.updatedDate' },\n            { path: 'undefined.subscriptionSettings.startDate' },\n            { path: 'undefined.lineItems.digitalFile.expirationDate' },\n            {\n              path: 'undefined.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n            },\n            { path: 'undefined.shippingInfo.logistics.deliverByDate' },\n            { path: 'undefined.shippingInfo.logistics.deliveryTimeSlot.from' },\n            { path: 'undefined.shippingInfo.logistics.deliveryTimeSlot.to' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'undefined.lineItems.image' }],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'undefined.lineItems.physicalProperties.weight' }],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            { path: 'undefined.billingInfo.address' },\n            {\n              path: 'undefined.shippingInfo.logistics.shippingDestination.address',\n            },\n            { path: 'undefined.shippingInfo.logistics.pickupDetails.address' },\n            { path: 'undefined.recipientInfo.address' },\n          ],\n        },\n      ])\n    )\n)<SubscriptionContractDeletedEnvelope>();\nexport const onSubscriptionContractUpdated = EventDefinition(\n  'wix.ecom.subscription_contracts.v1.subscription_contract_updated',\n  true,\n  (event: SubscriptionContractUpdatedEnvelope) =>\n    renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(event, [\n        {\n          transformFn: transformRESTTimestampToSDKTimestamp,\n          paths: [\n            { path: 'entity.createdDate' },\n            { path: 'entity.updatedDate' },\n            { path: 'entity.subscriptionSettings.startDate' },\n            { path: 'entity.lineItems.digitalFile.expirationDate' },\n            {\n              path: 'entity.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n            },\n            { path: 'entity.shippingInfo.logistics.deliverByDate' },\n            { path: 'entity.shippingInfo.logistics.deliveryTimeSlot.from' },\n            { path: 'entity.shippingInfo.logistics.deliveryTimeSlot.to' },\n            { path: 'metadata.eventTime' },\n          ],\n        },\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'entity.lineItems.image' }],\n        },\n        {\n          transformFn: transformRESTFloatToSDKFloat,\n          paths: [{ path: 'entity.lineItems.physicalProperties.weight' }],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            { path: 'entity.billingInfo.address' },\n            {\n              path: 'entity.shippingInfo.logistics.shippingDestination.address',\n            },\n            { path: 'entity.shippingInfo.logistics.pickupDetails.address' },\n            { path: 'entity.recipientInfo.address' },\n          ],\n        },\n      ])\n    )\n)<SubscriptionContractUpdatedEnvelope>();\n\nexport {\n  ActionEvent,\n  AdditionalFee,\n  Address,\n  AddressLocation,\n  AddressWithContact,\n  AppliedDiscount,\n  AppliedDiscountDiscountSourceOneOf,\n  BaseEventMetadata,\n  BuyerInfo,\n  BuyerInfoIdOneOf,\n  CatalogReference,\n  ChannelInfo,\n  ChannelType,\n  Color,\n  Coupon,\n  CreateSubscriptionContractRequest,\n  CreateSubscriptionContractResponse,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  CustomField,\n  DeliveryLogistics,\n  DeliveryLogisticsAddressOneOf,\n  DeliveryTimeSlot,\n  DescriptionLine,\n  DescriptionLineDescriptionLineValueOneOf,\n  DescriptionLineName,\n  DescriptionLineType,\n  DescriptionLineValueOneOf,\n  DigitalFile,\n  DiscountReason,\n  DiscountRule,\n  DiscountRuleName,\n  DiscountType,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  Empty,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  EventMetadata,\n  ExtendedFields,\n  FocalPoint,\n  FreeTrialPeriod,\n  FullAddressContactDetails,\n  GetSubscriptionContractRequest,\n  GetSubscriptionContractResponse,\n  GetSubscriptionContractResponseNonNullableFields,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  ItemTaxFullDetails,\n  ItemType,\n  ItemTypeItemType,\n  ItemTypeItemTypeDataOneOf,\n  JurisdictionType,\n  LineItemDiscount,\n  LineItemTaxBreakdown,\n  LineItemTaxInfo,\n  Location,\n  LocationAndQuantity,\n  MerchantDiscount,\n  MerchantDiscountMerchantDiscountReasonOneOf,\n  MessageEnvelope,\n  OrderLineItem,\n  OrderTaxBreakdown,\n  OrderTaxInfo,\n  PaymentOptionType,\n  PhysicalProperties,\n  PickupAddress,\n  PickupDetails,\n  PickupMethod,\n  PlainTextValue,\n  Price,\n  PriceDescription,\n  PriceSummary,\n  ProductName,\n  QuerySubscriptionContractsRequest,\n  QuerySubscriptionContractsResponse,\n  QuerySubscriptionContractsResponseNonNullableFields,\n  RestoreInfo,\n  ShippingInformation,\n  ShippingPrice,\n  ShippingRegion,\n  SortOrder,\n  Sorting,\n  StreetAddress,\n  SubscriptionContract,\n  SubscriptionContractCreatedEnvelope,\n  SubscriptionContractDeletedEnvelope,\n  SubscriptionContractNonNullableFields,\n  SubscriptionContractUpdatedEnvelope,\n  SubscriptionContractsQueryBuilder,\n  SubscriptionContractsQueryResult,\n  SubscriptionFrequency,\n  SubscriptionInfo,\n  SubscriptionSettings,\n  TaxableAddress,\n  TaxableAddressTaxableAddressDataOneOf,\n  TaxableAddressType,\n  UpdateSubscriptionContractRequest,\n  UpdateSubscriptionContractResponse,\n  V1FreeTrialPeriod,\n  V1SubscriptionSettings,\n  V2SubscriptionFrequency,\n  VatId,\n  VatType,\n  WebhookIdentityType,\n  WeightUnit,\n} from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse } from '@wix/sdk-types';\nimport * as ambassadorWixEcomSubscriptionContractsV1SubscriptionContract from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.js';\n// @ts-ignore\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/**\n * A SubscriptionContract is a ...\n * You can ...\n * Read more about SubscriptionContracts\n * in this [article](<LINK_TO_KB_ARTICLE>).\n */\nexport interface SubscriptionContract {\n  /**\n   * SubscriptionContract ID.\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Revision number, which increments by 1 each time the SubscriptionContract is updated.\n   * To prevent conflicting changes, the current revision must be passed when updating the SubscriptionContract.\n   *\n   * Ignored when creating a SubscriptionOrderContract.\n   * @readonly\n   */\n  revision?: string | null;\n  /**\n   * Date and time the subscription contract was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the subscription contract was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /** Subscription option description. For example, `\"1kg of selected coffee, once a month\"`. */\n  description?: string | null;\n  /** Subscription detailed information. */\n  subscriptionSettings?: V1SubscriptionSettings;\n  /**\n   * Order line items.\n   * @readonly\n   */\n  lineItems?: OrderLineItem[];\n  /** Buyer information. */\n  buyerInfo?: BuyerInfo;\n  /**\n   * Language for communication with the buyer. Defaults to the site language.\n   * For a site that supports multiple languages, this is the language the buyer selected.\n   */\n  buyerLanguage?: string | null;\n  /** Weight measurement unit - defaults to site's weight unit. */\n  weightUnit?: WeightUnit;\n  /** Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format. */\n  currency?: string | null;\n  /**\n   * Whether tax is included in line item prices.\n   *\n   * Default: `false`\n   */\n  taxIncludedInPrices?: boolean;\n  /**\n   * Order price summary.\n   * @readonly\n   */\n  priceSummary?: PriceSummary;\n  /** Billing address and contact details. */\n  billingInfo?: AddressWithContact;\n  /** Shipping info and selected shipping option details. */\n  shippingInfo?: ShippingInformation;\n  /** Applied discounts. */\n  appliedDiscounts?: AppliedDiscount[];\n  /** Information about the sales channel that submitted this order. */\n  channelInfo?: ChannelInfo;\n  /** Custom fields. */\n  customFields?: CustomField[];\n  /**\n   * Order recipient address and contact details.\n   *\n   * This field may differ from the address in `shippingInfo.logistics` when:\n   * + The chosen shipping option is pickup point or store pickup.\n   * + No shipping option is selected.\n   */\n  recipientInfo?: AddressWithContact;\n  /**\n   * Custom field data for the subscription contract object.\n   *\n   * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.\n   */\n  extendedFields?: ExtendedFields;\n  /** Subscription option title. For example, `\"Monthly coffee Subscription\"`. */\n  title?: string | null;\n  /** Additional fees applied to subscription contract. */\n  additionalFees?: AdditionalFee[];\n}\n\nexport interface V1SubscriptionSettings {\n  /** Frequency of recurring payment. */\n  frequency?: SubscriptionFrequency;\n  /** Interval of recurring payment. */\n  interval?: number | null;\n  /** Whether subscription is renewed automatically at the end of each period. */\n  autoRenewal?: boolean;\n  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */\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 None => no free trial\n   * @internal\n   */\n  freeTrialPeriod?: V1FreeTrialPeriod;\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\nexport enum SubscriptionFrequency {\n  UNDEFINED = 'UNDEFINED',\n  DAY = 'DAY',\n  WEEK = 'WEEK',\n  MONTH = 'MONTH',\n  YEAR = 'YEAR',\n}\n\nexport interface V1FreeTrialPeriod {\n  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */\n  frequency?: SubscriptionFrequency;\n  /** interval of period */\n  interval?: number;\n}\n\nexport interface OrderLineItem {\n  /** Line item ID. */\n  _id?: string;\n  /**\n   * Item name.\n   * + Stores - `product.name`\n   * + Bookings - `service.info.name`\n   * + Events - `ticket.name`\n   */\n  productName?: ProductName;\n  /**\n   * References to the line item's origin catalog.\n   * This field may be empty in the case of a custom line item.\n   */\n  catalogReference?: CatalogReference;\n  /** Line item quantity. */\n  quantity?: number;\n  /**\n   * Total discount for this line item's entire quantity.\n   * @readonly\n   */\n  totalDiscount?: Price;\n  /** Line item description lines. Used for display purposes for the cart, checkout and order. */\n  descriptionLines?: DescriptionLine[];\n  /** Line item image. */\n  image?: string;\n  /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */\n  physicalProperties?: PhysicalProperties;\n  /** Item type. Either a preset type or custom. */\n  itemType?: ItemType;\n  /**\n   * Fulfiller ID. Field is empty when the line item is self-fulfilled.\n   * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).\n   */\n  fulfillerId?: string | null;\n  /** Number of items that were refunded. */\n  refundQuantity?: number | null;\n  /** Number of items restocked. */\n  restockQuantity?: number | null;\n  /** Line item price after line item discounts for display purposes. */\n  price?: Price;\n  /**\n   * Line item price before line item discounts for display purposes. Defaults to `price` when not provided.\n   * @readonly\n   */\n  priceBeforeDiscounts?: Price;\n  /**\n   * Total price after discounts, and before tax.\n   * @readonly\n   */\n  totalPriceBeforeTax?: Price;\n  /**\n   * Total price after all discounts and tax.\n   * @readonly\n   */\n  totalPriceAfterTax?: Price;\n  /**\n   * Type of selected payment option for current item.\n   *\n   * Default: `FULL_PAYMENT_ONLINE`\n   */\n  paymentOption?: PaymentOptionType;\n  /**\n   * Deprecated. Use `taxInfo` instead.\n   * This field will be removed on September 30, 2024.\n   * Tax details for this line item.\n   * @deprecated Deprecated. Use `taxInfo` instead.\n   * This field will be removed on September 30, 2024.\n   * Tax details for this line item.\n   * @replacedBy tax_info\n   * @targetRemovalDate 2024-09-30\n   */\n  taxDetails?: ItemTaxFullDetails;\n  /** Represents all the relevant tax details for a specific line item. */\n  taxInfo?: LineItemTaxInfo;\n  /** Digital file identifier, relevant only for items with type DIGITAL. */\n  digitalFile?: DigitalFile;\n  /** Subscription info. */\n  subscriptionInfo?: SubscriptionInfo;\n  /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n  priceDescription?: PriceDescription;\n  /**\n   * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n   * @readonly\n   */\n  depositAmount?: Price;\n  /**\n   * Address used for tax calculation.\n   * @internal\n   */\n  taxableAddress?: TaxableAddress;\n  /**\n   * ID of the app managing the inventory.\n   * @internal\n   */\n  inventoryAppId?: string | null;\n  /**\n   * Custom extended fields for the line item object.\n   *\n   * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n   */\n  extendedFields?: ExtendedFields;\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   */\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   */\n  translated?: string | null;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n  /** ID of the item within the catalog it belongs to. */\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   */\n  appId?: string;\n  /**\n   * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n   *\n   * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n   */\n  options?: Record<string, any> | null;\n}\n\nexport interface Price {\n  /** Amount. */\n  amount?: string;\n  /**\n   * Amount formatted with currency symbol.\n   * @readonly\n   */\n  formattedAmount?: string;\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  /** Description line name. */\n  name?: DescriptionLineName;\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\nexport interface DescriptionLineName {\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  original?: string;\n  /**\n   * Description line name translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface PlainTextValue {\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  original?: string;\n  /**\n   * Description line plain text value translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface Color {\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  original?: string;\n  /**\n   * Description line color name translated into the buyer's language.\n   *\n   * Default: Same as `original`.\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 FocalPoint {\n  /** X-coordinate of the focal point. */\n  x?: number;\n  /** Y-coordinate of the focal point. */\n  y?: number;\n  /** crop by height */\n  height?: number | null;\n  /** crop by width */\n  width?: number | null;\n}\n\nexport interface PhysicalProperties {\n  /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n  weight?: number | null;\n  /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */\n  sku?: string | null;\n  /** Whether this line item is shippable. */\n  shippable?: boolean;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n  /** Preset item type. */\n  preset?: ItemTypeItemType;\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?: ItemTypeItemType;\n  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n  custom?: string;\n}\n\nexport enum ItemTypeItemType {\n  UNRECOGNISED = 'UNRECOGNISED',\n  PHYSICAL = 'PHYSICAL',\n  DIGITAL = 'DIGITAL',\n  GIFT_CARD = 'GIFT_CARD',\n  SERVICE = 'SERVICE',\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. When selected, `price` is `0`. */\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\nexport interface ItemTaxFullDetails {\n  /** Taxable amount of this line item. */\n  taxableAmount?: Price;\n  /** Tax rate percentage, as a decimal numeral between 0 and 1. For example, `\"0.13\"`. */\n  taxRate?: string;\n  /** The calculated tax, based on the `taxableAmount` and `taxRate`. */\n  totalTax?: Price;\n}\n\nexport interface LineItemTaxInfo {\n  /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n  taxAmount?: Price;\n  /** Amount for which tax is calculated. */\n  taxableAmount?: Price;\n  /** Tax rate %, as a decimal point. */\n  taxRate?: string | null;\n  /**\n   * Tax group ID.\n   * Learn more about [Tax Groups](https://dev.wix.com/docs/rest/business-management/payments/tax/tax-groups/introduction).\n   */\n  taxGroupId?: string | null;\n  /** Indicates whether the price already includes tax. */\n  taxIncludedInPrice?: boolean;\n  /** Tax information for a line item. */\n  taxBreakdown?: LineItemTaxBreakdown[];\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface LineItemTaxBreakdown {\n  /** Jurisdiction that taxes were calculated for. For example, \"New York\", or \"Quebec\". */\n  jurisdiction?: string | null;\n  /** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000. */\n  rate?: string | null;\n  /** Amount of tax calculated for this line item. */\n  taxAmount?: Price;\n  /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc. */\n  taxType?: string | null;\n  /**\n   * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n   * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n   */\n  taxName?: string | null;\n  /** Type of jurisdiction that taxes were calculated for. */\n  jurisdictionType?: JurisdictionType;\n  /** Non-taxable amount of the line item price. */\n  nonTaxableAmount?: Price;\n  /** Taxable amount of the line item price. */\n  taxableAmount?: Price;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n  UNDEFINED = 'UNDEFINED',\n  COUNTRY = 'COUNTRY',\n  STATE = 'STATE',\n  COUNTY = 'COUNTY',\n  CITY = 'CITY',\n  SPECIAL = 'SPECIAL',\n}\n\nexport interface DigitalFile {\n  /** ID of the secure file in media. */\n  fileId?: string;\n  /** Link will exist after the digital links have been generated on the order. */\n  link?: string | null;\n  /**\n   * Link expiration time and date.\n   * @readonly\n   */\n  expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n  /** Subscription ID. */\n  _id?: string | null;\n  /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */\n  cycleNumber?: number;\n  /** Subscription option title. For example, `\"Monthly coffee Subscription\"`. */\n  subscriptionOptionTitle?: string;\n  /** Subscription option description. For example, `\"1kg of selected coffee, once a month\"`. */\n  subscriptionOptionDescription?: string | null;\n  /** Subscription detailed information. */\n  subscriptionSettings?: SubscriptionSettings;\n  /**\n   * Description of the charges that will be applied for subscription.\n   * @internal\n   */\n  chargesDescription?: string | null;\n}\n\nexport interface SubscriptionSettings {\n  /** Frequency of recurring payment. */\n  frequency?: V2SubscriptionFrequency;\n  /** Interval of recurring payment. */\n  interval?: number | null;\n  /** Whether subscription is renewed automatically at the end of each period. */\n  autoRenewal?: boolean;\n  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */\n  billingCycles?: number | null;\n  /**\n   * Whether to allow the customer to cancel the subscription.\n   * @internal\n   */\n  enableCustomerCancellation?: boolean;\n  /**\n   * Period until first cycle starts. If None => no free trial\n   * @internal\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\n/** Frequency unit of recurring payment */\nexport enum V2SubscriptionFrequency {\n  UNDEFINED = 'UNDEFINED',\n  DAY = 'DAY',\n  WEEK = 'WEEK',\n  MONTH = 'MONTH',\n  YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */\n  frequency?: V2SubscriptionFrequency;\n  /** interval of period */\n  interval?: number;\n}\n\nexport interface PriceDescription {\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  original?: string;\n  /**\n   * Price description translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface LocationAndQuantity {\n  /** Location id in the associated owner app. */\n  _id?: string;\n  /**\n   * Location owner app, if not provided then the site business info locations will be used.\n   * @deprecated Location owner app, if not provided then the site business info locations will be used.\n   * @targetRemovalDate 2025-03-01\n   */\n  appId?: string | null;\n  /** Quantity for specific location. */\n  quantity?: number;\n  /**\n   * Location name.\n   * @internal\n   * @readonly\n   */\n  name?: 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  UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n  BUSINESS = 'BUSINESS',\n  BILLING = 'BILLING',\n  SHIPPING = 'SHIPPING',\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\n/** Buyer Info */\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n  /** Visitor ID (if site visitor is not a member). */\n  visitorId?: string;\n  /** Member ID (if site visitor is a site member). */\n  memberId?: string;\n  /** Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction). */\n  contactId?: string | null;\n  /** Buyer email address. */\n  email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n  /** Visitor ID (if site visitor is not a member). */\n  visitorId?: string;\n  /** Member ID (if site visitor is a site member). */\n  memberId?: string;\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\nexport interface PriceSummary {\n  /** Subtotal of all the line items, before discounts and before tax. */\n  subtotal?: Price;\n  /** Total shipping price, before discounts and before tax. */\n  shipping?: Price;\n  /** Total tax on this order. */\n  tax?: Price;\n  /** Total calculated discount value. */\n  discount?: Price;\n  /** Order’s total price after discounts and tax. */\n  total?: Price;\n  /** Total price of additional fees before tax. */\n  totalAdditionalFees?: Price;\n}\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n  /** Address. */\n  address?: Address;\n  /** Contact details. */\n  contactDetails?: FullAddressContactDetails;\n}\n\n/** Physical address */\nexport interface Address {\n  /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */\n  country?: string | null;\n  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Postal or zip code. */\n  postalCode?: string | null;\n  /** Street address. */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street name and number). */\n  addressLine1?: string | null;\n  /** Free text providing more detailed address info. Usually contains apt, suite, floor. */\n  addressLine2?: string | null;\n  /**\n   * Country's full name.\n   * @readonly\n   */\n  countryFullname?: string | null;\n  /**\n   * Subdivision full-name.\n   * @readonly\n   */\n  subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n  /** Street number. */\n  number?: string;\n  /** Street name. */\n  name?: string;\n}\n\nexport interface AddressLocation {\n  /** Address latitude. */\n  latitude?: number | null;\n  /** Address longitude. */\n  longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n  /** First name. */\n  firstName?: string | null;\n  /** Last name. */\n  lastName?: string | null;\n  /** Phone number. */\n  phone?: string | null;\n  /** Company name. */\n  company?: string | null;\n  /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n  vatId?: VatId;\n}\n\nexport interface VatId {\n  /** Customer's tax ID. */\n  _id?: string;\n  /**\n   * Tax type.\n   *\n   * Supported values:\n   * + `CPF`: for individual tax payers\n   * + `CNPJ`: for corporations\n   */\n  type?: VatType;\n}\n\n/** tax info types */\nexport enum VatType {\n  UNSPECIFIED = 'UNSPECIFIED',\n  /** CPF - for individual tax payers. */\n  CPF = 'CPF',\n  /** CNPJ - for corporations */\n  CNPJ = 'CNPJ',\n}\n\nexport interface ShippingInformation {\n  /** App Def Id of external provider which was a source of shipping info */\n  carrierId?: string | null;\n  /** Unique code (or ID) of selected shipping option. For example, `\"usps_std_overnight\"`. */\n  code?: string | null;\n  /**\n   * Shipping option title.\n   * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"` or `\"First-Class Package International\"`.\n   */\n  title?: string;\n  /** Shipping logistics. */\n  logistics?: DeliveryLogistics;\n  /** Shipping costs. */\n  cost?: ShippingPrice;\n  /** Shipping region. */\n  region?: ShippingRegion;\n}\n\nexport interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {\n  /** Shipping address and contact details. */\n  shippingDestination?: AddressWithContact;\n  /** Pickup details. */\n  pickupDetails?: PickupDetails;\n  /** Expected delivery time in free text. For example, `\"3-5 business days\"`. */\n  deliveryTime?: string | null;\n  /** Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`. */\n  instructions?: string | null;\n  /**\n   * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n   * @deprecated\n   */\n  deliverByDate?: Date | null;\n  /** Expected delivery time. */\n  deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\n/** @oneof */\nexport interface DeliveryLogisticsAddressOneOf {\n  /** Shipping address and contact details. */\n  shippingDestination?: AddressWithContact;\n  /** Pickup details. */\n  pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n  /** Pickup address. */\n  address?: PickupAddress;\n  /** Pickup method */\n  pickupMethod?: PickupMethod;\n}\n\n/** Physical address */\nexport interface PickupAddress {\n  /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */\n  country?: string | null;\n  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Postal or zip code. */\n  postalCode?: string | null;\n  /** Street address object, with number, name, and apartment number in separate fields. */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street name and number). */\n  addressLine1?: string | null;\n  /** Free text providing more detailed address info. Usually contains apt, suite, floor. */\n  addressLine2?: string | null;\n  /**\n   * Country's full name.\n   * @readonly\n   */\n  countryFullname?: string | null;\n  /**\n   * Subdivision full-name.\n   * @readonly\n   */\n  subdivisionFullname?: string | null;\n}\n\nexport enum PickupMethod {\n  UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n  STORE_PICKUP = 'STORE_PICKUP',\n  PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface DeliveryTimeSlot {\n  /** Delivery slot starting time. */\n  from?: Date | null;\n  /** Delivery slot ending time. */\n  to?: Date | null;\n}\n\nexport interface ShippingPrice {\n  /** Shipping price for display purposes. */\n  price?: Price;\n  /**\n   * Total price of shipping after discounts (when relevant), and before tax.\n   * @readonly\n   */\n  totalPriceBeforeTax?: Price;\n  /**\n   * Shipping price after all discounts (if any exist), and after tax.\n   * @readonly\n   */\n  totalPriceAfterTax?: Price;\n  /** Tax details. */\n  taxDetails?: ItemTaxFullDetails;\n  /**\n   * Shipping discount before tax.\n   * @readonly\n   */\n  discount?: Price;\n}\n\nexport interface ShippingRegion {\n  /** Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`. */\n  name?: string | null;\n}\n\nexport interface OrderTaxInfo {\n  /** Calculated tax, added from line items. */\n  totalTax?: Price;\n  /** The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate. */\n  taxBreakdown?: OrderTaxBreakdown[];\n  /**\n   * Whether the order is exempt from tax calculations.\n   *\n   * Default: `false`\n   * @readonly\n   */\n  taxExempt?: boolean | null;\n}\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface OrderTaxBreakdown {\n  /** The name of the tax against which this tax amount was calculated. */\n  taxName?: string;\n  /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */\n  taxType?: string;\n  /** The name of the jurisdiction in which this tax detail applies. */\n  jurisdiction?: string;\n  /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n  jurisdictionType?: JurisdictionType;\n  /** The rate at which this tax detail was calculated. */\n  rate?: string;\n  /** The sum of all the tax from line items that calculated by the tax identifiers. */\n  aggregatedTaxAmount?: Price;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n  /** Applied coupon info. */\n  coupon?: Coupon;\n  /** Merchant discount. */\n  merchantDiscount?: MerchantDiscount;\n  /** Automatic Discount */\n  discountRule?: DiscountRule;\n  /**\n   * Discount type.\n   * * `\"GLOBAL\"` - discount applies to entire order.\n   * * `\"SPECIFIC-ITEMS\"` - discount applies to specific items.\n   * * `\"SHIPPING\"` - discount applies to shipping. For example, free shipping.\n   */\n  discountType?: DiscountType;\n  /**\n   * IDs of line items discount applies to.\n   * Deprecated. Use `line_item_discounts` instead.\n   * @deprecated IDs of line items discount applies to.\n   * Deprecated. Use `line_item_discounts` instead.\n   * @replacedBy line_item_discounts\n   * @targetRemovalDate 2024-10-30\n   */\n  lineItemIds?: string[];\n  /** Discount id. */\n  _id?: string | null;\n  /**\n   * Number of subscription billing cycles the discount applies to.\n   * If None and discount is linked to subscription line item, it applies to all cycles.\n   * @internal\n   */\n  subscriptionCycles?: number | null;\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n  /** Applied coupon info. */\n  coupon?: Coupon;\n  /** Merchant discount. */\n  merchantDiscount?: MerchantDiscount;\n  /** Automatic Discount */\n  discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n  GLOBAL = 'GLOBAL',\n  SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n  SHIPPING = 'SHIPPING',\n}\n\n/** Coupon */\nexport interface Coupon {\n  /** Coupon ID. */\n  _id?: string;\n  /** Coupon code. */\n  code?: string;\n  /** Coupon name. */\n  name?: string;\n  /** Coupon value. */\n  amount?: Price;\n}\n\nexport interface MerchantDiscount\n  extends MerchantDiscountMerchantDiscountReasonOneOf {\n  /**\n   * Pre-defined discount reason (optional).\n   * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n   */\n  discountReason?: DiscountReason;\n  /** Discount description as free text (optional). */\n  description?: string | null;\n  /** Discount amount. */\n  amount?: Price;\n  /**\n   * Discount percentage.\n   * @internal\n   */\n  percentage?: string | null;\n}\n\n/** @oneof */\nexport interface MerchantDiscountMerchantDiscountReasonOneOf {\n  /**\n   * Pre-defined discount reason (optional).\n   * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n   */\n  discountReason?: DiscountReason;\n  /** Discount description as free text (optional). */\n  description?: string | null;\n}\n\nexport enum DiscountReason {\n  UNSPECIFIED = 'UNSPECIFIED',\n  EXCHANGED_ITEMS = 'EXCHANGED_ITEMS',\n}\n\nexport interface DiscountRule {\n  /** Discount rule ID */\n  _id?: string;\n  /** Discount rule name */\n  name?: DiscountRuleName;\n  /** Discount value. */\n  amount?: Price;\n}\n\nexport interface DiscountRuleName {\n  /** Original discount rule name (in site's default language). */\n  original?: string;\n  /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */\n  translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n  /** ID of line item the discount applies to. */\n  _id?: string;\n  /** Total discount for this line item. */\n  totalDiscount?: Price;\n}\n\nexport interface ChannelInfo {\n  /** Sales channel that submitted the order. */\n  type?: ChannelType;\n  /** Reference to an order ID from an external system. */\n  externalOrderId?: string | null;\n  /** URL to the order in the external system. */\n  externalOrderUrl?: string | null;\n}\n\nexport enum ChannelType {\n  /** Unspecified sales channel. This value is not supported. */\n  UNSPECIFIED = 'UNSPECIFIED',\n  /** A web client. */\n  WEB = 'WEB',\n  /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n  POS = 'POS',\n  /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n  EBAY = 'EBAY',\n  /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n  AMAZON = 'AMAZON',\n  /** Other sales platform. */\n  OTHER_PLATFORM = 'OTHER_PLATFORM',\n  /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n  WIX_APP_STORE = 'WIX_APP_STORE',\n  /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n  WIX_INVOICES = 'WIX_INVOICES',\n  /** Wix merchant backoffice. */\n  BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n  /** Wish sales channel. */\n  WISH = 'WISH',\n  /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n  CLASS_PASS = 'CLASS_PASS',\n  /** Global-E sales channel. */\n  GLOBAL_E = 'GLOBAL_E',\n  /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n  FACEBOOK = 'FACEBOOK',\n  /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n  ETSY = 'ETSY',\n  /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n  TIKTOK = 'TIKTOK',\n  /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n  FAIRE_COM = 'FAIRE_COM',\n}\n\nexport interface CustomField {\n  /** Custom field value. */\n  value?: any;\n  /** Custom field title. */\n  title?: string;\n  /** Translated custom field title. */\n  translatedTitle?: string | null;\n}\n\nexport interface AdditionalFee {\n  /** Additional fee's unique code for future processing. */\n  code?: string | null;\n  /** Name of additional fee. */\n  name?: string;\n  /** Additional fee's price. */\n  price?: Price;\n  /** Tax details. */\n  taxDetails?: ItemTaxFullDetails;\n  /** SPI implementer's `appId`. */\n  providerAppId?: string | null;\n  /** Additional fee's price before tax. */\n  priceBeforeTax?: Price;\n  /** Additional fee's price after tax. */\n  priceAfterTax?: Price;\n  /** Additional fee's id. */\n  _id?: string;\n  /**\n   * Optional - Line items associated with this additional fee.\n   * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n   */\n  lineItemIds?: string[];\n  /**\n   * Number of subscription billing cycles the additional fee applies to.\n   * If None and additional fee is linked to subscription line item, it applies to all cycles.\n   * @internal\n   */\n  subscriptionCycles?: number | null;\n}\n\nexport interface Location {\n  /**\n   * Location ID.\n   * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n   */\n  _id?: string;\n  /**\n   * Location name.\n   * @readonly\n   */\n  name?: string;\n}\n\nexport interface CreateSubscriptionContractRequest {\n  /** SubscriptionContract to be created. */\n  subscriptionContract?: SubscriptionContract;\n}\n\nexport interface CreateSubscriptionContractResponse {\n  /** The created SubscriptionContract. */\n  subscriptionContract?: SubscriptionContract;\n}\n\nexport interface GetSubscriptionContractRequest {\n  /** ID of the SubscriptionContract to retrieve. */\n  subscriptionContractId: string;\n}\n\nexport interface GetSubscriptionContractResponse {\n  /** The requested SubscriptionContract. */\n  subscriptionContract?: SubscriptionContract;\n}\n\nexport interface UpdateSubscriptionContractRequest {\n  /** SubscriptionContract to be updated, may be partial. */\n  subscriptionContract?: SubscriptionContract;\n}\n\nexport interface UpdateSubscriptionContractResponse {\n  /** Updated SubscriptionContract. */\n  subscriptionContract?: SubscriptionContract;\n}\n\nexport interface QuerySubscriptionContractsRequest {\n  /** WQL expression. */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object in the following format:\n   * `\"filter\" : {\n   * \"fieldName1\": \"value1\",\n   * \"fieldName2\":{\"$operator\":\"value2\"}\n   * }`\n   * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n   * Learn more about the [filter format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object in the following format:\n   * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n   * Learn more about the [sort format](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /** Name of the field to sort by. */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrder;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\nexport interface CursorPaging {\n  /** Maximum number of items to return in the results. */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   */\n  cursor?: string | null;\n}\n\nexport interface QuerySubscriptionContractsResponse {\n  /** List of SubscriptionContracts. */\n  subscriptionContracts?: SubscriptionContract[];\n  /** Paging metadata */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /** Cursor string pointing to the next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to the previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /**\n   * Unique event ID.\n   * Allows clients to ignore duplicate webhooks.\n   */\n  _id?: string;\n  /**\n   * Assumes actions are also always typed to an entity_type\n   * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n   */\n  entityFqdn?: string;\n  /**\n   * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n   * This is although the created/updated/deleted notion is duplication of the oneof types\n   * Example: created/updated/deleted/started/completed/email_opened\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number defining the order of updates to the underlying entity.\n   * For example, given that some entity was updated at 16:00 and than again at 16:01,\n   * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n   * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n   * To do so, you will need to persist this number on your end, and compare the sequence number from the\n   * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n  /** App instance ID. */\n  instanceId?: string | null;\n  /** Event type. */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\ninterface V1FreeTrialPeriodNonNullableFields {\n  frequency: SubscriptionFrequency;\n  interval: number;\n}\n\ninterface V1SubscriptionSettingsNonNullableFields {\n  frequency: SubscriptionFrequency;\n  autoRenewal: boolean;\n  enableCustomerCancellation: boolean;\n  /** @internal */\n  freeTrialPeriod?: V1FreeTrialPeriodNonNullableFields;\n}\n\ninterface ProductNameNonNullableFields {\n  original: string;\n}\n\ninterface CatalogReferenceNonNullableFields {\n  catalogItemId: string;\n  appId: string;\n}\n\ninterface PriceNonNullableFields {\n  amount: string;\n  formattedAmount: string;\n}\n\ninterface PlainTextValueNonNullableFields {\n  original: string;\n}\n\ninterface ColorNonNullableFields {\n  original: string;\n}\n\ninterface DescriptionLineNameNonNullableFields {\n  original: string;\n}\n\ninterface DescriptionLineNonNullableFields {\n  plainText?: PlainTextValueNonNullableFields;\n  colorInfo?: ColorNonNullableFields;\n  plainTextValue?: PlainTextValueNonNullableFields;\n  color: string;\n  name?: DescriptionLineNameNonNullableFields;\n  lineType: DescriptionLineType;\n}\n\ninterface PhysicalPropertiesNonNullableFields {\n  shippable: boolean;\n}\n\ninterface ItemTypeNonNullableFields {\n  preset: ItemTypeItemType;\n  custom: string;\n}\n\ninterface ItemTaxFullDetailsNonNullableFields {\n  taxableAmount?: PriceNonNullableFields;\n  taxRate: string;\n  totalTax?: PriceNonNullableFields;\n}\n\ninterface LineItemTaxBreakdownNonNullableFields {\n  taxAmount?: PriceNonNullableFields;\n  jurisdictionType: JurisdictionType;\n  nonTaxableAmount?: PriceNonNullableFields;\n  taxableAmount?: PriceNonNullableFields;\n}\n\ninterface LineItemTaxInfoNonNullableFields {\n  taxAmount?: PriceNonNullableFields;\n  taxableAmount?: PriceNonNullableFields;\n  taxIncludedInPrice: boolean;\n  taxBreakdown: LineItemTaxBreakdownNonNullableFields[];\n}\n\ninterface DigitalFileNonNullableFields {\n  fileId: string;\n}\n\ninterface FreeTrialPeriodNonNullableFields {\n  frequency: V2SubscriptionFrequency;\n  interval: number;\n}\n\ninterface SubscriptionSettingsNonNullableFields {\n  frequency: V2SubscriptionFrequency;\n  autoRenewal: boolean;\n  /** @internal */\n  enableCustomerCancellation: boolean;\n  /** @internal */\n  freeTrialPeriod?: FreeTrialPeriodNonNullableFields;\n}\n\ninterface SubscriptionInfoNonNullableFields {\n  cycleNumber: number;\n  subscriptionOptionTitle: string;\n  subscriptionSettings?: SubscriptionSettingsNonNullableFields;\n}\n\ninterface PriceDescriptionNonNullableFields {\n  original: string;\n}\n\ninterface LocationAndQuantityNonNullableFields {\n  _id: string;\n  quantity: number;\n}\n\ninterface TaxableAddressNonNullableFields {\n  addressType: TaxableAddressType;\n}\n\ninterface OrderLineItemNonNullableFields {\n  _id: string;\n  productName?: ProductNameNonNullableFields;\n  catalogReference?: CatalogReferenceNonNullableFields;\n  quantity: number;\n  totalDiscount?: PriceNonNullableFields;\n  descriptionLines: DescriptionLineNonNullableFields[];\n  image: string;\n  physicalProperties?: PhysicalPropertiesNonNullableFields;\n  itemType?: ItemTypeNonNullableFields;\n  price?: PriceNonNullableFields;\n  priceBeforeDiscounts?: PriceNonNullableFields;\n  totalPriceBeforeTax?: PriceNonNullableFields;\n  totalPriceAfterTax?: PriceNonNullableFields;\n  paymentOption: PaymentOptionType;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  taxInfo?: LineItemTaxInfoNonNullableFields;\n  digitalFile?: DigitalFileNonNullableFields;\n  subscriptionInfo?: SubscriptionInfoNonNullableFields;\n  priceDescription?: PriceDescriptionNonNullableFields;\n  depositAmount?: PriceNonNullableFields;\n  /** @internal */\n  locations: LocationAndQuantityNonNullableFields[];\n  lineItemPrice?: PriceNonNullableFields;\n  /** @internal */\n  taxableAddress?: TaxableAddressNonNullableFields;\n  /** @internal */\n  priceUndetermined: boolean;\n  /** @internal */\n  fixedQuantity: boolean;\n}\n\ninterface BuyerInfoNonNullableFields {\n  visitorId: string;\n  memberId: string;\n}\n\ninterface PriceSummaryNonNullableFields {\n  subtotal?: PriceNonNullableFields;\n  shipping?: PriceNonNullableFields;\n  tax?: PriceNonNullableFields;\n  discount?: PriceNonNullableFields;\n  totalPrice?: PriceNonNullableFields;\n  total?: PriceNonNullableFields;\n  totalWithGiftCard?: PriceNonNullableFields;\n  totalWithoutGiftCard?: PriceNonNullableFields;\n  totalAdditionalFees?: PriceNonNullableFields;\n}\n\ninterface StreetAddressNonNullableFields {\n  number: string;\n  name: string;\n  apt: string;\n}\n\ninterface AddressNonNullableFields {\n  streetAddress?: StreetAddressNonNullableFields;\n}\n\ninterface VatIdNonNullableFields {\n  _id: string;\n  type: VatType;\n}\n\ninterface FullAddressContactDetailsNonNullableFields {\n  vatId?: VatIdNonNullableFields;\n}\n\ninterface AddressWithContactNonNullableFields {\n  address?: AddressNonNullableFields;\n  contactDetails?: FullAddressContactDetailsNonNullableFields;\n}\n\ninterface PickupAddressNonNullableFields {\n  streetAddress?: StreetAddressNonNullableFields;\n}\n\ninterface PickupDetailsNonNullableFields {\n  address?: PickupAddressNonNullableFields;\n  pickupMethod: PickupMethod;\n}\n\ninterface DeliveryLogisticsNonNullableFields {\n  shippingDestination?: AddressWithContactNonNullableFields;\n  pickupDetails?: PickupDetailsNonNullableFields;\n}\n\ninterface ShippingPriceNonNullableFields {\n  price?: PriceNonNullableFields;\n  totalPriceBeforeTax?: PriceNonNullableFields;\n  totalPriceAfterTax?: PriceNonNullableFields;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  discount?: PriceNonNullableFields;\n}\n\ninterface ShippingInformationNonNullableFields {\n  title: string;\n  logistics?: DeliveryLogisticsNonNullableFields;\n  cost?: ShippingPriceNonNullableFields;\n}\n\ninterface OrderTaxBreakdownNonNullableFields {\n  taxName: string;\n  taxType: string;\n  jurisdiction: string;\n  jurisdictionType: JurisdictionType;\n  rate: string;\n  aggregatedTaxAmount?: PriceNonNullableFields;\n  aggregatedTaxableAmount?: PriceNonNullableFields;\n}\n\ninterface OrderTaxInfoNonNullableFields {\n  totalTax?: PriceNonNullableFields;\n  taxBreakdown: OrderTaxBreakdownNonNullableFields[];\n}\n\ninterface CouponNonNullableFields {\n  _id: string;\n  code: string;\n  name: string;\n  amount?: PriceNonNullableFields;\n}\n\ninterface MerchantDiscountNonNullableFields {\n  discountReason: DiscountReason;\n  amount?: PriceNonNullableFields;\n}\n\ninterface DiscountRuleNameNonNullableFields {\n  original: string;\n}\n\ninterface DiscountRuleNonNullableFields {\n  _id: string;\n  name?: DiscountRuleNameNonNullableFields;\n  amount?: PriceNonNullableFields;\n}\n\ninterface LineItemDiscountNonNullableFields {\n  _id: string;\n  totalDiscount?: PriceNonNullableFields;\n}\n\ninterface AppliedDiscountNonNullableFields {\n  coupon?: CouponNonNullableFields;\n  merchantDiscount?: MerchantDiscountNonNullableFields;\n  discountRule?: DiscountRuleNonNullableFields;\n  discountType: DiscountType;\n  lineItemIds: string[];\n  /** @internal */\n  lineItemDiscounts: LineItemDiscountNonNullableFields[];\n}\n\ninterface ChannelInfoNonNullableFields {\n  type: ChannelType;\n}\n\ninterface CustomFieldNonNullableFields {\n  title: string;\n}\n\ninterface AdditionalFeeNonNullableFields {\n  name: string;\n  price?: PriceNonNullableFields;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  priceBeforeTax?: PriceNonNullableFields;\n  priceAfterTax?: PriceNonNullableFields;\n  _id: string;\n  lineItemIds: string[];\n}\n\ninterface LocationNonNullableFields {\n  _id: string;\n  name: string;\n}\n\nexport interface SubscriptionContractNonNullableFields {\n  subscriptionSettings?: V1SubscriptionSettingsNonNullableFields;\n  lineItems: OrderLineItemNonNullableFields[];\n  buyerInfo?: BuyerInfoNonNullableFields;\n  weightUnit: WeightUnit;\n  taxIncludedInPrices: boolean;\n  priceSummary?: PriceSummaryNonNullableFields;\n  billingInfo?: AddressWithContactNonNullableFields;\n  shippingInfo?: ShippingInformationNonNullableFields;\n  taxInfo?: OrderTaxInfoNonNullableFields;\n  appliedDiscounts: AppliedDiscountNonNullableFields[];\n  channelInfo?: ChannelInfoNonNullableFields;\n  customFields: CustomFieldNonNullableFields[];\n  recipientInfo?: AddressWithContactNonNullableFields;\n  additionalFees: AdditionalFeeNonNullableFields[];\n  /** @internal */\n  businessLocation?: LocationNonNullableFields;\n}\n\nexport interface GetSubscriptionContractResponseNonNullableFields {\n  subscriptionContract?: SubscriptionContractNonNullableFields;\n}\n\nexport interface QuerySubscriptionContractsResponseNonNullableFields {\n  subscriptionContracts: SubscriptionContractNonNullableFields[];\n}\n\nexport interface BaseEventMetadata {\n  /** App instance ID. */\n  instanceId?: string | null;\n  /** Event type. */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n  /**\n   * Unique event ID.\n   * Allows clients to ignore duplicate webhooks.\n   */\n  _id?: string;\n  /**\n   * Assumes actions are also always typed to an entity_type\n   * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n   */\n  entityFqdn?: string;\n  /**\n   * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n   * This is although the created/updated/deleted notion is duplication of the oneof types\n   * Example: created/updated/deleted/started/completed/email_opened\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number defining the order of updates to the underlying entity.\n   * For example, given that some entity was updated at 16:00 and than again at 16:01,\n   * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n   * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n   * To do so, you will need to persist this number on your end, and compare the sequence number from the\n   * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n   */\n  entityEventSequence?: string | null;\n}\n\nexport interface SubscriptionContractCreatedEnvelope {\n  entity: SubscriptionContract;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ\n * @webhook\n * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_created\n * @documentationMaturity preview\n */\nexport declare function onSubscriptionContractCreated(\n  handler: (event: SubscriptionContractCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SubscriptionContractDeletedEnvelope {\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ\n * @webhook\n * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_deleted\n * @documentationMaturity preview\n */\nexport declare function onSubscriptionContractDeleted(\n  handler: (event: SubscriptionContractDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface SubscriptionContractUpdatedEnvelope {\n  entity: SubscriptionContract;\n  metadata: EventMetadata;\n}\n\n/** @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ\n * @webhook\n * @eventType wix.ecom.subscription_contracts.v1.subscription_contract_updated\n * @documentationMaturity preview\n */\nexport declare function onSubscriptionContractUpdated(\n  handler: (event: SubscriptionContractUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Retrieves a SubscriptionContract.\n * @param subscriptionContractId - ID of the SubscriptionContract to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField subscriptionContractId\n * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @returns The requested SubscriptionContract.\n * @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract\n */\nexport async function getSubscriptionContract(\n  subscriptionContractId: string\n): Promise<SubscriptionContract & SubscriptionContractNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    subscriptionContractId: subscriptionContractId,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomSubscriptionContractsV1SubscriptionContract.getSubscriptionContract(\n      payload\n    );\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [{ path: 'subscriptionContract.lineItems.image' }],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            { path: 'subscriptionContract.billingInfo.address' },\n            {\n              path: 'subscriptionContract.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'subscriptionContract.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'subscriptionContract.recipientInfo.address' },\n          ],\n        },\n      ])\n    )?.subscriptionContract!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { subscriptionContractId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['subscriptionContractId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 300 SubscriptionContracts can be returned per request.\n *\n * To learn how to query SubscriptionContracts, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @public\n * @documentationMaturity preview\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.SUBSCRIPTION_CONTRACT_READ\n * @applicableIdentity APP\n * @fqn wix.ecom.subscription_contracts.v1.SubscriptionContracts.QuerySubscriptionContracts\n */\nexport function querySubscriptionContracts(): SubscriptionContractsQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    SubscriptionContract,\n    'CURSOR',\n    QuerySubscriptionContractsRequest,\n    QuerySubscriptionContractsResponse\n  >({\n    func: async (payload: QuerySubscriptionContractsRequest) => {\n      const reqOpts =\n        ambassadorWixEcomSubscriptionContractsV1SubscriptionContract.querySubscriptionContracts(\n          payload\n        );\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QuerySubscriptionContractsRequest['query']) => {\n      const args = [query, {}] as [\n        QuerySubscriptionContractsRequest['query'],\n        {}\n      ];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({\n      data,\n    }: HttpResponse<QuerySubscriptionContractsResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [\n          {\n            transformFn: transformRESTImageToSDKImage,\n            paths: [{ path: 'subscriptionContracts.lineItems.image' }],\n          },\n          {\n            transformFn: transformRESTAddressToSDKAddress,\n            paths: [\n              { path: 'subscriptionContracts.billingInfo.address' },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.shippingDestination.address',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.pickupDetails.address',\n              },\n              { path: 'subscriptionContracts.recipientInfo.address' },\n            ],\n          },\n        ])\n      );\n\n      return {\n        items: transformedData?.subscriptionContracts,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface SubscriptionContractsQueryResult extends QueryCursorResult {\n  items: SubscriptionContract[];\n  query: SubscriptionContractsQueryBuilder;\n  next: () => Promise<SubscriptionContractsQueryResult>;\n  prev: () => Promise<SubscriptionContractsQueryResult>;\n}\n\nexport interface SubscriptionContractsQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: any\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: any\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `string`.\n   * @param string - String to compare against. Case-insensitive.\n   * @documentationMaturity preview\n   */\n  startsWith: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: string\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: any[]\n  ) => SubscriptionContractsQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: any\n  ) => SubscriptionContractsQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName: '_id' | 'buyerInfo.contactId',\n    value: boolean\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<'_id' | 'buyerInfo.contactId'>\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<'_id' | 'buyerInfo.contactId'>\n  ) => SubscriptionContractsQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => SubscriptionContractsQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => SubscriptionContractsQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<SubscriptionContractsQueryResult>;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {};\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_subscription-contracts';\n\n/** Retrieves a SubscriptionContract. */\nexport function getSubscriptionContract(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getSubscriptionContract({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.subscription_contracts.v1.subscription_contract',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({\n        protoPath: '/v1/subscription-contracts/{subscriptionContractId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'subscriptionContract.createdDate' },\n              { path: 'subscriptionContract.updatedDate' },\n              { path: 'subscriptionContract.subscriptionSettings.startDate' },\n              {\n                path: 'subscriptionContract.lineItems.image.urlExpirationDate',\n              },\n              {\n                path: 'subscriptionContract.lineItems.digitalFile.expirationDate',\n              },\n              {\n                path: 'subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'subscriptionContract.lineItems.image.focalPoint.x' },\n              { path: 'subscriptionContract.lineItems.image.focalPoint.y' },\n              {\n                path: 'subscriptionContract.lineItems.physicalProperties.weight',\n              },\n              {\n                path: 'subscriptionContract.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContract.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContract.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContract.recipientInfo.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getSubscriptionContract;\n}\n\n/**\n * Retrieves a list of SubscriptionContracts, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 300 SubscriptionContracts can be returned per request.\n *\n * To learn how to query SubscriptionContracts, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function querySubscriptionContracts(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __querySubscriptionContracts({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.subscription_contracts.v1.subscription_contract',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.ecom.subscription_contracts.v1.SubscriptionContracts.QuerySubscriptionContracts',\n      packageName: PACKAGE_NAME,\n      url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({\n        protoPath: '/v1/subscription-contracts/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'subscriptionContracts.createdDate' },\n              { path: 'subscriptionContracts.updatedDate' },\n              { path: 'subscriptionContracts.subscriptionSettings.startDate' },\n              {\n                path: 'subscriptionContracts.lineItems.image.urlExpirationDate',\n              },\n              {\n                path: 'subscriptionContracts.lineItems.digitalFile.expirationDate',\n              },\n              {\n                path: 'subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'subscriptionContracts.lineItems.image.focalPoint.x' },\n              { path: 'subscriptionContracts.lineItems.image.focalPoint.y' },\n              {\n                path: 'subscriptionContracts.lineItems.physicalProperties.weight',\n              },\n              {\n                path: 'subscriptionContracts.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContracts.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'subscriptionContracts.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'subscriptionContracts.recipientInfo.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({\n            protoPath: '/v1/subscription-contracts/query',\n            data: payload,\n            host,\n          }),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __querySubscriptionContracts;\n}\n","import {\n  getSubscriptionContract as publicGetSubscriptionContract,\n  querySubscriptionContracts as publicQuerySubscriptionContracts,\n} from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\nimport { onSubscriptionContractCreated as publicOnSubscriptionContractCreated } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js';\nimport { onSubscriptionContractDeleted as publicOnSubscriptionContractDeleted } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js';\nimport { onSubscriptionContractUpdated as publicOnSubscriptionContractUpdated } from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.public.js';\n\nexport const getSubscriptionContract: MaybeContext<\n  BuildRESTFunction<typeof publicGetSubscriptionContract> &\n    typeof publicGetSubscriptionContract\n> = /*#__PURE__*/ createRESTModule(publicGetSubscriptionContract);\nexport const querySubscriptionContracts: MaybeContext<\n  BuildRESTFunction<typeof publicQuerySubscriptionContracts> &\n    typeof publicQuerySubscriptionContracts\n> = /*#__PURE__*/ createRESTModule(publicQuerySubscriptionContracts);\n/** */\nexport const onSubscriptionContractCreated: ReturnType<\n  typeof createEventModule<typeof publicOnSubscriptionContractCreated>\n> = createEventModule(publicOnSubscriptionContractCreated);\n/** */\nexport const onSubscriptionContractDeleted: ReturnType<\n  typeof createEventModule<typeof publicOnSubscriptionContractDeleted>\n> = createEventModule(publicOnSubscriptionContractDeleted);\n/** */\nexport const onSubscriptionContractUpdated: ReturnType<\n  typeof createEventModule<typeof publicOnSubscriptionContractUpdated>\n> = createEventModule(publicOnSubscriptionContractUpdated);\n\nexport {\n  SubscriptionFrequency,\n  DescriptionLineType,\n  ItemTypeItemType,\n  PaymentOptionType,\n  JurisdictionType,\n  V2SubscriptionFrequency,\n  TaxableAddressType,\n  WeightUnit,\n  VatType,\n  PickupMethod,\n  DiscountType,\n  DiscountReason,\n  ChannelType,\n  SortOrder,\n  WebhookIdentityType,\n} from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js';\nexport {\n  SubscriptionContract,\n  V1SubscriptionSettings,\n  V1FreeTrialPeriod,\n  OrderLineItem,\n  ProductName,\n  CatalogReference,\n  Price,\n  DescriptionLine,\n  DescriptionLineValueOneOf,\n  DescriptionLineDescriptionLineValueOneOf,\n  DescriptionLineName,\n  PlainTextValue,\n  Color,\n  FocalPoint,\n  PhysicalProperties,\n  ItemType,\n  ItemTypeItemTypeDataOneOf,\n  ItemTaxFullDetails,\n  LineItemTaxInfo,\n  LineItemTaxBreakdown,\n  DigitalFile,\n  SubscriptionInfo,\n  SubscriptionSettings,\n  FreeTrialPeriod,\n  PriceDescription,\n  LocationAndQuantity,\n  TaxableAddress,\n  TaxableAddressTaxableAddressDataOneOf,\n  ExtendedFields,\n  BuyerInfo,\n  BuyerInfoIdOneOf,\n  PriceSummary,\n  AddressWithContact,\n  Address,\n  StreetAddress,\n  AddressLocation,\n  FullAddressContactDetails,\n  VatId,\n  ShippingInformation,\n  DeliveryLogistics,\n  DeliveryLogisticsAddressOneOf,\n  PickupDetails,\n  PickupAddress,\n  DeliveryTimeSlot,\n  ShippingPrice,\n  ShippingRegion,\n  OrderTaxInfo,\n  OrderTaxBreakdown,\n  AppliedDiscount,\n  AppliedDiscountDiscountSourceOneOf,\n  Coupon,\n  MerchantDiscount,\n  MerchantDiscountMerchantDiscountReasonOneOf,\n  DiscountRule,\n  DiscountRuleName,\n  LineItemDiscount,\n  ChannelInfo,\n  CustomField,\n  AdditionalFee,\n  Location,\n  CreateSubscriptionContractRequest,\n  CreateSubscriptionContractResponse,\n  GetSubscriptionContractRequest,\n  GetSubscriptionContractResponse,\n  UpdateSubscriptionContractRequest,\n  UpdateSubscriptionContractResponse,\n  QuerySubscriptionContractsRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  CursorPaging,\n  QuerySubscriptionContractsResponse,\n  CursorPagingMetadata,\n  Cursors,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  Empty,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  SubscriptionContractNonNullableFields,\n  GetSubscriptionContractResponseNonNullableFields,\n  QuerySubscriptionContractsResponseNonNullableFields,\n  BaseEventMetadata,\n  EventMetadata,\n  SubscriptionContractCreatedEnvelope,\n  SubscriptionContractDeletedEnvelope,\n  SubscriptionContractUpdatedEnvelope,\n  SubscriptionContractsQueryResult,\n  SubscriptionContractsQueryBuilder,\n} from './ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,oCAAAC,yCAAwC;AACjD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAmC;;;ACN5C,SAAS,kBAAkB,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,8DACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAA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EC,gBAAe,OAAO;AAAA,MACpB;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,qBAAqB;AAAA,UAC7B,EAAE,MAAM,wCAAwC;AAAA,UAChD,EAAE,MAAM,8CAA8C;AAAA,UACtD;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA,EAAE,MAAM,8CAA8C;AAAA,UACtD,EAAE,MAAM,sDAAsD;AAAA,UAC9D,EAAE,MAAM,oDAAoD;AAAA,UAC5D,EAAE,MAAM,qBAAqB;AAAA,QAC/B;AAAA,MACF;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,yBAAyB,CAAC;AAAA,MAC5C;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,6CAA6C,CAAC;AAAA,MAChE;AAAA,MACA;AAAA,QACE,aAAaC;AAAA,QACb,OAAO;AAAA,UACL,EAAE,MAAM,6BAA6B;AAAA,UACrC;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA,EAAE,MAAM,sDAAsD;AAAA,UAC9D,EAAE,MAAM,+BAA+B;AAAA,QACzC;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAuC;;;AGjMvC,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAM3B,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAE5D,IAAMC,iCAET,kBAAkB,6BAAmC;AAElD,IAAMC,iCAET,kBAAkB,6BAAmC;AAElD,IAAMC,iCAET,kBAAkB,6BAAmC;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTAddressToSDKAddress","transformRESTFloatToSDKFloat","transformRESTImageToSDKImage","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","SubscriptionFrequency","DescriptionLineType","ItemTypeItemType","PaymentOptionType","JurisdictionType","V2SubscriptionFrequency","TaxableAddressType","WeightUnit","VatType","PickupMethod","DiscountType","DiscountReason","ChannelType","SortOrder","WebhookIdentityType","getSubscriptionContract","querySubscriptionContracts","getSubscriptionContract","querySubscriptionContracts","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTImageToSDKImage","transformRESTFloatToSDKFloat","transformRESTAddressToSDKAddress","getSubscriptionContract","querySubscriptionContracts","onSubscriptionContractCreated","onSubscriptionContractDeleted","onSubscriptionContractUpdated"]}