Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class TransactionEvent.
Describes an event in the lifecycle of a payment transaction.
Generated from protobuf messagegoogle.cloud.recaptchaenterprise.v1.TransactionEvent
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ event_type
int
Optional. The type of this transaction event.
↳ reason
string
Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
↳ value
float
Optional. The value that corresponds with this transaction event, if one exists. For example, a refund event where $5.00 was refunded. Currency is obtained from the original transaction data.
Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
getEventType
Optional. The type of this transaction event.
Returns
Type
Description
int
setEventType
Optional. The type of this transaction event.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getReason
Optional. The reason or standardized code that corresponds with this
transaction event, if one exists. For example, a CHARGEBACK event with code
6005.
Returns
Type
Description
string
setReason
Optional. The reason or standardized code that corresponds with this
transaction event, if one exists. For example, a CHARGEBACK event with code
6005.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValue
Optional. The value that corresponds with this transaction event, if one
exists. For example, a refund event where $5.00 was refunded. Currency is
obtained from the original transaction data.
Returns
Type
Description
float
setValue
Optional. The value that corresponds with this transaction event, if one
exists. For example, a refund event where $5.00 was refunded. Currency is
obtained from the original transaction data.
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getEventTime
Optional. Timestamp when this transaction event occurred; otherwise assumed
to be the time of the API call.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Recaptcha Enterprise V1 Client - Class TransactionEvent (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-recaptcha-enterprise/latest/V1.TransactionEvent)\n- [2.1.2](/php/docs/reference/cloud-recaptcha-enterprise/2.1.2/V1.TransactionEvent)\n- [2.0.1](/php/docs/reference/cloud-recaptcha-enterprise/2.0.1/V1.TransactionEvent)\n- [1.17.2](/php/docs/reference/cloud-recaptcha-enterprise/1.17.2/V1.TransactionEvent)\n- [1.16.1](/php/docs/reference/cloud-recaptcha-enterprise/1.16.1/V1.TransactionEvent)\n- [1.15.0](/php/docs/reference/cloud-recaptcha-enterprise/1.15.0/V1.TransactionEvent)\n- [1.14.0](/php/docs/reference/cloud-recaptcha-enterprise/1.14.0/V1.TransactionEvent)\n- [1.13.0](/php/docs/reference/cloud-recaptcha-enterprise/1.13.0/V1.TransactionEvent)\n- [1.12.2](/php/docs/reference/cloud-recaptcha-enterprise/1.12.2/V1.TransactionEvent)\n- [1.8.0](/php/docs/reference/cloud-recaptcha-enterprise/1.8.0/V1.TransactionEvent)\n- [1.7.0](/php/docs/reference/cloud-recaptcha-enterprise/1.7.0/V1.TransactionEvent)\n- [1.6.0](/php/docs/reference/cloud-recaptcha-enterprise/1.6.0/V1.TransactionEvent)\n- [1.5.2](/php/docs/reference/cloud-recaptcha-enterprise/1.5.2/V1.TransactionEvent)\n- [1.4.2](/php/docs/reference/cloud-recaptcha-enterprise/1.4.2/V1.TransactionEvent)\n- [1.3.2](/php/docs/reference/cloud-recaptcha-enterprise/1.3.2/V1.TransactionEvent)\n- [1.2.6](/php/docs/reference/cloud-recaptcha-enterprise/1.2.6/V1.TransactionEvent) \nReference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class TransactionEvent.\n\nDescribes an event in the lifecycle of a payment transaction.\n\nGenerated from protobuf message `google.cloud.recaptchaenterprise.v1.TransactionEvent`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ RecaptchaEnterprise \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEventType\n\nOptional. The type of this transaction event.\n\n### setEventType\n\nOptional. The type of this transaction event.\n\n### getReason\n\nOptional. The reason or standardized code that corresponds with this\ntransaction event, if one exists. For example, a CHARGEBACK event with code\n6005.\n\n### setReason\n\nOptional. The reason or standardized code that corresponds with this\ntransaction event, if one exists. For example, a CHARGEBACK event with code\n6005.\n\n### getValue\n\nOptional. The value that corresponds with this transaction event, if one\nexists. For example, a refund event where $5.00 was refunded. Currency is\nobtained from the original transaction data.\n\n### setValue\n\nOptional. The value that corresponds with this transaction event, if one\nexists. For example, a refund event where $5.00 was refunded. Currency is\nobtained from the original transaction data.\n\n### getEventTime\n\nOptional. Timestamp when this transaction event occurred; otherwise assumed\nto be the time of the API call.\n\n### hasEventTime\n\n### clearEventTime\n\n### setEventTime\n\nOptional. Timestamp when this transaction event occurred; otherwise assumed\nto be the time of the API call."]]