Package com.stripe.param
Enum ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit
- java.lang.Object
-
- java.lang.Enum<ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit>
-
- com.stripe.param.ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit
-
- All Implemented Interfaces:
ApiRequestParams.EnumParam
,java.io.Serializable
,java.lang.Comparable<ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit>
- Enclosing class:
- ShippingRateCreateParams.DeliveryEstimate.Minimum
public static enum ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit extends java.lang.Enum<ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit> implements ApiRequestParams.EnumParam
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSINESS_DAY
DAY
HOUR
MONTH
WEEK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
static ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUSINESS_DAY
@SerializedName("business_day") public static final ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit BUSINESS_DAY
-
DAY
@SerializedName("day") public static final ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit DAY
-
HOUR
@SerializedName("hour") public static final ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit HOUR
-
MONTH
@SerializedName("month") public static final ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit MONTH
-
WEEK
@SerializedName("week") public static final ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit WEEK
-
-
Method Detail
-
values
public static ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit c : ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceApiRequestParams.EnumParam
-
-