Enum ObjectGroup

  • All Implemented Interfaces:
    Serializable, Comparable<ObjectGroup>

    public enum ObjectGroup
    extends Enum<ObjectGroup>
    The Object Group that the object is in. These roughly correlate to the endpoints that can be used to retrieve the object via the core accounting API.
    • Enum Constant Detail

      • ACCOUNT

        public static final ObjectGroup ACCOUNT
        ACCOUNT
      • BANKTRANSACTION

        public static final ObjectGroup BANKTRANSACTION
        BANKTRANSACTION
      • CONTACT

        public static final ObjectGroup CONTACT
        CONTACT
      • CREDITNOTE

        public static final ObjectGroup CREDITNOTE
        CREDITNOTE
      • INVOICE

        public static final ObjectGroup INVOICE
        INVOICE
      • MANUALJOURNAL

        public static final ObjectGroup MANUALJOURNAL
        MANUALJOURNAL
      • OVERPAYMENT

        public static final ObjectGroup OVERPAYMENT
        OVERPAYMENT
      • PAYMENT

        public static final ObjectGroup PAYMENT
        PAYMENT
      • PREPAYMENT

        public static final ObjectGroup PREPAYMENT
        PREPAYMENT
      • RECEIPT

        public static final ObjectGroup RECEIPT
        RECEIPT
    • Method Detail

      • values

        public static ObjectGroup[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ObjectGroup c : ObjectGroup.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ObjectGroup valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Returns:
        String value
      • fromValue

        public static ObjectGroup fromValue​(String value)
        fromValue
        Parameters:
        value - String