Enum Class ProfileChannel
- All Implemented Interfaces:
Serializable,Comparable<ProfileChannel>,Constable
This enum is used to analyse the type of payment supported by a card and return byte codes for each profile.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe payment to be done using contactless method.Contactless and DSRP payment types are supported.Contactless, QR code and DSRP payment types are supported.Contactless and QR code payment types are supported.Payment to be done remotely using another app.Payment to be done using QR code. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfileChannelget(byte value) This method is used to get the bytecode of ProfileChannel based on the value returned.byte[]getCode()static PaymentTypegetPaymentType(ProfileChannel profileChannel) static ProfileChannelgetProfileChannel(byte[] channel) static booleanisClSupported(ProfileChannel channel) A utility method to check if contactless payment is supported.static booleanisDsrpSupported(ProfileChannel channel) A utility method to check if DSRP payment is supported.static booleanisQrSupported(ProfileChannel channel) A utility method to check if if QR payment is supported.toString()String representation of the Enum.static ProfileChannelReturns the enum constant of this class with the specified name.static ProfileChannel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTACTLESS
The payment to be done using contactless method. -
QR
Payment to be done using QR code. -
DSRP
Payment to be done remotely using another app. -
CONTACTLESS_AND_QR
Contactless and QR code payment types are supported. -
CONTACTLESS_AND_DSRP
Contactless and DSRP payment types are supported. -
CONTACTLESS_AND_DSRP_AND_QR
Contactless, QR code and DSRP payment types are supported.
-
-
Method Details
-
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
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
-
getCode
public byte[] getCode()- Returns:
- byte[] Returns the byte code value of the ProfileChannel initialised.
-
get
This method is used to get the bytecode of ProfileChannel based on the value returned. The handling of the profile operation will be different depending on the value returned.- Returns:
- The payment channel of the byte value passed.
- Throws:
InternalComponentException
-
isQrSupported
A utility method to check if if QR payment is supported.- Parameters:
channel- The payment channel of the card.- Returns:
- Whether the given profile supports QR code payment.
-
isClSupported
A utility method to check if contactless payment is supported.- Parameters:
channel- The payment channel of the card.- Returns:
- Whether the given profile supports contactless payment.
-
isDsrpSupported
A utility method to check if DSRP payment is supported.- Parameters:
channel- The payment channel of the card.- Returns:
- Whether the given profile supports DSRP payment.
-
getProfileChannel
-
getPaymentType
-
toString
String representation of the Enum.- Overrides:
toStringin classEnum<ProfileChannel>- Returns:
- String representation of the Enum.
-