Class: Google::Apis::AnalyticsreportingV4::TransactionData
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::TransactionData
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsreporting_v4/classes.rb,
generated/google/apis/analyticsreporting_v4/representations.rb,
generated/google/apis/analyticsreporting_v4/representations.rb
Overview
Represents details collected when the visitor performs a transaction on the page.
Instance Attribute Summary collapse
-
#transaction_id ⇒ String
The transaction ID, supplied by the e-commerce tracking method, for the purchase in the shopping cart.
-
#transaction_revenue ⇒ Float
The total sale revenue (excluding shipping and tax) of the transaction.
-
#transaction_shipping ⇒ Float
Total cost of shipping.
-
#transaction_tax ⇒ Float
Total tax for the transaction.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransactionData
constructor
A new instance of TransactionData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TransactionData
Returns a new instance of TransactionData.
2031 2032 2033 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2031 def initialize(**args) update!(**args) end |
Instance Attribute Details
#transaction_id ⇒ String
The transaction ID, supplied by the e-commerce tracking method, for the
purchase in the shopping cart.
Corresponds to the JSON property transactionId
2014 2015 2016 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2014 def transaction_id @transaction_id end |
#transaction_revenue ⇒ Float
The total sale revenue (excluding shipping and tax) of the transaction.
Corresponds to the JSON property transactionRevenue
2019 2020 2021 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2019 def transaction_revenue @transaction_revenue end |
#transaction_shipping ⇒ Float
Total cost of shipping.
Corresponds to the JSON property transactionShipping
2024 2025 2026 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2024 def transaction_shipping @transaction_shipping end |
#transaction_tax ⇒ Float
Total tax for the transaction.
Corresponds to the JSON property transactionTax
2029 2030 2031 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2029 def transaction_tax @transaction_tax end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2036 2037 2038 2039 2040 2041 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 2036 def update!(**args) @transaction_id = args[:transaction_id] if args.key?(:transaction_id) @transaction_revenue = args[:transaction_revenue] if args.key?(:transaction_revenue) @transaction_shipping = args[:transaction_shipping] if args.key?(:transaction_shipping) @transaction_tax = args[:transaction_tax] if args.key?(:transaction_tax) end |