LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  1. Widgets
  2. Type definitions

Product

The type definition of LiSA product:

type Product = {
  /** The LiSA internal product identifier. */
  id: UUID;
  /** A map-like structure of media assets. */
  assets?: Record<string, Asset>;
  /** The product's brand name. */
  brand?: LocalizedString;
  /** The product description. */
  description?: LocalizedString;
  /** The product's origin information, adopted from the customer's ecom system. */
  origin?: {
    /** The product identifier, as defined in the customer's ecom system. */
    id: string;
    /** The time of the most recent data synchronization. */
    lastSyncedAt: DateTime;
  };
  /** The product price information. */
  price?: Price;
  /** The store configuration in a multi-store environment. */
  stores?: StoreConfig[];
  /** The product title. */
  title?: LocalizedString;
  /** The product URL. */
  url?: LocalizedString;
  /** A list of product variants. */
  variants?: ProductVariant[];
};

Related type definitions

ProductVariant

type ProductVariant = {
  /** A map-like structure of media assets. */
  assets?: Record<string, Asset>;
  /** The product variant's name. */
  name: string;
  /** The product variant's price information. */
  price?: Price;
  /** The product variant's identifier, typically its SKU */
  reference?: string;
  /** The product variant's store configuration in a multi-store environment. */
  stores?: StoreConfig[];
  /** The product variant's title. */
  title?: LocalizedString;
  /** The product variant's URL. */
  url?: LocalizedString;
  /** A list of production variations. */
  variations?: ProductVariation[];
};

ProductVariation

type ProductVariation = {
  /** The product variation type. */
  type: 'color' | 'size' | string;
  /** The localized product variation value. */
  value: LocalizedString;
};

Price

type Price = {
  /** Currency information. */
  currency: {
    name?: string;
    symbol: string;
  };
  /** The discounted price value. */
  discounted?: { value: number };
  /** The regular price value. */
  original: { value: number };
  /** Unit pricing information. */
  unitPricing?: {
    baseUnit: string;
    baseValue: number;
    measureUnit: string;
    measureValue: number;
  };
};

StoreConfig

type StoreConfig = {
  /** The store identifier. */
  store: string;
  /** The product's or product variant's price infirmation for a particular store. */
  price?: Price;
  /** The product's or product variant's URL for a particular store. */
  url?: LocalizedString;
};
PreviousAssetNextOther

Last updated 1 year ago