Package io.moov.sdk.models.components
Enum WalletType
- java.lang.Object
-
- java.lang.Enum<WalletType>
-
- io.moov.sdk.models.components.WalletType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WalletType>
public enum WalletType extends java.lang.Enum<WalletType>
WalletTypeType of a wallet. - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account. - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<WalletType>fromValue(java.lang.String value)java.lang.Stringvalue()static WalletTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WalletType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final WalletType DEFAULT
-
GENERAL
public static final WalletType GENERAL
-
-
Method Detail
-
values
public static WalletType[] 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 (WalletType c : WalletType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WalletType 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
-
value
public java.lang.String value()
-
fromValue
public static java.util.Optional<WalletType> fromValue(java.lang.String value)
-
-