Class: Google::Cloud::DiscoveryEngine::V1beta::TransactionInfo
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::TransactionInfo
- 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
-
#cost ⇒ ::Float
All the costs associated with the products.
-
#currency ⇒ ::String
Required.
-
#discount_value ⇒ ::Float
The total discount(s) value applied to this transaction.
-
#tax ⇒ ::Float
All the taxes associated with the transaction.
-
#transaction_id ⇒ ::String
The transaction ID with a length limit of 128 characters.
-
#value ⇒ ::Float
Required.
Instance Attribute Details
#cost ⇒ ::Float
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.
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:
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.
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.
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.
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 |