Skip to content

Commit

Permalink
feat:Add Fraud Prevention settings field
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 627445658
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 23, 2024
1 parent a5526a0 commit 0f16abb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,24 @@ message Assessment {

// The event being assessed.
message Event {
// Setting that controls Fraud Prevention assessments.
enum FraudPrevention {
// Default, unspecified setting. If opted in for automatic detection,
// `fraud_prevention_assessment` is returned based on the request.
// Otherwise, `fraud_prevention_assessment` is returned if
// `transaction_data` is present in the `Event` and Fraud Prevention is
// enabled in the Google Cloud console.
FRAUD_PREVENTION_UNSPECIFIED = 0;

// Enable Fraud Prevention for this assessment, if Fraud Prevention is
// enabled in the Google Cloud console.
ENABLED = 1;

// Disable Fraud Prevention for this assessment, regardless of opt-in
// status or Google Cloud console settings.
DISABLED = 2;
}

// Optional. The user response token provided by the reCAPTCHA Enterprise
// client-side integration on your site.
string token = 1 [(google.api.field_behavior) = OPTIONAL];
Expand Down Expand Up @@ -718,6 +736,10 @@ message Event {
// for logged-in requests or login/registration requests, or by providing user
// identifiers for guest actions like checkout.
UserInfo user_info = 15 [(google.api.field_behavior) = OPTIONAL];

// Optional. The Fraud Prevention setting for this assessment.
FraudPrevention fraud_prevention = 17
[(google.api.field_behavior) = OPTIONAL];
}

// Transaction data associated with a payment protected by reCAPTCHA Enterprise.
Expand Down

0 comments on commit 0f16abb

Please sign in to comment.