Package io.surati.gap.payment.base.db
Class DbPaymentCondition
- java.lang.Object
-
- io.surati.gap.payment.base.db.DbPaymentCondition
-
- All Implemented Interfaces:
PaymentCondition
public final class DbPaymentCondition extends Object implements PaymentCondition
-
-
Constructor Summary
Constructors Constructor Description DbPaymentCondition(DataSource source, ThirdParty tp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PaymentMeanType meantype)
int
deadline()
Deadline in days.boolean
has(PaymentMeanType meantype)
Iterable<PaymentMeanType>
meanTypesAllowed()
void
remove(PaymentMeanType meantype)
ThirdParty
thirdParty()
String
toString()
void
update(int deadline)
-
-
-
Constructor Detail
-
DbPaymentCondition
public DbPaymentCondition(DataSource source, ThirdParty tp)
-
-
Method Detail
-
deadline
public int deadline()
Description copied from interface:PaymentCondition
Deadline in days.- Specified by:
deadline
in interfacePaymentCondition
- Returns:
- days
-
update
public void update(int deadline)
- Specified by:
update
in interfacePaymentCondition
-
thirdParty
public ThirdParty thirdParty()
- Specified by:
thirdParty
in interfacePaymentCondition
-
meanTypesAllowed
public Iterable<PaymentMeanType> meanTypesAllowed()
- Specified by:
meanTypesAllowed
in interfacePaymentCondition
-
add
public void add(PaymentMeanType meantype)
- Specified by:
add
in interfacePaymentCondition
-
remove
public void remove(PaymentMeanType meantype)
- Specified by:
remove
in interfacePaymentCondition
-
has
public boolean has(PaymentMeanType meantype)
- Specified by:
has
in interfacePaymentCondition
-
-