Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶ added in v1.120.0
type FileStorage interface { GetFileByVersion(ctx context.Context, bucketName string, filename string, versionID string) (*s3.GetObjectOutput, error) PutFile(ctx context.Context, bucketName string, fileName string, file io.Reader) (*string, error) FileExists(ctx context.Context, bucketName string, filename string, versionID string) bool }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶ added in v1.120.0
func NewServer(service Service, fileStorage FileStorage, validator *validation.Validate) *Server
func (*Server) AddInvoiceAdjustment ¶
func (*Server) RequestLogger ¶
func (s *Server) RequestLogger(h http.Handler) http.HandlerFunc
type Service ¶
type Service interface { GetAccountInformation(ctx context.Context, id int) (*shared.AccountInformation, error) GetInvoices(ctx context.Context, clientId int) (*shared.Invoices, error) GetPermittedAdjustments(ctx context.Context, invoiceId int) ([]shared.AdjustmentType, error) GetFeeReductions(ctx context.Context, invoiceId int) (*shared.FeeReductions, error) AddInvoiceAdjustment(ctx context.Context, clientId int, invoiceId int, ledgerEntry *shared.AddInvoiceAdjustmentRequest) (*shared.InvoiceReference, error) GetInvoiceAdjustments(ctx context.Context, clientId int) (*shared.InvoiceAdjustments, error) AddFeeReduction(ctx context.Context, clientId int, data shared.AddFeeReduction) error CancelFeeReduction(ctx context.Context, id int, cancelledFeeReduction shared.CancelFeeReduction) error UpdatePendingInvoiceAdjustment(ctx context.Context, clientId int, adjustmentId int, status shared.AdjustmentStatus) error AddManualInvoice(ctx context.Context, clientId int, invoice shared.AddManualInvoice) error GetBillingHistory(ctx context.Context, id int) ([]shared.BillingHistory, error) ReapplyCredit(ctx context.Context, clientID int32) error UpdateClient(ctx context.Context, clientID int, courtRef string) error ProcessFinanceAdminUpload(ctx context.Context, detail shared.FinanceAdminUploadEvent) error }
Source Files ¶
- add_fee_reduction.go
- add_invoice_adjustment.go
- add_manual_invoice.go
- billing_history.go
- cancel_fee_reduction.go
- check_download.go
- download.go
- fee_reductions.go
- finance_clients.go
- handle_events.go
- handler.go
- invoice_adjustments.go
- invoices.go
- permitted_adjustments.go
- server.go
- update_pending_invoice_adjustment.go
Click to show internal directories.
Click to hide internal directories.