Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb
Overview
Transaction data associated with a payment protected by reCAPTCHA Enterprise. All fields are optional.
Instance Attribute Summary collapse
-
#billing_address ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
Structured address format for billing and shipping addresses.
-
#card_bin ⇒ String
The Bank Identification Number - generally the first 6 or 8 digits of the card.
-
#card_last_four ⇒ String
The last four digits of the card.
-
#currency_code ⇒ String
The currency code in ISO-4217 format.
-
#gateway_info ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
Details about the transaction from the gateway.
-
#items ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem>
Items purchased in this transaction.
-
#merchants ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser>
Information about the user or users fulfilling the transaction.
-
#payment_method ⇒ String
The payment method for the transaction.
-
#shipping_address ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
Structured address format for billing and shipping addresses.
-
#shipping_value ⇒ Float
The value of shipping in the specified currency.
-
#transaction_id ⇒ String
Unique identifier for the transaction.
-
#user ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser
Details about a user's account involved in the transaction.
-
#value ⇒ Float
The decimal value of the transaction in the specified currency.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionData
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TransactionData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionData
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionData.
1454 1455 1456 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1454 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_address ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
Structured address format for billing and shipping addresses.
Corresponds to the JSON property billingAddress
1386 1387 1388 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1386 def billing_address @billing_address end |
#card_bin ⇒ String
The Bank Identification Number - generally the first 6 or 8 digits of the card.
Corresponds to the JSON property cardBin
1391 1392 1393 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1391 def card_bin @card_bin end |
#card_last_four ⇒ String
The last four digits of the card.
Corresponds to the JSON property cardLastFour
1396 1397 1398 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1396 def card_last_four @card_last_four end |
#currency_code ⇒ String
The currency code in ISO-4217 format.
Corresponds to the JSON property currencyCode
1401 1402 1403 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1401 def currency_code @currency_code end |
#gateway_info ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataGatewayInfo
Details about the transaction from the gateway.
Corresponds to the JSON property gatewayInfo
1406 1407 1408 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1406 def gateway_info @gateway_info end |
#items ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem>
Items purchased in this transaction.
Corresponds to the JSON property items
1411 1412 1413 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1411 def items @items end |
#merchants ⇒ Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser>
Information about the user or users fulfilling the transaction.
Corresponds to the JSON property merchants
1416 1417 1418 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1416 def merchants @merchants end |
#payment_method ⇒ 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)
Corresponds to the JSON property paymentMethod
1424 1425 1426 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1424 def payment_method @payment_method end |
#shipping_address ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataAddress
Structured address format for billing and shipping addresses.
Corresponds to the JSON property shippingAddress
1429 1430 1431 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1429 def shipping_address @shipping_address end |
#shipping_value ⇒ Float
The value of shipping in the specified currency. 0 for free or no shipping.
Corresponds to the JSON property shippingValue
1434 1435 1436 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1434 def shipping_value @shipping_value end |
#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.
Corresponds to the JSON property transactionId
1442 1443 1444 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1442 def transaction_id @transaction_id end |
#user ⇒ Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataUser
Details about a user's account involved in the transaction.
Corresponds to the JSON property user
1447 1448 1449 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1447 def user @user end |
#value ⇒ Float
The decimal value of the transaction in the specified currency.
Corresponds to the JSON property value
1452 1453 1454 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1452 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1459 def update!(**args) @billing_address = args[:billing_address] if args.key?(:billing_address) @card_bin = args[:card_bin] if args.key?(:card_bin) @card_last_four = args[:card_last_four] if args.key?(:card_last_four) @currency_code = args[:currency_code] if args.key?(:currency_code) @gateway_info = args[:gateway_info] if args.key?(:gateway_info) @items = args[:items] if args.key?(:items) @merchants = args[:merchants] if args.key?(:merchants) @payment_method = args[:payment_method] if args.key?(:payment_method) @shipping_address = args[:shipping_address] if args.key?(:shipping_address) @shipping_value = args[:shipping_value] if args.key?(:shipping_value) @transaction_id = args[:transaction_id] if args.key?(:transaction_id) @user = args[:user] if args.key?(:user) @value = args[:value] if args.key?(:value) end |