public class Product extends APIResource implements HasId, MetadataStore<Product>
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Product() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncodeequals, toStringpublic void setId(String id)
public Boolean getActive()
public void setActive(Boolean active)
public String getCaption()
public void setCaption(String caption)
public Long getCreated()
public void setCreated(Long created)
public String getDescription()
public void setDescription(String description)
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Map<String,String> getMetadata()
getMetadata in interface MetadataStore<Product>public String getName()
public void setName(String name)
public PackageDimensions getPackageDimensions()
public void setPackageDimensions(PackageDimensions packageDimensions)
public Boolean getShippable()
public void setShippable(Boolean shippable)
public SKUCollection getSkus()
public void setSkus(SKUCollection skus)
public Long getUpdated()
public void setUpdated(Long updated)
public String getURL()
public void setURL(String url)
public static Product create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Product retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Product update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Product>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic static Product create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Product retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedProduct delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedProduct delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static ProductCollection list(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static ProductCollection list(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static ProductCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static ProductCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Product update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Product>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionCopyright © 2016 Stripe. All rights reserved.