public interface BundleCartFacade
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CartModificationData> |
addToCart(java.lang.String productCode1,
int bundleNo,
java.lang.String bundleTemplateId1,
java.lang.String productCode2,
java.lang.String bundleTemplateId2)
Deprecated.
Since 6.4 - The products can be added in two separate calls.
|
CartModificationData |
addToCart(java.lang.String productCode,
long quantity,
int groupNumber)
Add a product to an existing bundle.
|
java.util.List<CartModificationData> |
addToCart(java.lang.String productCode,
long quantity,
int bundleNo,
java.lang.String bundleTemplateId,
boolean removeCurrentProducts)
Deprecated.
Since 6.4 - Use
startBundle(String, String, long)
or addToCart(String, long, int) |
void |
deleteCartBundle(int bundleNo)
Deprecated.
Since 6.4 - use
CartFacade.removeEntryGroup(Integer) |
ProductSearchPageData<SearchStateData,ProductData> |
getAllowedProducts(java.lang.Integer groupNumber,
java.lang.String searchQuery,
PageableData pageableData)
Constructs pageable list of products available for entry group of type
GroupType.CONFIGURABLEBUNDLE |
boolean |
isCartValid()
Deprecated.
Since 6.4
|
CartModificationData |
startBundle(java.lang.String bundleTemplateId,
java.lang.String productCode,
long quantity)
Start new bundle in cart based on the given bundle template and add the product to it.
|
CartModificationData startBundle(java.lang.String bundleTemplateId, java.lang.String productCode, long quantity) throws CommerceCartModificationException
bundleTemplateId - a component to add the product to. He whole bundle structure
- starting from the root of the component - will be added to cart groupsproductCode - a product which will be added to the componentquantity - quantity for the product. Is limited by selection criteria of the componentCommerceCartModificationException - if the operation is not possibleEntryGroup,
BundleSelectionCriteriaCartModificationData addToCart(java.lang.String productCode, long quantity, int groupNumber) throws CommerceCartModificationException
productCode - product to addquantity - quantity of the productgroupNumber - entry group number, that defines the bundle and the component within the bundleCommerceCartModificationException - if the operation is not possibleEntryGroup@Deprecated java.util.List<CartModificationData> addToCart(java.lang.String productCode, long quantity, int bundleNo, java.lang.String bundleTemplateId, boolean removeCurrentProducts) throws CommerceCartModificationException
startBundle(String, String, long)
or addToCart(String, long, int)quantity to the cart. If an entry with the
given product exists in the cart already, then the given quantity is added to the quantity of this
cart entry. Dependent on the parameter bundleNo the product is added to an existing or new bundle or
treated as a standalone product. In case a new bundle is created the method also adds auto-pick products to the
cart if there are any setup for the bundle template. After this the multi-cart is calculated.productCode - the product id that will be added to the cartquantity - the quantity of the productbundleNo - indicates to which bundle the product shall be added (-1=create new bundle; 0=standalone product/no
bundle; >0=number of existing bundle)bundleTemplateId - The bundletemplate id to add the product toremoveCurrentProducts - whether to remove existing products in that componentCartModificationDataCommerceCartModificationException@Deprecated java.util.List<CartModificationData> addToCart(java.lang.String productCode1, int bundleNo, java.lang.String bundleTemplateId1, java.lang.String productCode2, java.lang.String bundleTemplateId2) throws CommerceCartModificationException
productCode1 and productcode2 to multi-cart as new cart entries. As
this method works for bundles only, both products must have a bundle template and must be part of an existing
bundle or a new bundle that is created during the addToCart. In case a new bundle is created the method also adds
auto-pick products to the cart if there are any setup for the bundle template. After this the multi-cart is
calculated.productCode1 - the first product id that will be added to the cartbundleNo - indicates to which bundle the product model shall be added (-1=create new bundle; >0=number of existing
bundle; 0=standalone product/no bundle is not allowed here)bundleTemplateId1 - current version of the bundleTemplate id based on which the first product is added to the cart. It will
be stored on the cart entry.productCode2 - the second product id that will be added to the cartbundleTemplateId2 - current version of the bundleTemplate id based on which the second product is added to the cart. It will
be stored on the cart entry.CartModificationDataCommerceCartModificationException@Deprecated
void deleteCartBundle(int bundleNo)
throws CommerceCartModificationException
CartFacade.removeEntryGroup(Integer)bundleNo - bundleNo in cartCommerceCartModificationException@Deprecated boolean isCartValid()
true if the session cart is valid, otherwise falseProductSearchPageData<SearchStateData,ProductData> getAllowedProducts(java.lang.Integer groupNumber, java.lang.String searchQuery, PageableData pageableData)
GroupType.CONFIGURABLEBUNDLEgroupNumber - entry group number related to the componentsearchQuery - the search querypageableData - the page to returnjava.lang.IllegalArgumentException - if group is not found or group type is not GroupType.CONFIGURABLEBUNDLECopyright © 2018 SAP SE. All Rights Reserved.