public class UpdateItemRequest extends CartItemModifyingRequest implements Serializable
CartOperationService#updateCartItem(Cart, String, UpdateItemRequest, boolean)
and is used
to inform the update of a CartItem
.Constructor and Description |
---|
UpdateItemRequest() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Map<String,Object> |
getCartAttributes()
Attributes that should be copied to the
Cart.getAttributes() for this request. |
String |
getCartItemId()
ID of the
CartItem to update. |
List<UpdateItemRequest> |
getDependentItemUpdates()
A list of additional
AddItemRequests that should be processed as
children items of the resulting parent item of this current UpdateItemRequest . |
Map<String,String> |
getItemAttributeChoices()
Attribute choices that should be copied to
CartItem.getAttributeChoices() for this
request. |
Map<String,Object> |
getItemAttributes()
Attributes that should be copied to the
CartItem.getAttributes() for this request. |
String |
getParentCartItemId()
The id of the parent
CartItem for this add item request. |
int |
getQuantity()
The amount of this item to be added to the
Cart . |
String |
getVariantId()
The id of the variant for this add item request.
|
int |
hashCode() |
void |
setCartAttributes(Map<String,Object> cartAttributes)
Attributes that should be copied to the
Cart.getAttributes() for this request. |
void |
setCartItemId(String cartItemId)
ID of the
CartItem to update. |
void |
setDependentItemUpdates(List<UpdateItemRequest> dependentItemUpdates)
A list of additional
AddItemRequests that should be processed as
children items of the resulting parent item of this current UpdateItemRequest . |
void |
setItemAttributeChoices(Map<String,String> itemAttributeChoices)
Attribute choices that should be copied to
CartItem.getAttributeChoices() for this
request. |
void |
setItemAttributes(Map<String,Object> itemAttributes)
Attributes that should be copied to the
CartItem.getAttributes() for this request. |
void |
setParentCartItemId(String parentCartItemId)
The id of the parent
CartItem for this add item request. |
void |
setQuantity(int quantity)
The amount of this item to be added to the
Cart . |
void |
setVariantId(String variantId)
The id of the variant for this add item request.
|
String |
toString() |
getCartVersion, setCartVersion
public String getCartItemId()
CartItem
to update.CartItem
to update.public String getVariantId()
public int getQuantity()
Cart
.Cart
.public Map<String,Object> getItemAttributes()
CartItem.getAttributes()
for this request.CartItem.getAttributes()
for this
request.public Map<String,String> getItemAttributeChoices()
CartItem.getAttributeChoices()
for this
request.CartItem.getAttributeChoices()
for
this request.public Map<String,Object> getCartAttributes()
Cart.getAttributes()
for this request.Cart.getAttributes()
for this
request.public List<UpdateItemRequest> getDependentItemUpdates()
AddItemRequests
that should be processed as
children items of the resulting parent item of this current UpdateItemRequest
.AddItemRequests
that should be
processed as children items of the resulting parent item of this current
UpdateItemRequest
.public String getParentCartItemId()
CartItem
for this add item request. This would create a child
CartItem
of the parent.CartItem
for this add item request. This would create a
child CartItem
of the parent.public void setCartItemId(String cartItemId)
CartItem
to update.cartItemId
- ID of the CartItem
to update.public void setVariantId(String variantId)
variantId
- The id of the variant for this add item request. Used to retrieve variant
information for the cart item.public void setQuantity(int quantity)
Cart
.quantity
- The amount of this item to be added to the Cart
.public void setItemAttributes(Map<String,Object> itemAttributes)
CartItem.getAttributes()
for this request.itemAttributes
- Attributes that should be copied to the
CartItem.getAttributes()
for this request.public void setItemAttributeChoices(Map<String,String> itemAttributeChoices)
CartItem.getAttributeChoices()
for this
request.itemAttributeChoices
- Attribute choices that should be copied to
CartItem.getAttributeChoices()
for this request.public void setCartAttributes(Map<String,Object> cartAttributes)
Cart.getAttributes()
for this request.cartAttributes
- Attributes that should be copied to the Cart.getAttributes()
for this request.public void setDependentItemUpdates(List<UpdateItemRequest> dependentItemUpdates)
AddItemRequests
that should be processed as
children items of the resulting parent item of this current UpdateItemRequest
.childCartItems
- A list of additional AddItemRequests
that
should be processed as children items of the resulting parent item of this current
UpdateItemRequest
.public void setParentCartItemId(String parentCartItemId)
CartItem
for this add item request. This would create a child
CartItem
of the parent.parentCartItemId
- The id of the parent CartItem
for this add item request. This
would create a child CartItem
of the parent.public boolean equals(Object o)
equals
in class CartItemModifyingRequest
protected boolean canEqual(Object other)
canEqual
in class CartItemModifyingRequest
public int hashCode()
hashCode
in class CartItemModifyingRequest
public String toString()
toString
in class CartItemModifyingRequest
Copyright © 2021. All rights reserved.