PProduct

public class PProduct : Mappable

Product Model

  • id

    Product ID

    Declaration

    Swift

    public var id: Int
  • Product code

    Declaration

    Swift

    public var code: String?
  • Type of product

    Declaration

    Swift

    public var type: String?
  • Name of product

    Declaration

    Swift

    public var name: String?
  • Description

    Declaration

    Swift

    public var description: String?
  • Max quantity of buying

    Declaration

    Swift

    public var max_quantity: Int
  • Min quantity

    Declaration

    Swift

    public var min_quantity: Int
  • Determine is transferable

    Declaration

    Swift

    public var is_transferable: Bool
  • Determine is shareable

    Declaration

    Swift

    public var is_shareable: Bool
  • For localization

    Declaration

    Swift

    public var translations: [PTranslation]?
  • Concession list

    Declaration

    Swift

    public var concessions: [PConcession]?
  • JSON Mapper

    Declaration

    Swift

    required public init(map: Mapper) throws