Documentation
¶
Index ¶
- type AvailabilityAttributes
- type BrowseNode
- type BrowseNodes
- type Cart
- type CartItem
- type CartItems
- type CartResponse
- type EditorialReview
- type EditorialReviews
- type Error
- type Errors
- type Item
- type ItemAttributes
- type ItemResponse
- type ItemResponseBody
- type ItemSearchBody
- type ItemSearchResponse
- type Language
- type Languages
- type Merchant
- type Offer
- type OfferAttributes
- type OfferListing
- type OfferSummary
- type Offers
- type Price
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityAttributes ¶
type AvailabilityAttributes struct {
AvailabilityType string
MinimumHours string
MaximumHours string
}
AvailabilityAttributes holds information about an Offer availability
type BrowseNode ¶
type BrowseNode struct {
BrowseNodeID int `xml:"BrowseNodeId"`
Name string
Children []BrowseNode
Ancestors []BrowseNode
IsCategoryRoot bool
}
A BrowseNode is an entry in BrowseNodes
type BrowseNodes ¶
type BrowseNodes struct {
BrowserNodeList []BrowseNode `xml:"BrowseNode"`
}
BrowseNodes response group
type Cart ¶
type Cart struct {
Request Request
CartID string `xml:"CartId"`
HMAC string
URLEncodedHMAC string
PurchaseURL string
SubTotal Price
CartItems CartItems
}
The Cart of the CartResponse
type CartItem ¶
type CartItem struct {
CartItemID string `xml:"CartItemId"`
ASIN string
Quantity int
Title string
ProductGroup string
Price Price
ItemTotal Price
}
CartItem in CartItems
type CartResponse ¶
type CartResponse struct {
Cart Cart
}
CartResponse returned from a cart request
type EditorialReview ¶
A EditorialReview in EditorialReviews
type EditorialReviews ¶
type EditorialReviews struct {
EditorialReviewList []EditorialReview `xml:"EditorialReview"`
}
EditorialReviews response group
type Item ¶
type Item struct {
ASIN string
BrowseNodes BrowseNodes
DetailPageURL string
EditorialReviews EditorialReviews
ItemAttributes ItemAttributes
OfferSummary OfferSummary
Offers Offers
}
Item information
type ItemAttributes ¶
type ItemAttributes struct {
Authors []string `xml:"Author"`
Binding string
Brand string
EAN string
Edition string
Features []string `xml:"Features"`
ISBN string
Label string
Languages Languages
ListPrice Price
Manufacturer string
ProductGroup string
PublicationDate string
Publisher string
ReleaseDate string
Studio string
Title string
UPC string
}
ItemAttributes response group
type ItemResponse ¶
type ItemResponse struct {
Items ItemResponseBody
}
ItemResponse of an item request
type ItemResponseBody ¶
ItemResponseBody of a ItemResponse
type ItemSearchBody ¶
type ItemSearchBody struct {
Request Request
TotalResults int
TotalPages int
ItemList []Item `xml:"Item"`
}
ItemSearchBody of the ItemSearchResponse
type ItemSearchResponse ¶
type ItemSearchResponse struct {
Items ItemSearchBody
}
ItemSearchResponse of a search request
type Languages ¶
type Languages struct {
LanguageList []Language `xml:"Language"`
}
Languages for the item
type Offer ¶
type Offer struct {
Merchant Merchant
OfferAttributes OfferAttributes
OfferListing OfferListing
}
A Offer of an OfferList
type OfferListing ¶
type OfferListing struct {
OfferListingID string `xml:"OfferListingId"`
Price Price
AmountSaved Price
PercentageSaved int
Availability string
AvailabilityAttributes AvailabilityAttributes
IsEligibleForSuperSaverShipping bool
}
The OfferListing holds information about an Offer
type OfferSummary ¶
type OfferSummary struct {
LowestNewPrice Price
LowestUsedPrice Price
LowestCollectiblePrice Price
LowestRefurbishedPrice Price
TotalNew int
TotalUsed int
TotalCollectible int
TotalRefurbished int
}
OfferSummary response group
Click to show internal directories.
Click to hide internal directories.