Enum that represents potential reasons for annotating an assessment.

Protobuf type google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason

CloneableInstantiable
Constants
public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\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.

Generated from protobuf enum CHARGEBACK = 1;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::CHARGEBACK_DISPUTE = 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).

Generated from protobuf enum CHARGEBACK_DISPUTE = 9;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::CHARGEBACK_FRAUD = 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).

Generated from protobuf enum CHARGEBACK_FRAUD = 8;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::CORRECT_PASSWORD = 5
 

Indicates the user provided the correct password.

Generated from protobuf enum CORRECT_PASSWORD = 5;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::FAILED_TWO_FACTOR = 4
 

Indicates that the user failed a 2FA challenge.

Generated from protobuf enum FAILED_TWO_FACTOR = 4;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::INCORRECT_PASSWORD = 6
 

Indicates the user provided an incorrect password.

Generated from protobuf enum INCORRECT_PASSWORD = 6;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::INITIATED_TWO_FACTOR = 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.

Generated from protobuf enum INITIATED_TWO_FACTOR = 7;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::PASSED_TWO_FACTOR = 3
 

Indicates that the user passed a 2FA challenge.

Generated from protobuf enum PASSED_TWO_FACTOR = 3;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::PAYMENT_HEURISTICS = 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.

Generated from protobuf enum PAYMENT_HEURISTICS = 2;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::REASON_UNSPECIFIED = 0
 

Unspecified reason. Do not use.

Generated from protobuf enum REASON_UNSPECIFIED = 0;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::REFUND = 10
 

Indicates that the completed payment transaction was refunded by the seller.

Generated from protobuf enum REFUND = 10;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::REFUND_FRAUD = 11
 

Indicates that the completed payment transaction was determined to be fraudulent by the seller, and was cancelled and refunded as a result.

Generated from protobuf enum REFUND_FRAUD = 11;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::SOCIAL_SPAM = 14
 

Indicates that the user sent unwanted and abusive messages to other users of the platform, such as spam, scams, phishing, or social engineering.

Generated from protobuf enum SOCIAL_SPAM = 14;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::TRANSACTION_ACCEPTED = 12
 

Indicates that the payment transaction was accepted, and the user was charged.

Generated from protobuf enum TRANSACTION_ACCEPTED = 12;

public Google\Cloud\RecaptchaEnterprise\V1\AnnotateAssessmentRequest\Reason::TRANSACTION_DECLINED = 13
 

Indicates that the payment transaction was declined, for example due to invalid card details.

Generated from protobuf enum TRANSACTION_DECLINED = 13;

Methods
public static name( $value)
public static value( $name)
Properties
private static $valueToName = ['REASON_UNSPECIFIED', 'CHARGEBACK', 8 => 'CHARGEBACK_FRAUD', 9 => 'CHARGEBACK_DISPUTE', 10 => 'REFUND', 11 => 'REFUND_FRAUD', 12 => 'TRANSACTION_ACCEPTED', 13 => 'TRANSACTION_DECLINED', 2 => 'PAYMENT_HEURISTICS', 7 => 'INITIATED_TWO_FACTOR', 3 => 'PASSED_TWO_FACTOR', 4 => 'FAILED_TWO_FACTOR', 5 => 'CORRECT_PASSWORD', 6 => 'INCORRECT_PASSWORD', 'SOCIAL_SPAM']
Properties
private static $valueToName = ['REASON_UNSPECIFIED', 'CHARGEBACK', 8 => 'CHARGEBACK_FRAUD', 9 => 'CHARGEBACK_DISPUTE', 10 => 'REFUND', 11 => 'REFUND_FRAUD', 12 => 'TRANSACTION_ACCEPTED', 13 => 'TRANSACTION_DECLINED', 2 => 'PAYMENT_HEURISTICS', 7 => 'INITIATED_TWO_FACTOR', 3 => 'PASSED_TWO_FACTOR', 4 => 'FAILED_TWO_FACTOR', 5 => 'CORRECT_PASSWORD', 6 => 'INCORRECT_PASSWORD', 'SOCIAL_SPAM']
Methods
public static name( $value)
public static value( $name)
© 2026 Bruce Wells
Search Namespaces \ Classes
Configuration