DiscountTypeProperties Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This defines the conditions for a given discount type. Please note this is the abstract base class. The derived classes available for instantiation are: DiscountTypeProductFamily, DiscountTypeProduct, DiscountTypeProductSku, DiscountTypeCustomPrice, and DiscountTypeCustomPriceMultiCurrency.
[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.BillingBenefits.Models.UnknownDiscountTypeProperties))]
public abstract class DiscountTypeProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.BillingBenefits.Models.DiscountTypeProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.BillingBenefits.Models.DiscountTypeProperties>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.ResourceManager.BillingBenefits.Models.UnknownDiscountTypeProperties))>]
type DiscountTypeProperties = class
interface IJsonModel<DiscountTypeProperties>
interface IPersistableModel<DiscountTypeProperties>
Public MustInherit Class DiscountTypeProperties
Implements IJsonModel(Of DiscountTypeProperties), IPersistableModel(Of DiscountTypeProperties)
- Inheritance
-
DiscountTypeProperties
- Derived
- Attributes
- Implements
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. |
| Conditions |
Array of conditions for the discount. Validation: Optional. Maximum length is 1000. |
| DiscountCombinationRule |
The discount combination rule when there are multiple applicable custom prices. Validation: Required. Supported values are Stackable and BestOf. |
| DiscountPercentage |
Discount percentage provided for the customer. Validation: Required unless this is a price rule. |
| PriceGuaranteeProperties |
Set only in price guarantee scenario. |