Versions in this module Expand all Collapse all v1 v1.0.0 Aug 6, 2026 Changes in this version + const DefaultBaseURL + const DeferredTaskError + const DeferredTaskInProgress + const DeferredTaskStarted + const DeferredTaskSuccess + const ErrorTypeAuthentication + const ErrorTypeAuthorization + const ErrorTypeDeferred + const ErrorTypeNetwork + const ErrorTypeNotFound + const ErrorTypeRateLimit + const ErrorTypeServer + const ErrorTypeTimeout + const ErrorTypeUnknown + const ErrorTypeValidation + const SandboxBaseURL + const SyncStatusFailed + const SyncStatusNotReady + const SyncStatusSyncReady + const SyncStatusSynced + func IsAuth(err error) bool + func IsNotFound(err error) bool + func IsRateLimit(err error) bool + func IsValidation(err error) bool + func Ptr[T any](v T) *T + type AccountingFieldSelection = shared.AccountingFieldSelection + type Address = shared.Address + type Client struct + Accounting *accounting.Service + AuditLogs *auditlog.Service + Bills *bill.Service + Business *business.Service + Cards *card.Service + Cashbacks *cashback.Service + Departments *department.Service + Limits *limit.Service + Locations *location.Service + Merchants *merchant.Service + Reimbursements *reimbursement.Service + SpendPrograms *spendprogram.Service + Statements *statement.Service + Transactions *transaction.Service + Users *user.Service + Vendors *vendor.Service + Webhooks *webhook.Service + func New(cfg Config) (*Client, error) + func NewWithToken(token string, cfg Config) (*Client, error) + func (c *Client) ExchangeAuthCode(ctx context.Context, code, redirectURI string) error + func (c *Client) RefreshToken(ctx context.Context) error + type Config struct + BaseURL string + ClientID string + ClientSecret string + HTTPTimeout time.Duration + Logger *slog.Logger + MaxRetries int + RetryBaseDelay time.Duration + Scopes []string + type DeferredTaskRef = shared.DeferredTaskRef + type DeferredTaskStatus = shared.DeferredTaskStatus + type Error = shared.Error + func APIError(statusCode int, body []byte, traceID string) *Error + type ErrorType = shared.ErrorType + type ListParams = shared.ListParams + type Money = shared.Money + type Page = shared.Page + type PagedResponse struct + Data []T + Page shared.Page + type PolicyViolation = shared.PolicyViolation + type SyncStatus = shared.SyncStatus