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
  • Constructor Details

    • ShippingMethod

      public ShippingMethod()
  • Method Details

    • getAmount

      public 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 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 String getDescription()
      An arbitrary string attached to the object. Often useful for displaying to users.
    • setAmount

      public void setAmount(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(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(String description)
      An arbitrary string attached to the object. Often useful for displaying to users.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId