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:
java.io.Serializable, java.lang.Comparable<ListingDurationCodeType>

public enum ListingDurationCodeType
extends java.lang.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(java.lang.String v)
           
 java.lang.String value()
           
static ListingDurationCodeType valueOf(java.lang.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.


DAYS_5

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


DAYS_7

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


DAYS_10

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


DAYS_14

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


DAYS_21

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

Note: A 21-day listing duration was typically only applicable to eBay Motors Local Market vehicle listings, but this listing duration is no longer valid/supported.


DAYS_30

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

Note: In October 2018, this listing duration was enabled for eBay Motors Local Listings, and replaced the formerly supported Days_21 enumeration value.


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.

Note: As of April 1, 2019, GTC (Good 'Til Cancelled) is the only supported listing duration for fixed-price listings on all eBay marketplaces and categories except for motor vehicle listings on eBay Motors US, and on the eBay UK and eBay Italy sites. Sellers do not have to take any action on existing listings with listing durations other than GTC, but if/when these items need to be relisted, only GTC will be supported. If any other listing duration value besides GTC is specified in this field, it will be ignored, and GTC will be used instead.
Note: As of July 1, 2019, the Good 'Til Cancelled renewal schedule has been modified from every 30 days to once per calendar month. For example, if a GTC listing is created July 5, the next monthly renewal date will be August 5. If a GTC listing is created on the 31st of the month, but the following month only has 30 days, the renewal will happen on the 30th in the following month. Finally, if a GTC listing is created on January 29-31, the renewal will happen on February 28th (or 29th during a 'Leap Year'). See the Good 'Til Cancelled listings update in the Spring 2019 Seller Updates for more information about this change.


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(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 ListingDurationCodeType 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.