product

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INT_TYPE           AttributeType   = "INT_TYPE"
	STRING_TYPE        AttributeType   = "STRING_TYPE"
	ENUM_TYPE          AttributeType   = "ENUM_TYPE"
	FLOAT_TYPE         AttributeType   = "FLOAT_TYPE"
	DATE_TYPE          AttributeType   = "DATE_TYPE"
	TIMESTAMP_TYPE     AttributeType   = "TIMESTAMP_TYPE"
	NORMAL             ItemStatus      = "NORMAL"
	BANNED             ItemStatus      = "BANNED"
	DELETED            ItemStatus      = "DELETED"
	UNLIST             ItemStatus      = "UNLIST"
	NORMAL_BRAND       BrandStatus     = 1
	PENDING_BRAND      BrandStatus     = 2
	REQUIRES_ATTRIBUTE AttributeStatus = 1
	OPTIONAL_ATTRIBUTE AttributeStatus = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeStatus

type AttributeStatus int

AttributeStatus

type AttributeType

type AttributeType string

AttributeType

type BrandStatus

type BrandStatus int

BrandStatus

type ItemStatus

type ItemStatus string

ItemStatus

type Product

type Product struct {
	Config *shopeeConfig.Config
}

Product

func (*Product) AddItem

AddItem @Title Add a new item. @Description https://open.shopee.com/documents?module=89&type=1&id=616&version=2

func (*Product) AddModel

func (p *Product) AddModel(itemID int64, modelList []entity.InitTierVariationModelEntity) entity.AddModelResult

AddModel @Title Add model. @Description https://open.shopee.com/documents?module=89&type=1&id=649&version=2

func (*Product) BoostItem

func (p *Product) BoostItem(itemIdList []int64) entity.BoostItemResult

BoostItem @Title Boost item. @Description https://open.shopee.com/documents?module=89&type=1&id=624&version=2

func (*Product) CategoryRecommend

func (p *Product) CategoryRecommend(itemName string) entity.CategoryRecommendResult

CategoryRecommend @Title Recommend category by item name. @Description https://open.shopee.com/documents?module=89&type=1&id=702&version=2

func (*Product) DeleteItem

func (p *Product) DeleteItem(itemID int64) entity.DeleteItemResult

DeleteItem @Title Use this call to delete a product item. @Description https://open.shopee.com/documents?module=89&type=1&id=615&version=2

func (*Product) DeleteModel

func (p *Product) DeleteModel(itemID, modelID int64) entity.DeleteModelResult

DeleteModel @Title Delete item model. @Description https://open.shopee.com/documents?module=89&type=1&id=650&version=2

func (*Product) GetAttributes

func (p *Product) GetAttributes(language string, categoryID int64) entity.GetAttributesResult

GetAttributes @Title Get attributes. @Description https://open.shopee.com/documents?module=89&type=1&id=655&version=2

func (*Product) GetBoostedList

func (p *Product) GetBoostedList(itemIdList []int64) entity.GetBoostedListResult

GetBoostedList @Title Get boosted item list. @Description https://open.shopee.com/documents?module=89&type=1&id=626&version=2

func (*Product) GetBrandList

func (p *Product) GetBrandList(offset, pageSize int, categoryID int64, status BrandStatus) entity.GetBrandListResult

GetBrandList @Title Use this call to get a list of brand. @Description https://open.shopee.com/documents?module=89&type=1&id=684&version=2

func (*Product) GetCategory

func (p *Product) GetCategory(language string) entity.GetCategoryResult

GetCategory @Title Get category. @Description https://open.shopee.com/documents?module=89&type=1&id=653&version=2

func (*Product) GetComment

func (p *Product) GetComment(itemID, commentID int64, cursor string, pageSize int) entity.GetCommentResult

GetComment @Title Use this api to get comment by shop_id, item_id, or comment_id. @Description https://open.shopee.com/documents?module=89&type=1&id=562&version=2

func (*Product) GetDtsLimit

func (p *Product) GetDtsLimit(categoryID int64) entity.GetDtsLimitResult

GetDtsLimit @Title Get day to shipping limit. @Description https://open.shopee.com/documents?module=89&type=1&id=628&version=2

func (*Product) GetItemBaseInfo

func (p *Product) GetItemBaseInfo(itemIdList []int64) entity.GetItemBaseInfoResult

GetItemBaseInfo @Title Use this api to get basic info of item by item_id list. @Description https://open.shopee.com/documents?module=89&type=1&id=612&version=2

func (*Product) GetItemExtraInfo

func (p *Product) GetItemExtraInfo(itemIdList []int64) entity.GetItemExtraInfoResult

GetItemExtraInfo @Title Use this api to get extra info of item by item_id list. @Description https://open.shopee.com/documents?module=89&type=1&id=613&version=2

func (*Product) GetItemLimit

func (p *Product) GetItemLimit(categoryID int64) entity.GetItemLimitResult

GetItemLimit @Title Get item upload control. @Description https://open.shopee.com/documents?module=89&type=1&id=629&version=2

func (*Product) GetItemList

func (p *Product) GetItemList(offset, pageSize, updateTimeFrom, updateTimeTo int, itemStatus ItemStatus) entity.GetItemListResult

GetItemList @Title Use this call to get a list of items. @Description https://open.shopee.com/documents?module=89&type=1&id=614&version=2

func (*Product) GetItemPromotion

func (p *Product) GetItemPromotion(itemIdList []int64) entity.GetItemPromotionResult

GetItemPromotion @Title Get item promotion info. @Description https://open.shopee.com/documents?module=89&type=1&id=661&version=2

func (*Product) GetModelList

func (p *Product) GetModelList(itemID int64) entity.GetModelListResult

GetModelList @Title Get model list of an item. @Description https://open.shopee.com/documents?module=89&type=1&id=618&version=2

func (*Product) InitTierVariation

func (p *Product) InitTierVariation(itemID int64, tierVariation entity.TierVariationEntity, model entity.InitTierVariationModelEntity) entity.InitTierVariationResult

InitTierVariation @Title Init item tier-variation struct. @Description https://open.shopee.com/documents?module=89&type=1&id=646&version=2

func (*Product) ReplyComment

ReplyComment @Title Use this api to reply comments from buyers in batch. @Description https://open.shopee.com/documents?module=89&type=1&id=563&version=2

func (*Product) SearchItem

func (p *Product) SearchItem(offset string, pageSize int, itemName string, attributeStatus AttributeStatus) entity.SearchItemResult

SearchItem @Title Use this call to search item. @Description https://open.shopee.com/documents?module=89&type=1&id=701&version=2

func (*Product) SupportSizeChart

func (p *Product) SupportSizeChart(category int64) entity.SupportSizeChartResult

SupportSizeChart @Title Get category support size chart. @Description https://open.shopee.com/documents?module=89&type=1&id=631&version=2

func (*Product) UnlistItem

UnlistItem @Title Unlist item. @Description https://open.shopee.com/documents?module=89&type=1&id=622&version=2

func (*Product) UpdateItem

UpdateItem @Title Update item. @Description https://open.shopee.com/documents?module=89&type=1&id=617&version=2

func (*Product) UpdateModel

func (p *Product) UpdateModel(itemID int64, model []entity.UpdateModelEntity) entity.UpdateModelResult

UpdateModel @Title Update seller sku for model. @Description https://open.shopee.com/documents?module=89&type=1&id=648&version=2

func (*Product) UpdatePrice

func (p *Product) UpdatePrice(itemID int64, priceList []entity.UpdatePricePriceInfoEntity) entity.UpdatePriceResult

UpdatePrice @Title Update price. @Description https://open.shopee.com/documents?module=89&type=1&id=651&version=2

func (*Product) UpdateSipItemPrice

func (p *Product) UpdateSipItemPrice(itemID int64, sipItemPrice []entity.SipItemPriceEntity) entity.UpdateSipItemPriceResult

UpdateSipItemPrice @Title Update sip item price. @Description https://open.shopee.com/documents?module=89&type=1&id=662&version=2

func (*Product) UpdateSizeChart

func (p *Product) UpdateSizeChart(itemID int64, sizeChart string) entity.UpdateSizeChartResult

UpdateSizeChart @Title Update size chart image of item. @Description https://open.shopee.com/documents?module=89&type=1&id=619&version=2

func (*Product) UpdateStock

func (p *Product) UpdateStock(itemID int64, stockList []entity.UpdateStockStockInfoEntity) entity.UpdateStockResult

UpdateStock @Title Update stock. @Description https://open.shopee.com/documents?module=89&type=1&id=652&version=2

func (*Product) UpdateTierVariation

func (p *Product) UpdateTierVariation(itemID int64, tierVariation []entity.TierVariationEntity) entity.UpdateTierVariationResult

UpdateTierVariation @Title Update item tier-variation struct. @Description https://open.shopee.com/documents?module=89&type=1&id=647&version=2

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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