-
Notifications
You must be signed in to change notification settings - Fork 1
/
product.go
27 lines (25 loc) · 1.47 KB
/
product.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package shopifygraphql
// ProductInput product input struct
type ProductInput struct {
CollectionsToJoin []string `json:"collectionsToJoin,omitempty"`
CollectionsToLeave []string `json:"collectionsToLeave,omitempty"`
DescriptionHTML string `json:"descriptionHtml,omitempty"`
GiftCardTemplateSuffix string `json:"giftCardTemplateSuffix,omitempty"`
Handle string `json:"handle,omitempty"`
ID string `json:"id,omitempty"`
Images []ImageInput `json:"images,omitempty"`
Metafields []MetafieldInput `json:"metafields,omitempty"`
Options []string `json:"options,omitempty"`
ProductType string `json:"productType,omitempty"`
RedirectNewHandle *bool `json:"redirectNewHandle,omitempty"`
SEO *SEOInput `json:"seo,omitempty"`
Tags []string `json:"tags,omitempty"`
TemplateSuffix string `json:"templateSuffix,omitempty"`
Title string `json:"title,omitempty"`
Variants []ProductVariantInput `json:"variants,omitempty"`
Vendor string `json:"vendor,omitempty"`
}
// ProductDeleteInput product delete input struct
type ProductDeleteInput struct {
ID string `json:"id,omitempty"`
}