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
public static class Source.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 boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getAmount()
The amount (price) for this order item.java.lang.String
getCurrency()
This currency of this order item.java.lang.String
getDescription()
Human-readable description for this order item.java.lang.String
getParent()
The ID of the associated object for this line item.java.lang.Long
getQuantity()
The quantity of this order item.java.lang.String
getType()
The type of this order item.int
hashCode()
void
setAmount(java.lang.Long amount)
The amount (price) for this order item.void
setCurrency(java.lang.String currency)
This currency of this order item.void
setDescription(java.lang.String description)
Human-readable description for this order item.void
setParent(java.lang.String parent)
The ID of the associated object for this line item.void
setQuantity(java.lang.Long quantity)
The quantity of this order item.void
setType(java.lang.String type)
The type of this order item.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAmount
public java.lang.Long getAmount()
The amount (price) for this order item.
-
getCurrency
public java.lang.String getCurrency()
This currency of this order item. Required whenamount
is present.
-
getDescription
public java.lang.String getDescription()
Human-readable description for this order item.
-
getParent
public java.lang.String getParent()
The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
-
getQuantity
public java.lang.Long getQuantity()
The quantity of this order item. When type issku
, this is the number of instances of the SKU to be ordered.
-
getType
public java.lang.String getType()
The type of this order item. Must besku
,tax
, orshipping
.
-
setAmount
public void setAmount(java.lang.Long amount)
The amount (price) for this order item.
-
setCurrency
public void setCurrency(java.lang.String currency)
This currency of this order item. Required whenamount
is present.
-
setDescription
public void setDescription(java.lang.String description)
Human-readable description for this order item.
-
setParent
public void setParent(java.lang.String parent)
The ID of the associated object for this line item. Expandable if not null (e.g., expandable to a SKU).
-
setQuantity
public void setQuantity(java.lang.Long quantity)
The quantity of this order item. When type issku
, this is the number of instances of the SKU to be ordered.
-
setType
public void setType(java.lang.String type)
The type of this order item. Must besku
,tax
, orshipping
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-