Cart

public class Cart: BusinessObject

Wrapper class to manage your cart

  • Cart identifier

    Declaration

    Swift

    @objc public var cartId: String = ""
  • Cart products

    Declaration

    Swift

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

    Declaration

    Swift

    @objc public func set(_ cartId: String) -> Cart
  • Unset the cart

    Declaration

    Swift

    @objc public func unset()