Documentation
¶
Index ¶
- type ApiResponseError
- type FeedResource
- type GetOrdersParams
- type GetProductsParams
- type OrderResource
- func (or OrderResource) GetDocument(orderItemIds []int, documentType model.DocumentType) (model.Document, error)
- func (or OrderResource) GetFailureReasons() (map[model.FailureReasonType][]string, error)
- func (or OrderResource) GetMultipleOrderItems(orderIds []int) (model.OrdersWithItems, error)
- func (or OrderResource) GetOrder(orderId int) (model.Order, error)
- func (or OrderResource) GetOrderItems(orderId int) (model.OrderItems, error)
- func (or OrderResource) GetOrders(params GetOrdersParams) (model.Orders, error)
- func (or OrderResource) SetStatusToCanceled(orderItemId int, reason string, reasonDetail string) (bool, error)
- func (or OrderResource) SetStatusToPackedByMarketplace(orderItemIds []int, deliveryType model.DeliveryType, shippingProvider string) (bool, error)
- func (or OrderResource) SetStatusToReadyToShip(orderItemIds []int, deliveryType model.DeliveryType, shippingProvider string, ...) (bool, error)
- func (or OrderResource) SetStatusToShipped(orderItemId int) (bool, error)
- type ProductApiWarningError
- type ProductBuilder
- func (pb *ProductBuilder) WithBrand(brand string) *ProductBuilder
- func (pb *ProductBuilder) WithBrowseNodes(browseNodes []int) *ProductBuilder
- func (pb *ProductBuilder) WithCategories(categories []int) *ProductBuilder
- func (pb *ProductBuilder) WithCondition(condition string) *ProductBuilder
- func (pb *ProductBuilder) WithDescription(description string) *ProductBuilder
- func (pb *ProductBuilder) WithImage(image string) *ProductBuilder
- func (pb *ProductBuilder) WithMainImage(image string) *ProductBuilder
- func (pb *ProductBuilder) WithName(name string) *ProductBuilder
- func (pb *ProductBuilder) WithParentSku(parentSku string) *ProductBuilder
- func (pb *ProductBuilder) WithPrice(price float64) *ProductBuilder
- func (pb *ProductBuilder) WithPrimaryCategory(primaryCategory int) *ProductBuilder
- func (pb *ProductBuilder) WithProductData(productData productDataEntity) *ProductBuilder
- func (pb *ProductBuilder) WithProductGroup(productGroup string) *ProductBuilder
- func (pb *ProductBuilder) WithProductId(productId string) *ProductBuilder
- func (pb *ProductBuilder) WithQuantity(quantity int) *ProductBuilder
- func (pb *ProductBuilder) WithSaleEndDate(saleEndDate time.Time) *ProductBuilder
- func (pb *ProductBuilder) WithSalePrice(salePrice float64) *ProductBuilder
- func (pb *ProductBuilder) WithSaleStartDate(saleStartDate time.Time) *ProductBuilder
- func (pb *ProductBuilder) WithSellerSku(sellerSku string) *ProductBuilder
- func (pb *ProductBuilder) WithShipmentType(shipmentType string) *ProductBuilder
- func (pb *ProductBuilder) WithStatus(status string) *ProductBuilder
- func (pb *ProductBuilder) WithTaxClass(taxClass string) *ProductBuilder
- func (pb *ProductBuilder) WithVariation(variation string) *ProductBuilder
- func (pb *ProductBuilder) WithVolumetricWeight(volumetricWeight float64) *ProductBuilder
- type ProductResource
- func (pr ProductResource) GetBrands() (model.Brands, error)
- func (pr ProductResource) GetCategoryAttributes(categoryId int) (model.Attributes, error)
- func (pr ProductResource) GetCategoryTree() (model.Categories, error)
- func (pr ProductResource) GetProducts(params GetProductsParams) (model.Products, error)
- func (pr ProductResource) InitProduct() *ProductBuilder
- func (pr ProductResource) ProductCreate(productBuilders []ProductBuilder) (string, error)
- func (pr ProductResource) ProductImage(sellerSku string, images model.Images) (string, error)
- func (pr ProductResource) ProductUpdate(productBuilders []ProductBuilder) (string, error)
- type WebhookResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponseError ¶ added in v1.1.0
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 GetProductsParams ¶
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) 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 (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) 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 (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)
Click to show internal directories.
Click to hide internal directories.