chargebee-java
chargebee-java copied to clipboard
deprecated `code` in `APIException` has no equal replacement
Description of the Bug
code is deprecated in APIException with the message to use apiErrorCode instead. apiErrorCode does not convey the same level of granularity of the failure. See screenshot.
Steps to reproduce
Attempt to create a hosted page checkout with an invalid coupon code.
Expected Behavior
I should be able to determine the specific cause of an error, e.g. coupon_not_applicable without using deprecated accessors
Code Snippets (if applicable)
Operating System
Mac
Language version
21
Library version
3.38.0
Additional context
No response