Interface Transaction
-
- All Superinterfaces:
BaseEntity
,Serializable
- All Known Implementing Classes:
TransactionImpl
public interface Transaction extends BaseEntity
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Currency
getCurrency()
Date
getDateClosed()
Date
getDateCreated()
BigDecimal
getDiscount()
BigDecimal
getGrandTotal()
List<LicenseTransactionJoin>
getLicenseTransactionJoins()
TransactionSource
getSource()
TransactionStatus
getStatus()
Map<String,String>
getTransactionProperties()
Deprecated.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, asRequestForm, getActive, getNumber, getProperties, removeProperty, setActive, setNumber
-
-
-
-
Method Detail
-
getStatus
TransactionStatus getStatus()
-
setStatus
void setStatus(TransactionStatus status)
-
getSource
TransactionSource getSource()
-
setSource
void setSource(TransactionSource source)
-
getGrandTotal
BigDecimal getGrandTotal()
-
setGrandTotal
void setGrandTotal(BigDecimal grandTotal)
-
getDiscount
BigDecimal getDiscount()
-
setDiscount
void setDiscount(BigDecimal discount)
-
getCurrency
Currency getCurrency()
-
setCurrency
void setCurrency(Currency currency)
-
getDateCreated
Date getDateCreated()
-
setDateCreated
void setDateCreated(Date dateCreated)
-
getDateClosed
Date getDateClosed()
-
setDateClosed
void setDateClosed(Date dateClosed)
-
getLicenseTransactionJoins
List<LicenseTransactionJoin> getLicenseTransactionJoins()
-
setLicenseTransactionJoins
void setLicenseTransactionJoins(List<LicenseTransactionJoin> licenseTransactionJoins)
-
getTransactionProperties
@Deprecated Map<String,String> getTransactionProperties()
Deprecated.
-
-