Class PriceInfo (1.0.0)

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

The price information of a [Product][google.cloud.retail.v2.Product].

Inheritance

System.Object > PriceInfo

Implements

Google.Protobuf.IMessage<PriceInfo>, System.IEquatable<PriceInfo>, Google.Protobuf.IDeepCloneable<PriceInfo>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessage

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

PriceInfo()

public PriceInfo()

PriceInfo(PriceInfo)

public PriceInfo(PriceInfo other)
Parameter
NameDescription
otherPriceInfo

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

Price

public float Price { get; set; }

Price of the product.

Google Merchant Center property price. Schema.org property Offer.priceSpecification.

Property Value
TypeDescription
System.Single