Package com.skava.cart.mapper
Interface CartModelMapper
public interface CartModelMapper
The Interface CartModelMapper
An interface to define the account related models mapping.- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptioncartItemToGiftItem
(SFItem item) This method is used to transform the cart item to gift itemtransformFromSFCart
(SFCart sfCart) This method is used to transform the cart checkout model into orchestration Cart model.transformToSFCart
(CartCheckout cartCheckout) This method is used to transform the cart checkout model into orchestration Cart model.transformToSkuType
(CheckoutSku.TypeEnum skuType) transformToSkuType
(SkuType skuType) transformToSubSkuType
(SkuType skuType) default void
Updates Type and subtype in the SKU
-
Method Details
-
transformToSFCart
This method is used to transform the cart checkout model into orchestration Cart model.- Parameters:
cartCheckout
- Indicates theCartCheckout
model for converting- Returns:
- Returns orchestration
SFCart
model object
-
transformFromSFCart
This method is used to transform the cart checkout model into orchestration Cart model.- Parameters:
sfCart
- Indicates theSFCart
model for converting- Returns:
- Returns orchestration
CartCheckout
model object
-
transformFromSFSku
-
transformToSkuType
-
transformToSubSkuType
-
transformToSkuType
-
transformToSubSkuType
-
cartItemToGiftItem
This method is used to transform the cart item to gift item- Parameters:
item
- -indicates the cart item- Returns:
- returns giftItem
-
updatePrice
Updates Type and subtype in the SKU- Parameters:
sku
- Indicates aSkuOrchestration
, contains the response of a SKU, such as identifier, status, etc.
-