public sealed class PurchaseTransaction : IMessage<PurchaseTransaction>, IEquatable<PurchaseTransaction>, IDeepCloneable<PurchaseTransaction>, IBufferMessage, IMessage
A transaction represents the entire purchase transaction.
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:
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003ePurchaseTransaction\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace, which represents a complete purchase transaction.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the Google.Cloud.Retail.V2.dll assembly and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePurchaseTransaction\u003c/code\u003e provides properties to manage transaction details such as \u003ccode\u003eCost\u003c/code\u003e, \u003ccode\u003eCurrencyCode\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eRevenue\u003c/code\u003e, and \u003ccode\u003eTax\u003c/code\u003e, each with specific descriptions and types.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists version history for the PurchaseTransaction class, ranging from the latest version (2.12.0) down to version 1.0.0, providing links to each release.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be instantiated using two available constructors: \u003ccode\u003ePurchaseTransaction()\u003c/code\u003e and \u003ccode\u003ePurchaseTransaction(PurchaseTransaction other)\u003c/code\u003e, with the latter allowing for cloning from an existing PurchaseTransaction object.\u003c/p\u003e\n"]]],[],null,[]]