-
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
completion
The 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
items
The cart items to add.
completion
The 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
items
The cart items to update.
completion
The 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
type
The type of adjustment.
code
The code of the adjustment.
completion
The 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
completion
The 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