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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Sets the ISO 4217 currency code of the transaction.
Parameters | |
---|---|
currencyCode |
String
|
Returns | |
---|---|
LineItem.Builder |
Sets the number of items purchased. The format of this string follows the regex: [0-9]+(\.[0-9])?
Parameters | |
---|---|
quantity |
String
|
Returns | |
---|---|
LineItem.Builder |
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.
Parameters | |
---|---|
role |
int
|
Returns | |
---|---|
LineItem.Builder |
See also:
Sets the total price for this line item. The format of this string follows the regex: ^-?[0-9]+(\.[0-9][0-9])?
Parameters | |
---|---|
totalPrice |
String
|
Returns | |
---|---|
LineItem.Builder |
Sets the unit price per item. The format of this string follows the regex: ^-?[0-9]+(\.[0-9][0-9])?
Parameters | |
---|---|
unitPrice |
String
|
Returns | |
---|---|
LineItem.Builder |