Enum Class Invoice.InvoiceStatus

java.lang.Object
java.lang.Enum<Invoice.InvoiceStatus>
net.amcintosh.freshbooks.models.Invoice.InvoiceStatus
All Implemented Interfaces:
Serializable, Comparable<Invoice.InvoiceStatus>, Constable
Enclosing class:
Invoice

public static enum Invoice.InvoiceStatus extends Enum<Invoice.InvoiceStatus>
Status values for an invoice.
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:
  • Enum Constant Details

  • Method Details

    • values

      public static Invoice.InvoiceStatus[] 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

      public static Invoice.InvoiceStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • valueOf

      public static Invoice.InvoiceStatus valueOf(int invoiceStatus)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()