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