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 classOrder.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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetAmount()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.StringgetCurrency()Three-letter ISO currency code, in lowercase.Order.ShippingMethod.DeliveryEstimategetDeliveryEstimate()The estimated delivery date for the given shipping method.java.lang.StringgetDescription()An arbitrary string attached to the object.java.lang.StringgetId()Unique identifier for the object.inthashCode()voidsetAmount(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.voidsetCurrency(java.lang.String currency)Three-letter ISO currency code, in lowercase.voidsetDeliveryEstimate(Order.ShippingMethod.DeliveryEstimate deliveryEstimate)The estimated delivery date for the given shipping method.voidsetDescription(java.lang.String description)An arbitrary string attached to the object.voidsetId(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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-