resource

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiResponseError added in v1.1.0

type ApiResponseError struct {
	Code    string
	Message string
}

func (*ApiResponseError) Error added in v1.1.0

func (e *ApiResponseError) Error() string

type FeedResource added in v1.1.0

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

func NewFeed added in v1.1.0

func NewFeed(client client.Client) FeedResource

func (FeedResource) FeedList added in v1.1.0

func (fr FeedResource) FeedList() (model.FeedList, error)

func (FeedResource) FeedStatus added in v1.1.0

func (fr FeedResource) FeedStatus(feedIdentifier string) (model.FeedStatus, error)

type GetOrdersParams

type GetOrdersParams struct {
	CreatedAfter  *time.Time
	CreatedBefore *time.Time
	UpdatedAfter  *time.Time
	UpdatedBefore *time.Time
	Status        *string
	Limit         *int
	Offset        *int
	SortBy        *string
	SortDirection *string
}

type GetProductsParams

type GetProductsParams struct {
	CreatedAfter     *time.Time
	CreatedBefore    *time.Time
	UpdatedAfter     *time.Time
	UpdatedBefore    *time.Time
	Status           *string
	Limit            *int
	Offset           *int
	SortBy           *string
	SortDirection    *string
	Search           *string
	Filter           *string
	SkuSellerList    *[]string
	GlobalIdentifier *bool
}

type OrderResource

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

func NewOrder

func NewOrder(client client.Client) OrderResource

func (OrderResource) GetDocument

func (or OrderResource) GetDocument(orderItemIds []int, documentType model.DocumentType) (model.Document, error)

func (OrderResource) GetFailureReasons added in v1.3.1

func (or OrderResource) GetFailureReasons() (map[model.FailureReasonType][]string, error)

func (OrderResource) GetMultipleOrderItems added in v1.1.3

func (or OrderResource) GetMultipleOrderItems(orderIds []int) (model.OrdersWithItems, error)

func (OrderResource) GetOrder

func (or OrderResource) GetOrder(orderId int) (model.Order, error)

func (OrderResource) GetOrderItems

func (or OrderResource) GetOrderItems(orderId int) (model.OrderItems, error)

func (OrderResource) GetOrders

func (or OrderResource) GetOrders(params GetOrdersParams) (model.Orders, error)

func (OrderResource) SetStatusToCanceled

func (or OrderResource) SetStatusToCanceled(orderItemId int, reason string, reasonDetail string) (bool, error)

func (OrderResource) SetStatusToPackedByMarketplace

func (or OrderResource) SetStatusToPackedByMarketplace(orderItemIds []int, deliveryType model.DeliveryType, shippingProvider string) (bool, error)

func (OrderResource) SetStatusToReadyToShip

func (or OrderResource) SetStatusToReadyToShip(orderItemIds []int, deliveryType model.DeliveryType, shippingProvider string, trackingNumber string) (bool, error)

func (OrderResource) SetStatusToShipped added in v1.3.3

func (or OrderResource) SetStatusToShipped(orderItemId int) (bool, error)

type ProductApiWarningError added in v1.1.0

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

func (*ProductApiWarningError) Error added in v1.1.0

func (e *ProductApiWarningError) Error() string

type ProductBuilder

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

func (*ProductBuilder) WithBrand

func (pb *ProductBuilder) WithBrand(brand string) *ProductBuilder

func (*ProductBuilder) WithBrowseNodes

func (pb *ProductBuilder) WithBrowseNodes(browseNodes []int) *ProductBuilder

func (*ProductBuilder) WithCategories

func (pb *ProductBuilder) WithCategories(categories []int) *ProductBuilder

func (*ProductBuilder) WithCondition

func (pb *ProductBuilder) WithCondition(condition string) *ProductBuilder

func (*ProductBuilder) WithDescription

func (pb *ProductBuilder) WithDescription(description string) *ProductBuilder

func (*ProductBuilder) WithImage

func (pb *ProductBuilder) WithImage(image string) *ProductBuilder

func (*ProductBuilder) WithMainImage

func (pb *ProductBuilder) WithMainImage(image string) *ProductBuilder

func (*ProductBuilder) WithName

func (pb *ProductBuilder) WithName(name string) *ProductBuilder

func (*ProductBuilder) WithParentSku

func (pb *ProductBuilder) WithParentSku(parentSku string) *ProductBuilder

func (*ProductBuilder) WithPrice

func (pb *ProductBuilder) WithPrice(price float64) *ProductBuilder

func (*ProductBuilder) WithPrimaryCategory

func (pb *ProductBuilder) WithPrimaryCategory(primaryCategory int) *ProductBuilder

func (*ProductBuilder) WithProductData

func (pb *ProductBuilder) WithProductData(productData productDataEntity) *ProductBuilder

func (*ProductBuilder) WithProductGroup

func (pb *ProductBuilder) WithProductGroup(productGroup string) *ProductBuilder

func (*ProductBuilder) WithProductId

func (pb *ProductBuilder) WithProductId(productId string) *ProductBuilder

func (*ProductBuilder) WithQuantity

func (pb *ProductBuilder) WithQuantity(quantity int) *ProductBuilder

func (*ProductBuilder) WithSaleEndDate

func (pb *ProductBuilder) WithSaleEndDate(saleEndDate time.Time) *ProductBuilder

func (*ProductBuilder) WithSalePrice

func (pb *ProductBuilder) WithSalePrice(salePrice float64) *ProductBuilder

func (*ProductBuilder) WithSaleStartDate

func (pb *ProductBuilder) WithSaleStartDate(saleStartDate time.Time) *ProductBuilder

func (*ProductBuilder) WithSellerSku

func (pb *ProductBuilder) WithSellerSku(sellerSku string) *ProductBuilder

func (*ProductBuilder) WithShipmentType

func (pb *ProductBuilder) WithShipmentType(shipmentType string) *ProductBuilder

func (*ProductBuilder) WithStatus

func (pb *ProductBuilder) WithStatus(status string) *ProductBuilder

func (*ProductBuilder) WithTaxClass

func (pb *ProductBuilder) WithTaxClass(taxClass string) *ProductBuilder

func (*ProductBuilder) WithVariation

func (pb *ProductBuilder) WithVariation(variation string) *ProductBuilder

func (*ProductBuilder) WithVolumetricWeight

func (pb *ProductBuilder) WithVolumetricWeight(volumetricWeight float64) *ProductBuilder

type ProductResource

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

func NewProduct

func NewProduct(client client.Client) ProductResource

func (ProductResource) GetBrands

func (pr ProductResource) GetBrands() (model.Brands, error)

func (ProductResource) GetCategoryAttributes

func (pr ProductResource) GetCategoryAttributes(categoryId int) (model.Attributes, error)

func (ProductResource) GetCategoryTree

func (pr ProductResource) GetCategoryTree() (model.Categories, error)

func (ProductResource) GetProducts

func (pr ProductResource) GetProducts(params GetProductsParams) (model.Products, error)

func (ProductResource) InitProduct

func (pr ProductResource) InitProduct() *ProductBuilder

func (ProductResource) ProductCreate

func (pr ProductResource) ProductCreate(productBuilders []ProductBuilder) (string, error)

func (ProductResource) ProductImage

func (pr ProductResource) ProductImage(sellerSku string, images model.Images) (string, error)

func (ProductResource) ProductUpdate

func (pr ProductResource) ProductUpdate(productBuilders []ProductBuilder) (string, error)

type WebhookResource added in v1.2.0

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

func NewWebhook added in v1.2.0

func NewWebhook(client client.Client) WebhookResource

func (WebhookResource) CreateWebhook added in v1.2.0

func (wr WebhookResource) CreateWebhook(callbackUrl string, events []string) (bool, error)

func (WebhookResource) GetWebhookEntities added in v1.2.0

func (wr WebhookResource) GetWebhookEntities() (model.WebhookEntities, error)

func (WebhookResource) GetWebhooks added in v1.2.0

func (wr WebhookResource) GetWebhooks() (model.Webhooks, error)

Jump to

Keyboard shortcuts

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