From 3816c67b954cc444c78c16457e1f70c74c7f2475 Mon Sep 17 00:00:00 2001 From: Bastian de Byl Date: Thu, 27 Jul 2023 13:44:06 -0400 Subject: [PATCH] added more data types to CustomField struct --- snipcart/common.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/snipcart/common.go b/snipcart/common.go index 57806b2..3a6dda4 100644 --- a/snipcart/common.go +++ b/snipcart/common.go @@ -37,6 +37,9 @@ type Client struct { } type CustomField struct { - Name string `json:"name"` - Value string `json:"value"` + Name string `json:"name"` + Value string `json:"value"` + Type string `json:"type,omitempty"` + Options []string `json:"options,omitempty"` + Required bool `json:"required"` }