DiscountTypeCustomPrice Class

Definition

Discount type properties including product family name, product id, sku, and custom price properties. Allows a single entry in marketSetPrices.

public class DiscountTypeCustomPrice : Azure.ResourceManager.BillingBenefits.Models.DiscountTypeProperties, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.BillingBenefits.Models.DiscountTypeCustomPrice>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.BillingBenefits.Models.DiscountTypeCustomPrice>
type DiscountTypeCustomPrice = class
    inherit DiscountTypeProperties
    interface IJsonModel<DiscountTypeCustomPrice>
    interface IPersistableModel<DiscountTypeCustomPrice>
Public Class DiscountTypeCustomPrice
Inherits DiscountTypeProperties
Implements IJsonModel(Of DiscountTypeCustomPrice), IPersistableModel(Of DiscountTypeCustomPrice)
Inheritance
DiscountTypeCustomPrice
Derived
Implements

Constructors

Name Description
DiscountTypeCustomPrice(ApplyDiscountOn)

Initializes a new instance of DiscountTypeCustomPrice.

Properties

Name Description
ApplyDiscountOn

The customer action on which the discount is applied. Supported values are Purchase, Consume, and Renew. Validation: Required, one of supported values.

(Inherited from DiscountTypeProperties)
Conditions

Array of conditions for the discount. Validation: Optional. Maximum length is 1000.

(Inherited from DiscountTypeProperties)
CustomPriceProperties

Custom price properties for a given discount.

DiscountCombinationRule

The discount combination rule when there are multiple applicable custom prices. Validation: Required. Supported values are Stackable and BestOf.

(Inherited from DiscountTypeProperties)
DiscountPercentage

Discount percentage provided for the customer. Validation: Required unless this is a price rule.

(Inherited from DiscountTypeProperties)
PriceGuaranteeProperties

Set only in price guarantee scenario.

(Inherited from DiscountTypeProperties)
ProductFamilyName

Product family for which the discount is given. Validation: Optional.

ProductId

Product ID for which the discount is given. Validation: Optional. No specific format, example: DZH318Z09V6F.

SkuId

ResourceSku for the given discount. Validation: Optional.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<DiscountTypeCustomPrice>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<DiscountTypeCustomPrice>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<DiscountTypeProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from DiscountTypeProperties)
IJsonModel<DiscountTypeProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from DiscountTypeProperties)
IPersistableModel<DiscountTypeCustomPrice>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<DiscountTypeCustomPrice>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<DiscountTypeCustomPrice>.Write(ModelReaderWriterOptions)
IPersistableModel<DiscountTypeProperties>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from DiscountTypeProperties)
IPersistableModel<DiscountTypeProperties>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from DiscountTypeProperties)
IPersistableModel<DiscountTypeProperties>.Write(ModelReaderWriterOptions) (Inherited from DiscountTypeProperties)

Applies to