<?php
declare(strict_types=1);

return [
    ['GET',  '/payments',                    'Payments\Controllers\PaymentController@index',         ['auth'], 'payment.view'],
    ['GET',  '/payments/daily-report',       'Payments\Controllers\PaymentController@dailyReport',   ['auth'], 'payment.view'],
    ['GET',  '/payments/process/{memberId}', 'Payments\Controllers\PaymentController@process',       ['auth'], 'payment.create'],
    ['POST', '/payments/process/{memberId}', 'Payments\Controllers\PaymentController@store',         ['auth'], 'payment.create'],
    ['GET',  '/payments/member/{memberId}',  'Payments\Controllers\PaymentController@memberHistory', ['auth'], 'payment.view'],
    ['GET',  '/payments/{id}',               'Payments\Controllers\PaymentController@show',          ['auth'], 'payment.view'],
    ['POST', '/payments/{id}/void',          'Payments\Controllers\PaymentController@void',          ['auth'], 'payment.void'],
];