api

package
v1.119.0-renovate-lock... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	// contains filtered or unexported fields
}

func NewApiClient

func NewApiClient(httpClient HTTPClient, siriusUrl string, backendUrl string) (*ApiClient, error)

func (*ApiClient) AddFeeReduction

func (c *ApiClient) AddFeeReduction(ctx Context, clientId int, feeType string, startYear string, lengthOfAward string, dateReceived string, notes string) error

func (*ApiClient) AddManualInvoice

func (c *ApiClient) AddManualInvoice(ctx Context, clientId int, invoiceType string, amount *string, raisedDate *string, raisedYear *string, startDate *string, endDate *string, supervisionLevel *string) error

func (*ApiClient) AdjustInvoice

func (c *ApiClient) AdjustInvoice(ctx Context, clientId int, supervisionBillingTeamId int, invoiceId int, adjustmentType string, notes string, amount string) error

func (*ApiClient) CancelFeeReduction

func (c *ApiClient) CancelFeeReduction(ctx Context, clientId int, feeReductionId int, cancellationReason string) error

func (*ApiClient) CreatePendingInvoiceAdjustmentTask

func (c *ApiClient) CreatePendingInvoiceAdjustmentTask(ctx Context, clientId int, supervisionBillingTeamId int, invoiceRef string, adjustmentType string) error

func (*ApiClient) GetAccountInformation

func (c *ApiClient) GetAccountInformation(ctx Context, ClientId int) (shared.AccountInformation, error)

func (*ApiClient) GetBillingHistory

func (c *ApiClient) GetBillingHistory(ctx Context, clientId int) ([]shared.BillingHistory, error)

func (*ApiClient) GetCurrentUserDetails

func (c *ApiClient) GetCurrentUserDetails(ctx Context) (shared.Assignee, error)

func (*ApiClient) GetFeeReductions

func (c *ApiClient) GetFeeReductions(ctx Context, clientId int) (shared.FeeReductions, error)

func (*ApiClient) GetInvoiceAdjustments

func (c *ApiClient) GetInvoiceAdjustments(ctx Context, clientId int) (shared.InvoiceAdjustments, error)

func (*ApiClient) GetInvoices

func (c *ApiClient) GetInvoices(ctx Context, clientId int) (shared.Invoices, error)

func (*ApiClient) GetPermittedAdjustments

func (c *ApiClient) GetPermittedAdjustments(ctx Context, clientId int, invoiceId int) ([]shared.AdjustmentType, error)

func (*ApiClient) GetPersonDetails

func (c *ApiClient) GetPersonDetails(ctx Context, ClientId int) (shared.Person, error)

func (*ApiClient) GetUser

func (c *ApiClient) GetUser(ctx Context, userId int) (shared.Assignee, error)

func (*ApiClient) SubmitDirectDebit added in v1.116.0

func (c *ApiClient) SubmitDirectDebit(accountHolder string, accountName string, sortCode string, accountNumber string) error

func (*ApiClient) UpdatePendingInvoiceAdjustment

func (c *ApiClient) UpdatePendingInvoiceAdjustment(ctx Context, clientId int, ledgerId int, status string) error

type Caches

type Caches struct {
	// contains filtered or unexported fields
}

type ClientError

type ClientError string
const ErrUnauthorized ClientError = "unauthorized"

func (ClientError) Error

func (e ClientError) Error() string

type Context

type Context struct {
	Context   context.Context
	Cookies   []*http.Cookie
	XSRFToken string
	ClientId  int
}

func (Context) With

func (ctx Context) With(c context.Context) Context

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type StatusError

type StatusError struct {
	Code   int    `json:"code"`
	URL    string `json:"url"`
	Method string `json:"method"`
}

func (StatusError) Data

func (e StatusError) Data() interface{}

func (StatusError) Error

func (e StatusError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL