Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 205465a

Browse files
feat: add new reCAPTCHA Enterprise fraud annotations (#663)
* feat: add new reCAPTCHA Enterprise fraud annotations PiperOrigin-RevId: 414549384 Source-Link: googleapis/googleapis@9b9da22 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e4e3b2c01ce675c100ed54519cad3274ea20a8a2 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTRlM2IyYzAxY2U2NzVjMTAwZWQ1NDUxOWNhZDMyNzRlYTIwYThhMiJ9 * 🦉 Updates from OwlBot 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>
1 parent e39beaa commit 205465a

3 files changed

Lines changed: 310 additions & 243 deletions

File tree

proto-google-cloud-recaptchaenterprise-v1/src/main/java/com/google/recaptchaenterprise/v1/AnnotateAssessmentRequest.java

Lines changed: 58 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,38 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
392392
*
393393
*
394394
* <pre>
395-
* Indicates a chargeback for fraud was issued for the transaction
396-
* associated with the assessment.
395+
* Indicates a chargeback was issued for the transaction associated with the
396+
* assessment, with no other details. When possible, specify the type by
397+
* using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
397398
* </pre>
398399
*
399400
* <code>CHARGEBACK = 1;</code>
400401
*/
401402
CHARGEBACK(1),
403+
/**
404+
*
405+
*
406+
* <pre>
407+
* Indicates a chargeback related to an alleged unauthorized transaction
408+
* from the perspective of the cardholder (for example, the card number was
409+
* stolen).
410+
* </pre>
411+
*
412+
* <code>CHARGEBACK_FRAUD = 8;</code>
413+
*/
414+
CHARGEBACK_FRAUD(8),
415+
/**
416+
*
417+
*
418+
* <pre>
419+
* Indicates a chargeback related to the cardholder having provided their
420+
* card but allegedly not being satisfied with the purchase
421+
* (for example, misrepresentation, attempted cancellation).
422+
* </pre>
423+
*
424+
* <code>CHARGEBACK_DISPUTE = 9;</code>
425+
*/
426+
CHARGEBACK_DISPUTE(9),
402427
/**
403428
*
404429
*
@@ -481,13 +506,38 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
481506
*
482507
*
483508
* <pre>
484-
* Indicates a chargeback for fraud was issued for the transaction
485-
* associated with the assessment.
509+
* Indicates a chargeback was issued for the transaction associated with the
510+
* assessment, with no other details. When possible, specify the type by
511+
* using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
486512
* </pre>
487513
*
488514
* <code>CHARGEBACK = 1;</code>
489515
*/
490516
public static final int CHARGEBACK_VALUE = 1;
517+
/**
518+
*
519+
*
520+
* <pre>
521+
* Indicates a chargeback related to an alleged unauthorized transaction
522+
* from the perspective of the cardholder (for example, the card number was
523+
* stolen).
524+
* </pre>
525+
*
526+
* <code>CHARGEBACK_FRAUD = 8;</code>
527+
*/
528+
public static final int CHARGEBACK_FRAUD_VALUE = 8;
529+
/**
530+
*
531+
*
532+
* <pre>
533+
* Indicates a chargeback related to the cardholder having provided their
534+
* card but allegedly not being satisfied with the purchase
535+
* (for example, misrepresentation, attempted cancellation).
536+
* </pre>
537+
*
538+
* <code>CHARGEBACK_DISPUTE = 9;</code>
539+
*/
540+
public static final int CHARGEBACK_DISPUTE_VALUE = 9;
491541
/**
492542
*
493543
*
@@ -582,6 +632,10 @@ public static Reason forNumber(int value) {
582632
return REASON_UNSPECIFIED;
583633
case 1:
584634
return CHARGEBACK;
635+
case 8:
636+
return CHARGEBACK_FRAUD;
637+
case 9:
638+
return CHARGEBACK_DISPUTE;
585639
case 2:
586640
return PAYMENT_HEURISTICS;
587641
case 7:

0 commit comments

Comments
 (0)