Versions in this module Expand all Collapse all v6 v6.2.3 May 9, 2022 v6.2.2 May 9, 2022 Changes in this version + type BulkOperationService interface + BulkQuery func(query string, v interface{}) error + CancelRunningBulkQuery func() error + GetCurrentBulkQuery func() (*model.BulkOperation, error) + GetCurrentBulkQueryResultURL func() (*string, error) + PostBulkQuery func(query string) (*string, error) + ShouldGetBulkQueryResultURL func(id *string) (*string, error) + WaitForCurrentBulkQuery func(interval time.Duration) (*model.BulkOperation, error) + type BulkOperationServiceOp struct + func (s *BulkOperationServiceOp) BulkQuery(query string, out interface{}) error + func (s *BulkOperationServiceOp) CancelRunningBulkQuery() error + func (s *BulkOperationServiceOp) GetCurrentBulkQuery() (*model.BulkOperation, error) + func (s *BulkOperationServiceOp) GetCurrentBulkQueryResultURL() (*string, error) + func (s *BulkOperationServiceOp) PostBulkQuery(query string) (*string, error) + func (s *BulkOperationServiceOp) ShouldGetBulkQueryResultURL(id *string) (*string, error) + func (s *BulkOperationServiceOp) WaitForCurrentBulkQuery(interval time.Duration) (*model.BulkOperation, error) + type Client struct + BulkOperation BulkOperationService + Collection CollectionService + Fulfillment FulfillmentService + Inventory InventoryService + Location LocationService + Metafield MetafieldService + Order OrderService + Product ProductService + Variant VariantService + func NewClient(accessToken string, storeName string, apiVersion string, opts ...Option) *Client + func NewDefaultClient(opts ...Option) *Client + func (c *Client) GraphQLClient() graphql.GraphQL + type CollectionService interface + Create func(collection model.CollectionInput) (*string, error) + CreateBulk func(collections []model.CollectionInput) error + Get func(id string) (*model.Collection, error) + ListAll func() ([]model.Collection, error) + Update func(collection model.CollectionInput) error + type CollectionServiceOp struct + func (s *CollectionServiceOp) Create(collection model.CollectionInput) (*string, error) + func (s *CollectionServiceOp) CreateBulk(collections []model.CollectionInput) error + func (s *CollectionServiceOp) Get(id string) (*model.Collection, error) + func (s *CollectionServiceOp) ListAll() ([]model.Collection, error) + func (s *CollectionServiceOp) Update(collection model.CollectionInput) error + type FulfillmentService interface + Create func(input model.FulfillmentV2Input) error + type FulfillmentServiceOp struct + func (s *FulfillmentServiceOp) Create(fulfillment model.FulfillmentV2Input) error + type InventoryService interface + ActivateInventory func(locationID string, id string) error + Adjust func(locationID string, input []model.InventoryAdjustItemInput) error + Update func(id string, input model.InventoryItemUpdateInput) error + type InventoryServiceOp struct + func (s *InventoryServiceOp) ActivateInventory(locationID string, id string) error + func (s *InventoryServiceOp) Adjust(locationID string, input []model.InventoryAdjustItemInput) error + func (s *InventoryServiceOp) Update(id string, input model.InventoryItemUpdateInput) error + type ListOptions struct + After string + Before string + First int + Last int + Query string + Reverse bool + type LocationService interface + Get func(id string) (*model.Location, error) + type LocationServiceOp struct + func (s *LocationServiceOp) Get(id string) (*model.Location, error) + type MetafieldService interface + Delete func(metafield model.MetafieldDeleteInput) error + DeleteBulk func(metafield []model.MetafieldDeleteInput) error + GetShopMetafieldByKey func(namespace, key string) (*model.Metafield, error) + ListAllShopMetafields func() ([]model.Metafield, error) + ListShopMetafieldsByNamespace func(namespace string) ([]model.Metafield, error) + type MetafieldServiceOp struct + func (s *MetafieldServiceOp) Delete(metafield model.MetafieldDeleteInput) error + func (s *MetafieldServiceOp) DeleteBulk(metafields []model.MetafieldDeleteInput) error + func (s *MetafieldServiceOp) GetShopMetafieldByKey(namespace, key string) (*model.Metafield, error) + func (s *MetafieldServiceOp) ListAllShopMetafields() ([]model.Metafield, error) + func (s *MetafieldServiceOp) ListShopMetafieldsByNamespace(namespace string) ([]model.Metafield, error) + type Option func(shopClient *Client) + func WithGraphQLClient(gql graphql.GraphQL) Option + type OrderService interface + Get func(id graphql.ID) (*model.Order, error) + List func(opts ListOptions) ([]model.Order, error) + ListAfterCursor func(opts ListOptions) ([]model.Order, *string, *string, error) + ListAll func() ([]model.Order, error) + Update func(input model.OrderInput) error + type OrderServiceOp struct + func (s *OrderServiceOp) Get(id graphql.ID) (*model.Order, error) + func (s *OrderServiceOp) List(opts ListOptions) ([]model.Order, error) + func (s *OrderServiceOp) ListAfterCursor(opts ListOptions) ([]model.Order, *string, *string, error) + func (s *OrderServiceOp) ListAll() ([]model.Order, error) + func (s *OrderServiceOp) Update(input model.OrderInput) error + type ProductService interface + Create func(product model.ProductInput) (*string, error) + Delete func(product model.ProductDeleteInput) error + Get func(id string) (*model.Product, error) + List func(query string) ([]model.Product, error) + ListAll func() ([]model.Product, error) + Update func(product model.ProductInput) error + VariantsBulkCreate func(id string, input []model.ProductVariantsBulkInput) error + VariantsBulkReorder func(id string, input []model.ProductVariantPositionInput) error + VariantsBulkUpdate func(id string, input []model.ProductVariantsBulkInput) error + type ProductServiceOp struct + func (s *ProductServiceOp) Create(product model.ProductInput) (*string, error) + func (s *ProductServiceOp) Delete(product model.ProductDeleteInput) error + func (s *ProductServiceOp) Get(id string) (*model.Product, error) + func (s *ProductServiceOp) List(query string) ([]model.Product, error) + func (s *ProductServiceOp) ListAll() ([]model.Product, error) + func (s *ProductServiceOp) Update(product model.ProductInput) error + func (s *ProductServiceOp) VariantsBulkCreate(id string, input []model.ProductVariantsBulkInput) error + func (s *ProductServiceOp) VariantsBulkReorder(id string, input []model.ProductVariantPositionInput) error + func (s *ProductServiceOp) VariantsBulkUpdate(id string, input []model.ProductVariantsBulkInput) error + type VariantService interface + Update func(variant model.ProductVariantInput) error + type VariantServiceOp struct + func (s *VariantServiceOp) Update(variant model.ProductVariantInput) error