PCartItem

public class PCartItem : Mappable

CartItem model, using for Cart summary in the app

  • id

    ID

    Declaration

    Swift

    public var id: Int
  • CartItem ID

    Declaration

    Swift

    public var cart_id: Int
  • Sellable Type

    Declaration

    Swift

    public var sellable_type: String?
  • Sellable ID

    Declaration

    Swift

    public var sellable_id: Int?
  • Quantity

    Declaration

    Swift

    public var quantity: Int
  • IItem data

    Declaration

    Swift

    public var item_data: PCartItemDetail?
  • Created time

    Declaration

    Swift

    public var created_at: Date?
  • Updated time

    Declaration

    Swift

    public var updated_at: Date?
  • Price

    Declaration

    Swift

    public var price: PPrice?
  • Total

    Declaration

    Swift

    public var total: PPrice?
  • Item type

    Declaration

    Swift

    public var type: String?
  • Sellable

    Declaration

    Swift

    public var sellable: PSellable?
  • JSON Mapper

    Declaration

    Swift

    required public init(map: Mapper) throws