class Google::Apis::AnalyticsreportingV4::TransactionData

Represents details collected when the visitor performs a transaction on the page.

Attributes

transaction_id[RW]

The transaction ID, supplied by the e-commerce tracking method, for the purchase in the shopping cart. Corresponds to the JSON property `transactionId` @return [String]

transaction_revenue[RW]

The total sale revenue (excluding shipping and tax) of the transaction. Corresponds to the JSON property `transactionRevenue` @return [Float]

transaction_shipping[RW]

Total cost of shipping. Corresponds to the JSON property `transactionShipping` @return [Float]

transaction_tax[RW]

Total tax for the transaction. Corresponds to the JSON property `transactionTax` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1947
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 1952
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