Package com.stripe.param
Enum Class PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
java.lang.Object
java.lang.Enum<PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>
com.stripe.param.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
- All Implemented Interfaces:
ApiRequestParams.EnumParam,Serializable,Comparable<PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType>,Constable
- Enclosing class:
- PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher
public static enum PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType
extends Enum<PaymentIntentConfirmParams.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 PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherTypeReturns the enum constant of this class with the specified name.static PaymentIntentConfirmParams.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 PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DIGITAL_PRODUCT -
DISCOUNT
@SerializedName("discount") public static final PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType DISCOUNT -
GIFT_CARD
@SerializedName("gift_card") public static final PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType GIFT_CARD -
PHYSICAL_PRODUCT
@SerializedName("physical_product") public static final PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType PHYSICAL_PRODUCT -
SERVICES
@SerializedName("services") public static final PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType SERVICES
-
-
Method Details
-
values
public static PaymentIntentConfirmParams.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 PaymentIntentConfirmParams.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
-