Class PriceInfo
The price information of a [Product][google.cloud.retail.v2.Product].
Inheritance
System.Object
PriceInfo
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 PriceInfo : IMessage<PriceInfo>, IEquatable<PriceInfo>, IDeepCloneable<PriceInfo>, IBufferMessage, IMessage
Constructors
PriceInfo()
Declaration
public PriceInfo()
PriceInfo(PriceInfo)
Declaration
public PriceInfo(PriceInfo other)
Parameters
Type | Name | Description |
---|---|---|
PriceInfo | other |
Properties
Cost
The costs associated with the sale of a particular product. Used for gross profit reporting.
- Profit = [price][google.cloud.retail.v2.PriceInfo.price] - [cost][google.cloud.retail.v2.PriceInfo.cost]
Google Merchant Center property cost_of_goods_sold.
Declaration
public float Cost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
CurrencyCode
The 3-letter currency code defined in ISO 4217.
If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned.
Declaration
public string CurrencyCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OriginalPrice
Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2.PriceInfo.price].
Declaration
public float OriginalPrice { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Price
Price of the product.
Google Merchant Center property price. Schema.org property Offer.priceSpecification.
Declaration
public float Price { get; set; }
Property Value
Type | Description |
---|---|
System.Single |