Versions in this module Expand all Collapse all v0 v0.2.0 May 8, 2026 Changes in this version + type BillingListParams struct + DocumentNumber string + From string + Page *int + PartnerID string + PartnerName string + PerPage *int + Q string + RangeKey string + Status string + Tags string + To string type Client + func NewInvoiceClient(cfg *config.Config, debug bool) (*Client, error) + func (c *Client) BuildCreateBillingRequest(req *invoicemodel.CreateBillingRequest) (*DryRunOutput, error) + func (c *Client) BuildDeleteBillingRequest(id string) (*DryRunOutput, error) + func (c *Client) BuildUpdateBillingRequest(id string, req *invoicemodel.UpdateBillingRequest) (*DryRunOutput, error) + func (c *Client) CreateBilling(ctx context.Context, req *invoicemodel.CreateBillingRequest) ([]byte, error) + func (c *Client) DeleteBilling(ctx context.Context, id string) error + func (c *Client) GetBilling(ctx context.Context, id string) ([]byte, error) + func (c *Client) GetBillings(ctx context.Context, params BillingListParams) ([]byte, error) + func (c *Client) GetItem(ctx context.Context, id string) ([]byte, error) + func (c *Client) GetItems(ctx context.Context, params ItemListParams) ([]byte, error) + func (c *Client) GetPartner(ctx context.Context, id string) ([]byte, error) + func (c *Client) GetPartnerDepartment(ctx context.Context, partnerID, departmentID string) ([]byte, error) + func (c *Client) GetPartnerDepartments(ctx context.Context, partnerID string, params DepartmentListParams) ([]byte, error) + func (c *Client) GetPartners(ctx context.Context, params PartnerListParams) ([]byte, error) + func (c *Client) UpdateBilling(ctx context.Context, id string, req *invoicemodel.UpdateBillingRequest) ([]byte, error) + type DepartmentListParams struct + Page *int + PerPage *int + type ItemListParams struct + Code string + Name string + Page *int + PerPage *int + type PartnerListParams struct + Code string + Name string + NameKana string + OfficePic string + Page *int + PartnerPic string + PerPage *int v0.1.0 Mar 29, 2026 Changes in this version + func FilterFields(data []byte, fields string) ([]byte, error) + type APIError struct + Errors []model.ErrorDetail + Operation string + RawResponse string + StatusCode int + func ParseErrorResponse(statusCode int, body []byte) *APIError + func (e *APIError) Error() string + type Client struct + func NewClient(cfg *config.Config, debug bool) *Client + func (c *Client) BuildRequest(method, path string, query url.Values, body any) (*DryRunOutput, error) + func (c *Client) CreateJournal(ctx context.Context, req *model.CRUDJournalRequest) ([]byte, error) + func (c *Client) CreateTradePartners(ctx context.Context, req *model.PostTradePartnersRequest) ([]byte, error) + func (c *Client) CreateTransactions(ctx context.Context, req *model.PostTransactionsRequest) ([]byte, error) + func (c *Client) CreateVouchers(ctx context.Context, req *model.PostVouchersRequest) ([]byte, error) + func (c *Client) Delete(ctx context.Context, path string, body any) ([]byte, error) + func (c *Client) DeleteJournal(ctx context.Context, id string) error + func (c *Client) DeleteVouchers(ctx context.Context, req *model.DeleteVouchersRequest) error + func (c *Client) Do(ctx context.Context, method, path string, query url.Values, body any) ([]byte, error) + func (c *Client) Get(ctx context.Context, path string, query url.Values) ([]byte, error) + func (c *Client) GetAccounts(ctx context.Context, available *bool) ([]byte, error) + func (c *Client) GetConnectedAccounts(ctx context.Context) ([]byte, error) + func (c *Client) GetDepartments(ctx context.Context) ([]byte, error) + func (c *Client) GetJournal(ctx context.Context, id string) ([]byte, error) + func (c *Client) GetJournals(ctx context.Context, params JournalListParams) ([]byte, error) + func (c *Client) GetOffice(ctx context.Context) ([]byte, error) + func (c *Client) GetSubAccounts(ctx context.Context, accountID string) ([]byte, error) + func (c *Client) GetTaxes(ctx context.Context, available *bool) ([]byte, error) + func (c *Client) GetTradePartners(ctx context.Context, available *bool) ([]byte, error) + func (c *Client) GetTransitionBS(ctx context.Context, params TransitionParams) ([]byte, error) + func (c *Client) GetTransitionPL(ctx context.Context, params TransitionParams) ([]byte, error) + func (c *Client) GetTrialBalanceBS(ctx context.Context, params TBParams) ([]byte, error) + func (c *Client) GetTrialBalancePL(ctx context.Context, params TBParams) ([]byte, error) + func (c *Client) Post(ctx context.Context, path string, body any) ([]byte, error) + func (c *Client) Put(ctx context.Context, path string, body any) ([]byte, error) + func (c *Client) UpdateJournal(ctx context.Context, id string, req *model.CRUDJournalRequest) ([]byte, error) + type DryRunOutput struct + Body json.RawMessage + Method string + URL string + type JournalListParams struct + AccountID string + EndDate string + IsRealized *bool + Page *int + PerPage *int + StartDate string + type TBParams struct + EndDate string + EndMonth *int + FiscalYear *int + IncludeTax *bool + JournalTypes []string + StartDate string + StartMonth *int + WithSubAccounts *bool + type TransitionParams struct + EndMonth *int + FiscalYear *int + IncludeTax *bool + StartMonth *int + Type string + WithSubAccounts *bool