Package io.surati.gap.payment.base.db
Class DbPaymentBatch
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbPaymentBatch
-
- All Implemented Interfaces:
PaymentBatch
public final class DbPaymentBatch extends Object implements PaymentBatch
-
-
Constructor Summary
Constructors Constructor Description DbPaymentBatch(DataSource source, Long id)
-
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
-
DbPaymentBatch
public DbPaymentBatch(DataSource source, Long id)
-
-
Method Detail
-
id
public Long id()
- Specified by:
id
in interfacePaymentBatch
-
date
public LocalDate date()
- Specified by:
date
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
-
status
public PaymentStatus status()
- Specified by:
status
in interfacePaymentBatch
-
terminate
public void terminate()
- Specified by:
terminate
in interfacePaymentBatch
-
-