Package org.cyclos.entities.banking
Interface TransactionWithInstallments<I extends Installment>
-
- All Superinterfaces:
HasAmount,HasCurrency,HasCurrencyAmount,HasTransactionNumber,IEntity,Trans
- All Known Implementing Classes:
RecurringPayment,ScheduledPayment
public interface TransactionWithInstallments<I extends Installment> extends Trans
A transaction that has installments
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IgetFirstScheduledInstallment()Returns the first installment whose status isInstallmentStatus.SCHEDULEDList<I>getInstallments()default IntegergetInstallmentsCount()default IgetLastProcessedInstallment()Returns the last installment whose status matchesisProcessed(Installment)default intgetProcessedInstallments()Returns the number of installments whose status matchesisProcessed(Installment)default StringgetScheduling()Returns a string with an overview of the scheduling: if there's a total installments count, returnsgetProcessedInstallments()+ "/" +getInstallmentsCount().default StringgetScheduling(int processed)Returns a string with an overview of the scheduling: if there's a total installments count, returns processed + "/" +getInstallmentsCount().static booleanisProcessed(Installment installment)Returns whether the installment status is eitherInstallmentStatus.PROCESSED,InstallmentStatus.SETTLEDorInstallmentStatus.FAILED.-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
getCurrency, round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.model.banking.transactions.HasTransactionNumber
getTransactionNumber
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getAccessClient, getActualAmount, getAmount, getChannel, getCustomValues, getDate, getFrom, getFromName, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getTo, getToName, getToOwner, getToOwnerOrType, getToType, getToUser, getTransactionNumberOrId, getType, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Method Detail
-
isProcessed
static boolean isProcessed(Installment installment)
Returns whether the installment status is eitherInstallmentStatus.PROCESSED,InstallmentStatus.SETTLEDorInstallmentStatus.FAILED.
-
getFirstScheduledInstallment
default I getFirstScheduledInstallment()
Returns the first installment whose status isInstallmentStatus.SCHEDULED
-
getInstallmentsCount
default Integer getInstallmentsCount()
-
getLastProcessedInstallment
default I getLastProcessedInstallment()
Returns the last installment whose status matchesisProcessed(Installment)
-
getProcessedInstallments
default int getProcessedInstallments()
Returns the number of installments whose status matchesisProcessed(Installment)
-
getScheduling
default String getScheduling()
Returns a string with an overview of the scheduling: if there's a total installments count, returnsgetProcessedInstallments()+ "/" +getInstallmentsCount(). Otherwise, returns justgetProcessedInstallments();
-
getScheduling
default String getScheduling(int processed)
Returns a string with an overview of the scheduling: if there's a total installments count, returns processed + "/" +getInstallmentsCount(). Otherwise, returns just processed.
-
-