<?php

return [
    'host' => _env('HOMEVILLE_HOST'),
    'identifier' => 'HV',
    'apis' => [
        'getToken' => [
            'route' => '/api/v1/auth',
            'method' => 'POST',
        ],
        'createApplication' => [
            'route' => '/api/v2/application',
            'method' => 'POST',
        ],
        'updateApplication' => [
            'route' => '/api/v2/application',
            'method' => 'POST',
        ],
        'addAsset' => [
            'route' => '/api/v2/asset',
            'method' => 'POST',
        ],
        'uploadDocument' => [
            'route' => '/api/v2/upload-document',
            'method' => 'POST',
        ],
        'loanTerms' => [
            'route' => '/api/v1/cases/loan-terms',
            'method' => 'POST',
        ],
        'getStateMaster' => [
            'route' => '/api/v1/locations/get-location/state',
            'method' => 'GET',
        ],
        'getCityMaster' => [
            'route' => '/api/v1/locations/get-cities/<state_id>',
            'method' => 'GET',
        ],
        'getCityByPincode' => [
            'route' => '/api/v1/locations/get-city/<pincode>',
            'method' => 'GET',
        ],
        'getBankMaster' => [
            'route' => '/api/v1/master/get-banks',
            'method' => 'GET',
        ],
        'getQualificationMaster' => [
            'route' => '/api/v1/master/get-qualifications',
            'method' => 'GET',
        ],
        'getIndustryMaster' => [
            'route' => '/api/v1/master/get-industries',
            'method' => 'GET',
        ],
        'getSolarDetails' => [
            'route' => '/api/v1/master/get-solar-loan-type',
            'method' => 'GET',
        ],
        'generateDocument' => [
            'route' => '/api/v2/<case_id>/generate/document',
            'method' => 'POST',
        ],
        'signRequestMergeDocument' => [
            'route' => '/api/v2/document/esign/raise-esign-with-merge',
            'method' => 'POST',
        ],
        'generateNACHMandate' => [
            'route' => '/api/v2/cases/nach/<case_id>/generate-mandate',
            'method' => 'POST',
        ],
        'getApplicantBankDetails' => [
            'route' => '/api/v1/cases/<case_id>/applicant-bank-details',
            'method' => 'GET',
        ],
        'masterDocumentAPI' => [
            'route' => '/api/v1/cases/<case_id>/document-list/application',
            'method' => 'GET',
        ],
        'getFormFields' => [
            'route' => '/api/v2/<case_id>/document/form-fields',
            'method' => 'GET',
        ],
        'getListOfESign' => [
            'route' => '/api/v2/<case_id>/esign-signatories',
            'method' => 'GET',
        ],
        'getDocumentId' => [
            'route' => '/api/v1/cases/<case_id>/application-documents/<type_of_doc>',
            'method' => 'GET',
        ],
    ],
    'headers' => [
        'Authorization' => 'Basic '.base64_encode(_env('HOMEVILLE_CLIENT_ID').':'._env('HOMEVILLE_CLIENT_SECRET')),
        'content-type' => 'application/json'
    ]
];