CartItem

open class CartItem : Codable

Represents a CartItem in Moltin

  • id

    The id for this cart item

    Declaration

    Swift

    public let id: String
  • The type of this object

    Declaration

    Swift

    public let type: String
  • The product ID for this CartItem

    Declaration

    Swift

    public let productId: String?
  • The name of this cart item

    Declaration

    Swift

    public let name: String
  • The description of this cart item

    Declaration

    Swift

    public let description: String?
  • sku

    The SKU of this cart item

    Declaration

    Swift

    public let sku: String?
  • The quantity of this cart item

    Declaration

    Swift

    public let quantity: Int
  • The price for this cart item

    Declaration

    Swift

    public let unitPrice: ProductPrice
  • The price for this cart item, taking into account quantity

    Declaration

    Swift

    public let value: ProductPrice
  • The tax for this cart item, taking into account quantity

    Declaration

    Swift

    public var taxes: [TaxItem]?
  • The external links for this cart item

    Declaration

    Swift

    public let links: [String : String]
  • The meta information for this cart item

    Declaration

    Swift

    public let meta: CartItemMeta
  • The relationships this item has

    Declaration

    Swift

    public let relationships: Relationships?
  • Declaration

    Swift

    required public init(from decoder: Decoder) throws