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 var rawValue: String
  • Includes File objects

    Declaration

    Swift

    public static let files  = MoltinInclude(rawValue: "files")
  • Includes Product objects

    Declaration

    Swift

    public static let products = MoltinInclude(rawValue: "products")
  • Includes Collection objects

    Declaration

    Swift

    public static let collections = MoltinInclude(rawValue: "collections")
  • Includes Brand objects

    Declaration

    Swift

    public static let brands = MoltinInclude(rawValue: "brands")
  • Includes Category objects

    Declaration

    Swift

    public static let categories = MoltinInclude(rawValue: "categories")
  • Includes a File object representing the main image

    Declaration

    Swift

    public static let mainImage = MoltinInclude(rawValue: "main_image")
  • Declaration

    Swift

    public init(rawValue: String)