Documentation ¶
Overview ¶
Package handlers contains the http handlers which receive requests to be processed by the API.
Index ¶
- func CreatePayableResourceHandler(svc dao.Service) http.Handler
- func HandleGetPayableResource(w http.ResponseWriter, req *http.Request)
- func HandleGetPaymentDetails(w http.ResponseWriter, req *http.Request)
- func HandleGetPenalties(w http.ResponseWriter, req *http.Request)
- func HandleHealthCheckFinanceSystem(w http.ResponseWriter, r *http.Request)
- func PayResourceHandler(svc *service.PayableResourceService, e5Client *e5.Client) http.Handler
- func Register(mainRouter *mux.Router, cfg *config.Config, svc dao.Service)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePayableResourceHandler ¶
CreatePayableResourceHandler takes a http requests and creates a new payable resource
func HandleGetPayableResource ¶
func HandleGetPayableResource(w http.ResponseWriter, req *http.Request)
HandleGetPayableResource retrieves the payable resource from request context
func HandleGetPaymentDetails ¶
func HandleGetPaymentDetails(w http.ResponseWriter, req *http.Request)
HandleGetPaymentDetails retrieves costs for a supplied company number and reference.
func HandleGetPenalties ¶
func HandleGetPenalties(w http.ResponseWriter, req *http.Request)
HandleGetPenalties retrieves the penalty details for the supplied company number from e5
func HandleHealthCheckFinanceSystem ¶
func HandleHealthCheckFinanceSystem(w http.ResponseWriter, r *http.Request)
HandleHealthCheckFinanceSystem checks whether the e5 system is available to take requests
func PayResourceHandler ¶
PayResourceHandler will update the resource to mark it as paid and also tell the finance system that the transaction(s) associated with it are paid.
Types ¶
This section is empty.