mirror of
https://github.com/cubixle/go-ebay.git
synced 2026-04-24 21:24:42 +01:00
72 lines
1.3 KiB
Go
72 lines
1.3 KiB
Go
package commands
|
|
|
|
import "time"
|
|
|
|
type RequesterCredentials struct {
|
|
EBayAuthToken string `xml:"eBayAuthToken"`
|
|
}
|
|
|
|
type Response interface {
|
|
ResponseErrors() ebayErrors
|
|
GetResponse()
|
|
}
|
|
|
|
type ebayErrors []ebayResponseError
|
|
|
|
type ebayResponseError struct {
|
|
ShortMessage string
|
|
LongMessage string
|
|
ErrorCode int
|
|
SeverityCode string
|
|
ErrorClassification string
|
|
}
|
|
|
|
type ShippingServiceOption struct {
|
|
ShippingService string
|
|
ShippingServiceCost float64
|
|
ShippingServiceAdditionalCost float64
|
|
FreeShipping bool
|
|
}
|
|
|
|
type ReturnPolicy struct {
|
|
ReturnsAccepted, ReturnsAcceptedOption, ReturnsWithinOption, RefundOption string
|
|
}
|
|
|
|
type Storefront struct {
|
|
StoreCategoryID string
|
|
}
|
|
|
|
type ProductListingDetails struct {
|
|
UPC string
|
|
BrandMPN BrandMPN `xml:"BrandMPN"`
|
|
EAN string `xml:"EAN"`
|
|
}
|
|
|
|
type PrimaryCategory struct {
|
|
CategoryID string
|
|
}
|
|
|
|
type ItemSpecifics struct {
|
|
NameValueList []NameValueList
|
|
}
|
|
|
|
type NameValueList struct {
|
|
Name string
|
|
Value []string
|
|
}
|
|
|
|
type BrandMPN struct {
|
|
Brand string `xml:"Brand"`
|
|
MPN string `xml:"MPN"`
|
|
}
|
|
|
|
type BestOfferDetails struct {
|
|
BestOfferEnabled bool
|
|
}
|
|
|
|
type ebayResponse struct {
|
|
Timestamp time.Time
|
|
Ack string
|
|
Errors []ebayResponseError
|
|
}
|