Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem
- Inherits:
-
Object
- Object
- Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionDataItem
- 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
Line items being purchased in this transaction.
Instance Attribute Summary collapse
-
#merchant_account_id ⇒ String
When a merchant is specified, its corresponding account_id.
-
#name ⇒ String
The full name of the item.
-
#quantity ⇒ Fixnum
The quantity of this item that is being purchased.
-
#value ⇒ Float
The value per item that the user is paying, in the transaction currency, after discounts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataItem
constructor
A new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1TransactionDataItem
Returns a new instance of GoogleCloudRecaptchaenterpriseV1TransactionDataItem.
1711 1712 1713 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1711 def initialize(**args) update!(**args) end |
Instance Attribute Details
#merchant_account_id ⇒ String
When a merchant is specified, its corresponding account_id. Necessary to
populate marketplace-style transactions.
Corresponds to the JSON property merchantAccountId
1693 1694 1695 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1693 def merchant_account_id @merchant_account_id end |
#name ⇒ String
The full name of the item.
Corresponds to the JSON property name
1698 1699 1700 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1698 def name @name end |
#quantity ⇒ Fixnum
The quantity of this item that is being purchased.
Corresponds to the JSON property quantity
1703 1704 1705 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1703 def quantity @quantity end |
#value ⇒ Float
The value per item that the user is paying, in the transaction currency, after
discounts.
Corresponds to the JSON property value
1709 1710 1711 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1709 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1716 1717 1718 1719 1720 1721 |
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1716 def update!(**args) @merchant_account_id = args[:merchant_account_id] if args.key?(:merchant_account_id) @name = args[:name] if args.key?(:name) @quantity = args[:quantity] if args.key?(:quantity) @value = args[:value] if args.key?(:value) end |