public class Order extends APIResource implements HasId, MetadataStore<Order>
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Order() |
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 Integer getAmount()
public void setAmount(Integer amount)
public String getCurrency()
public void setCurrency(String currency)
public Map<String,String> getMetadata()
getMetadata
in interface MetadataStore<Order>
public String getStatus()
public void setStatus(String status)
public String getCharge()
public void setCharge(String charge)
public String getCustomer()
public void setCustomer(String customer)
public String getEmail()
public void setEmail(String email)
public String getSelectedShippingMethod()
public void setSelectedShippingMethod(String selectedShippingMethod)
public ShippingDetails getShipping()
public void setShipping(ShippingDetails shipping)
public List<ShippingMethod> getShippingMethods()
public void setShippingMethods(List<ShippingMethod> shippingMethods)
public Long getApplicationFee()
public void setApplicationFee(Long applicationFee)
public static Order create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Order retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Order update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Order>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public static Order create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Order retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static OrderCollection list(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static OrderCollection list(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static OrderCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static OrderCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Order update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Order>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public Order pay(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Order pay(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Copyright © 2015 Stripe. All rights reserved.