Skip to content

Commit

Permalink
Added AdminGraphqlApiId to Image struct (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinhluan authored Jul 15, 2023
1 parent b3a6cd1 commit 69353b6
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions image.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ type ImageServiceOp struct {

// Image represents a Shopify product's image.
type Image struct {
ID int64 `json:"id,omitempty"`
ProductID int64 `json:"product_id,omitempty"`
Position int `json:"position,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Src string `json:"src,omitempty"`
Attachment string `json:"attachment,omitempty"`
Filename string `json:"filename,omitempty"`
VariantIds []int64 `json:"variant_ids,omitempty"`
ID int64 `json:"id,omitempty"`
ProductID int64 `json:"product_id,omitempty"`
Position int `json:"position,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Width int `json:"width,omitempty"`
Height int `json:"height,omitempty"`
Src string `json:"src,omitempty"`
Attachment string `json:"attachment,omitempty"`
Filename string `json:"filename,omitempty"`
VariantIds []int64 `json:"variant_ids,omitempty"`
AdminGraphqlApiId string `json:"admin_graphql_api_id,omitempty"`
}

// ImageResource represents the result form the products/X/images/Y.json endpoint
Expand Down

0 comments on commit 69353b6

Please sign in to comment.