The following table describes the collection properties for the Cart microservice.
S. No. | Attribute | Default Value | Description |
---|---|---|---|
1 | allowedEventName | createCart,updateCart,deleteCart,createCartItem,updateCartItem,deleteCartItem,createCartPayment,updateCartPayment,deleteCartPayment,createCartPromotion,updateCartPromotion,deleteCartPromotion | List of possible actions for which events are triggered. The possible values are createCart , updateCart , deleteCart , createCartItem , updateCartItem , deleteCartItem , createCartPayment , updateCartPayment , deleteCartPayment , createCartPromotion , updateCartPromotion , and deleteCartPromotion . |
2 | allowGuest | True | Guest users can add products to cart only when it is set to true . The possible values are true and false . |
3 | allowGuestCheckout | True | Guest users can check out products added to cart only when it is set to true . The possible values are true and false . |
4 | allowPriceOverride | True | Indicates the price which can be overriden when set to true. |
5 | maxBagCount | 50 | Contains the maximum number of items that can be added to a shopping cart at a time. |
6 | cartCheckoutPlugin | com.skava.cart.checkout.strategyimpl.DefaultCheckoutStrategyServiceImpl | A plugin that contains the validation and calculation logic for the cart. |
7 | requiredBundleMainProduct | false | Indicates that the bundle product should have at least one main product when it is set to true . The possible values are true and false . |
8 | requiredBundleMandatoryProduct | false | Indicates that the bundle product should have at least one mandatory product when it is set to true . The possible values are true and false . |
9 | cartShippingValidators | com.skava.cart.validator.CartShippingValidator.class | Indicates a class, which contains the validations while adding shipping details in a cart and cart item(s). |
10 | cartValidators | com.skava.cart.validator.CartValidator.class | Indicates a class, which contains the validations on a cart. |
11 | cartPropertiesValidators | com.skava.cart.validator.CartPropertiesValidator.class | Specifies a class, which contains the validations while adding custom cart properties. |
12 | cartPromotionValidators | com.skava.cart.validator.CartPromotionValidator.class | Specifies a class, which contains the validations while adding promotion(s) in a cart. |
13 | cartPaymentValidators | com.skava.cart.validator.CartPaymentValidator.class | Indicates a class, which contains the validations during payment operations in a cart. |
14 | cartMergeValidators | com.skava.cart.validator.CartMergeValidator.class | Specifies a class, which contains the validations while merging a cart. |
15 | cartItemValidators | com.skava.cart.validator.CartItemValidator.class | Specifies a class, which contains the validations on cart item(s). |
16 | cartItemPropertiesValidators | com.skava.cart.validator.CartItemPropertiesValidator.class | Indicates a class, which contains the validations on cart item(s) properties. |
17 | cartCommunicationPreferenceValidators | com.skava.cart.validator.CartCommunicationPreferenceValidator.class | Indicates a class, which contains the validations on contact preference of a cart. |
18 | cartAddressValidators | com.skava.cart.validator.CartAddressValidator.class | Indicates a class, which contains the validations while adding address details in a cart and cart item(s). |
19 | customchargesconfiguration | {"name":"csrdefinedcharges","configuration":[{"name":"displayName","type":"String"},{"name":"chargeAgainst","type":"List","values":"RETURNS, SALES, BOTH"},{"name":"chargeValue","type":"Number"},{"name":"taxable","type":"Boolean"}],"definition":{"type":"ORDER","chargeType":"FLAT","chargeSource":null,"chargeValueOverridable":true,"waivedByDefault":true,"waiveOverridable":true}} | This attribute holds the other charges configuration, which can be customized based on the business need. |
20 | otherchargesconfiguration |
| This attribute holds the configuration details of other charges of a cart. |
21 | returnwindowconfiguration | [ | This attribute holds a list of return window configurations of each order. |
Revision History
2020-01-14 | AM – Content updated for February 2020 release.
2019-06-08 | PLK – Minor copyedits.
2019-05-05 | PLK – Updated to a new table tool.
2019-04-17 | AN – Content updated for the April 2019 release.
2019-01-21 | PLK – Page created and content uploaded.