public interface AlternativePaymentOrderStatusService
Existing methods operate on both order and transaction level.
Modifier and Type | Method and Description |
---|---|
IsvPaymentTransactionModel |
getAlternativePaymentTransaction(AbstractOrderModel order)
Returns alternative payment transaction for provided order (the payment provider is ALTERNATIVE_PAYMENT or PAY_PAL).
|
IsvPaymentTransactionEntryModel |
getAlternativePaymentTransactionEntry(IsvPaymentTransactionModel transaction)
Returns latest alternative payment transaction entry for provided transaction.
|
int |
getExistingCheckStatusAttempts(IsvPaymentTransactionModel transaction)
Returns the counter that reflects how many times alternative payment status
was checked on transaction.
|
CheckStatusDecision |
shouldRunCheckStatus(IsvPaymentTransactionModel transaction)
Determines if there is a need to run or skip the check status request
|
void |
updateOrderByPaymentStatus(AbstractOrderModel order,
IsvAlternativePaymentStatus alternativePaymentStatus)
Updates order status to provided value.
|
CheckStatusDecision shouldRunCheckStatus(IsvPaymentTransactionModel transaction)
transaction
- transaction to checkvoid updateOrderByPaymentStatus(AbstractOrderModel order, IsvAlternativePaymentStatus alternativePaymentStatus)
order
- order to updatealternativePaymentStatus
- status to setIsvPaymentTransactionModel getAlternativePaymentTransaction(AbstractOrderModel order)
order
- to look for transactionIsvPaymentTransactionEntryModel getAlternativePaymentTransactionEntry(IsvPaymentTransactionModel transaction)
transaction
- to look for transaction entryint getExistingCheckStatusAttempts(IsvPaymentTransactionModel transaction)
transaction
- alternative payment transaction