public class CartModifyRequest extends Object implements Serializable
Java class for CartModifyRequest complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CartModifyRequest">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="CartId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="HMAC" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="MergeCart" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Items" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Item" maxOccurs="unbounded" minOccurs="0">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="Action" minOccurs="0">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="MoveToCart"/>
<enumeration value="SaveForLater"/>
</restriction>
</simpleType>
</element>
<element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
</element>
<element name="ResponseGroup" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
CartModifyRequest.Items
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
cartId |
protected String |
hmac |
protected CartModifyRequest.Items |
items |
protected String |
mergeCart |
protected List<String> |
responseGroup |
| Constructor and Description |
|---|
CartModifyRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCartId()
Gets the value of the cartId property.
|
String |
getHMAC()
Gets the value of the hmac property.
|
CartModifyRequest.Items |
getItems()
Gets the value of the items property.
|
String |
getMergeCart()
Gets the value of the mergeCart property.
|
List<String> |
getResponseGroup()
Gets the value of the responseGroup property.
|
void |
setCartId(String value)
Sets the value of the cartId property.
|
void |
setHMAC(String value)
Sets the value of the hmac property.
|
void |
setItems(CartModifyRequest.Items value)
Sets the value of the items property.
|
void |
setMergeCart(String value)
Sets the value of the mergeCart property.
|
protected String cartId
protected String hmac
protected String mergeCart
protected CartModifyRequest.Items items
public String getCartId()
Stringpublic void setCartId(String value)
value - allowed object is
Stringpublic String getHMAC()
Stringpublic void setHMAC(String value)
value - allowed object is
Stringpublic String getMergeCart()
Stringpublic void setMergeCart(String value)
value - allowed object is
Stringpublic CartModifyRequest.Items getItems()
CartModifyRequest.Itemspublic void setItems(CartModifyRequest.Items value)
value - allowed object is
CartModifyRequest.Itemspublic List<String> getResponseGroup()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the responseGroup property.
For example, to add a new item, do as follows:
getResponseGroup().add(newItem);
Objects of the following type(s) are allowed in the list
String
Copyright © 2013. All Rights Reserved.