public sealed class PriceInfo : IMessage<PriceInfo>, IEquatable<PriceInfo>, IDeepCloneable<PriceInfo>, IBufferMessage, IMessage
The price information of a [Product][google.cloud.retail.v2.Product].
Implements
IMessage<PriceInfo>, IEquatable<PriceInfo>, IDeepCloneable<PriceInfo>, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
PriceInfo()
public PriceInfo()
PriceInfo(PriceInfo)
public PriceInfo(PriceInfo other)
Parameter | |
---|---|
Name | Description |
other | PriceInfo |
Properties
Cost
public float Cost { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Single |
CurrencyCode
public string CurrencyCode { get; set; }
The 3-letter currency code defined in ISO 4217.
If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned.
Property Value | |
---|---|
Type | Description |
String |
OriginalPrice
public float OriginalPrice { get; set; }
Price of the product without any discount. If zero, by default set to be the [price][google.cloud.retail.v2.PriceInfo.price].
Property Value | |
---|---|
Type | Description |
Single |
Price
public float Price { get; set; }
Price of the product.
Google Merchant Center property price. Schema.org property Offer.priceSpecification.
Property Value | |
---|---|
Type | Description |
Single |