Versions in this module Expand all Collapse all v0 v0.18.5 Sep 23, 2026 Changes in this version + const SalesChannelTypeStorefront + var ErrNotFound = errors.New("not found") + type ApiContext struct + Context context.Context + Inheritance bool + LanguageId string + SkipFlows bool + VersionId string + func NewApiContext(ctx context.Context) ApiContext + type CacheManagerService ClientService + func (m CacheManagerService) Clear(ctx ApiContext) (*http.Response, error) + type Client struct + CacheManager *CacheManagerService + ExtensionManager *ExtensionManagerService + Info *InfoService + SalesChannel *SalesChannelService + ShopwareVersion *version.Version + func NewApiClient(ctx context.Context, shopUrl string, credentials OAuthCredentials, ...) (*Client, error) + func (c *Client) BareDo(ctx context.Context, req *http.Request) (*http.Response, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) NewRawRequest(context ApiContext, method, urlStr string, body io.Reader) (*http.Request, error) + func (c *Client) NewRequest(context ApiContext, method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) Token() oauth2.TokenSource + type ClientService struct + Client *Client + type ErrorDetail struct + Code string + Detail string + Status string + Title string + type Extension = ExtensionDetail + type ExtensionDetail struct + Active bool + Binaries []interface{} + Categories []interface{} + Configurable bool + Description string + Extensions []interface{} + Faq []interface{} + Icon interface{} + IconRaw *string + Id interface{} + Images []interface{} + InstalledAt ... + IsTheme bool + Label string + Languages []interface{} + LatestVersion string + License string + LocalId string + Name string + Notices []interface{} + NumberOfRatings int + Permissions interface{} + PrivacyPolicyExtension interface{} + ProducerName string + Rating interface{} + ShortDescription interface{} + Source string + StoreExtension interface{} + StoreLicense interface{} + Type string + UpdateSource string + UpdatedAt interface{} + Variants []interface{} + Version string + func (e ExtensionDetail) IsPlugin() bool + func (e ExtensionDetail) IsUpdateAble() bool + func (e ExtensionDetail) Status() string + type ExtensionList []*ExtensionDetail + func (l ExtensionList) FilterByUpdateable() ExtensionList + func (l ExtensionList) GetByName(name string) *ExtensionDetail + type ExtensionManagerService ClientService + func (e ExtensionManagerService) ActivateExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) DeactivateExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) DownloadExtension(ctx ApiContext, name string) (*http.Response, error) + func (e ExtensionManagerService) InstallExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) ListAvailableExtensions(ctx ApiContext) (ExtensionList, *http.Response, error) + func (e ExtensionManagerService) Refresh(ctx ApiContext) (*http.Response, error) + func (e ExtensionManagerService) RemoveExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) UninstallExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) UpdateExtension(ctx ApiContext, extType, name string) (*http.Response, error) + func (e ExtensionManagerService) UploadExtension(ctx ApiContext, extensionZip io.Reader) (*http.Response, error) + func (e ExtensionManagerService) UploadExtensionUpdateToCloud(ctx ApiContext, extensionName string, extensionZip io.Reader) (*http.Response, error) + type InfoResponse struct + AdminWorker struct{ ... } + Bundles map[string]infoResponseBundle + Settings struct{ ... } + Version string + VersionRevision string + func (r InfoResponse) IsCloudShop() bool + type InfoService ClientService + func (s InfoService) Info(ctx ApiContext) (*InfoResponse, *http.Response, error) + type IntegrationCredentials struct + ClientId string + ClientSecret string + Scopes []string + func NewIntegrationCredentials(clientId, clientSecret string, scopes []string) IntegrationCredentials + func (c IntegrationCredentials) GetTokenSource(ctx context.Context, tokenURL string) (oauth2.TokenSource, error) + type OAuthCredentials interface + GetTokenSource func(ctx context.Context, tokenURL string) (oauth2.TokenSource, error) + type PasswordCredentials struct + Password string + Scopes []string + Username string + func NewPasswordCredentials(username, password string, scopes []string) PasswordCredentials + func (c PasswordCredentials) GetTokenSource(ctx context.Context, tokenURL string) (oauth2.TokenSource, error) + type ResponseError struct + Content string + Errors []ErrorDetail + Response *http.Response + func (r ResponseError) Error() string + type SalesChannel struct + Active bool + Domains []SalesChannelDomain + Id string + Name string + TypeId string + type SalesChannelDomain struct + Id string + Url string + type SalesChannelService ClientService + func (s SalesChannelService) FindThemeForSalesChannel(ctx ApiContext, salesChannelId string) (*Theme, error) + func (s SalesChannelService) ListStorefront(ctx ApiContext) ([]SalesChannel, error) + type Theme struct + Id string + Name string + ParentThemeId string + TechnicalName string