Versions in this module Expand all Collapse all v0 v0.1.0 Jul 23, 2026 Changes in this version + const DefaultBaseURL + type APIError = internalclient.APIError + type AuthError = internalclient.AuthError + type BusinessError = internalclient.BusinessError + type Client struct + Account *account.Service + Auth *auth.Service + Channels *channels.Service + Config Config + Couriers *courier.Service + Hyperlocal *hyperlocal.Service + International *international.Service + Inventory *inventory.Service + Listings *listings.Service + Location *location.Service + NDR *ndr.Service + Orders *orders.Service + PickupAddresses *pickupaddress.Service + Products *products.Service + Returns *returns.Service + Shipments *shipment.Service + func NewClient(cfg Config) *Client + func (c *Client) BaseURL() string + func (c *Client) Do(ctx context.Context, req *Request, out any) error + func (c *Client) DoBytes(ctx context.Context, req *Request) ([]byte, error) + func (c *Client) DoDownload(ctx context.Context, req *Request) (*Download, error) + func (c *Client) DoRaw(ctx context.Context, req *Request) (*http.Response, error) + func (c *Client) HTTPClient() *http.Client + type Config struct + BaseURL string + Credentials *Credentials + HTTPClient *http.Client + Hooks []Hook + Logger Logger + Middleware []Middleware + Timeout time.Duration + Token string + TokenSource TokenSource + UserAgent string + type Credentials struct + Email string + Password string + type Download = internalclient.Download + type Hook = internalclient.Hook + type Logger = internalclient.Logger + type LoginRequest = auth.LoginRequest + type LoginResponse = auth.LoginResponse + type Middleware = internalclient.Middleware + type MultipartBody = internalclient.MultipartBody + type MultipartFile = internalclient.MultipartFile + type RateLimitError = internalclient.RateLimitError + type Request = internalclient.Request + type ResponseMeta = internalclient.ResponseMeta + type ServerError = internalclient.ServerError + type StaticTokenSource struct + TokenValue string + func (s StaticTokenSource) Token(context.Context) (string, error) + type TokenSource = internalclient.TokenSource + type TransportError = internalclient.TransportError + type ValidationError = internalclient.ValidationError