search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyType

type AnyType struct {
	InnerXML string `xml:",innerxml"`
}

type AnyURI

type AnyURI string

type ArrayOfDecimal

type ArrayOfDecimal struct {
	Decimal []float64 `xml:"decimal,omitempty" json:"decimal,omitempty"`
}
type ArrayOfImageLink struct {
	ImageLink []*ImageLink `xml:"ImageLink,omitempty" json:"ImageLink,omitempty"`
}

type ArrayOfInt

type ArrayOfInt struct {
	// contains filtered or unexported fields
}

type ArrayOfNumberAttributeValue

type ArrayOfNumberAttributeValue struct {
	NumberAttributeValue []*NumberAttributeValue `xml:"NumberAttributeValue,omitempty" json:"NumberAttributeValue,omitempty"`
}

type ArrayOfString

type ArrayOfString struct {
	Astring []*string `xml:"string,omitempty" json:"string,omitempty"`
}

type ArrayOfTermAttributeValue

type ArrayOfTermAttributeValue struct {
	TermAttributeValue []*TermAttributeValue `xml:"TermAttributeValue,omitempty" json:"TermAttributeValue,omitempty"`
}

type AttributeFilter

type AttributeFilter struct {
	Key string `xml:"Key,omitempty" json:"Key,omitempty"`

	Values []string `xml:"Values,omitempty" json:"Values,omitempty"`
}

type AttributeValues

type AttributeValues struct {
	TermAttributeValues *ArrayOfTermAttributeValue `xml:"TermAttributeValues,omitempty" json:"TermAttributeValues,omitempty"`

	NumberAttributeValues *ArrayOfNumberAttributeValue `xml:"NumberAttributeValues,omitempty" json:"NumberAttributeValues,omitempty"`
}

type AuthenticationHeader

type AuthenticationHeader struct {
	AppId int32 `xml:"AppId,omitempty" json:"AppId,omitempty"`

	AppKey string `xml:"AppKey,omitempty" json:"AppKey,omitempty"`
}

type CategoryCountRequest

type CategoryCountRequest struct {
	CategoryId int32 `xml:"CategoryId,omitempty" json:"CategoryId,omitempty"`

	Alias string `xml:"Alias,omitempty" json:"Alias,omitempty"`

	CountyId int32 `xml:"CountyId,omitempty" json:"CountyId,omitempty"`

	SearchInDescription bool `xml:"SearchInDescription,omitempty" json:"SearchInDescription,omitempty"`

	ItemCondition string `xml:"ItemCondition,omitempty" json:"ItemCondition,omitempty"`

	ZipCode string `xml:"ZipCode,omitempty" json:"ZipCode,omitempty"`

	SearchWords string `xml:"SearchWords,omitempty" json:"SearchWords,omitempty"`

	PageNumber int32 `xml:"PageNumber,omitempty" json:"PageNumber,omitempty"`

	OnlyItemsWithThumbnail bool `xml:"OnlyItemsWithThumbnail,omitempty" json:"OnlyItemsWithThumbnail,omitempty"`

	OnlyAuctionsWithBuyNow bool `xml:"OnlyAuctionsWithBuyNow,omitempty" json:"OnlyAuctionsWithBuyNow,omitempty"`

	Mode string `xml:"Mode,omitempty" json:"Mode,omitempty"`

	PriceMinimum *int32 `xml:"PriceMinimum,omitempty" json:"PriceMinimum,omitempty"`

	PriceMaximum *int32 `xml:"PriceMaximum,omitempty" json:"PriceMaximum,omitempty"`

	BidsMinimum *int32 `xml:"BidsMinimum,omitempty" json:"BidsMinimum,omitempty"`

	BidsMaximum *int32 `xml:"BidsMaximum,omitempty" json:"BidsMaximum,omitempty"`

	ItemStatus string `xml:"ItemStatus,omitempty" json:"ItemStatus,omitempty"`

	ItemType string `xml:"ItemType,omitempty" json:"ItemType,omitempty"`

	SellerType string `xml:"SellerType,omitempty" json:"SellerType,omitempty"`
}

type CategoryCountResult

type CategoryCountResult struct {
	Categories []*SearchCategory `xml:"Categories,omitempty" json:"Categories,omitempty"`

	Errors []*Error `xml:"Errors,omitempty" json:"Errors,omitempty"`
}

type ConfigurationHeader

type ConfigurationHeader struct {
	Sandbox int32 `xml:"Sandbox,omitempty" json:"Sandbox,omitempty"`

	MaxResultAge int32 `xml:"MaxResultAge,omitempty" json:"MaxResultAge,omitempty"`
}

type Error

type Error struct {
	Code string `xml:"Code,omitempty" json:"Code,omitempty"`

	Message string `xml:"Message,omitempty" json:"Message,omitempty"`
}
type ImageLink struct {
	Url string `xml:"Url,omitempty" json:"Url,omitempty"`

	Format string `xml:"Format,omitempty" json:"Format,omitempty"`
}

type NCName

type NCName string

type NumberAttributeValue

type NumberAttributeValue struct {
	Id int32 `xml:"Id,omitempty" json:"Id,omitempty"`

	Name string `xml:"Name,omitempty" json:"Name,omitempty"`

	Values *ArrayOfDecimal `xml:"Values,omitempty" json:"Values,omitempty"`
}
type Search struct {
	XMLName xml.Name `xml:"http://api.tradera.com Search"`

	Query string `xml:"query,omitempty" json:"query,omitempty"`

	CategoryId int32 `xml:"categoryId,omitempty" json:"categoryId,omitempty"`

	PageNumber int32 `xml:"pageNumber,omitempty" json:"pageNumber,omitempty"`

	OrderBy string `xml:"orderBy,omitempty" json:"orderBy,omitempty"`
}

type SearchAdvanced

type SearchAdvanced struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchAdvanced"`

	Request *SearchAdvancedRequest `xml:"request,omitempty" json:"request,omitempty"`
}

type SearchAdvancedRequest

type SearchAdvancedRequest struct {
	SearchWords string `xml:"SearchWords,omitempty" json:"SearchWords,omitempty"`

	CategoryId int32 `xml:"CategoryId,omitempty" json:"CategoryId,omitempty"`

	SearchInDescription bool `xml:"SearchInDescription,omitempty" json:"SearchInDescription,omitempty"`

	Mode string `xml:"Mode,omitempty" json:"Mode,omitempty"`

	PriceMinimum *int32 `xml:"PriceMinimum,omitempty" json:"PriceMinimum,omitempty"`

	PriceMaximum *int32 `xml:"PriceMaximum,omitempty" json:"PriceMaximum,omitempty"`

	BidsMinimum *int32 `xml:"BidsMinimum,omitempty" json:"BidsMinimum,omitempty"`

	BidsMaximum *int32 `xml:"BidsMaximum,omitempty" json:"BidsMaximum,omitempty"`

	ZipCode string `xml:"ZipCode,omitempty" json:"ZipCode,omitempty"`

	CountyId int32 `xml:"CountyId,omitempty" json:"CountyId,omitempty"`

	Alias string `xml:"Alias,omitempty" json:"Alias,omitempty"`

	OrderBy string `xml:"OrderBy,omitempty" json:"OrderBy,omitempty"`

	ItemStatus string `xml:"ItemStatus,omitempty" json:"ItemStatus,omitempty"`

	ItemType string `xml:"ItemType,omitempty" json:"ItemType,omitempty"`

	OnlyAuctionsWithBuyNow bool `xml:"OnlyAuctionsWithBuyNow,omitempty" json:"OnlyAuctionsWithBuyNow,omitempty"`

	OnlyItemsWithThumbnail bool `xml:"OnlyItemsWithThumbnail,omitempty" json:"OnlyItemsWithThumbnail,omitempty"`

	ItemsPerPage int32 `xml:"ItemsPerPage,omitempty" json:"ItemsPerPage,omitempty"`

	PageNumber int32 `xml:"PageNumber,omitempty" json:"PageNumber,omitempty"`

	ItemCondition string `xml:"ItemCondition,omitempty" json:"ItemCondition,omitempty"`

	SellerType string `xml:"SellerType,omitempty" json:"SellerType,omitempty"`

	Brands *ArrayOfString `xml:"Brands,omitempty" json:"Brands,omitempty"`

	CampaignCodeIds *ArrayOfInt `xml:"CampaignCodeIds,omitempty" json:"CampaignCodeIds,omitempty"`

	Attributes []*AttributeFilter `xml:"Attributes,omitempty" json:"Attributes,omitempty"`
}

type SearchAdvancedResponse

type SearchAdvancedResponse struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchAdvancedResponse"`

	SearchAdvancedResult *SearchResult `xml:"SearchAdvancedResult,omitempty" json:"SearchAdvancedResult,omitempty"`
}

type SearchByFixedCriteria

type SearchByFixedCriteria struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchByFixedCriteria"`

	Request *SearchByFixedCriteriaRequest `xml:"request,omitempty" json:"request,omitempty"`
}

type SearchByFixedCriteriaRequest

type SearchByFixedCriteriaRequest struct {
	Name string `xml:"Name,omitempty" json:"Name,omitempty"`

	PageNumber int32 `xml:"PageNumber,omitempty" json:"PageNumber,omitempty"`

	ItemType string `xml:"ItemType,omitempty" json:"ItemType,omitempty"`

	OrderBy string `xml:"OrderBy,omitempty" json:"OrderBy,omitempty"`
}

type SearchByFixedCriteriaResponse

type SearchByFixedCriteriaResponse struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchByFixedCriteriaResponse"`

	SearchByFixedCriteriaResult *SearchResult `xml:"SearchByFixedCriteriaResult,omitempty" json:"SearchByFixedCriteriaResult,omitempty"`
}

type SearchByZipCode

type SearchByZipCode struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchByZipCode"`

	Request *SearchByZipCodeRequest `xml:"request,omitempty" json:"request,omitempty"`
}

type SearchByZipCodeRequest

type SearchByZipCodeRequest struct {
	ZipCode string `xml:"ZipCode,omitempty" json:"ZipCode,omitempty"`

	PageNumber int32 `xml:"PageNumber,omitempty" json:"PageNumber,omitempty"`

	OrderBy string `xml:"OrderBy,omitempty" json:"OrderBy,omitempty"`
}

type SearchByZipCodeResponse

type SearchByZipCodeResponse struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchByZipCodeResponse"`

	SearchByZipCodeResult *SearchResult `xml:"SearchByZipCodeResult,omitempty" json:"SearchByZipCodeResult,omitempty"`
}

type SearchCategory

type SearchCategory struct {
	Id int32 `xml:"Id,omitempty" json:"Id,omitempty"`

	Name string `xml:"Name,omitempty" json:"Name,omitempty"`

	NoOfItemsInCategory int32 `xml:"NoOfItemsInCategory,omitempty" json:"NoOfItemsInCategory,omitempty"`

	NoOfItemsInCategoryIncludingChildren int32 `xml:"NoOfItemsInCategoryIncludingChildren,omitempty" json:"NoOfItemsInCategoryIncludingChildren,omitempty"`

	ChildCategories []*SearchCategory `xml:"ChildCategories,omitempty" json:"ChildCategories,omitempty"`
}

type SearchCategoryCount

type SearchCategoryCount struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchCategoryCount"`

	Request *CategoryCountRequest `xml:"request,omitempty" json:"request,omitempty"`
}

type SearchCategoryCountResponse

type SearchCategoryCountResponse struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchCategoryCountResponse"`

	SearchCategoryCountResult *CategoryCountResult `xml:"SearchCategoryCountResult,omitempty" json:"SearchCategoryCountResult,omitempty"`
}

type SearchItem

type SearchItem struct {
	Id int32 `xml:"Id,omitempty" json:"Id,omitempty"`

	ShortDescription string `xml:"ShortDescription,omitempty" json:"ShortDescription,omitempty"`

	BuyItNowPrice *int32 `xml:"BuyItNowPrice,omitempty" json:"BuyItNowPrice,omitempty"`

	SellerId int32 `xml:"SellerId,omitempty" json:"SellerId,omitempty"`

	SellerAlias string `xml:"SellerAlias,omitempty" json:"SellerAlias,omitempty"`

	MaxBid *int32 `xml:"MaxBid,omitempty" json:"MaxBid,omitempty"`

	ThumbnailLink string `xml:"ThumbnailLink,omitempty" json:"ThumbnailLink,omitempty"`

	SellerDsrAverage float64 `xml:"SellerDsrAverage,omitempty" json:"SellerDsrAverage,omitempty"`

	EndDate soap.XSDDateTime `xml:"EndDate,omitempty" json:"EndDate,omitempty"`

	NextBid *int32 `xml:"NextBid,omitempty" json:"NextBid,omitempty"`

	HasBids bool `xml:"HasBids,omitempty" json:"HasBids,omitempty"`

	IsEnded bool `xml:"IsEnded,omitempty" json:"IsEnded,omitempty"`

	ItemType string `xml:"ItemType,omitempty" json:"ItemType,omitempty"`

	ItemUrl string `xml:"ItemUrl,omitempty" json:"ItemUrl,omitempty"`

	CategoryId int32 `xml:"CategoryId,omitempty" json:"CategoryId,omitempty"`

	BidCount int32 `xml:"BidCount,omitempty" json:"BidCount,omitempty"`

	ImageLinks *ArrayOfImageLink `xml:"ImageLinks,omitempty" json:"ImageLinks,omitempty"`

	AttributeValues *AttributeValues `xml:"AttributeValues,omitempty" json:"AttributeValues,omitempty"`

	LongDescription string `xml:"LongDescription,omitempty" json:"LongDescription,omitempty"`
}

type SearchResponse

type SearchResponse struct {
	XMLName xml.Name `xml:"http://api.tradera.com SearchResponse"`

	SearchResult *SearchResult `xml:"SearchResult,omitempty" json:"SearchResult,omitempty"`
}

type SearchResult

type SearchResult struct {
	TotalNumberOfItems int32 `xml:"TotalNumberOfItems,omitempty" json:"TotalNumberOfItems,omitempty"`

	TotalNumberOfPages int32 `xml:"TotalNumberOfPages,omitempty" json:"TotalNumberOfPages,omitempty"`

	Items []*SearchItem `xml:"Items,omitempty" json:"Items,omitempty"`

	Errors []*Error `xml:"Errors,omitempty" json:"Errors,omitempty"`
}

type SearchServiceHttpGet

type SearchServiceHttpGet interface {
	Search(request *string) (*SearchResult, error)

	SearchContext(ctx context.Context, request *string) (*SearchResult, error)
}

func NewSearchServiceHttpGet

func NewSearchServiceHttpGet(client *soap.Client) SearchServiceHttpGet

type SearchServiceHttpPost

type SearchServiceHttpPost interface {
	Search(request *string) (*SearchResult, error)

	SearchContext(ctx context.Context, request *string) (*SearchResult, error)
}

func NewSearchServiceHttpPost

func NewSearchServiceHttpPost(client *soap.Client) SearchServiceHttpPost

type SearchServiceSoap

type SearchServiceSoap interface {
	Search(request *Search) (*SearchResponse, error)

	SearchContext(ctx context.Context, request *Search) (*SearchResponse, error)

	SearchAdvanced(request *SearchAdvanced) (*SearchAdvancedResponse, error)

	SearchAdvancedContext(ctx context.Context, request *SearchAdvanced) (*SearchAdvancedResponse, error)

	SearchCategoryCount(request *SearchCategoryCount) (*SearchCategoryCountResponse, error)

	SearchCategoryCountContext(ctx context.Context, request *SearchCategoryCount) (*SearchCategoryCountResponse, error)

	SearchByFixedCriteria(request *SearchByFixedCriteria) (*SearchByFixedCriteriaResponse, error)

	SearchByFixedCriteriaContext(ctx context.Context, request *SearchByFixedCriteria) (*SearchByFixedCriteriaResponse, error)

	SearchByZipCode(request *SearchByZipCode) (*SearchByZipCodeResponse, error)

	SearchByZipCodeContext(ctx context.Context, request *SearchByZipCode) (*SearchByZipCodeResponse, error)
}

func NewSearchServiceSoap

func NewSearchServiceSoap(client *soap.Client) SearchServiceSoap

type TermAttributeValue

type TermAttributeValue struct {
	Id int32 `xml:"Id,omitempty" json:"Id,omitempty"`

	Name string `xml:"Name,omitempty" json:"Name,omitempty"`

	Values *ArrayOfString `xml:"Values,omitempty" json:"Values,omitempty"`
}

Jump to

Keyboard shortcuts

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