MoltinInclude
public struct MoltinInclude: RawRepresentable, Equatable
MoltinInclude
represents various resources which can be included into other API calls, such as including the collections assigned to products
This struct is for use in the MoltinRequest.include(...)
method
-
Declaration
Swift
public typealias RawValue = String
-
Declaration
Swift
public var rawValue: String
-
Includes
File
objectsDeclaration
Swift
public static let files = MoltinInclude(rawValue: "files")
-
Includes
Product
objectsDeclaration
Swift
public static let products = MoltinInclude(rawValue: "products")
-
Includes
Collection
objectsDeclaration
Swift
public static let collections = MoltinInclude(rawValue: "collections")
-
Includes
Brand
objectsDeclaration
Swift
public static let brands = MoltinInclude(rawValue: "brands")
-
Includes
Category
objectsDeclaration
Swift
public static let categories = MoltinInclude(rawValue: "categories")
-
Includes a
File
object representing the main imageDeclaration
Swift
public static let mainImage = MoltinInclude(rawValue: "main_image")
-
Declaration
Swift
public init(rawValue: String)