Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferralRejectionReason.ReasonEnum doesn't include ReferralCustomerAlreadyReferred #35

Open
natalie-zamani opened this issue May 22, 2023 · 0 comments

Comments

@natalie-zamani
Copy link

We use the following to parse the rejectionReason from a referral error:

ReferralRejectionReason.ReasonEnum.fromValue(props.rejectionReason)

But ReferralRejectionReason.ReasonEnum doesn't include an enum for ReferralCustomerAlreadyReferred, which is defined in your documentation and is being sent back to us by the API in certain cases. This is causing the following exception:

java.lang.IllegalArgumentException: Unexpected value 'ReferralCustomerAlreadyReferred'
	at one.talon.model.ReferralRejectionReason$ReasonEnum.fromValue(ReferralRejectionReason.java:89)

Could you please add that enum value, and any others that may be missing from your library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant