Versions in this module Expand all Collapse all v0 v0.2.0 May 18, 2026 v0.1.0 May 13, 2026 Changes in this version + var ErrAmbiguousQuoteNumber = errors.New("exclusivenetworks: ambiguous quote number") + var ErrNotFound = errors.New("exclusivenetworks: not found") + var ErrQuoteNotFound = errors.New("exclusivenetworks: quote not found") + var ErrUnauthorized = errors.New("exclusivenetworks: unauthorized") + type APIError struct + Body string + StatusCode int + func (e *APIError) Error() string + func (e *APIError) Is(target error) bool + type Client struct + func New(baseURL, tokenURL, clientID, clientSecret, scope string, opts ...Option) *Client + func (c *Client) GetQuoteByNumber(ctx context.Context, quoteNumber string) (*Quote, error) + type Date struct + func (d *Date) UnmarshalJSON(data []byte) error + func (d Date) MarshalJSON() ([]byte, error) + type GraphQLError struct + Extensions map[string]any + Message string + Path []any + type GraphQLErrors struct + Errors []GraphQLError + func (e *GraphQLErrors) Error() string + type Logger interface + Printf func(format string, args ...any) + type Option func(*Client) + func WithCustomerID(customerID string) Option + func WithHTTPClient(httpClient *http.Client) Option + func WithLogger(logger Logger) Option + func WithRateLimit(perMinute, perHour int) Option + func WithRetry(maxAttempts int, baseBackoff time.Duration) Option + type Quote struct + CustomerQuoteReference string + DealType string + ExpiryDate Date + ID string + IsLatestVersion bool + LastModifiedDateTime string + Lines []QuoteLine + QuoteNumber string + Status string + Vendor string + Version int + type QuoteLine struct + Amount float64 + ContractEndDate Date + ContractStartDate Date + Currency string + Description string + ID string + ItemName string + ItemType string + LineSequenceNumber int + ManufactureID string + ManufactureName string + Quantity float64 + SalesQuoteID string + SerialNumberSupported string + SubscriptionTerm int + UnitPrice float64 + Vendor string + VendorID string + VendorPartNumber string