Class CartCollectionOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.carts.CartCollectionOperations
- All Implemented Interfaces:
ICartCollection,IEntityCreateOperations<Cart,Cart>,IEntitySelector<String,ICart>,IPartnerComponent<String>,IPartnerComponentString
public class CartCollectionOperations extends BasePartnerComponentString implements ICartCollection
Cart collection operations implementation class.
-
Constructor Summary
Constructors Constructor Description CartCollectionOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CartCollectionOperations class. -
Method Summary
Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
CartCollectionOperations
Initializes a new instance of the CartCollectionOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- Identifier for the customer.
-
-
Method Details
-
byId
Obtains a specific cart behavior.- Specified by:
byIdin interfaceICartCollection- Specified by:
byIdin interfaceIEntitySelector<String,ICart>- Parameters:
cartId- Identifier for the cart.- Returns:
- The available cart operations.
-
create
Creates a new cart for the customer.- Specified by:
createin interfaceIEntityCreateOperations<Cart,Cart>- Parameters:
newCart- A cart item to be created.- Returns:
- The customer information that was just created.
-