Enum google_api_proto::google::cloud::recaptchaenterprise::v1beta1::annotate_assessment_request::Reason
source · #[repr(i32)]pub enum Reason {
Show 15 variants
Unspecified = 0,
Chargeback = 1,
ChargebackFraud = 8,
ChargebackDispute = 9,
Refund = 10,
RefundFraud = 11,
TransactionAccepted = 12,
TransactionDeclined = 13,
PaymentHeuristics = 2,
InitiatedTwoFactor = 7,
PassedTwoFactor = 3,
FailedTwoFactor = 4,
CorrectPassword = 5,
IncorrectPassword = 6,
SocialSpam = 14,
}
Expand description
Enum that represents potential reasons for annotating an assessment.
Variants§
Unspecified = 0
Default unspecified reason.
Chargeback = 1
Indicates that the transaction had a chargeback issued with no other details. When possible, specify the type by using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
ChargebackFraud = 8
Indicates that the transaction had a chargeback issued related to an alleged unauthorized transaction from the cardholder’s perspective (for example, the card number was stolen).
ChargebackDispute = 9
Indicates that the transaction had a chargeback issued related to the cardholder having provided their card details but allegedly not being satisfied with the purchase (for example, misrepresentation, attempted cancellation).
Refund = 10
Indicates that the completed payment transaction was refunded by the seller.
RefundFraud = 11
Indicates that the completed payment transaction was determined to be fraudulent by the seller, and was cancelled and refunded as a result.
TransactionAccepted = 12
Indicates that the payment transaction was accepted, and the user was charged.
TransactionDeclined = 13
Indicates that the payment transaction was declined, for example due to invalid card details.
PaymentHeuristics = 2
Indicates the transaction associated with the assessment is suspected of being fraudulent based on the payment method, billing details, shipping address or other transaction information.
InitiatedTwoFactor = 7
Indicates that the user was served a 2FA challenge. An old assessment
with ENUM_VALUES.INITIATED_TWO_FACTOR
reason that has not been
overwritten with PASSED_TWO_FACTOR
is treated as an abandoned 2FA flow.
This is equivalent to FAILED_TWO_FACTOR
.
PassedTwoFactor = 3
Indicates that the user passed a 2FA challenge.
FailedTwoFactor = 4
Indicates that the user failed a 2FA challenge.
CorrectPassword = 5
Indicates the user provided the correct password.
IncorrectPassword = 6
Indicates the user provided an incorrect password.
SocialSpam = 14
Indicates that the user sent unwanted and abusive messages to other users of the platform, such as spam, scams, phishing, or social engineering.
Implementations§
source§impl Reason
impl Reason
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Ord for Reason
impl Ord for Reason
source§impl PartialEq for Reason
impl PartialEq for Reason
source§impl PartialOrd for Reason
impl PartialOrd for Reason
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Reason
impl TryFrom<i32> for Reason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request