bllmlkg/javadoc/bllm/License

License (bllmlkg 0.12 API)
bllm

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 Detail

      • License

        public License()
    • 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()
Share