TransactionProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.TransactionProperties

Implements

public final class TransactionProperties
implements JsonSerializable<TransactionProperties>

A transaction.

Constructor Summary

Constructor Description
TransactionProperties()

Creates an instance of TransactionProperties class.

Method Summary

Modifier and Type Method and Description
TransactionPropertiesAzureCreditApplied azureCreditApplied()

Get the azureCreditApplied property: The amount of any Azure credits automatically applied to this transaction.

String azurePlan()

Get the azurePlan property: Details of the Azure plan.

String billingCurrency()

Get the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.

Object billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile.

String billingProfileId()

Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented()

Get the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.

CreditType creditType()

Get the creditType property: The credit type of the transaction.

String customerDisplayName()

Get the customerDisplayName property: The name of the customer.

String customerId()

Get the customerId property: The fully qualified ID that uniquely identifies a customer.

OffsetDateTime date()

Get the date property: The date of transaction.

Float discount()

Get the discount property: The percentage discount, if any, applied to this transaction.

TransactionPropertiesEffectivePrice effectivePrice()

Get the effectivePrice property: The price of the product after applying any discounts.

Float exchangeRate()

Get the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.

static TransactionProperties fromJson(JsonReader jsonReader)

Reads an instance of TransactionProperties from the JsonReader.

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 invoiceId property: The fully qualified ID of the invoice on which the transaction was billed.

String invoiceSectionDisplayName()

Get the invoiceSectionDisplayName property: The name of the invoice section.

String invoiceSectionId()

Get the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.

Boolean isThirdParty()

Get the isThirdParty property: Whether or not the transaction is third party.

TransactionKind kind()

Get the kind property: Type of the transaction, billed or unbilled.

TransactionPropertiesMarketPrice marketPrice()

Get the marketPrice property: The retail price of the product.

String partNumber()

Get the partNumber property: The part number of the product for which the transaction took place.

String pricingCurrency()

Get the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.

String productDescription()

Get the productDescription property: The description of the product for which the transaction took place.

String productFamily()

Get the productFamily property: The family of the product for which the transaction took place.

String productType()

Get the productType property: The type of the product for which the transaction took place.

String productTypeId()

Get the productTypeId property: The ID of the product type for which the transaction took place.

Integer quantity()

Get the quantity property: The quantity purchased in the transaction.

String reasonCode()

Get the reasonCode property: There reason code for the transaction.

TransactionPropertiesRefundTransactionDetails refundTransactionDetails()

Get the refundTransactionDetails property: The refund details of a transaction.

OffsetDateTime servicePeriodEndDate()

Get the servicePeriodEndDate property: The end date of the product term, or the end date of the month in which usage ended.

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.

SpecialTaxationType specialTaxationType()

Get the specialTaxationType property: Identifies the type of tax calculation used for the invoice.

TransactionPropertiesSubTotal subTotal()

Get the subTotal property: The pre-tax charged amount for the transaction.

TransactionPropertiesTax tax()

Get the tax property: The tax amount applied to the transaction.

JsonWriter toJson(JsonWriter jsonWriter)
TransactionPropertiesTransactionAmount transactionAmount()

Get the transactionAmount property: The charge associated with the transaction.

String transactionType()

Get the transactionType property: The type of transaction.

String unitOfMeasure()

Get the unitOfMeasure property: The unit of measure used to bill for the product.

Float units()

Get the units property: The number of units used for a given product.

String unitType()

Get the unitType property: The description for the unit of measure for a given product.

void validate()

Validates the instance.

TransactionProperties withAzureCreditApplied(TransactionPropertiesAzureCreditApplied azureCreditApplied)

Set the azureCreditApplied property: The amount of any Azure credits automatically applied to this transaction.

TransactionProperties withAzurePlan(String azurePlan)

Set the azurePlan property: Details of the Azure plan.

TransactionProperties withBillingCurrency(String billingCurrency)

Set the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.

TransactionProperties withBillingProfileDisplayName(Object billingProfileDisplayName)

Set the billingProfileDisplayName property: The name of the billing profile.

TransactionProperties withBillingProfileId(String billingProfileId)

Set the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

TransactionProperties withConsumptionCommitmentDecremented(TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented)

Set the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.

TransactionProperties withCreditType(CreditType creditType)

Set the creditType property: The credit type of the transaction.

TransactionProperties withCustomerDisplayName(String customerDisplayName)

Set the customerDisplayName property: The name of the customer.

TransactionProperties withCustomerId(String customerId)

Set the customerId property: The fully qualified ID that uniquely identifies a customer.

TransactionProperties withDate(OffsetDateTime date)

Set the date property: The date of transaction.

TransactionProperties withDiscount(Float discount)

Set the discount property: The percentage discount, if any, applied to this transaction.

TransactionProperties withEffectivePrice(TransactionPropertiesEffectivePrice effectivePrice)

Set the effectivePrice property: The price of the product after applying any discounts.

TransactionProperties withExchangeRate(Float exchangeRate)

Set the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.

TransactionProperties withInvoice(String invoice)

Set the invoice property: Invoice name on which the transaction was billed or 'Pending' if the transaction is not billed.

TransactionProperties withInvoiceId(String invoiceId)

Set the invoiceId property: The fully qualified ID of the invoice on which the transaction was billed.

TransactionProperties withInvoiceSectionDisplayName(String invoiceSectionDisplayName)

Set the invoiceSectionDisplayName property: The name of the invoice section.

TransactionProperties withInvoiceSectionId(String invoiceSectionId)

Set the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.

TransactionProperties withIsThirdParty(Boolean isThirdParty)

Set the isThirdParty property: Whether or not the transaction is third party.

TransactionProperties withKind(TransactionKind kind)

Set the kind property: Type of the transaction, billed or unbilled.

TransactionProperties withMarketPrice(TransactionPropertiesMarketPrice marketPrice)

Set the marketPrice property: The retail price of the product.

TransactionProperties withPartNumber(String partNumber)

Set the partNumber property: The part number of the product for which the transaction took place.

TransactionProperties withPricingCurrency(String pricingCurrency)

Set the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.

TransactionProperties withProductDescription(String productDescription)

Set the productDescription property: The description of the product for which the transaction took place.

TransactionProperties withProductFamily(String productFamily)

Set the productFamily property: The family of the product for which the transaction took place.

TransactionProperties withProductType(String productType)

Set the productType property: The type of the product for which the transaction took place.

TransactionProperties withProductTypeId(String productTypeId)

Set the productTypeId property: The ID of the product type for which the transaction took place.

TransactionProperties withQuantity(Integer quantity)

Set the quantity property: The quantity purchased in the transaction.

TransactionProperties withReasonCode(String reasonCode)

Set the reasonCode property: There reason code for the transaction.

TransactionProperties withRefundTransactionDetails(TransactionPropertiesRefundTransactionDetails refundTransactionDetails)

Set the refundTransactionDetails property: The refund details of a transaction.

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.

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.

TransactionProperties withSpecialTaxationType(SpecialTaxationType specialTaxationType)

Set the specialTaxationType property: Identifies the type of tax calculation used for the invoice.

TransactionProperties withSubTotal(TransactionPropertiesSubTotal subTotal)

Set the subTotal property: The pre-tax charged amount for the transaction.

TransactionProperties withTax(TransactionPropertiesTax tax)

Set the tax property: The tax amount applied to the transaction.

TransactionProperties withTransactionAmount(TransactionPropertiesTransactionAmount transactionAmount)

Set the transactionAmount property: The charge associated with the transaction.

TransactionProperties withTransactionType(String transactionType)

Set the transactionType property: The type of transaction.

TransactionProperties withUnitOfMeasure(String unitOfMeasure)

Set the unitOfMeasure property: The unit of measure used to bill for the product.

TransactionProperties withUnits(Float units)

Set the units property: The number of units used for a given product.

TransactionProperties withUnitType(String unitType)

Set the unitType property: The description for the unit of measure for a given product.

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:

the azureCreditApplied value.

azurePlan

public String azurePlan()

Get the azurePlan property: Details of the Azure plan.

Returns:

the azurePlan value.

billingCurrency

public String billingCurrency()

Get the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.

Returns:

the billingCurrency value.

billingProfileDisplayName

public Object billingProfileDisplayName()

Get the billingProfileDisplayName property: The name of the billing profile.

Returns:

the billingProfileDisplayName value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

Returns:

the billingProfileId value.

consumptionCommitmentDecremented

public TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented()

Get the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.

Returns:

the consumptionCommitmentDecremented value.

creditType

public CreditType creditType()

Get the creditType property: The credit type of the transaction. Applies only to credited transactions.

Returns:

the creditType value.

customerDisplayName

public String customerDisplayName()

Get the customerDisplayName property: The name of the customer.

Returns:

the customerDisplayName value.

customerId

public String customerId()

Get the customerId property: The fully qualified ID that uniquely identifies a customer.

Returns:

the customerId value.

date

public OffsetDateTime date()

Get the date property: The date of transaction.

Returns:

the date value.

discount

public Float discount()

Get the discount property: The percentage discount, if any, applied to this transaction.

Returns:

the discount value.

effectivePrice

public TransactionPropertiesEffectivePrice effectivePrice()

Get the effectivePrice property: The price of the product after applying any discounts.

Returns:

the effectivePrice value.

exchangeRate

public Float exchangeRate()

Get the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.

Returns:

the exchangeRate value.

fromJson

public static TransactionProperties fromJson(JsonReader jsonReader)

Reads an instance of TransactionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TransactionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the TransactionProperties.

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:

the invoice value.

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:

the invoiceId value.

invoiceSectionDisplayName

public String invoiceSectionDisplayName()

Get the invoiceSectionDisplayName property: The name of the invoice section.

Returns:

the invoiceSectionDisplayName value.

invoiceSectionId

public String invoiceSectionId()

Get the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.

Returns:

the invoiceSectionId value.

isThirdParty

public Boolean isThirdParty()

Get the isThirdParty property: Whether or not the transaction is third party.

Returns:

the isThirdParty value.

kind

public TransactionKind kind()

Get the kind property: Type of the transaction, billed or unbilled.

Returns:

the kind value.

marketPrice

public TransactionPropertiesMarketPrice marketPrice()

Get the marketPrice property: The retail price of the product.

Returns:

the marketPrice value.

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:

the partNumber value.

pricingCurrency

public String pricingCurrency()

Get the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.

Returns:

the pricingCurrency value.

productDescription

public String productDescription()

Get the productDescription property: The description of the product for which the transaction took place.

Returns:

the productDescription value.

productFamily

public String productFamily()

Get the productFamily property: The family of the product for which the transaction took place.

Returns:

the productFamily value.

productType

public String productType()

Get the productType property: The type of the product for which the transaction took place.

Returns:

the productType value.

productTypeId

public String productTypeId()

Get the productTypeId property: The ID of the product type for which the transaction took place.

Returns:

the productTypeId value.

quantity

public Integer quantity()

Get the quantity property: The quantity purchased in the transaction.

Returns:

the quantity value.

reasonCode

public String reasonCode()

Get the reasonCode property: There reason code for the transaction.

Returns:

the reasonCode value.

refundTransactionDetails

public TransactionPropertiesRefundTransactionDetails refundTransactionDetails()

Get the refundTransactionDetails property: The refund details of a transaction.

Returns:

the refundTransactionDetails value.

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:

the servicePeriodEndDate value.

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:

the servicePeriodStartDate value.

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:

the specialTaxationType value.

subTotal

public TransactionPropertiesSubTotal subTotal()

Get the subTotal property: The pre-tax charged amount for the transaction.

Returns:

the subTotal value.

tax

public TransactionPropertiesTax tax()

Get the tax property: The tax amount applied to the transaction.

Returns:

the tax value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transactionAmount

public TransactionPropertiesTransactionAmount transactionAmount()

Get the transactionAmount property: The charge associated with the transaction.

Returns:

the transactionAmount value.

transactionType

public String transactionType()

Get the transactionType property: The type of transaction.

Returns:

the transactionType value.

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:

the unitOfMeasure value.

units

public Float units()

Get the units property: The number of units used for a given product.

Returns:

the units value.

unitType

public String unitType()

Get the unitType property: The description for the unit of measure for a given product.

Returns:

the unitType value.

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:

azureCreditApplied - the azureCreditApplied value to set.

Returns:

the TransactionProperties object itself.

withAzurePlan

public TransactionProperties withAzurePlan(String azurePlan)

Set the azurePlan property: Details of the Azure plan.

Parameters:

azurePlan - the azurePlan value to set.

Returns:

the TransactionProperties object itself.

withBillingCurrency

public TransactionProperties withBillingCurrency(String billingCurrency)

Set the billingCurrency property: The ISO 4217 code for the currency in which this transaction is billed.

Parameters:

billingCurrency - the billingCurrency value to set.

Returns:

the TransactionProperties object itself.

withBillingProfileDisplayName

public TransactionProperties withBillingProfileDisplayName(Object billingProfileDisplayName)

Set the billingProfileDisplayName property: The name of the billing profile.

Parameters:

billingProfileDisplayName - the billingProfileDisplayName value to set.

Returns:

the TransactionProperties object itself.

withBillingProfileId

public TransactionProperties withBillingProfileId(String billingProfileId)

Set the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.

Parameters:

billingProfileId - the billingProfileId value to set.

Returns:

the TransactionProperties object itself.

withConsumptionCommitmentDecremented

public TransactionProperties withConsumptionCommitmentDecremented(TransactionPropertiesConsumptionCommitmentDecremented consumptionCommitmentDecremented)

Set the consumptionCommitmentDecremented property: The amount of Microsoft Azure Consumption Commitment(MACC) decrement through the transaction.

Parameters:

consumptionCommitmentDecremented - the consumptionCommitmentDecremented value to set.

Returns:

the TransactionProperties object itself.

withCreditType

public TransactionProperties withCreditType(CreditType creditType)

Set the creditType property: The credit type of the transaction. Applies only to credited transactions.

Parameters:

creditType - the creditType value to set.

Returns:

the TransactionProperties object itself.

withCustomerDisplayName

public TransactionProperties withCustomerDisplayName(String customerDisplayName)

Set the customerDisplayName property: The name of the customer.

Parameters:

customerDisplayName - the customerDisplayName value to set.

Returns:

the TransactionProperties object itself.

withCustomerId

public TransactionProperties withCustomerId(String customerId)

Set the customerId property: The fully qualified ID that uniquely identifies a customer.

Parameters:

customerId - the customerId value to set.

Returns:

the TransactionProperties object itself.

withDate

public TransactionProperties withDate(OffsetDateTime date)

Set the date property: The date of transaction.

Parameters:

date - the date value to set.

Returns:

the TransactionProperties object itself.

withDiscount

public TransactionProperties withDiscount(Float discount)

Set the discount property: The percentage discount, if any, applied to this transaction.

Parameters:

discount - the discount value to set.

Returns:

the TransactionProperties object itself.

withEffectivePrice

public TransactionProperties withEffectivePrice(TransactionPropertiesEffectivePrice effectivePrice)

Set the effectivePrice property: The price of the product after applying any discounts.

Parameters:

effectivePrice - the effectivePrice value to set.

Returns:

the TransactionProperties object itself.

withExchangeRate

public TransactionProperties withExchangeRate(Float exchangeRate)

Set the exchangeRate property: The exchange rate used to convert charged amount to billing currency, if applicable.

Parameters:

exchangeRate - the exchangeRate value to set.

Returns:

the TransactionProperties object itself.

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:

invoice - the invoice value to set.

Returns:

the TransactionProperties object itself.

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:

invoiceId - the invoiceId value to set.

Returns:

the TransactionProperties object itself.

withInvoiceSectionDisplayName

public TransactionProperties withInvoiceSectionDisplayName(String invoiceSectionDisplayName)

Set the invoiceSectionDisplayName property: The name of the invoice section.

Parameters:

invoiceSectionDisplayName - the invoiceSectionDisplayName value to set.

Returns:

the TransactionProperties object itself.

withInvoiceSectionId

public TransactionProperties withInvoiceSectionId(String invoiceSectionId)

Set the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.

Parameters:

invoiceSectionId - the invoiceSectionId value to set.

Returns:

the TransactionProperties object itself.

withIsThirdParty

public TransactionProperties withIsThirdParty(Boolean isThirdParty)

Set the isThirdParty property: Whether or not the transaction is third party.

Parameters:

isThirdParty - the isThirdParty value to set.

Returns:

the TransactionProperties object itself.

withKind

public TransactionProperties withKind(TransactionKind kind)

Set the kind property: Type of the transaction, billed or unbilled.

Parameters:

kind - the kind value to set.

Returns:

the TransactionProperties object itself.

withMarketPrice

public TransactionProperties withMarketPrice(TransactionPropertiesMarketPrice marketPrice)

Set the marketPrice property: The retail price of the product.

Parameters:

marketPrice - the marketPrice value to set.

Returns:

the TransactionProperties object itself.

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:

partNumber - the partNumber value to set.

Returns:

the TransactionProperties object itself.

withPricingCurrency

public TransactionProperties withPricingCurrency(String pricingCurrency)

Set the pricingCurrency property: The ISO 4217 code for the currency in which the product is priced.

Parameters:

pricingCurrency - the pricingCurrency value to set.

Returns:

the TransactionProperties object itself.

withProductDescription

public TransactionProperties withProductDescription(String productDescription)

Set the productDescription property: The description of the product for which the transaction took place.

Parameters:

productDescription - the productDescription value to set.

Returns:

the TransactionProperties object itself.

withProductFamily

public TransactionProperties withProductFamily(String productFamily)

Set the productFamily property: The family of the product for which the transaction took place.

Parameters:

productFamily - the productFamily value to set.

Returns:

the TransactionProperties object itself.

withProductType

public TransactionProperties withProductType(String productType)

Set the productType property: The type of the product for which the transaction took place.

Parameters:

productType - the productType value to set.

Returns:

the TransactionProperties object itself.

withProductTypeId

public TransactionProperties withProductTypeId(String productTypeId)

Set the productTypeId property: The ID of the product type for which the transaction took place.

Parameters:

productTypeId - the productTypeId value to set.

Returns:

the TransactionProperties object itself.

withQuantity

public TransactionProperties withQuantity(Integer quantity)

Set the quantity property: The quantity purchased in the transaction.

Parameters:

quantity - the quantity value to set.

Returns:

the TransactionProperties object itself.

withReasonCode

public TransactionProperties withReasonCode(String reasonCode)

Set the reasonCode property: There reason code for the transaction.

Parameters:

reasonCode - the reasonCode value to set.

Returns:

the TransactionProperties object itself.

withRefundTransactionDetails

public TransactionProperties withRefundTransactionDetails(TransactionPropertiesRefundTransactionDetails refundTransactionDetails)

Set the refundTransactionDetails property: The refund details of a transaction.

Parameters:

refundTransactionDetails - the refundTransactionDetails value to set.

Returns:

the TransactionProperties object itself.

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:

servicePeriodEndDate - the servicePeriodEndDate value to set.

Returns:

the TransactionProperties object itself.

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:

servicePeriodStartDate - the servicePeriodStartDate value to set.

Returns:

the TransactionProperties object itself.

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:

specialTaxationType - the specialTaxationType value to set.

Returns:

the TransactionProperties object itself.

withSubTotal

public TransactionProperties withSubTotal(TransactionPropertiesSubTotal subTotal)

Set the subTotal property: The pre-tax charged amount for the transaction.

Parameters:

subTotal - the subTotal value to set.

Returns:

the TransactionProperties object itself.

withTax

public TransactionProperties withTax(TransactionPropertiesTax tax)

Set the tax property: The tax amount applied to the transaction.

Parameters:

tax - the tax value to set.

Returns:

the TransactionProperties object itself.

withTransactionAmount

public TransactionProperties withTransactionAmount(TransactionPropertiesTransactionAmount transactionAmount)

Set the transactionAmount property: The charge associated with the transaction.

Parameters:

transactionAmount - the transactionAmount value to set.

Returns:

the TransactionProperties object itself.

withTransactionType

public TransactionProperties withTransactionType(String transactionType)

Set the transactionType property: The type of transaction.

Parameters:

transactionType - the transactionType value to set.

Returns:

the TransactionProperties object itself.

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:

unitOfMeasure - the unitOfMeasure value to set.

Returns:

the TransactionProperties object itself.

withUnits

public TransactionProperties withUnits(Float units)

Set the units property: The number of units used for a given product.

Parameters:

units - the units value to set.

Returns:

the TransactionProperties object itself.

withUnitType

public TransactionProperties withUnitType(String unitType)

Set the unitType property: The description for the unit of measure for a given product.

Parameters:

unitType - the unitType value to set.

Returns:

the TransactionProperties object itself.

Applies to