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. Currency code. Use three-character ISO-4217 code.
Property Value
Type
Description
System.String
Id
public string Id { get; set; }
The transaction ID with a length limit of 128 characters.
Property Value
Type
Description
System.String
Revenue
public float Revenue { get; set; }
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\u003eThe latest version available for \u003ccode\u003ePurchaseTransaction\u003c/code\u003e within the Google.Cloud.Retail.V2 namespace is version 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePurchaseTransaction\u003c/code\u003e is a class representing a complete purchase transaction within the Google Retail API, implementing several interfaces for message handling and cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003ePurchaseTransaction\u003c/code\u003e includes properties like \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, which represent critical data points related to the transaction.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for creating a new instance of \u003ccode\u003ePurchaseTransaction\u003c/code\u003e with no parameters or by utilizing another \u003ccode\u003ePurchaseTransaction\u003c/code\u003e object as the parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage also contains previous versions of \u003ccode\u003ePurchaseTransaction\u003c/code\u003e, dating all the way back to version 1.0.0.\u003c/p\u003e\n"]]],[],null,[]]