Class: Google::Cloud::Retail::V2::PurchaseTransaction
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::PurchaseTransaction
- 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
-
#cost ⇒ ::Float
All the costs associated with the products.
-
#currency_code ⇒ ::String
Required.
-
#id ⇒ ::String
The transaction ID with a length limit of 128 characters.
-
#revenue ⇒ ::Float
Required.
-
#tax ⇒ ::Float
All the taxes associated with the transaction.
Instance Attribute Details
#cost ⇒ ::Float
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.
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.
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.
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.
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 |