Versions in this module Expand all Collapse all v0 v0.1.1 Nov 11, 2026 Changes in this version + const DefaultWebhookTolerance + const Version + var ErrInvalidWebhook = errors.New("fiskit: invalid webhook") + type Address struct + City string + PostalCode string + Province string + Street string + type AuthorityMessage struct + Code int + Message string + type Client struct + Invoices *InvoicesService + Taxpayers *TaxpayersService + func New(apiKey string, opts ...Option) (*Client, error) + type Error struct + Body []byte + Code string + Message string + Param string + RequestID string + Status int + Type string + func (e *Error) Error() string + type Event struct + Created time.Time + Data struct{ ... } + ID string + Livemode bool + Object string + Type string + func VerifyWebhook(rawBody []byte, header http.Header, secret string) (*Event, error) + func VerifyWebhookAt(rawBody []byte, header http.Header, secret string, now time.Time, ...) (*Event, error) + type Invoice struct + AuthorityErrors []AuthorityMessage + AuthorityObservations []AuthorityMessage + CAE string + CAEDueDate string + ID string + Number *int64 + Object string + PointOfSale int + Raw map[string]any + Status string + VoucherType string + func (i *Invoice) Authorized() bool + func (i *Invoice) Pending() bool + type InvoicesService struct + func (s *InvoicesService) Create(ctx context.Context, body any, idempotencyKey string) (*Invoice, error) + func (s *InvoicesService) Email(ctx context.Context, id, email string) (string, error) + func (s *InvoicesService) PDF(ctx context.Context, id string) ([]byte, error) + func (s *InvoicesService) Retrieve(ctx context.Context, id string) (*Invoice, error) + type Option func(*Client) + func WithBaseURL(url string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithMaxRetries(n int) Option + type Taxpayer struct + Active bool + Address *Address + CUIT int64 + MonotributoCategory *string + Name string + Raw map[string]any + ReceiverVATConditionID int + Type string + VATCondition string + type TaxpayersService struct + func (s *TaxpayersService) Retrieve(ctx context.Context, cuit int64) (*Taxpayer, error)