Transaction Class
A transaction.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
Transaction(*, kind: str | _models.TransactionTypeKind | None = None, transaction_type: str | _models.ReservationType | None = None, **kwargs)
Keyword-Only Parameters
Name | Description |
---|---|
kind
|
The kind of transaction. Options are all or reservation. Known values are: "all" and "reservation". |
transaction_type
|
The type of transaction. Known values are: "Purchase" and "Usage Charge". |
Variables
Name | Description |
---|---|
id
|
Resource Id. |
name
|
Resource name. |
type
|
Resource type. |
kind
|
The kind of transaction. Options are all or reservation. Known values are: "all" and "reservation". |
date
|
The date of transaction. |
invoice
|
Invoice on which the transaction was billed or 'pending' if the transaction is not billed. |
invoice_id
|
The ID of the invoice on which the transaction was billed. This field is only applicable for transactions which are billed. |
order_id
|
The order ID of the reservation. The field is only applicable for transaction of kind reservation. |
order_name
|
The name of the reservation order. The field is only applicable for transactions of kind reservation. |
product_family
|
The family of the product for which the transaction took place. |
product_type_id
|
The ID of the product type for which the transaction took place. |
product_type
|
The type of the product for which the transaction took place. |
product_description
|
The description of the product for which the transaction took place. |
transaction_type
|
The type of transaction. Known values are: "Purchase" and "Usage Charge". |
transaction_amount
|
The charge associated with the transaction. |
quantity
|
The quantity purchased in the transaction. |
invoice_section_id
|
The ID of the invoice section which will be billed for the transaction. |
invoice_section_display_name
|
The name of the invoice section which will be billed for the transaction. |
billing_profile_id
|
The ID of the billing profile which will be billed for the transaction. |
billing_profile_display_name
|
The name of the billing profile which will be billed for the transaction. |
customer_id
|
The ID of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account. |
customer_display_name
|
The name of the customer for which the transaction took place. The field is applicable only for Microsoft Partner Agreement billing account. |
subscription_id
|
The ID of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation. |
subscription_name
|
The name of the subscription that was used for the transaction. The field is only applicable for transaction of kind reservation. |
azure_plan
|
The type of azure plan of the subscription that was used for the transaction. |
azure_credit_applied
|
The amount of any Azure credits automatically applied to this transaction. |
billing_currency
|
The ISO 4217 code for the currency in which this transaction is billed. |
discount
|
The percentage discount, if any, applied to this transaction. |
effective_price
|
The price of the product after applying any discounts. |
exchange_rate
|
The exchange rate used to convert charged amount to billing currency, if applicable. |
market_price
|
The retail price of the product. |
pricing_currency
|
The ISO 4217 code for the currency in which the product is priced. |
service_period_start_date
|
The date of the purchase of the product, or the start date of the month in which usage started. |
service_period_end_date
|
The end date of the product term, or the end date of the month in which usage ended. |
sub_total
|
The pre-tax charged amount for the transaction. |
tax
|
The tax amount applied to the transaction. |
unit_of_measure
|
The unit of measure used to bill for the product. For example, compute services are billed per hour. |
units
|
The number of units used for a given product. |
unit_type
|
The description for the unit of measure for a given product. |
Azure SDK for Python