Documentation ¶
Index ¶
- type AddOrderBody
- type AddOrderBodyItem
- type AddOrderReturn
- type AddOrderReturnData
- type AddOrderReturnErrorList
- type AfterbuyGlobal
- type CatalogsBody
- type CatalogsRequest
- type CatalogsRequestDataFilter
- type CatalogsRequestFilter
- type CatalogsRequestFilterValues
- type CatalogsReturn
- type CatalogsReturnCatalog
- type CatalogsReturnCatalogs
- type CatalogsReturnResult
- type Config
- type MailTemplatesBody
- type MailTemplatesRequest
- type MailTemplatesReturn
- type MailTemplatesReturnMailTemplate
- type MailTemplatesReturnMailTemplates
- type MailTemplatesReturnResult
- type ProductsBody
- type ProductsRequest
- type ProductsRequestDataFilter
- type ProductsRequestFilter
- type ProductsRequestFilterValues
- type ProductsReturn
- type ProductsReturnAdditionalDescriptionField
- type ProductsReturnAdditionalDescriptionFields
- type ProductsReturnAdditionalPrice
- type ProductsReturnAdditionalPrices
- type ProductsReturnAttribut
- type ProductsReturnAttributes
- type ProductsReturnBaseProduct
- type ProductsReturnBaseProducts
- type ProductsReturnBaseProductsRelationData
- type ProductsReturnCatalogs
- type ProductsReturnChilds
- type ProductsReturnChildsProductPicture
- type ProductsReturnEbayVariationData
- type ProductsReturnError
- type ProductsReturnErrorList
- type ProductsReturnFeature
- type ProductsReturnFeatures
- type ProductsReturnLanguageAt
- type ProductsReturnLanguageB
- type ProductsReturnLanguageBg
- type ProductsReturnLanguageCh
- type ProductsReturnLanguageCy
- type ProductsReturnLanguageCz
- type ProductsReturnLanguageDe
- type ProductsReturnLanguageDk
- type ProductsReturnLanguageE
- type ProductsReturnLanguageFin
- type ProductsReturnLanguageFr
- type ProductsReturnLanguageGb
- type ProductsReturnLanguageGr
- type ProductsReturnLanguageH
- type ProductsReturnLanguageHr
- type ProductsReturnLanguageI
- type ProductsReturnLanguageIrl
- type ProductsReturnLanguageIs
- type ProductsReturnLanguageJ
- type ProductsReturnLanguageKp
- type ProductsReturnLanguageLt
- type ProductsReturnLanguageLu
- type ProductsReturnLanguageLv
- type ProductsReturnLanguageMt
- type ProductsReturnLanguageN
- type ProductsReturnLanguageNl
- type ProductsReturnLanguageP
- type ProductsReturnLanguagePl
- type ProductsReturnLanguageRo
- type ProductsReturnLanguageRu
- type ProductsReturnLanguageS
- type ProductsReturnLanguageSk
- type ProductsReturnLanguageSlo
- type ProductsReturnLanguageTr
- type ProductsReturnLanguageUs
- type ProductsReturnMultiLanguage
- type ProductsReturnPaginationResult
- type ProductsReturnPartsFitment
- type ProductsReturnPartsProperties
- type ProductsReturnPartsProperty
- type ProductsReturnProduct
- type ProductsReturnProductPicture
- type ProductsReturnProductPictures
- type ProductsReturnProducts
- type ProductsReturnResult
- type ProductsReturnScaledDiscount
- type ProductsReturnScaledDiscounts
- type ShippingServicesBody
- type ShippingServicesRequest
- type ShippingServicesResult
- type ShippingServicesReturn
- type ShippingServicesShippingMethod
- type ShippingServicesShippingMethods
- type ShippingServicesShippingService
- type ShippingServicesShippingServices
- type ShippingServicesWeightDefinitions
- type SoldItemBody
- type SoldItemDataFilter
- type SoldItemFilter
- type SoldItemFilterValues
- type SoldItemRequest
- type SoldItemReturn
- type SoldItemReturnBaseProductData
- type SoldItemReturnBillingAddress
- type SoldItemReturnBuyerInfo
- type SoldItemReturnChildProduct
- type SoldItemReturnItemOriginalCurrency
- type SoldItemReturnOrder
- type SoldItemReturnOrderOriginalCurrency
- type SoldItemReturnOrders
- type SoldItemReturnPaymentInfo
- type SoldItemReturnResult
- type SoldItemReturnShippingAddress
- type SoldItemReturnShippingInfo
- type SoldItemReturnShopProductDetails
- type SoldItemReturnSoldItem
- type SoldItemReturnSoldItemAttribute
- type SoldItemReturnSoldItemAttributes
- type SoldItemReturnSoldItems
- type SoldItemReturnTags
- type SoldItemReturnVorgangsInfo
- type SoldItemsBody
- type SoldItemsDataFilter
- type SoldItemsFilter
- type SoldItemsFilterValues
- type SoldItemsRequest
- type SoldItemsReturn
- type SoldItemsReturnBaseProductData
- type SoldItemsReturnBillingAddress
- type SoldItemsReturnBuyerInfo
- type SoldItemsReturnChildProduct
- type SoldItemsReturnItemOriginalCurrency
- type SoldItemsReturnOrder
- type SoldItemsReturnOrderOriginalCurrency
- type SoldItemsReturnOrders
- type SoldItemsReturnPaymentInfo
- type SoldItemsReturnResult
- type SoldItemsReturnShippingAddress
- type SoldItemsReturnShippingInfo
- type SoldItemsReturnShopProductDetails
- type SoldItemsReturnSoldItem
- type SoldItemsReturnSoldItemAttribute
- type SoldItemsReturnSoldItemAttributes
- type SoldItemsReturnSoldItems
- type SoldItemsReturnTags
- type SoldItemsReturnVorgangsInfo
- type StockBody
- type StockProduct
- type StockProducts
- type StockRequest
- type StockReturn
- type StockReturnProduct
- type StockReturnProducts
- type StockReturnResult
- type StockReturnWarning
- type StockReturnWarningList
- type UpdateProductsBody
- type UpdateProductsProduct
- type UpdateProductsProductIdent
- type UpdateProductsProducts
- type UpdateProductsRequest
- type UpdateProductsReturn
- type UpdateProductsReturnResult
- type UpdateProductsReturnWarning
- type UpdateProductsReturnWarningList
- type UpdateSoldItemBody
- type UpdateSoldItemBodyBuyerInfo
- type UpdateSoldItemBodyOrder
- type UpdateSoldItemBodyOrders
- type UpdateSoldItemBodyPaymentInfo
- type UpdateSoldItemBodyRequest
- type UpdateSoldItemBodyShippingAddress
- type UpdateSoldItemBodyShippingInfo
- type UpdateSoldItemBodyTags
- type UpdateSoldItemBodyVorgangsInfo
- type UpdateSoldItemReturn
- type UpdateSoldItemReturnError
- type UpdateSoldItemReturnErrorList
- type UpdateSoldItemReturnResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOrderBody ¶
type AddOrderBody struct { Action string PartnerToken string UserToken string ItemNo string KUsername string KSalutation string KCompany string KFirstName string KLastName string KStreet string KStreet2 string KZip string KLocation string KState string KCountry string KPhone string KFax string KEmail string DeliveryAddress string KLSalutation string KLCompany string KLFirstName string KLLastName string KLStreet string KLStreet2 string KLZip string KLLocation string KLState string KLCountry string KLPhone string Comment string UseComplWeight string UseProductTaxRate string BuyDate string ShippingMethod string ShippingCosts string PaymentMethodsSurcharge string NoFeedback string NoShippingCalc string ShippingGroup string DoNotDisplayVat string PaymentMethod string PaymentFunctionId string VMemo string OrderInfo1 string OrderInfo2 string OrderInfo3 string VId string SoldCurrency string SetPay string SetPayDate string CheckVId string PaymentStatus string PaymentTransactionId string CustomerIdentification string ArticleIdentification string StockType string B1 string Items []AddOrderBodyItem }
AddOrderBody is to structure the order body data
type AddOrderBodyItem ¶
type AddOrderBodyItem struct { ArticleNo string AlternArticleNo1 string AlternArticleNo2 string ArticleName string ArticleEPrice string ArticleVat string ArticleQuantity string ArticleLink string Attribute string ArticleMasterId string ArticleTag1 string ArticleTag2 string ArticleTag3 string ArticleTag4 string ArticleTag5 string }
type AddOrderReturn ¶
type AddOrderReturn struct { XmlName xml.Name `xml:"result"` Success int `xml:"success"` Action string `xml:"Action"` Data AddOrderReturnData `xml:"data"` ErrorList []AddOrderReturnErrorList `xml:"errorlist"` }
AddOrderReturn is to decode xml data
func AddOrder ¶
func AddOrder(body AddOrderBody) (AddOrderReturn, error)
AddOrder is to add a new order via shop interface
type AddOrderReturnData ¶
type AddOrderReturnErrorList ¶ added in v1.8.4
type AddOrderReturnErrorList struct {
Error string `xml:"error"`
}
type AfterbuyGlobal ¶
type AfterbuyGlobal struct { PartnerId int `xml:"PartnerID,omitempty"` PartnerPassword string `xml:"PartnerPassword,omitempty"` UserId string `xml:"UserID,omitempty"` UserPassword string `xml:"UserPassword,omitempty"` PartnerToken string `xml:"PartnerToken,omitempty"` AccountToken string `xml:"AccountToken,omitempty"` CallName string `xml:"CallName,omitempty"` DetailLevel int `xml:"DetailLevel,omitempty"` ErrorLanguage string `xml:"ErrorLanguage,omitempty"` }
AfterbuyGlobal is to define afterbuy global data
type CatalogsBody ¶
type CatalogsBody struct {
Request CatalogsRequest `xml:"Request"`
}
CatalogsBody is to structure the xml data
type CatalogsRequest ¶
type CatalogsRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` MaxCatalogs int `xml:"MaxCatalogs"` DataFilter *CatalogsRequestDataFilter `xml:"DataFilter"` }
type CatalogsRequestDataFilter ¶
type CatalogsRequestDataFilter struct {
Filter []CatalogsRequestFilter `xml:"Filter"`
}
type CatalogsRequestFilter ¶
type CatalogsRequestFilter struct { FilterName string `xml:"FilterName"` FilterValues CatalogsRequestFilterValues `xml:"FilterValues"` }
type CatalogsReturn ¶
type CatalogsReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result CatalogsReturnResult `xml:"Result"` }
CatalogsReturn is to decode the xml return data
func Catalogs ¶
func Catalogs(body CatalogsBody) (CatalogsReturn, error)
Catalogs is to get all catalogs from ab interface
type CatalogsReturnCatalog ¶
type CatalogsReturnCatalog struct { XmlName xml.Name `xml:"Catalog"` CatalogId int `xml:"CatalogID"` Name string `xml:"Name"` Description string `xml:"Description"` ParentId int `xml:"ParentID"` Level int `xml:"Level"` Position int `xml:"Position"` AdditionalText string `xml:"AdditionalText"` Show int `xml:"Show"` URL string `xml:"URL"` Picture1 string `xml:"Picture1"` Picture2 string `xml:"Picture2"` TitlePicture string `xml:"TitlePicture"` }
type CatalogsReturnCatalogs ¶
type CatalogsReturnCatalogs struct { XmlName xml.Name `xml:"Catalogs"` Catalog []CatalogsReturnCatalog `xml:"Catalog"` }
type CatalogsReturnResult ¶
type CatalogsReturnResult struct { XmlName xml.Name `xml:"Result"` HasMoreCatalogs int `xml:"HasMoreCatalogs"` Catalogs CatalogsReturnCatalogs `xml:"Catalogs"` LastCatalogId int `xml:"LastCatalogID"` }
type MailTemplatesBody ¶ added in v1.14.0
type MailTemplatesBody struct {
Request MailTemplatesRequest `xml:"Request"`
}
MailTemplatesBody is to structure the xml data
type MailTemplatesRequest ¶ added in v1.14.0
type MailTemplatesRequest struct {
AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"`
}
type MailTemplatesReturn ¶ added in v1.14.0
type MailTemplatesReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` Result MailTemplatesReturnResult `xml:"Result"` }
MailTemplatesReturn is to decode the xml return data
func MailTemplates ¶ added in v1.14.0
func MailTemplates(body MailTemplatesBody) (MailTemplatesReturn, error)
MailTemplates is to get all mail templates
type MailTemplatesReturnMailTemplate ¶ added in v1.14.0
type MailTemplatesReturnMailTemplates ¶ added in v1.14.0
type MailTemplatesReturnMailTemplates struct { XmlName xml.Name `xml:"MailTemplates"` MailTemplate []MailTemplatesReturnMailTemplate `xml:"MailTemplate"` }
type MailTemplatesReturnResult ¶ added in v1.14.0
type MailTemplatesReturnResult struct { XmlName xml.Name `xml:"Result"` MailTemplates MailTemplatesReturnMailTemplates `xml:"MailTemplates"` }
type ProductsBody ¶
type ProductsBody struct {
Request ProductsRequest `xml:"Request"`
}
ProductsBody is to send the body data
type ProductsRequest ¶
type ProductsRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` DataFilter *ProductsRequestDataFilter `xml:"DataFilter"` MaxShopItems int `xml:"MaxShopItems"` SuppressBaseProductRelatedData int `xml:"SuppressBaseProductRelatedData"` PaginationEnabled int `xml:"PaginationEnabled"` PageNumber int `xml:"PageNumber"` }
type ProductsRequestDataFilter ¶ added in v1.6.7
type ProductsRequestDataFilter struct {
Filter []ProductsRequestFilter `xml:"Filter"`
}
type ProductsRequestFilter ¶ added in v1.6.7
type ProductsRequestFilter struct { FilterName string `xml:"FilterName"` FilterValues ProductsRequestFilterValues `xml:"FilterValues"` }
type ProductsRequestFilterValues ¶ added in v1.6.7
type ProductsRequestFilterValues struct { LevelFrom int `xml:"LevelFrom,omitempty"` LevelTo int `xml:"LevelTo,omitempty"` ValueFrom int `xml:"ValueFrom,omitempty"` ValueTo int `xml:"ValueTo,omitempty"` DateFrom string `xml:"DateFrom,omitempty"` DateTo string `xml:"DateTo,omitempty"` FilterValue []string `xml:"FilterValue,omitempty"` }
type ProductsReturn ¶
type ProductsReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result ProductsReturnResult `xml:"Result"` }
ProductsReturn is to decode the xml data
func Products ¶
func Products(body ProductsBody) (ProductsReturn, error)
Products are to get all products from ab interface
type ProductsReturnAdditionalDescriptionField ¶ added in v1.12.1
type ProductsReturnAdditionalDescriptionFields ¶ added in v1.12.1
type ProductsReturnAdditionalDescriptionFields struct { XmlName xml.Name `xml:"AdditionalDescriptionFields"` AdditionalDescriptionField []ProductsReturnAdditionalDescriptionField `xml:"AdditionalDescriptionField"` }
type ProductsReturnAdditionalPrice ¶ added in v1.4.4
type ProductsReturnAdditionalPrices ¶ added in v1.4.4
type ProductsReturnAdditionalPrices struct { XmlName xml.Name `xml:"AdditionalPrices"` AdditionalPrice []ProductsReturnAdditionalPrice `xml:"AdditionalPrice"` }
type ProductsReturnAttribut ¶ added in v1.6.4
type ProductsReturnAttributes ¶ added in v1.6.4
type ProductsReturnAttributes struct { XmlName xml.Name `xml:"Attributes"` Attribut []ProductsReturnAttribut `xml:"Attribut"` }
type ProductsReturnBaseProduct ¶
type ProductsReturnBaseProduct struct { XmlName xml.Name `xml:"BaseProduct"` BaseProductId int `xml:"BaseProductID"` BaseProductType int `xml:"BaseProductType"` BaseProductsRelationData ProductsReturnBaseProductsRelationData `xml:"BaseProductsRelationData"` }
type ProductsReturnBaseProducts ¶
type ProductsReturnBaseProducts struct { XmlName xml.Name `xml:"BaseProducts"` BaseProduct []ProductsReturnBaseProduct `xml:"BaseProduct"` }
type ProductsReturnCatalogs ¶
type ProductsReturnChilds ¶ added in v1.12.1
type ProductsReturnChilds struct { XmlName xml.Name `xml:"Childs"` ProductPicture []ProductsReturnChildsProductPicture `xml:"ProductPicture"` }
type ProductsReturnChildsProductPicture ¶ added in v1.12.1
type ProductsReturnEbayVariationData ¶
type ProductsReturnEbayVariationData struct { XmlName xml.Name `xml:"eBayVariationData"` EbayVariationName string `xml:"eBayVariationName"` EbayVariationValue string `xml:"eBayVariationValue"` EbayVariationPosition int `xml:"eBayVariationPosition"` EbayVariationUrls string `xml:"eBayVariationUrls"` }
type ProductsReturnError ¶ added in v1.11.2
type ProductsReturnErrorList ¶ added in v1.11.2
type ProductsReturnErrorList struct { XmlName xml.Name `xml:"ErrorList"` Error []ProductsReturnError `xml:"Error"` }
type ProductsReturnFeature ¶ added in v1.9.8
type ProductsReturnFeatures ¶ added in v1.9.8
type ProductsReturnFeatures struct { XmlName xml.Name `xml:"Features"` Feature []ProductsReturnFeature `xml:"Feature"` }
type ProductsReturnLanguageAt ¶ added in v1.9.4
type ProductsReturnLanguageB ¶ added in v1.9.4
type ProductsReturnLanguageBg ¶ added in v1.9.4
type ProductsReturnLanguageCh ¶ added in v1.9.4
type ProductsReturnLanguageCy ¶ added in v1.9.4
type ProductsReturnLanguageCz ¶ added in v1.9.4
type ProductsReturnLanguageDe ¶ added in v1.9.4
type ProductsReturnLanguageDk ¶ added in v1.9.4
type ProductsReturnLanguageE ¶ added in v1.9.4
type ProductsReturnLanguageFin ¶ added in v1.9.4
type ProductsReturnLanguageFr ¶ added in v1.9.4
type ProductsReturnLanguageGb ¶ added in v1.9.4
type ProductsReturnLanguageGr ¶ added in v1.9.4
type ProductsReturnLanguageH ¶ added in v1.9.4
type ProductsReturnLanguageHr ¶ added in v1.9.4
type ProductsReturnLanguageI ¶ added in v1.9.4
type ProductsReturnLanguageIrl ¶ added in v1.9.4
type ProductsReturnLanguageIs ¶ added in v1.9.4
type ProductsReturnLanguageJ ¶ added in v1.9.4
type ProductsReturnLanguageKp ¶ added in v1.9.4
type ProductsReturnLanguageLt ¶ added in v1.9.4
type ProductsReturnLanguageLu ¶ added in v1.9.4
type ProductsReturnLanguageLv ¶ added in v1.9.4
type ProductsReturnLanguageMt ¶ added in v1.9.4
type ProductsReturnLanguageN ¶ added in v1.9.4
type ProductsReturnLanguageNl ¶ added in v1.9.4
type ProductsReturnLanguageP ¶ added in v1.9.4
type ProductsReturnLanguagePl ¶ added in v1.9.4
type ProductsReturnLanguageRo ¶ added in v1.9.4
type ProductsReturnLanguageRu ¶ added in v1.9.4
type ProductsReturnLanguageS ¶ added in v1.9.4
type ProductsReturnLanguageSk ¶ added in v1.9.4
type ProductsReturnLanguageSlo ¶ added in v1.9.4
type ProductsReturnLanguageTr ¶ added in v1.9.4
type ProductsReturnLanguageUs ¶ added in v1.9.4
type ProductsReturnMultiLanguage ¶ added in v1.9.4
type ProductsReturnMultiLanguage struct { XmlName xml.Name `xml:"MultiLanguage"` At ProductsReturnLanguageAt `xml:"AT"` B ProductsReturnLanguageB `xml:"B"` Bg ProductsReturnLanguageBg `xml:"BG"` Ch ProductsReturnLanguageCh `xml:"CH"` Cy ProductsReturnLanguageCy `xml:"CY"` Cz ProductsReturnLanguageCz `xml:"CZ"` De ProductsReturnLanguageDe `xml:"DE"` Dk ProductsReturnLanguageDe `xml:"DK"` E ProductsReturnLanguageE `xml:"E"` Fin ProductsReturnLanguageFin `xml:"FIN"` Fr ProductsReturnLanguageFr `xml:"FR"` Gb ProductsReturnLanguageGb `xml:"GB"` Gr ProductsReturnLanguageGr `xml:"GR"` H ProductsReturnLanguageH `xml:"H"` Hr ProductsReturnLanguageHr `xml:"HR"` I ProductsReturnLanguageI `xml:"I"` Irl ProductsReturnLanguageI `xml:"IRL"` Is ProductsReturnLanguageIs `xml:"IS"` J ProductsReturnLanguageJ `xml:"J"` Kp ProductsReturnLanguageKp `xml:"KP"` Lt ProductsReturnLanguageLt `xml:"LT"` Lu ProductsReturnLanguageLu `xml:"LU"` Lv ProductsReturnLanguageLv `xml:"LV"` Mt ProductsReturnLanguageMt `xml:"MT"` N ProductsReturnLanguageN `xml:"N"` Nl ProductsReturnLanguageNl `xml:"NL"` P ProductsReturnLanguageP `xml:"P"` Pl ProductsReturnLanguagePl `xml:"PL"` Ro ProductsReturnLanguageRo `xml:"RO"` Ru ProductsReturnLanguageRu `xml:"RU"` S ProductsReturnLanguageS `xml:"S"` Sk ProductsReturnLanguageSk `xml:"SK"` Slo ProductsReturnLanguageSlo `xml:"SLO"` Tr ProductsReturnLanguageTr `xml:"TR"` Us ProductsReturnLanguageUs `xml:"US"` }
type ProductsReturnPartsFitment ¶ added in v1.9.8
type ProductsReturnPartsFitment struct { XmlName xml.Name `xml:"ProductsReturnPartsFitment"` PartsProperties []ProductsReturnPartsProperties `xml:"PartsProperties"` }
type ProductsReturnPartsProperties ¶ added in v1.9.8
type ProductsReturnPartsProperties struct { XmlName xml.Name `xml:"PartsProperties"` PartsProperty []ProductsReturnPartsProperty `xml:"PartsProperty"` }
type ProductsReturnPartsProperty ¶ added in v1.9.8
type ProductsReturnProduct ¶
type ProductsReturnProduct struct { XmlName xml.Name `xml:"Product"` ProductShopOption int `xml:"ProductShopOption"` ProductId int `xml:"ProductID"` Anr int `xml:"Anr"` Ean string `xml:"EAN"` Name string `xml:"Name"` CanonicalUrl string `xml:"CanonicalUrl"` SeoName string `xml:"SeoName"` ModDate string `xml:"ModDate"` BaseProductFlag int `xml:"BaseProductFlag"` BaseProductShowMode int `xml:"BaseProductShowMode"` BaseProducts ProductsReturnBaseProducts `xml:"BaseProducts"` ShortDescription string `xml:"ShortDescription"` Memo string `xml:"Memo"` GoogleBaseLabels string `xml:"GoogleBaseLabels"` HeaderId int `xml:"HeaderID"` HeaderDescriptionName string `xml:"HeaderDescriptionName"` HeaderDescriptionValue string `xml:"HeaderDescriptionValue"` Description string `xml:"Description"` Keywords string `xml:"Keywords"` AvailableShop int `xml:"AvailableShop"` Quantity int `xml:"Quantity"` AuctionQuantity int `xml:"AuctionQuantity"` Stock int `xml:"Stock"` Discontinued int `xml:"Discontinued"` MergeStock int `xml:"MergeStock"` UnitOfQuantity string `xml:"UnitOfQuantity"` BasepriceFactor string `xml:"BasepriceFactor"` MinimumStock int `xml:"MinimumStock"` MinimumOrderQuantity int `xml:"MinimumOrderQuantity"` FullFilmentQuantity int `xml:"FullFilmentQuantity"` FullFilmentImport interface{} `xml:"FullFilmentImport"` SellingPrice string `xml:"SellingPrice"` BuyingPrice string `xml:"BuyingPrice"` DealerPrice string `xml:"DealerPrice"` AdditionalPrices ProductsReturnAdditionalPrices `xml:"AdditionalPrices"` Level int `xml:"Level"` Position int `xml:"Position"` TitleReplace int `xml:"TitleReplace"` ScaledDiscounts ProductsReturnScaledDiscounts `xml:"ScaledDiscounts"` TaxRate string `xml:"TaxRate"` Weight string `xml:"Weight"` SearchAlias string `xml:"SearchAlias"` Froogle int `xml:"Froogle"` GoogleBaseShipping string `xml:"GoogleBaseShipping"` Kelkoo int `xml:"Kelkoo"` ShippingGroup string `xml:"ShippingGroup"` ShopShippingGroup string `xml:"ShopShippingGroup"` SearchEngineShipping string `xml:"SearchEngineShipping"` CrossCatalogId int `xml:"CrossCatalogID"` Features ProductsReturnFeatures `xml:"Features"` FreeValue1 string `xml:"FreeValue1"` FreeValue2 string `xml:"FreeValue2"` FreeValue3 string `xml:"FreeValue3"` FreeValue4 string `xml:"FreeValue4"` FreeValue5 string `xml:"FreeValue5"` FreeValue6 string `xml:"FreeValue6"` FreeValue7 string `xml:"FreeValue7"` FreeValue8 string `xml:"FreeValue8"` FreeValue9 string `xml:"FreeValue9"` FreeValue10 string `xml:"FreeValue10"` DeliveryTime string `xml:"DeliveryTime"` Stocklocation1 string `xml:"Stocklocation_1"` Stocklocation2 string `xml:"Stocklocation_2"` Stocklocation3 string `xml:"Stocklocation_3"` Stocklocation4 string `xml:"Stocklocation_4"` ImageSmallUrl string `xml:"ImageSmallURL"` ImageLargeUrl string `xml:"ImageLargeURL"` ProductPictures ProductsReturnProductPictures `xml:"ProductPictures"` AmazonStandardProductIdType string `xml:"AmazonStandardProductIDType"` AmazonStandardProductIdValue string `xml:"AmazonStandardProductIDValue"` ManufacturerStandardProductIdType string `xml:"ManufacturerStandardProductIDType"` ManufacturerStandardProductIdValue string `xml:"ManufacturerStandardProductIDValue"` ProductBrand string `xml:"ProductBrand"` CustomsTariffNumber string `xml:"CustomsTariffNumber"` CountryOfOrigin string `xml:"CountryOfOrigin"` LastSale string `xml:"LastSale"` AdditionalDescriptionFields ProductsReturnAdditionalDescriptionFields `xml:"AdditionalDescriptionFields"` Catalogs ProductsReturnCatalogs `xml:"Catalogs"` Attributes ProductsReturnAttributes `xml:"Attributes"` PartsFitment ProductsReturnPartsFitment `xml:"PartsFitment"` GoogleProductCategory string `xml:"GoogleProductCategory"` Facebook int `xml:"Facebook"` ManufacturerPartNumber string `xml:"ManufacturerPartNumber"` Condition int `xml:"Condition"` AgeGroup int `xml:"AgeGroup"` Gender int `xml:"Gender"` Material string `xml:"Material"` Pattern string `xml:"Pattern"` CustomLabel0 string `xml:"CustomLabel0"` CustomLabel1 string `xml:"CustomLabel1"` CustomLabel2 string `xml:"CustomLabel2"` CustomLabel3 string `xml:"CustomLabel3"` CustomLabel4 string `xml:"CustomLabel4"` MultiLanguage ProductsReturnMultiLanguage `xml:"MultiLanguage"` }
type ProductsReturnProductPicture ¶ added in v1.6.4
type ProductsReturnProductPictures ¶ added in v1.6.4
type ProductsReturnProductPictures struct { XmlName xml.Name `xml:"ProductPictures"` ProductPicture []ProductsReturnProductPicture `xml:"ProductPicture"` }
type ProductsReturnProducts ¶
type ProductsReturnProducts struct { XmlName xml.Name `xml:"Products"` Product []ProductsReturnProduct `xml:"Product"` }
type ProductsReturnResult ¶
type ProductsReturnResult struct { XmlName xml.Name `xml:"Result"` HasMoreProducts int `xml:"HasMoreProducts"` Products ProductsReturnProducts `xml:"Products"` ShippingServiceList string `xml:"ShippingServiceList"` LastProductId int `xml:"LastProductID"` PaginationResult ProductsReturnPaginationResult `xml:"PaginationResult"` ErrorList ProductsReturnErrorList `xml:"ErrorList"` }
type ProductsReturnScaledDiscounts ¶
type ProductsReturnScaledDiscounts struct { XmlName xml.Name `xml:"ScaledDiscounts"` ScaledDiscount []ProductsReturnScaledDiscount `xml:"ScaledDiscount"` }
type ShippingServicesBody ¶ added in v1.5.0
type ShippingServicesBody struct {
Request ShippingServicesRequest `xml:"Request"`
}
ShippingServicesBody is to send the body data
type ShippingServicesRequest ¶ added in v1.5.0
type ShippingServicesRequest struct {
AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"`
}
type ShippingServicesResult ¶ added in v1.5.0
type ShippingServicesResult struct { XmlName xml.Name `xml:"Result"` ShippingServices ShippingServicesShippingServices `xml:"ShippingServices"` }
type ShippingServicesReturn ¶ added in v1.5.0
type ShippingServicesReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result ShippingServicesResult `xml:"Result"` }
ShippingServicesReturn is to decode the xml data
func ShippingServices ¶ added in v1.5.0
func ShippingServices(body ShippingServicesBody) (ShippingServicesReturn, error)
ShippingServices is to check all shipping services
type ShippingServicesShippingMethod ¶ added in v1.5.0
type ShippingServicesShippingMethod struct { XmlName xml.Name `xml:"ShippingMethod"` ShippingMethodId int `xml:"ShippingMethodID"` Name string `xml:"Name"` CountryGroup string `xml:"CountryGroup"` CountryGroupCountries string `xml:"CountryGroupCountries"` Level int `xml:"Level"` TaxRate int `xml:"TaxRate"` Priority int `xml:"Priority"` PriceFrom string `xml:"PriceFrom"` PriceTo string `xml:"PriceTo"` IslandAdditionalCosts string `xml:"IslandAdditionalCosts"` FreeShippingPriceFrom string `xml:"FreeShippingPriceFrom"` AdditionalItemCosts string `xml:"AdditionalItemCosts"` WeightDefinitions ShippingServicesWeightDefinitions `xml:"WeightDefinitions"` }
type ShippingServicesShippingMethods ¶ added in v1.5.0
type ShippingServicesShippingMethods struct { XmlName xml.Name `xml:"ShippingMethods"` ShippingMethod []ShippingServicesShippingMethod `xml:"ShippingMethod"` }
type ShippingServicesShippingService ¶ added in v1.5.0
type ShippingServicesShippingServices ¶ added in v1.5.0
type ShippingServicesShippingServices struct { XmlName xml.Name `xml:"ShippingServices"` DefaultShippingGroup string `xml:"DefaultShippingGroup"` ShippingService []ShippingServicesShippingService `xml:"ShippingService"` }
type ShippingServicesWeightDefinitions ¶ added in v1.5.0
type SoldItemBody ¶
type SoldItemBody struct {
Request SoldItemRequest `xml:"Request"`
}
SoldItemBody is to send the body data
type SoldItemDataFilter ¶ added in v1.5.7
type SoldItemDataFilter struct {
Filter SoldItemFilter `xml:"Filter,omitempty"`
}
type SoldItemFilter ¶ added in v1.6.5
type SoldItemFilter struct { FilterName string `xml:"FilterName,omitempty"` FilterValues SoldItemFilterValues `xml:"FilterValues,omitempty"` }
type SoldItemFilterValues ¶ added in v1.6.5
type SoldItemFilterValues struct {
FilterValue int `xml:"FilterValue,omitempty"`
}
type SoldItemRequest ¶
type SoldItemRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` DataFilter SoldItemDataFilter `xml:"DataFilter"` ReturnHiddenItems int `xml:"ReturnHiddenItems"` }
type SoldItemReturn ¶
type SoldItemReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result SoldItemReturnResult `xml:"Result"` }
SoldItemReturn is to decode the xml data
func SoldItem ¶
func SoldItem(body SoldItemBody) (SoldItemReturn, error)
SoldItem is to get a sold item by id
type SoldItemReturnBaseProductData ¶ added in v1.6.2
type SoldItemReturnBaseProductData struct { XmlName xml.Name `xml:"BaseProductData"` BaseProductType int `xml:"BaseProductType"` ChildProduct SoldItemReturnChildProduct `xml:"ChildProduct"` }
type SoldItemReturnBillingAddress ¶
type SoldItemReturnBillingAddress struct { XmlName xml.Name `xml:"BillingAddress"` AfterbuyUserId int `xml:"AfterbuyUserID"` AfterbuyUserIdAlt int `xml:"AfterbuyUserIDAlt"` UserIdPlattform string `xml:"UserIDPlattform"` FirstName string `xml:"FirstName"` LastName string `xml:"LastName"` Title string `xml:"Title"` Company string `xml:"Company"` Street string `xml:"Street"` Street2 string `xml:"Street2"` PostalCode string `xml:"PostalCode"` City string `xml:"City"` StateOrProvince string `xml:"StateOrProvince"` Country string `xml:"Country"` CountryISO string `xml:"CountryISO"` Phone string `xml:"Phone"` Fax string `xml:"Fax"` Mail string `xml:"Mail"` IsMerchant int `xml:"IsMerchant"` TaxIdNumber string `xml:"TaxIDNumber"` }
type SoldItemReturnBuyerInfo ¶
type SoldItemReturnBuyerInfo struct { XmlName xml.Name `xml:"BuyerInfo"` BillingAddress SoldItemReturnBillingAddress `xml:"BillingAddress"` ShippingAddress SoldItemReturnShippingAddress `xml:"ShippingAddress"` }
type SoldItemReturnChildProduct ¶ added in v1.6.2
type SoldItemReturnChildProduct struct { XmlName xml.Name `xml:"ChildProduct"` ProductId int `xml:"ProductID"` ProductANr int `xml:"ProductANr"` ProductName string `xml:"ProductName"` ProductQuantity int `xml:"ProductQuantity"` ProductVat int `xml:"ProductVAT"` ProductWeight string `xml:"ProductWeight"` ProductUnitPrice string `xml:"ProductUnitPrice"` }
type SoldItemReturnOrder ¶
type SoldItemReturnOrder struct { XmlName xml.Name `xml:"Order"` InvoiceNumber string `xml:"InvoiceNumber"` OrderId int `xml:"OrderID"` EbayAccount string `xml:"EbayAccount"` AmazonAccount string `xml:"AmazonAccount"` AlternativeItemNumber1 string `xml:"AlternativeItemNumber1"` Anr int `xml:"Anr"` FeedbackDate string `xml:"FeedbackDate"` AdditionalInfo string `xml:"AdditionalInfo"` TrackingLink string `xml:"TrackingLink"` Memo string `xml:"Memo"` FeedbackLink string `xml:"FeedbackLink"` OrderDate string `xml:"OrderDate"` OrderIdAlt interface{} `xml:"OrderIDAlt"` PaymentInfo SoldItemReturnPaymentInfo `xml:"PaymentInfo"` IsCheckoutConfirmedByCustomer int `xml:"IsCheckoutConfirmedByCustomer"` BuyerInfo SoldItemReturnBuyerInfo `xml:"BuyerInfo"` ContainseBayPlusTransaction bool `xml:"ContainseBayPlusTransaction"` SoldItems SoldItemReturnSoldItems `xml:"SoldItems"` ShippingInfo SoldItemReturnShippingInfo `xml:"ShippingInfo"` VorgangsInfo SoldItemReturnVorgangsInfo `xml:"VorgangsInfo"` OrderOriginalCurrency SoldItemReturnOrderOriginalCurrency `xml:"OrderOriginalCurrency"` }
type SoldItemReturnOrderOriginalCurrency ¶
type SoldItemReturnOrderOriginalCurrency struct { XmlName xml.Name `xml:"OriginalCurrency"` EbayShippingAmount string `xml:"EbayShippingAmount"` ShippingAmount string `xml:"ShippingAmount"` PaymentSurcharge string `xml:"PaymentSurcharge"` PaymentSurchargePerCent string `xml:"PaymentSurchargePerCent"` InvoiceAmount string `xml:"InvoiceAmount"` ExchangeRate string `xml:"ExchangeRate"` PayedAmount string `xml:"PayedAmount"` }
type SoldItemReturnOrders ¶
type SoldItemReturnOrders struct { XmlName xml.Name `xml:"Orders"` Order SoldItemReturnOrder `xml:"Order"` }
type SoldItemReturnPaymentInfo ¶
type SoldItemReturnPaymentInfo struct { XmlName xml.Name `xml:"PaymentInfo"` PaymentId string `xml:"PaymentID"` PaymentMethod string `xml:"PaymentMethod"` PaymentFunction string `xml:"PaymentFunction"` PaymentTransactionId string `xml:"PaymentTransactionID"` PaymentStatus string `xml:"PaymentStatus"` PaymentDate string `xml:"PaymentDate"` AlreadyPaid string `xml:"AlreadyPaid"` FullAmount string `xml:"FullAmount"` InvoiceDate string `xml:"InvoiceDate"` }
type SoldItemReturnResult ¶
type SoldItemReturnShippingAddress ¶ added in v1.6.0
type SoldItemReturnShippingAddress struct { XmlName xml.Name `xml:"ShippingAddress"` FirstName string `xml:"FirstName"` LastName string `xml:"LastName"` Company string `xml:"Company"` Street string `xml:"Street"` Street2 string `xml:"Street2"` PostalCode string `xml:"PostalCode"` City string `xml:"City"` StateOrProvince string `xml:"StateOrProvince"` Phone string `xml:"Phone"` Country string `xml:"Country"` CountryISO string `xml:"CountryISO"` TaxIDNumber string `xml:"TaxIDNumber"` }
type SoldItemReturnShippingInfo ¶
type SoldItemReturnShippingInfo struct { XmlName xml.Name `xml:"ShippingInfo"` ShippingMethod string `xml:"ShippingMethod"` ShippingCost string `xml:"ShippingCost"` ShippingAdditionalCost string `xml:"ShippingAdditionalCost"` ShippingTotalCost string `xml:"ShippingTotalCost"` ShippingTaxRate string `xml:"ShippingTaxRate"` DeliveryDate string `xml:"DeliveryDate"` }
type SoldItemReturnShopProductDetails ¶
type SoldItemReturnShopProductDetails struct { XmlName xml.Name `xml:"ShopProductDetails"` ProductId int `xml:"ProductID"` Name string `xml:"Name"` Ean string `xml:"EAN"` Anr int `xml:"Anr"` BasepriceFactor string `xml:"BasepriceFactor"` BaseProductData SoldItemReturnBaseProductData `xml:"BaseProductData"` }
type SoldItemReturnSoldItem ¶
type SoldItemReturnSoldItem struct { XmlName xml.Name `xml:"SoldItem"` ItemDetailsDone int `xml:"ItemDetailsDone"` ItemId int `xml:"ItemID"` AlternativeItemNumber1 string `xml:"AlternativeItemNumber1"` AlternativeItemNumber string `xml:"AlternativeItemNumber"` Anr int `xml:"Anr"` FulfillmentServiceLevel int `xml:"FulfillmentServiceLevel"` IsAmazonInvoiced bool `xml:"IsAmazonInvoiced"` PlatformSpecificOrderId string `xml:"PlatformSpecificOrderId"` EBayTransactionId int `xml:"eBayTransactionID"` EBayPlusTransaction bool `xml:"eBayPlusTransaction"` InternalItemType int `xml:"InternalItemType"` UserDefinedFlag int `xml:"UserDefinedFlag"` ItemTitle string `xml:"ItemTitle"` ItemQuantity int `xml:"ItemQuantity"` ItemPrice string `xml:"ItemPrice"` ItemOriginalCurrency SoldItemReturnItemOriginalCurrency `xml:"ItemOriginalCurrency"` ItemEndDate string `xml:"ItemEndDate"` TaxRate string `xml:"TaxRate"` TaxCollectedBy int `xml:"TaxCollectedBy"` ItemWeight string `xml:"ItemWeight"` ItemModDate string `xml:"ItemModDate"` ItemPlatformName string `xml:"ItemPlatformName"` ItemLink string `xml:"ItemLink"` EBayFeedbackCompleted int `xml:"eBayFeedbackCompleted"` EBayFeedbackReceived int `xml:"eBayFeedbackReceived"` ShopProductDetails SoldItemReturnShopProductDetails `xml:"ShopProductDetails"` SoldItemAttributes SoldItemReturnSoldItemAttributes `xml:"SoldItemAttributes"` Tags SoldItemReturnTags `xml:"Tags"` }
type SoldItemReturnSoldItemAttribute ¶ added in v1.9.6
type SoldItemReturnSoldItemAttributes ¶ added in v1.9.6
type SoldItemReturnSoldItemAttributes struct { XmlName xml.Name `xml:"SoldItemAttributes"` SoldItemAttribute []SoldItemReturnSoldItemAttribute `xml:"SoldItemAttribute"` }
type SoldItemReturnSoldItems ¶
type SoldItemReturnSoldItems struct { XmlName xml.Name `xml:"SoldItems"` SoldItem []SoldItemReturnSoldItem `xml:"SoldItem"` ItemsInOrder int `xml:"ItemsInOrder"` }
type SoldItemReturnTags ¶ added in v1.8.7
type SoldItemReturnVorgangsInfo ¶ added in v1.7.2
type SoldItemsBody ¶ added in v1.5.7
type SoldItemsBody struct {
Request SoldItemsRequest `xml:"Request"`
}
SoldItemsBody is to send the body data
type SoldItemsDataFilter ¶ added in v1.5.7
type SoldItemsDataFilter struct {
Filter []SoldItemsFilter `xml:"Filter"`
}
type SoldItemsFilter ¶ added in v1.5.7
type SoldItemsFilter struct { FilterName string `xml:"FilterName"` FilterValues SoldItemsFilterValues `xml:"FilterValues"` }
type SoldItemsFilterValues ¶ added in v1.5.7
type SoldItemsRequest ¶ added in v1.5.7
type SoldItemsRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` DataFilter SoldItemsDataFilter `xml:"DataFilter"` MaxSoldItems int `xml:"MaxSoldItems"` ReturnHiddenItems int `xml:"ReturnHiddenItems"` }
type SoldItemsReturn ¶ added in v1.5.7
type SoldItemsReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result SoldItemsReturnResult `xml:"Result"` }
SoldItemsReturn is to decode the xml data
func SoldItems ¶ added in v1.5.7
func SoldItems(body SoldItemsBody) (SoldItemsReturn, error)
SoldItems is to get all sold items
type SoldItemsReturnBaseProductData ¶ added in v1.6.2
type SoldItemsReturnBaseProductData struct { XmlName xml.Name `xml:"BaseProductData"` BaseProductType int `xml:"BaseProductType"` ChildProduct SoldItemsReturnChildProduct `xml:"ChildProduct"` }
type SoldItemsReturnBillingAddress ¶ added in v1.5.7
type SoldItemsReturnBillingAddress struct { XmlName xml.Name `xml:"BillingAddress"` AfterbuyUserId int `xml:"AfterbuyUserID"` AfterbuyUserIdAlt int `xml:"AfterbuyUserIDAlt"` UserIdPlattform string `xml:"UserIDPlattform"` FirstName string `xml:"FirstName"` LastName string `xml:"LastName"` Title string `xml:"Title"` Company string `xml:"Company"` Street string `xml:"Street"` Street2 string `xml:"Street2"` PostalCode string `xml:"PostalCode"` City string `xml:"City"` StateOrProvince string `xml:"StateOrProvince"` Country string `xml:"Country"` CountryISO string `xml:"CountryISO"` Phone string `xml:"Phone"` Fax string `xml:"Fax"` Mail string `xml:"Mail"` IsMerchant int `xml:"IsMerchant"` TaxIdNumber string `xml:"TaxIDNumber"` }
type SoldItemsReturnBuyerInfo ¶ added in v1.5.7
type SoldItemsReturnBuyerInfo struct { XmlName xml.Name `xml:"BuyerInfo"` BillingAddress SoldItemsReturnBillingAddress `xml:"BillingAddress"` ShippingAddress SoldItemsReturnShippingAddress `xml:"ShippingAddress"` }
type SoldItemsReturnChildProduct ¶ added in v1.6.2
type SoldItemsReturnChildProduct struct { XmlName xml.Name `xml:"ChildProduct"` ProductId int `xml:"ProductID"` ProductANr int `xml:"ProductANr"` ProductName string `xml:"ProductName"` ProductQuantity int `xml:"ProductQuantity"` ProductVat int `xml:"ProductVAT"` ProductWeight string `xml:"ProductWeight"` ProductUnitPrice string `xml:"ProductUnitPrice"` }
type SoldItemsReturnItemOriginalCurrency ¶ added in v1.5.7
type SoldItemsReturnOrder ¶ added in v1.5.7
type SoldItemsReturnOrder struct { XmlName xml.Name `xml:"Order"` InvoiceNumber string `xml:"InvoiceNumber"` OrderId int `xml:"OrderID"` EbayAccount string `xml:"EbayAccount"` AmazonAccount string `xml:"AmazonAccount"` AlternativeItemNumber1 string `xml:"AlternativeItemNumber1"` Anr int `xml:"Anr"` FeedbackDate string `xml:"FeedbackDate"` AdditionalInfo string `xml:"AdditionalInfo"` TrackingLink string `xml:"TrackingLink"` Memo string `xml:"Memo"` FeedbackLink string `xml:"FeedbackLink"` OrderDate string `xml:"OrderDate"` OrderIdAlt interface{} `xml:"OrderIDAlt"` PaymentInfo SoldItemsReturnPaymentInfo `xml:"PaymentInfo"` IsCheckoutConfirmedByCustomer int `xml:"IsCheckoutConfirmedByCustomer"` BuyerInfo SoldItemsReturnBuyerInfo `xml:"BuyerInfo"` ContainseBayPlusTransaction bool `xml:"ContainseBayPlusTransaction"` SoldItems SoldItemsReturnSoldItems `xml:"SoldItems"` ShippingInfo SoldItemsReturnShippingInfo `xml:"ShippingInfo"` VorgangsInfo SoldItemsReturnVorgangsInfo `xml:"VorgangsInfo"` OrderOriginalCurrency SoldItemsReturnOrderOriginalCurrency `xml:"OrderOriginalCurrency"` }
type SoldItemsReturnOrderOriginalCurrency ¶ added in v1.5.7
type SoldItemsReturnOrderOriginalCurrency struct { XmlName xml.Name `xml:"OriginalCurrency"` EbayShippingAmount string `xml:"EbayShippingAmount"` ShippingAmount string `xml:"ShippingAmount"` PaymentSurcharge string `xml:"PaymentSurcharge"` PaymentSurchargePerCent string `xml:"PaymentSurchargePerCent"` InvoiceAmount string `xml:"InvoiceAmount"` ExchangeRate string `xml:"ExchangeRate"` PayedAmount string `xml:"PayedAmount"` }
type SoldItemsReturnOrders ¶ added in v1.5.7
type SoldItemsReturnOrders struct { XmlName xml.Name `xml:"Orders"` Order []SoldItemsReturnOrder `xml:"Order"` }
type SoldItemsReturnPaymentInfo ¶ added in v1.5.7
type SoldItemsReturnPaymentInfo struct { XmlName xml.Name `xml:"PaymentInfo"` PaymentId string `xml:"PaymentID"` PaymentMethod string `xml:"PaymentMethod"` PaymentFunction string `xml:"PaymentFunction"` PaymentTransactionId string `xml:"PaymentTransactionID"` PaymentStatus string `xml:"PaymentStatus"` PaymentDate string `xml:"PaymentDate"` AlreadyPaid string `xml:"AlreadyPaid"` FullAmount string `xml:"FullAmount"` InvoiceDate string `xml:"InvoiceDate"` }
type SoldItemsReturnResult ¶ added in v1.5.7
type SoldItemsReturnShippingAddress ¶ added in v1.6.0
type SoldItemsReturnShippingAddress struct { XmlName xml.Name `xml:"ShippingAddress"` FirstName string `xml:"FirstName"` LastName string `xml:"LastName"` Company string `xml:"Company"` Street string `xml:"Street"` Street2 string `xml:"Street2"` PostalCode string `xml:"PostalCode"` City string `xml:"City"` StateOrProvince string `xml:"StateOrProvince"` Phone string `xml:"Phone"` Country string `xml:"Country"` CountryISO string `xml:"CountryISO"` TaxIDNumber string `xml:"TaxIDNumber"` }
type SoldItemsReturnShippingInfo ¶ added in v1.5.7
type SoldItemsReturnShippingInfo struct { XmlName xml.Name `xml:"ShippingInfo"` ShippingMethod string `xml:"ShippingMethod"` ShippingCost string `xml:"ShippingCost"` ShippingAdditionalCost string `xml:"ShippingAdditionalCost"` ShippingTotalCost string `xml:"ShippingTotalCost"` ShippingTaxRate string `xml:"ShippingTaxRate"` DeliveryDate string `xml:"DeliveryDate"` }
type SoldItemsReturnShopProductDetails ¶ added in v1.5.7
type SoldItemsReturnShopProductDetails struct { XmlName xml.Name `xml:"ShopProductDetails"` ProductId int `xml:"ProductID"` Name string `xml:"Name"` Ean string `xml:"EAN"` Anr int `xml:"Anr"` BasepriceFactor string `xml:"BasepriceFactor"` BaseProductData SoldItemsReturnBaseProductData `xml:"BaseProductData"` }
type SoldItemsReturnSoldItem ¶ added in v1.5.7
type SoldItemsReturnSoldItem struct { XmlName xml.Name `xml:"SoldItem"` ItemDetailsDone int `xml:"ItemDetailsDone"` ItemId int `xml:"ItemID"` AlternativeItemNumber1 string `xml:"AlternativeItemNumber1"` AlternativeItemNumber string `xml:"AlternativeItemNumber"` Anr int `xml:"Anr"` FulfillmentServiceLevel int `xml:"FulfillmentServiceLevel"` IsAmazonInvoiced bool `xml:"IsAmazonInvoiced"` PlatformSpecificOrderId string `xml:"PlatformSpecificOrderId"` EBayTransactiondD int `xml:"eBayTransactionID"` EBayPlusTransaction bool `xml:"eBayPlusTransaction"` InternalItemType int `xml:"InternalItemType"` UserDefinedFlag int `xml:"UserDefinedFlag"` ItemTitle string `xml:"ItemTitle"` ItemQuantity int `xml:"ItemQuantity"` ItemPrice string `xml:"ItemPrice"` ItemOriginalCurrency SoldItemsReturnItemOriginalCurrency `xml:"ItemOriginalCurrency"` ItemEndDate string `xml:"ItemEndDate"` TaxRate string `xml:"TaxRate"` TaxCollectedBy int `xml:"TaxCollectedBy"` ItemWeight string `xml:"ItemWeight"` ItemModDate string `xml:"ItemModDate"` ItemPlatformName string `xml:"ItemPlatformName"` ItemLink string `xml:"ItemLink"` EBayFeedbackCompleted int `xml:"eBayFeedbackCompleted"` EBayFeedbackReceived int `xml:"eBayFeedbackReceived"` ShopProductDetails SoldItemsReturnShopProductDetails `xml:"ShopProductDetails"` SoldItemAttributes SoldItemsReturnSoldItemAttributes `xml:"SoldItemAttributes"` Tags SoldItemReturnTags `xml:"Tags"` }
type SoldItemsReturnSoldItemAttribute ¶ added in v1.9.6
type SoldItemsReturnSoldItemAttributes ¶ added in v1.9.6
type SoldItemsReturnSoldItemAttributes struct { XmlName xml.Name `xml:"SoldItemAttributes"` SoldItemAttribute []SoldItemsReturnSoldItemAttribute `xml:"SoldItemAttribute"` }
type SoldItemsReturnSoldItems ¶ added in v1.5.7
type SoldItemsReturnSoldItems struct { XmlName xml.Name `xml:"SoldItems"` SoldItem []SoldItemsReturnSoldItem `xml:"SoldItem"` ItemsInOrder int `xml:"ItemsInOrder"` }
type SoldItemsReturnTags ¶ added in v1.8.7
type SoldItemsReturnVorgangsInfo ¶ added in v1.7.2
type StockBody ¶
type StockBody struct {
Request StockRequest `xml:"Request"`
}
StockBody is to send the body data
type StockProduct ¶
type StockProduct struct {
ProductId int `xml:"ProductID"`
}
type StockProducts ¶
type StockProducts struct {
Product StockProduct `xml:"Product"`
}
type StockRequest ¶
type StockRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` Products StockProducts `xml:"Products"` }
type StockReturn ¶
type StockReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result StockReturnResult `xml:"Result"` }
StockReturn is to decode xml return
func Stock ¶
func Stock(body StockBody) (StockReturn, error)
Stock is to get a stock of a product from ab interface
type StockReturnProduct ¶
type StockReturnProduct struct { ProductId int `xml:"ProductID"` Name string `xml:"Name"` Anr int `xml:"Anr"` Ean string `xml:"EAN"` AuctionQuantity int `xml:"AuctionQuantity"` Quantity int `xml:"Quantity"` FullFilmentQuantity int `xml:"FullFilmentQuantity"` MinimumStock int `xml:"MinimumStock"` Level int `xml:"Level"` Discontinued int `xml:"Discontinued"` Stock int `xml:"Stock"` MergeStock int `xml:"MergeStock"` AvailableShop int `xml:"AvailableShop"` }
type StockReturnProducts ¶
type StockReturnProducts struct { XmlName xml.Name `xml:"Products"` Product []StockReturnProduct `xml:"Product"` }
type StockReturnResult ¶
type StockReturnResult struct { XmlName xml.Name `xml:"Result"` Products StockReturnProducts `xml:"Products"` WarningList StockReturnWarningList `xml:"WarningList,omitempty"` }
type StockReturnWarning ¶
type StockReturnWarningList ¶
type StockReturnWarningList struct { XmlName xml.Name `xml:"WarningList"` Warning []StockReturnWarning `xml:"Warning"` }
type UpdateProductsBody ¶ added in v1.12.0
type UpdateProductsBody struct {
Request UpdateProductsRequest `xml:"Request"`
}
UpdateProductsBody is to send the body data
type UpdateProductsProduct ¶ added in v1.12.0
type UpdateProductsProduct struct { XmlName xml.Name `xml:"Product"` ProductIdent UpdateProductsProductIdent `xml:"ProductIdent"` Quantity int `xml:"Quantity"` AuctionQuantity int `xml:"AuctionQuantity"` Stock int `xml:"Stock"` SellingPrice string `xml:"SellingPrice"` BuyingPrice string `xml:"BuyingPrice"` DealerPrice string `xml:"DealerPrice"` }
type UpdateProductsProductIdent ¶ added in v1.12.0
type UpdateProductsProducts ¶ added in v1.12.0
type UpdateProductsProducts struct { XmlName xml.Name `xml:"Products"` Product []UpdateProductsProduct `xml:"Product"` }
type UpdateProductsRequest ¶ added in v1.12.0
type UpdateProductsRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` Products UpdateProductsProducts `xml:"Products"` }
type UpdateProductsReturn ¶ added in v1.12.0
type UpdateProductsReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionID int `xml:"VersionID"` Result UpdateProductsReturnResult `xml:"Result"` }
UpdateProductsReturn is to decode the xml data
func UpdateProducts ¶ added in v1.12.0
func UpdateProducts(body UpdateProductsBody) (UpdateProductsReturn, error)
UpdateProducts are to update a product from ab interface
type UpdateProductsReturnResult ¶ added in v1.12.0
type UpdateProductsReturnResult struct { XmlName xml.Name `xml:"Result"` WarningList UpdateProductsReturnWarningList `xml:"WarningList"` }
type UpdateProductsReturnWarning ¶ added in v1.12.0
type UpdateProductsReturnWarningList ¶ added in v1.12.0
type UpdateProductsReturnWarningList struct { XmlName xml.Name `xml:"WarningList"` Warning []UpdateProductsReturnWarning `xml:"Warning"` }
type UpdateSoldItemBody ¶ added in v1.4.3
type UpdateSoldItemBody struct {
Request UpdateSoldItemBodyRequest `xml:"Request"`
}
UpdateSoldItemBody is to send the body data
type UpdateSoldItemBodyBuyerInfo ¶ added in v1.4.3
type UpdateSoldItemBodyBuyerInfo struct {
ShippingAddress UpdateSoldItemBodyShippingAddress `xml:"ShippingAddress,omitempty"`
}
type UpdateSoldItemBodyOrder ¶ added in v1.4.3
type UpdateSoldItemBodyOrder struct { OrderId int `xml:"OrderID,omitempty"` ItemId int `xml:"ItemID,omitempty"` AdditionalInfo string `xml:"AdditionalInfo,omitempty"` MailDate string `xml:"MailDate,omitempty"` ReminderMailDate string `xml:"ReminderMailDate,omitempty"` UserComment string `xml:"UserComment,omitempty"` OrderMemo string `xml:"OrderMemo,omitempty"` InvoiceMemo string `xml:"InvoiceMemo,omitempty"` InvoiceNumber int `xml:"InvoiceNumber,omitempty"` OrderExported int `xml:"OrderExported,omitempty"` InvoiceDate string `xml:"InvoiceDate,omitempty"` HideOrder int `xml:"HideOrder,omitempty"` Reminder1Date string `xml:"Reminder1Date,omitempty"` Reminder2Date string `xml:"Reminder2Date,omitempty"` XmlDate string `xml:"XmlDate,omitempty"` BuyerInfo *UpdateSoldItemBodyBuyerInfo `xml:"BuyerInfo,omitempty"` PaymentInfo *UpdateSoldItemBodyPaymentInfo `xml:"PaymentInfo,omitempty"` ShippingInfo *UpdateSoldItemBodyShippingInfo `xml:"ShippingInfo,omitempty"` VorgangsInfo *UpdateSoldItemBodyVorgangsInfo `xml:"VorgangsInfo,omitempty"` Tags []*UpdateSoldItemBodyTags `xml:"Tags,omitempty"` }
type UpdateSoldItemBodyOrders ¶ added in v1.4.3
type UpdateSoldItemBodyOrders struct {
Order UpdateSoldItemBodyOrder `xml:"Order"`
}
type UpdateSoldItemBodyPaymentInfo ¶ added in v1.4.3
type UpdateSoldItemBodyPaymentInfo struct { PaymentId string `xml:"PaymentID,omitempty"` PaymentMethod string `xml:"PaymentMethod,omitempty"` PaymentFunction string `xml:"PaymentFunction,omitempty"` PaymentTransactionId string `xml:"PaymentTransactionID,omitempty"` PaymentStatus string `xml:"PaymentStatus,omitempty"` PaymentDate string `xml:"PaymentDate,omitempty"` AlreadyPaid string `xml:"AlreadyPaid,omitempty"` FullAmount string `xml:"FullAmount,omitempty"` InvoiceDate string `xml:"InvoiceDate,omitempty"` }
type UpdateSoldItemBodyRequest ¶ added in v1.4.3
type UpdateSoldItemBodyRequest struct { AfterbuyGlobal AfterbuyGlobal `xml:"AfterbuyGlobal"` Orders UpdateSoldItemBodyOrders `xml:"Orders"` }
type UpdateSoldItemBodyShippingAddress ¶ added in v1.4.3
type UpdateSoldItemBodyShippingAddress struct { FirstName string `xml:"FirstName,omitempty"` LastName string `xml:"LastName,omitempty"` Company string `xml:"Company,omitempty"` Street string `xml:"Street,omitempty"` PostalCode string `xml:"PostalCode,omitempty"` City string `xml:"City,omitempty"` Country string `xml:"Country,omitempty"` }
type UpdateSoldItemBodyShippingInfo ¶ added in v1.4.3
type UpdateSoldItemBodyShippingInfo struct { ShippingMethod string `xml:"ShippingMethod,omitempty"` ShippingGroup string `xml:"ShippingGroup,omitempty"` ShippingCost string `xml:"ShippingCost,omitempty"` DeliveryDate string `xml:"DeliveryDate,omitempty"` EBayShippingCost string `xml:"eBayShippingCost,omitempty"` }
type UpdateSoldItemBodyTags ¶ added in v1.8.7
type UpdateSoldItemBodyTags struct {
Tag string `xml:"Tag,omitempty"`
}
type UpdateSoldItemBodyVorgangsInfo ¶ added in v1.7.0
type UpdateSoldItemReturn ¶ added in v1.4.3
type UpdateSoldItemReturn struct { XmlName xml.Name `xml:"Afterbuy"` CallStatus string `xml:"CallStatus"` CallName string `xml:"CallName"` VersionId int `xml:"VersionID"` Result UpdateSoldItemReturnResult `xml:"Result,omitempty"` }
UpdateSoldItemReturn is to decode the xml return
func UpdateSoldItem ¶ added in v1.4.3
func UpdateSoldItem(body UpdateSoldItemBody) (UpdateSoldItemReturn, error)
UpdateSoldItem is to update a sold item
type UpdateSoldItemReturnError ¶ added in v1.4.3
type UpdateSoldItemReturnErrorList ¶ added in v1.4.3
type UpdateSoldItemReturnErrorList struct { XmlName xml.Name `xml:"ErrorList"` Error []UpdateSoldItemReturnError `xml:"Error"` }
type UpdateSoldItemReturnResult ¶ added in v1.4.3
type UpdateSoldItemReturnResult struct { XmlName xml.Name `xml:"Result"` ErrorList UpdateSoldItemReturnErrorList `xml:"ErrorList"` }