Class OrderHelperExtended

java.lang.Object
com.skava.oms.helper.OrderHelperExtended
Direct Known Subclasses:
OrderHelper

@Component public class OrderHelperExtended extends Object
The class contains the helper for order
Author:
Infosys Equinox
  • Field Details

  • 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 entity
      parentOrderStatuses -
      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 name
      refinedProperties - Indicates list ofcollection properties
      Returns:
      Returns Collection property
    • checkOrderTypesValidation

      public void checkOrderTypesValidation(String orderType)
      This method is used to check order type is valid or not
      Parameters:
      orderType - Indicates the string value.
    • getOtherChargesIncludingTax

      public static BigDecimal getOtherChargesIncludingTax(BigDecimal mathOtherChargesIncludingTax)
      This method is used to get Other charged value including tax
      Parameters:
      mathOtherChargesIncludingTax - holds other charges including tax value
      Returns:
      BigDecimal calculated value
    • createLockOrderRequest

      public LockOrderRequest createLockOrderRequest(long collectionId, String parentOrderId)
      This method is used to create lock order request
      Parameters:
      collectionId - - Indicates collection id
      parentOrderId - - Indicates parent order id
      Returns:
      It returns the LockOrderRequest associated to the input request.
    • releaseOrder

      public void releaseOrder(Order parentOrder)
      This method is used to release parent order
      Parameters:
      parentOrder - Indicates the parent order
    • lockParentOrder

      public Order lockParentOrder(long collectionid, String parentorderid)
      This method is used to lock parent order
      Parameters:
      collectionid - Indicates the collection id
      parentorderid - Indicates the parent order id
      Returns:
      Returns parent order