goafterbuy

package module
v1.14.6 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 7 Imported by: 0

README

goafterbuy

GitHub go.mod Go version of a Go module Go Go Report Card Go Reference Lines of code

go get github.com/jjideenschmiede/goafterbuy

How to use?

Get products

If you want to read the afterbuy products, you can do it as follows. Some parameters from afterbuy are needed, like the PartnerId, PartnerPassword, UserId & UserPassword.

If you want to output multiple pages, then you need to adjust the details in goafterbuy.ProductsRequest. The first request will output values such as maximum number of pages. At this you can execute the functions with adjusted parameters.

Here you can find an example from Afterbuy.

Attention! Here the XML interface is used.

// Define products body
body := goafterbuy.ProductsBody{
    Request: goafterbuy.ProductsRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetShopProducts",
            DetailLevel:     0,
            ErrorLanguage:   "DE",
        },
        DataFilter: &goafterbuy.ProductsRequestDataFilter{},
        MaxShopItems:                   100,
        SuppressBaseProductRelatedData: 0,
        PaginationEnabled:              1,
        PageNumber:                     0,
    },
}

// Add filter value for product id
body.Request.DataFilter.Filter = append(body.Request.DataFilter.Filter, goafterbuy.ProductsRequestFilter{
    FilterName: "ProductID",
	FilterValues: goafterbuy.ProductsRequestFilterValues{
        FilterValue: []string{"79341966", "79341972"},
    },
})

// Add filter value for level
body.Request.DataFilter.Filter = append(body.Request.DataFilter.Filter, goafterbuy.ProductsRequestFilter{
    FilterName: "Level",
    FilterValues: goafterbuy.ProductsRequestFilterValues{
        LevelFrom: 0,
        LevelTo:   99,
    },
})

// Get afterbuy products
products, err := goafterbuy.Products(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(products)
}

For all requests described in this documentation, you can also verify with the PartnerToken and the AccountToken. The whole thing is then also deposited in goafterbuy.AfterbuyGlobal and looks like this:

// Define products body
body := goafterbuy.ProductsBody{
    Request: goafterbuy.ProductsRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerToken:  "",
            AccountToken:  "",
            CallName:      "GetShopProducts",
            DetailLevel:   0,
            ErrorLanguage: "DE",
        },
		
        // Rest of the request body
		
    },
}

Update product

If you want to update a product, then you can use the following function.

// Define products body
body := goafterbuy.UpdateProductsBody{
	Request: goafterbuy.UpdateProductsRequest{
		AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
			PartnerToken:  partnerToken,
			AccountToken:  accountToken,
			CallName:      "UpdateShopProducts",
			ErrorLanguage: "DE",
		},
		Products: goafterbuy.UpdateProductsProducts{
			Product: []goafterbuy.UpdateProductsProduct{
				{
					ProductIdent: goafterbuy.UpdateProductsProductIdent{
						ProductInsert: 0,
						ProductID:     81865201,
					},
					Quantity: 187,
				},
			},
		},
	},
}

// Update product
product, err := goafterbuy.UpdateProducts(body)
if err != nil {
	fmt.Println(err)
} else {
	fmt.Println(product)
}

Get stock

If you want to read out a stock, then you can do this here via the ID of the product. Please note that you need the same data here as when reading out the products.

Here you can find an example from Afterbuy.

Attention! Here the XML interface is used.

// Define stock body
body := goafterbuy.StockBody{
    Request: goafterbuy.StockRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetShopProducts",
            DetailLevel:     2,
            ErrorLanguage:   "DE",
        },
        Products: goafterbuy.StockProducts{
            Product: goafterbuy.StockProduct{
                ProductId: 0,
            },
        },
    },
}

// Get stock
stock, err := goafterbuy.Stock(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(stock)
}

Get catalogs

To enable them to read the catalogs, you can use the following function.

Attention! Here the XML interface is used.

// Define catalogs body
body := goafterbuy.CatalogsBody{
    Request: goafterbuy.CatalogsRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetShopCatalogs",
            DetailLevel:     0,
            ErrorLanguage:   "DE",
        },
        MaxCatalogs: 200,
        DataFilter: &goafterbuy.CatalogsRequestDataFilter{
            Filter: []goafterbuy.CatalogsRequestFilter{
                {
                    FilterName: "RangeID",
                    FilterValues: goafterbuy.CatalogsRequestFilterValues{
                        ValueFrom: 0, 
                        ValueTo:   0,
                    },
                },
                {
                    FilterName: "Level",
                    FilterValues: goafterbuy.CatalogsRequestFilterValues{
                        FilterValue: []string{"0", "1", "2"},
                    },
                },
            },
        },
    },
}

// Get catalogs
catalogs, err := goafterbuy.Catalogs(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(catalogs)
}

Get shipping services

To get the shipping services from afterbuy.

// Define sold item request body
body := goafterbuy.ShippingServicesBody{
    Request: goafterbuy.ShippingServicesRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetShippingServices",
            ErrorLanguage:   "DE",
        },
    },
}

// Get afterbuy shipping services
shippingServices, err := goafterbuy.ShippingServices(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(shippingServices)
}

Get sold items

You can use this function to read out all purchase orders in a specific period.

// Define sold items body
body := goafterbuy.SoldItemsBody{
    Request: goafterbuy.SoldItemsRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetSoldItems",
            DetailLevel:     0,
            ErrorLanguage:   "DE",
        },
        DataFilter: goafterbuy.SoldItemsDataFilter{
            Filter: []goafterbuy.SoldItemsFilter{},
        },
        MaxSoldItems: 100,
        ReturnHiddenItems: 1,
    },
}

// Add filter
body.Request.DataFilter.Filter = append(body.Request.DataFilter.Filter, goafterbuy.SoldItemsFilter{
    FilterName: "DateFilter",
    FilterValues: goafterbuy.SoldItemsFilterValues{
        DateFrom:    "01.11.2021 00:00:00",
        DateTo:      "01.12.2021 23:59:59",
        FilterValue: "PayDate",
    },
}, goafterbuy.SoldItemsFilter{
    FilterName: "RangeID",
    FilterValues: goafterbuy.SoldItemsFilterValues{
        ValueFrom: 525914526,
    },
})

// Get afterbuy sold items
soldItems, err := goafterbuy.SoldItems(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(soldItems)
}

Get sold item

If you want to read out an order based on the Id, then you can use the following function for this.

// Define sold item request body
body := goafterbuy.SoldItemBody{
    Request: goafterbuy.SoldItemRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "GetSoldItems",
            ErrorLanguage:   "DE",
        },
        DataFilter: goafterbuy.DataFilter{
            Filter: goafterbuy.DataFilterFilter{
                FilterName: "OrderID",
                FilterValues: goafterbuy.DataFilterFilterValues{
                    FilterValue: 558996468,
                },
            },
        },
        ReturnHiddenItems: 1,
    },
}

// Get sold item
soldItem, err := goafterbuy.SoldItem(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(soldItem.Result.Orders.Order.AdditionalInfo)
}

Update sold item

If you want to update an order, you can do this using the following function. A palette of attributes can be sent with the order.

// Define update sold item request body
body := goafterbuy.UpdateSoldItemBody{
    goafterbuy.UpdateSoldItemBodyRequest{
        AfterbuyGlobal: goafterbuy.AfterbuyGlobal{
            PartnerId:       0,
            PartnerPassword: "",
            UserId:          "",
            UserPassword:    "",
            CallName:        "UpdateSoldItems",
            ErrorLanguage:   "DE",
        },
        Orders: goafterbuy.UpdateSoldItemBodyOrders{
            goafterbuy.UpdateSoldItemBodyOrder{
                OrderId:        523371348,
                ItemId:         523371348,
                AdditionalInfo: "DE9034274324",
            },
        },
    },
}

// Get sold item
soldItem, err := goafterbuy.UpdateSoldItem(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(soldItem)
}

Add order

If an order is to be returned to the system, then this can be done as follows. Please inform yourself here how it works.

Attention! Here the store interface UTF-8 is used.

// Define order body
body := AddOrderBody{
    Action:                  "new",
    PartnerToken:            "",
    UserToken:               "", 
    ItemNo:                  "1",
    KUsername:               "WooCommerce",
    KSalutation:             "Herr",
    KCompany:                "J&J Ideenschmiede GmbH",
    KFirstName:              "Jonas",
    KLastName:               "Kwiedor",
    KStreet:                 "Mercatorstraße 32a",
    KStreet2:                "",
    KZip:                    "21502",
    KLocation:               "Geesthacht",
    KState:                  "SH",
    KCountry:                "Deutschland",
    KPhone:                  "",
    KFax:                    "",
    KEmail:                  "jonas.kwiedor@jj-ideenschmiede.de",
    DeliveryAddress:         "0",
    KLSalutation:            "",
    KLCompany:               "",
    KLFirstName:             "",
    KLLastName:              "",
    KLStreet:                "",
    KLStreet2:               "",
    KLZip:                   "",
    KLLocation:              "",
    KLState:                 "",
    KLCountry:               "",
    KLPhone:                 "",
    Comment:                 "Das ist ein Kommentar.",
    ShippingGroup:           "",
    ShippingMethod:          "",
    PaymentMethodsSurcharge: "",
    ShippingCosts:           "0",
    NoShippingCalc:          "1",
    PaymentMethod:           "PayPal",
    SoldCurrency:            "EUR",
    VMemo:                   "Das ist eine Notiz",
    OrderInfo1:              "1234",
    OrderInfo2:              "5678",
    OrderInfo3:              "90",
    NoFeedback:              "0",
    SetPay:                  "1",
    CustomerIdentification:  "1",
    ArticleIdentification:   "0",
    StockType:               "shop",
    B1:                      "Abschicken",
    Items:                   []AddOrderBodyItem{},
}

body.Items = append(body.Items, goafterbuy.AddOrderBodyItem{
    ArticleNo:        "2131424124",
    AlternArticleNo1: "2131424124",
    AlternArticleNo2: "2131424124",
    ArticleName:      "Testartikel",
    ArticleEPrice:    "2,99",
    ArticleVat:       "0,99",
    ArticleQuantity:  "19",
    ArticleLink:      "http://jj-dev.de",
    Attribute:        "Größe:XL|Farbe:Blau",
    ArticleMasterId:  "2131424124",
    ArticleTag1:      "Stornierungsanfrage",
    ArticleTag2:      "",
    ArticleTag3:      "",
    ArticleTag4:      "",
    ArticleTag5:      "",
})

// Set afterbuy order
order, err := goafterbuy.AddOrder(body)
if err != nil {
    fmt.Println(err)
} else {
    fmt.Println(order)
}

Documentation

Index

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 AddOrderReturnData struct {
	XmlName    xml.Name `xml:"data"`
	AId        int      `xml:"AID"`
	UId        string   `xml:"UID"`
	KundenNr   int      `xml:"KundenNr"`
	EKundenNr  int      `xml:"EKundenNr"`
	CouponUsed int      `xml:"CouponUsed"`
}

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 CatalogsRequestFilterValues

type CatalogsRequestFilterValues struct {
	ValueFrom   int      `xml:"ValueFrom,omitempty"`
	ValueTo     int      `xml:"ValueTo,omitempty"`
	FilterValue []string `xml:"FilterValue,omitempty"`
}

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 Config

type Config struct {
	BaseUrl, Method string
	Body            io.Reader
	Header          map[string]string
}

Config is to define the request data

func (*Config) Send

func (c *Config) Send() (*http.Response, error)

Send is to send a new request

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 MailTemplatesReturnMailTemplate struct {
	XmlName         xml.Name `xml:"MailTemplate"`
	TemplateId      int      `xml:"TemplateID"`
	TemplateName    string   `xml:"TemplateName"`
	TemplateSubject string   `xml:"TemplateSubject"`
	TemplateHtml    int      `xml:"TemplateHtml"`
	TemplateText    string   `xml:"TemplateText"`
}

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 ProductsReturnAdditionalDescriptionField struct {
	XmlName      xml.Name `xml:"AdditionalDescriptionField"`
	FieldId      int      `xml:"FieldID"`
	FieldName    string   `xml:"FieldName"`
	FieldLabel   string   `xml:"FieldLabel"`
	FieldContent string   `xml:"FieldContent"`
}

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 ProductsReturnAdditionalPrice struct {
	XmlName      xml.Name `xml:"AdditionalPrice"`
	DefinitionId int      `xml:"DefinitionId"`
	Name         string   `xml:"Name"`
	Value        string   `xml:"Value"`
	Pretax       bool     `xml:"Pretax"`
}

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 ProductsReturnAttribut struct {
	XmlName          xml.Name `xml:"Attribut"`
	AttributName     string   `xml:"AttributName"`
	AttributValue    string   `xml:"AttributValue"`
	AttributType     int      `xml:"AttributType"`
	AttributRequired int      `xml:"AttributRequired"`
	AttributPosition int      `xml:"AttributPosition"`
}

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 ProductsReturnBaseProductsRelationData

type ProductsReturnBaseProductsRelationData struct {
	XmlName           xml.Name                          `xml:"BaseProductsRelationData"`
	Postion           int                               `xml:"Position"`
	VariationLabel    string                            `xml:"VariationLabel"`
	DefaultProduct    int                               `xml:"DefaultProduct"`
	EbayVariationData []ProductsReturnEbayVariationData `xml:"eBayVariationData"`
}

type ProductsReturnCatalogs

type ProductsReturnCatalogs struct {
	XmlName   xml.Name `xml:"Catalogs"`
	CatalogId []int    `xml:"CatalogID"`
}

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 ProductsReturnChildsProductPicture struct {
	XmlName xml.Name `xml:"ProductPicture"`
	Nr      int      `xml:"Nr"`
	Typ     int      `xml:"Typ"`
	Url     string   `xml:"Url"`
	AltText string   `xml:"AltText"`
}

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 ProductsReturnError struct {
	XmlName              xml.Name `xml:"Error"`
	ErrorCode            int      `xml:"ErrorCode"`
	ErrorDescription     string   `xml:"ErrorDescription"`
	ErrorLongDescription string   `xml:"ErrorLongDescription"`
}

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 ProductsReturnFeature struct {
	XmlName xml.Name `xml:"Feature"`
	Id      int      `xml:"ID"`
	Name    string   `xml:"Name"`
	Value   string   `xml:"Value"`
}

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 ProductsReturnLanguageAt struct {
	XmlName          xml.Name `xml:"AT"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageB added in v1.9.4

type ProductsReturnLanguageB struct {
	XmlName          xml.Name `xml:"B"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageBg added in v1.9.4

type ProductsReturnLanguageBg struct {
	XmlName          xml.Name `xml:"BG"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageCh added in v1.9.4

type ProductsReturnLanguageCh struct {
	XmlName          xml.Name `xml:"CH"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageCy added in v1.9.4

type ProductsReturnLanguageCy struct {
	XmlName          xml.Name `xml:"CY"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageCz added in v1.9.4

type ProductsReturnLanguageCz struct {
	XmlName          xml.Name `xml:"CZ"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageDe added in v1.9.4

type ProductsReturnLanguageDe struct {
	XmlName          xml.Name `xml:"DE"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageDk added in v1.9.4

type ProductsReturnLanguageDk struct {
	XmlName          xml.Name `xml:"DK"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageE added in v1.9.4

type ProductsReturnLanguageE struct {
	XmlName          xml.Name `xml:"E"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageFin added in v1.9.4

type ProductsReturnLanguageFin struct {
	XmlName          xml.Name `xml:"FIN"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageFr added in v1.9.4

type ProductsReturnLanguageFr struct {
	XmlName          xml.Name `xml:"FR"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageGb added in v1.9.4

type ProductsReturnLanguageGb struct {
	XmlName          xml.Name `xml:"GB"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageGr added in v1.9.4

type ProductsReturnLanguageGr struct {
	XmlName          xml.Name `xml:"GR"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageH added in v1.9.4

type ProductsReturnLanguageH struct {
	XmlName          xml.Name `xml:"H"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageHr added in v1.9.4

type ProductsReturnLanguageHr struct {
	XmlName          xml.Name `xml:"HR"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageI added in v1.9.4

type ProductsReturnLanguageI struct {
	XmlName          xml.Name `xml:"I"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageIrl added in v1.9.4

type ProductsReturnLanguageIrl struct {
	XmlName          xml.Name `xml:"IRL"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageIs added in v1.9.4

type ProductsReturnLanguageIs struct {
	XmlName          xml.Name `xml:"IS"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageJ added in v1.9.4

type ProductsReturnLanguageJ struct {
	XmlName          xml.Name `xml:"J"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageKp added in v1.9.4

type ProductsReturnLanguageKp struct {
	XmlName          xml.Name `xml:"KP"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageLt added in v1.9.4

type ProductsReturnLanguageLt struct {
	XmlName          xml.Name `xml:"LT"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageLu added in v1.9.4

type ProductsReturnLanguageLu struct {
	XmlName          xml.Name `xml:"LU"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageLv added in v1.9.4

type ProductsReturnLanguageLv struct {
	XmlName          xml.Name `xml:"LV"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageMt added in v1.9.4

type ProductsReturnLanguageMt struct {
	XmlName          xml.Name `xml:"MT"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageN added in v1.9.4

type ProductsReturnLanguageN struct {
	XmlName          xml.Name `xml:"N"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageNl added in v1.9.4

type ProductsReturnLanguageNl struct {
	XmlName          xml.Name `xml:"NL"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageP added in v1.9.4

type ProductsReturnLanguageP struct {
	XmlName          xml.Name `xml:"P"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguagePl added in v1.9.4

type ProductsReturnLanguagePl struct {
	XmlName          xml.Name `xml:"PL"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageRo added in v1.9.4

type ProductsReturnLanguageRo struct {
	XmlName          xml.Name `xml:"RO"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageRu added in v1.9.4

type ProductsReturnLanguageRu struct {
	XmlName          xml.Name `xml:"RU"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageS added in v1.9.4

type ProductsReturnLanguageS struct {
	XmlName          xml.Name `xml:"S"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageSk added in v1.9.4

type ProductsReturnLanguageSk struct {
	XmlName          xml.Name `xml:"SK"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageSlo added in v1.9.4

type ProductsReturnLanguageSlo struct {
	XmlName          xml.Name `xml:"SLO"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageTr added in v1.9.4

type ProductsReturnLanguageTr struct {
	XmlName          xml.Name `xml:"TR"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

type ProductsReturnLanguageUs added in v1.9.4

type ProductsReturnLanguageUs struct {
	XmlName          xml.Name `xml:"US"`
	Alias            string   `xml:"Alias"`
	Beschreibung     string   `xml:"Beschreibung"`
	Kurzbeschreibung string   `xml:"Kurzbeschreibung"`
	Name             string   `xml:"Name"`
	Ust              string   `xml:"ust"`
}

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 ProductsReturnPaginationResult

type ProductsReturnPaginationResult struct {
	XmlName              xml.Name `xml:"PaginationResult"`
	TotalNumberOfEntries int      `xml:"TotalNumberOfEntries"`
	TotalNumberOfPages   int      `xml:"TotalNumberOfPages"`
	ItemsPerPage         int      `xml:"ItemsPerPage"`
	PageNumber           int      `xml:"PageNumber"`
}

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 ProductsReturnPartsProperty struct {
	XmlName       xml.Name `xml:"PartsProperty"`
	PropertyName  string   `xml:"PropertyName"`
	PropertyValue string   `xml:"PropertyValue"`
}

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"`
	FooterId                           int                                       `xml:"FooterID"`
	FooterDescriptionName              string                                    `xml:"FooterDescriptionName"`
	FooterDescriptionValue             string                                    `xml:"FooterDescriptionValue"`
	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 ProductsReturnProductPicture struct {
	XmlName xml.Name             `xml:"ProductPicture"`
	Nr      int                  `xml:"Nr"`
	Typ     int                  `xml:"Typ"`
	Url     string               `xml:"Url"`
	AltText string               `xml:"AltText"`
	Childs  ProductsReturnChilds `xml:"Childs"`
}

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 ProductsReturnScaledDiscount

type ProductsReturnScaledDiscount struct {
	XmlName        xml.Name `xml:"ScaledDiscount"`
	ScaledQuantity int      `xml:"ScaledQuantity"`
	ScaledPrice    string   `xml:"ScaledPrice"`
	ScaledDPrice   string   `xml:"ScaledDPrice"`
}

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 ShippingServicesShippingService struct {
	XmlName         xml.Name                        `xml:"ShippingService"`
	Name            string                          `xml:"Name"`
	DisplayArea     string                          `xml:"DisplayArea"`
	GroupPrio       int                             `xml:"GroupPrio"`
	ShippingMethods ShippingServicesShippingMethods `xml:"ShippingMethods"`
}

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 ShippingServicesWeightDefinitions struct {
	WeightFrom string `xml:"WeightFrom"`
	WeightTo   string `xml:"WeightTo"`
	Price      string `xml:"Price"`
}

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 SoldItemReturnItemOriginalCurrency

type SoldItemReturnItemOriginalCurrency struct {
	XmlName       xml.Name `xml:"ItemOriginalCurrency"`
	ItemPrice     string   `xml:"ItemPrice"`
	ItemPriceCode string   `xml:"ItemPriceCode"`
	ItemShipping  string   `xml:"ItemShipping"`
}

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 SoldItemReturnResult struct {
	XmlName      xml.Name             `xml:"Result"`
	HasMoreItems int                  `xml:"HasMoreItems"`
	Orders       SoldItemReturnOrders `xml:"Orders"`
	OrdersCount  int                  `xml:"OrdersCount"`
	LastOrderId  int                  `xml:"LastOrderID"`
	ItemsCount   int                  `xml:"ItemsCount"`
}

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 SoldItemReturnSoldItemAttribute struct {
	XmlName           xml.Name `xml:"SoldItemAttribute"`
	AttributeName     string   `xml:"AttributeName"`
	AttributeValue    string   `xml:"AttributeValue"`
	AttributePosition int      `xml:"AttributePosition"`
}

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 SoldItemReturnTags struct {
	XmlName xml.Name `xml:"Tags"`
	Tag     []string `xml:"Tag"`
}

type SoldItemReturnVorgangsInfo added in v1.7.2

type SoldItemReturnVorgangsInfo struct {
	XmlName       xml.Name `xml:"VorgangsInfo"`
	VorgangsInfo1 string   `xml:"VorgangsInfo1"`
	VorgangsInfo2 string   `xml:"VorgangsInfo2"`
	VorgangsInfo3 string   `xml:"VorgangsInfo3"`
}

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 SoldItemsFilterValues struct {
	DateFrom    string `xml:"DateFrom,omitempty"`
	DateTo      string `xml:"DateTo,omitempty"`
	ValueFrom   int    `xml:"ValueFrom,omitempty"`
	ValueTo     int    `xml:"ValueTo,omitempty"`
	FilterValue string `xml:"FilterValue,omitempty"`
}

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 SoldItemsReturnItemOriginalCurrency struct {
	XmlName       xml.Name `xml:"ItemOriginalCurrency"`
	ItemPrice     string   `xml:"ItemPrice"`
	ItemPriceCode string   `xml:"ItemPriceCode"`
	ItemShipping  string   `xml:"ItemShipping"`
}

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 SoldItemsReturnResult struct {
	XmlName      xml.Name              `xml:"Result"`
	HasMoreItems int                   `xml:"HasMoreItems"`
	Orders       SoldItemsReturnOrders `xml:"Orders"`
	OrdersCount  int                   `xml:"OrdersCount"`
	LastOrderId  int                   `xml:"LastOrderID"`
	ItemsCount   int                   `xml:"ItemsCount"`
}

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 SoldItemsReturnSoldItemAttribute struct {
	XmlName           xml.Name `xml:"SoldItemAttribute"`
	AttributeName     string   `xml:"AttributeName"`
	AttributeValue    string   `xml:"AttributeValue"`
	AttributePosition int      `xml:"AttributePosition"`
}

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 SoldItemsReturnTags struct {
	XmlName xml.Name `xml:"Tags"`
	Tag     []string `xml:"Tag"`
}

type SoldItemsReturnVorgangsInfo added in v1.7.2

type SoldItemsReturnVorgangsInfo struct {
	XmlName       xml.Name `xml:"VorgangsInfo"`
	VorgangsInfo1 string   `xml:"VorgangsInfo1"`
	VorgangsInfo2 string   `xml:"VorgangsInfo2"`
	VorgangsInfo3 string   `xml:"VorgangsInfo3"`
}

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 StockReturnWarning struct {
	WarningCode            int    `xml:"WarningCode"`
	WarningDescription     string `xml:"WarningDescription"`
	WarningLongDescription string `xml:"WarningLongDescription"`
	ProductId              string `xml:"ProductID"`
}

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 UpdateProductsProductIdent struct {
	XmlName       xml.Name `xml:"ProductIdent"`
	ProductInsert int      `xml:"ProductInsert"`
	ProductID     int      `xml:"ProductID"`
	Anr           int      `xml:"Anr"`
	EAN           string   `xml:"EAN"`
}

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 UpdateProductsReturnWarning struct {
	XmlName                xml.Name `xml:"Warning"`
	WarningCode            int      `xml:"WarningCode"`
	WarningDescription     string   `xml:"WarningDescription"`
	WarningLongDescription string   `xml:"WarningLongDescription"`
	UserProductId          string   `xml:"UserProductId"`
}

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 UpdateSoldItemBodyVorgangsInfo struct {
	VorgangsInfo1 string `xml:"VorgangsInfo1,omitempty"`
	VorgangsInfo2 string `xml:"VorgangsInfo2,omitempty"`
	VorgangsInfo3 string `xml:"VorgangsInfo3,omitempty"`
}

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 UpdateSoldItemReturnError struct {
	XmlName              xml.Name `xml:"Error"`
	ErrorCode            int      `xml:"ErrorCode"`
	ErrorDescription     string   `xml:"ErrorDescription"`
	ErrorLongDescription string   `xml:"ErrorLongDescription"`
}

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"`
}

Jump to

Keyboard shortcuts

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