Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2021 Changes in this version + const BaseURL + var ErrResourceNotFound = errors.New("Specified resource does not exist") + var ErrVersionConflict = errors.New("Specified version incorrect") + func ServerMock(uri, response string, statusCode int, debug bool) *httptest.Server + type Account struct + func NewAccountClient(timeout int, baseURL string) *Account + func (a *Account) CreateAccount(ctx context.Context, data *Data) (*Data, error) + func (a *Account) DeleteAccountByID(ctx context.Context, accountID string, version int64) error + func (a *Account) FetchAccountByID(ctx context.Context, accountID string) (*Data, error) + type AccountAttributes struct + AccountClassification *string + AccountMatchingOptOut *bool + AccountNumber string + AlternativeNames []string + BankID string + BankIDCode string + BaseCurrency string + Bic string + Country string + Iban string + JointAccount *bool + Name []string + SecondaryIdentification string + Status *string + Switched *bool + type AccountData struct + Attributes *AccountAttributes + ID string + OrganisationID string + Type string + Version *int64 + type Data struct + Data *AccountData + func (d *Data) ConvertToJSON() (string, error) + func (d *Data) LoadFromJSON(data []byte) error + type HTTPClient struct + Timeout time.Duration + func NewHTTPClient(timeout int) *HTTPClient + func (h *HTTPClient) BuildData(parameters map[string]string) string + func (h *HTTPClient) Delete(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error) + func (h *HTTPClient) Get(ctx context.Context, endpoint string, parameters, headers map[string]string) (*http.Response, error) + func (h *HTTPClient) GetHeaderValue(response *http.Response, key string) string + func (h *HTTPClient) GetStatusCode(response *http.Response) int + func (h *HTTPClient) Patch(ctx context.Context, endpoint string, data string, ...) (*http.Response, error) + func (h *HTTPClient) Post(ctx context.Context, endpoint string, data string, ...) (*http.Response, error) + func (h *HTTPClient) Put(ctx context.Context, endpoint string, data string, ...) (*http.Response, error) + func (h *HTTPClient) ToString(response *http.Response) (string, error) + type Output struct + Headers map[string][]string + Method string + RawQuery string + Response string + StatusCode int + func (o *Output) ConvertToJSON() (string, error)