Cloud Channel v1 API - Class DiscountComponent (2.17.0)

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

Reference documentation and code samples for the Cloud Channel v1 API class DiscountComponent.

Represents a single component of the total discount applicable on a Price.

Inheritance

object > DiscountComponent

Namespace

Google.Cloud.Channel.V1

Assembly

Google.Cloud.Channel.V1.dll

Constructors

DiscountComponent()

public DiscountComponent()

DiscountComponent(DiscountComponent)

public DiscountComponent(DiscountComponent other)
Parameter
Name Description
other DiscountComponent

Properties

DiscountAbsolute

public Money DiscountAbsolute { get; set; }

Fixed value discount.

Property Value
Type Description
Money

DiscountPercentage

public double DiscountPercentage { get; set; }

Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.

Property Value
Type Description
double

DiscountType

public DiscountType DiscountType { get; set; }

Type of the discount.

Property Value
Type Description
DiscountType

DiscountValueCase

public DiscountComponent.DiscountValueOneofCase DiscountValueCase { get; }
Property Value
Type Description
DiscountComponentDiscountValueOneofCase

HasDiscountPercentage

public bool HasDiscountPercentage { get; }

Gets whether the "discount_percentage" field is set

Property Value
Type Description
bool