Documentation ¶
Index ¶
- Variables
- type Dispatch
- type FileStorage
- type HTTPClient
- type Service
- func (s *Service) AddFeeReduction(ctx context.Context, clientId int, data shared.AddFeeReduction) error
- func (s *Service) AddInvoiceAdjustment(ctx context.Context, clientId int, invoiceId int, ...) (*shared.InvoiceReference, error)
- func (s *Service) AddManualInvoice(ctx context.Context, clientId int, data shared.AddManualInvoice) error
- func (s *Service) CancelFeeReduction(ctx context.Context, id int, cancelledFeeReduction shared.CancelFeeReduction) error
- func (s *Service) GetAccountInformation(ctx context.Context, id int) (*shared.AccountInformation, error)
- func (s *Service) GetBillingHistory(ctx context.Context, clientID int) ([]shared.BillingHistory, error)
- func (s *Service) GetFeeReductions(ctx context.Context, id int) (*shared.FeeReductions, error)
- func (s *Service) GetInvoiceAdjustments(ctx context.Context, clientId int) (*shared.InvoiceAdjustments, error)
- func (s *Service) GetInvoices(ctx context.Context, clientId int) (*shared.Invoices, error)
- func (s *Service) GetPermittedAdjustments(ctx context.Context, invoiceId int) ([]shared.AdjustmentType, error)
- func (s *Service) ProcessFinanceAdminUpload(ctx context.Context, detail shared.FinanceAdminUploadEvent) error
- func (s *Service) ReapplyCredit(ctx context.Context, clientID int32) error
- func (s *Service) UpdateClient(ctx context.Context, id int, courtRef string) error
- func (s *Service) UpdatePendingInvoiceAdjustment(ctx context.Context, clientId int, adjustmentId int, ...) error
- type TX
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PaymentTypes = []string{"CARD PAYMENT", "BACS TRANSFER"} AllocatedStatuses = []string{"ALLOCATED", "APPROVED", "CONFIRMED"} // TODO: PFS-107 & PFS-110 to investigate )
Functions ¶
This section is empty.
Types ¶
type Dispatch ¶
type Dispatch interface { CreditOnAccount(ctx context.Context, event event.CreditOnAccount) error FinanceAdminUploadProcessed(ctx context.Context, event event.FinanceAdminUploadProcessed) error }
type FileStorage ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(httpClient HTTPClient, conn *pgxpool.Pool, dispatch Dispatch, filestorage FileStorage) Service
func (*Service) AddFeeReduction ¶
func (*Service) AddInvoiceAdjustment ¶
func (s *Service) AddInvoiceAdjustment(ctx context.Context, clientId int, invoiceId int, ledgerEntry *shared.AddInvoiceAdjustmentRequest) (*shared.InvoiceReference, error)
func (*Service) AddManualInvoice ¶
func (*Service) CancelFeeReduction ¶
func (*Service) GetAccountInformation ¶
func (*Service) GetBillingHistory ¶
func (*Service) GetFeeReductions ¶
func (*Service) GetInvoiceAdjustments ¶
func (*Service) GetInvoices ¶
func (*Service) GetPermittedAdjustments ¶
func (*Service) ProcessFinanceAdminUpload ¶
func (*Service) ReapplyCredit ¶
func (*Service) UpdateClient ¶
func (*Service) UpdatePendingInvoiceAdjustment ¶
Source Files ¶
- add_fee_reduction.go
- add_invoice_adjustment.go
- add_manual_invoice.go
- billing_history.go
- cancel_fee_reduction.go
- fee_reductions.go
- finance_clients.go
- get_permitted_adjustments.go
- invoice_adjustments.go
- invoices.go
- ledger_entries.go
- process_finance_admin_upload.go
- reapply.go
- service.go
- update_pending_invoice_adjustment.go
Click to show internal directories.
Click to hide internal directories.