Package com.stripe.param
Enum Class PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
java.lang.Object
java.lang.Enum<PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>
com.stripe.param.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
- All Implemented Interfaces:
ApiRequestParams.EnumParam,Serializable,Comparable<PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>,Constable
- Enclosing class:
- PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher
public static enum PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
extends Enum<PaymentIntentUpdateParams.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
Modifier and TypeMethodDescriptiongetValue()static PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherTypeReturns the enum constant of this class with the specified name.static PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIGITAL_PRODUCT
@SerializedName("digital_product") public static final PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DIGITAL_PRODUCT -
DISCOUNT
@SerializedName("discount") public static final PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DISCOUNT -
GIFT_CARD
@SerializedName("gift_card") public static final PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType GIFT_CARD -
PHYSICAL_PRODUCT
@SerializedName("physical_product") public static final PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType PHYSICAL_PRODUCT -
SERVICES
@SerializedName("services") public static final PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType SERVICES
-
-
Method Details
-
values
public static PaymentIntentUpdateParams.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 PaymentIntentUpdateParams.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
-