<?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' => [
        'token' => env('POSTMARK_TOKEN'),
    ],

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

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

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

    'gemini' => [
        'api_key' => env('GEMINI_API_KEY'),
        'model'   => env('GEMINI_MODEL') ?: 'gemini-2.5-flash',
    ],

    'google_geocoding' => [
        'base_url'        => env('GOOGLE_GEOCODING_BASE_URL', 'https://maps.googleapis.com'),
        'api_key'         => env('GOOGLE_GEOCODING_API_KEY'),
        'connect_timeout' => env('GOOGLE_GEOCODING_CONNECT_TIMEOUT', 2),
        'timeout'         => env('GOOGLE_GEOCODING_TIMEOUT', 5),
        'cache_ttl'       => env('GOOGLE_GEOCODING_CACHE_TTL', 2592000),
    ],

    'support' => [
        'email' => env('SUPPORT_EMAIL'),
        'from'  => env('SUPPORT_FROM_EMAIL', env('MAIL_FROM_ADDRESS')),
    ],

    'sms' => [
        'enabled' => (bool) env('SMS_ENABLED', false),
    ],

    'pagarme' => [
        'secret_key'                    => env('PAGARME_SECRET_KEY'),
        'service_referer_name'          => env('PAGARME_SERVICE_REFERER_NAME', env('APP_NAME', 'Laravel')),
        'base_url'                      => env('PAGARME_BASE_URL', 'https://api.pagar.me/core/v5'),
        'webhook_user'                  => env('PAGARME_WEBHOOK_USER'),
        'webhook_password'              => env('PAGARME_WEBHOOK_PASSWORD'),
        'platform_recipient_id'         => env('PAGARME_PLATFORM_RECIPIENT_ID'),
        'pix_disable_split'             => env('PAGARME_PIX_DISABLE_SPLIT', false),
        'platform_pix_fee_rate'         => env('PAGARME_PLATFORM_PIX_FEE_RATE', 0.12),
        'platform_credit_card_fee_rate' => env('PAGARME_PLATFORM_CREDIT_CARD_FEE_RATE', 0.16),
        'transfer_fee_amount'           => env('PAGARME_TRANSFER_FEE_AMOUNT', 3.67),
        'withdrawal_release_days'       => env('PAGARME_WITHDRAWAL_RELEASE_DAYS', 2),

        'platform_service_package_min_3_schedules_credit_card_fee_rate' => env('PAGARME_PLATFORM_SERVICE_PACKAGE_MIN_3_SCHEDULES_CREDIT_CARD_FEE_RATE', 0.12),
        'platform_service_package_min_3_schedules_pix_fee_rate'         => env('PAGARME_PLATFORM_SERVICE_PACKAGE_MIN_3_SCHEDULES_PIX_FEE_RATE', 0.10),
    ],
];
