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

feat: add new reCAPTCHA Enterprise fraud annotations #663

Merged
merged 2 commits into from Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -392,13 +392,38 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* <pre>
* Indicates a chargeback for fraud was issued for the transaction
* associated with the assessment.
* Indicates a chargeback was issued for the transaction associated with the
* assessment, with no other details. When possible, specify the type by
* using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
* </pre>
*
* <code>CHARGEBACK = 1;</code>
*/
CHARGEBACK(1),
/**
*
*
* <pre>
* Indicates a chargeback related to an alleged unauthorized transaction
* from the perspective of the cardholder (for example, the card number was
* stolen).
* </pre>
*
* <code>CHARGEBACK_FRAUD = 8;</code>
*/
CHARGEBACK_FRAUD(8),
/**
*
*
* <pre>
* Indicates a chargeback related to the cardholder having provided their
* card but allegedly not being satisfied with the purchase
* (for example, misrepresentation, attempted cancellation).
* </pre>
*
* <code>CHARGEBACK_DISPUTE = 9;</code>
*/
CHARGEBACK_DISPUTE(9),
/**
*
*
Expand Down Expand Up @@ -481,13 +506,38 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
*
*
* <pre>
* Indicates a chargeback for fraud was issued for the transaction
* associated with the assessment.
* Indicates a chargeback was issued for the transaction associated with the
* assessment, with no other details. When possible, specify the type by
* using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
* </pre>
*
* <code>CHARGEBACK = 1;</code>
*/
public static final int CHARGEBACK_VALUE = 1;
/**
*
*
* <pre>
* Indicates a chargeback related to an alleged unauthorized transaction
* from the perspective of the cardholder (for example, the card number was
* stolen).
* </pre>
*
* <code>CHARGEBACK_FRAUD = 8;</code>
*/
public static final int CHARGEBACK_FRAUD_VALUE = 8;
/**
*
*
* <pre>
* Indicates a chargeback related to the cardholder having provided their
* card but allegedly not being satisfied with the purchase
* (for example, misrepresentation, attempted cancellation).
* </pre>
*
* <code>CHARGEBACK_DISPUTE = 9;</code>
*/
public static final int CHARGEBACK_DISPUTE_VALUE = 9;
/**
*
*
Expand Down Expand Up @@ -582,6 +632,10 @@ public static Reason forNumber(int value) {
return REASON_UNSPECIFIED;
case 1:
return CHARGEBACK;
case 8:
return CHARGEBACK_FRAUD;
case 9:
return CHARGEBACK_DISPUTE;
case 2:
return PAYMENT_HEURISTICS;
case 7:
Expand Down