ProductStock
@objc(GFYProductStock)
public class ProductStock : NSObject, Codable
Contains product stock information
-
The number of the product in stock
Declaration
Swift
@objc public let count: Int -
Creates a
ProductStockinstanceDeclaration
Swift
@objc public init(count: Int)Parameters
countThe number of the product in stock
-
Queries whether the product is currently in stock
Declaration
Swift
@objc public func inStock() -> BoolReturn Value
trueif the product stock count is greater than 0;falseotherwise -
Retrieves
Stringrepresentation ofProductStockDeclaration
Swift
public override var description: String { get }
ProductStock Class Reference