One of the available offers to purchase a given product

Hierarchy (view full)

Constructors

Properties

id: string

Offer identifier

pricingPhases: CdvPurchase.PricingPhase[]

Pricing phases

tags: string[]
token: string
type: string = 'subs'

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();