-
- 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 classCartItem.Builder
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Stringquantityprivate final Stringpriceprivate final Stringskuprivate final StringproductUrlprivate final StringimageUrlprivate final StringtotalDiscountAmountpublic final static Parcelable.Creator<CartItem>CREATOR
-
Constructor Summary
Constructors Constructor Description CartItem(CartItem.Builder builder)
-
Method Summary
Modifier and Type Method Description StringgetName()The name of the item in the shopping cart. StringgetQuantity()The number of items in the shopping cart. StringgetPrice()The price of the item in the shopping cart. StringgetSku()The sku cart item. StringgetProductUrl()The cart item's URL. StringgetImageUrl()The cart item's image URL. StringgetTotalDiscountAmount()The cart item's total discount amount. booleanequals(Object o)inthashCode()intdescribeContents()voidwriteToParcel(@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)
-
-
-
-