|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.analytics.tracking.android.Transaction.Builder
public static class Transaction.Builder
Builder for Transaction.
Constructor Summary | |
---|---|
Transaction.Builder(java.lang.String transactionId,
long totalCostInMicros)
|
Method Summary | |
---|---|
Transaction |
build()
Builds and returns a Transaction with the values set from this Builder. |
Transaction.Builder |
setAffiliation(java.lang.String affiliation)
Sets the affiliation parameter for the Transaction this Builder will build. |
Transaction.Builder |
setShippingCostInMicros(long shippingCostInMicros)
Sets the shippingCost for the Transaction this Builder will build. |
Transaction.Builder |
setTotalTaxInMicros(long totalTaxInMicros)
Sets the totalTax for the Transaction this Builder will build. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transaction.Builder(java.lang.String transactionId, long totalCostInMicros)
transactionId
- the transactionId for the Transaction created by this Builder.
transactionId must not be null or the empty string.totalCostInMicros
- the totalCost for the Transaction (in micros: 1,000,000
micros/currency unit)created by this Builder
java.lang.IllegalArgumentException
- if orderId is null or emptyMethod Detail |
---|
public Transaction.Builder setAffiliation(java.lang.String affiliation)
affiliation
- the new value for affiliation
public Transaction.Builder setTotalTaxInMicros(long totalTaxInMicros)
totalTaxInMicros
- the new value for totalTaxInMicros (in micros: 1,000,000
micros/currency unit)
public Transaction.Builder setShippingCostInMicros(long shippingCostInMicros)
shippingCostInMicros
- the new value for shippingCost (in micros: 1,000,000 micros
/currency unit)
public Transaction build()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |