Package com.stripe.param
Enum Class OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
java.lang.Object
java.lang.Enum<OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>
com.stripe.param.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
- All Implemented Interfaces:
ApiRequestParams.EnumParam,Serializable,Comparable<OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>,Constable
- Enclosing class:
- OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher
public static enum OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
extends Enum<OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>
implements ApiRequestParams.EnumParam
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
-
Enum Constant Details
-
DIGITAL_PRODUCT
@SerializedName("digital_product") public static final OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DIGITAL_PRODUCT -
DISCOUNT
@SerializedName("discount") public static final OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DISCOUNT -
GIFT_CARD
@SerializedName("gift_card") public static final OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType GIFT_CARD -
PHYSICAL_PRODUCT
@SerializedName("physical_product") public static final OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType PHYSICAL_PRODUCT -
SERVICES
@SerializedName("services") public static final OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType SERVICES
-
-
Method Details
-
values
public static OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType[] values()Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
- Specified by:
getValuein interfaceApiRequestParams.EnumParam
-