Package com.mparticle.commerce
Class TransactionAttributes
- java.lang.Object
-
- com.mparticle.commerce.TransactionAttributes
-
public class TransactionAttributes extends java.lang.Object
Class encaspulating the parameters of a given Product CommerceEvent.
-
-
Constructor Summary
Constructors Constructor Description TransactionAttributes()
Create a TransactionAttributes object to be associated with aCommerceEvent
.TransactionAttributes(TransactionAttributes transactionAttributes)
TransactionAttributes(java.lang.String transactionId)
Create a TransactionAttributes object to be associated with aCommerceEvent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAffiliation()
java.lang.String
getCouponCode()
java.lang.String
getId()
java.lang.Double
getRevenue()
java.lang.Double
getShipping()
java.lang.Double
getTax()
TransactionAttributes
setAffiliation(java.lang.String affiliation)
TransactionAttributes
setCouponCode(java.lang.String couponCode)
TransactionAttributes
setId(java.lang.String id)
TransactionAttributes
setRevenue(java.lang.Double revenue)
TransactionAttributes
setShipping(java.lang.Double shipping)
TransactionAttributes
setTax(java.lang.Double tax)
-
-
-
Constructor Detail
-
TransactionAttributes
public TransactionAttributes(@NonNull TransactionAttributes transactionAttributes)
-
TransactionAttributes
public TransactionAttributes()
Create a TransactionAttributes object to be associated with aCommerceEvent
. Note that transaction ID is required forProduct.PURCHASE
andProduct.REFUND
events.
-
TransactionAttributes
public TransactionAttributes(@NonNull java.lang.String transactionId)
Create a TransactionAttributes object to be associated with aCommerceEvent
. Note that transaction ID is required forProduct.PURCHASE
andProduct.REFUND
events.- Parameters:
transactionId
- a unique ID for this transaction
-
-
Method Detail
-
getId
@NonNull public java.lang.String getId()
-
setId
@NonNull public TransactionAttributes setId(@NonNull java.lang.String id)
-
getCouponCode
@Nullable public java.lang.String getCouponCode()
-
setCouponCode
@NonNull public TransactionAttributes setCouponCode(@Nullable java.lang.String couponCode)
-
getTax
@Nullable public java.lang.Double getTax()
-
setTax
@NonNull public TransactionAttributes setTax(@Nullable java.lang.Double tax)
-
getShipping
@Nullable public java.lang.Double getShipping()
-
setShipping
@NonNull public TransactionAttributes setShipping(@Nullable java.lang.Double shipping)
-
getRevenue
@Nullable public java.lang.Double getRevenue()
-
setRevenue
@NonNull public TransactionAttributes setRevenue(@Nullable java.lang.Double revenue)
-
getAffiliation
@Nullable public java.lang.String getAffiliation()
-
setAffiliation
@NonNull public TransactionAttributes setAffiliation(@Nullable java.lang.String affiliation)
-
-