package com.ECS.client.jax; import java.math.BigInteger; 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.XmlSchemaType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for CartModifyRequest complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CartModifyRequest", propOrder = { "cartId", "hmac", "mergeCart", "items", "responseGroup" }) public class CartModifyRequest { @XmlElement(name = "CartId") protected String cartId; @XmlElement(name = "HMAC") protected String hmac; @XmlElement(name = "MergeCart") protected String mergeCart; @XmlElement(name = "Items") protected CartModifyRequest.Items items; @XmlElement(name = "ResponseGroup") protected List<String> responseGroup; /** * Gets the value of the cartId property. * * @return * possible object is * {@link String } * */ public String getCartId() { return cartId; } /** * Sets the value of the cartId property. * * @param value * allowed object is * {@link String } * */ public void setCartId(String value) { this.cartId = value; } /** * Gets the value of the hmac property. * * @return * possible object is * {@link String } * */ public String getHMAC() { return hmac; } /** * Sets the value of the hmac property. * * @param value * allowed object is * {@link String } * */ public void setHMAC(String value) { this.hmac = value; } /** * Gets the value of the mergeCart property. * * @return * possible object is * {@link String } * */ public String getMergeCart() { return mergeCart; } /** * Sets the value of the mergeCart property. * * @param value * allowed object is * {@link String } * */ public void setMergeCart(String value) { this.mergeCart = value; } /** * Gets the value of the items property. * * @return * possible object is * {@link CartModifyRequest.Items } * */ public CartModifyRequest.Items getItems() { return items; } /** * Sets the value of the items property. * * @param value * allowed object is * {@link CartModifyRequest.Items } * */ public void setItems(CartModifyRequest.Items value) { this.items = value; } /** * Gets the value of the responseGroup 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 responseGroup property. * * <p> * For example, to add a new item, do as follows: * <pre> * getResponseGroup().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getResponseGroup() { if (responseGroup == null) { responseGroup = new ArrayList<String>(); } return this.responseGroup; } /** * <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="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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "item" }) public static class Items { @XmlElement(name = "Item") protected List<CartModifyRequest.Items.Item> item; /** * Gets the value of the item 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 item property. * * <p> * For example, to add a new item, do as follows: * <pre> * getItem().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link CartModifyRequest.Items.Item } * * */ public List<CartModifyRequest.Items.Item> getItem() { if (item == null) { item = new ArrayList<CartModifyRequest.Items.Item>(); } return this.item; } /** * <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="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> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "action", "cartItemId", "quantity" }) public static class Item { @XmlElement(name = "Action") protected String action; @XmlElement(name = "CartItemId") protected String cartItemId; @XmlElement(name = "Quantity") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger quantity; /** * Gets the value of the action property. * * @return * possible object is * {@link String } * */ public String getAction() { return action; } /** * Sets the value of the action property. * * @param value * allowed object is * {@link String } * */ public void setAction(String value) { this.action = value; } /** * 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 quantity property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getQuantity() { return quantity; } /** * Sets the value of the quantity property. * * @param value * allowed object is * {@link BigInteger } * */ public void setQuantity(BigInteger value) { this.quantity = value; } } } }