interface Purchasable (View source)

Methods

Collection
getPrices()

Get the purchasable prices.

int
getUnitQuantity()

Return the purchasable unit quantity.

getTaxClass()

Return the purchasable tax class.

string|null
getTaxReference()

Return the purchasable tax reference.

string
getType()

Return what type of purchasable this is, i.e. physical,digital,shipping.

string
getDescription()

Return the description for the purchasable.

string|null
getOption()

Return the option for this purchasable.

string
getIdentifier()

Return a unique string which identifies the purchasable item.

bool
isShippable()

Returns whether the purchasable item is shippable.

string
getThumbnail()

Return the thumbnail for the purchasable item.

Details

Collection getPrices()

Get the purchasable prices.

Return Value

Collection

int getUnitQuantity()

Return the purchasable unit quantity.

Return Value

int

TaxClass getTaxClass()

Return the purchasable tax class.

Return Value

TaxClass

string|null getTaxReference()

Return the purchasable tax reference.

Return Value

string|null

string getType()

Return what type of purchasable this is, i.e. physical,digital,shipping.

Return Value

string

string getDescription()

Return the description for the purchasable.

Return Value

string

string|null getOption()

Return the option for this purchasable.

Return Value

string|null

string getIdentifier()

Return a unique string which identifies the purchasable item.

Return Value

string

bool isShippable()

Returns whether the purchasable item is shippable.

Return Value

bool

string getThumbnail()

Return the thumbnail for the purchasable item.

Return Value

string