Class PurchaseTransaction

public sealed class PurchaseTransaction : IMessage<PurchaseTransaction>, IEquatable<PurchaseTransaction>, IDeepCloneable<PurchaseTransaction>, IBufferMessage, IMessage

A transaction represents the entire purchase transaction.

Inheritance

Object > PurchaseTransaction

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

PurchaseTransaction()

public PurchaseTransaction()

PurchaseTransaction(PurchaseTransaction)

public PurchaseTransaction(PurchaseTransaction other)
Parameter
NameDescription
otherPurchaseTransaction

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
TypeDescription
Single

CurrencyCode

public string CurrencyCode { get; set; }

Required. Currency code. Use three-character ISO-4217 code.

Property Value
TypeDescription
String

Id

public string Id { get; set; }

The transaction ID with a length limit of 128 characters.

Property Value
TypeDescription
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
TypeDescription
Single

Tax

public float Tax { get; set; }

All the taxes associated with the transaction.

Property Value
TypeDescription
Single