Versions in this module Expand all Collapse all v1 v1.0.1 Mar 26, 2023 Changes in this version + const BluePrintProviderShippingPath + const BlueprintProviderVariantsPath + const PrintProviderPath + const PrintProvidersPath + type ApiRequest interface + GetBody func() interface{} + GetMethod func() string + GetPath func() string + GetResponseStruct func() *interface{} + type Blueprint struct + Brand string + Description string + Id int + Images []string + Model string + Title string + type CatalogPlaceholder struct + Height int + Position string + Width int + type CatalogVariant struct + Id int + Options *CatalogVariantOption + Placeholders []*CatalogPlaceholder + Title string + type CatalogVariantOption struct + Color string + Size string + type Client struct + ApiVersion string + BaseURL *url.URL + UserAgent string + func NewClient(apiKey string) *Client + func (c *Client) CalculateShippingCosts(shopId int, order *Order) (*ShippingCost, error) + func (c *Client) CancelOrder(shopId, orderId int) (*Order, error) + func (c *Client) CreateProduct(product Product) error + func (c *Client) DeleteProduct(shopId int, productId int) error + func (c *Client) DeleteShop(Id int) error + func (c *Client) GetAvailablePrintProviders() ([]*PrintProvider, error) + func (c *Client) GetBlueprint(Id int) (*Blueprint, error) + func (c *Client) GetOrderDetails(shopId, orderId int) (*Order, error) + func (c *Client) GetPrintProvider(Id int) (*PrintProvider, error) + func (c *Client) GetPrintProviders(blueprintId int) ([]*PrintProvider, error) + func (c *Client) GetProduct(shopId, productId int) (*Product, error) + func (c *Client) GetProducts(shopId int, page *int) ([]*Product, error) + func (c *Client) GetShippingInformation(blueprintId, providerId int) (*ShippingProperties, error) + func (c *Client) GetVariants(blueprintId, providerId int) (*PrintProvider, error) + func (c *Client) ListBluePrints() ([]*Blueprint, error) + func (c *Client) ListShopOrders(shopId int, page, limit *int, statusFilter *string) ([]*Order, error) + func (c *Client) ListShops() ([]*Shop, error) + func (c *Client) PublishProduct(shopId, productId int, publishProperties PublishingProperties) error + func (c *Client) SendOrderToProduction(shopId, orderId int) (*Order, error) + func (c *Client) SetProductPublishFailre(shopId, productId int, reason string) error + func (c *Client) SetProductPublishSuccess(shopId, productId int, external External) error + func (c *Client) SubmitOrder(shopId int, order *Order) error + func (c *Client) UnPublish(shopId, productId int) error + func (c *Client) UpdateProduct(shopId int, product Product) (*Product, error) + type External struct + Handle string + Id int + type LineItem struct + BlueprintId *int + Cost *float32 + FulfilledAt *time.Time + Id *int + Metadata *LineItemMetadata + PrintAreas *map[string]string + PrintDetails *PrintDetails + PrintProviderId *int + ProductId *string + Quantity int + SentToProductionAt *time.Time + ShippingCost *float32 + Sku *string + Status *string + VariantId *int + type LineItemMetadata struct + Country string + Price float32 + Sku string + Title string + VariantLabel string + type Order struct + AddressTo *map[string]string + CreatedAt *time.Time + FulfilledAt *time.Time + Id *int + LineItems []*LineItem + Metadata *OrderMetadata + SendShippingNotification *bool + SentToProductionAt *time.Time + Shipments []*Shipment + ShippingMethod int + Status *string + TotalPrice *float32 + TotalShipping *float32 + TotalTax *float32 + type OrderMetadata struct + OrderType string + ShopFulfilledAt time.Time + ShopOrderId int + ShopOrderLabel string + type PrintArea struct + Placeholders []ProducePlaceholder + VariantIds []int + type PrintDetails struct + PrintOnSide string + type PrintProvider struct + Id int + Location *map[string]string + Title string + Variants []*CatalogVariant + type ProducePlaceholder struct + Images []ProductImage + Position string + type Product struct + BlueprintId int + CreatedAt time.Time + Description string + External []*External + Id *int + Images []ProductMockUpImage + IsLocked bool + Options []map[string]interface{} + PrintAreas []*PrintArea + PrintDetails *PrintDetails + PrintProviderId int + SalesChannelProperties []string + ShopId int + Tags []string + Title string + UpdatedAt time.Time + UserId int + Variants []ProductVariant + Visible bool + type ProductImage struct + Angle int + Height int + Id int + Name string + Scale int + Type string + Width int + X int + Y int + type ProductMockUpImage struct + IsDefault bool + Position string + Src string + VariantIds int + type ProductVariant struct + Cost float32 + Grams int + Id *int + InStock bool + IsAvailable bool + IsDefault bool + IsEnabled bool + Options []int + Price float32 + Sku string + Title string + type PublishingProperties struct + Description bool + Images bool + Tags bool + Title bool + Variants bool + type Shipment struct + Carrier string + DeliveredAt time.Time + Number string + Url string + type ShippingCost struct + Express float32 + Standard float32 + type ShippingProperties struct + HandlingTime struct{ ... } + Profiles struct{ ... } + type Shop struct + Id int + SalesChannel string + Title string