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 void
checkContainsOneTimeOrderItem
(org.apache.camel.Exchange exchange) This method is used to check if subscription contains OneTimeOrderItemstatic int
checkProperties
(SFItem sfItem, int period) This method is used to set the preparationPeriod.static BigDecimal
getGiftItemQuantity
(List<PromotionGiftResponse> promotionGiftResponse, SkuResponse skuResp) This method is used to get Gift Item quantitystatic BigDecimal
getItemPriceFromSku
(SFItem sfItem) This method is used to get the item price details.static void
getSkuFromSFItem
(SFItem sfItem, ItemRequest item) This method is used to set the sku details.static String
getSystemCurrentDate
(String currentDateFormat, String timeZone) Returns system current datestatic float
parseFloat
(BigDecimal input) static int
static 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 aSFItem
instance, contains the item information
-
getSkuFromSFItem
This method is used to set the sku details.- Parameters:
sfItem
- Indicates aSFItem
instance, contains the item informationitem
- Indicates theItemRequest
, contains the item details.
-
checkProperties
This method is used to set the preparationPeriod.- Parameters:
sfItem
- Indicates aSFItem
instance, 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
-
-