<?php

declare(strict_types=1);

/**
 * Karvi Partner API — karviapi1.de
 * Do not change endpoint paths, header names, or request/response keys.
 */
return [
    'enabled' => true,
    'auth_enabled' => true,
    'local_login_fallback' => false,
    'sync_on_local_admin' => false,

    'service_login' => '',
    'service_password' => '',

    'base_url' => 'http://karviapi1.de',
    'api_key' => '',
    'timeout' => 30,
    'verify_ssl' => true,

    'show_local_store_notice' => false,

    'customer' => [
        'contract_get' => true,
        'link_access' => true,
        'pdf_viewed' => true,
        'pdf_update' => true,
        'sign_submit' => true,
        'registration_email' => true,
    ],

    'endpoints' => [
        'login' => '/karvipartner/login',
        'contracts_list' => '/karvipartner/contracts',
        'contract_create' => '/karvipartner/contracts',
        'contract_get' => '/karvipartner/contracts/{id}',
        'contract_update' => '/karvipartner/contracts/{id}',
        'contract_send' => '/karvipartner/contracts/{id}/send',
        'contract_delete' => '/karvipartner/contracts/{id}',
        'contract_sign' => '/karvipartner/contracts/sign/{token}',
        'contract_view_public' => '/karvipartner/contracts/sign/{token}',
        'contract_sign_public' => '/karvipartner/contracts/sign/{token}',
    ],
];
