Versions in this module Expand all Collapse all v0 v0.1.0 Jul 15, 2026 Changes in this version + var ErrAccessDenied = errors.New("slip: access denied") + var ErrDuplicateSlip = errors.New("slip: duplicate slip") + var ErrInternal = errors.New("slip: internal server error") + var ErrInvalidAPIKey = errors.New("slip: invalid API key") + var ErrInvalidPayload = errors.New("slip: invalid payload") + var ErrQuotaExceeded = errors.New("slip: quota exceeded") + var ErrSlipNotFound = errors.New("slip: slip not found") + func Retryable(err error) bool + type Account struct + Bank *BankAccount + Name AccountName + Proxy *Proxy + type AccountName struct + En string + Th string + type Amount struct + Amount float64 + Local *LocalAmount + type BankAccount struct + Account string + Type string + type BankRef struct + ID string + Name string + Short string + type Client struct + func New(opts ...Option) *Client + func (c *Client) VerifyByImage(ctx context.Context, apiKey, base64Image string) (*VerifyResult, error) + func (c *Client) VerifyByPayload(ctx context.Context, apiKey, qrPayload string) (*VerifyResult, error) + func (c *Client) VerifyByURL(ctx context.Context, apiKey, imageURL string) (*VerifyResult, error) + type LocalAmount struct + Amount float64 + Currency string + type MatchResult int + const Indeterminate + const Match + const NoMatch + func MatchAccountNumber(expected, maskedValue string) MatchResult + func MatchName(expected, slipName string) MatchResult + func (r MatchResult) String() string + type Option func(*Client) + func WithBaseURL(url string) Option + type Party struct + Account Account + Bank *BankRef + type Proxy struct + Account string + Type string + type RawSlip struct + Amount Amount + CountryCode string + Date string + Fee float64 + Payload string + Receiver Party + Ref1 string + Ref2 string + Ref3 string + Sender Party + TransRef string + type VerifyResult = RawSlip