Interface CreditExpirationService
- All Known Implementing Classes:
DefaultCreditExpirationService
public interface CreditExpirationService
The service that is used to process the expired credit transactions.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionprocessExpiredTransactions
(CreditAccount creditAccount, ExpirationSourceInfo expirationSourceInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction with theDefaultTransactionSubType.EXPIRATION
sub-type, addsTransaction.getRelatedTransactionDetails()
to the expiring credit transaction, sets theTransaction.getAmountRemaining()
of the expired transaction to zero, and subtracts the amount remaining from the credit account balance.void
processExpiredTransactions
(List<Transaction> expiredTransactions, ExpirationSourceInfo expirationSourceInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction with theDefaultTransactionSubType.EXPIRATION
sub-type, addsTransaction.getRelatedTransactionDetails()
to the expiring credit transaction, sets theTransaction.getAmountRemaining()
of the expired transaction to zero, and subtracts the amount remaining from the credit account balance.
-
Method Details
-
processExpiredTransactions
void processExpiredTransactions(List<Transaction> expiredTransactions, ExpirationSourceInfo expirationSourceInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction with theDefaultTransactionSubType.EXPIRATION
sub-type, addsTransaction.getRelatedTransactionDetails()
to the expiring credit transaction, sets theTransaction.getAmountRemaining()
of the expired transaction to zero, and subtracts the amount remaining from the credit account balance.- Parameters:
expiredTransactions
- the expired transactionsexpirationSourceInfo
- Information about the reason for the expirationcontextInfo
- Context information related to multitenancy
-
processExpiredTransactions
CreditAccount processExpiredTransactions(CreditAccount creditAccount, ExpirationSourceInfo expirationSourceInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates the debit transaction with theDefaultTransactionSubType.EXPIRATION
sub-type, addsTransaction.getRelatedTransactionDetails()
to the expiring credit transaction, sets theTransaction.getAmountRemaining()
of the expired transaction to zero, and subtracts the amount remaining from the credit account balance.- Parameters:
creditAccount
- the credit accountexpirationSourceInfo
- Information about the reason for the expirationcontextInfo
- Context information related to multitenancy- Returns:
- The updated
CreditAccount
-