Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListInventoriesPresenter ¶
func ListInventoriesPresenter(ctx context.Context, resp *pb.ListInventoriesResponse) *apiresource.List[apiresource.InventoryItem]
Types ¶
type InventorySvc ¶
type InventorySvc interface {
ListInventories(ctx context.Context, req *ListInventoriesRequest) (*apiresource.List[apiresource.InventoryItem], *apierror.APIError)
}
func NewInventorySvc ¶
func NewInventorySvc(config *InventorySvcConfig) InventorySvc
type InventorySvcConfig ¶
type InventorySvcConfig struct {
// CoreClient (required) is the core-service gRPC client.
CoreClient pb.CoreServiceClient
}
type ListInventoriesEndpoint ¶
type ListInventoriesEndpoint struct{}
Returns a paginated list of items with on-hand inventory quantities for the account.
Items are listed whether or not they have ever held stock; an item with no recorded inventory reports a zero quantity. Items backed by a non-sale product — the service, shipping, tax, credit, and return products that carry charges on orders — are left out. The `q` search term matches on item SKU and description.
func (*ListInventoriesEndpoint) Materialize ¶
func (e *ListInventoriesEndpoint) Materialize() *apiendpoint.APIEndpoint[*ListInventoriesRequest, *apiresource.List[apiresource.InventoryItem]]
type ListInventoriesRequest ¶
type ListInventoriesRequest struct {
apiresource.PaginationRequest
}
Request to list inventories.
Click to show internal directories.
Click to hide internal directories.