Changes since
the last release

com.ebay.soap.eBLBaseComponents
Enum DiscountNameCodeType

java.lang.Object
  extended by java.lang.Enum<DiscountNameCodeType>
      extended by com.ebay.soap.eBLBaseComponents.DiscountNameCodeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DiscountNameCodeType>

public enum DiscountNameCodeType
extends java.lang.Enum<DiscountNameCodeType>

Java class for DiscountNameCodeType.

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

 <simpleType name="DiscountNameCodeType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
     <enumeration value="EachAdditionalAmount"/>
     <enumeration value="EachAdditionalAmountOff"/>
     <enumeration value="EachAdditionalPercentOff"/>
     <enumeration value="IndividualItemWeight"/>
     <enumeration value="CombinedItemWeight"/>
     <enumeration value="WeightOff"/>
     <enumeration value="ShippingCostXForAmountY"/>
     <enumeration value="ShippingCostXForItemCountN"/>
     <enumeration value="MaximumShippingCostPerOrder"/>
     <enumeration value="CustomCode"/>
   </restriction>
 </simpleType>
 
Note: Per JAXB standards, underscores are added to separate words in enumerations (e.g., PayPal becomes PAY_PAL).


Enum Constant Summary
COMBINED_ITEM_WEIGHT
          Shipping cost is based on the total weight of all individual items.
CUSTOM_CODE
          Reserved for internal or future use.
EACH_ADDITIONAL_AMOUNT
          The cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item).
EACH_ADDITIONAL_AMOUNT_OFF
          The amount by which to reduce the cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item).
EACH_ADDITIONAL_PERCENT_OFF
          The percentage by which to reduce the cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item).
INDIVIDUAL_ITEM_WEIGHT
          Shipping cost is the total of what it would cost to ship each item individually.
MAXIMUM_SHIPPING_COST_PER_ORDER
          The shipping cost will not exceed this.
SHIPPING_COST_X_FOR_AMOUNT_Y
          Shipping cost X applies if the total cost of items purchased is Y.
SHIPPING_COST_X_FOR_ITEM_COUNT_N
          Shipping cost X applies if the total number of items purchased is N.
WEIGHT_OFF
          The amount of weight to subtract for each item beyond the first item before shipping costs are calculated.
 
Method Summary
static DiscountNameCodeType fromValue(java.lang.String v)
           
 java.lang.String value()
           
static DiscountNameCodeType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DiscountNameCodeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EACH_ADDITIONAL_AMOUNT

public static final DiscountNameCodeType EACH_ADDITIONAL_AMOUNT
The cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item). Let's say the buyer purchases three items, each set to ship for $8, and the seller set EachAdditionalAmount to $6. The cost to ship three items would normally be $24, but since the seller specified $6, the total shipping cost would be $8 + $6 + $6, or $20. For flat shipping discount profile only.


EACH_ADDITIONAL_AMOUNT_OFF

public static final DiscountNameCodeType EACH_ADDITIONAL_AMOUNT_OFF
The amount by which to reduce the cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item). Let's say the buyer purchases three items, each set to ship for $8, and the seller set EachAdditionalAmountOff to $2. The cost to ship three items would normally be $24, but since the seller specified $2, the total shipping cost would be $24 - (two additional items x $2), or $20. For flat shipping discount profile only.


EACH_ADDITIONAL_PERCENT_OFF

public static final DiscountNameCodeType EACH_ADDITIONAL_PERCENT_OFF
The percentage by which to reduce the cost to ship each item beyond the first item (where the item with the highest shipping cost is selected by eBay as the first item). Let's say the buyer purchases three items, each set to ship for $8, and the seller set EachAdditionalPercentOff to 0.25. The cost to ship three items would normally be $24, but since the seller specified 0.25 ($2 out of 8), the total shipping cost would be $24 - (two additional items x $2), or $20. For flat rate shipping discount profile only.


INDIVIDUAL_ITEM_WEIGHT

public static final DiscountNameCodeType INDIVIDUAL_ITEM_WEIGHT
Shipping cost is the total of what it would cost to ship each item individually. This is simply a way to define how shipping is to be calculated--there is no discount for the buyer with this selection. For calculated shipping discount profile only.


COMBINED_ITEM_WEIGHT

public static final DiscountNameCodeType COMBINED_ITEM_WEIGHT
Shipping cost is based on the total weight of all individual items. This is simply a way to define how shipping is to be calculated--there is no discount for the buyer with this selection. For calculated shipping discount profile only.


WEIGHT_OFF

public static final DiscountNameCodeType WEIGHT_OFF
The amount of weight to subtract for each item beyond the first item before shipping costs are calculated. For example, there may be less packing material when the items are combined in one box than if they were shipped individually. Let's say the buyer purchases three items, each 10 oz. in weight, and the seller set WeightOff to 2 oz. The combined weight would be 30 oz., but since the seller specified 2 oz. off, the total weight for shipping cost calculation would be 30 oz. - (two additional items x 2 oz.), or 26 oz. For calculated shipping discount profile only.


SHIPPING_COST_X_FOR_AMOUNT_Y

public static final DiscountNameCodeType SHIPPING_COST_X_FOR_AMOUNT_Y
Shipping cost X applies if the total cost of items purchased is Y. For promotional discount only.


SHIPPING_COST_X_FOR_ITEM_COUNT_N

public static final DiscountNameCodeType SHIPPING_COST_X_FOR_ITEM_COUNT_N
Shipping cost X applies if the total number of items purchased is N. For promotional discount only.


MAXIMUM_SHIPPING_COST_PER_ORDER

public static final DiscountNameCodeType MAXIMUM_SHIPPING_COST_PER_ORDER
The shipping cost will not exceed this. For promotional discount only.


CUSTOM_CODE

public static final DiscountNameCodeType CUSTOM_CODE
Reserved for internal or future use.

Method Detail

values

public static DiscountNameCodeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DiscountNameCodeType c : DiscountNameCodeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DiscountNameCodeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public java.lang.String value()

fromValue

public static DiscountNameCodeType fromValue(java.lang.String v)

Changes since
the last release

The information contained in this document is proprietary and confidential. Use of this information and the eBay API requires a Non-Disclosure Agreement (NDA) between the user and eBay Inc. For information regarding a qualifying NDA, contact Developer Relations: developer-relations@ebay.com
© 2004-2009 eBay Inc. All rights reserved.