public final class MatchingProductDiscountGet extends Base implements SphereRequest<ProductDiscount>
Modifier and Type | Method and Description |
---|---|
ProductDiscount |
deserialize(HttpResponse httpResponse)
Takes an http response and maps it into a Java object of type T.
|
Price |
getPrice() |
String |
getProductId() |
Boolean |
getStaged() |
Integer |
getVariantId() |
HttpRequestIntent |
httpRequestIntent()
Provides an http request intent, this does not include the execution of it.
|
static MatchingProductDiscountGet |
of(String productId,
Integer variantId,
Boolean staged,
Price price) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canDeserialize
public static MatchingProductDiscountGet of(String productId, Integer variantId, Boolean staged, Price price)
public ProductDiscount deserialize(HttpResponse httpResponse)
SphereRequest
SphereRequest.canDeserialize(HttpResponse)
if the response can be consumed.deserialize
in interface SphereRequest<ProductDiscount>
httpResponse
- the http response of the APIpublic HttpRequestIntent httpRequestIntent()
SphereRequest
httpRequestIntent
in interface SphereRequest<ProductDiscount>
public String getProductId()
public Integer getVariantId()
public Boolean getStaged()
public Price getPrice()