com.newegg.marketplace.sdk.datafeed.model.ItemSubscriptionFeedRequest Maven / Gradle / Ivy
Show all versions of sdk-datafeed Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.03.06 at 10:25:21 AM CST
//
package com.newegg.marketplace.sdk.datafeed.model;
import java.math.BigDecimal;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* 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="Header">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="DocumentVersion" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="MessageType" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Message">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Item" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SellerPartNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Action">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Add"/>
* <enumeration value="Remove"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"header",
"messageType",
"message"
})
@XmlRootElement(name = "NeweggEnvelope")
public class ItemSubscriptionFeedRequest {
@XmlElement(name = "Header", required = true)
protected ItemSubscriptionFeedRequest.Header header=new ItemSubscriptionFeedRequest.Header();;
@XmlElement(name = "MessageType", required = true)
protected String messageType="Subscription";
@XmlElement(name = "Message", required = true)
protected ItemSubscriptionFeedRequest.Message message;
/**
* Gets the value of the header property.
*
* @return
* possible object is
* {@link ItemSubscriptionFeedRequest.Header }
*
*/
public ItemSubscriptionFeedRequest.Header getHeader() {
return header;
}
/**
* Sets the value of the header property.
*
* @param value
* allowed object is
* {@link ItemSubscriptionFeedRequest.Header }
*
*/
public void setHeader(ItemSubscriptionFeedRequest.Header value) {
this.header = value;
}
/**
* Gets the value of the messageType property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMessageType() {
return messageType;
}
/**
* Sets the value of the messageType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMessageType(String value) {
this.messageType = value;
}
/**
* Gets the value of the message property.
*
* @return
* possible object is
* {@link ItemSubscriptionFeedRequest.Message }
*
*/
public ItemSubscriptionFeedRequest.Message getMessage() {
return message;
}
/**
* Sets the value of the message property.
*
* @param value
* allowed object is
* {@link ItemSubscriptionFeedRequest.Message }
*
*/
public void setMessage(ItemSubscriptionFeedRequest.Message value) {
this.message = 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="DocumentVersion" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"documentVersion"
})
public static class Header {
@XmlElement(name = "DocumentVersion", required = true)
protected BigDecimal documentVersion=new BigDecimal("1.0");
/**
* Gets the value of the documentVersion property.
*
* @return
* possible object is
* {@link Object }
*
*/
public BigDecimal getDocumentVersion() {
return documentVersion;
}
/**
* Sets the value of the documentVersion property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setDocumentVersion(BigDecimal value) {
this.documentVersion = 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="Item" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="SellerPartNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Action">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Add"/>
* <enumeration value="Remove"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"item"
})
public static class Message {
@XmlElement(name = "Item", required = true)
protected List item;
/**
* Gets the value of the item 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 item property.
*
*
* For example, to add a new item, do as follows:
*
* getItem().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ItemSubscriptionFeedRequest.Message.Item }
*
* @return
* Objects of the following type(s) are allowed in the list
* {@link ItemSubscriptionFeedRequest.Message.Item }
*
*/
public List getItem() {
if (item == null) {
item = new ArrayList();
}
return this.item;
}
/**
* 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="SellerPartNumber" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="Action">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Add"/>
* <enumeration value="Remove"/>
* </restriction>
* </simpleType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"sellerPartNumber",
"action"
})
public static class Item {
@XmlElement(name = "SellerPartNumber", required = true)
protected String sellerPartNumber;
@XmlElement(name = "Action", required = true)
protected String action;
/**
* Gets the value of the sellerPartNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSellerPartNumber() {
return sellerPartNumber;
}
/**
* Sets the value of the sellerPartNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSellerPartNumber(String value) {
this.sellerPartNumber = value;
}
/**
* 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;
}
}
}
}