Class CreateListingRequest
java.lang.Object
com.amilesend.discogs.model.marketplace.CreateListingRequest
- All Implemented Interfaces:
BodyBasedRequest, QueryParameterBasedRequest
- Direct Known Subclasses:
UpdateListingRequest
The request to create a new listing.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
CreateListingRequest.CreateListingRequestBuilder<C extends CreateListingRequest, B extends CreateListingRequest.CreateListingRequestBuilder<C,
B>> -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateListingRequest.CreateListingRequestBuilder
<?, ?> builder()
boolean
Indicator to allow offers (optional).Item remarks (optional).The condition of the listing item (required).The external identifier (optional).The number of items this listing counts as (for shipping calculations) (optional).The item location (optional).double
getPrice()
The price in the seller's currency (required).long
The release identifier (required).The sleeve condition of the listing item (optional).The listing status (required).The item wight in grams (optional).int
hashCode()
okhttp3.HttpUrl.Builder
populateQueryParameters
(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder
.toString()
-
Method Details
-
populateQueryParameters
public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder) Description copied from interface:QueryParameterBasedRequest
Helper method to populate query parameters of aHttpUrl.Builder
.- Specified by:
populateQueryParameters
in interfaceQueryParameterBasedRequest
- Parameters:
urlBuilder
- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getReleaseId
public long getReleaseId()The release identifier (required). -
getCondition
-
getStatus
-
getPrice
public double getPrice()The price in the seller's currency (required). -
getSleeveCondition
The sleeve condition of the listing item (optional).- See Also:
-
getComments
Item remarks (optional). -
getAllowOffers
Indicator to allow offers (optional). -
getExternalId
The external identifier (optional). -
getLocation
The item location (optional). -
getWeight
The item wight in grams (optional). Note: Set this field to"auto"
to have the weight automatically estimated. -
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
-
hashCode
-
toString
-