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,
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,
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()
parent
object.public void setParent(java.lang.String id)
public Sku getParentObject()
parent
.public void setParentObject(Sku expandableObject)
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.String getDescription()
"Express
shipping"
).public java.lang.String getObject()
Equal to order_item
.
public java.lang.Long getQuantity()
parent
that are included in
this order item. Applicable/present only if type
is sku
.public java.lang.String getType()
sku
, tax
, shipping
, or discount
.public void setAmount(java.lang.Long amount)
public void setCurrency(java.lang.String currency)
public void setDescription(java.lang.String description)
"Express
shipping"
).public void setObject(java.lang.String object)
Equal to order_item
.
public void setQuantity(java.lang.Long quantity)
parent
that are included in
this order item. Applicable/present only if type
is sku
.public void setType(java.lang.String type)
sku
, tax
, shipping
, or discount
.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