java.lang.Object | |
↳ | com.google.android.gms.wallet.LineItem.Builder |
Builder to create a LineItem
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sets the ISO 4217 currency code of the transaction.
| |||||||||||
Sets the description of the line item.
| |||||||||||
Sets the number of items purchased.
| |||||||||||
Supply the role only to distinguish tax and shipping from regular items.
| |||||||||||
Sets the total price for this line item.
| |||||||||||
Sets the unit price per item.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Sets the ISO 4217 currency code of the transaction.
Sets the number of items purchased. The format of this string follows the regex: [0-9]+(\.[0-9])?
Supply the role only to distinguish tax and shipping from regular items. Valid values
are defined in LineItem.Role
. Defaults to REGULAR
, indicating a regular item.
Only one TAX
entry is permitted.
Sets the total price for this line item. The format of this string follows the regex: ^-?[0-9]+(\.[0-9][0-9])?
Sets the unit price per item. The format of this string follows the regex: ^-?[0-9]+(\.[0-9][0-9])?