<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Third Party Services
    |--------------------------------------------------------------------------
    |
    | This file is for storing the credentials for third party services such
    | as Mailgun, Postmark, AWS and more. This file provides the de facto
    | location for this type of information, allowing packages to have
    | a conventional file to locate the various service credentials.
    |
    */

    'postmark' => [
        'key' => env('POSTMARK_API_KEY'),
    ],

    'resend' => [
        'key' => env('RESEND_API_KEY'),
    ],

    'ses' => [
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
    ],

    'slack' => [
        'notifications' => [
            'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
            'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
        ],
    ],

    'fastapi_agent' => [
        'jwt_secret' => env('FASTAPI_AGENT_JWT_SECRET'),
        'jwt_algorithm' => env('FASTAPI_AGENT_JWT_ALGORITHM', 'HS256'),
    ],

    'bnfexpress' => [
        'ai_api_url' => env('BNFEXPRESS_AI_API_URL', 'http://bnfexpress-app:8000'),
        'client_id' => env('BNFEXPRESS_AI_CLIENT_ID', 'ev_admin'),
        'client_secret' => env('BNFEXPRESS_AI_CLIENT_SECRET'),
    ],

    'sms' => [
        'enabled' => env('SMS_ENABLED', false),
        'sms_poh' => [
            'server' => env('SMS_SERVER'),
            'token' => env('SMS_TOKEN'),
            'sender' => env('SMS_SENDER'),
        ],
    ],

    'kbz' => [
        'app_id' => env('KBZ_APP_ID'),
        'merchant_code' => env('KBZ_MERCHANT_CODE'),
        'merchant_key' => env('KBZ_MERCHANT_KEY'),
        'base_url' => env('KBZ_BASE_URL'),
        'create_order_url' => env('KBZ_CREATE_ORDER_URL'),
        'query_order_url' => env('KBZ_QUERY_ORDER_URL'),
        'refund_order_url' => env('KBZ_REFUND_ORDER_URL'),
        'notify_url' => env('KBZ_NOTIFY_URL'),
        'cert_path' => env('KBZ_CERT_PATH') ? storage_path(env('KBZ_CERT_PATH')) : null,
        'cert_key_path' => env('KBZ_CERT_KEY_PATH') ? storage_path(env('KBZ_CERT_KEY_PATH')) : null,
        'ca_path' => env('KBZ_CA_PATH') ? storage_path(env('KBZ_CA_PATH')) : null,
        'cert_password' => env('KBZ_CERT_PASSWORD'),
    ],

];
