-
cart(completion:)Default implementationGets the cart.
Parameter
Parameter completion: The completion block.Default Implementation
Gets the available shipping options for the current cart.
Parameter
Parameter completion: The completion block.Declaration
Parameters
completionThe completion block.
-
Associated shipping option type.
Declaration
Swift
associatedtype ShippingOptionType: ShippingOption -
Associated cart type.
Declaration
Swift
associatedtype CartType: Cart -
add(items:completion:)Default implementationAdds the given products to the cart.
- Parameters:
- items: The cart items to add.
- completion: The completion block.
Default Implementation
Gets the available shipping options for the current cart.
Parameter
Parameter completion: The completion block.Declaration
Swift
func add(items: [ParameterConvertible],Parameters
itemsThe cart items to add.
completionThe completion block.
- Parameters:
-
update(items:completion:)Default implementationUpdates the given products to the cart.
- Parameters:
- items: The cart items to update.
- completion: The completion block.
Default Implementation
Gets the available shipping options for the current cart.
Parameter
Parameter completion: The completion block.Declaration
Swift
func update(items: [ParameterConvertible],Parameters
itemsThe cart items to update.
completionThe completion block.
- Parameters:
-
adjustment(type:code:completion:)Default implementationUpdates the cart with the given adjustment object (gift card, promo code, coupon…)
- Parameters:
- type: The type of adjustment.
- code: The code of the adjustment.
- completion: The completion block.
Default Implementation
Gets the available shipping options for the current cart.
Parameter
Parameter completion: The completion block.Declaration
Swift
func adjustment(type: String,Parameters
typeThe type of adjustment.
codeThe code of the adjustment.
completionThe completion block.
- Parameters:
-
shippingOptions(completion:)Default implementationGets the available shipping options for the current cart.
Parameter
Parameter completion: The completion block.Default Implementation
Declaration
Swift
func shippingOptions(completion: @escaping (_ shippingOptions: [ShippingOptionType], _ error: Swift.Error?) -> Void)Parameters
completionThe completion block.
-
getCartRequest(forPath:)Extension methodUndocumented
Declaration
Swift
public protocol CartDataManager: DataManager -
addToCartRequest(forPath:parameters:)Extension methodUndocumented
Declaration
Swift
public protocol CartDataManager: DataManager -
updateCartRequest(forPath:parameters:)Extension methodUndocumented
Declaration
Swift
public protocol CartDataManager: DataManager -
adjustmentCartRequest(forPath:parameters:)Extension methodUndocumented
Declaration
Swift
public protocol CartDataManager: DataManager -
shippingOptionsCartRequest(forPath:)Extension methodUndocumented
Declaration
Swift
public protocol CartDataManager: DataManager
CartDataManager Protocol Reference