Versions in this module Expand all Collapse all v0 v0.2.1 Jul 16, 2026 Changes in this version + const MaxPerPage + const Version + type AccountListParams struct + CurrencyCode string + Status string + type AccountsService struct + func (s *AccountsService) Get(ctx context.Context, id string) (*Response, error) + func (s *AccountsService) GetTransaction(ctx context.Context, accountID, transactionID string) (*Response, error) + func (s *AccountsService) List(ctx context.Context, params AccountListParams) (*Page, error) + func (s *AccountsService) ListTransactions(ctx context.Context, accountID string, params TransactionListParams) (*Page, error) + type Attributes map[string]any + type BeneficiariesService struct + func (s *BeneficiariesService) Get(ctx context.Context, id string) (*Response, error) + func (s *BeneficiariesService) List(ctx context.Context, params ListParams) (*Page, error) + type CheckoutSessionsService struct + func (s *CheckoutSessionsService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *CheckoutSessionsService) Get(ctx context.Context, id string) (*Response, error) + type Client struct + Accounts *AccountsService + Beneficiaries *BeneficiariesService + CheckoutSessions *CheckoutSessionsService + Customers *CustomersService + Entity *EntityService + Invoices *InvoicesService + PaymentLinks *PaymentLinksService + TransferDrafts *TransferDraftsService + WebhookEndpoints *WebhookEndpointsService + func New(opts ...Option) (*Client, error) + func (c *Client) Request(ctx context.Context, method, path string, params url.Values, body any) (*Response, error) + type ConfigurationError struct + Message string + func (e *ConfigurationError) Error() string + type ConnectionError struct + Message string + func (e *ConnectionError) Error() string + type CustomerListParams struct + Query string + type CustomersService struct + func (s *CustomersService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *CustomersService) Delete(ctx context.Context, id string) (*Response, error) + func (s *CustomersService) Get(ctx context.Context, id string) (*Response, error) + func (s *CustomersService) List(ctx context.Context, params CustomerListParams) (*Page, error) + func (s *CustomersService) Update(ctx context.Context, id string, attributes Attributes) (*Response, error) + type EntityService struct + func (s *EntityService) Get(ctx context.Context) (*Response, error) + type Error struct + Body map[string]any + Kind string + Message string + Param string + RequestID string + RetryAfter int + Status int + Type string + func (e *Error) Error() string + type InvoiceListParams struct + CustomerID string + Status string + type InvoicesService struct + func (s *InvoicesService) Cancel(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *InvoicesService) CreatePaymentLink(ctx context.Context, invoiceID, accountID string) (*Response, error) + func (s *InvoicesService) CreditNote(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) Delete(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) Get(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) List(ctx context.Context, params InvoiceListParams) (*Page, error) + func (s *InvoicesService) MarkAsPaid(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) Send(ctx context.Context, id string) (*Response, error) + func (s *InvoicesService) Update(ctx context.Context, id string, attributes Attributes) (*Response, error) + type ListParams struct + Cursor string + Limit int + type Option func(*Client) + func WithAPIKey(key string) Option + func WithAPIVersion(v string) Option + func WithBaseURL(u string) Option + func WithHTTPClient(h *http.Client) Option + type Page struct + Data []map[string]any + HasMore bool + NextCursor string + Response *Response + func (p *Page) Next(ctx context.Context) (*Page, error) + type PaymentLinkListParams struct + LinkType string + Status string + type PaymentLinksService struct + func (s *PaymentLinksService) Cancel(ctx context.Context, id string) (*Response, error) + func (s *PaymentLinksService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *PaymentLinksService) Get(ctx context.Context, id string) (*Response, error) + func (s *PaymentLinksService) List(ctx context.Context, params PaymentLinkListParams) (*Page, error) + type Response struct + Body map[string]any + Raw []byte + RequestID string + Status int + type TransactionListParams struct + Operation string + PostedAfter string + PostedBefore string + type TransferDraftsService struct + func (s *TransferDraftsService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *TransferDraftsService) Get(ctx context.Context, id string) (*Response, error) + type WebhookEndpointsService struct + func (s *WebhookEndpointsService) Create(ctx context.Context, attributes Attributes) (*Response, error) + func (s *WebhookEndpointsService) Delete(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) Disable(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) Enable(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) Get(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) List(ctx context.Context, params ListParams) (*Page, error) + func (s *WebhookEndpointsService) RegenerateSecret(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) Test(ctx context.Context, id string) (*Response, error) + func (s *WebhookEndpointsService) Update(ctx context.Context, id string, attributes Attributes) (*Response, error)