# reCAPTCHA Enterprise V1beta1 API - Class Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent (v0.21.0)

0.21.0 (latest) 0.20.0 0.19.1 0.18.0 0.17.3 0.16.1 0.15.2 0.14.0 0.13.0 0.12.2 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.5 Reference documentation and code samples for the reCAPTCHA Enterprise V1beta1 API class Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent.

Describes an event in the lifecycle of a payment transaction.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #event_time

    def event_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Protobuf-Timestamp)) --- Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.

### #event_time=

    def event_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Protobuf-Timestamp)) --- Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Protobuf-Timestamp)) --- Optional. Timestamp when this transaction event occurred; otherwise assumed to be the time of the API call.

### #event_type

    def event_type() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent-TransactionEventType)) --- Optional. The type of this transaction event.

### #event_type=

    def event_type=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent-TransactionEventType)) --- Optional. The type of this transaction event.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionEvent::TransactionEventType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionEvent-TransactionEventType)) --- Optional. The type of this transaction event.

### #reason

    def reason() -> ::String

**Returns**

- (::String) --- Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.

### #reason=

    def reason=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. The reason or standardized code that corresponds with this transaction event, if one exists. For example, a CHARGEBACK event with code 6005.
**Returns**

- (::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

    def value() -> ::Float

**Returns**

- (::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.

### #value=

    def value=(value) -> ::Float

**Parameter**

- **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.
**Returns**

- (::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.