public final class Transaction
extends java.lang.Object
Note that several fields in this class are in micros. Micros are millionths of a unit. For example, you would represent 1.5 currency units as 1,500,000 micros.
Modifier and Type | Class and Description |
---|---|
static class |
Transaction.Builder
Builder for Transaction.
|
static class |
Transaction.Item
A simple immutable class to hold the values of the item hit.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(Transaction.Item item)
Add the item in question.
|
java.lang.String |
getAffiliation() |
java.lang.String |
getCurrencyCode() |
java.util.List<Transaction.Item> |
getItems()
Get the items of this transaction as a list.
|
long |
getShippingCostInMicros() |
long |
getTotalCostInMicros() |
long |
getTotalTaxInMicros() |
java.lang.String |
getTransactionId() |
public java.lang.String getTransactionId()
public java.lang.String getAffiliation()
public long getTotalCostInMicros()
public long getTotalTaxInMicros()
public long getShippingCostInMicros()
public java.lang.String getCurrencyCode()
public void addItem(Transaction.Item item)
item
- the Item to addpublic java.util.List<Transaction.Item> getItems()