CartOperations Class

Implements

public class CartOperations extends BasePartnerComponent<Tuple<String,String>> implements ICart

Cart collection operations implementation class.

Constructor Summary

Constructor Description
CartOperations(IPartner rootPartnerOperations, String customerId, String cartId)

Initializes a new instance of the CartOperations class.

Method Summary

Modifier and Type Method and Description
CartCheckoutResult checkout()

Checkouts the cart.

Cart get()

Retrieves a customer cart.

Cart put(Cart cart)

Updates an existing cart.

Inherited Members

BasePartnerComponent<TContext>.getContext() BasePartnerComponent<TContext>.getPartner() java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

CartOperations

public CartOperations(IPartner rootPartnerOperations, String customerId, String cartId)

Initializes a new instance of the CartOperations class.

Parameters:

rootPartnerOperations - The root partner operations instance.
customerId - Identifier for the customer.
cartId - Identifier for the cart.

Method Details

checkout

public CartCheckoutResult checkout()

Checkouts the cart.

Returns:

The cart checkout result.

get

public Cart get()

Retrieves a customer cart.

Returns:

The required cart object.

put

public Cart put(Cart cart)

Updates an existing cart.

Parameters:

cart - The cart to update.

Returns:

The updated cart object.

Applies to