Package com.skava.subscription.helper
Class SubscriptionUtil
java.lang.Object
com.skava.subscription.helper.SubscriptionUtil
The Class SubscriptionUtil
This class is used to convert values.- Version:
- 8.6.0
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckContainsOneTimeOrderItem(org.apache.camel.Exchange exchange) This method is used to check if subscription contains OneTimeOrderItemstatic intcheckProperties(SFItem sfItem, int period) This method is used to set the preparationPeriod.static BigDecimalgetGiftItemQuantity(List<PromotionGiftResponse> promotionGiftResponse, SkuResponse skuResp) This method is used to get Gift Item quantitystatic BigDecimalgetItemPriceFromSku(SFItem sfItem) This method is used to get the item price details.static voidgetSkuFromSFItem(SFItem sfItem, ItemRequest item) This method is used to set the sku details.static StringgetSystemCurrentDate(String currentDateFormat, String timeZone) Returns system current datestatic floatparseFloat(BigDecimal input) static intstatic long
-
Method Details
-
parseInt
- Parameters:
input- a string value- Returns:
- a int value
-
parseLong
- Parameters:
input- a string value- Returns:
- a long value
-
parseFloat
- Parameters:
input- a BigDecimal value- Returns:
- a float value
-
getSystemCurrentDate
Returns system current date- Parameters:
currentDateFormat- It Refers to the current Date FormattimeZone- It Refers to the Time zone- Returns:
- time and date status
-
getItemPriceFromSku
This method is used to get the item price details.- Parameters:
sfItem- Indicates aSFIteminstance, contains the item information
-
getSkuFromSFItem
This method is used to set the sku details.- Parameters:
sfItem- Indicates aSFIteminstance, contains the item informationitem- Indicates theItemRequest, contains the item details.
-
checkProperties
This method is used to set the preparationPeriod.- Parameters:
sfItem- Indicates aSFIteminstance, contains the item information.period- Holds default int value prepartion period- Returns:
- int value.
-
getGiftItemQuantity
public static BigDecimal getGiftItemQuantity(List<PromotionGiftResponse> promotionGiftResponse, SkuResponse skuResp) This method is used to get Gift Item quantity- Parameters:
promotionGiftResponse- holds the list of promotion giftsskuResp- holds the sku response- Returns:
- giftItemQuantity holds the quantity of gift item
-
checkContainsOneTimeOrderItem
public static void checkContainsOneTimeOrderItem(org.apache.camel.Exchange exchange) This method is used to check if subscription contains OneTimeOrderItem- Parameters:
exchange-
-