<?php
/**
 * Created by PhpStorm.
 * User: sunilkhorwal
 * Date: 2021-04-24
 * Time: 18:14
 */

return [
    'base' => _env('AVANSE_URL'),
    'entityID' => 'Avanse',
    'LANGUAGE' => 'EN',
    'ServiceVersion' => '1',
    'Branches' => [
        'AHMEDABAD' => 'AHM',
        'BENGALORE' => 'BAN',
        'CHANDIGARH' => 'CHD',
        'CHENNAI' => 'CHE',
        'COIMBATORE' => 'COI',
        'DELHI' => 'DEL',
        'HEAD OFFICE' => 'HOF',
        'HYDERABAD' => 'HYD',
        'INDORE' => 'IND',
        'JAIPUR' => 'JAI',
        'KOLKATA' => 'KOL',
        'MUMBAI' => 'MUM',
        'NAGPUR' => 'NAG',
        'PUNE' => 'PUN',
        'RAIPUR' => 'RAI',
        'SALEM' => 'SAL',
        'VIJAYAWADA' => 'VIJ',
        'VIZAG' => 'VIZ',
    ],
    'services' => [
        'getSystemDate' => [
            'API' => '/systemDateRest/sysDateService/getSystemDate',
            'Method' => 'GET',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'sysDateService'
        ],
        'createCustomer' => [
            'API' => '/customerRest/customerService/createCustomer',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'createCustomer'
        ],
        'createFinance' => [
            'API' => '/createFinanceRest/finance/createFinance',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'createFinance'
        ],
        'approveMandate' => [
            'API' => '/mandateRest/mandateService/approveMandate',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'approveMandate'
        ],
        'addFinDocument' => [
            'API' => '/documentRest/documentService/addFinDocument',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'addFinDocument'
        ],
        'addDocument' => [
            'API' => '/documentRest/documentService/addDocument',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'addDocument'
        ],
        'addCustomerDocument' => [
            'API' => '/customerRest/customerService/addCustomerDocument',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'addCustomerDocument'
        ],
        'earlySettlement' => [
            'API' => '/finInstructionRest/loanInstructionService/earlySettlement',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'earlySettlement'
        ],
        'manualPayment' => [
            'API' => '/finInstructionRest/loanInstructionService/manualPayment',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'manualPayment'
        ],
        'feePayment' => [
            'API' => '/finInstructionRest/loanInstructionService/feePayment',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'feePayment'
        ],
        'addDisbursementInstructions' => [
            'API' => '/disbursementRest/disbursmentService/addDisbursementInstructions',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'addDisbursementInstructions'
        ],
        'getForeclosureLetter' => [
            'API' => '/statementRest/statementService/getForeclosureLetter',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getForeclosureLetter'
        ],
        'getPaymentLink' => [
            'URL' => _env('AVANSE_PAYMENT_API_Link'),
            'API' => '/AvaRazorPaymtIntegration/source/agentLinkProcessing',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getPaymentLink'
        ],
        'getPaymentStatus' => [
            'URL' => _env('AVANSE_PAYMENT_API_Link'),
            'API' => '/AvaRazorPaymtIntegration/source/getPaymentStatus',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getPaymentStatus'
        ],
        'getDisbursementInstructions' => [
            'API' => '/disbursementRest/disbursmentService/getDisbursementInstructions',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getDisbursementInstructions'
        ],
        'addDisbursementInstructionsTranches' => [
            'API' => '/finInstructionRest/loanInstructionService/addDisbursement',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'addDisbursement'
        ],
        'getFinCustomStatus' => [
            'API' => '/finCustomStatusRest/finCustomStatus/getFinCustomStatus/{finReference}',
            'Method' => 'GET',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getFinCustomStatus'
        ],
        'getFinOverDueDetails' => [
            'API' => '/finOverDueDetailsRest/finOverDueDetails/getFinOverDueDetails',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getFinOverDueDetails'
        ],
        'getStatement' => [
            'API' => '/statementRest/statementService/getStatement',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'getStatement'
        ],
        'searchCustomer' => [
            'API' => '/customerRest/customerService/searchCustomer',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'searchCustomer'
        ],
        'updateFinancials' => [
            'API' => '/updateFinanceRest/finance/updateFinancials',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'updateFinancials'
        ],
        'deleteFinDocument' => [
            'API' => '/documentRest/documentService/deleteFinDocument',
            'Method' => 'POST',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'deleteFinDocument'
        ],
        'customerService' => [
            'API' => '/customerRest/customerService/deleteCustomerDocument',
            'Method' => 'DELETE',
            'Authorization' => _env('AVANSE_AUTH_KEY'),
            'ServiceName' => 'customerService'
        ],
        'callBRE' => [
            'API' => _env('AVANSE_AUTH_BRE_URL'),
            'Method' => 'POST',
            'Authorization' => 'Bearer '._env('AVANSE_AUTH_BRE_KEY'),
            'ServiceName' => 'callBRE'
        ]
    ]
];
