Transaction Constructors

Definition

Overloads

Transaction()

Initializes a new instance of the Transaction class.

Transaction(String, String, String, String, Nullable<DateTime>, String, String, String, String, String, String, String, String, String, Amount, Nullable<Int32>, String, String, String, String, String, String, String, String, String, Amount, String, Nullable<Double>, Amount, Nullable<Double>, Amount, String, Nullable<DateTime>, Nullable<DateTime>, Amount, Amount, String, Nullable<Double>, String)

Initializes a new instance of the Transaction class.

Transaction()

Initializes a new instance of the Transaction class.

public Transaction ();
Public Sub New ()

Applies to

Transaction(String, String, String, String, Nullable<DateTime>, String, String, String, String, String, String, String, String, String, Amount, Nullable<Int32>, String, String, String, String, String, String, String, String, String, Amount, String, Nullable<Double>, Amount, Nullable<Double>, Amount, String, Nullable<DateTime>, Nullable<DateTime>, Amount, Amount, String, Nullable<Double>, String)

Initializes a new instance of the Transaction class.

public Transaction (string id = default, string name = default, string type = default, string kind = default, DateTime? date = default, string invoice = default, string invoiceId = default, string orderId = default, string orderName = default, string productFamily = default, string productTypeId = default, string productType = default, string productDescription = default, string transactionType = default, Microsoft.Azure.Management.Billing.Models.Amount transactionAmount = default, int? quantity = default, string invoiceSectionId = default, string invoiceSectionDisplayName = default, string billingProfileId = default, string billingProfileDisplayName = default, string customerId = default, string customerDisplayName = default, string subscriptionId = default, string subscriptionName = default, string azurePlan = default, Microsoft.Azure.Management.Billing.Models.Amount azureCreditApplied = default, string billingCurrency = default, double? discount = default, Microsoft.Azure.Management.Billing.Models.Amount effectivePrice = default, double? exchangeRate = default, Microsoft.Azure.Management.Billing.Models.Amount marketPrice = default, string pricingCurrency = default, DateTime? servicePeriodStartDate = default, DateTime? servicePeriodEndDate = default, Microsoft.Azure.Management.Billing.Models.Amount subTotal = default, Microsoft.Azure.Management.Billing.Models.Amount tax = default, string unitOfMeasure = default, double? units = default, string unitType = default);
new Microsoft.Azure.Management.Billing.Models.Transaction : string * string * string * string * Nullable<DateTime> * string * string * string * string * string * string * string * string * string * Microsoft.Azure.Management.Billing.Models.Amount * Nullable<int> * string * string * string * string * string * string * string * string * string * Microsoft.Azure.Management.Billing.Models.Amount * string * Nullable<double> * Microsoft.Azure.Management.Billing.Models.Amount * Nullable<double> * Microsoft.Azure.Management.Billing.Models.Amount * string * Nullable<DateTime> * Nullable<DateTime> * Microsoft.Azure.Management.Billing.Models.Amount * Microsoft.Azure.Management.Billing.Models.Amount * string * Nullable<double> * string -> Microsoft.Azure.Management.Billing.Models.Transaction
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional kind As String = Nothing, Optional date As Nullable(Of DateTime) = Nothing, Optional invoice As String = Nothing, Optional invoiceId As String = Nothing, Optional orderId As String = Nothing, Optional orderName As String = Nothing, Optional productFamily As String = Nothing, Optional productTypeId As String = Nothing, Optional productType As String = Nothing, Optional productDescription As String = Nothing, Optional transactionType As String = Nothing, Optional transactionAmount As Amount = Nothing, Optional quantity As Nullable(Of Integer) = Nothing, Optional invoiceSectionId As String = Nothing, Optional invoiceSectionDisplayName As String = Nothing, Optional billingProfileId As String = Nothing, Optional billingProfileDisplayName As String = Nothing, Optional customerId As String = Nothing, Optional customerDisplayName As String = Nothing, Optional subscriptionId As String = Nothing, Optional subscriptionName As String = Nothing, Optional azurePlan As String = Nothing, Optional azureCreditApplied As Amount = Nothing, Optional billingCurrency As String = Nothing, Optional discount As Nullable(Of Double) = Nothing, Optional effectivePrice As Amount = Nothing, Optional exchangeRate As Nullable(Of Double) = Nothing, Optional marketPrice As Amount = Nothing, Optional pricingCurrency As String = Nothing, Optional servicePeriodStartDate As Nullable(Of DateTime) = Nothing, Optional servicePeriodEndDate As Nullable(Of DateTime) = Nothing, Optional subTotal As Amount = Nothing, Optional tax As Amount = Nothing, Optional unitOfMeasure As String = Nothing, Optional units As Nullable(Of Double) = Nothing, Optional unitType As String = Nothing)

Parameters

id
String

Resource Id.

name
String

Resource name.

type
String

Resource type.

kind
String

The kind of transaction. Options are all or reservation. Possible values include: 'all', 'reservation'

date
Nullable<DateTime>

The date of transaction.

invoice
String

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

invoiceId
String

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

orderId
String

The order ID of the reservation. The field is only applicable for transaction of kind reservation.

orderName
String

The name of the reservation order. The field is only applicable for transactions of kind reservation.

productFamily
String

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

productTypeId
String

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

productType
String

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

productDescription
String

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

transactionType
String

The type of transaction. Possible values include: 'Purchase', 'Usage Charge'

transactionAmount
Amount

The charge associated with the transaction.

quantity
Nullable<Int32>

The quantity purchased in the transaction.

invoiceSectionId
String

The ID of the invoice section which will be billed for the transaction.

invoiceSectionDisplayName
String

The name of the invoice section which will be billed for the transaction.

billingProfileId
String

The ID of the billing profile which will be billed for the transaction.

billingProfileDisplayName
String

The name of the billing profile which will be billed for the transaction.

customerId
String

The ID of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account.

customerDisplayName
String

The name of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account.

subscriptionId
String

The ID of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation.

subscriptionName
String

The name of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation.

azurePlan
String

The type of azure plan of the subscription that was used for the transaction.

azureCreditApplied
Amount

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

billingCurrency
String

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

discount
Nullable<Double>

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

effectivePrice
Amount

The price of the product after applying any discounts.

exchangeRate
Nullable<Double>

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

marketPrice
Amount

The retail price of the product.

pricingCurrency
String

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

servicePeriodStartDate
Nullable<DateTime>

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

servicePeriodEndDate
Nullable<DateTime>

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

subTotal
Amount

The pre-tax charged amount for the transaction.

tax
Amount

The tax amount applied to the transaction.

unitOfMeasure
String

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

units
Nullable<Double>

The number of units used for a given product.

unitType
String

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

Applies to