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.void
setCurrency
(Currency currency) void
setDateClosed
(Date dateClosed) void
setDateCreated
(Date dateCreated) void
setDiscount
(BigDecimal discount) void
setGrandTotal
(BigDecimal grandTotal) void
setLicenseTransactionJoins
(List<LicenseTransactionJoin> licenseTransactionJoins) void
setSource
(TransactionSource source) void
setStatus
(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.
-