Package com.stripe.model
Class Source.OrderItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Source.OrderItem
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
Source
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount (price) for this order item.This currency of this order item.Human-readable description for this order item.The ID of the associated object for this line item.The quantity of this order item.getType()
The type of this order item.int
hashCode()
void
The amount (price) for this order item.void
setCurrency
(String currency) This currency of this order item.void
setDescription
(String description) Human-readable description for this order item.void
The ID of the associated object for this line item.void
setQuantity
(Long quantity) The quantity of this order item.void
The type of this order item.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
OrderItem
public OrderItem()
-
-
Method Details
-
getAmount
The amount (price) for this order item. -
getCurrency
This currency of this order item. Required whenamount
is present. -
getDescription
Human-readable description for this order item. -
getParent
The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU). -
getQuantity
The quantity of this order item. When type issku
, this is the number of instances of the SKU to be ordered. -
getType
The type of this order item. Must besku
,tax
, orshipping
. -
setAmount
The amount (price) for this order item. -
setCurrency
This currency of this order item. Required whenamount
is present. -
setDescription
Human-readable description for this order item. -
setParent
The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU). -
setQuantity
The quantity of this order item. When type issku
, this is the number of instances of the SKU to be ordered. -
setType
The type of this order item. Must besku
,tax
, orshipping
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-