InvoiceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. InvoiceProperties
- com.
Implements
public final class InvoiceProperties
implements JsonSerializable<InvoiceProperties>
An invoice.
Constructor Summary
| Constructor | Description |
|---|---|
| InvoiceProperties() |
Creates an instance of Invoice |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Invoice |
amountDue()
Get the amount |
|
Invoice |
azurePrepaymentApplied()
Get the azure |
|
Invoice |
billedAmount()
Get the billed |
| String |
billedDocumentId()
Get the billed |
| String |
billingProfileDisplayName()
Get the billing |
| String |
billingProfileId()
Get the billing |
|
Invoice |
creditAmount()
Get the credit |
| String |
creditForDocumentId()
Get the credit |
|
List<Invoice |
documents()
Get the documents property: List of documents available to download and view such as invoice, credit note, or tax receipt. |
|
Invoice |
documentType()
Get the document |
|
Offset |
dueDate()
Get the due |
|
List<Failed |
failedPayments()
Get the failed |
|
Invoice |
freeAzureCreditApplied()
Get the free |
|
static
Invoice |
fromJson(JsonReader jsonReader)
Reads an instance of Invoice |
|
Offset |
invoiceDate()
Get the invoice |
|
Offset |
invoicePeriodEndDate()
Get the invoice |
|
Offset |
invoicePeriodStartDate()
Get the invoice |
|
Invoice |
invoiceType()
Get the invoice |
| Boolean |
isMonthlyInvoice()
Get the is |
| List<Payment> |
payments()
Get the payments property: List of payments. |
| String |
purchaseOrderNumber()
Get the purchase |
|
Invoice |
rebillDetails()
Get the rebill |
|
Invoice |
refundDetails()
Get the refund |
|
Special |
specialTaxationType()
Get the special |
|
Invoice |
status()
Get the status property: The current status of the invoice. |
| String |
subscriptionDisplayName()
Get the subscription |
| String |
subscriptionId()
Get the subscription |
|
Invoice |
subTotal()
Get the sub |
|
Invoice |
taxAmount()
Get the tax |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Invoice |
totalAmount()
Get the total |
| void |
validate()
Validates the instance. |
|
Invoice |
withAmountDue(InvoicePropertiesAmountDue amountDue)
Set the amount |
|
Invoice |
withAzurePrepaymentApplied(InvoicePropertiesAzurePrepaymentApplied azurePrepaymentApplied)
Set the azure |
|
Invoice |
withBilledAmount(InvoicePropertiesBilledAmount billedAmount)
Set the billed |
|
Invoice |
withCreditAmount(InvoicePropertiesCreditAmount creditAmount)
Set the credit |
|
Invoice |
withFreeAzureCreditApplied(InvoicePropertiesFreeAzureCreditApplied freeAzureCreditApplied)
Set the free |
|
Invoice |
withRebillDetails(InvoicePropertiesRebillDetails rebillDetails)
Set the rebill |
|
Invoice |
withRefundDetails(InvoicePropertiesRefundDetails refundDetails)
Set the refund |
|
Invoice |
withSubTotal(InvoicePropertiesSubTotal subTotal)
Set the sub |
|
Invoice |
withTaxAmount(InvoicePropertiesTaxAmount taxAmount)
Set the tax |
|
Invoice |
withTotalAmount(InvoicePropertiesTotalAmount totalAmount)
Set the total |
Methods inherited from java.lang.Object
Constructor Details
InvoiceProperties
public InvoiceProperties()
Creates an instance of InvoiceProperties class.
Method Details
amountDue
public InvoicePropertiesAmountDue amountDue()
Get the amountDue property: The amount due as of now.
Returns:
azurePrepaymentApplied
public InvoicePropertiesAzurePrepaymentApplied azurePrepaymentApplied()
Get the azurePrepaymentApplied property: The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
billedAmount
public InvoicePropertiesBilledAmount billedAmount()
Get the billedAmount property: The total charges for the invoice billing period.
Returns:
billedDocumentId
public String billedDocumentId()
Get the billedDocumentId property: The Id of the active invoice which is originally billed after this invoice was voided. This field is applicable to the void invoices only.
Returns:
billingProfileDisplayName
public String billingProfileDisplayName()
Get the billingProfileDisplayName property: The name of the billing profile for which the invoice is generated.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: The ID of the billing profile for which the invoice is generated.
Returns:
creditAmount
public InvoicePropertiesCreditAmount creditAmount()
Get the creditAmount property: The total refund for returns and cancellations during the invoice billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
creditForDocumentId
public String creditForDocumentId()
Get the creditForDocumentId property: The Id of the invoice which got voided and this credit note was issued as a result. This field is applicable to the credit notes only.
Returns:
documents
public List<InvoiceDocument> documents()
Get the documents property: List of documents available to download and view such as invoice, credit note, or tax receipt.
Returns:
documentType
public InvoiceDocumentType documentType()
Get the documentType property: The type of the document.
Returns:
dueDate
public OffsetDateTime dueDate()
Get the dueDate property: The due date for the invoice.
Returns:
failedPayments
public List<FailedPayment> failedPayments()
Get the failedPayments property: List of failed payments.
Returns:
freeAzureCreditApplied
public InvoicePropertiesFreeAzureCreditApplied freeAzureCreditApplied()
Get the freeAzureCreditApplied property: The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
fromJson
public static InvoiceProperties fromJson(JsonReader jsonReader)
Reads an instance of InvoiceProperties from the JsonReader.
Parameters:
Returns:
Throws:
invoiceDate
public OffsetDateTime invoiceDate()
Get the invoiceDate property: The date when the invoice was generated.
Returns:
invoicePeriodEndDate
public OffsetDateTime invoicePeriodEndDate()
Get the invoicePeriodEndDate property: The end date of the billing period for which the invoice is generated. The date is in MM-DD-YYYY format.
Returns:
invoicePeriodStartDate
public OffsetDateTime invoicePeriodStartDate()
Get the invoicePeriodStartDate property: The start date of the billing period for which the invoice is generated. The date is in MM-DD-YYYY format.
Returns:
invoiceType
public InvoiceType invoiceType()
Get the invoiceType property: Invoice type.
Returns:
isMonthlyInvoice
public Boolean isMonthlyInvoice()
Get the isMonthlyInvoice property: Specifies if the invoice is generated as part of monthly invoicing cycle or not. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
payments
public List<Payment> payments()
Get the payments property: List of payments.
Returns:
purchaseOrderNumber
public String purchaseOrderNumber()
Get the purchaseOrderNumber property: An optional purchase order number for the invoice.
Returns:
rebillDetails
public InvoicePropertiesRebillDetails rebillDetails()
Get the rebillDetails property: Rebill details for an invoice.
Returns:
refundDetails
public InvoicePropertiesRefundDetails refundDetails()
Get the refundDetails property: The details of a refund request.
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:
status
public InvoiceStatus status()
Get the status property: The current status of the invoice.
Returns:
subscriptionDisplayName
public String subscriptionDisplayName()
Get the subscriptionDisplayName property: The name of the billing subscription for which the invoice is generated.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The ID of the subscription for which the invoice is generated.
Returns:
subTotal
public InvoicePropertiesSubTotal subTotal()
Get the subTotal property: The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
taxAmount
public InvoicePropertiesTaxAmount taxAmount()
Get the taxAmount property: The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
toJson
totalAmount
public InvoicePropertiesTotalAmount totalAmount()
Get the totalAmount property: The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Returns:
validate
public void validate()
Validates the instance.
withAmountDue
public InvoiceProperties withAmountDue(InvoicePropertiesAmountDue amountDue)
Set the amountDue property: The amount due as of now.
Parameters:
Returns:
withAzurePrepaymentApplied
public InvoiceProperties withAzurePrepaymentApplied(InvoicePropertiesAzurePrepaymentApplied azurePrepaymentApplied)
Set the azurePrepaymentApplied property: The amount of Azure prepayment applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
withBilledAmount
public InvoiceProperties withBilledAmount(InvoicePropertiesBilledAmount billedAmount)
Set the billedAmount property: The total charges for the invoice billing period.
Parameters:
Returns:
withCreditAmount
public InvoiceProperties withCreditAmount(InvoicePropertiesCreditAmount creditAmount)
Set the creditAmount property: The total refund for returns and cancellations during the invoice billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
withFreeAzureCreditApplied
public InvoiceProperties withFreeAzureCreditApplied(InvoicePropertiesFreeAzureCreditApplied freeAzureCreditApplied)
Set the freeAzureCreditApplied property: The amount of free Azure credits applied to the charges. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
withRebillDetails
public InvoiceProperties withRebillDetails(InvoicePropertiesRebillDetails rebillDetails)
Set the rebillDetails property: Rebill details for an invoice.
Parameters:
Returns:
withRefundDetails
public InvoiceProperties withRefundDetails(InvoicePropertiesRefundDetails refundDetails)
Set the refundDetails property: The details of a refund request.
Parameters:
Returns:
withSubTotal
public InvoiceProperties withSubTotal(InvoicePropertiesSubTotal subTotal)
Set the subTotal property: The pre-tax amount due. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
withTaxAmount
public InvoiceProperties withTaxAmount(InvoicePropertiesTaxAmount taxAmount)
Set the taxAmount property: The amount of tax charged for the billing period. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
withTotalAmount
public InvoiceProperties withTotalAmount(InvoicePropertiesTotalAmount totalAmount)
Set the totalAmount property: The amount due when the invoice was generated. This field is applicable to billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns: