public sealed class PurchaseTransaction : IMessage<PurchaseTransaction>, IEquatable<PurchaseTransaction>, IDeepCloneable<PurchaseTransaction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class PurchaseTransaction.
A transaction represents the entire purchase transaction.
Implements
IMessagePurchaseTransaction, IEquatablePurchaseTransaction, IDeepCloneablePurchaseTransaction, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
PurchaseTransaction()
public PurchaseTransaction()
PurchaseTransaction(PurchaseTransaction)
public PurchaseTransaction(PurchaseTransaction other)
Parameter | |
---|---|
Name | Description |
other | PurchaseTransaction |
Properties
Cost
public float Cost { get; set; }
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][google.cloud.retail.v2.PurchaseTransaction.revenue] - [tax][google.cloud.retail.v2.PurchaseTransaction.tax] - [cost][google.cloud.retail.v2.PurchaseTransaction.cost]
Property Value | |
---|---|
Type | Description |
float |
CurrencyCode
public string CurrencyCode { get; set; }
Required. Currency code. Use three-character ISO-4217 code.
Property Value | |
---|---|
Type | Description |
string |
Id
public string Id { get; set; }
The transaction ID with a length limit of 128 characters.
Property Value | |
---|---|
Type | Description |
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.
Property Value | |
---|---|
Type | Description |
float |
Tax
public float Tax { get; set; }
All the taxes associated with the transaction.
Property Value | |
---|---|
Type | Description |
float |