public static final class Transaction.Item.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Transaction.Item.Builder(java.lang.String SKU,
java.lang.String name,
long priceInMicros,
long quantity) |
| Modifier and Type | Method and Description |
|---|---|
Transaction.Item |
build()
Builds an Item with the parameters in this builder.
|
Transaction.Item.Builder |
setProductCategory(java.lang.String productCategory)
Sets the productCategory parameter for this builder, which in turn will set the
productCategory parameter for the Item created by this builder.
|
public Transaction.Item.Builder(java.lang.String SKU,
java.lang.String name,
long priceInMicros,
long quantity)
SKU - the SKU which uniquely identifies the Item. The SKU cannot be null or the empty
string.name - the name for an item. The name cannot be null or the empty string.priceInMicros - the price of the Item (in micros: 1,000,000 micros/currency unit)quantity - the quantity purchasedjava.lang.IllegalArgumentException - if SKU or name are null or emptypublic Transaction.Item.Builder setProductCategory(java.lang.String productCategory)
productCategory - the new value for productCategorypublic Transaction.Item build()