InvoiceDocument Class

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

Implements

public final class InvoiceDocument
implements JsonSerializable<InvoiceDocument>

The properties of a document.

Constructor Summary

Constructor Description
InvoiceDocument()

Creates an instance of InvoiceDocument class.

Method Summary

Modifier and Type Method and Description
List<String> documentNumbers()

Get the documentNumbers property: The document numbers for the invoice document.

String externalUrl()

Get the externalUrl property: The URL to download the invoice document if the source is external to Microsoft.Billing.

static InvoiceDocument fromJson(JsonReader jsonReader)

Reads an instance of InvoiceDocument from the JsonReader.

InvoiceDocumentType kind()

Get the kind property: The type of the document.

String name()

Get the name property: The ID that uniquely identifies an invoice document.

DocumentSource source()

Get the source property: The source of the document.

JsonWriter toJson(JsonWriter jsonWriter)
String url()

Get the url property: The URL to download the invoice document if the source is internal to Microsoft.Billing.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

InvoiceDocument

public InvoiceDocument()

Creates an instance of InvoiceDocument class.

Method Details

documentNumbers

public List<String> documentNumbers()

Get the documentNumbers property: The document numbers for the invoice document.

Returns:

the documentNumbers value.

externalUrl

public String externalUrl()

Get the externalUrl property: The URL to download the invoice document if the source is external to Microsoft.Billing.

Returns:

the externalUrl value.

fromJson

public static InvoiceDocument fromJson(JsonReader jsonReader)

Reads an instance of InvoiceDocument from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of InvoiceDocument 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 InvoiceDocument.

kind

public InvoiceDocumentType kind()

Get the kind property: The type of the document.

Returns:

the kind value.

name

public String name()

Get the name property: The ID that uniquely identifies an invoice document. This ID may be an identifier for an invoice PDF, a credit note, or a tax receipt.

Returns:

the name value.

source

public DocumentSource source()

Get the source property: The source of the document. ENF for Brazil and DRS for rest of the world.

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

url

public String url()

Get the url property: The URL to download the invoice document if the source is internal to Microsoft.Billing.

Returns:

the url value.

validate

public void validate()

Validates the instance.

Applies to