BaseStoreStateProduct
@objc open class BaseStoreStateProduct: NSObject, Gloss.Decodable
Base class for a store item. Contains basic information for an item to sell in a store.
-
Product string id to map back to an actual product in the StoreFront.
Declaration
Swift
public var productId = "" -
Sale product string id to map back to an actual product in the StoreFront.
Declaration
Swift
public var saleProductId = "" -
Returns TRUE if the product id is not empty.
Declaration
Swift
public var hasProductId: Bool -
Returns TRUE if the sale product id is not empty.
Declaration
Swift
public var hasSaleProduct: Bool -
Initializes a
BaseStoreStateProductobject from a JSON object.Declaration
Swift
public required init?(json: JSON)Parameters
jsonThe json object to parse.
BaseStoreStateProduct Class Reference