<?php

return [
    'host' => _env('PRD_ONEFIN_HOST'),
    'apis' => [
        'createLoan' => [
            'route' => '/api/v1/client/loan/',
            'method' => 'POST'
        ],
        'onBoardChannelEntity' => [
            'route' => '/api/v2/call/api/onboard-channel-entity/',
            'method' => 'POST'
        ],
        'postLoanRepayment' => [
            'route' => '/api/v1/client/loan/<lead_id>/repayment/',
            'method' => 'POST'
        ],
        'createMandate' => [
            'route' => '/api/v1/nach/mandate/create/',
            'method' => 'POST'
        ],
        'loanDisbursal' => [
            'route' => '/api/v1/client/loan/<lead_id>/disburse/',
            'method' => 'POST'
        ],
        'getRepaymentSchedule' => [
            'route' => '/api/v1/client/loan/<lead_id>/repayment/',
            'method' => 'GET'
        ]
    ],
    'headers' => [
        //'Authorization' => "Basic ".base64_encode(_env('ONEFIN_USR').':'._env('ONEFIN_PASS')),
        'Authorization' => "Basic "._env('PRD_ONEFIN_USRPASS'),
        'Content-Type' => 'application/json'
    ]
];