Documentation ¶
Index ¶
- type BulkOperationService
- type BulkOperationServiceOp
- 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
- type CollectionService
- type CollectionServiceOp
- 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
- type FulfillmentServiceOp
- type InventoryService
- type InventoryServiceOp
- type ListOptions
- type LocationService
- type LocationServiceOp
- type MetafieldService
- type MetafieldServiceOp
- 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
- type OrderService
- type OrderServiceOp
- 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
- type ProductServiceOp
- 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
- type VariantServiceOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkOperationService ¶
type BulkOperationService interface { BulkQuery(query string, v interface{}) error PostBulkQuery(query string) (*string, error) GetCurrentBulkQuery() (*model.BulkOperation, error) GetCurrentBulkQueryResultURL() (*string, error) WaitForCurrentBulkQuery(interval time.Duration) (*model.BulkOperation, error) ShouldGetBulkQueryResultURL(id *string) (*string, error) CancelRunningBulkQuery() error }
type BulkOperationServiceOp ¶
type BulkOperationServiceOp struct {
// contains filtered or unexported fields
}
func (*BulkOperationServiceOp) BulkQuery ¶
func (s *BulkOperationServiceOp) BulkQuery(query string, out interface{}) error
func (*BulkOperationServiceOp) CancelRunningBulkQuery ¶
func (s *BulkOperationServiceOp) CancelRunningBulkQuery() error
func (*BulkOperationServiceOp) GetCurrentBulkQuery ¶
func (s *BulkOperationServiceOp) GetCurrentBulkQuery() (*model.BulkOperation, error)
func (*BulkOperationServiceOp) GetCurrentBulkQueryResultURL ¶
func (s *BulkOperationServiceOp) GetCurrentBulkQueryResultURL() (*string, error)
func (*BulkOperationServiceOp) PostBulkQuery ¶
func (s *BulkOperationServiceOp) PostBulkQuery(query string) (*string, error)
func (*BulkOperationServiceOp) ShouldGetBulkQueryResultURL ¶
func (s *BulkOperationServiceOp) ShouldGetBulkQueryResultURL(id *string) (*string, error)
func (*BulkOperationServiceOp) WaitForCurrentBulkQuery ¶
func (s *BulkOperationServiceOp) WaitForCurrentBulkQuery(interval time.Duration) (*model.BulkOperation, error)
type Client ¶
type Client struct { Product ProductService Variant VariantService Inventory InventoryService Collection CollectionService Order OrderService Fulfillment FulfillmentService Location LocationService Metafield MetafieldService BulkOperation BulkOperationService // contains filtered or unexported fields }
func NewClientWithToken ¶
func NewDefaultClient ¶
func NewDefaultClient() *Client
func (*Client) GraphQLClient ¶
type CollectionService ¶
type CollectionService interface { ListAll() ([]model.Collection, error) Get(id string) (*model.Collection, error) Create(collection model.CollectionInput) (*string, error) CreateBulk(collections []model.CollectionInput) error Update(collection model.CollectionInput) error }
type CollectionServiceOp ¶
type CollectionServiceOp struct {
// contains filtered or unexported fields
}
func (*CollectionServiceOp) Create ¶
func (s *CollectionServiceOp) Create(collection model.CollectionInput) (*string, error)
func (*CollectionServiceOp) CreateBulk ¶
func (s *CollectionServiceOp) CreateBulk(collections []model.CollectionInput) error
func (*CollectionServiceOp) Get ¶
func (s *CollectionServiceOp) Get(id string) (*model.Collection, error)
func (*CollectionServiceOp) ListAll ¶
func (s *CollectionServiceOp) ListAll() ([]model.Collection, error)
func (*CollectionServiceOp) Update ¶
func (s *CollectionServiceOp) Update(collection model.CollectionInput) error
type FulfillmentService ¶
type FulfillmentService interface {
Create(input model.FulfillmentV2Input) error
}
type FulfillmentServiceOp ¶
type FulfillmentServiceOp struct {
// contains filtered or unexported fields
}
func (*FulfillmentServiceOp) Create ¶
func (s *FulfillmentServiceOp) Create(fulfillment model.FulfillmentV2Input) error
type InventoryService ¶
type InventoryServiceOp ¶
type InventoryServiceOp struct {
// contains filtered or unexported fields
}
func (*InventoryServiceOp) ActivateInventory ¶
func (s *InventoryServiceOp) ActivateInventory(locationID string, id string) error
func (*InventoryServiceOp) Adjust ¶
func (s *InventoryServiceOp) Adjust(locationID string, input []model.InventoryAdjustItemInput) error
func (*InventoryServiceOp) Update ¶
func (s *InventoryServiceOp) Update(id string, input model.InventoryItemUpdateInput) error
type ListOptions ¶
type LocationServiceOp ¶
type LocationServiceOp struct {
// contains filtered or unexported fields
}
type MetafieldService ¶
type MetafieldService interface { ListAllShopMetafields() ([]model.Metafield, error) ListShopMetafieldsByNamespace(namespace string) ([]model.Metafield, error) GetShopMetafieldByKey(namespace, key string) (*model.Metafield, error) Delete(metafield model.MetafieldDeleteInput) error DeleteBulk(metafield []model.MetafieldDeleteInput) error }
type MetafieldServiceOp ¶
type MetafieldServiceOp struct {
// contains filtered or unexported fields
}
func (*MetafieldServiceOp) Delete ¶
func (s *MetafieldServiceOp) Delete(metafield model.MetafieldDeleteInput) error
func (*MetafieldServiceOp) DeleteBulk ¶
func (s *MetafieldServiceOp) DeleteBulk(metafields []model.MetafieldDeleteInput) error
func (*MetafieldServiceOp) GetShopMetafieldByKey ¶
func (s *MetafieldServiceOp) GetShopMetafieldByKey(namespace, key string) (*model.Metafield, error)
func (*MetafieldServiceOp) ListAllShopMetafields ¶
func (s *MetafieldServiceOp) ListAllShopMetafields() ([]model.Metafield, error)
func (*MetafieldServiceOp) ListShopMetafieldsByNamespace ¶
func (s *MetafieldServiceOp) ListShopMetafieldsByNamespace(namespace string) ([]model.Metafield, error)
type OrderService ¶
type OrderServiceOp ¶
type OrderServiceOp struct {
// contains filtered or unexported fields
}
func (*OrderServiceOp) List ¶
func (s *OrderServiceOp) List(opts ListOptions) ([]model.Order, error)
func (*OrderServiceOp) ListAfterCursor ¶
func (s *OrderServiceOp) ListAfterCursor(opts ListOptions) ([]model.Order, *string, *string, error)
func (*OrderServiceOp) Update ¶
func (s *OrderServiceOp) Update(input model.OrderInput) error
type ProductService ¶
type ProductService interface { List(query string) ([]model.Product, error) ListAll() ([]model.Product, error) Get(id string) (*model.Product, error) Create(product model.ProductInput) (*string, error) Update(product model.ProductInput) error Delete(product model.ProductDeleteInput) error VariantsBulkCreate(id string, input []model.ProductVariantsBulkInput) error VariantsBulkUpdate(id string, input []model.ProductVariantsBulkInput) error VariantsBulkReorder(id string, input []model.ProductVariantPositionInput) error }
type ProductServiceOp ¶
type ProductServiceOp struct {
// contains filtered or unexported fields
}
func (*ProductServiceOp) Create ¶
func (s *ProductServiceOp) Create(product model.ProductInput) (*string, error)
func (*ProductServiceOp) Delete ¶
func (s *ProductServiceOp) Delete(product model.ProductDeleteInput) error
func (*ProductServiceOp) List ¶
func (s *ProductServiceOp) List(query string) ([]model.Product, error)
func (*ProductServiceOp) Update ¶
func (s *ProductServiceOp) Update(product model.ProductInput) error
func (*ProductServiceOp) VariantsBulkCreate ¶
func (s *ProductServiceOp) VariantsBulkCreate(id string, input []model.ProductVariantsBulkInput) error
func (*ProductServiceOp) VariantsBulkReorder ¶
func (s *ProductServiceOp) VariantsBulkReorder(id string, input []model.ProductVariantPositionInput) error
func (*ProductServiceOp) VariantsBulkUpdate ¶
func (s *ProductServiceOp) VariantsBulkUpdate(id string, input []model.ProductVariantsBulkInput) error
type VariantService ¶
type VariantService interface {
Update(variant model.ProductVariantInput) error
}
type VariantServiceOp ¶
type VariantServiceOp struct {
// contains filtered or unexported fields
}
func (*VariantServiceOp) Update ¶
func (s *VariantServiceOp) Update(variant model.ProductVariantInput) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.