Class GoogleCloudRecommendationengineV1beta1PurchaseTransaction
A transaction represents the entire purchase transaction.
Implements
Inherited Members
Namespace: Google.Apis.RecommendationsAI.v1beta1.Data
Assembly: Google.Apis.RecommendationsAI.v1beta1.dll
Syntax
public class GoogleCloudRecommendationengineV1beta1PurchaseTransaction : IDirectResponseSchema
Properties
Costs
Optional. All the costs associated with the product. These can be manufacturing costs, shipping expenses not borne by the end user, or any other costs. Total product cost such that profit = revenue - (sum(taxes) + sum(costs)) If product_cost is not set, then profit = revenue - tax - shipping - sum(CatalogItem.costs). If CatalogItem.cost is not specified for one of the items, CatalogItem.cost based profit cannot be calculated for this Transaction.
Declaration
[JsonProperty("costs")]
public virtual IDictionary<string, float?> Costs { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, float?> |
CurrencyCode
Required. Currency code. Use three-character ISO-4217 code. This field is not required if the event type is
refund
.
Declaration
[JsonProperty("currencyCode")]
public virtual string CurrencyCode { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Optional. The transaction ID with a length limit of 128 bytes.
Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Revenue
Required. Total 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. This field
is not required if the event type is refund
.
Declaration
[JsonProperty("revenue")]
public virtual float? Revenue { get; set; }
Property Value
Type | Description |
---|---|
float? |
Taxes
Optional. All the taxes associated with the transaction.
Declaration
[JsonProperty("taxes")]
public virtual IDictionary<string, float?> Taxes { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, float?> |