Class License
- java.lang.Object
-
- bllm.License
-
- All Implemented Interfaces:
- java.io.Serializable
public class License extends java.lang.Object implements java.io.Serializable
Merchant chooses the desired denomination of payment. bllm tracks favored payment method but also converts to dollars and satoshis at the time of payment.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description License()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description double
getActualPayment()
double
getCost()
A double.double
getDollarSubmitted()
int
getLicenseExpiresInDays()
java.time.LocalDate
getLicenseGrantedDate()
java.lang.String
getLicenseID()
double
getLTCSubmitted()
java.lang.String
getMerchantWalletID()
int
getRequiredConfirmations()
double
getSatoshisSubmitted()
int
getTransactionExpiresInHours()
java.lang.String
getTransactionID()
int
getTrialExpiresInDays()
java.time.LocalDate
getTrialStartDate()
java.lang.String
getUnitsOfCost()
java.lang.String
getUnitsOfRequestedPayment()
void
setActualPayment(double d)
void
setCost(double cost)
void
setDollarSubmitted(double _dollarSubmitted)
void
setLicenseExpiresInDays(int eid)
void
setLicenseGrantedDate(java.time.LocalDate ld)
void
setLicenseID(java.lang.String s)
void
setMerchantWalletID(java.lang.String s)
void
setRequiredConfirmations(int i)
void
setSatoshisSubmitted(double _satoshisSubmitted)
void
setTransactionExpiresInHours(int i)
void
setTransactionID(java.lang.String s)
void
setTrialExpiresInDays(int tid)
void
setTrialStartDate(java.time.LocalDate ld)
void
setUnitsOfCost(java.lang.String _unitsOfCost)
void
setUnitsOfRequestedPayment(java.lang.String _unitsOfRequestedPayment)
-
-
-
Method Detail
-
setLicenseID
public void setLicenseID(java.lang.String s)
-
getLicenseID
public java.lang.String getLicenseID()
-
getCost
public double getCost()
A double. Could be in any units.- Returns:
- cost number of units being requested
- See Also:
what was actually tendered
,used as variable in other classes
,to determine the units involved
-
setCost
public void setCost(double cost)
-
getLicenseGrantedDate
public java.time.LocalDate getLicenseGrantedDate()
-
setLicenseGrantedDate
public void setLicenseGrantedDate(java.time.LocalDate ld)
-
getTrialStartDate
public java.time.LocalDate getTrialStartDate()
-
setTrialStartDate
public void setTrialStartDate(java.time.LocalDate ld)
-
getTransactionID
public java.lang.String getTransactionID()
-
setTransactionID
public void setTransactionID(java.lang.String s)
-
getLicenseExpiresInDays
public int getLicenseExpiresInDays()
-
setLicenseExpiresInDays
public void setLicenseExpiresInDays(int eid)
-
getTrialExpiresInDays
public int getTrialExpiresInDays()
-
setTrialExpiresInDays
public void setTrialExpiresInDays(int tid)
-
getTransactionExpiresInHours
public int getTransactionExpiresInHours()
-
setTransactionExpiresInHours
public void setTransactionExpiresInHours(int i)
-
getUnitsOfCost
public java.lang.String getUnitsOfCost()
- Returns:
- unitsOfCost
-
setUnitsOfCost
public void setUnitsOfCost(java.lang.String _unitsOfCost)
- Parameters:
_unitsOfCost
- what the merchant is requesting, possibly in dollars
-
getUnitsOfRequestedPayment
public java.lang.String getUnitsOfRequestedPayment()
-
setUnitsOfRequestedPayment
public void setUnitsOfRequestedPayment(java.lang.String _unitsOfRequestedPayment)
- Parameters:
_unitsOfRequestedPayment
- Bitcoin or Litecoin
-
getActualPayment
public double getActualPayment()
-
setActualPayment
public void setActualPayment(double d)
-
getRequiredConfirmations
public int getRequiredConfirmations()
-
setRequiredConfirmations
public void setRequiredConfirmations(int i)
-
getMerchantWalletID
public java.lang.String getMerchantWalletID()
-
setMerchantWalletID
public void setMerchantWalletID(java.lang.String s)
-
setSatoshisSubmitted
public void setSatoshisSubmitted(double _satoshisSubmitted)
- Parameters:
_satoshisSubmitted
- what was paid whether Bitcoin or Litecoin
-
getSatoshisSubmitted
public double getSatoshisSubmitted()
-
getLTCSubmitted
public double getLTCSubmitted()
-
setDollarSubmitted
public void setDollarSubmitted(double _dollarSubmitted)
- Parameters:
_dollarSubmitted
- obtained by conversion at the time of payment
-
getDollarSubmitted
public double getDollarSubmitted()
-
-