Show / Hide Table of Contents

Class GoogleCloudRetailV2PriceInfo

The price information of a Product.

Inheritance
object
GoogleCloudRetailV2PriceInfo
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudRetail.v2.Data
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class GoogleCloudRetailV2PriceInfo : IDirectResponseSchema

Properties

Cost

The costs associated with the sale of a particular product. Used for gross profit reporting. * Profit = price - cost Google Merchant Center property cost_of_goods_sold.

Declaration
[JsonProperty("cost")]
public virtual float? Cost { get; set; }
Property Value
Type Description
float?

CurrencyCode

The 3-letter currency code defined in ISO 4217. If this field is an unrecognizable currency code, an INVALID_ARGUMENT error is returned. The Product.Type.VARIANT Products with the same Product.primary_product_id must share the same currency_code. Otherwise, a FAILED_PRECONDITION error is returned.

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

OriginalPrice

Price of the product without any discount. If zero, by default set to be the price. If set, original_price should be greater than or equal to price, otherwise an INVALID_ARGUMENT error is thrown.

Declaration
[JsonProperty("originalPrice")]
public virtual float? OriginalPrice { get; set; }
Property Value
Type Description
float?

Price

Price of the product. Google Merchant Center property price. Schema.org property Offer.price.

Declaration
[JsonProperty("price")]
public virtual float? Price { get; set; }
Property Value
Type Description
float?

PriceEffectiveTime

object representation of PriceEffectiveTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use PriceEffectiveTimeDateTimeOffset instead.")]
public virtual object PriceEffectiveTime { get; set; }
Property Value
Type Description
object

PriceEffectiveTimeDateTimeOffset

DateTimeOffset representation of PriceEffectiveTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? PriceEffectiveTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

PriceEffectiveTimeRaw

The timestamp when the price starts to be effective. This can be set as a future timestamp, and the price is only used for search after price_effective_time. If so, the original_price must be set and original_price is used before price_effective_time. Do not set if price is always effective because it will cause additional latency during search.

Declaration
[JsonProperty("priceEffectiveTime")]
public virtual string PriceEffectiveTimeRaw { get; set; }
Property Value
Type Description
string

PriceExpireTime

object representation of PriceExpireTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use PriceExpireTimeDateTimeOffset instead.")]
public virtual object PriceExpireTime { get; set; }
Property Value
Type Description
object

PriceExpireTimeDateTimeOffset

DateTimeOffset representation of PriceExpireTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? PriceExpireTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

PriceExpireTimeRaw

The timestamp when the price stops to be effective. The price is used for search before price_expire_time. If this field is set, the original_price must be set and original_price is used after price_expire_time. Do not set if price is always effective because it will cause additional latency during search.

Declaration
[JsonProperty("priceExpireTime")]
public virtual string PriceExpireTimeRaw { get; set; }
Property Value
Type Description
string

PriceRange

Output only. The price range of all the child Product.Type.VARIANT Products grouped together on the Product.Type.PRIMARY Product. Only populated for Product.Type.PRIMARY Products. Note: This field is OUTPUT_ONLY for ProductService.GetProduct. Do not set this field in API requests.

Declaration
[JsonProperty("priceRange")]
public virtual GoogleCloudRetailV2PriceInfoPriceRange PriceRange { get; set; }
Property Value
Type Description
GoogleCloudRetailV2PriceInfoPriceRange

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX