Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
Description string `json:"errorDescription"`
}
APIError describes monobank API error.
type Account ¶
type Account struct { ID string `json:"id"` Balance int64 `json:"balance"` CurrencyCode int16 `json:"currencyCode"` }
Account describes monobank account.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements monobank API client.
func (*Client) GetTransactions ¶
func (c *Client) GetTransactions(ctx context.Context, query GetTransactionsQuery) ([]Transaction, error)
GetTransactions loads transactions from monobank with specified query parameters.
type GetTransactionsQuery ¶
GetTransactionsQuery describes parameters for GetTransactions monobank request.
type Time ¶
Time defines a timestamp encoded as epoch seconds in JSON.
func (Time) MarshalJSON ¶
MarshalJSON is used to convert the timestamp to JSON.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON is used to convert the timestamp from JSON.
Click to show internal directories.
Click to hide internal directories.