Documentation ¶
Index ¶
- type ListArticleCategory
- func (c *ListArticleCategory) List(config *medusa.Config) (*ListArticleCategoryResponse, error)
- func (p *ListArticleCategory) SetContent(content string) *ListArticleCategory
- func (p *ListArticleCategory) SetCreatedAt(creatdAt *common.DateComparison) *ListArticleCategory
- func (p *ListArticleCategory) SetExpand(expand string) *ListArticleCategory
- func (p *ListArticleCategory) SetFields(fields string) *ListArticleCategory
- func (p *ListArticleCategory) SetHandle(handle string) *ListArticleCategory
- func (p *ListArticleCategory) SetIds(ids []string) *ListArticleCategory
- func (p *ListArticleCategory) SetLimit(limit int) *ListArticleCategory
- func (p *ListArticleCategory) SetOffset(offset int) *ListArticleCategory
- func (p *ListArticleCategory) SetQ(q string) *ListArticleCategory
- func (p *ListArticleCategory) SetTags(tags []string) *ListArticleCategory
- func (p *ListArticleCategory) SetTitle(title string) *ListArticleCategory
- func (p *ListArticleCategory) SetUpdatedAt(updatedAt *common.DateComparison) *ListArticleCategory
- type ListArticleCategoryData
- type ListArticleCategoryResponse
- type RetrieveArticleCategoryData
- type RetrieveArticleCategoryResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListArticleCategory ¶
type ListArticleCategory struct { // Query used for searching products by title, description, variant's title, variant's sku, and collection's title Q string `json:"q,omitempty" url:"q,omitempty"` // product IDs to search for. Ids []string `json:"id,omitempty" url:"id,omitempty"` // Tag IDs to search for Tags []string `json:"tags,omitempty" url:"tags,omitempty"` // title to search for. Title string `json:"title,omitempty" url:"title,omitempty"` // content to search for Content string `json:"content,omitempty" url:"content,omitempty"` // handle to search for. Handle string `json:"handle,omitempty" url:"handle,omitempty"` // Date comparison for when resulting products were created. CreatedAt *common.DateComparison `json:"created_at,omitempty" url:"created_at,omitempty"` // Date comparison for when resulting products were updated. UpdatedAt *common.DateComparison `json:"updated_at,omitempty" url:"updated_at,omitempty"` // How many products to skip in the result. Offset int `json:"offset" url:"offset"` // Limit the number of products returned. Limit int `json:"limit" url:"limit"` // (Comma separated) Which fields should be expanded in each order of the result.) Expand string `json:"expand,omitempty" url:"expand,omitempty"` // (Comma separated) Which fields should be included in each order of the result. Fields string `json:"fields,omitempty" url:"fields,omitempty"` }
func NewListArticleCategory ¶
func NewListArticleCategory() *ListArticleCategory
func (*ListArticleCategory) List ¶
func (c *ListArticleCategory) List(config *medusa.Config) (*ListArticleCategoryResponse, error)
Retrieve a list of Articles.
func (*ListArticleCategory) SetContent ¶
func (p *ListArticleCategory) SetContent(content string) *ListArticleCategory
func (*ListArticleCategory) SetCreatedAt ¶
func (p *ListArticleCategory) SetCreatedAt(creatdAt *common.DateComparison) *ListArticleCategory
func (*ListArticleCategory) SetExpand ¶
func (p *ListArticleCategory) SetExpand(expand string) *ListArticleCategory
func (*ListArticleCategory) SetFields ¶
func (p *ListArticleCategory) SetFields(fields string) *ListArticleCategory
func (*ListArticleCategory) SetHandle ¶
func (p *ListArticleCategory) SetHandle(handle string) *ListArticleCategory
func (*ListArticleCategory) SetIds ¶
func (p *ListArticleCategory) SetIds(ids []string) *ListArticleCategory
func (*ListArticleCategory) SetLimit ¶
func (p *ListArticleCategory) SetLimit(limit int) *ListArticleCategory
func (*ListArticleCategory) SetOffset ¶
func (p *ListArticleCategory) SetOffset(offset int) *ListArticleCategory
func (*ListArticleCategory) SetQ ¶
func (p *ListArticleCategory) SetQ(q string) *ListArticleCategory
func (*ListArticleCategory) SetTags ¶
func (p *ListArticleCategory) SetTags(tags []string) *ListArticleCategory
func (*ListArticleCategory) SetTitle ¶
func (p *ListArticleCategory) SetTitle(title string) *ListArticleCategory
func (*ListArticleCategory) SetUpdatedAt ¶
func (p *ListArticleCategory) SetUpdatedAt(updatedAt *common.DateComparison) *ListArticleCategory
type ListArticleCategoryData ¶
type ListArticleCategoryData struct { // Array of articles ArticleCategories []*schema.ArticleCategory `json:"article_categories"` // The total number of items available Count uint `json:"count"` // The number of items skipped before these items Offset uint `json:"offset"` // The number of items per page Limit uint `json:"limit"` }
type ListArticleCategoryResponse ¶
type ListArticleCategoryResponse struct { // Success response Data *ListArticleCategoryData // Error response Error *response.Error // Errors in case of multiple errors Errors *response.Errors }
type RetrieveArticleCategoryData ¶
type RetrieveArticleCategoryData struct {
ArticleCategory *schema.ArticleCategory `json:"article_category"`
}
type RetrieveArticleCategoryResponse ¶
type RetrieveArticleCategoryResponse struct { // Success response Data *RetrieveArticleCategoryData // Error response Error *response.Error // Errors in case of multiple errors Errors *response.Errors }
Click to show internal directories.
Click to hide internal directories.