Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::TransactionInfo (v1.0.1)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::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
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:

#cost=

def cost=(value) -> ::Float
Parameter
  • value (::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:

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:

#currency

def currency() -> ::String
Returns
  • (::String) — Required. Currency code. Use three-character ISO-4217 code.

#currency=

def currency=(value) -> ::String
Parameter
  • value (::String) — Required. Currency code. Use three-character ISO-4217 code.
Returns
  • (::String) — Required. Currency code. Use three-character ISO-4217 code.

#discount_value

def discount_value() -> ::Float
Returns

#discount_value=

def discount_value=(value) -> ::Float
Parameter
Returns

#tax

def tax() -> ::Float
Returns
  • (::Float) — All the taxes associated with the transaction.

#tax=

def tax=(value) -> ::Float
Parameter
  • value (::Float) — All the taxes associated with the transaction.
Returns
  • (::Float) — All the taxes associated with the transaction.

#transaction_id

def transaction_id() -> ::String
Returns
  • (::String) — The transaction ID with a length limit of 128 characters.

#transaction_id=

def transaction_id=(value) -> ::String
Parameter
  • value (::String) — The transaction ID with a length limit of 128 characters.
Returns
  • (::String) — The transaction ID with a length limit of 128 characters.

#value

def value() -> ::Float
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.

#value=

def value=(value) -> ::Float
Parameter
  • 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.
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.