<?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'], 'transfer.initiate'],
    ['GET',  '/transfers/{id}',                   'Transfers\Controllers\TransferController@show',    ['auth'], 'transfer.view'],
    ['POST', '/transfers/{id}/pay',               'Transfers\Controllers\TransferController@pay',     ['auth'], 'payment.collect'],
    ['POST', '/transfers/{id}/approve',           'Transfers\Controllers\TransferController@approve', ['auth'], 'transfer.approve'],
    ['POST', '/transfers/{id}/reject',            'Transfers\Controllers\TransferController@reject',  ['auth'], 'transfer.approve'],
    ['POST', '/transfers/{id}/complete',          'Transfers\Controllers\TransferController@complete',['auth'], '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'],
];