java.lang.Object | |
↳ | com.google.android.gms.wallet.Cart.Builder |
Builder to create a Cart
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a line item to the shopping cart.
| |||||||||||
Required field.
| |||||||||||
Sets the line items in the shopping cart.
| |||||||||||
Required field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Required field. Sets the ISO 4217 currency code of the transaction.
Parameters | |
---|---|
currencyCode |
String
|
Returns | |
---|---|
Cart.Builder |
Sets the line items in the shopping cart. Removes any previous line items associated with this cart.
Parameters | |
---|---|
lineItems |
List
|
Returns | |
---|---|
Cart.Builder |
Required field. Sets the total price of the cart. The format of this string follows the regex: [0-9]+(\.[0-9][0-9])?
Parameters | |
---|---|
totalPrice |
String
|
Returns | |
---|---|
Cart.Builder |