order

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 ArrayOfFreightLabel

type ArrayOfFreightLabel struct {
	FreightLabel []*FreightLabel `xml:"FreightLabel,omitempty" json:"FreightLabel,omitempty"`
}

type ArrayOfInt

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

type ArrayOfKeyValuePair

type ArrayOfKeyValuePair struct {
	KeyValuePair []*KeyValuePair `xml:"KeyValuePair,omitempty" json:"KeyValuePair,omitempty"`
}

type ArrayOfSellerOrder

type ArrayOfSellerOrder struct {
	SellerOrder []*SellerOrder `xml:"SellerOrder,omitempty" json:"SellerOrder,omitempty"`
}

type ArrayOfSellerOrderItem

type ArrayOfSellerOrderItem struct {
	SellerOrderItem []*SellerOrderItem `xml:"SellerOrderItem,omitempty" json:"SellerOrderItem,omitempty"`
}

type ArrayOfSellerOrderPayment

type ArrayOfSellerOrderPayment struct {
	SellerOrderPayment []*SellerOrderPayment `xml:"SellerOrderPayment,omitempty" json:"SellerOrderPayment,omitempty"`
}

type ArrayOfString

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

type AuthenticationHeader

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

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

type AuthorizationHeader

type AuthorizationHeader struct {
	UserId int32 `xml:"UserId,omitempty" json:"UserId,omitempty"`

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

type ConfigurationHeader

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

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

type FreightLabel

type FreightLabel struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`

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

type FreightLabelsResult

type FreightLabelsResult struct {
	FreightLabels *ArrayOfFreightLabel `xml:"FreightLabels,omitempty" json:"FreightLabels,omitempty"`
}

type GetFreightLabels

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

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

type GetFreightLabelsRequest

type GetFreightLabelsRequest struct {
	OrderIds *ArrayOfInt `xml:"OrderIds,omitempty" json:"OrderIds,omitempty"`
}

type GetFreightLabelsResponse

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

	GetFreightLabelsResult *FreightLabelsResult `xml:"GetFreightLabelsResult,omitempty" json:"GetFreightLabelsResult,omitempty"`
}

type GetOrders

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

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

type GetOrdersRequest

type GetOrdersRequest struct {
	OrderIds *ArrayOfInt `xml:"OrderIds,omitempty" json:"OrderIds,omitempty"`
}

type GetOrdersResponse

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

	GetOrdersResult *OrdersResult `xml:"GetOrdersResult,omitempty" json:"GetOrdersResult,omitempty"`
}

type GetSellerOrders

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

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

type GetSellerOrdersRequest

type GetSellerOrdersRequest struct {
	FromDate *soap.XSDDateTime `xml:"FromDate,omitempty" json:"FromDate,omitempty"`

	ToDate *soap.XSDDateTime `xml:"ToDate,omitempty" json:"ToDate,omitempty"`

	QueryDateMode *SellerOrderQueryDateMode `xml:"QueryDateMode,omitempty" json:"QueryDateMode,omitempty"`
}

type GetSellerOrdersResponse

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

	GetSellerOrdersResult *SellerOrdersData `xml:"GetSellerOrdersResult,omitempty" json:"GetSellerOrdersResult,omitempty"`
}

type Guid

type Guid string

type ItemType

type ItemType string
const (
	ItemTypeAuction ItemType = "Auction"

	ItemTypePureBuyItNow ItemType = "PureBuyItNow"

	ItemTypeShopItem ItemType = "ShopItem"
)

type KeyValuePair

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

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

type NCName

type NCName string

type OrderServiceHttpGet

type OrderServiceHttpGet interface {
}

func NewOrderServiceHttpGet

func NewOrderServiceHttpGet(client *soap.Client) OrderServiceHttpGet

type OrderServiceHttpPost

type OrderServiceHttpPost interface {
}

func NewOrderServiceHttpPost

func NewOrderServiceHttpPost(client *soap.Client) OrderServiceHttpPost

type OrderServiceSoap

type OrderServiceSoap interface {
	GetSellerOrders(request *GetSellerOrders) (*GetSellerOrdersResponse, error)

	GetSellerOrdersContext(ctx context.Context, request *GetSellerOrders) (*GetSellerOrdersResponse, error)

	SetSellerOrderAsShipped(request *SetSellerOrderAsShipped) (*SetSellerOrderAsShippedResponse, error)

	SetSellerOrderAsShippedContext(ctx context.Context, request *SetSellerOrderAsShipped) (*SetSellerOrderAsShippedResponse, error)

	SetSellerOrderAsPaid(request *SetSellerOrderAsPaid) (*SetSellerOrderAsPaidResponse, error)

	SetSellerOrderAsPaidContext(ctx context.Context, request *SetSellerOrderAsPaid) (*SetSellerOrderAsPaidResponse, error)

	GetOrders(request *GetOrders) (*GetOrdersResponse, error)

	GetOrdersContext(ctx context.Context, request *GetOrders) (*GetOrdersResponse, error)

	GetFreightLabels(request *GetFreightLabels) (*GetFreightLabelsResponse, error)

	GetFreightLabelsContext(ctx context.Context, request *GetFreightLabels) (*GetFreightLabelsResponse, error)
}

func NewOrderServiceSoap

func NewOrderServiceSoap(client *soap.Client) OrderServiceSoap

type OrdersResult

type OrdersResult struct {
	SellerOrders *ArrayOfSellerOrder `xml:"SellerOrders,omitempty" json:"SellerOrders,omitempty"`
}

type SellerOrder

type SellerOrder struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`

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

	ExpiresDate *soap.XSDDateTime `xml:"ExpiresDate,omitempty" json:"ExpiresDate,omitempty"`

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

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

	Seller *SellerOrderUser `xml:"Seller,omitempty" json:"Seller,omitempty"`

	Buyer *SellerOrderUser `xml:"Buyer,omitempty" json:"Buyer,omitempty"`

	ShipTo *SellerOrderAddress `xml:"ShipTo,omitempty" json:"ShipTo,omitempty"`

	Items *ArrayOfSellerOrderItem `xml:"Items,omitempty" json:"Items,omitempty"`

	SellerOrderPayments *ArrayOfSellerOrderPayment `xml:"SellerOrderPayments,omitempty" json:"SellerOrderPayments,omitempty"`

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

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

	ShippingWeight *float64 `xml:"ShippingWeight,omitempty" json:"ShippingWeight,omitempty"`

	PurchaseOrderId *Guid `xml:"PurchaseOrderId,omitempty" json:"PurchaseOrderId,omitempty"`
}

type SellerOrderAddress

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

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

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

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

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

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

type SellerOrderItem

type SellerOrderItem struct {
	ItemId int32 `xml:"ItemId,omitempty" json:"ItemId,omitempty"`

	Type *ItemType `xml:"Type,omitempty" json:"Type,omitempty"`

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

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

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

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

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

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

type SellerOrderPayment

type SellerOrderPayment struct {
	PaymentType string `xml:"PaymentType,omitempty" json:"PaymentType,omitempty"`

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

	AdditionalInfo *ArrayOfKeyValuePair `xml:"AdditionalInfo,omitempty" json:"AdditionalInfo,omitempty"`

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

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

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

type SellerOrderQueryDateMode

type SellerOrderQueryDateMode string
const (
	SellerOrderQueryDateModeCreatedDate SellerOrderQueryDateMode = "CreatedDate"

	SellerOrderQueryDateModeLastUpdatedDate SellerOrderQueryDateMode = "LastUpdatedDate"
)

type SellerOrderUser

type SellerOrderUser struct {
	UserId int32 `xml:"UserId,omitempty" json:"UserId,omitempty"`

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

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

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

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

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

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

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

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

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

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

type SellerOrdersData

type SellerOrdersData struct {
	SellerOrders *ArrayOfSellerOrder `xml:"SellerOrders,omitempty" json:"SellerOrders,omitempty"`
}

type SetPaidResult

type SetPaidResult struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`
}

type SetSellerOrderAsPaid

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

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

type SetSellerOrderAsPaidRequest

type SetSellerOrderAsPaidRequest struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`
}

type SetSellerOrderAsPaidResponse

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

	SetSellerOrderAsPaidResult *SetPaidResult `xml:"SetSellerOrderAsPaidResult,omitempty" json:"SetSellerOrderAsPaidResult,omitempty"`
}

type SetSellerOrderAsShipped

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

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

type SetSellerOrderAsShippedRequest

type SetSellerOrderAsShippedRequest struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`
}

type SetSellerOrderAsShippedResponse

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

	SetSellerOrderAsShippedResult *SetShippedResult `xml:"SetSellerOrderAsShippedResult,omitempty" json:"SetSellerOrderAsShippedResult,omitempty"`
}

type SetShippedResult

type SetShippedResult struct {
	OrderId int32 `xml:"OrderId,omitempty" json:"OrderId,omitempty"`
}

Jump to

Keyboard shortcuts

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