Package io.surati.gap.payment.base.api
Interface PaymentOrderGroup
-
- All Known Implementing Classes:
DbPaymentOrderGroup
public interface PaymentOrderGroup
-
-
Field Summary
Fields Modifier and Type Field Description static PaymentOrderGroup
EMPTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BankAccount
accountToUse()
ThirdParty
beneficiary()
void
cancelExecution(io.surati.gap.admin.base.api.User author, boolean sentbackinpayment)
void
changeBeneficiary(ThirdParty tp)
Long
count()
LocalDate
dueDate()
void
execute()
PaymentOrder
get(Long id)
boolean
has(PaymentOrder item)
Long
id()
boolean
isHetero()
Can accept orders of different beneficiaries.Iterable<PaymentOrder>
iterate()
PaymentMeanType
meanType()
void
sendBackInPreparation()
PaymentOrderStatus
status()
Double
totalAmount()
void
update(PaymentMeanType meantype, LocalDate duedate)
void
useAccount(BankAccount account)
void
validate(io.surati.gap.admin.base.api.User author)
-
-
-
Field Detail
-
EMPTY
static final PaymentOrderGroup EMPTY
-
-
Method Detail
-
id
Long id()
-
beneficiary
ThirdParty beneficiary()
-
iterate
Iterable<PaymentOrder> iterate()
-
get
PaymentOrder get(Long id)
-
has
boolean has(PaymentOrder item)
-
count
Long count()
-
totalAmount
Double totalAmount()
-
accountToUse
BankAccount accountToUse()
-
useAccount
void useAccount(BankAccount account)
-
validate
void validate(io.surati.gap.admin.base.api.User author)
-
sendBackInPreparation
void sendBackInPreparation()
-
execute
void execute()
-
cancelExecution
void cancelExecution(io.surati.gap.admin.base.api.User author, boolean sentbackinpayment)
-
changeBeneficiary
void changeBeneficiary(ThirdParty tp)
-
status
PaymentOrderStatus status()
-
meanType
PaymentMeanType meanType()
-
dueDate
LocalDate dueDate()
-
isHetero
boolean isHetero()
Can accept orders of different beneficiaries.- Returns:
-
update
void update(PaymentMeanType meantype, LocalDate duedate)
-
-