Class CreateListingRequest

java.lang.Object
com.amilesend.discogs.model.marketplace.CreateListingRequest
All Implemented Interfaces:
BodyBasedRequest, QueryParameterBasedRequest
Direct Known Subclasses:
UpdateListingRequest

public class CreateListingRequest extends Object implements BodyBasedRequest
The request to create a new listing.
See Also:
  • Method Details

    • populateQueryParameters

      public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder)
      Description copied from interface: QueryParameterBasedRequest
      Helper method to populate query parameters of a HttpUrl.Builder.
      Specified by:
      populateQueryParameters in interface QueryParameterBasedRequest
      Parameters:
      urlBuilder - the HttpUrl.Builder instance
      Returns:
      the HttpUrl.Builder instance
    • builder

    • getReleaseId

      public long getReleaseId()
      The release identifier (required).
    • getCondition

      public Condition getCondition()
      The condition of the listing item (required).
      See Also:
    • getStatus

      public ListingStatus getStatus()
      The listing status (required).
      See Also:
    • getPrice

      public double getPrice()
      The price in the seller's currency (required).
    • getSleeveCondition

      public SleeveCondition getSleeveCondition()
      The sleeve condition of the listing item (optional).
      See Also:
    • getComments

      public String getComments()
      Item remarks (optional).
    • getAllowOffers

      public Boolean getAllowOffers()
      Indicator to allow offers (optional).
    • getExternalId

      public String getExternalId()
      The external identifier (optional).
    • getLocation

      public String getLocation()
      The item location (optional).
    • getWeight

      public String getWeight()
      The item wight in grams (optional). Note: Set this field to "auto" to have the weight automatically estimated.
    • getFormatQuantity

      public Double getFormatQuantity()
      The number of items this listing counts as (for shipping calculations) (optional). Note: Set this field to "auto" to have the quantity estimated.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object