Package com.stripe.model
Class Order.ShippingMethod
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.Order.ShippingMethod
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
- Enclosing class:
- Order
public static class Order.ShippingMethod extends StripeObject implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Order.ShippingMethod.DeliveryEstimate
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description ShippingMethod()
-
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 line item.java.lang.String
getCurrency()
Three-letter ISO currency code, in lowercase.Order.ShippingMethod.DeliveryEstimate
getDeliveryEstimate()
The estimated delivery date for the given shipping method.java.lang.String
getDescription()
An arbitrary string attached to the object.java.lang.String
getId()
Unique identifier for the object.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 line item.void
setCurrency(java.lang.String currency)
Three-letter ISO currency code, in lowercase.void
setDeliveryEstimate(Order.ShippingMethod.DeliveryEstimate deliveryEstimate)
The estimated delivery date for the given shipping method.void
setDescription(java.lang.String description)
An arbitrary string attached to the object.void
setId(java.lang.String id)
Unique identifier for the object.-
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 line item.
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getDeliveryEstimate
public Order.ShippingMethod.DeliveryEstimate getDeliveryEstimate()
The estimated delivery date for the given shipping method. Can be either a specific date or a range.
-
getDescription
public java.lang.String getDescription()
An arbitrary string attached to the object. Often useful for displaying to users.
-
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.
-
setDeliveryEstimate
public void setDeliveryEstimate(Order.ShippingMethod.DeliveryEstimate deliveryEstimate)
The estimated delivery date for the given shipping method. Can be either a specific date or a range.
-
setDescription
public void setDescription(java.lang.String description)
An arbitrary string attached to the object. Often useful for displaying to users.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
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
-
-