Package com.stripe.model
Class OrderItem
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.OrderItem
-
- All Implemented Interfaces:
StripeObjectInterface
public class OrderItem extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description OrderItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 expandableparent
object.Sku
getParentObject()
Get expandedparent
.java.lang.Long
getQuantity()
A positive integer representing the number of instances ofparent
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 ofparent
that are included in this order item.void
setType(java.lang.String type)
The type of line item.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getParent
public java.lang.String getParent()
Get ID of expandableparent
object.
-
setParent
public void setParent(java.lang.String id)
-
getParentObject
public Sku getParentObject()
Get expandedparent
.
-
setParentObject
public void setParentObject(Sku expandableObject)
-
getAmount
public 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.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getDescription
public java.lang.String getDescription()
Description of the line item, meant to be displayable to the user (e.g.,"Express shipping"
).
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
order_item
.
-
getQuantity
public java.lang.Long getQuantity()
A positive integer representing the number of instances ofparent
that are included in this order item. Applicable/present only iftype
issku
.
-
getType
public java.lang.String getType()
The type of line item. One ofsku
,tax
,shipping
, ordiscount
.
-
setAmount
public 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.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setDescription
public void setDescription(java.lang.String description)
Description of the line item, meant to be displayable to the user (e.g.,"Express shipping"
).
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
order_item
.
-
setQuantity
public void setQuantity(java.lang.Long quantity)
A positive integer representing the number of instances ofparent
that are included in this order item. Applicable/present only iftype
issku
.
-
setType
public void setType(java.lang.String type)
The type of line item. One ofsku
,tax
,shipping
, ordiscount
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-