-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CartItem implements Parcelable
The CartItem holds the holds product information about the shopping cart such as the product's name, quantity, price and more.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CartItem.Builder
-
Field Summary
Fields Modifier and Type Field Description private final String
name
private final String
quantity
private final String
price
private final String
sku
private final String
productUrl
private final String
imageUrl
private final String
totalDiscountAmount
public final static Parcelable.Creator<CartItem>
CREATOR
-
Constructor Summary
Constructors Constructor Description CartItem(CartItem.Builder builder)
-
Method Summary
Modifier and Type Method Description String
getName()
The name of the item in the shopping cart. String
getQuantity()
The number of items in the shopping cart. String
getPrice()
The price of the item in the shopping cart. String
getSku()
The sku cart item. String
getProductUrl()
The cart item's URL. String
getImageUrl()
The cart item's image URL. String
getTotalDiscountAmount()
The cart item's total discount amount. boolean
equals(Object o)
int
hashCode()
int
describeContents()
void
writeToParcel(@NonNull() Parcel dest, int flags)
-
-
Constructor Detail
-
CartItem
CartItem(CartItem.Builder builder)
-
-
Method Detail
-
getQuantity
@Nullable() String getQuantity()
The number of items in the shopping cart.
-
getProductUrl
@Nullable() String getProductUrl()
The cart item's URL.
-
getImageUrl
@Nullable() String getImageUrl()
The cart item's image URL.
-
getTotalDiscountAmount
@Nullable() String getTotalDiscountAmount()
The cart item's total discount amount.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
-
-
-