Enum AddressVerificationDecision
- java.lang.Object
-
- java.lang.Enum<AddressVerificationDecision>
-
- de.hybris.platform.commerceservices.address.AddressVerificationDecision
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AddressVerificationDecision>
public enum AddressVerificationDecision extends java.lang.Enum<AddressVerificationDecision>
Represents the set of response codes that can be returned by an external address verification service.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTThe address was verified.REJECTThe address data is insufficient or incorrect, and no corrections/standardization could be appliedREVIEWThere are major differences between the address entered and the corrected standardized address(es)UNKNOWNA valid decision was not provided by the service
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDecisionString()static AddressVerificationDecisionlookup(java.lang.String decisionKey)static AddressVerificationDecisionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AddressVerificationDecision[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT
public static final AddressVerificationDecision ACCEPT
The address was verified. No major differences between the address entered and suggested address(es)
-
REVIEW
public static final AddressVerificationDecision REVIEW
There are major differences between the address entered and the corrected standardized address(es)
-
REJECT
public static final AddressVerificationDecision REJECT
The address data is insufficient or incorrect, and no corrections/standardization could be applied
-
UNKNOWN
public static final AddressVerificationDecision UNKNOWN
A valid decision was not provided by the service
-
-
Method Detail
-
values
public static AddressVerificationDecision[] 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 (AddressVerificationDecision c : AddressVerificationDecision.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddressVerificationDecision 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
-
getDecisionString
public java.lang.String getDecisionString()
-
lookup
public static AddressVerificationDecision lookup(java.lang.String decisionKey)
-
-