Versions in this module Expand all Collapse all v0 v0.1.0 May 6, 2026 Changes in this version + const CodeAPIError + const CodeAuthError + const CodeConfirmationInvalid + const CodeConfirmationRequired + const CodeIdempotencyConflict + const CodeNetworkError + const CodeNotFound + const CodeRateLimited + const CodeUnknownError + const CodeValidationError + func FormatUSDMinor(amount int64) string + func MaskAccountNumber(value string) string + func MaskLast4(value string) string + func NewID(prefix string) string + func RFC3339OrEmpty(t time.Time) string + type Envelope struct + Data any + Error *ErrorDetail + OK bool + RequestID string + func Fail(err *ErrorDetail, requestID string) Envelope + func Ok(data any, requestID string) Envelope + type ErrorDetail struct + Code string + Details map[string]any + Fields []FieldError + Message string + Retryable bool + func NewError(code, message string, details map[string]any, retryable bool) *ErrorDetail + func (e *ErrorDetail) Error() string + type FieldError struct + Field string + Message string