<?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',
        ],
    ],
    'headers' => [
        'Authorization' => 'Basic '.base64_encode(_env('HOMEVILLE_CLIENT_ID').':'._env('HOMEVILLE_CLIENT_SECRET')),
        'content-type' => 'application/json'
    ]
];