PCFCartItem

public struct PCFCartItem: CartItem, Decodable

PCFCartItem model.

  • Adjustments made specific to the product in this cart item

    Declaration

    Swift

    public let adjustments: [AdjustmentType]
  • Denotes whether or not other SKUs of the product are available

    Declaration

    Swift

    public let otherSKUsAvailable: Bool?
  • Personalization Selections

    Declaration

    Swift

    public let personalizations: [PersonalizationOptionType]?
  • Minified product without SKU options or description.

    Declaration

    Swift

    public let product: ProductType
  • Quantity of product.

    Declaration

    Swift

    public let quantity: Int
  • Unique ID of the card item.

    Declaration

    Swift

    public let resourceId: String
  • sku

    values of the selected SKU

    Declaration

    Swift

    public let sku: SkuType?
  • Product discounted price times quantity.

    Declaration

    Swift

    public let totalDiscountedPrice: Float
  • Product price times quantity

    Declaration

    Swift

    public let totalPrice: Float
  • Product price times quantity

    Declaration

    Swift

    public init?(json: JSON)

    Parameters

    json

    JSON representation of object.

    Return Value

    New instance when JSON parsing successful, false otherwise.