
com.ecs.client.jax.CartItem Maven / Gradle / Ivy
Show all versions of paapi-client Show documentation
package com.ecs.client.jax;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for CartItem complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="CartItem">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="CartItemId" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="ASIN" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="SellerNickname" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="Quantity" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="ProductGroup" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="MetaData" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="KeyValuePair" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="Price" type="{http://webservices.amazon.com/AWSECommerceService/2013-08-01}Price" minOccurs="0"/>
* <element name="ItemTotal" type="{http://webservices.amazon.com/AWSECommerceService/2013-08-01}Price" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CartItem", propOrder = {
"cartItemId",
"asin",
"sellerNickname",
"quantity",
"title",
"productGroup",
"metaData",
"price",
"itemTotal"
})
public class CartItem {
@XmlElement(name = "CartItemId", required = true)
protected String cartItemId;
@XmlElement(name = "ASIN")
protected String asin;
@XmlElement(name = "SellerNickname")
protected String sellerNickname;
@XmlElement(name = "Quantity", required = true)
protected String quantity;
@XmlElement(name = "Title")
protected String title;
@XmlElement(name = "ProductGroup")
protected String productGroup;
@XmlElement(name = "MetaData")
protected CartItem.MetaData metaData;
@XmlElement(name = "Price")
protected Price price;
@XmlElement(name = "ItemTotal")
protected Price itemTotal;
/**
* Gets the value of the cartItemId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCartItemId() {
return cartItemId;
}
/**
* Sets the value of the cartItemId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCartItemId(String value) {
this.cartItemId = value;
}
/**
* Gets the value of the asin property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getASIN() {
return asin;
}
/**
* Sets the value of the asin property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setASIN(String value) {
this.asin = value;
}
/**
* Gets the value of the sellerNickname property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSellerNickname() {
return sellerNickname;
}
/**
* Sets the value of the sellerNickname property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSellerNickname(String value) {
this.sellerNickname = value;
}
/**
* Gets the value of the quantity property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getQuantity() {
return quantity;
}
/**
* Sets the value of the quantity property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setQuantity(String value) {
this.quantity = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the productGroup property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProductGroup() {
return productGroup;
}
/**
* Sets the value of the productGroup property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProductGroup(String value) {
this.productGroup = value;
}
/**
* Gets the value of the metaData property.
*
* @return
* possible object is
* {@link CartItem.MetaData }
*
*/
public CartItem.MetaData getMetaData() {
return metaData;
}
/**
* Sets the value of the metaData property.
*
* @param value
* allowed object is
* {@link CartItem.MetaData }
*
*/
public void setMetaData(CartItem.MetaData value) {
this.metaData = value;
}
/**
* Gets the value of the price property.
*
* @return
* possible object is
* {@link Price }
*
*/
public Price getPrice() {
return price;
}
/**
* Sets the value of the price property.
*
* @param value
* allowed object is
* {@link Price }
*
*/
public void setPrice(Price value) {
this.price = value;
}
/**
* Gets the value of the itemTotal property.
*
* @return
* possible object is
* {@link Price }
*
*/
public Price getItemTotal() {
return itemTotal;
}
/**
* Sets the value of the itemTotal property.
*
* @param value
* allowed object is
* {@link Price }
*
*/
public void setItemTotal(Price value) {
this.itemTotal = value;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="KeyValuePair" maxOccurs="unbounded" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"keyValuePair"
})
public static class MetaData {
@XmlElement(name = "KeyValuePair")
protected List keyValuePair;
/**
* Gets the value of the keyValuePair property.
*
*
* 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 keyValuePair property.
*
*
* For example, to add a new item, do as follows:
*
* getKeyValuePair().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CartItem.MetaData.KeyValuePair }
*
*
*/
public List getKeyValuePair() {
if (keyValuePair == null) {
keyValuePair = new ArrayList();
}
return this.keyValuePair;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Key" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Value" type="{http://www.w3.org/2001/XMLSchema}string"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"key",
"value"
})
public static class KeyValuePair {
@XmlElement(name = "Key", required = true)
protected String key;
@XmlElement(name = "Value", required = true)
protected String value;
/**
* Gets the value of the key property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getKey() {
return key;
}
/**
* Sets the value of the key property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKey(String value) {
this.key = value;
}
/**
* Gets the value of the value property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getValue() {
return value;
}
/**
* Sets the value of the value property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setValue(String value) {
this.value = value;
}
}
}
}