Package com.stripe.model
Class Source.Order
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.Source.Order
-
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Source
public static class Source.Order extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Order()
-
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()
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 order.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.java.lang.String
getEmail()
The email address of the customer placing the order.java.util.List<Source.OrderItem>
getItems()
List of items constituting the order.ShippingDetails
getShipping()
int
hashCode()
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 order.void
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.void
setEmail(java.lang.String email)
The email address of the customer placing the order.void
setItems(java.util.List<Source.OrderItem> items)
List of items constituting the order.void
setShipping(ShippingDetails shipping)
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
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 order.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getEmail
public java.lang.String getEmail()
The email address of the customer placing the order.
-
getItems
public java.util.List<Source.OrderItem> getItems()
List of items constituting the order.
-
getShipping
public ShippingDetails getShipping()
-
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 order.
-
setCurrency
public void setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
setEmail
public void setEmail(java.lang.String email)
The email address of the customer placing the order.
-
setItems
public void setItems(java.util.List<Source.OrderItem> items)
List of items constituting the order.
-
setShipping
public void setShipping(ShippingDetails shipping)
-
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
-
-