EntityTypeAffiliateDiscount Class

Definition

Entity type for affiliate discounts.

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

Constructors

Name Description
EntityTypeAffiliateDiscount(String, DateTimeOffset)

Initializes a new instance of EntityTypeAffiliateDiscount.

Properties

Name Description
AppliedScopeType

List of applied scopes supported for discounts.

(Inherited from BillingBenefitsDiscountProperties)
BenefitResourceId

Fully-qualified identifier of the benefit under applicable benefit list.

(Inherited from BillingBenefitsDiscountProperties)
BillingAccountResourceId

Billing account resource id where the discount metadata is present.

(Inherited from BillingBenefitsDiscountProperties)
BillingProfileResourceId

Billing profile resource id where the discount is scoped to.

(Inherited from BillingBenefitsDiscountProperties)
CustomerResourceId

Customer resource id where the discount is scoped to.

(Inherited from BillingBenefitsDiscountProperties)
DisplayName

This defines a user friendly display name for the discount.

(Inherited from BillingBenefitsDiscountProperties)
EndOn

End date of the discount. No duration will be supported. Allowed value is any date greater than or equal to startDate.

PrimaryResourceId

This will be present in the response if the primary has a resource ID.

ProductCode

This is the catalog UPN for the product.

(Inherited from BillingBenefitsDiscountProperties)
ProvisioningState

The state of the resource. Supported values are Pending, Failed, Succeeded, Canceled.

(Inherited from BillingBenefitsDiscountProperties)
StartOn

Start date of the discount. Value is the date the discount started or will start in the future.

(Inherited from BillingBenefitsDiscountProperties)
Status

Represents the current status of the discount.

(Inherited from BillingBenefitsDiscountProperties)
SystemId

This is the globally unique identifier of the Discount which will not change for the lifetime of the Discount.

(Inherited from BillingBenefitsDiscountProperties)

Methods

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

Explicit Interface Implementations

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

Applies to