Product
open class Product : Codable, HasRelationship
Represents a Product in moltin
-
The id of this product
Declaration
Swift
public let id: String -
The type of this object
Declaration
Swift
public let type: String -
The name of this product
Declaration
Swift
public let name: String -
The slug of this product
Declaration
Swift
public let slug: String -
The SKU of this product
Declaration
Swift
public let sku: String -
Whether or not moltin manages the stock of this product
Declaration
Swift
public let manageStock: Bool -
The description of this product
Declaration
Swift
public let description: String -
The price information for this product
Declaration
Swift
public let price: [ProductPrice]? -
draft / live
Declaration
Swift
public let status: String -
Physical / Digital
Declaration
Swift
public let commodityType: String -
The meta information for this product
Declaration
Swift
public let meta: ProductMeta -
The relationships this product has
Declaration
Swift
public let relationships: Relationships? -
The main image of this product
Declaration
Swift
public var mainImage: File? -
The files this product has
Declaration
Swift
public var files: [File]? -
The categories this product belongs to
Declaration
Swift
public var categories: [Category]? -
The brands this product belongs to
Declaration
Swift
public var brands: [Brand]? -
The collections this product belongs to
Declaration
Swift
public var collections: [Collection]? -
Declaration
Swift
required public init(from decoder: Decoder) throws
View on GitHub
Product Class Reference