Package io.surati.gap.payment.base.db
Class DbAbstractBankNote
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbAbstractPayment
-
- io.surati.gap.payment.base.db.DbAbstractBankNote
-
- Direct Known Subclasses:
DbBillOfExchange
,DbCheck
,DbPromissoryNote
public abstract class DbAbstractBankNote extends DbAbstractPayment implements BankNote
-
-
Constructor Summary
Constructors Constructor Description DbAbstractBankNote(DataSource source, Long id)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
amountInHuman()
String
amountInLetters()
BankNoteBook
book()
void
cancel(LocalDateTime canceldate, PaymentCancelReason reason, String description, boolean sendbackinpayment, io.surati.gap.admin.base.api.User author)
void
complete()
LocalDate
dueDate()
String
name()
-
Methods inherited from class io.surati.gap.payment.base.db.DbAbstractPayment
amount, author, authorOfCancel, beneficiary, cancelDate, date, descriptionOfCancel, id, internalReference, issuer, issuerReference, meanType, mention1, mention2, orders, place, reasonOfCancel, status
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.surati.gap.payment.base.api.Payment
amount, author, authorOfCancel, beneficiary, cancelDate, date, descriptionOfCancel, id, internalReference, issuer, issuerReference, meanType, mention1, mention2, place, reasonOfCancel, status
-
-
-
-
Constructor Detail
-
DbAbstractBankNote
public DbAbstractBankNote(DataSource source, Long id)
Ctor.- Parameters:
source
- Data sourceid
- Identifier
-
-
Method Detail
-
book
public BankNoteBook book()
-
cancel
public void cancel(LocalDateTime canceldate, PaymentCancelReason reason, String description, boolean sendbackinpayment, io.surati.gap.admin.base.api.User author)
- Specified by:
cancel
in interfacePayment
- Overrides:
cancel
in classDbAbstractPayment
-
amountInLetters
public String amountInLetters()
- Specified by:
amountInLetters
in interfacePayment
- Overrides:
amountInLetters
in classDbAbstractPayment
-
amountInHuman
public String amountInHuman()
- Specified by:
amountInHuman
in interfacePayment
- Overrides:
amountInHuman
in classDbAbstractPayment
-
complete
public void complete()
- Specified by:
complete
in interfacePayment
- Overrides:
complete
in classDbAbstractPayment
-
-