Skip to content

Commit

Permalink
Add rating and rating cout
Browse files Browse the repository at this point in the history
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"
              },
```
  • Loading branch information
juampynr authored Sep 11, 2024
1 parent 25c35c2 commit 6b45c28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entity/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 6b45c28

Please sign in to comment.