PCFCart

public struct PCFCart: Cart, Decodable

PCFCart model.

  • List of adjustments made to cart as a whole

    Declaration

    Swift

    public let adjustments: [AdjustmentType]
  • List of Cart Items

    Declaration

    Swift

    public let cartItems: [CartItemType]
  • Amount customer must still spend in order to receive free shipping on this cart.

    Declaration

    Swift

    public let costUntilFreeShipping: Float
  • Number of unique cart items

    Declaration

    Swift

    public let itemCount: Int
  • Total number of items within cart. Represents the sum of the quantities for each cart item

    Declaration

    Swift

    public let itemTotalCount: Int
  • Information for selected shipping option

    Declaration

    Swift

    public let shippingOption: ShippingOptionType?
  • Subtotal of purchase

    Declaration

    Swift

    public let subtotal: Float
  • tax

    Tax calculated for order

    Declaration

    Swift

    public let tax: Float
  • Total adjustments made to cart

    Declaration

    Swift

    public let totalAdjustment: Float
  • Final total after adjustments

    Declaration

    Swift

    public let total: Float
  • Final total after adjustments

    Declaration

    Swift

    public init?(json: JSON)

    Parameters

    json

    JSON representation of object.

    Return Value

    New instance when JSON parsing successful, false otherwise.