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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA 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 expandableparentobject.Get expandedparent.A positive integer representing the number of instances ofparentthat are included in this order item.getType()The type of line item.inthashCode()voidA 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.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDescription(String description) Description of the line item, meant to be displayable to the user (e.g.,"Express shipping").voidString representing the object's type.voidvoidsetParentObject(Sku expandableObject) voidsetQuantity(Long quantity) A positive integer representing the number of instances ofparentthat are included in this order item.voidThe 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 expandableparentobject. -
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 ofparentthat are included in this order item. Applicable/present only iftypeissku. -
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 ofparentthat are included in this order item. Applicable/present only iftypeissku. -
setType
The type of line item. One ofsku,tax,shipping, ordiscount. -
equals
-
canEqual
-
hashCode
public int hashCode()
-