Partilhar via


DocumentType Class

public final class DocumentType
extends ExpandableStringEnum<DocumentType>

The type of the document.

Field Summary

Modifier and Type Field and Description
static final DocumentType CREDIT_NOTE

Static value CreditNote for DocumentType.

static final DocumentType INVOICE

Static value Invoice for DocumentType.

static final DocumentType TAX_RECEIPT

Static value TaxReceipt for DocumentType.

static final DocumentType VOID_NOTE

Static value VoidNote for DocumentType.

Constructor Summary

Constructor Description
DocumentType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentType value.

Method Summary

Modifier and Type Method and Description
static DocumentType fromString(String name)

Creates or finds a DocumentType from its string representation.

static Collection<DocumentType> values()

Gets known DocumentType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CREDIT_NOTE

public static final DocumentType CREDIT_NOTE

Static value CreditNote for DocumentType.

INVOICE

public static final DocumentType INVOICE

Static value Invoice for DocumentType.

TAX_RECEIPT

public static final DocumentType TAX_RECEIPT

Static value TaxReceipt for DocumentType.

VOID_NOTE

public static final DocumentType VOID_NOTE

Static value VoidNote for DocumentType.

Constructor Details

DocumentType

@Deprecated
public DocumentType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of DocumentType value.

Method Details

fromString

public static DocumentType fromString(String name)

Creates or finds a DocumentType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding DocumentType.

values

public static Collection<DocumentType> values()

Gets known DocumentType values.

Returns:

known DocumentType values.

Applies to