Cart

public class Cart: BusinessObject

Wrapper class to manage your cart

  • Cart identifier

    Declaration

    Swift

    public var cartId: String = ""
  • Cart products

    Declaration

    Swift

    public lazy var products: Products = Products(cart: self)
  • Set a cart

    Declaration

    Swift

    public func set(_ cartId: String) -> Cart

    Parameters

    cartId

    the cart identifier

    Return Value

    the cart

  • Unset the cart

    Declaration

    Swift

    public func unset()