# reCAPTCHA Enterprise V1beta1 API - Class Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData (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::TransactionData.

Transaction data associated with a payment protected by reCAPTCHA.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #billing_address

    def billing_address() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Address associated with the payment method when applicable.

### #billing_address=

    def billing_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Address associated with the payment method when applicable.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Address associated with the payment method when applicable.

### #card_bin

    def card_bin() -> ::String

**Returns**

- (::String) --- The Bank Identification Number - generally the first 6 or 8 digits of the card.

### #card_bin=

    def card_bin=(value) -> ::String

**Parameter**

- **value** (::String) --- The Bank Identification Number - generally the first 6 or 8 digits of the card.
**Returns**

- (::String) --- The Bank Identification Number - generally the first 6 or 8 digits of the card.

### #card_last_four

    def card_last_four() -> ::String

**Returns**

- (::String) --- The last four digits of the card.

### #card_last_four=

    def card_last_four=(value) -> ::String

**Parameter**

- **value** (::String) --- The last four digits of the card.
**Returns**

- (::String) --- The last four digits of the card.

### #currency_code

    def currency_code() -> ::String

**Returns**

- (::String) --- The currency code in ISO-4217 format.

### #currency_code=

    def currency_code=(value) -> ::String

**Parameter**

- **value** (::String) --- The currency code in ISO-4217 format.
**Returns**

- (::String) --- The currency code in ISO-4217 format.

### #gateway_info

    def gateway_info() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-GatewayInfo)) --- Information about the payment gateway's response to the transaction.

### #gateway_info=

    def gateway_info=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-GatewayInfo)) --- Information about the payment gateway's response to the transaction.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::GatewayInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-GatewayInfo)) --- Information about the payment gateway's response to the transaction.

### #items

    def items() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item>

**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Item)\>) --- Items purchased in this transaction.

### #items=

    def items=(value) -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item>

**Parameter**

- **value** (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Item)\>) --- Items purchased in this transaction.
**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Item](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Item)\>) --- Items purchased in this transaction.

### #merchants

    def merchants() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User>

**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)\>) --- Information about the user or users fulfilling the transaction.

### #merchants=

    def merchants=(value) -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User>

**Parameter**

- **value** (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)\>) --- Information about the user or users fulfilling the transaction.
**Returns**

- (::Array\<[::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)\>) --- Information about the user or users fulfilling the transaction.

### #payment_method

    def payment_method() -> ::String

**Returns**

- (::String) --- The payment method for the transaction. The allowed values are:

  - credit-card
  - debit-card
  - gift-card
  - processor-{name} (If a third-party is used, for example, processor-paypal)
  - custom-{name} (If an alternative method is used, for example, custom-crypto)

### #payment_method=

    def payment_method=(value) -> ::String

**Parameter**

- **value** (::String) ---

  The payment method for the transaction. The allowed values are:
  - credit-card
  - debit-card
  - gift-card
  - processor-{name} (If a third-party is used, for example, processor-paypal)
  - custom-{name} (If an alternative method is used, for example, custom-crypto)
**Returns**

- (::String) --- The payment method for the transaction. The allowed values are:

  - credit-card
  - debit-card
  - gift-card
  - processor-{name} (If a third-party is used, for example, processor-paypal)
  - custom-{name} (If an alternative method is used, for example, custom-crypto)

### #shipping_address

    def shipping_address() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Destination address if this transaction involves shipping a physical item.

### #shipping_address=

    def shipping_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Destination address if this transaction involves shipping a physical item.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::Address](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-Address)) --- Destination address if this transaction involves shipping a physical item.

### #shipping_value

    def shipping_value() -> ::Float

**Returns**

- (::Float) --- The value of shipping in the specified currency. 0 for free or no shipping.

### #shipping_value=

    def shipping_value=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The value of shipping in the specified currency. 0 for free or no shipping.
**Returns**

- (::Float) --- The value of shipping in the specified currency. 0 for free or no shipping.

### #transaction_id

    def transaction_id() -> ::String

**Returns**

- (::String) --- Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

### #transaction_id=

    def transaction_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.
**Returns**

- (::String) --- Unique identifier for the transaction. This custom identifier can be used to reference this transaction in the future, for example, labeling a refund or chargeback event. Two attempts at the same transaction should use the same transaction id.

### #user

    def user() -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User

**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)) --- Information about the user paying/initiating the transaction.

### #user=

    def user=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User

**Parameter**

- **value** ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)) --- Information about the user paying/initiating the transaction.
**Returns**

- ([::Google::Cloud::RecaptchaEnterprise::V1beta1::TransactionData::User](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1beta1/latest/Google-Cloud-RecaptchaEnterprise-V1beta1-TransactionData-User)) --- Information about the user paying/initiating the transaction.

### #value

    def value() -> ::Float

**Returns**

- (::Float) --- The decimal value of the transaction in the specified currency.

### #value=

    def value=(value) -> ::Float

**Parameter**

- **value** (::Float) --- The decimal value of the transaction in the specified currency.
**Returns**

- (::Float) --- The decimal value of the transaction in the specified currency.