Class PurchaseTransaction
A transaction represents the entire purchase transaction.
Inheritance
System.Object
PurchaseTransaction
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public sealed class PurchaseTransaction : IMessage<PurchaseTransaction>, IEquatable<PurchaseTransaction>, IDeepCloneable<PurchaseTransaction>, IBufferMessage, IMessage
Constructors
PurchaseTransaction()
Declaration
public PurchaseTransaction()
PurchaseTransaction(PurchaseTransaction)
Declaration
public PurchaseTransaction(PurchaseTransaction other)
Parameters
Type | Name | Description |
---|---|---|
PurchaseTransaction | other |
Properties
Cost
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]
Declaration
public float Cost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
CurrencyCode
Required. Currency code. Use three-character ISO-4217 code.
Declaration
public string CurrencyCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Id
The transaction ID with a length limit of 128 characters.
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Revenue
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.
Declaration
public float Revenue { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Tax
All the taxes associated with the transaction.
Declaration
public float Tax { get; set; }
Property Value
Type | Description |
---|---|
System.Single |