Package net.amcintosh.freshbooks.models
Enum Class Invoice.InvoiceStatus
- All Implemented Interfaces:
Serializable
,Comparable<Invoice.InvoiceStatus>
,Constable
- Enclosing class:
- Invoice
Status values for an invoice.
Values are:
Values are:
- DISPUTED: An Invoice with the Dispute option enabled, which has been disputed by a Client. This is a feature of FreshBooks Classic only and should only appear in migrated accounts.
- DRAFT: An Invoice that has been created, but not yet sent.
- SENT: An Invoice that has been sent to a Client or marked as sent.
- VIEWED: An Invoice that has been viewed by a Client.
- PAID: A fully paid Invoice.
- AUTOPAID: An Invoice paid automatically with a saved credit card.
- RETRY: An Invoice that would normally be paid automatically, but encountered a processing issue, either due to a bad card or a service outage. It will be retried 1 day later.
- FAILED: An Invoice that was in Retry status which again encountered a processing issue when being retried.
- PARTIAL: An Invoice that has been partially paid.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static Invoice.InvoiceStatus
valueOf
(int invoiceStatus) Returns the enum constant of this class with the specified name.static Invoice.InvoiceStatus
Returns the enum constant of this class with the specified name.static Invoice.InvoiceStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISPUTED
-
DRAFT
-
SENT
-
VIEWED
-
PAID
-
AUTOPAID
-
RETRY
-
FAILED
-
PARTIAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
invoiceStatus
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()
-