Enum InstallmentStatus

    • Enum Constant Detail

      • SCHEDULED

        public static final InstallmentStatus SCHEDULED
        The installment is scheduled for future processing
      • PROCESSED

        public static final InstallmentStatus PROCESSED
        The installment has been successfully processed
      • CANCELED

        public static final InstallmentStatus CANCELED
        The payer has canceled the scheduled payment
      • SETTLED

        public static final InstallmentStatus SETTLED
        The receiver has marked the installment as settled
      • FAILED

        public static final InstallmentStatus FAILED
        The installment couldn't be processed (i.e: not enough credits)
      • BLOCKED

        public static final InstallmentStatus BLOCKED
        The installment is blocked to prevent automatic processing
    • Method Detail

      • values

        public static InstallmentStatus[] 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 (InstallmentStatus c : InstallmentStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InstallmentStatus 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
      • isTerminal

        public boolean isTerminal()
        Returns whether this status is a terminal status - that means - cannot be changed. The terminal statuses are PROCESSED, CANCELED and SETTLED