Class CartOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<Tuple<String,String>>
com.microsoft.store.partnercenter.carts.CartOperations
- All Implemented Interfaces:
ICart,IEntityGetOperations<Cart>,IEntityPutOperations<Cart>,IPartnerComponent<Tuple<String,String>>
public class CartOperations extends BasePartnerComponent<Tuple<String,String>> implements ICart
Cart collection operations implementation class.
-
Constructor Summary
Constructors Constructor Description CartOperations(IPartner rootPartnerOperations, String customerId, String cartId)Initializes a new instance of the CartOperations 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
-
CartOperations
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
Checkouts the cart. -
get
Retrieves a customer cart.- Specified by:
getin interfaceIEntityGetOperations<Cart>- Returns:
- The required cart object.
-
put
Updates an existing cart.- Specified by:
putin interfaceIEntityPutOperations<Cart>- Parameters:
cart- The cart to update.- Returns:
- The updated cart object.
-