Skip to content

ReferralRejectionReason.ReasonEnum doesn't include ReferralCustomerAlreadyReferred #35

Open
@natalie-zamani

Description

@natalie-zamani

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions