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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetAmount()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.StringgetCurrency()Three-letter ISO currency code, in lowercase.java.lang.StringgetDescription()Description of the line item, meant to be displayable to the user (e.g.,"Express shipping").java.lang.StringgetObject()String representing the object's type.java.lang.StringgetParent()Get ID of expandableparentobject.SkugetParentObject()Get expandedparent.java.lang.LonggetQuantity()A positive integer representing the number of instances ofparentthat are included in this order item.java.lang.StringgetType()The type of line item.inthashCode()voidsetAmount(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.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.voidsetDescription(java.lang.String description)Description of the line item, meant to be displayable to the user (e.g.,"Express shipping").voidsetObject(java.lang.String object)String representing the object's type.voidsetParent(java.lang.String id)voidsetParentObject(Sku expandableObject)voidsetQuantity(java.lang.Long quantity)A positive integer representing the number of instances ofparentthat are included in this order item.voidsetType(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 expandableparentobject.
-
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 ofparentthat are included in this order item. Applicable/present only iftypeissku.
-
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 ofparentthat are included in this order item. Applicable/present only iftypeissku.
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-