Enum Class ApiErrorDetails
- All Implemented Interfaces:
Serializable,Comparable<ApiErrorDetails>,Constable
This class contains details of Error as returned from Voucherify.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Optional<ApiErrorDetails>getApiErrorDetails(String key) static ApiErrorDetailsReturns the enum constant of this class with the specified name.static ApiErrorDetails[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALREADY_ROLLED_BACK
-
AMBIGUOUS_TRACKING_ID
-
API_ERROR
-
APPLICABLE_REDEEMABLES_LIMIT_EXCEEDED
-
APPLICABLE_REDEEMABLES_PER_CATEGORY_LIMIT_EXCEEDED
-
APPLICABLE_EXCLUSIVE_REDEEMABLES_LIMIT_EXCEEDED
-
APPLICABLE_EXCLUSIVE_REDEEMABLES_PER_CATEGORY_LIMIT_EXCEEDED
-
BUNDLE_ORDER_RULES_VIOLATED
-
BUNDLE_RULES_VIOLATED
-
CUSTOM_EVENT_RULES_VIOLATED
-
CUSTOMER_RULES_VIOLATED
-
DUPLICATE_FOUND
-
DUPLICATED_REDEEMABLES
-
EXISTING_REDEMPTIONS
-
EXCLUSION_RULES_NOT_MET
-
FORBIDDEN
-
GIFT_AMOUNT_EXCEEDED
-
GIFT_CARD_REQUIRED
-
INTERNAL_ERROR
-
INVALID_AMOUNT
-
INVALID_CUSTOMER
-
INVALID_DISCOUNT_EFFECT
-
INVALID_GIFT_CREDITS
-
INVALID_ORDER
-
INVALID_ORDER_ITEM
-
INVALID_PAYLOAD
-
INVALID_PRODUCT
-
INVALID_QUERY
-
INVALID_QUERY_PARAMS
-
INVALID_REDEEMABLES
-
INVALID_REDEEMABLES_COUNT
-
INVALID_REDEMPTION
-
INVALID_REDEMPTION_PARENT
-
INVALID_REDEMPTION_RESULT
-
INVALID_RELATED_TO
-
INVALID_REWARD_POINTS
-
INVALID_ROLLBACK_PARAMS
-
INVALID_RULES
-
INVALID_RULES_LOGIC
-
INVALID_SKU
-
INVALID_SUBJECT
-
INVALID_VALIDATION_PAYLOAD
-
INVALID_VOUCHER
-
LOCKED
-
LOYALTY_CARD_POINTS_EXCEEDED
-
MISSING_AMOUNT
-
MISSING_CAMPAIGN
-
MISSING_CUSTOM_EVENT
-
MISSING_CUSTOMER
-
MISSING_ORDER
-
MISSING_ORDER_AMOUNT
-
MISSING_ORDER_DISCOUNT_AMOUNT
-
MISSING_ORDER_ITEMS
-
MISSING_ORDER_ITEMS_AMOUNT
-
MISSING_PARAM
-
MISSING_REQUIRED_FEATURE
-
MISSING_REWARD
-
MISSING_USER
-
MULTIPLE_REQUESTS
-
NO_APPLICABLE_REDEEMABLES
-
NO_SUITABLE_REWARD
-
NOT_FOUND
-
ORDER_RULES_VIOLATED
-
PAYMENT_REQUIRED
-
PRECEDING_VALIDATION_FAILED
-
PROMOTION_INACTIVE
-
PROMOTION_NOT_ACTIVE_NOW
-
PROMOTION_TIER_NOT_ACCESSIBLE
-
PROMOTION_TIER_NOT_FOUND
-
PUBLICATION_RULES_VIOLATED
-
QUANTITY_EXCEEDED
-
QUERY_TOO_LARGE
-
REDEMPTION_CONDITIONS_NOT_MET
-
REDEMPTION_ERROR
-
REDEMPTION_ROLLBACK_ERROR
-
REDEMPTION_RULES_VIOLATED
-
REDEMPTION_TOO_OLD
-
REFERRER_NOT_PERMITTED_TO_REDEEM
-
RESOURCE_IN_USE
-
RESOURCE_LOCKED
-
RESOURCE_NOT_FOUND
-
RESOURCE_PROTECTED
-
RULES_VIOLATED
-
TOO_MANY_REQUESTS
-
UNAUTHORIZED
-
USER_RULES_VIOLATED
-
VOUCHER_DISABLED
-
VOUCHER_EXPIRED
-
VOUCHER_NOT_ACCESSIBLE
-
VOUCHER_NOT_ACTIVE
-
VOUCHER_NOT_ACTIVE_NOW
-
VOUCHER_NOT_FOUND
-
VOUCHER_REQUIRED
-
-
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
-
getApiErrorDetails
-