Interface Transaction
- All Superinterfaces:
BaseEntity,Serializable
- All Known Implementing Classes:
TransactionImpl
Transaction entity used internally by NetLicensing.
Properties visible via NetLicensing API:
number - Unique number (across all products of a vendor) that identifies the transaction. This number is always generated by NetLicensing.
active - always true for transactions
status - see TransactionStatus
source - see TransactionSource
grandTotal - grand total for SHOP transaction (see source).
discount - discount for SHOP transaction (see source).
currency - specifies currency for money fields (grandTotal and discount). Check data types to discover which currencies are supported.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.voidsetCurrency(Currency currency) voidsetDateClosed(Date dateClosed) voidsetDateCreated(Date dateCreated) voidsetDiscount(BigDecimal discount) voidsetGrandTotal(BigDecimal grandTotal) voidsetLicenseTransactionJoins(List<LicenseTransactionJoin> licenseTransactionJoins) voidsetSource(TransactionSource source) voidsetStatus(TransactionStatus status) Methods inherited from interface com.labs64.netlicensing.domain.entity.BaseEntity
addProperty, asMap, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
Method Details
-
getStatus
TransactionStatus getStatus() -
setStatus
-
getSource
TransactionSource getSource() -
setSource
-
getGrandTotal
BigDecimal getGrandTotal() -
setGrandTotal
-
getDiscount
BigDecimal getDiscount() -
setDiscount
-
getCurrency
Currency getCurrency() -
setCurrency
-
getDateCreated
Date getDateCreated() -
setDateCreated
-
getDateClosed
Date getDateClosed() -
setDateClosed
-
getLicenseTransactionJoins
List<LicenseTransactionJoin> getLicenseTransactionJoins() -
setLicenseTransactionJoins
-
getTransactionProperties
Deprecated.
-