Package io.surati.gap.payment.base.db
Class DbThirdPartyPaymentOrders
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbThirdPartyPaymentOrders
-
- All Implemented Interfaces:
PaymentOrders
,ThirdPartyPaymentOrders
public final class DbThirdPartyPaymentOrders extends Object implements ThirdPartyPaymentOrders
-
-
Constructor Summary
Constructors Constructor Description DbThirdPartyPaymentOrders(DataSource source, ThirdParty tp)
Ctor.DbThirdPartyPaymentOrders(DataSource source, ThirdParty tp, PaymentOrderStatus status)
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
-
DbThirdPartyPaymentOrders
public DbThirdPartyPaymentOrders(DataSource source, ThirdParty tp)
Ctor.- Parameters:
source
- Data source
-
DbThirdPartyPaymentOrders
public DbThirdPartyPaymentOrders(DataSource source, ThirdParty tp, PaymentOrderStatus status)
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
-
has
public boolean has(String reference)
- Specified by:
has
in interfacePaymentOrders
-
get
public PaymentOrder get(String reference)
- Specified by:
get
in interfacePaymentOrders
-
count
public Long count()
- Specified by:
count
in interfacePaymentOrders
-
totalAmount
public Double totalAmount()
- Specified by:
totalAmount
in interfacePaymentOrders
-
-