Enum Class CompanyBackOffice

java.lang.Object
java.lang.Enum<CompanyBackOffice>
es.kukenan.smartfi.microservice.contracts.enums.CompanyBackOffice
All Implemented Interfaces:
Serializable, Comparable<CompanyBackOffice>, Constable

public enum CompanyBackOffice extends Enum<CompanyBackOffice>
Enum for relation between companyy and back office identifer.
  • Enum Constant Details

  • Field Details

    • entityId

      private final String entityId
      Entity bank code.
    • backOfficeId

      private final Integer backOfficeId
      Back office code.
    • entityName

      private final String entityName
      Entity bank name.
  • Constructor Details

    • CompanyBackOffice

      private CompanyBackOffice(Integer backOfficeId, String entityId, String entityName)
  • Method Details

    • values

      public static CompanyBackOffice[] 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 CompanyBackOffice 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
    • getByBackofficeId

      public static CompanyBackOffice getByBackofficeId(Integer backOfficeId)
      Filter by back office code. Return null if not exist.
      Parameters:
      backOfficeId - Back office code
      Returns:
      The CardsEntity found
    • getByEntityId

      public static CompanyBackOffice getByEntityId(String entityId)
      Filter by back office code. Return null if not exist.
      Parameters:
      entityId - Back office code
      Returns:
      The CardsEntity found
    • getByEntityName

      public static CompanyBackOffice getByEntityName(String entityName)
      Filter by back office code. Return null if not exist.
      Parameters:
      entityName - Back office name
      Returns:
      The CardsEntity found