Category

open class Category : Codable, HasRelationship

Represents a Category in Moltin

  • id

    The id of this category

    Declaration

    Swift

    public let id: String
  • The type of this object

    Declaration

    Swift

    public let type: String
  • The name of this category

    Declaration

    Swift

    public let name: String
  • The slug of this category

    Declaration

    Swift

    public let slug: String
  • The description of this category

    Declaration

    Swift

    public let description: String
  • live / draft

    Declaration

    Swift

    public let status: String
  • The relationships this category has

    Declaration

    Swift

    public let relationships: Relationships?
  • The categories associated with this category

    Declaration

    Swift

    public var categories: [Category]?
  • The products associated with this category

    Declaration

    Swift

    public var products: [Product]?
  • The children of this category

    Declaration

    Swift

    public var children: [Category]?
  • Declaration

    Swift

    required public init(from decoder: Decoder) throws