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 voidUpdates 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 theCartCheckoutmodel for converting- Returns:
- Returns orchestration
SFCartmodel object
-
transformFromSFCart
This method is used to transform the cart checkout model into orchestration Cart model.- Parameters:
sfCart- Indicates theSFCartmodel for converting- Returns:
- Returns orchestration
CartCheckoutmodel 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.
-