public interface SubscriptionCommerceCartService
| Modifier and Type | Method and Description |
|---|---|
CommerceCartModification |
addToCart(CartModel masterCartModel,
ProductModel productModel,
long quantityToAdd,
UnitModel unit,
boolean forceNewEntry,
String xmlProduct) |
CommerceCartModification |
addToCart(CartModel masterCartModel,
ProductModel productModel,
long quantityToAdd,
UnitModel unit,
boolean forceNewEntry,
String xmlProduct,
String originalSubscriptionId,
AbstractOrderEntryModel originalEntry)
Deprecated.
|
CartModel |
getChildCartForBillingTime(CartModel masterCart,
BillingTimeModel billFreq)
Get the child cart for the given
BillingTimeModel, if any. |
String |
getMasterCartBillingTimeCode()
Get the billing frequency code for the master cart.
|
CartModel |
getMasterCartForCartEntry(CartEntryModel cartEntryModel)
Get the master cart for the given
cartEntryModel. |
CommerceCartModification |
updateQuantityForCartEntry(CartModel cartModel,
long entryNumber,
long newQuantity)
Update quantity for the cart entry with given
entryNumber with the given newQuantity. |
@Deprecated CommerceCartModification addToCart(CartModel masterCartModel, ProductModel productModel, long quantityToAdd, UnitModel unit, boolean forceNewEntry, String xmlProduct, String originalSubscriptionId, AbstractOrderEntryModel originalEntry) throws CommerceCartModificationException
CommerceCartModificationExceptionCommerceCartModification addToCart(CartModel masterCartModel, ProductModel productModel, long quantityToAdd, UnitModel unit, boolean forceNewEntry, String xmlProduct) throws CommerceCartModificationException
CommerceCartModificationExceptionCommerceCartModification updateQuantityForCartEntry(CartModel cartModel, long entryNumber, long newQuantity) throws CommerceCartModificationException
entryNumber with the given newQuantity.
Then cart is calculated.cartModel - the CartModel that we will perform update onentryNumber - the entry number that will be updatednewQuantity - the new quantity that will be set for specified cart entryCommerceCartModificationException - if the product is a base product OR the quantity is less than 1 or no usable unit was
found (only when given unit is also null) or any other reason the cart could
not be modified.CartModel getMasterCartForCartEntry(CartEntryModel cartEntryModel)
cartEntryModel. The cartEntryModel may be a master or
child cart entry.cartEntryModel - the CartEntryModel whose master CartModel is searchedcartEntryModel's master CartModelCartModel getChildCartForBillingTime(CartModel masterCart, BillingTimeModel billFreq)
BillingTimeModel, if any.masterCart - the CartModel of the master cartbillFreq - the BillingTimeModel to look forCartModel for the given BillingTimeModel or null.String getMasterCartBillingTimeCode()
Copyright © 2017 SAP SE. All Rights Reserved.