Versions in this module Expand all Collapse all v2 v2.0.0 Jan 3, 2024 Changes in this version + type APIError struct + Details string + ErrorCode string + func (e APIError) Error() string + type Authenticator interface + Authenticate func(context context.Context, payload *payload.AuthenticationPayload) (*response.AuthenticateResponse, error) + type BankID interface + type BankIDClient struct + func NewBankIDClient(configuration *configuration.Configuration) (*BankIDClient, error) + func (b BankIDClient) Authenticate(context context.Context, payload *payload.AuthenticationPayload) (*response.AuthenticateResponse, error) + func (b BankIDClient) Cancel(context context.Context, payload *payload.CancelPayload) (*response.CancelResponse, error) + func (b BankIDClient) Collect(context context.Context, payload *payload.CollectPayload) (*response.CollectResponse, error) + func (b BankIDClient) PhoneAuthenticate(context context.Context, payload *payload.PhoneAuthenticationPayload) (*response.PhoneAuthenticateResponse, error) + func (b BankIDClient) PhoneSign(context context.Context, payload *payload.PhoneSignPayload) (*response.PhoneSignResponse, error) + func (b BankIDClient) QRCodeContent(qrStartToken, qrStartSecret string, seconds int) (string, error) + func (b BankIDClient) Sign(context context.Context, payload *payload.SignPayload) (*response.SignResponse, error) + type Collector interface + Collect func(context context.Context, payload *payload.CollectPayload) (*response.CollectResponse, error) + type OrderCanceller interface + Cancel func(context context.Context, payload *payload.CancelPayload) (*response.CancelResponse, error) + type QRCodeContentGenerator interface + QRCodeContent func(qrStartToken, qrStartSecret string, seconds int) (string, error) + type Signer interface + Sign func(context context.Context, payload *payload.SignPayload) (*response.SignResponse, error) + type ValidationError struct + Field string + RejectedValue any + func NewValidationError(field string, rejectedValue any, wrapped error) *ValidationError + func (v ValidationError) Error() string + func (v ValidationError) Unwrap() error