Skip to content

Commit 6b45c28

Browse files
authored
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" }, ```
1 parent 25c35c2 commit 6b45c28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

entity/entity.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ type Item struct {
205205
} `json:",omitempty"`
206206
MerchantInfo *struct {
207207
DefaultShippingCountry string
208+
FeedbackCount int
209+
FeedbackRating float64
208210
ID string `json:"Id"`
209211
Name string
210212
} `json:",omitempty"`

0 commit comments

Comments
 (0)