Package com.skava.oms.helper
Class OrderHelperExtended
java.lang.Object
com.skava.oms.helper.OrderHelperExtended
- Direct Known Subclasses:
OrderHelper
The class contains the helper for order
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionAttributeRepository
collection Attribute Repositoryprotected GetLockOrderServiceImpl
To lock and get the locked order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOrderTypesValidation
(String orderType) This method is used to check order type is valid or notcreateLockOrderRequest
(long collectionId, String parentOrderId) This method is used to create lock order requestgetCollectionPropAllowedStatus
(Collection collection, String[] parentOrderStatuses) This method is used to get status from the collection property - orderConfigurationsstatic CollectionProperties
getDefaultPropertyValue
(String propName, CollectionProperties[] refinedProperties) This method is used to get default property valuestatic BigDecimal
getOtherChargesIncludingTax
(BigDecimal mathOtherChargesIncludingTax) This method is used to get Other charged value including taxlockParentOrder
(long collectionid, String parentorderid) This method is used to lock parent ordervoid
releaseOrder
(Order parentOrder) This method is used to release parent order
-
Field Details
-
collectionAttributeRepository
collection Attribute Repository -
getOrderLock
To lock and get the locked order
-
-
Constructor Details
-
OrderHelperExtended
protected OrderHelperExtended()The Order Helper
-
-
Method Details
-
getCollectionPropAllowedStatus
public List<String> getCollectionPropAllowedStatus(Collection collection, String[] parentOrderStatuses) This method is used to get status from the collection property - orderConfigurations- Parameters:
collection
- Indicates the collection entityparentOrderStatuses
-- Returns:
- Returns string value.
-
getDefaultPropertyValue
public static CollectionProperties getDefaultPropertyValue(String propName, CollectionProperties[] refinedProperties) This method is used to get default property value- Parameters:
propName
- Indicates property namerefinedProperties
- Indicates list ofcollection properties- Returns:
- Returns Collection property
-
checkOrderTypesValidation
This method is used to check order type is valid or not- Parameters:
orderType
- Indicates the string value.
-
getOtherChargesIncludingTax
This method is used to get Other charged value including tax- Parameters:
mathOtherChargesIncludingTax
- holds other charges including tax value- Returns:
- BigDecimal calculated value
-
createLockOrderRequest
This method is used to create lock order request- Parameters:
collectionId
- - Indicates collection idparentOrderId
- - Indicates parent order id- Returns:
- It returns the
LockOrderRequest
associated to the input request.
-
releaseOrder
This method is used to release parent order- Parameters:
parentOrder
- Indicates the parent order
-
lockParentOrder
This method is used to lock parent order- Parameters:
collectionid
- Indicates the collection idparentorderid
- Indicates the parent order id- Returns:
- Returns parent order
-