Changes since
the last release

com.ebay.soap.eBLBaseComponents
Enum ListingDurationCodeType

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

public enum ListingDurationCodeType
extends Enum<ListingDurationCodeType>

Java class for ListingDurationCodeType.

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

 <simpleType name="ListingDurationCodeType">
   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
     <enumeration value="Days_1"/>
     <enumeration value="Days_3"/>
     <enumeration value="Days_5"/>
     <enumeration value="Days_7"/>
     <enumeration value="Days_10"/>
     <enumeration value="Days_14"/>
     <enumeration value="Days_21"/>
     <enumeration value="Days_30"/>
     <enumeration value="Days_60"/>
     <enumeration value="Days_90"/>
     <enumeration value="Days_120"/>
     <enumeration value="GTC"/>
     <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
CUSTOM_CODE
          This value is reserved for internal or future use.
DAYS_1
          This value is used to set the duration of the listing to one day.
DAYS_10
          This value is used to set the duration of the listing to 10 days.
DAYS_120
          This value is used to set the duration of the listing to 120 days.
DAYS_14
          This value is used to set the duration of the listing to 14 days.
DAYS_21
          This value is used to set the duration of the listing to 21 days.
DAYS_3
          This value is used to set the duration of the listing to three days.
DAYS_30
          This value is used to set the duration of the listing to 30 days.
DAYS_5
          This value is used to set the duration of the listing to five days.
DAYS_60
          This value is used to set the duration of the listing to 60 days.
DAYS_7
          This value is used to set the duration of the listing to seven days.
DAYS_90
          This value is used to set the duration of the listing to 90 days.
GTC
          This value is used to set the duration of the listing to "Good 'Til Cancelled".
 
Method Summary
static ListingDurationCodeType fromValue(String v)
           
 String value()
           
static ListingDurationCodeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ListingDurationCodeType[] 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

DAYS_1

public static final ListingDurationCodeType DAYS_1
This value is used to set the duration of the listing to one day. A one-day listing duration is typically only available to sellers with a Feedback score of 10 or higher, so sellers with a Feedback score of less than 10 may be restricted from using a one-day listing duration. The seller can call GetCategoryFeatures with ListingDurations included as a FeatureID value in the call request to see if the one-day listing duration is available.

A one-day listing duration is generally applicable to an auction listing or to a Real Estate Classified Ad.


DAYS_3

public static final ListingDurationCodeType DAYS_3
This value is used to set the duration of the listing to three days.

A three-day listing duration is applicable to most listing types.


DAYS_5

public static final ListingDurationCodeType DAYS_5
This value is used to set the duration of the listing to five days.

A five-day listing duration is applicable to most listing types.


DAYS_7

public static final ListingDurationCodeType DAYS_7
This value is used to set the duration of the listing to seven days.

A seven-day listing duration is applicable to most listing types.


DAYS_10

public static final ListingDurationCodeType DAYS_10
This value is used to set the duration of the listing to 10 days.

A 10-day listing duration is applicable to most listing types.


DAYS_14

public static final ListingDurationCodeType DAYS_14
This value is used to set the duration of the listing to 14 days.

A 14-day listing duration is typically only applicable to Classified Ad listings in specific categories.


DAYS_21

public static final ListingDurationCodeType DAYS_21
This value is used to set the duration of the listing to 21 days.

A 21-day listing duration is typically only applicable to eBay Motors Local Market vehicle listings, a listing type that is only available to eBay Motors Dealers.


DAYS_30

public static final ListingDurationCodeType DAYS_30
This value is used to set the duration of the listing to 30 days.

A 30-day listing duration is typically available for fixed-price listing, Classified Ad listings, and Real Estate auction listings.


DAYS_60

public static final ListingDurationCodeType DAYS_60
This value is used to set the duration of the listing to 60 days.

A 60-day listing duration is typically only applicable to Classified Ad listings in specific categories.


DAYS_90

public static final ListingDurationCodeType DAYS_90
This value is used to set the duration of the listing to 90 days.

A 90-day listing duration is generally only applicable to a Real Estate Classified Ad.


DAYS_120

public static final ListingDurationCodeType DAYS_120
This value is used to set the duration of the listing to 120 days.

An 120-day listing duration is typically only applicable to Classified Ad listings in specific categories.


GTC

public static final ListingDurationCodeType GTC
This value is used to set the duration of the listing to "Good 'Til Cancelled". This option is available for fixed-price and Classified Ad listings. "Good 'Til Cancelled" fixed-price listings will be relisted automatically every 30 days until all inventory is sold out (e.g., Item.Quantity=0 in a single-variation fixed-price listing, or all occurences of Item.Variations.Variation.Quantity=0 in a multi-variation fixed-price listing), or the seller ends the fixed-price listing.


CUSTOM_CODE

public static final ListingDurationCodeType CUSTOM_CODE
This value is reserved for internal or future use.

Method Detail

values

public static ListingDurationCodeType[] 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 (ListingDurationCodeType c : ListingDurationCodeType.values())
    System.out.println(c);

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

valueOf

public static ListingDurationCodeType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

fromValue

public static ListingDurationCodeType fromValue(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.