BasketItem

public protocol BasketItem

An item in a Basket

  • Short label for the basket item.

    Declaration

    Swift

    var label: String { get }
  • Longer description of the basket item.

    Declaration

    Swift

    var description: String? { get }
  • The number of units of the item in the basket if multiple is possible.

    Declaration

    Swift

    var quantity: Int? { get }
  • The unit price of the item. May be positive or negative.

    Declaration

    Swift

    var unitPrice: Decimal? { get }
  • Optional display string for the measure of the unit.

    Declaration

    Swift

    var unitMeasure: String? { get }
  • The total price of the item. May be positive or negative.

    Declaration

    Swift

    var totalPrice: Decimal? { get }
  • Additional key/value pairs for the item defined by the merchant.

    Declaration

    Swift

    var tags: [String : String] { get }