public class SKU extends APIResource implements HasId, MetadataStore<SKU>
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
SKU() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncode
equals, toString
public Long getCreated()
public void setCreated(Long created)
public Long getUpdated()
public void setUpdated(Long updated)
public void setId(String id)
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Boolean getActive()
public void setActive(Boolean active)
public String getImage()
public void setImage(String image)
public Integer getPrice()
public void setPrice(Integer price)
public String getCurrency()
public void setCurrency(String currency)
public Inventory getInventory()
public void setInventory(Inventory inventory)
public String getProduct()
public void setProduct(String product)
public PackageDimensions getPackageDimensions()
public void setPackageDimensions(PackageDimensions packageDimensions)
public Map<String,String> getMetadata()
getMetadata
in interface MetadataStore<SKU>
public static SKU create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static SKU retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public SKU update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<SKU>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public static SKU create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static SKU retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedSKU delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedSKU delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static SKUCollection list(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static SKUCollection list(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static SKUCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static SKUCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public SKU update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<SKU>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
Copyright © 2016 Stripe. All rights reserved.