CartCollectionOperations Class

Implements

public class CartCollectionOperations extends BasePartnerComponentString implements ICartCollection

Cart collection operations implementation class.

Constructor Summary

Constructor Description
CartCollectionOperations(IPartner rootPartnerOperations, String customerId)

Initializes a new instance of the CartCollectionOperations class.

Method Summary

Modifier and Type Method and Description
ICart byId(String cartId)

Obtains a specific cart behavior.

Cart create(Cart newCart)

Creates a new cart for the customer.

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

CartCollectionOperations

public CartCollectionOperations(IPartner rootPartnerOperations, String customerId)

Initializes a new instance of the CartCollectionOperations class.

Parameters:

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

Method Details

byId

public ICart byId(String cartId)

Obtains a specific cart behavior.

Parameters:

cartId - Identifier for the cart.

Returns:

The available cart operations.

create

public Cart create(Cart newCart)

Creates a new cart for the customer.

Parameters:

newCart - A cart item to be created.

Returns:

The customer information that was just created.

Applies to