public interface SubscriptionCommerceCartService extends CommerceCartService
| Modifier and Type | Method and Description |
|---|---|
CommerceCartModification |
addToCart(CartModel masterCartModel,
ProductModel productModel,
long quantityToAdd,
UnitModel unit,
boolean forceNewEntry,
java.lang.String xmlProduct)
Deprecated.
Since 6.4
|
CommerceCartModification |
addToCart(CartModel masterCartModel,
ProductModel productModel,
long quantityToAdd,
UnitModel unit,
boolean forceNewEntry,
java.lang.String xmlProduct,
java.lang.String originalSubscriptionId,
AbstractOrderEntryModel originalEntry)
Deprecated.
Since 5.2 (see BIT-168)
|
void |
checkMasterCart(CartModel cartModel,
BillingTimeModel masterCartBillingTimeModel)
Checks if given cart is a master cart and if its billing time is correct.
|
void |
checkQuantityToAdd(long quantityToAdd)
Checks if given quantity can be added.
|
CartModel |
createChildCartForBillingTime(CartModel masterCart,
BillingTimeModel billFreq)
Creates child cart for given master cart and billing time.
|
java.util.List<BillingTimeModel> |
getBillingFrequenciesForMasterEntry(AbstractOrderEntryModel entry) |
CartModel |
getChildCartForBillingTime(CartModel masterCart,
BillingTimeModel billFreq)
Get the child cart for the given
BillingTimeModel, if any. |
java.lang.String |
getMasterCartBillingTimeCode()
Get the billing frequency code for the master cart.
|
CartModel |
getMasterCartForCartEntry(CartEntryModel cartEntryModel)
Get the master cart for the given
cartEntryModel. |
addToCart, addToCart, addToCart, calculateCart, calculateCart, configureCartEntry, estimateTaxes, estimateTaxes, getCartForCodeAndUser, getCartForGuidAndSite, getCartForGuidAndSiteAndUser, getCartsForSiteAndUser, mergeCarts, recalculateCart, recalculateCart, removeAllEntries, removeAllEntries, removeEntryGroup, removeStaleCarts, removeStaleCarts, restoreCart, restoreCart, split, split, updateCartMetadata, updatePointOfServiceForCartEntry, updatePointOfServiceForCartEntry, updateQuantityForCartEntry, updateQuantityForCartEntry, updateToShippingModeForCartEntry, updateToShippingModeForCartEntry, validateCart, validateCart@Deprecated CommerceCartModification addToCart(CartModel masterCartModel, ProductModel productModel, long quantityToAdd, UnitModel unit, boolean forceNewEntry, java.lang.String xmlProduct, java.lang.String originalSubscriptionId, AbstractOrderEntryModel originalEntry) throws CommerceCartModificationException
masterCartModel - master cartproductModel - the ProductModel to addquantityToAdd - the quantity to addunit - the UnitModel of the productforceNewEntry - the flag for creating a newxmlProduct - originalSubscriptionId - originalEntry - CommerceCartModificationException@Deprecated CommerceCartModification addToCart(CartModel masterCartModel, ProductModel productModel, long quantityToAdd, UnitModel unit, boolean forceNewEntry, java.lang.String xmlProduct) throws CommerceCartModificationException
masterCartModel - master cartproductModel - the ProductModel to addquantityToAdd - the quantity to addunit - the UnitModel of the productforceNewEntry - the flag for creating a newxmlProduct - CommerceCartModificationExceptionCartModel 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.java.lang.String getMasterCartBillingTimeCode()
void checkMasterCart(CartModel cartModel, BillingTimeModel masterCartBillingTimeModel) throws java.lang.IllegalArgumentException, CommerceCartModificationException
cartModel - CartModel to be checkedmasterCartBillingTimeModel - java.lang.IllegalArgumentException - if given cart is not a master cartCommerceCartModificationException - if billing time is not correctvoid checkQuantityToAdd(long quantityToAdd)
throws CommerceCartModificationException
quantityToAdd - CommerceCartModificationException - If given quantity is not allowed to add.java.util.List<BillingTimeModel> getBillingFrequenciesForMasterEntry(AbstractOrderEntryModel entry)
entry - AbstractOrderEntryModel to get list of billing frequencies forBillingTimeModelsCartModel createChildCartForBillingTime(CartModel masterCart, BillingTimeModel billFreq)
masterCart - CartModel representing master cart for which child cart should be createdbillFreq - BillingTimeModel for child cartCopyright © 2018 SAP SE. All Rights Reserved.