Documentation ¶
Index ¶
- type Account
- type AddFeeReductionParams
- type AddInvoiceParams
- type AddInvoiceRangeParams
- type Assignee
- type BillingPeriod
- type CancelFeeReductionParams
- type Case
- type CostCentre
- type CountOverlappingFeeReductionParams
- type Counter
- type CreateLedgerAllocationParams
- type CreateLedgerForAdjustmentParams
- type CreateLedgerForCourtRefParams
- type CreateLedgerParams
- type CreatePendingInvoiceAdjustmentParams
- type DBTX
- type FeeReduction
- type FinanceClient
- type GetAccountInformationRow
- type GetAdjustmentForDecisionRow
- type GetCreditBalanceAndOldestOpenInvoiceRow
- type GetFeeReductionEventsRow
- type GetFeeReductionForDateParams
- type GetFeeReductionForDateRow
- type GetFeeReductionsRow
- type GetGeneratedInvoicesRow
- type GetInvoiceAdjustmentsRow
- type GetInvoiceBalanceDetailsRow
- type GetInvoiceBalancesForFeeReductionRangeRow
- type GetInvoicesForCourtRefRow
- type GetInvoicesRow
- type GetLedgerAllocationsForClientRow
- type GetLedgerAllocationsRow
- type GetLedgerForPaymentParams
- type GetPendingInvoiceAdjustmentsRow
- type GetSupervisionLevelsRow
- type Invoice
- type InvoiceAdjustment
- type InvoiceEmailStatus
- type InvoiceFeeRange
- type Ledger
- type LedgerAllocation
- type Person
- type Property
- type Queries
- func (q *Queries) AddFeeReduction(ctx context.Context, arg AddFeeReductionParams) (FeeReduction, error)
- func (q *Queries) AddInvoice(ctx context.Context, arg AddInvoiceParams) (Invoice, error)
- func (q *Queries) AddInvoiceRange(ctx context.Context, arg AddInvoiceRangeParams) error
- func (q *Queries) CancelFeeReduction(ctx context.Context, arg CancelFeeReductionParams) (FeeReduction, error)
- func (q *Queries) CountOverlappingFeeReduction(ctx context.Context, arg CountOverlappingFeeReductionParams) (int64, error)
- func (q *Queries) CreateLedger(ctx context.Context, arg CreateLedgerParams) (int32, error)
- func (q *Queries) CreateLedgerAllocation(ctx context.Context, arg CreateLedgerAllocationParams) error
- func (q *Queries) CreateLedgerForAdjustment(ctx context.Context, arg CreateLedgerForAdjustmentParams) (int32, error)
- func (q *Queries) CreateLedgerForCourtRef(ctx context.Context, arg CreateLedgerForCourtRefParams) (int32, error)
- func (q *Queries) CreatePendingInvoiceAdjustment(ctx context.Context, arg CreatePendingInvoiceAdjustmentParams) (string, error)
- func (q *Queries) GetAccountInformation(ctx context.Context, clientID int32) (GetAccountInformationRow, error)
- func (q *Queries) GetAdjustmentForDecision(ctx context.Context, id int32) (GetAdjustmentForDecisionRow, error)
- func (q *Queries) GetCreditBalanceAndOldestOpenInvoice(ctx context.Context, clientID int32) (GetCreditBalanceAndOldestOpenInvoiceRow, error)
- func (q *Queries) GetFeeReductionEvents(ctx context.Context, clientID int32) ([]GetFeeReductionEventsRow, error)
- func (q *Queries) GetFeeReductionForDate(ctx context.Context, arg GetFeeReductionForDateParams) (GetFeeReductionForDateRow, error)
- func (q *Queries) GetFeeReductions(ctx context.Context, clientID int32) ([]GetFeeReductionsRow, error)
- func (q *Queries) GetGeneratedInvoices(ctx context.Context, clientID int32) ([]GetGeneratedInvoicesRow, error)
- func (q *Queries) GetInvoiceAdjustments(ctx context.Context, clientID int32) ([]GetInvoiceAdjustmentsRow, error)
- func (q *Queries) GetInvoiceBalanceDetails(ctx context.Context, id int32) (GetInvoiceBalanceDetailsRow, error)
- func (q *Queries) GetInvoiceBalancesForFeeReductionRange(ctx context.Context, id int32) ([]GetInvoiceBalancesForFeeReductionRangeRow, error)
- func (q *Queries) GetInvoiceCounter(ctx context.Context, key string) (string, error)
- func (q *Queries) GetInvoices(ctx context.Context, clientID int32) ([]GetInvoicesRow, error)
- func (q *Queries) GetInvoicesForCourtRef(ctx context.Context, courtRef pgtype.Text) ([]GetInvoicesForCourtRefRow, error)
- func (q *Queries) GetLedgerAllocations(ctx context.Context, dollar_1 []int32) ([]GetLedgerAllocationsRow, error)
- func (q *Queries) GetLedgerAllocationsForClient(ctx context.Context, clientID int32) ([]GetLedgerAllocationsForClientRow, error)
- func (q *Queries) GetLedgerForPayment(ctx context.Context, arg GetLedgerForPaymentParams) (int32, error)
- func (q *Queries) GetPendingInvoiceAdjustments(ctx context.Context, clientID int32) ([]GetPendingInvoiceAdjustmentsRow, error)
- func (q *Queries) GetSupervisionLevels(ctx context.Context, dollar_1 []int32) ([]GetSupervisionLevelsRow, error)
- func (q *Queries) SetAdjustmentDecision(ctx context.Context, arg SetAdjustmentDecisionParams) (SetAdjustmentDecisionRow, error)
- func (q *Queries) UpdateClient(ctx context.Context, arg UpdateClientParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Rate
- type Report
- type SetAdjustmentDecisionParams
- type SetAdjustmentDecisionRow
- type TransactionType
- type Tx
- type UpdateClientParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddFeeReductionParams ¶
type AddInvoiceParams ¶
type AddInvoiceRangeParams ¶
type BillingPeriod ¶
type CostCentre ¶
type CountOverlappingFeeReductionParams ¶
type CountOverlappingFeeReductionParams struct { ClientID int32 Overlaps interface{} Overlaps_2 interface{} }
type CreateLedgerParams ¶
type FeeReduction ¶
type FeeReduction struct { ID int32 FinanceClientID pgtype.Int4 // (DC2Type:refdata) Type string // (DC2Type:refdata) Evidencetype pgtype.Text Startdate pgtype.Date Enddate pgtype.Date Notes string Deleted bool Datereceived pgtype.Date CreatedAt pgtype.Timestamp CreatedBy pgtype.Int4 CancelledAt pgtype.Timestamp CancelledBy pgtype.Int4 CancellationReason pgtype.Text }
type FinanceClient ¶
type GetFeeReductionsRow ¶
type GetGeneratedInvoicesRow ¶
type GetInvoicesRow ¶
type GetLedgerAllocationsRow ¶
type GetSupervisionLevelsRow ¶
type Invoice ¶
type Invoice struct { ID int32 PersonID pgtype.Int4 FinanceClientID pgtype.Int4 Feetype string Reference string Startdate pgtype.Date Enddate pgtype.Date // (DC2Type:money) Amount int32 // (DC2Type:refdata) Supervisionlevel pgtype.Text Confirmeddate pgtype.Date Batchnumber pgtype.Int4 Raiseddate pgtype.Date Source pgtype.Text Scheduledfn14date pgtype.Date // (DC2Type:money) Cacheddebtamount pgtype.Int4 CreatedAt pgtype.Timestamp CreatedBy pgtype.Int4 }
type InvoiceAdjustment ¶
type InvoiceEmailStatus ¶
type InvoiceFeeRange ¶
type Ledger ¶
type Ledger struct { ID int32 Reference string Datetime pgtype.Timestamp Method string // (DC2Type:money) Amount int32 Notes pgtype.Text // (DC2Type:refdata) Type string // (DC2Type:refdata) Status string FinanceClientID pgtype.Int4 ParentID pgtype.Int4 FeeReductionID pgtype.Int4 Confirmeddate pgtype.Date Bankdate pgtype.Date Batchnumber pgtype.Int4 // (DC2Type:refdata) Bankaccount pgtype.Text Source pgtype.Text Line pgtype.Int4 CreatedAt pgtype.Timestamp CreatedBy pgtype.Int4 }
type LedgerAllocation ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddFeeReduction ¶
func (q *Queries) AddFeeReduction(ctx context.Context, arg AddFeeReductionParams) (FeeReduction, error)
func (*Queries) AddInvoice ¶
func (*Queries) AddInvoiceRange ¶
func (q *Queries) AddInvoiceRange(ctx context.Context, arg AddInvoiceRangeParams) error
func (*Queries) CancelFeeReduction ¶
func (q *Queries) CancelFeeReduction(ctx context.Context, arg CancelFeeReductionParams) (FeeReduction, error)
func (*Queries) CountOverlappingFeeReduction ¶
func (*Queries) CreateLedger ¶
func (*Queries) CreateLedgerAllocation ¶
func (q *Queries) CreateLedgerAllocation(ctx context.Context, arg CreateLedgerAllocationParams) error
func (*Queries) CreateLedgerForAdjustment ¶
func (*Queries) CreateLedgerForCourtRef ¶
func (*Queries) CreatePendingInvoiceAdjustment ¶
func (*Queries) GetAccountInformation ¶
func (*Queries) GetAdjustmentForDecision ¶
func (*Queries) GetCreditBalanceAndOldestOpenInvoice ¶
func (*Queries) GetFeeReductionEvents ¶
func (*Queries) GetFeeReductionForDate ¶
func (q *Queries) GetFeeReductionForDate(ctx context.Context, arg GetFeeReductionForDateParams) (GetFeeReductionForDateRow, error)
func (*Queries) GetFeeReductions ¶
func (*Queries) GetGeneratedInvoices ¶
func (*Queries) GetInvoiceAdjustments ¶
func (*Queries) GetInvoiceBalanceDetails ¶
func (*Queries) GetInvoiceBalancesForFeeReductionRange ¶
func (*Queries) GetInvoiceCounter ¶
func (*Queries) GetInvoices ¶
func (*Queries) GetInvoicesForCourtRef ¶
func (*Queries) GetLedgerAllocations ¶
func (*Queries) GetLedgerAllocationsForClient ¶
func (*Queries) GetLedgerForPayment ¶
func (*Queries) GetPendingInvoiceAdjustments ¶
func (*Queries) GetSupervisionLevels ¶
func (*Queries) SetAdjustmentDecision ¶
func (q *Queries) SetAdjustmentDecision(ctx context.Context, arg SetAdjustmentDecisionParams) (SetAdjustmentDecisionRow, error)
func (*Queries) UpdateClient ¶
func (q *Queries) UpdateClient(ctx context.Context, arg UpdateClientParams) error
type TransactionType ¶
type Tx ¶ added in v1.135.0
type Tx struct { *Queries // contains filtered or unexported fields }
Tx is a wrapper around pgx.Tx that adds the transaction to the Queries, providing a method to commit
type UpdateClientParams ¶
Click to show internal directories.
Click to hide internal directories.