<?php
declare(strict_types=1);

return [
    ['GET',  '/transfers',                        'Transfers\Controllers\TransferController@index',   ['auth'], 'transfer.view'],
    ['GET',  '/transfers/create/{memberId}',      'Transfers\Controllers\TransferController@create',  ['auth'], 'transfer.initiate'],
    ['POST', '/transfers/store/{memberId}',       'Transfers\Controllers\TransferController@store',   ['auth', 'csrf'], 'transfer.initiate'],
    ['GET',  '/transfers/{id}',                   'Transfers\Controllers\TransferController@show',    ['auth'], 'transfer.view'],
    ['POST', '/transfers/{id}/pay',               'Transfers\Controllers\TransferController@pay',     ['auth', 'csrf'], 'payment.collect'],
    ['POST', '/transfers/{id}/approve',           'Transfers\Controllers\TransferController@approve', ['auth', 'csrf'], 'transfer.approve'],
    ['POST', '/transfers/{id}/reject',            'Transfers\Controllers\TransferController@reject',  ['auth', 'csrf'], 'transfer.approve'],
    ['POST', '/transfers/{id}/complete',          'Transfers\Controllers\TransferController@complete',['auth', 'csrf'], 'transfer.approve'],
    ['GET',  '/transfers/{id}/fill-form',         'Transfers\Controllers\TransferController@fillForm',['auth'], 'transfer.approve'],
    ['POST', '/transfers/{id}/fill-form',         'Transfers\Controllers\TransferController@saveFillForm',['auth', 'csrf'], 'transfer.approve'],
    ['GET',  '/transfers/preview/{memberId}',     'Transfers\Controllers\TransferController@preview', ['auth'], 'transfer.initiate'],
    ['POST', '/api/transfers/calculate-fee',      'Transfers\Controllers\TransferController@calculateFee', ['auth'], 'transfer.initiate'],
];