Class PaymentFlowUtil

java.lang.Object
com.skava.oms.util.PaymentFlowUtil

public final class PaymentFlowUtil extends Object
Author:
Infosys Equinox
  • Field Details

    • PAYMENT_REVIEW_LONG_WAITING

      public static final String PAYMENT_REVIEW_LONG_WAITING
      The constant PAYMENT_REVIEW_LONG_WAITING
      See Also:
    • PAYMENT_REVIEW_SHORT_WAITING

      public static final String PAYMENT_REVIEW_SHORT_WAITING
      The constant PAYMENT_REVIEW_SHORT_WAITING
      See Also:
    • INITIATE_INVENTORY

      public static final String INITIATE_INVENTORY
      The constant INITIATE_INVENTORY
      See Also:
  • Method Details

    • checkItemStatus

      public static void checkItemStatus(org.camunda.bpm.engine.delegate.DelegateExecution execution, Payment[] payments)
      This method is used to check for the payment item status
      Parameters:
      execution -
      payments -
    • checkStatus

      public static boolean checkStatus(org.camunda.bpm.engine.delegate.DelegateExecution execution, String responseCode, PaymentServiceTransaction.Status status)
      Checks if any payment transaction contains the given status and the response code
      Parameters:
      execution -
      responseCode -
      status -
      Returns:
    • paymentTransactionFailed

      public static boolean paymentTransactionFailed(org.camunda.bpm.engine.delegate.DelegateExecution execution)
      Checks for the payment transaction failed status
      Parameters:
      execution -
      Returns:
    • paymentFailed

      public static boolean paymentFailed(org.camunda.bpm.engine.delegate.DelegateExecution execution)
      Checks for the payment failed status
      Parameters:
      execution -
      Returns:
    • paymentPending

      public static boolean paymentPending(org.camunda.bpm.engine.delegate.DelegateExecution execution)
      Checks for the payment pending status
      Parameters:
      execution -
      Returns:
    • processRetry

      public static void processRetry(org.camunda.bpm.engine.delegate.DelegateExecution execution, Order order)
      Updates the values for payment retry
      Parameters:
      execution -
      order -
    • getUserInfo

      public static String getUserInfo(Order order)
      Fetches the userId message
      Parameters:
      order -
      Returns:
    • getPaymentRetryCount

      public static int getPaymentRetryCount(org.camunda.bpm.engine.delegate.DelegateExecution execution)
      Fetches the current payment retry count
      Parameters:
      execution -
      Returns:
    • getMaxPaymentRetryCount

      public static int getMaxPaymentRetryCount(org.camunda.bpm.engine.delegate.DelegateExecution execution)
      Fetches the maximum payment retry count
      Parameters:
      execution -
      Returns: