public class

CrossPromotionsType

extends Object
java.lang.Object
   ↳ ebay.apis.eblbasecomponents.CrossPromotionsType

Class Overview

Merchandizing info for an Item. This contains a list of crosssell or upsell items. PrimaryScheme, PromotionMethod,SellerId,ItemId, ShippingDiscount do not have be min occur 0

Java class for CrossPromotionsType complex type.

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

 <complexType name="CrossPromotionsType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ItemID" type="{urn:ebay:apis:eBLBaseComponents}ItemIDType"/>
         <element name="PrimaryScheme" type="{urn:ebay:apis:eBLBaseComponents}PromotionSchemeCodeType"/>
         <element name="PromotionMethod" type="{urn:ebay:apis:eBLBaseComponents}PromotionMethodCodeType"/>
         <element name="SellerID" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="ShippingDiscount" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
         <element name="SellerKey" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="StoreName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="PromotedItem" type="{urn:ebay:apis:eBLBaseComponents}PromotedItemType" maxOccurs="unbounded"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 

Summary

Fields
protected String itemID
protected PromotionSchemeCodeType primaryScheme
protected List<PromotedItemType> promotedItem
protected PromotionMethodCodeType promotionMethod
protected String sellerID
protected String sellerKey
protected boolean shippingDiscount
protected String storeName
Public Constructors
CrossPromotionsType()
Public Methods
String getItemID()
Gets the value of the itemID property.
PromotionSchemeCodeType getPrimaryScheme()
Gets the value of the primaryScheme property.
List<PromotedItemType> getPromotedItem()
Gets the value of the promotedItem property.
PromotionMethodCodeType getPromotionMethod()
Gets the value of the promotionMethod property.
String getSellerID()
Gets the value of the sellerID property.
String getSellerKey()
Gets the value of the sellerKey property.
String getStoreName()
Gets the value of the storeName property.
boolean isShippingDiscount()
Gets the value of the shippingDiscount property.
void setItemID(String value)
Sets the value of the itemID property.
void setPrimaryScheme(PromotionSchemeCodeType value)
Sets the value of the primaryScheme property.
void setPromotionMethod(PromotionMethodCodeType value)
Sets the value of the promotionMethod property.
void setSellerID(String value)
Sets the value of the sellerID property.
void setSellerKey(String value)
Sets the value of the sellerKey property.
void setShippingDiscount(boolean value)
Sets the value of the shippingDiscount property.
void setStoreName(String value)
Sets the value of the storeName property.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected String itemID

protected PromotionSchemeCodeType primaryScheme

protected List<PromotedItemType> promotedItem

protected PromotionMethodCodeType promotionMethod

protected String sellerID

protected String sellerKey

protected boolean shippingDiscount

protected String storeName

Public Constructors

public CrossPromotionsType ()

Public Methods

public String getItemID ()

Gets the value of the itemID property.

Returns
  • possible object is String

public PromotionSchemeCodeType getPrimaryScheme ()

Gets the value of the primaryScheme property.

Returns

public List<PromotedItemType> getPromotedItem ()

Gets the value of the promotedItem 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 promotedItem property.

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

    getPromotedItem().add(newItem);
 

Objects of the following type(s) are allowed in the list PromotedItemType

public PromotionMethodCodeType getPromotionMethod ()

Gets the value of the promotionMethod property.

Returns

public String getSellerID ()

Gets the value of the sellerID property.

Returns
  • possible object is String

public String getSellerKey ()

Gets the value of the sellerKey property.

Returns
  • possible object is String

public String getStoreName ()

Gets the value of the storeName property.

Returns
  • possible object is String

public boolean isShippingDiscount ()

Gets the value of the shippingDiscount property.

public void setItemID (String value)

Sets the value of the itemID property.

Parameters
value Allowed object is String

public void setPrimaryScheme (PromotionSchemeCodeType value)

Sets the value of the primaryScheme property.

Parameters
value Allowed object is PromotionSchemeCodeType

public void setPromotionMethod (PromotionMethodCodeType value)

Sets the value of the promotionMethod property.

Parameters
value Allowed object is PromotionMethodCodeType

public void setSellerID (String value)

Sets the value of the sellerID property.

Parameters
value Allowed object is String

public void setSellerKey (String value)

Sets the value of the sellerKey property.

Parameters
value Allowed object is String

public void setShippingDiscount (boolean value)

Sets the value of the shippingDiscount property.

Parameters
value

public void setStoreName (String value)

Sets the value of the storeName property.

Parameters
value Allowed object is String