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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["The latest version available for `PurchaseTransaction` within the Google.Cloud.Retail.V2 namespace is version 2.12.0, with multiple previous versions listed, starting with version 1.0.0 and going up to the latest."],["`PurchaseTransaction` represents a complete purchase transaction, inheriting from Object and implementing several interfaces including IMessage, IEquatable, IDeepCloneable, and IBufferMessage."],["The class offers several properties, including `Cost`, `CurrencyCode`, `Id`, `Revenue`, and `Tax`, which provide details on the financial aspects of the transaction."],["The `CurrencyCode` and `Revenue` properties are marked as required fields for the transaction object, and all the properties related to money have a description on how they relate to the Profit calculation of the transaction."],["The class has two constructors to create `PurchaseTransaction` objects, one default constructor, and another constructor that takes in another `PurchaseTransaction` object."]]],[]]