data

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

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 CartItems

type CartItems struct {
	SubTotal     Price
	CartItemList []CartItem `xml:"CartItem"`
}

CartItems of a Cart

type CartResponse

type CartResponse struct {
	Cart Cart
}

CartResponse returned from a cart request

type EditorialReview

type EditorialReview struct {
	Source           string
	Content          string
	IsLinkSuppressed bool
}

A EditorialReview in EditorialReviews

type EditorialReviews

type EditorialReviews struct {
	EditorialReviewList []EditorialReview `xml:"EditorialReview"`
}

EditorialReviews response group

type Error

type Error struct {
	Code    string
	Message string
}

Error of Errors

type Errors

type Errors struct {
	ErrorList []Error `xml:"Error"`
}

Errors of a request

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

type ItemResponseBody struct {
	Request  Request
	ItemList []Item `xml:"Item"`
}

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 Language

type Language struct {
	Name string
	Type string
}

Language of an item

type Languages

type Languages struct {
	LanguageList []Language `xml:"Language"`
}

Languages for the item

func (Languages) Languages

func (l Languages) Languages() []string

Languages returns item languages as an easy to work with map

type Merchant

type Merchant struct {
	Name string
}

Merchant of the product

type Offer

type Offer struct {
	Merchant        Merchant
	OfferAttributes OfferAttributes
	OfferListing    OfferListing
}

A Offer of an OfferList

type OfferAttributes

type OfferAttributes struct {
	Condition string
}

OfferAttributes of an Offer

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

type Offers

type Offers struct {
	TotalOffers     int
	TotalOfferPages int
	OfferList       []Offer `xml:"Offer"`
}

Offers response group

type Price

type Price struct {
	Amount         int
	CurrencyCode   string
	FormattedPrice string
}

Price generic

type Request

type Request struct {
	IsValid bool
	Errors  Errors
}

Request information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL