Versions in this module Expand all Collapse all v0 v0.1.3 Mar 13, 2026 v0.1.2 Mar 13, 2026 Changes in this version + const MaxPageSize + type Attribute struct + AttributeCode string + AttributeID int + EntityTypeID string + FrontendInput string + FrontendLabel string + IsRequired bool + IsUserDefined bool + Options []AttributeOption + type AttributeOption struct + Label string + Value string + type AttributeSet struct + AttributeSetID int + AttributeSetName string + EntityTypeID int + SortOrder int + type CMSBlock struct + Active bool + Content string + CreationTime string + ID int + Identifier string + Title string + UpdateTime string + type CMSPage struct + Active bool + Content string + ContentHeading string + CreationTime string + ID int + Identifier string + MetaDescription string + MetaKeywords string + MetaTitle string + PageLayout string + SortOrder string + Title string + UpdateTime string + type CartRule struct + ApplyToShipping bool + CouponType string + CustomerGroupIDs []int + Description string + DiscountAmount float64 + DiscountQty float64 + DiscountStep int + ExtensionAttrs map[string]any + FromDate string + IsActive bool + IsRSS bool + Name string + RuleID int + SimpleAction string + SortOrder int + StopRulesProcessing bool + StoreLabels []StoreLabel + TimesUsed int + ToDate string + UseAutoGeneration bool + UsesPerCoupon int + UsesPerCustomer int + WebsiteIDs []int + type CatalogRule struct + CustomerGroupIDs []int + Description string + DiscountAmount float64 + ExtensionAttrs map[string]any + FromDate string + IsActive bool + Name string + RuleID int + SimpleAction string + SortOrder int + StopRulesProcessing bool + ToDate string + WebsiteIDs []int + type Category struct + ChildrenData []Category + CustomAttributes []CustomAttribute + ID int + IsActive bool + Level int + Name string + ParentID int + Position int + ProductCount int + type CategoryProduct struct + CategoryID string + Position int + SKU string + type Client struct + func New(opts ClientOptions) (*Client, error) + func (c *Client) GetAttribute(ctx context.Context, code string) (*Attribute, error) + func (c *Client) GetAttributeOptions(ctx context.Context, code string) ([]AttributeOption, error) + func (c *Client) GetCMSBlock(ctx context.Context, id int) (*CMSBlock, error) + func (c *Client) GetCMSPage(ctx context.Context, id int) (*CMSPage, error) + func (c *Client) GetCartRule(ctx context.Context, id int) (*CartRule, error) + func (c *Client) GetCatalogRule(ctx context.Context, id int) (*CatalogRule, error) + func (c *Client) GetCategory(ctx context.Context, id int) (*Category, error) + func (c *Client) GetCategoryProducts(ctx context.Context, categoryID int) ([]CategoryProduct, error) + func (c *Client) GetCategoryTree(ctx context.Context, rootID int, depth int) (*Category, error) + func (c *Client) GetConfigEntries(ctx context.Context, storeCode string) ([]ConfigEntry, error) + func (c *Client) GetConfigurableChildren(ctx context.Context, sku string) ([]Product, error) + func (c *Client) GetConfigurableOptions(ctx context.Context, sku string) ([]ConfigurableOption, error) + func (c *Client) GetCoupon(ctx context.Context, id int) (*Coupon, error) + func (c *Client) GetProduct(ctx context.Context, sku string) (*Product, error) + func (c *Client) GetProductMedia(ctx context.Context, sku string) ([]MediaEntry, error) + func (c *Client) GetStockStatus(ctx context.Context, sku string) (*StockItem, error) + func (c *Client) GetStoreConfigRaw(ctx context.Context) ([]map[string]any, error) + func (c *Client) HTTP() *httpx.Client + func (c *Client) ListAttributeSets(ctx context.Context, search *SearchCriteria) (*SearchResult[AttributeSet], error) + func (c *Client) ListCMSBlocks(ctx context.Context, search *SearchCriteria) (*SearchResult[CMSBlock], error) + func (c *Client) ListCMSPages(ctx context.Context, search *SearchCriteria) (*SearchResult[CMSPage], error) + func (c *Client) ListCartRules(ctx context.Context, search *SearchCriteria) (*SearchResult[CartRule], error) + func (c *Client) ListCatalogRules(ctx context.Context, search *SearchCriteria) (*SearchResult[CatalogRule], error) + func (c *Client) ListCoupons(ctx context.Context, search *SearchCriteria) (*SearchResult[Coupon], error) + func (c *Client) ListProducts(ctx context.Context, search *SearchCriteria) (*SearchResult[Product], error) + func (c *Client) ListStoreConfigs(ctx context.Context) ([]StoreConfig, error) + func (c *Client) ListStoreGroups(ctx context.Context) ([]StoreGroup, error) + func (c *Client) ListStoreViews(ctx context.Context) ([]StoreView, error) + func (c *Client) ListWebsites(ctx context.Context) ([]Website, error) + type ClientOptions struct + BaseURL string + Debug bool + EnableCache bool + Retry httpx.RetryPolicy + StoreCode string + Token string + type ConfigEntry struct + Path string + Scope string + Value string + func FilterConfigEntries(entries []ConfigEntry, filter string) []ConfigEntry + type ConfigurableOption struct + AttributeID string + ID int + Label string + Position int + ProductID int + Values []ConfigurableValue + type ConfigurableValue struct + ValueIndex int + type Coupon struct + Code string + CouponID int + CreatedAt string + ExpirationDate string + IsPrimary bool + RuleID int + TimesUsed int + Type int + UsageLimit int + UsagePerCustomer int + type CustomAttribute struct + AttributeCode string + Value any + type InventorySourceItem struct + Quantity float64 + SKU string + SourceCode string + Status int + type MediaEntry struct + Disabled bool + File string + ID int + Label string + MediaType string + Position int + Types []string + type OptionValue struct + Price float64 + PriceType string + SortOrder int + Title string + ValueID int + type Product struct + AttributeSetID int + CreatedAt string + CustomAttributes []CustomAttribute + ExtensionAttrs map[string]any + ID int + MediaGallery []MediaEntry + Name string + Options []ProductOption + Price float64 + ProductLinks []ProductLink + SKU string + Status int + TierPrices []TierPrice + TypeID string + UpdatedAt string + Visibility int + Weight float64 + type ProductLink struct + LinkType string + LinkedProductSKU string + LinkedProductType string + Position int + SKU string + type ProductOption struct + IsRequired bool + OptionID int + ProductSKU string + SortOrder int + Title string + Type string + Values []OptionValue + type SearchCriteria struct + func NewSearch() *SearchCriteria + func (s *SearchCriteria) AddFilter(expr string) error + func (s *SearchCriteria) AddSort(expr string) error + func (s *SearchCriteria) Encode() string + func (s *SearchCriteria) SetCurrentPage(page int) + func (s *SearchCriteria) SetPageSize(size int) + type SearchResult struct + Items []T + SearchCriteria struct{ ... } + TotalCount int + type StockItem struct + IsInStock bool + IsQtyDecimal bool + ItemID int + MaxSaleQty float64 + MinQty float64 + MinSaleQty float64 + ProductID int + Qty float64 + StockID int + type StoreConfig struct + BaseCurrencyCode string + BaseLinkURL string + BaseMediaURL string + BaseStaticURL string + BaseURL string + Code string + DefaultDisplayCurrency string + ID int + Locale string + SecureBaseLinkURL string + SecureBaseMediaURL string + SecureBaseStaticURL string + SecureBaseURL string + Timezone string + WebsiteID int + WeightUnit string + type StoreGroup struct + Code string + DefaultStoreID int + ID int + Name string + RootCategoryID int + WebsiteID int + type StoreLabel struct + Label string + StoreID int + type StoreView struct + Code string + ID int + IsActive int + Name string + StoreGroupID int + WebsiteID int + type TierPrice struct + CustomerGroupID int + Qty float64 + Value float64 + type Website struct + Code string + DefaultGroupID int + ID int + Name string v0.1.1 Mar 12, 2026 v0.1.0 Mar 12, 2026