public class BundleCartFacadeKeywords extends AbstractKeywordLibrary
| Constructor and Description |
|---|
BundleCartFacadeKeywords() |
| Modifier and Type | Method and Description |
|---|---|
void |
addProductToExistingBundle(java.lang.String productCode,
java.lang.String bundleTemplateId,
int bundleNo)
Java implementation of the robot keyword
|
void |
addProductToNewBundle(java.lang.String productCode,
java.lang.String bundleTemplateId)
Java implementation of the robot keyword
|
void |
addQuantityOfProductsToExistingBundle(long quantity,
java.lang.String productCode,
java.lang.String bundleTemplateId,
int bundleNo)
Java implementation of the robot keyword
|
void |
addTwoProductsToExistingBundle(java.lang.String productCode1,
java.lang.String bundleTemplateId1,
java.lang.String productCode2,
java.lang.String bundleTemplateId2,
int bundleNo)
Java implementation of the robot keyword
|
void |
addTwoProductsToNewBundle(java.lang.String productCode1,
java.lang.String bundleTemplateId1,
java.lang.String productCode2,
java.lang.String bundleTemplateId2)
Java implementation of the robot keyword
|
void |
deleteCartBundle(int bundleNo)
Java implementation of the robot keyword
|
void |
replaceBundleProduct(java.lang.String componentId,
java.lang.String productCode,
int bundleNo)
Removes content of bundle item in cart with given product.
|
void |
verifySessionCartIsValid()
Java implementation of the robot keyword
|
public void addProductToNewBundle(java.lang.String productCode,
java.lang.String bundleTemplateId)
add product "${productCode1}" for component "${bundleTemplateId1}"
productCode - Product to add as a codebundleTemplateId - Component as bundleTemplateIdpublic void addProductToExistingBundle(java.lang.String productCode,
java.lang.String bundleTemplateId,
int bundleNo)
add product "${productCode1}" for component "${bundleTemplateId1}" to bundle "${bundleNo}"
productCode - Product to add as a codebundleTemplateId - Component as bundleTemplateIdbundleNo - Bundle number (-1=create new bundle; 0=standalone product/no bundle; >0=number of existing bundle)public void replaceBundleProduct(java.lang.String componentId,
java.lang.String productCode,
int bundleNo)
throws CommerceCartModificationException
componentId - component idproductCode - code of product to replace withbundleNo - index of bundle in cartCommerceCartModificationExceptionpublic void addTwoProductsToNewBundle(java.lang.String productCode1,
java.lang.String bundleTemplateId1,
java.lang.String productCode2,
java.lang.String bundleTemplateId2)
add product "${productCode1}" for component "${bundleTemplateId1}" and product "${productCode2}" for component "${bundleTemplateId2}"
productCode1 - Product one to add as a codebundleTemplateId1 - Component one as bundleTemplateIdproductCode2 - Product two to add as a codebundleTemplateId2 - Component two as bundleTemplateIdpublic void addTwoProductsToExistingBundle(java.lang.String productCode1,
java.lang.String bundleTemplateId1,
java.lang.String productCode2,
java.lang.String bundleTemplateId2,
int bundleNo)
add product "${productCode1}" for component "${bundleTemplateId1}" and product "${productCode2}" for component "${bundleTemplateId2}" to bundle "${bundleNo}"
productCode1 - Product one to add as a code *bundleTemplateId1 - Component one as bundleTemplateIdproductCode2 - Product one to add as a codebundleTemplateId2 - Component two as bundleTemplateIdbundleNo - Bundle number(-1=create new bundle; >0=number of existing bundle; 0=standalone product/no bundle is not allowed here)public void deleteCartBundle(int bundleNo)
delete bundle "${bundleNo}" from cart
bundleNo - Bundle number to be deleted from the cartpublic void verifySessionCartIsValid()
check the session cart with added bundle is valid
public void addQuantityOfProductsToExistingBundle(long quantity,
java.lang.String productCode,
java.lang.String bundleTemplateId,
int bundleNo)
add "${quantity}" items of product "${productCode}" for component "${bundleTemplateId}" to bundle "${bundleNo}"
quantity - Quantity of product items to add (must be 1)productCode - Product one to add as a code *bundleNo - Bundle number(-1=create new bundle; >0=number of existing bundle; 0=standalone product/no bundle is not allowed here)Copyright © 2018 SAP SE. All Rights Reserved.