One of the available offers to purchase a given product

Hierarchy (view full)

Constructors

Properties

id: string

Offer identifier

offerType: SKOfferType
pricingPhases: CdvPurchase.PricingPhase[]

Pricing phases

Accessors

  • get canPurchase(): boolean
  • true if the offer can be purchased.

    Returns boolean

  • get platform(): Platform
  • Platform this offer is available from

    Returns Platform

  • get productGroup(): undefined | string
  • Group the product related to this offer is member of

    Returns undefined | string

  • get productId(): string
  • Identifier of the product related to this offer

    Returns string

  • get productType(): ProductType
  • Type of the product related to this offer

    Returns ProductType

Methods

  • Initiate a purchase of this offer.

    Parameters

    Returns Promise<undefined | IError>

    Example

    store.get("my-product").getOffer().order();