All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ebay.apis.shopping.eblbasecomponents.DiscountPriceInfoType Maven / Gradle / Ivy

Go to download

This Java client enables you to use Java to make API calls in the eBay Shopping API, which is an XML API. This maven build is simply the Apache CXF generated client code for the Shopping API WSDL.

The newest version!

package ebay.apis.shopping.eblbasecomponents;

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.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import org.w3c.dom.Element;


/**
 * 
 * 				Created this container as part of Strike-Through Pricing Project (27970) in selling API.
 * 				Using this container, a seller can supply original retail price, discount price for
 * 				an item to provide discount treatment. STP in short for Strike-Through Pricing will
 * 				only apply to fixed price, BIN items. This feature is available for 
 * 				large enterprise/BD sellers via white list. A seller can provide discount treatment
 * 				for Non-MSKU and MSKU items.
 * 			
 * 
 * 

Java class for DiscountPriceInfoType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="DiscountPriceInfoType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="OriginalRetailPrice" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccurs="0"/>
 *         <element name="MinimumAdvertisedPrice" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccurs="0"/>
 *         <element name="MinimumAdvertisedPriceExposure" type="{urn:ebay:apis:eBLBaseComponents}MinimumAdvertisedPriceExposureCodeType" minOccurs="0"/>
 *         <element name="PricingTreatment" type="{urn:ebay:apis:eBLBaseComponents}PricingTreatmentCodeType" minOccurs="0"/>
 *         <element name="SoldOneBay" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <element name="SoldOffeBay" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
 *         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DiscountPriceInfoType", propOrder = { "originalRetailPrice", "minimumAdvertisedPrice", "minimumAdvertisedPriceExposure", "pricingTreatment", "soldOneBay", "soldOffeBay", "any" }) public class DiscountPriceInfoType { @XmlElement(name = "OriginalRetailPrice") protected AmountType originalRetailPrice; @XmlElement(name = "MinimumAdvertisedPrice") protected AmountType minimumAdvertisedPrice; @XmlElement(name = "MinimumAdvertisedPriceExposure") @XmlSchemaType(name = "token") protected MinimumAdvertisedPriceExposureCodeType minimumAdvertisedPriceExposure; @XmlElement(name = "PricingTreatment") @XmlSchemaType(name = "token") protected PricingTreatmentCodeType pricingTreatment; @XmlElement(name = "SoldOneBay", defaultValue = "false") protected Boolean soldOneBay; @XmlElement(name = "SoldOffeBay", defaultValue = "false") protected Boolean soldOffeBay; @XmlAnyElement(lax = true) protected List any; /** * Gets the value of the originalRetailPrice property. * * @return * possible object is * {@link AmountType } * */ public AmountType getOriginalRetailPrice() { return originalRetailPrice; } /** * Sets the value of the originalRetailPrice property. * * @param value * allowed object is * {@link AmountType } * */ public void setOriginalRetailPrice(AmountType value) { this.originalRetailPrice = value; } /** * Gets the value of the minimumAdvertisedPrice property. * * @return * possible object is * {@link AmountType } * */ public AmountType getMinimumAdvertisedPrice() { return minimumAdvertisedPrice; } /** * Sets the value of the minimumAdvertisedPrice property. * * @param value * allowed object is * {@link AmountType } * */ public void setMinimumAdvertisedPrice(AmountType value) { this.minimumAdvertisedPrice = value; } /** * Gets the value of the minimumAdvertisedPriceExposure property. * * @return * possible object is * {@link MinimumAdvertisedPriceExposureCodeType } * */ public MinimumAdvertisedPriceExposureCodeType getMinimumAdvertisedPriceExposure() { return minimumAdvertisedPriceExposure; } /** * Sets the value of the minimumAdvertisedPriceExposure property. * * @param value * allowed object is * {@link MinimumAdvertisedPriceExposureCodeType } * */ public void setMinimumAdvertisedPriceExposure(MinimumAdvertisedPriceExposureCodeType value) { this.minimumAdvertisedPriceExposure = value; } /** * Gets the value of the pricingTreatment property. * * @return * possible object is * {@link PricingTreatmentCodeType } * */ public PricingTreatmentCodeType getPricingTreatment() { return pricingTreatment; } /** * Sets the value of the pricingTreatment property. * * @param value * allowed object is * {@link PricingTreatmentCodeType } * */ public void setPricingTreatment(PricingTreatmentCodeType value) { this.pricingTreatment = value; } /** * Gets the value of the soldOneBay property. * * @return * possible object is * {@link Boolean } * */ public Boolean isSoldOneBay() { return soldOneBay; } /** * Sets the value of the soldOneBay property. * * @param value * allowed object is * {@link Boolean } * */ public void setSoldOneBay(Boolean value) { this.soldOneBay = value; } /** * Gets the value of the soldOffeBay property. * * @return * possible object is * {@link Boolean } * */ public Boolean isSoldOffeBay() { return soldOffeBay; } /** * Sets the value of the soldOffeBay property. * * @param value * allowed object is * {@link Boolean } * */ public void setSoldOffeBay(Boolean value) { this.soldOffeBay = value; } /** * Gets the value of the any 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 any property. * *

* For example, to add a new item, do as follows: *

     *    getAny().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * {@link Element } * * */ public List getAny() { if (any == null) { any = new ArrayList(); } return this.any; } }