public class OrderItem extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
OrderItem() |
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 line item.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getDescription()
Description of the line item, meant to be displayable to the user (e.g., `"Express shipping"`).
|
java.lang.String |
getObject()
String representing the object's type.
|
java.lang.String |
getParent()
Get id of expandable `parent` object.
|
Sku |
getParentObject()
Get expanded `parent`.
|
java.lang.Long |
getQuantity()
A positive integer representing the number of instances of `parent` that are included in this
order item.
|
java.lang.String |
getType()
The type of line item.
|
int |
hashCode() |
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 line item.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setDescription(java.lang.String description)
Description of the line item, meant to be displayable to the user (e.g., `"Express shipping"`).
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setParent(java.lang.String id) |
void |
setParentObject(Sku expandableObject) |
void |
setQuantity(java.lang.Long quantity)
A positive integer representing the number of instances of `parent` that are included in this
order item.
|
void |
setType(java.lang.String type)
The type of line item.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getParent()
public void setParent(java.lang.String id)
public Sku getParentObject()
public void setParentObject(Sku expandableObject)
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.String getDescription()
public java.lang.String getObject()
public java.lang.Long getQuantity()
public java.lang.String getType()
public void setAmount(java.lang.Long amount)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
public void setObject(java.lang.String object)
public void setQuantity(java.lang.Long quantity)
public void setType(java.lang.String type)
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