feat: add price, url, image, description, archived fields to Product struct
All checks were successful
Release / release (push) Successful in 24s

Extends the Product struct to include additional fields from the Snipcart
Products API response, enabling filtering of archived products and access
to product metadata like images and URLs.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Bastian de Byl
2026-01-22 19:51:24 -05:00
parent 914e49e9be
commit ae0e5fc379
2 changed files with 5 additions and 1 deletions

View File

@@ -167,6 +167,11 @@ type Product struct {
Token string `json:"id"`
Id string `json:"userDefinedId"`
Name string `json:"name"`
Price float64 `json:"price"`
Url string `json:"url"`
Image string `json:"image"`
Description string `json:"description"`
Archived bool `json:"archived"`
Stock int `json:"stock"`
TotalStock int `json:"totalStock"`
AllowBackorder bool `json:"allowOutOfStockPurchases"`