Retail V2 API - Class Google::Cloud::Retail::V2::PurchaseTransaction (v0.14.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::PurchaseTransaction.

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_code

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

#currency_code=

def currency_code=(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.

#id

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

#id=

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

#revenue

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

#revenue=

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

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