Enum TransactionNature

    • Enum Constant Detail

      • SCHEDULED_PAYMENT

        public static final TransactionNature SCHEDULED_PAYMENT
        A scheduled payment generated manually
      • RECURRING_PAYMENT

        public static final TransactionNature RECURRING_PAYMENT
        A payment which is processed recurrently
      • PAYMENT_REQUEST

        public static final TransactionNature PAYMENT_REQUEST
        A request for another user to accept a payment
      • EXTERNAL_PAYMENT

        public static final TransactionNature EXTERNAL_PAYMENT
        A payment to an external user
      • TICKET

        public static final TransactionNature TICKET
        A payment to a user to be confirmed by the payer user.
    • Method Detail

      • values

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

        public static TransactionNature 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
      • basePayment

        public static EnumSet<TransactionNature> basePayment()
        Returns the natures that represent a base payment
      • hasInstallments

        public boolean hasInstallments()
        Returns whether transactions of this nature have installments
      • hasStatus

        public boolean hasStatus()
        Returns whether transactions of this nature have a status
      • isBasePayment

        public boolean isBasePayment()
        Returns whether the nature represent "payments", be them direct, scheduled or recurring.