reCAPTCHA Enterprise V1 API - Class Google::Cloud::RecaptchaEnterprise::V1::TransactionData (v0.17.3)

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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#billing_address

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

#billing_address=

def billing_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address
Parameter
Returns

#card_bin

def card_bin() -> ::String
Returns
  • (::String) — Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.

#card_bin=

def card_bin=(value) -> ::String
Parameter
  • value (::String) — Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.
Returns
  • (::String) — Optional. The Bank Identification Number - generally the first 6 or 8 digits of the card.

#card_last_four

def card_last_four() -> ::String
Returns
  • (::String) — Optional. The last four digits of the card.

#card_last_four=

def card_last_four=(value) -> ::String
Parameter
  • value (::String) — Optional. The last four digits of the card.
Returns
  • (::String) — Optional. The last four digits of the card.

#currency_code

def currency_code() -> ::String
Returns
  • (::String) — Optional. The currency code in ISO-4217 format.

#currency_code=

def currency_code=(value) -> ::String
Parameter
  • value (::String) — Optional. The currency code in ISO-4217 format.
Returns
  • (::String) — Optional. The currency code in ISO-4217 format.

#gateway_info

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

#gateway_info=

def gateway_info=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::GatewayInfo
Parameter
Returns

#items

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

#items=

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

#merchants

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

#merchants=

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

#payment_method

def payment_method() -> ::String
Returns
  • (::String) —

    Optional. 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) —

    Optional. 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) —

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

#shipping_address=

def shipping_address=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::Address
Parameter
Returns

#shipping_value

def shipping_value() -> ::Float
Returns
  • (::Float) — Optional. The value of shipping in the specified currency. 0 for free or no shipping.

#shipping_value=

def shipping_value=(value) -> ::Float
Parameter
  • value (::Float) — Optional. The value of shipping in the specified currency. 0 for free or no shipping.
Returns
  • (::Float) — Optional. 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::V1::TransactionData::User
Returns

#user=

def user=(value) -> ::Google::Cloud::RecaptchaEnterprise::V1::TransactionData::User
Parameter
Returns

#value

def value() -> ::Float
Returns
  • (::Float) — Optional. The decimal value of the transaction in the specified currency.

#value=

def value=(value) -> ::Float
Parameter
  • value (::Float) — Optional. The decimal value of the transaction in the specified currency.
Returns
  • (::Float) — Optional. The decimal value of the transaction in the specified currency.