Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::TransactionInfo.
A transaction represents the entire purchase transaction.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cost
def cost() -> ::Float
#cost=
def cost=(value) -> ::Float
#currency
def currency() -> ::String
- (::String) — Required. Currency code. Use three-character ISO-4217 code.
#currency=
def currency=(value) -> ::String
- value (::String) — Required. Currency code. Use three-character ISO-4217 code.
- (::String) — Required. Currency code. Use three-character ISO-4217 code.
#discount_value
def discount_value() -> ::Float
-
(::Float) —
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:
#discount_value=
def discount_value=(value) -> ::Float
-
value (::Float) —
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:
-
(::Float) —
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:
#tax
def tax() -> ::Float
- (::Float) — All the taxes associated with the transaction.
#tax=
def tax=(value) -> ::Float
- value (::Float) — All the taxes associated with the transaction.
- (::Float) — All the taxes associated with the transaction.
#transaction_id
def transaction_id() -> ::String
- (::String) — The transaction ID with a length limit of 128 characters.
#transaction_id=
def transaction_id=(value) -> ::String
- value (::String) — The transaction ID with a length limit of 128 characters.
- (::String) — The transaction ID with a length limit of 128 characters.
#value
def value() -> ::Float
- (::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.
#value=
def value=(value) -> ::Float
- value (::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.
- (::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.