Skip to content

Commit

Permalink
feat:Add Fraud Prevention settings field
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 627512001
  • Loading branch information
Google APIs authored and Copybara-Service committed Apr 23, 2024
1 parent 087cb30 commit 0179dcc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
Expand Up @@ -401,6 +401,24 @@ message Assessment {
}

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 the 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 @@ -431,6 +449,10 @@ message Event {
// FraudPreventionAssessment component in the response.
TransactionData transaction_data = 13
[(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 0179dcc

Please sign in to comment.