quarkus:
  log:
    level: INFO
  http:
    port: 8082
    idle-timeout: 30s
    non-application-root-path: /actuator
  application:
    name: bus-evaluate-customer-product
    version: 1.0.0
  smallrye-openapi:
    path: /openapi
    enable: true
    info-title: bus-evaluate-customer-product
    info-version: 1.0.0
    info-description: 'API Bus evaluate customer accounts'
  swagger-ui:
    path: /swagger-ui
    always-include: true
  redis:
    hosts: "redis://localhost:6379"
    password: redis
    timeout: 3S
    max-pool-size: 32
    max-pool-waiting: 100
  datasource:
    db-kind: postgresql
    jdbc:
      url: jdbc:postgresql://localhost:5433/apiban001
      # Tamaño del Pool
      min-size: 4                  # Conexiones mínimas que el pool mantendrá abiertas.
      max-size: 10                 # Máximo de conexiones permitidas. ¡Ajusta esto según tu carga!
      initial-size: 4              # Conexiones que se crearán al iniciar la aplicación.
      # Tiempos de Espera (Timeouts)
      acquisition-timeout: 8s      # Tiempo máximo (8 seg) que un hilo esperará por una conexión si el pool está lleno.
      idle-removal-interval: 30s   # Cierra conexiones inactivas (por encima de min-size) cada 30 segundos.
      max-lifetime: 30m            # Tiempo máximo de vida de una conexión (10 min) para forzar su renovación.
      background-validation-interval: 30s # Valida conexiones inactivas en segundo plano cada 30 segundos.
      validation-query: "SELECT 1"
    username: us3r001
    password: 8gbNQ.7XZK5c
  rest-client:
    get-service-status:
      url: http://api-get-service-status-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/service/status
      scope: jakarta.inject.Singleton
    user-login:
      #(quarkus)
#      url: http://api-get-user-login-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/user/login
      # (spring)
      url: http://api-get-user-login-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/user/login/
      scope: jakarta.inject.Singleton
    validate-profile:
      url: http://api-validate-profile-client-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/security/profile/validate
      scope: jakarta.inject.Singleton
    encode-value:
      url: http://api-encode-value-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/security/encode
      scope: jakarta.inject.Singleton
    otp:
      url: http://api-validate-otp-route-apis-banesco-qa.apps.desplakur3.desintra.banesco.com/security/otp/validate
      scope: jakarta.inject.Singleton
    customer-accounts:
      url: http://api-get-db2-accounts-client-v2-route-apis-banesco-dev.apps.desplakur3.desintra.banesco.com/customer/accounts
      scope: jakarta.inject.Singleton
    register-security:
      url: http://api-register-security-route-apis-banesco-qa.apps.desplakur3.desintra.banesco.com/register-security/save
      scope: jakarta.inject.Singleton
app:
  appId: BUS_EVALUATE_CUSTOMER_PRODUCT
  redis:
    expiration: 300
  domain:
    api:
      public:
        payment: osbp2p
  otp:
    channel: 2
    servicio: APIFICACION
  account-client:
    availability:
      schedule:
        param:
          cod-ban: 01
          cod-eve: P2PVUEL
          cod-serv: APIFI
        begin: 10:00:00
        finish: 23:00:00
  register-security:
    event-cod: CPROD
    bank-cod: 01
    cur-cod: BS
    sp: spAPI_ConsultaProducto
  response-json: |
    [
        {
           "backend_code": "default",
           "http_code": "409",
           "status_code": "CONFLICT",
           "description": "Conflicto",
           "status": "error"
        },
        {
           "backend_code": "VRN_CONFIG_NOT_FOUND",
           "http_code": "400",
           "status_code": "400",
           "description": "Configuracion no encontrada",
           "status": "error"
        },
        {
           "backend_code": "405",
           "http_code": "405",
           "status_code": "405",
           "description": "Metodo no permitido",
           "status": "error"
        },
        {
           "backend_code": "200",
           "http_code": "200",
           "status_code": "200",
           "description": "Operacion exitosa",
           "status": "ok"
        },
        {
           "backend_code": "204",
           "http_code": "200",
           "status_code": "200",
           "description": "Cliente sin productos",
           "status": "ok"
        },
        {
           "backend_code": "503-URL",
           "http_code": "503",
           "status_code": "503",
           "description": "Incidencia con la resolución de CI",
           "status": "error"
        },
        {
           "backend_code": "500",
           "http_code": "503",
           "status_code": "500",
           "description": "Uso interno",
           "status": "error"
        },
        {
           "backend_code": "406",
           "http_code": "406",
           "status_code": "406",
           "description": "Respuesta no aceptable",
           "status": "error"
        },
        {
    		"backend_code": "VDE01",
            "status_code": "VDE01",
    		"http_code": "BAD_REQUEST",
    		"description": "Error en dato de entrada obligatorio"
    	},
        {
           "backend_code": "VRN01",
           "http_code": "401",
           "status_code": "401",
           "description": "VRN01 - Fallo en la validación del perfil del cliente",
           "status": "error"
        },
        {
           "backend_code": "VRN04",
           "http_code": "503",
           "status_code": "VRN04",
           "description": "Servicio en horario de mantenimiento",
           "status": "error"
        },
        {
           "backend_code": "VRN07",
           "http_code": "401",
           "status_code": "VRN07",
           "description": "VRN07 – Codigo de OTP Invalido",
           "status": "error"
        },
        {
           "backend_code": "409",
           "http_code": "409",
           "status_code": "CONFLICT",
           "description": "Conflicto",
           "status": "error"
        },
        {
           "backend_code": "VRN19",
           "http_code": "401",
           "status_code": "AUTH01",
           "description": "Usuario no existe",
           "status": "error"
        },
        {
           "backend_code": "VRN20",
           "http_code": "401",
           "status_code": "AUTH02",
           "description": "Usuario no existe",
           "status": "error"
        }
    ]