View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PurchaseTransaction (google_api_retail v0.10.0)

A transaction represents the entire purchase transaction.

Attributes

  • cost (type: number(), default: nil) - 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: * Profit = revenue - tax - cost
  • currencyCode (type: String.t, default: nil) - Required. Currency code. Use three-character ISO-4217 code.
  • id (type: String.t, default: nil) - The transaction ID with a length limit of 128 characters.
  • revenue (type: number(), default: nil) - 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 (type: number(), default: nil) - All the taxes associated with the transaction.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2PurchaseTransaction{
  cost: number() | nil,
  currencyCode: String.t() | nil,
  id: String.t() | nil,
  revenue: number() | nil,
  tax: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.