public sealed class PriceTier : IMessage<PriceTier>, IEquatable<PriceTier>, IDeepCloneable<PriceTier>, IBufferMessage, IMessage
Defines price at resource tier level. For example, an offer with following definition :
- Tier 1: Provide 25% discount for all seats between 1 and 25.
- Tier 2: Provide 10% discount for all seats between 26 and 100.
- Tier 3: Provide flat 15% discount for all seats above 100.
Each of these tiers is represented as a PriceTier.
Implements
Google.Protobuf.IMessage<PriceTier>, IEquatable<PriceTier>, Google.Protobuf.IDeepCloneable<PriceTier>, Google.Protobuf.IBufferMessage, Google.Protobuf.IMessageNamespace
Google.Cloud.Channel.V1Assembly
Google.Cloud.Channel.V1.dll
Constructors
PriceTier()
public PriceTier()
PriceTier(PriceTier)
public PriceTier(PriceTier other)
Parameter | |
---|---|
Name | Description |
other | PriceTier |
Properties
FirstResource
public int FirstResource { get; set; }
First resource for which the tier price applies.
Property Value | |
---|---|
Type | Description |
Int32 |
LastResource
public int LastResource { get; set; }
Last resource for which the tier price applies.
Property Value | |
---|---|
Type | Description |
Int32 |
Price
public Price Price { get; set; }
Price of the tier.
Property Value | |
---|---|
Type | Description |
Price |