Package com.oppwa.mobile.connect.payment
Class CartItem
-
- 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 public final Stringnamepublic final Stringquantitypublic final Stringpricepublic final Stringskupublic final StringproductUrlpublic final StringimageUrlpublic 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.
- Returns:
the quantity.
-
getPrice
@Nullable() String getPrice()
The price of the item in the shopping cart.
- Returns:
the price.
-
getProductUrl
@Nullable() String getProductUrl()
The cart item's URL.
- Returns:
the product URL.
-
getImageUrl
@Nullable() String getImageUrl()
The cart item's image URL.
- Returns:
the image URL.
-
getTotalDiscountAmount
@Nullable() String getTotalDiscountAmount()
The cart item's total discount amount.
- Returns:
the total discount amount.
-
hashCode
int hashCode()
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(@NonNull() Parcel dest, int flags)
-
-
-
-