Class: Google::Cloud::Retail::V2::PurchaseTransaction

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/retail/v2/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:



359
360
361
362
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 359

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

#currency_code::String

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

Returns:

  • (::String)

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



359
360
361
362
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 359

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

#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.



359
360
361
362
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 359

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

#revenue::Float

Returns Required. Total non-zero revenue or grand total associated with the transaction. This value include shipping, tax, or other adjustments to total revenue that you want to include as part of your revenue calculations.

Returns:

  • (::Float)

    Required. Total non-zero revenue or grand total associated with the transaction. This value include shipping, tax, or other adjustments to total revenue that you want to include as part of your revenue calculations.



359
360
361
362
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 359

class PurchaseTransaction
  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.



359
360
361
362
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 359

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