first commit

This commit is contained in:
2017-09-12 20:57:38 +01:00
commit 704805e7b4
11 changed files with 865 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
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
}
type PrimaryCategory struct {
CategoryID string
}
type ItemSpecifics struct {
NameValueList []NameValueList
}
type NameValueList struct {
Name string
Value []string
}
type BrandMPN struct {
Brand, MPN string
}
type BestOfferDetails struct {
BestOfferEnabled bool
}
type ebayResponse struct {
Timestamp time.Time
Ack string
Errors []ebayResponseError
}