Package io.surati.gap.payment.base.db
Class DbReferenceDocumentPaymentOrders
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbReferenceDocumentPaymentOrders
-
- All Implemented Interfaces:
PaymentOrders
,ThirdPartyPaymentOrders
public final class DbReferenceDocumentPaymentOrders extends Object implements ThirdPartyPaymentOrders
-
-
Constructor Summary
Constructors Constructor Description DbReferenceDocumentPaymentOrders(DataSource source, ReferenceDocument rd)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentOrder
add(double amounttopay, String reason, String description, io.surati.gap.admin.base.api.User author)
PaymentOrder
add(String reference, double amounttopay, String reason, String description, io.surati.gap.admin.base.api.User author)
Long
count()
PaymentOrder
get(Long id)
PaymentOrder
get(String reference)
boolean
has(String reference)
Iterable<PaymentOrder>
iterate()
void
remove(PaymentOrder item)
Double
totalAmount()
-
-
-
Constructor Detail
-
DbReferenceDocumentPaymentOrders
public DbReferenceDocumentPaymentOrders(DataSource source, ReferenceDocument rd)
Ctor.- Parameters:
source
- Data source
-
-
Method Detail
-
iterate
public Iterable<PaymentOrder> iterate()
- Specified by:
iterate
in interfacePaymentOrders
-
add
public PaymentOrder add(double amounttopay, String reason, String description, io.surati.gap.admin.base.api.User author)
- Specified by:
add
in interfaceThirdPartyPaymentOrders
-
add
public PaymentOrder add(String reference, double amounttopay, String reason, String description, io.surati.gap.admin.base.api.User author)
- Specified by:
add
in interfaceThirdPartyPaymentOrders
-
get
public PaymentOrder get(Long id)
- Specified by:
get
in interfacePaymentOrders
-
remove
public void remove(PaymentOrder item)
- Specified by:
remove
in interfacePaymentOrders
-
count
public Long count()
- Specified by:
count
in interfacePaymentOrders
-
has
public boolean has(String reference)
- Specified by:
has
in interfacePaymentOrders
-
totalAmount
public Double totalAmount()
- Specified by:
totalAmount
in interfacePaymentOrders
-
get
public PaymentOrder get(String reference)
- Specified by:
get
in interfacePaymentOrders
-
-