<?php
declare(strict_types=1);

return [
    ['GET',  '/api/v1/payments',                     'Payments\Controllers\Api\PaymentApiV1Controller@index', ['cors', 'api_auth'], 'payment.view'],
    ['GET',  '/api/v1/payments/{id:\d+}',            'Payments\Controllers\Api\PaymentApiV1Controller@show',  ['cors', 'api_auth'], 'payment.view'],
    ['POST', '/api/v1/payments',                     'Payments\Controllers\Api\PaymentApiV1Controller@store', ['cors', 'api_auth'], 'payment.process_cash'],
    ['POST', '/api/v1/payments/{id:\d+}/void',       'Payments\Controllers\Api\PaymentApiV1Controller@void',  ['cors', 'api_auth'], 'payment.void_receipt'],
];
