Skip to content

Commit

Permalink
Merge pull request #44 from jjideenschmiede/development
Browse files Browse the repository at this point in the history
feat: Add product images request.
  • Loading branch information
gowizzard authored Feb 28, 2024
2 parents 610c83f + 149faa2 commit 2dffaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ body := goshopify.ProductImageBody{
Image: ProductImageBodyImage{
Position: 1,
Src: "https://cdn.jj-ideenschmiede.de/placeholder.png",
Alt: "Test image",
VariantIds: []int{12345678},
},
}
Expand Down
1 change: 1 addition & 0 deletions product_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type ProductImageBody struct {
type ProductImageBodyImage struct {
Position int `json:"position,omitempty"`
Src string `json:"src"`
Alt string `json:"alt,omitempty"`
VariantIds []int `json:"variant_ids"`
}

Expand Down

0 comments on commit 2dffaae

Please sign in to comment.