Reference documentation and code samples for the reCAPTCHA Enterprise V1 API class Google::Cloud::RecaptchaEnterprise::V1::TransactionData.
Transaction data associated with a payment protected by reCAPTCHA Enterprise. All fields are optional.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#billing_address
def billing_address() -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Address associated with the payment method when applicable.
#billing_address=
def billing_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address
- value (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Address associated with the payment method when applicable.
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Address associated with the payment method when applicable.
#card_bin
def card_bin() -> ::String
- (::String) — The Bank Identification Number - generally the first 6 or 8 digits of the card.
#card_bin=
def card_bin=(value) -> ::String
- value (::String) — The Bank Identification Number - generally the first 6 or 8 digits of the card.
- (::String) — The Bank Identification Number - generally the first 6 or 8 digits of the card.
#card_last_four
def card_last_four() -> ::String
- (::String) — The last four digits of the card.
#card_last_four=
def card_last_four=(value) -> ::String
- value (::String) — The last four digits of the card.
- (::String) — The last four digits of the card.
#currency_code
def currency_code() -> ::String
- (::String) — The currency code in ISO-4217 format.
#currency_code=
def currency_code=(value) -> ::String
- value (::String) — The currency code in ISO-4217 format.
- (::String) — The currency code in ISO-4217 format.
#gateway_info
def gateway_info() -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo) — Information about the payment gateway's response to the transaction.
#gateway_info=
def gateway_info=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo
- value (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo) — Information about the payment gateway's response to the transaction.
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo) — Information about the payment gateway's response to the transaction.
#items
def items() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>
- (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>) — Items purchased in this transaction.
#items=
def items=(value) -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>
- value (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>) — Items purchased in this transaction.
- (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Item>) — Items purchased in this transaction.
#merchants
def merchants() -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>
- (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>) — Information about the user or users fulfilling the transaction.
#merchants=
def merchants=(value) -> ::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>
- value (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>) — Information about the user or users fulfilling the transaction.
- (::Array<::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User>) — Information about the user or users fulfilling the transaction.
#payment_method
def payment_method() -> ::String
-
(::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
-
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)
-
(::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::V1::TransactionData::Address
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Destination address if this transaction involves shipping a physical item.
#shipping_address=
def shipping_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address
- value (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Destination address if this transaction involves shipping a physical item.
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address) — Destination address if this transaction involves shipping a physical item.
#shipping_value
def shipping_value() -> ::Float
- (::Float) — The value of shipping in the specified currency. 0 for free or no shipping.
#shipping_value=
def shipping_value=(value) -> ::Float
- value (::Float) — The value of shipping in the specified currency. 0 for free or no shipping.
- (::Float) — The value of shipping in the specified currency. 0 for free or no shipping.
#transaction_id
def transaction_id() -> ::String
- (::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
- 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.
- (::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::V1::TransactionData::User
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User) — Information about the user paying/initiating the transaction.
#user=
def user=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User
- value (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User) — Information about the user paying/initiating the transaction.
- (::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User) — Information about the user paying/initiating the transaction.
#value
def value() -> ::Float
- (::Float) — The decimal value of the transaction in the specified currency.
#value=
def value=(value) -> ::Float
- value (::Float) — The decimal value of the transaction in the specified currency.
- (::Float) — The decimal value of the transaction in the specified currency.