Class: Google::Cloud::DiscoveryEngine::V1beta::TransactionInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb

Overview

A transaction represents the entire purchase transaction.

Instance Attribute Summary collapse

Instance Attribute Details

#cost::Float

Returns All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that:

Returns:

  • (::Float)

    All the costs associated with the products. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs, such that:



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#currency::String

Returns Required. Currency code. Use three-character ISO-4217 code.

Returns:

  • (::String)

    Required. Currency code. Use three-character ISO-4217 code.



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#discount_value::Float

Returns The total discount(s) value applied to this transaction. This figure should be excluded from TransactionInfo.value

For example, if a user paid TransactionInfo.value amount, then nominal (pre-discount) value of the transaction is the sum of TransactionInfo.value and TransactionInfo.discount_value

This means that profit is calculated the same way, regardless of the discount value, and that TransactionInfo.discount_value can be larger than TransactionInfo.value:

Returns:



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#tax::Float

Returns All the taxes associated with the transaction.

Returns:

  • (::Float)

    All the taxes associated with the transaction.



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#transaction_id::String

Returns The transaction ID with a length limit of 128 characters.

Returns:

  • (::String)

    The transaction ID with a length limit of 128 characters.



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#value::Float

Returns Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.

Returns:

  • (::Float)

    Required. Total non-zero value associated with the transaction. This value may include shipping, tax, or other adjustments to the total value that you want to include.



399
400
401
402
# File 'proto_docs/google/cloud/discoveryengine/v1beta/user_event.rb', line 399

class TransactionInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end