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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe 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.inthashCode()voidThe amount (price) for this order item.voidsetCurrency(String currency) This currency of this order item.voidsetDescription(String description) Human-readable description for this order item.voidThe ID of the associated object for this line item.voidsetQuantity(Long quantity) The quantity of this order item.voidThe 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 whenamountis 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 whenamountis 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()
-