com.sinch.sdk.domains.verification.models.v1.VerificationStatusReason Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.verification.models.v1;
import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;
/**
* Displays the reason why a verification has FAILED
, was DENIED
, or was
* ABORTED
.
*/
public class VerificationStatusReason extends EnumDynamic {
/** Fraudulent activity. */
public static final VerificationStatusReason FRAUD = new VerificationStatusReason("Fraud");
/** Not enough credit in dashboard account. */
public static final VerificationStatusReason NOT_ENOUGH_CREDIT =
new VerificationStatusReason("Not enough credit");
/** Blocked number. */
public static final VerificationStatusReason BLOCKED = new VerificationStatusReason("Blocked");
/** Callback response denied the verification. */
public static final VerificationStatusReason DENIED_BY_CALLBACK =
new VerificationStatusReason("Denied by callback");
/** Callback was invalid. */
public static final VerificationStatusReason INVALID_CALLBACK =
new VerificationStatusReason("Invalid callback");
/** Internal server error. */
public static final VerificationStatusReason INTERNAL_ERROR =
new VerificationStatusReason("Internal error");
/** Verification destinaton denied. */
public static final VerificationStatusReason DESTINATION_DENIED =
new VerificationStatusReason("Destination denied");
/** Network error or destination number is otherwise unreachable. */
public static final VerificationStatusReason NETWORK_ERROR_OR_NUMBER_UNREACHABLE =
new VerificationStatusReason("Network error or number unreachable");
/** Pending failure. */
public static final VerificationStatusReason FAILED_PENDING =
new VerificationStatusReason("Failed pending");
/** Could not deliver SMS. */
public static final VerificationStatusReason SMS_DELIVERY_FAILURE =
new VerificationStatusReason("SMS delivery failure");
/** CLI is invalid. */
public static final VerificationStatusReason INVALID_CLI =
new VerificationStatusReason("Invalid CLI");
/** Input code is invalid. */
public static final VerificationStatusReason INVALID_CODE =
new VerificationStatusReason("Invalid code");
/** Verification request has expired. */
public static final VerificationStatusReason EXPIRED = new VerificationStatusReason("Expired");
/** Phone call ended without entering code. */
public static final VerificationStatusReason HUNG_UP_WITHOUT_ENTERING_VALID_CODE =
new VerificationStatusReason("Hung up without entering valid code");
private static final EnumSupportDynamic ENUM_SUPPORT =
new EnumSupportDynamic<>(
VerificationStatusReason.class,
VerificationStatusReason::new,
Arrays.asList(
FRAUD,
NOT_ENOUGH_CREDIT,
BLOCKED,
DENIED_BY_CALLBACK,
INVALID_CALLBACK,
INTERNAL_ERROR,
DESTINATION_DENIED,
NETWORK_ERROR_OR_NUMBER_UNREACHABLE,
FAILED_PENDING,
SMS_DELIVERY_FAILURE,
INVALID_CLI,
INVALID_CODE,
EXPIRED,
HUNG_UP_WITHOUT_ENTERING_VALID_CODE));
private VerificationStatusReason(String value) {
super(value);
}
public static Stream values() {
return ENUM_SUPPORT.values();
}
public static VerificationStatusReason from(String value) {
return ENUM_SUPPORT.from(value);
}
public static String valueOf(VerificationStatusReason e) {
return ENUM_SUPPORT.valueOf(e);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy