Versions in this module Expand all Collapse all v1 v1.0.1 Sep 16, 2026 Changes in this version type UploadDocumentParams + DocumentTemplate string v1.0.0 Sep 16, 2026 Changes in this version + const PrefixEArchive + const PrefixEDespatch + const PrefixEInvoice + const PrefixEMM + const PrefixESMM + const PrefixGeneral + const Version + func CheckResponse(resp *http.Response) error + func EnsureOK(statusCode int, body []byte, method, rawURL string) error + func ResponseMeta(httpResp *http.Response) (method, rawURL string) + type APIError struct + Body string + Method string + Payload map[string]any + StatusCode int + URL string + func NewAPIError(resp *http.Response) *APIError + func NewAPIErrorFromParts(statusCode int, method, rawURL string, body []byte) *APIError + func (e *APIError) Error() string + func (e *APIError) Forbidden() bool + func (e *APIError) NotFound() bool + func (e *APIError) Temporary() bool + func (e *APIError) Unauthorized() bool + type Client struct + EArchive *earchive.ClientWithResponses + EDespatch *edespatch.ClientWithResponses + EInvoice *einvoice.ClientWithResponses + EMM *emm.ClientWithResponses + ESMM *esmm.ClientWithResponses + General *general.ClientWithResponses + HTTPClient *http.Client + func New(opts ...Option) (*Client, error) + func (c *Client) APIKeyConfigured() bool + func (c *Client) Environment() Environment + func (c *Client) RootURL() string + func (c *Client) UploadEArchive(ctx context.Context, p UploadDocumentParams) (*earchive.PostV1UploadsDocumentResponse, error) + func (c *Client) UploadEInvoice(ctx context.Context, p UploadDocumentParams) (*einvoice.PostV1UploadsDocumentResponse, error) + type Environment string + const EnvProduction + const EnvTest + func (e Environment) RootURL() string + type Option func(*config) + func WithAPIKey(key string) Option + func WithEnvironment(env Environment) Option + func WithHTTPClient(hc *http.Client) Option + func WithMaxRetries(n int) Option + func WithRetryWait(d time.Duration) Option + func WithRootURL(root string) Option + func WithTimeout(d time.Duration) Option + func WithUserAgent(ua string) Option + type UploadDocumentParams struct + AutoSaveCompany *bool + File io.Reader + FileName string + FilePath string + IsDirectSend bool + PreviewType string + ReceiverAlias string + SenderAlias string + SourceApp string