From e3127398ac84d813ef98aa5e23caec73b52e80f7 Mon Sep 17 00:00:00 2001 From: zveinn Date: Sat, 23 Mar 2024 15:28:49 +0000 Subject: [PATCH 1/2] quick fix for broken Products.Get() api --- product.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.go b/product.go index 149487a..e0979c9 100644 --- a/product.go +++ b/product.go @@ -12,7 +12,7 @@ type ProductAttributes struct { StatusFormatted string `json:"status_formatted"` ThumbURL string `json:"thumb_url"` LargeThumbURL string `json:"large_thumb_url"` - Price int `json:"price"` + Price string `json:"price"` PayWhatYouWant bool `json:"pay_what_you_want"` FromPrice *int `json:"from_price"` ToPrice *int `json:"to_price"` From 05dbc2f0615367522ab41b74f369ea513a81597d Mon Sep 17 00:00:00 2001 From: zveinn Date: Sun, 24 Mar 2024 11:23:07 +0000 Subject: [PATCH 2/2] from string to any --- product.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.go b/product.go index e0979c9..8658314 100644 --- a/product.go +++ b/product.go @@ -12,7 +12,7 @@ type ProductAttributes struct { StatusFormatted string `json:"status_formatted"` ThumbURL string `json:"thumb_url"` LargeThumbURL string `json:"large_thumb_url"` - Price string `json:"price"` + Price any `json:"price"` PayWhatYouWant bool `json:"pay_what_you_want"` FromPrice *int `json:"from_price"` ToPrice *int `json:"to_price"`