Package io.surati.gap.payment.base.impl
Class PaymentBatchImpl
- java.lang.Object
-
- io.surati.gap.payment.base.impl.PaymentBatchImpl
-
- All Implemented Interfaces:
PaymentBatch
public final class PaymentBatchImpl extends Object implements PaymentBatch
-
-
Constructor Summary
Constructors Constructor Description PaymentBatchImpl(Long order, BankAccount account, PaymentMeanType meantype)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BankAccount
account()
void
add(PaymentOrderGroup group)
LocalDate
date()
Iterable<PaymentOrderGroup>
groups()
Long
id()
PaymentMeanType
meanType()
Iterable<BankNote>
notes()
BankNote
pay(PaymentOrderGroup group, Iterable<BankNoteBook> books, io.surati.gap.admin.base.api.User author)
PaymentStatus
status()
void
terminate()
-
-
-
Constructor Detail
-
PaymentBatchImpl
public PaymentBatchImpl(Long order, BankAccount account, PaymentMeanType meantype)
-
-
Method Detail
-
id
public Long id()
- Specified by:
id
in interfacePaymentBatch
-
account
public BankAccount account()
- Specified by:
account
in interfacePaymentBatch
-
meanType
public PaymentMeanType meanType()
- Specified by:
meanType
in interfacePaymentBatch
-
groups
public Iterable<PaymentOrderGroup> groups()
- Specified by:
groups
in interfacePaymentBatch
-
notes
public Iterable<BankNote> notes()
- Specified by:
notes
in interfacePaymentBatch
-
add
public void add(PaymentOrderGroup group)
- Specified by:
add
in interfacePaymentBatch
-
pay
public BankNote pay(PaymentOrderGroup group, Iterable<BankNoteBook> books, io.surati.gap.admin.base.api.User author)
- Specified by:
pay
in interfacePaymentBatch
-
date
public LocalDate date()
- Specified by:
date
in interfacePaymentBatch
-
status
public PaymentStatus status()
- Specified by:
status
in interfacePaymentBatch
-
terminate
public void terminate()
- Specified by:
terminate
in interfacePaymentBatch
-
-