Package com.skava.oms.util
Class PaymentFlowUtil
java.lang.Object
com.skava.oms.util.PaymentFlowUtil
- Author:
- Infosys Equinox
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkItemStatus
(org.camunda.bpm.engine.delegate.DelegateExecution execution, Payment[] payments) This method is used to check for the payment item statusstatic 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 codestatic int
getMaxPaymentRetryCount
(org.camunda.bpm.engine.delegate.DelegateExecution execution) Fetches the maximum payment retry countstatic int
getPaymentRetryCount
(org.camunda.bpm.engine.delegate.DelegateExecution execution) Fetches the current payment retry countstatic String
getUserInfo
(Order order) Fetches the userId messagestatic boolean
paymentFailed
(org.camunda.bpm.engine.delegate.DelegateExecution execution) Checks for the payment failed statusstatic boolean
paymentPending
(org.camunda.bpm.engine.delegate.DelegateExecution execution) Checks for the payment pending statusstatic boolean
paymentTransactionFailed
(org.camunda.bpm.engine.delegate.DelegateExecution execution) Checks for the payment transaction failed statusstatic void
processRetry
(org.camunda.bpm.engine.delegate.DelegateExecution execution, Order order) Updates the values for payment retry
-
Field Details
-
PAYMENT_REVIEW_LONG_WAITING
The constant PAYMENT_REVIEW_LONG_WAITING- See Also:
-
PAYMENT_REVIEW_SHORT_WAITING
The constant PAYMENT_REVIEW_SHORT_WAITING- See Also:
-
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
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:
-