TransactionProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. TransactionProperties
- com.
Implements
public final class TransactionProperties
implements JsonSerializable<TransactionProperties>
A transaction.
Constructor Summary
| Constructor | Description |
|---|---|
| TransactionProperties() |
Creates an instance of Transaction |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Transaction |
azureCreditApplied()
Get the azure |
| String |
azurePlan()
Get the azure |
| String |
billingCurrency()
Get the billing |
| Object |
billingProfileDisplayName()
Get the billing |
| String |
billingProfileId()
Get the billing |
|
Transaction |
consumptionCommitmentDecremented()
Get the consumption |
|
Credit |
creditType()
Get the credit |
| String |
customerDisplayName()
Get the customer |
| String |
customerId()
Get the customer |
|
Offset |
date()
Get the date property: The date of transaction. |
| Float |
discount()
Get the discount property: The percentage discount, if any, applied to this transaction. |
|
Transaction |
effectivePrice()
Get the effective |
| Float |
exchangeRate()
Get the exchange |
|
static
Transaction |
fromJson(JsonReader jsonReader)
Reads an instance of Transaction |
| String |
invoice()
Get the invoice property: Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed. |
| String |
invoiceId()
Get the invoice |
| String |
invoiceSectionDisplayName()
Get the invoice |
| String |
invoiceSectionId()
Get the invoice |
| Boolean |
isThirdParty()
Get the is |
|
Transaction |
kind()
Get the kind property: Type of the transaction, billed or unbilled. |
|
Transaction |
marketPrice()
Get the market |
| String |
partNumber()
Get the part |
| String |
pricingCurrency()
Get the pricing |
| String |
productDescription()
Get the product |
| String |
productFamily()
Get the product |
| String |
productType()
Get the product |
| String |
productTypeId()
Get the product |
| Integer |
quantity()
Get the quantity property: The quantity purchased in the transaction. |
| String |
reasonCode()
Get the reason |
|
Transaction |
refundTransactionDetails()
Get the refund |
|
Offset |
servicePeriodEndDate()
Get the service |
|
Offset |
servicePeriodStartDate()
Get the service |
|
Special |
specialTaxationType()
Get the special |
|
Transaction |
subTotal()
Get the sub |
|
Transaction |
tax()
Get the tax property: The tax amount applied to the transaction. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Transaction |
transactionAmount()
Get the transaction |
| String |
transactionType()
Get the transaction |
| String |
unitOfMeasure()
Get the unit |
| Float |
units()
Get the units property: The number of units used for a given product. |
| String |
unitType()
Get the unit |
| void |
validate()
Validates the instance. |
|
Transaction |
withAzureCreditApplied(TransactionPropertiesAzureCreditApplied azureCreditApplied)
Set the azure |
|
Transaction |
withAzurePlan(String azurePlan)
Set the azure |
|
Transaction |
withBillingCurrency(String billingCurrency)
Set the billing |
|
Transaction |
withBillingProfileDisplayName(Object billingProfileDisplayName)
Set the billing |
|
Transaction |
withBillingProfileId(String billingProfileId)
Set the billing |
|
Transaction |
withConsumptionCommitmentDecremented(TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented)
Set the consumption |
|
Transaction |
withCreditType(CreditType creditType)
Set the credit |
|
Transaction |
withCustomerDisplayName(String customerDisplayName)
Set the customer |
|
Transaction |
withCustomerId(String customerId)
Set the customer |
|
Transaction |
withDate(OffsetDateTime date)
Set the date property: The date of transaction. |
|
Transaction |
withDiscount(Float discount)
Set the discount property: The percentage discount, if any, applied to this transaction. |
|
Transaction |
withEffectivePrice(TransactionPropertiesEffectivePrice effectivePrice)
Set the effective |
|
Transaction |
withExchangeRate(Float exchangeRate)
Set the exchange |
|
Transaction |
withInvoice(String invoice)
Set the invoice property: Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed. |
|
Transaction |
withInvoiceId(String invoiceId)
Set the invoice |
|
Transaction |
withInvoiceSectionDisplayName(String invoiceSectionDisplayName)
Set the invoice |
|
Transaction |
withInvoiceSectionId(String invoiceSectionId)
Set the invoice |
|
Transaction |
withIsThirdParty(Boolean isThirdParty)
Set the is |
|
Transaction |
withKind(TransactionKind kind)
Set the kind property: Type of the transaction, billed or unbilled. |
|
Transaction |
withMarketPrice(TransactionPropertiesMarketPrice marketPrice)
Set the market |
|
Transaction |
withPartNumber(String partNumber)
Set the part |
|
Transaction |
withPricingCurrency(String pricingCurrency)
Set the pricing |
|
Transaction |
withProductDescription(String productDescription)
Set the product |
|
Transaction |
withProductFamily(String productFamily)
Set the product |
|
Transaction |
withProductType(String productType)
Set the product |
|
Transaction |
withProductTypeId(String productTypeId)
Set the product |
|
Transaction |
withQuantity(Integer quantity)
Set the quantity property: The quantity purchased in the transaction. |
|
Transaction |
withReasonCode(String reasonCode)
Set the reason |
|
Transaction |
withRefundTransactionDetails(TransactionPropertiesRefundTransactionDetails refundTransactionDetails)
Set the refund |
|
Transaction |
withServicePeriodEndDate(OffsetDateTime servicePeriodEndDate)
Set the service |
|
Transaction |
withServicePeriodStartDate(OffsetDateTime servicePeriodStartDate)
Set the service |
|
Transaction |
withSpecialTaxationType(SpecialTaxationType specialTaxationType)
Set the special |
|
Transaction |
withSubTotal(TransactionPropertiesSubTotal subTotal)
Set the sub |
|
Transaction |
withTax(TransactionPropertiesTax tax)
Set the tax property: The tax amount applied to the transaction. |
|
Transaction |
withTransactionAmount(TransactionPropertiesTransactionAmount transactionAmount)
Set the transaction |
|
Transaction |
withTransactionType(String transactionType)
Set the transaction |
|
Transaction |
withUnitOfMeasure(String unitOfMeasure)
Set the unit |
|
Transaction |
withUnits(Float units)
Set the units property: The number of units used for a given product. |
|
Transaction |
withUnitType(String unitType)
Set the unit |
Methods inherited from java.lang.Object
Constructor Details
TransactionProperties
public TransactionProperties()
Creates an instance of TransactionProperties class.
Method Details
azureCreditApplied
public TransactionPropertiesAzureCreditApplied azureCreditApplied()
Get the azureCreditApplied property: The amount of any Azure credits automatically applied to this transaction.
Returns:
azurePlan
public String azurePlan()
Get the azurePlan property: Details of the Azure plan.
Returns:
billingCurrency
public String billingCurrency()
Get the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.
Returns:
billingProfileDisplayName
public Object billingProfileDisplayName()
Get the billingProfileDisplayName property: The name of the billing profile.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.
Returns:
consumptionCommitmentDecremented
public TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented()
Get the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.
Returns:
creditType
public CreditType creditType()
Get the creditType property: The credit type of the transaction. Applies only to credited transactions.
Returns:
customerDisplayName
public String customerDisplayName()
Get the customerDisplayName property: The name of the customer.
Returns:
customerId
public String customerId()
Get the customerId property: The fully qualified ID that uniquely identifies a customer.
Returns:
date
public OffsetDateTime date()
Get the date property: The date of transaction.
Returns:
discount
public Float discount()
Get the discount property: The percentage discount, if any, applied to this transaction.
Returns:
effectivePrice
public TransactionPropertiesEffectivePrice effectivePrice()
Get the effectivePrice property: The price of the product after applying any discounts.
Returns:
exchangeRate
public Float exchangeRate()
Get the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.
Returns:
fromJson
public static TransactionProperties fromJson(JsonReader jsonReader)
Reads an instance of TransactionProperties from the JsonReader.
Parameters:
Returns:
Throws:
invoice
public String invoice()
Get the invoice property: Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed.
Returns:
invoiceId
public String invoiceId()
Get the invoiceId property: The fully qualified ID of the invoice on which the transaction was billed. This field is only applicable for transactions which are billed.
Returns:
invoiceSectionDisplayName
public String invoiceSectionDisplayName()
Get the invoiceSectionDisplayName property: The name of the invoice section.
Returns:
invoiceSectionId
public String invoiceSectionId()
Get the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.
Returns:
isThirdParty
public Boolean isThirdParty()
Get the isThirdParty property: Whether or not the transaction is third party.
Returns:
kind
public TransactionKind kind()
Get the kind property: Type of the transaction, billed or unbilled.
Returns:
marketPrice
public TransactionPropertiesMarketPrice marketPrice()
Get the marketPrice property: The retail price of the product.
Returns:
partNumber
public String partNumber()
Get the partNumber property: The part number of the product for which the transaction took place. The field is only applicable for Enterprise Agreement invoices.
Returns:
pricingCurrency
public String pricingCurrency()
Get the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.
Returns:
productDescription
public String productDescription()
Get the productDescription property: The description of the product for which the transaction took place.
Returns:
productFamily
public String productFamily()
Get the productFamily property: The family of the product for which the transaction took place.
Returns:
productType
public String productType()
Get the productType property: The type of the product for which the transaction took place.
Returns:
productTypeId
public String productTypeId()
Get the productTypeId property: The ID of the product type for which the transaction took place.
Returns:
quantity
public Integer quantity()
Get the quantity property: The quantity purchased in the transaction.
Returns:
reasonCode
public String reasonCode()
Get the reasonCode property: There reason code for the transaction.
Returns:
refundTransactionDetails
public TransactionPropertiesRefundTransactionDetails refundTransactionDetails()
Get the refundTransactionDetails property: The refund details of a transaction.
Returns:
servicePeriodEndDate
public OffsetDateTime servicePeriodEndDate()
Get the servicePeriodEndDate property: The end date of the product term, or the end date of the month in which usage ended.
Returns:
servicePeriodStartDate
public OffsetDateTime servicePeriodStartDate()
Get the servicePeriodStartDate property: The date of the purchase of the product, or the start date of the month in which usage started.
Returns:
specialTaxationType
public SpecialTaxationType specialTaxationType()
Get the specialTaxationType property: Identifies the type of tax calculation used for the invoice. The field is applicable only to invoices with special tax calculation logic.
Returns:
subTotal
public TransactionPropertiesSubTotal subTotal()
Get the subTotal property: The pre-tax charged amount for the transaction.
Returns:
tax
public TransactionPropertiesTax tax()
Get the tax property: The tax amount applied to the transaction.
Returns:
toJson
transactionAmount
public TransactionPropertiesTransactionAmount transactionAmount()
Get the transactionAmount property: The charge associated with the transaction.
Returns:
transactionType
public String transactionType()
Get the transactionType property: The type of transaction.
Returns:
unitOfMeasure
public String unitOfMeasure()
Get the unitOfMeasure property: The unit of measure used to bill for the product. For example, compute services are billed per hour.
Returns:
units
public Float units()
Get the units property: The number of units used for a given product.
Returns:
unitType
public String unitType()
Get the unitType property: The description for the unit of measure for a given product.
Returns:
validate
public void validate()
Validates the instance.
withAzureCreditApplied
public TransactionProperties withAzureCreditApplied(TransactionPropertiesAzureCreditApplied azureCreditApplied)
Set the azureCreditApplied property: The amount of any Azure credits automatically applied to this transaction.
Parameters:
Returns:
withAzurePlan
public TransactionProperties withAzurePlan(String azurePlan)
Set the azurePlan property: Details of the Azure plan.
Parameters:
Returns:
withBillingCurrency
public TransactionProperties withBillingCurrency(String billingCurrency)
Set the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.
Parameters:
Returns:
withBillingProfileDisplayName
public TransactionProperties withBillingProfileDisplayName(Object billingProfileDisplayName)
Set the billingProfileDisplayName property: The name of the billing profile.
Parameters:
Returns:
withBillingProfileId
public TransactionProperties withBillingProfileId(String billingProfileId)
Set the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.
Parameters:
Returns:
withConsumptionCommitmentDecremented
public TransactionProperties withConsumptionCommitmentDecremented(TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented)
Set the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.
Parameters:
Returns:
withCreditType
public TransactionProperties withCreditType(CreditType creditType)
Set the creditType property: The credit type of the transaction. Applies only to credited transactions.
Parameters:
Returns:
withCustomerDisplayName
public TransactionProperties withCustomerDisplayName(String customerDisplayName)
Set the customerDisplayName property: The name of the customer.
Parameters:
Returns:
withCustomerId
public TransactionProperties withCustomerId(String customerId)
Set the customerId property: The fully qualified ID that uniquely identifies a customer.
Parameters:
Returns:
withDate
public TransactionProperties withDate(OffsetDateTime date)
Set the date property: The date of transaction.
Parameters:
Returns:
withDiscount
public TransactionProperties withDiscount(Float discount)
Set the discount property: The percentage discount, if any, applied to this transaction.
Parameters:
Returns:
withEffectivePrice
public TransactionProperties withEffectivePrice(TransactionPropertiesEffectivePrice effectivePrice)
Set the effectivePrice property: The price of the product after applying any discounts.
Parameters:
Returns:
withExchangeRate
public TransactionProperties withExchangeRate(Float exchangeRate)
Set the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.
Parameters:
Returns:
withInvoice
public TransactionProperties withInvoice(String invoice)
Set the invoice property: Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed.
Parameters:
Returns:
withInvoiceId
public TransactionProperties withInvoiceId(String invoiceId)
Set the invoiceId property: The fully qualified ID of the invoice on which the transaction was billed. This field is only applicable for transactions which are billed.
Parameters:
Returns:
withInvoiceSectionDisplayName
public TransactionProperties withInvoiceSectionDisplayName(String invoiceSectionDisplayName)
Set the invoiceSectionDisplayName property: The name of the invoice section.
Parameters:
Returns:
withInvoiceSectionId
public TransactionProperties withInvoiceSectionId(String invoiceSectionId)
Set the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.
Parameters:
Returns:
withIsThirdParty
public TransactionProperties withIsThirdParty(Boolean isThirdParty)
Set the isThirdParty property: Whether or not the transaction is third party.
Parameters:
Returns:
withKind
public TransactionProperties withKind(TransactionKind kind)
Set the kind property: Type of the transaction, billed or unbilled.
Parameters:
Returns:
withMarketPrice
public TransactionProperties withMarketPrice(TransactionPropertiesMarketPrice marketPrice)
Set the marketPrice property: The retail price of the product.
Parameters:
Returns:
withPartNumber
public TransactionProperties withPartNumber(String partNumber)
Set the partNumber property: The part number of the product for which the transaction took place. The field is only applicable for Enterprise Agreement invoices.
Parameters:
Returns:
withPricingCurrency
public TransactionProperties withPricingCurrency(String pricingCurrency)
Set the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.
Parameters:
Returns:
withProductDescription
public TransactionProperties withProductDescription(String productDescription)
Set the productDescription property: The description of the product for which the transaction took place.
Parameters:
Returns:
withProductFamily
public TransactionProperties withProductFamily(String productFamily)
Set the productFamily property: The family of the product for which the transaction took place.
Parameters:
Returns:
withProductType
public TransactionProperties withProductType(String productType)
Set the productType property: The type of the product for which the transaction took place.
Parameters:
Returns:
withProductTypeId
public TransactionProperties withProductTypeId(String productTypeId)
Set the productTypeId property: The ID of the product type for which the transaction took place.
Parameters:
Returns:
withQuantity
public TransactionProperties withQuantity(Integer quantity)
Set the quantity property: The quantity purchased in the transaction.
Parameters:
Returns:
withReasonCode
public TransactionProperties withReasonCode(String reasonCode)
Set the reasonCode property: There reason code for the transaction.
Parameters:
Returns:
withRefundTransactionDetails
public TransactionProperties withRefundTransactionDetails(TransactionPropertiesRefundTransactionDetails refundTransactionDetails)
Set the refundTransactionDetails property: The refund details of a transaction.
Parameters:
Returns:
withServicePeriodEndDate
public TransactionProperties withServicePeriodEndDate(OffsetDateTime servicePeriodEndDate)
Set the servicePeriodEndDate property: The end date of the product term, or the end date of the month in which usage ended.
Parameters:
Returns:
withServicePeriodStartDate
public TransactionProperties withServicePeriodStartDate(OffsetDateTime servicePeriodStartDate)
Set the servicePeriodStartDate property: The date of the purchase of the product, or the start date of the month in which usage started.
Parameters:
Returns:
withSpecialTaxationType
public TransactionProperties withSpecialTaxationType(SpecialTaxationType specialTaxationType)
Set the specialTaxationType property: Identifies the type of tax calculation used for the invoice. The field is applicable only to invoices with special tax calculation logic.
Parameters:
Returns:
withSubTotal
public TransactionProperties withSubTotal(TransactionPropertiesSubTotal subTotal)
Set the subTotal property: The pre-tax charged amount for the transaction.
Parameters:
Returns:
withTax
public TransactionProperties withTax(TransactionPropertiesTax tax)
Set the tax property: The tax amount applied to the transaction.
Parameters:
Returns:
withTransactionAmount
public TransactionProperties withTransactionAmount(TransactionPropertiesTransactionAmount transactionAmount)
Set the transactionAmount property: The charge associated with the transaction.
Parameters:
Returns:
withTransactionType
public TransactionProperties withTransactionType(String transactionType)
Set the transactionType property: The type of transaction.
Parameters:
Returns:
withUnitOfMeasure
public TransactionProperties withUnitOfMeasure(String unitOfMeasure)
Set the unitOfMeasure property: The unit of measure used to bill for the product. For example, compute services are billed per hour.
Parameters:
Returns:
withUnits
public TransactionProperties withUnits(Float units)
Set the units property: The number of units used for a given product.
Parameters:
Returns:
withUnitType
public TransactionProperties withUnitType(String unitType)
Set the unitType property: The description for the unit of measure for a given product.
Parameters:
Returns: