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; /** * <p>Java class for CartItem complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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="ExchangeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="MerchantId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="SellerId" 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="ListOwner" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="ListType" 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/2010-11-01}Price" minOccurs="0"/> * <element name="ItemTotal" type="{http://webservices.amazon.com/AWSECommerceService/2010-11-01}Price" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CartItem", propOrder = { "cartItemId", "asin", "exchangeId", "merchantId", "sellerId", "sellerNickname", "quantity", "title", "productGroup", "listOwner", "listType", "metaData", "price", "itemTotal" }) public class CartItem { @XmlElement(name = "CartItemId", required = true) protected String cartItemId; @XmlElement(name = "ASIN") protected String asin; @XmlElement(name = "ExchangeId") protected String exchangeId; @XmlElement(name = "MerchantId") protected String merchantId; @XmlElement(name = "SellerId") protected String sellerId; @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 = "ListOwner") protected String listOwner; @XmlElement(name = "ListType") protected String listType; @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 exchangeId property. * * @return * possible object is * {@link String } * */ public String getExchangeId() { return exchangeId; } /** * Sets the value of the exchangeId property. * * @param value * allowed object is * {@link String } * */ public void setExchangeId(String value) { this.exchangeId = value; } /** * Gets the value of the merchantId property. * * @return * possible object is * {@link String } * */ public String getMerchantId() { return merchantId; } /** * Sets the value of the merchantId property. * * @param value * allowed object is * {@link String } * */ public void setMerchantId(String value) { this.merchantId = value; } /** * Gets the value of the sellerId property. * * @return * possible object is * {@link String } * */ public String getSellerId() { return sellerId; } /** * Sets the value of the sellerId property. * * @param value * allowed object is * {@link String } * */ public void setSellerId(String value) { this.sellerId = 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 listOwner property. * * @return * possible object is * {@link String } * */ public String getListOwner() { return listOwner; } /** * Sets the value of the listOwner property. * * @param value * allowed object is * {@link String } * */ public void setListOwner(String value) { this.listOwner = value; } /** * Gets the value of the listType property. * * @return * possible object is * {@link String } * */ public String getListType() { return listType; } /** * Sets the value of the listType property. * * @param value * allowed object is * {@link String } * */ public void setListType(String value) { this.listType = 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; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "keyValuePair" }) public static class MetaData { @XmlElement(name = "KeyValuePair") protected List<CartItem.MetaData.KeyValuePair> keyValuePair; /** * Gets the value of the keyValuePair property. * * <p> * 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 <CODE>set</CODE> method for the keyValuePair property. * * <p> * For example, to add a new item, do as follows: * <pre> * getKeyValuePair().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CartItem.MetaData.KeyValuePair } * * */ public List<CartItem.MetaData.KeyValuePair> getKeyValuePair() { if (keyValuePair == null) { keyValuePair = new ArrayList<CartItem.MetaData.KeyValuePair>(); } return this.keyValuePair; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @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; } } } }