diff --git a/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto b/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto index a2dd1ba..1be736a 100644 --- a/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto +++ b/protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto @@ -186,10 +186,21 @@ message AnnotateAssessmentRequest { // Default unspecified reason. REASON_UNSPECIFIED = 0; - // 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. CHARGEBACK = 1; + // Indicates a chargeback related to an alleged unauthorized transaction + // from the perspective of the cardholder (for example, the card number was + // stolen). + CHARGEBACK_FRAUD = 8; + + // Indicates a chargeback related to the cardholder having provided their + // card but allegedly not being satisfied with the purchase + // (for example, misrepresentation, attempted cancellation). + CHARGEBACK_DISPUTE = 9; + // Indicates the transaction associated with the assessment is suspected of // being fraudulent based on the payment method, billing details, shipping // address or other transaction information. diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 5f2fd7b..3e626a8 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -521,6 +521,8 @@ export namespace google { enum Reason { REASON_UNSPECIFIED = 0, CHARGEBACK = 1, + CHARGEBACK_FRAUD = 8, + CHARGEBACK_DISPUTE = 9, PAYMENT_HEURISTICS = 2, INITIATED_TWO_FACTOR = 7, PASSED_TWO_FACTOR = 3, diff --git a/protos/protos.js b/protos/protos.js index b415fed..d2b2268 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -919,6 +919,8 @@ return "reasons: enum value[] expected"; case 0: case 1: + case 8: + case 9: case 2: case 7: case 3: @@ -985,6 +987,14 @@ case 1: message.reasons[i] = 1; break; + case "CHARGEBACK_FRAUD": + case 8: + message.reasons[i] = 8; + break; + case "CHARGEBACK_DISPUTE": + case 9: + message.reasons[i] = 9; + break; case "PAYMENT_HEURISTICS": case 2: message.reasons[i] = 2; @@ -1096,6 +1106,8 @@ * @enum {number} * @property {number} REASON_UNSPECIFIED=0 REASON_UNSPECIFIED value * @property {number} CHARGEBACK=1 CHARGEBACK value + * @property {number} CHARGEBACK_FRAUD=8 CHARGEBACK_FRAUD value + * @property {number} CHARGEBACK_DISPUTE=9 CHARGEBACK_DISPUTE value * @property {number} PAYMENT_HEURISTICS=2 PAYMENT_HEURISTICS value * @property {number} INITIATED_TWO_FACTOR=7 INITIATED_TWO_FACTOR value * @property {number} PASSED_TWO_FACTOR=3 PASSED_TWO_FACTOR value @@ -1107,6 +1119,8 @@ var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "REASON_UNSPECIFIED"] = 0; values[valuesById[1] = "CHARGEBACK"] = 1; + values[valuesById[8] = "CHARGEBACK_FRAUD"] = 8; + values[valuesById[9] = "CHARGEBACK_DISPUTE"] = 9; values[valuesById[2] = "PAYMENT_HEURISTICS"] = 2; values[valuesById[7] = "INITIATED_TWO_FACTOR"] = 7; values[valuesById[3] = "PASSED_TWO_FACTOR"] = 3; diff --git a/protos/protos.json b/protos/protos.json index c9911f0..d181a3b 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -296,6 +296,8 @@ "values": { "REASON_UNSPECIFIED": 0, "CHARGEBACK": 1, + "CHARGEBACK_FRAUD": 8, + "CHARGEBACK_DISPUTE": 9, "PAYMENT_HEURISTICS": 2, "INITIATED_TWO_FACTOR": 7, "PASSED_TWO_FACTOR": 3,