public class OrderReturn extends ApiResource implements HasId
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
OrderReturn() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
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.
|
java.lang.Long |
getCreated()
Time at which the object was created.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.util.List<OrderItem> |
getItems()
The items included in this order return.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getOrder()
Get id of expandable `order` object.
|
Order |
getOrderObject()
Get expanded `order`.
|
java.lang.String |
getRefund()
Get id of expandable `refund` object.
|
Refund |
getRefundObject()
Get expanded `refund`.
|
int |
hashCode() |
static OrderReturnCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your order returns.
|
static OrderReturnCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your order returns.
|
static OrderReturnCollection |
list(OrderReturnListParams params)
Returns a list of your order returns.
|
static OrderReturnCollection |
list(OrderReturnListParams params,
RequestOptions options)
Returns a list of your order returns.
|
static OrderReturn |
retrieve(java.lang.String id)
Retrieves the details of an existing order return.
|
static OrderReturn |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the details of an existing order return.
|
static OrderReturn |
retrieve(java.lang.String id,
OrderReturnRetrieveParams params,
RequestOptions options)
Retrieves the details of an existing order return.
|
static OrderReturn |
retrieve(java.lang.String id,
RequestOptions options)
Retrieves the details of an existing order return.
|
void |
setAmount(java.lang.Long amount)
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.
|
void |
setCreated(java.lang.Long created)
Time at which the object was created.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setItems(java.util.List<OrderItem> items)
The items included in this order return.
|
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setOrder(java.lang.String id) |
void |
setOrderObject(Order expandableObject) |
void |
setRefund(java.lang.String id) |
void |
setRefundObject(Refund expandableObject) |
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getOrder()
public void setOrder(java.lang.String id)
public Order getOrderObject()
public void setOrderObject(Order expandableObject)
public java.lang.String getRefund()
public void setRefund(java.lang.String id)
public Refund getRefundObject()
public void setRefundObject(Refund expandableObject)
public static OrderReturnCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static OrderReturnCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static OrderReturnCollection list(OrderReturnListParams params) throws StripeException
StripeException
public static OrderReturnCollection list(OrderReturnListParams params, RequestOptions options) throws StripeException
StripeException
public static OrderReturn retrieve(java.lang.String id) throws StripeException
StripeException
public static OrderReturn retrieve(java.lang.String id, RequestOptions options) throws StripeException
StripeException
public static OrderReturn retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static OrderReturn retrieve(java.lang.String id, OrderReturnRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public java.lang.Long getAmount()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.util.List<OrderItem> getItems()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
public void setAmount(java.lang.Long amount)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setId(java.lang.String id)
public void setItems(java.util.List<OrderItem> items)
public void setLivemode(java.lang.Boolean livemode)
public void setObject(java.lang.String object)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object