InvoiceController
extends Controller
in package
Invoice Controller.
Table of Contents
- $invoiceService : InvoiceService
- __construct() : mixed
- destroy() : Response
- Remove the specified resource from storage.
- fetchStatus() : JsonResponse
- Retrieves the invoice status
- index() : mixed
- Display a listing of the resource.
- show() : InvoiceResource
- Display the specified resource.
- store() : InvoiceResource
- Store a newly created resource in storage.
- update() : InvoiceResource
- Update the specified resource in storage.
- updatePaymentGateway() : JsonResponse
Properties
$invoiceService
protected
InvoiceService
$invoiceService
Methods
__construct()
public
__construct(InvoiceService $invoiceService) : mixed
Parameters
- $invoiceService : InvoiceService
Return values
mixed —destroy()
Remove the specified resource from storage.
public
destroy(int $id) : Response
Parameters
- $id : int
Tags
Return values
Response —fetchStatus()
Retrieves the invoice status
public
fetchStatus(Request $request, int $invoiceId) : JsonResponse
Parameters
- $request : Request
- $invoiceId : int
Return values
JsonResponse —index()
Display a listing of the resource.
public
index() : mixed
Return values
mixed —show()
Display the specified resource.
public
show( $id) : InvoiceResource
Parameters
Return values
InvoiceResource —store()
Store a newly created resource in storage.
public
store(Request $request) : InvoiceResource
Parameters
- $request : Request
Tags
Return values
InvoiceResource —update()
Update the specified resource in storage.
public
update(Request $request, mixed $invoice) : InvoiceResource
Parameters
- $request : Request
- $invoice : mixed
Tags
Return values
InvoiceResource —updatePaymentGateway()
public
updatePaymentGateway(Request $request, int $invoiceId, PaymentGateway $paymentGateway) : JsonResponse
Parameters
- $request : Request
- $invoiceId : int
- $paymentGateway : PaymentGateway