The following table describes the collection properties for the Cart microservice.

S. No.AttributeDefault ValueDescription
1allowedEventNamecreateCart,updateCart,deleteCart,createCartItem,updateCartItem,deleteCartItem,createCartPayment,updateCartPayment,deleteCartPayment,createCartPromotion,updateCartPromotion,deleteCartPromotionList 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.
2allowGuestTrueGuest users can add products to cart only when it is set to true. The possible values are true and false.
3allowGuestCheckoutTrueGuest users can check out products added to cart only when it is set to true. The possible values are true and false.
4allowPriceOverrideTrueIndicates the price which can be overriden when set to true.
5maxBagCount50Contains the maximum number of items that can be added to a shopping cart at a time.
6cartCheckoutPlugin com.skava.cart.checkout.strategyimpl.DefaultCheckoutStrategyServiceImplA plugin that contains the validation and calculation logic for the cart.
7requiredBundleMainProduct falseIndicates that the bundle product should have at least one main product when it is set to true. The possible values are true and false.
8requiredBundleMandatoryProductfalseIndicates that the bundle product should have at least one mandatory product when it is set to true. The possible values are true and false.
9cartShippingValidatorscom.skava.cart.validator.CartShippingValidator.class Indicates a class, which contains the validations while adding shipping details in a cart and cart item(s).
10cartValidatorscom.skava.cart.validator.CartValidator.class Indicates a class, which contains the validations on a cart.
11cartPropertiesValidatorscom.skava.cart.validator.CartPropertiesValidator.class Specifies a class, which contains the validations while adding custom cart properties.
12cartPromotionValidatorscom.skava.cart.validator.CartPromotionValidator.classSpecifies a class, which contains the validations while adding promotion(s) in a cart.
13cartPaymentValidatorscom.skava.cart.validator.CartPaymentValidator.class Indicates a class, which contains the validations during payment operations in a cart.
14cartMergeValidatorscom.skava.cart.validator.CartMergeValidator.class Specifies a class, which contains the validations while merging a cart.
15cartItemValidatorscom.skava.cart.validator.CartItemValidator.classSpecifies a class, which contains the validations on cart item(s).
16cartItemPropertiesValidatorscom.skava.cart.validator.CartItemPropertiesValidator.classIndicates a class, which contains the validations on cart item(s) properties.
17cartCommunicationPreferenceValidatorscom.skava.cart.validator.CartCommunicationPreferenceValidator.classIndicates a class, which contains the validations on contact preference of a cart.
18cartAddressValidatorscom.skava.cart.validator.CartAddressValidator.classIndicates a class, which contains the validations while adding address details in a cart and cart item(s).
19customchargesconfiguration{"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.
20otherchargesconfiguration
[
{
"name": "deductshipping",
"displayName": "Deduct Shipping Charge",
"type": "CART",
"chargeAgainst": "RETURNS",
"chargeType": "PERCENTAGE",
"chargeSource": "SHIPPING",
"chargeValue": -5,
"chargeValueOverridable": true,
"waivedByDefault": false,
"waiveOverridable": true,
"taxable": false,
"description": ""
},
{
"name": "restockingfees",
"displayName": "Restocking Fees",
"type": "ITEM",
"chargeAgainst": "ITEM",
"chargeType": "FLAT",
"chargeSource": null,
"chargeValue": -2.00,
"chargeValueOverridable": true,
"waivedByDefault": false,
"waiveOverridable": true,
"taxable": false,
"description": ""
}
]
This attribute holds the configuration details of other charges of a cart.
21returnwindowconfiguration[
{
"name": "Return Window 1",
"description": "Zero Deduction",
"startDuration": 0,
"endDuration": 30,
"deductionPercentage": 0
},
{
"name": "Return Window 2",
"desc": "Partial Deduction",
"startDuration": 31,
"endDuration": 60,
"deductionPercentage": 50
},
{
"name": "Return Window 3",
"desc": "Full Deduction",
"startDuration": 61,
"endDuration": 365,
"deductionPercentage": 100
}
]
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.