Package com.stripe.model
Class OrderReturn
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.OrderReturn
- All Implemented Interfaces:
HasId,StripeObjectInterface
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.Time at which the object was created.Three-letter ISO currency code, in lowercase.getId()Unique identifier for the object.getItems()The items included in this order return.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.getOrder()Get ID of expandableorderobject.Get expandedorder.Get ID of expandablerefundobject.Get expandedrefund.inthashCode()static OrderReturnCollectionlist(OrderReturnListParams params) Returns a list of your order returns.static OrderReturnCollectionlist(OrderReturnListParams params, RequestOptions options) Returns a list of your order returns.static OrderReturnCollectionReturns a list of your order returns.static OrderReturnCollectionlist(Map<String, Object> params, RequestOptions options) Returns a list of your order returns.static OrderReturnRetrieves the details of an existing order return.static OrderReturnretrieve(String id, RequestOptions options) Retrieves the details of an existing order return.static OrderReturnretrieve(String id, OrderReturnRetrieveParams params, RequestOptions options) Retrieves the details of an existing order return.static OrderReturnRetrieves the details of an existing order return.voidA positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidUnique identifier for the object.voidThe items included in this order return.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidvoidsetOrderObject(Order expandableObject) voidvoidsetRefundObject(Refund expandableObject) Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
OrderReturn
public OrderReturn()
-
-
Method Details
-
getOrder
Get ID of expandableorderobject. -
setOrder
-
getOrderObject
Get expandedorder. -
setOrderObject
-
getRefund
Get ID of expandablerefundobject. -
setRefund
-
getRefundObject
Get expandedrefund. -
setRefundObject
-
list
Returns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.- Throws:
StripeException
-
list
public static OrderReturnCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionReturns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.- Throws:
StripeException
-
list
Returns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.- Throws:
StripeException
-
list
public static OrderReturnCollection list(OrderReturnListParams params, RequestOptions options) throws StripeException Returns a list of your order returns. The returns are returned sorted by creation date, with the most recently created return appearing first.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
public static OrderReturn retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
public static OrderReturn retrieve(String id, OrderReturnRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing order return. Supply the unique order ID from either an order return creation request or the order return list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
getAmount
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getItems
The items included in this order return. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
order_return. -
setAmount
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the returned line item. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setId
Unique identifier for the object. -
setItems
The items included in this order return. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
order_return. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-