Documentation ¶
Index ¶
- func IsHxRequest(req *http.Request) bool
- func New(logger *slog.Logger, client ApiClient, templates map[string]*template.Template, ...) http.Handler
- type AdjustInvoiceFormHandler
- type AdjustInvoiceVars
- type ApiClient
- type AppVars
- type BillingHistory
- type BillingHistoryHandler
- type BillingHistoryVars
- type CancelFeeReduction
- type CancelFeeReductionHandler
- type EnvironmentVars
- type ErrorVars
- type FeeReduction
- type FeeReductions
- type FeeReductionsHandler
- type FeeReductionsTab
- type FinanceClient
- type Handler
- type HeaderData
- type Invoice
- type InvoiceAdjustmentForm
- type Invoices
- type InvoicesHandler
- type InvoicesVars
- type LedgerAllocation
- type LedgerAllocations
- type PageData
- type PendingInvoiceAdjustment
- type PendingInvoiceAdjustments
- type PendingInvoiceAdjustmentsHandler
- type PendingInvoiceAdjustmentsTab
- type StatusError
- type SubmitCancelFeeReductionsHandler
- type SubmitFeeReductionsHandler
- type SubmitInvoiceAdjustmentHandler
- type SubmitManualInvoiceHandler
- type SubmitUpdatePendingInvoiceAdjustmentHandler
- type SupervisionLevel
- type SupervisionLevels
- type Tab
- type Template
- type UpdateFeeReductionHandler
- type UpdateFeeReductions
- type UpdateManualInvoice
- type UpdateManualInvoiceHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHxRequest ¶
Types ¶
type AdjustInvoiceFormHandler ¶
type AdjustInvoiceFormHandler struct {
// contains filtered or unexported fields
}
type AdjustInvoiceVars ¶
type AdjustInvoiceVars struct { AdjustmentTypes *[]shared.AdjustmentType ClientId string InvoiceId string AppVars }
type ApiClient ¶
type ApiClient interface { GetCurrentUserDetails(api.Context) (shared.Assignee, error) GetPersonDetails(api.Context, int) (shared.Person, error) GetFeeReductions(api.Context, int) (shared.FeeReductions, error) GetInvoices(api.Context, int) (shared.Invoices, error) GetPermittedAdjustments(api.Context, int, int) ([]shared.AdjustmentType, error) AdjustInvoice(api.Context, int, int, int, string, string, string) error GetAccountInformation(api.Context, int) (shared.AccountInformation, error) GetInvoiceAdjustments(api.Context, int) (shared.InvoiceAdjustments, error) AddFeeReduction(api.Context, int, string, string, string, string, string) error CancelFeeReduction(api.Context, int, int, string) error UpdatePendingInvoiceAdjustment(api.Context, int, int, string) error AddManualInvoice(api.Context, int, string, *string, *string, *string, *string, *string, *string) error GetBillingHistory(api.Context, int) ([]shared.BillingHistory, error) GetUser(api.Context, int) (shared.Assignee, error) }
type AppVars ¶
type AppVars struct { Path string XSRFToken string Tabs []Tab EnvironmentVars EnvironmentVars Errors apierror.ValidationErrors Error string }
func NewAppVars ¶
func NewAppVars(r *http.Request, envVars EnvironmentVars) AppVars
type BillingHistory ¶
type BillingHistoryHandler ¶
type BillingHistoryHandler struct {
// contains filtered or unexported fields
}
type BillingHistoryVars ¶
type BillingHistoryVars struct { BillingHistory []BillingHistory AppVars }
type CancelFeeReduction ¶
type CancelFeeReductionHandler ¶
type CancelFeeReductionHandler struct {
// contains filtered or unexported fields
}
type EnvironmentVars ¶
type EnvironmentVars struct { Port string WebDir string SiriusURL string SiriusPublicURL string Prefix string BackendUrl string SupervisionBillingTeam int }
func NewEnvironmentVars ¶
func NewEnvironmentVars() (EnvironmentVars, error)
type ErrorVars ¶
type ErrorVars struct { Code int Error string EnvironmentVars }
type FeeReduction ¶
type FeeReductions ¶
type FeeReductions []FeeReduction
type FeeReductionsHandler ¶
type FeeReductionsHandler struct {
// contains filtered or unexported fields
}
type FeeReductionsTab ¶
type FeeReductionsTab struct { FeeReductions FeeReductions ClientId string AppVars }
type FinanceClient ¶
type HeaderData ¶
type HeaderData struct { MyDetails shared.Assignee FinanceClient FinanceClient }
type Invoice ¶
type Invoice struct { Id int Ref string Status string Amount string RaisedDate string Received string OutstandingBalance string Ledgers LedgerAllocations SupervisionLevels SupervisionLevels ClientId int }
type InvoiceAdjustmentForm ¶
type InvoiceAdjustmentForm struct { AdjustmentType shared.AdjustmentType Notes string Amount string }
type InvoicesHandler ¶
type InvoicesHandler struct {
// contains filtered or unexported fields
}
type InvoicesVars ¶
type LedgerAllocation ¶
type LedgerAllocations ¶
type LedgerAllocations []LedgerAllocation
type PageData ¶
type PageData struct { Data any SuccessMessage string HeaderData }
type PendingInvoiceAdjustments ¶
type PendingInvoiceAdjustments []PendingInvoiceAdjustment
type PendingInvoiceAdjustmentsHandler ¶
type PendingInvoiceAdjustmentsHandler struct {
// contains filtered or unexported fields
}
type PendingInvoiceAdjustmentsTab ¶
type PendingInvoiceAdjustmentsTab struct { PendingInvoiceAdjustments PendingInvoiceAdjustments ClientId string AppVars }
type StatusError ¶
type StatusError int
func (StatusError) Code ¶
func (e StatusError) Code() int
func (StatusError) Error ¶
func (e StatusError) Error() string
type SubmitCancelFeeReductionsHandler ¶
type SubmitCancelFeeReductionsHandler struct {
// contains filtered or unexported fields
}
type SubmitFeeReductionsHandler ¶
type SubmitFeeReductionsHandler struct {
// contains filtered or unexported fields
}
type SubmitInvoiceAdjustmentHandler ¶
type SubmitInvoiceAdjustmentHandler struct {
// contains filtered or unexported fields
}
type SubmitManualInvoiceHandler ¶
type SubmitManualInvoiceHandler struct {
// contains filtered or unexported fields
}
type SubmitUpdatePendingInvoiceAdjustmentHandler ¶
type SubmitUpdatePendingInvoiceAdjustmentHandler struct {
// contains filtered or unexported fields
}
type SupervisionLevel ¶
type SupervisionLevels ¶
type SupervisionLevels []SupervisionLevel
type UpdateFeeReductionHandler ¶
type UpdateFeeReductionHandler struct {
// contains filtered or unexported fields
}
type UpdateFeeReductions ¶
type UpdateManualInvoice ¶
type UpdateManualInvoice struct { ClientId string InvoiceTypes *[]shared.InvoiceType AppVars }
type UpdateManualInvoiceHandler ¶
type UpdateManualInvoiceHandler struct {
// contains filtered or unexported fields
}
Source Files ¶
- adjust_invoice_form.go
- app_vars.go
- billing_history.go
- cancel_fee_reduction.go
- environment_vars.go
- fee_reductions.go
- health_check.go
- invoices.go
- pending_invoice_adjustments.go
- route.go
- server.go
- submit_cancel_fee_reduction.go
- submit_fee_reduction.go
- submit_invoice_adjustment.go
- submit_manual_invoice.go
- submit_update_pending_invoice_adjustment.go
- update_fee_reduction.go
- update_manual_invoice.go
- wrap_handler.go
Click to show internal directories.
Click to hide internal directories.