// Generated by xsd compiler for android/java // DO NOT CHANGE! package com.ebay.marketplace.search.v1.services; import java.io.Serializable; import com.leansoft.nano.annotation.*; /** * * This container supplies information for an item that has a Strike-Through * Pricing (STP) or Minimum Advertised Price (MAP) discount pricing treatment. * STP and MAP applies to only fixed price, BIN items. STP is available on the * US, UK, and DE sites while MAP is available only on the US site. * <br><br> * This feature is available to qualified sellers who participate in the * Discount Pricing program. A seller can provide a discount price treatment for * Non-MSKU and MSKU items in Clothing, Shoes and Accessories (CDA), Motors, and * Electronics (Home and Garden is expected to be supported in the future). * */ public class DiscountPriceInfo implements Serializable { private static final long serialVersionUID = -1L; @Element private Amount originalRetailPrice; @Element private MapExposureEnum minimumAdvertisedPriceExposure; @Element private PriceTreatmentEnum pricingTreatment; @Element private Boolean soldOnEbay; @Element private Boolean soldOffEbay; /** * public getter * * * This field contains the price to which a discounted-price display treatment * is to be applied (for example, a strikethrough price). The discounted price * of an item (specified in the currentPrice field) is the BIN price and is * less than the originalRetailPrice of the item. * * * @returns com.ebay.marketplace.search.v1.services.Amount */ public Amount getOriginalRetailPrice() { return this.originalRetailPrice; } /** * public setter * * * This field contains the price to which a discounted-price display treatment * is to be applied (for example, a strikethrough price). The discounted price * of an item (specified in the currentPrice field) is the BIN price and is * less than the originalRetailPrice of the item. * * * @param com.ebay.marketplace.search.v1.services.Amount */ public void setOriginalRetailPrice(Amount originalRetailPrice) { this.originalRetailPrice = originalRetailPrice; } /** * public getter * * * If pricingTreatment is MAP, the item price cannot be displayed directly on * the page containing the item. When listing a MAP item, the seller stipulates * how they want the buyer to view the price of the item by setting this field * to either PreCheckout or DuringCheckout. * <br /><br /> * If this field is set to PreCheckout, the buyer must click a link (or button) * to view the item price on a different page (such as in a pop-up window). If * this field is set to DuringCheckout, the currentPrice must be shown only * when the buyer is driven to the eBay site, where the price is displayed in * the checkout flow. * <br /><br /> * MAP items are supported only on the eBay US site. * * * @returns com.ebay.marketplace.search.v1.services.MapExposureEnum */ public MapExposureEnum getMinimumAdvertisedPriceExposure() { return this.minimumAdvertisedPriceExposure; } /** * public setter * * * If pricingTreatment is MAP, the item price cannot be displayed directly on * the page containing the item. When listing a MAP item, the seller stipulates * how they want the buyer to view the price of the item by setting this field * to either PreCheckout or DuringCheckout. * <br /><br /> * If this field is set to PreCheckout, the buyer must click a link (or button) * to view the item price on a different page (such as in a pop-up window). If * this field is set to DuringCheckout, the currentPrice must be shown only * when the buyer is driven to the eBay site, where the price is displayed in * the checkout flow. * <br /><br /> * MAP items are supported only on the eBay US site. * * * @param com.ebay.marketplace.search.v1.services.MapExposureEnum */ public void setMinimumAdvertisedPriceExposure(MapExposureEnum minimumAdvertisedPriceExposure) { this.minimumAdvertisedPriceExposure = minimumAdvertisedPriceExposure; } /** * public getter * * * This field denotes whether or not an item qualifies for a discount pricing * treatment display. If a seller lists an item with DiscountPriceInfo values, * the item response container will include a DiscountPriceInfo container, * and this field will be set to either STP, MAP, or None. If this field is * set to MAP, you must abide by the rules for displaying MAP items, as described * in minimumAdvertisedPriceExposure. * <br /><br /> * <span class="tablenote"><b>Important:</b> * For listings that return PricingTreatment set to MAP, you are legally * required to follow the rules for displaying the price of the item to * potential buyers. You are bound by the terms of the API License Agreement * to follow these rules. Refer to the API License Agreement for consequences * of non-compliance. * </span> * * * @returns com.ebay.marketplace.search.v1.services.PriceTreatmentEnum */ public PriceTreatmentEnum getPricingTreatment() { return this.pricingTreatment; } /** * public setter * * * This field denotes whether or not an item qualifies for a discount pricing * treatment display. If a seller lists an item with DiscountPriceInfo values, * the item response container will include a DiscountPriceInfo container, * and this field will be set to either STP, MAP, or None. If this field is * set to MAP, you must abide by the rules for displaying MAP items, as described * in minimumAdvertisedPriceExposure. * <br /><br /> * <span class="tablenote"><b>Important:</b> * For listings that return PricingTreatment set to MAP, you are legally * required to follow the rules for displaying the price of the item to * potential buyers. You are bound by the terms of the API License Agreement * to follow these rules. Refer to the API License Agreement for consequences * of non-compliance. * </span> * * * @param com.ebay.marketplace.search.v1.services.PriceTreatmentEnum */ public void setPricingTreatment(PriceTreatmentEnum pricingTreatment) { this.pricingTreatment = pricingTreatment; } /** * public getter * * * Used by the eBay UK and eBay Germany (DE) sites, this field indicates that * the discount price (specified as currentPrice) is the price for which the * seller offered the same (or similar) item for sale on eBay within the * previous 30 days. The discount price is always in reference to the seller's * own price for the item. * <br /><br /> * In the event both soldOffEbay and soldOnEbay fields areset, soldOnEbay * takes precedence. * * * @returns java.lang.Boolean */ public Boolean getSoldOnEbay() { return this.soldOnEbay; } /** * public setter * * * Used by the eBay UK and eBay Germany (DE) sites, this field indicates that * the discount price (specified as currentPrice) is the price for which the * seller offered the same (or similar) item for sale on eBay within the * previous 30 days. The discount price is always in reference to the seller's * own price for the item. * <br /><br /> * In the event both soldOffEbay and soldOnEbay fields areset, soldOnEbay * takes precedence. * * * @param java.lang.Boolean */ public void setSoldOnEbay(Boolean soldOnEbay) { this.soldOnEbay = soldOnEbay; } /** * public getter * * * Used by the eBay UK and eBay Germany (DE) sites, this field indicates that * the discount price (specified as currentPrice) is the price for which the * seller offered the same item for sale on a web site or offline store other * than eBay in the previous 30 days. The discount price is always in reference * to the seller's own price for the item. * <br /><br /> * In the event both soldOffEbay and soldOnEbay fields areset, soldOnEbay * takes precedence. * * * @returns java.lang.Boolean */ public Boolean getSoldOffEbay() { return this.soldOffEbay; } /** * public setter * * * Used by the eBay UK and eBay Germany (DE) sites, this field indicates that * the discount price (specified as currentPrice) is the price for which the * seller offered the same item for sale on a web site or offline store other * than eBay in the previous 30 days. The discount price is always in reference * to the seller's own price for the item. * <br /><br /> * In the event both soldOffEbay and soldOnEbay fields areset, soldOnEbay * takes precedence. * * * @param java.lang.Boolean */ public void setSoldOffEbay(Boolean soldOffEbay) { this.soldOffEbay = soldOffEbay; } }