Documentation ¶
Index ¶
- func BuildPaginatedURL(baseURL string, limit, page int, sortOrder, startDate, endDate string) (string, error)
- func NewAccount(f *factory.Factory) *account
- func NewAsset(f *factory.Factory) *asset
- func NewLedger(f *factory.Factory) *ledger
- func NewOrganization(f *factory.Factory) *organization
- func NewPortfolio(f *factory.Factory) *portfolio
- func NewProduct(f *factory.Factory) *product
- type APIError
- type Auth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPaginatedURL ¶ added in v1.31.0
func BuildPaginatedURL(baseURL string, limit, page int, sortOrder, startDate, endDate string) (string, error)
BuildPaginatedURL builds a URL with pagination parameters and common filters
func NewAccount ¶ added in v1.29.0
func NewOrganization ¶ added in v1.25.0
func NewPortfolio ¶ added in v1.27.0
func NewProduct ¶ added in v1.28.0
Types ¶
type APIError ¶ added in v1.27.0
type APIError struct { Title string `json:"title"` Code string `json:"code"` Message string `json:"message"` Fields map[string]string `json:"fields,omitempty"` }
APIError struct to represent the error received
type Auth ¶
func (*Auth) AuthenticateWithCredentials ¶
func (r *Auth) AuthenticateWithCredentials( username, password string) (*model.TokenResponse, error)
func (*Auth) ExchangeToken ¶
func (r *Auth) ExchangeToken(code string) (*model.TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.