From 6b45c28463bff6cc8e85a0c7fb6c3a7c9deed798 Mon Sep 17 00:00:00 2001 From: Juampy NR Date: Wed, 11 Sep 2024 13:41:31 -0700 Subject: [PATCH] Add rating and rating cout Amazon PAAPI started returning rating info for selected clients. When they activate such feature, it comes via these two properties in their GetItems responses. Sample: ``` "MerchantInfo": { "FeedbackCount": 385, "FeedbackRating": 4.68, "Id": "ATVPDKIKX0DER", "Name": "Amazon.com" }, ``` --- entity/entity.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entity/entity.go b/entity/entity.go index 19a5241..9c19667 100644 --- a/entity/entity.go +++ b/entity/entity.go @@ -205,6 +205,8 @@ type Item struct { } `json:",omitempty"` MerchantInfo *struct { DefaultShippingCountry string + FeedbackCount int + FeedbackRating float64 ID string `json:"Id"` Name string } `json:",omitempty"`