Show / Hide Table of Contents

Class BillingTransactionProperties

A transaction.

Inheritance
System.Object
BillingTransactionProperties
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.ResourceManager.Billing.dll
Syntax
public class BillingTransactionProperties : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Billing.Models.BillingTransactionProperties>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Billing.Models.BillingTransactionProperties>

Constructors

BillingTransactionProperties()

Initializes a new instance of BillingTransactionProperties.

Declaration
public BillingTransactionProperties ();

Properties

AzureCreditApplied

The amount of any Azure credits automatically applied to this transaction.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount AzureCreditApplied { get; }
Property Value
BillingAmount

AzurePlan

Details of the Azure plan.

Declaration
public string AzurePlan { get; set; }
Property Value
System.String

BillingCurrency

The ISO 4217 code for the currency in which this transaction is billed.

Declaration
public string BillingCurrency { get; set; }
Property Value
System.String

BillingProfileDisplayName

The name of the billing profile.

To assign an object to this property use System.BinaryData.FromObjectAsJson``1(``0,System.Text.Json.JsonSerializerOptions).

To assign an already formatted json string to this property use System.BinaryData.FromString(System.String).

Examples:

  • BinaryData.FromObjectAsJson("foo")Creates a payload of "foo".
  • BinaryData.FromString("\"foo\"")Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" })Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}")Creates a payload of { "key": "value" }.

Declaration
public BinaryData BillingProfileDisplayName { get; set; }
Property Value
System.BinaryData

BillingProfileId

The fully qualified ID that uniquely identifies a billing profile.

Declaration
public Azure.Core.ResourceIdentifier BillingProfileId { get; set; }
Property Value
Azure.Core.ResourceIdentifier

ConsumptionCommitmentDecremented

The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount ConsumptionCommitmentDecremented { get; }
Property Value
BillingAmount

CreditType

The credit type of the transaction. Applies only to credited transactions.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.BillingTransactionCreditType> CreditType { get; set; }
Property Value
System.Nullable<BillingTransactionCreditType>

CustomerDisplayName

The name of the customer.

Declaration
public string CustomerDisplayName { get; set; }
Property Value
System.String

CustomerId

The fully qualified ID that uniquely identifies a customer.

Declaration
public Azure.Core.ResourceIdentifier CustomerId { get; set; }
Property Value
Azure.Core.ResourceIdentifier

Discount

The percentage discount, if any, applied to this transaction.

Declaration
public Nullable<float> Discount { get; set; }
Property Value
System.Nullable<System.Single>

EffectivePrice

The price of the product after applying any discounts.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount EffectivePrice { get; }
Property Value
BillingAmount

ExchangeRate

The exchange rate used to convert charged amount to billing currency, if applicable.

Declaration
public Nullable<float> ExchangeRate { get; set; }
Property Value
System.Nullable<System.Single>

Invoice

Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed.

Declaration
public string Invoice { get; set; }
Property Value
System.String

InvoiceId

The fully qualified ID of the invoice on which the transaction was billed. This field is only applicable for transactions which are billed.

Declaration
public Azure.Core.ResourceIdentifier InvoiceId { get; set; }
Property Value
Azure.Core.ResourceIdentifier

InvoiceSectionDisplayName

The name of the invoice section.

Declaration
public string InvoiceSectionDisplayName { get; set; }
Property Value
System.String

InvoiceSectionId

The fully qualified ID that uniquely identifies an invoice section.

Declaration
public Azure.Core.ResourceIdentifier InvoiceSectionId { get; set; }
Property Value
Azure.Core.ResourceIdentifier

IsThirdParty

Whether or not the transaction is third party.

Declaration
public Nullable<bool> IsThirdParty { get; set; }
Property Value
System.Nullable<System.Boolean>

Kind

Type of the transaction, billed or unbilled.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.BillingTransactionKind> Kind { get; set; }
Property Value
System.Nullable<BillingTransactionKind>

MarketPrice

The retail price of the product.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount MarketPrice { get; }
Property Value
BillingAmount

On

The date of transaction.

Declaration
public Nullable<DateTimeOffset> On { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>

PartNumber

The part number of the product for which the transaction took place. The field is only applicable for Enterprise Agreement invoices.

Declaration
public string PartNumber { get; set; }
Property Value
System.String

PricingCurrency

The ISO 4217 code for the currency in which the product is priced.

Declaration
public string PricingCurrency { get; set; }
Property Value
System.String

ProductDescription

The description of the product for which the transaction took place.

Declaration
public string ProductDescription { get; set; }
Property Value
System.String

ProductFamily

The family of the product for which the transaction took place.

Declaration
public string ProductFamily { get; set; }
Property Value
System.String

ProductType

The type of the product for which the transaction took place.

Declaration
public string ProductType { get; set; }
Property Value
System.String

ProductTypeId

The ID of the product type for which the transaction took place.

Declaration
public string ProductTypeId { get; set; }
Property Value
System.String

Quantity

The quantity purchased in the transaction.

Declaration
public Nullable<int> Quantity { get; set; }
Property Value
System.Nullable<System.Int32>

ReasonCode

There reason code for the transaction.

Declaration
public string ReasonCode { get; set; }
Property Value
System.String

RefundTransactionDetails

The refund details of a transaction.

Declaration
public Azure.ResourceManager.Billing.Models.RefundTransactionDetails RefundTransactionDetails { get; set; }
Property Value
RefundTransactionDetails

ServicePeriodEndOn

The end date of the product term, or the end date of the month in which usage ended.

Declaration
public Nullable<DateTimeOffset> ServicePeriodEndOn { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>

ServicePeriodStartOn

The date of the purchase of the product, or the start date of the month in which usage started.

Declaration
public Nullable<DateTimeOffset> ServicePeriodStartOn { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>

SpecialTaxationType

Identifies the type of tax calculation used for the invoice. The field is applicable only to invoices with special tax calculation logic.

Declaration
public Nullable<Azure.ResourceManager.Billing.Models.SpecialTaxationType> SpecialTaxationType { get; set; }
Property Value
System.Nullable<SpecialTaxationType>

SubTotal

The pre-tax charged amount for the transaction.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount SubTotal { get; }
Property Value
BillingAmount

Tax

The tax amount applied to the transaction.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount Tax { get; }
Property Value
BillingAmount

TransactionAmount

The charge associated with the transaction.

Declaration
public Azure.ResourceManager.Billing.Models.BillingAmount TransactionAmount { get; }
Property Value
BillingAmount

TransactionType

The type of transaction.

Declaration
public string TransactionType { get; set; }
Property Value
System.String

UnitOfMeasure

The unit of measure used to bill for the product. For example, compute services are billed per hour.

Declaration
public string UnitOfMeasure { get; set; }
Property Value
System.String

Units

The number of units used for a given product.

Declaration
public Nullable<float> Units { get; set; }
Property Value
System.Nullable<System.Single>

UnitType

The description for the unit of measure for a given product.

Declaration
public string UnitType { get; set; }
Property Value
System.String

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Declaration
protected virtual void JsonModelWriteCore (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter writer

The JSON writer.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The client options for reading and writing models.

Explicit Interface Implementations

IJsonModel<BillingTransactionProperties>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

Declaration
Azure.ResourceManager.Billing.Models.BillingTransactionProperties IJsonModel<BillingTransactionProperties>.Create (ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonReader reader

The System.Text.Json.Utf8JsonReader to read.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
BillingTransactionProperties

A T representation of the JSON value.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IJsonModel<BillingTransactionProperties>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

Declaration
void IJsonModel<BillingTransactionProperties>.Write (System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.Text.Json.Utf8JsonWriter writer

The System.Text.Json.Utf8JsonWriter to write into.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IPersistableModel<BillingTransactionProperties>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

Declaration
Azure.ResourceManager.Billing.Models.BillingTransactionProperties IPersistableModel<BillingTransactionProperties>.Create (BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.BinaryData data

The System.BinaryData to parse.

System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
BillingTransactionProperties

A T representation of the data.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

IPersistableModel<BillingTransactionProperties>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

Declaration
string IPersistableModel<BillingTransactionProperties>.GetFormatFromOptions (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to consider when serializing and deserializing the model.

Returns
System.String

The format that the model uses when communicating with the serivce.

IPersistableModel<BillingTransactionProperties>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

Declaration
BinaryData IPersistableModel<BillingTransactionProperties>.Write (System.ClientModel.Primitives.ModelReaderWriterOptions options);
Parameters
System.ClientModel.Primitives.ModelReaderWriterOptions options

The System.ClientModel.Primitives.ModelReaderWriterOptions to use.

Returns
System.BinaryData

A binary representation of the written model.

Exceptions
System.FormatException

If the model does not support the requested System.ClientModel.Primitives.ModelReaderWriterOptions.Format.

Back to top Azure SDK for .NET