Hide

Cart

public final class Cart extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.wallet.Cart

Parcelable representing a shopping cart.

Nested Class Summary

class Cart.Builder Builder to create a Cart

Inherited Constant Summary

Field Summary

public static final Creator<Cart> CREATOR

Public Method Summary

int
String
ArrayList<LineItem>
String
int
static Cart.Builder
void
writeToParcel(Parcel dest, int flags)

Fields

public static final Creator<Cart> CREATOR

Public Methods

public int describeContents ()

public String getCurrencyCode ()

Returns
  • the ISO 4217 currency code of the transaction

public ArrayList<LineItem> getLineItems ()

Returns
  • the line items in the cart

public String getTotalPrice ()

Returns
  • the total price

public int getVersionCode ()

public static Cart.Builder newBuilder ()

public void writeToParcel (Parcel dest, int flags)