Skip to content

Commit

Permalink
feat: [recaptchaenterprise]Add Fraud Prevention settings field (#5281)
Browse files Browse the repository at this point in the history
* feat:Add Fraud Prevention settings field

PiperOrigin-RevId: 627445658

Source-Link: googleapis/googleapis@0f16abb

Source-Link: googleapis/googleapis-gen@692123d
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6IjY5MjEyM2RlN2JkY2Q5MTgwZWY2NDM2OWEwOTI3YWFmZTg4NDZkOTEifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat:Add Fraud Prevention settings field

PiperOrigin-RevId: 627512001

Source-Link: googleapis/googleapis@0179dcc

Source-Link: googleapis/googleapis-gen@e483da8
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYWVudGVycHJpc2UvLk93bEJvdC55YW1sIiwiaCI6ImU0ODNkYTgyYWMxOTcyYzllNzY0NTkyZDA2ZjJkYTk1YWY4MzViMTEifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 25, 2024
1 parent 0ba830b commit 9a2060a
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 0 deletions.
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
Original file line number Diff line number Diff line change
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
32 changes: 32 additions & 0 deletions packages/google-cloud-recaptchaenterprise/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a2060a

Please sign in to comment.