Documentation ¶
Index ¶
- type BrandStatus
- type GlobalProduct
- func (p *GlobalProduct) AddGlobalItem(item globalentity.AddItemRequestItemEntity) globalentity.AddGlobalItemResult
- func (p *GlobalProduct) AddGlobalModel(globalItemID int64, modelList []globalentity.InitTierVariationModelEntity) globalentity.AddGlobalModelResult
- func (p *GlobalProduct) CreatePublishTask(globalItemID, shopID int64, shopRegion string, ...) globalentity.CreatePublishTaskResult
- func (p *GlobalProduct) DeleteGlobalItem(globalItemID int64) globalentity.DeleteGlobalItemResult
- func (p *GlobalProduct) DeleteGlobalModel(globalItemID, globalModelID int64) globalentity.DeleteGlobalModelResult
- func (g *GlobalProduct) GetGlobalAttributes(language string, categoryID int64) globalentity.GetAttributesResult
- func (g *GlobalProduct) GetGlobalBrandList(offset, pageSize int, categoryID int64, status BrandStatus) globalentity.GetBrandListResult
- func (g *GlobalProduct) GetGlobalCategory(language string) globalentity.GetCategoryResult
- func (p *GlobalProduct) GetGlobalDtsLimit(categoryID int64) globalentity.GetDtsLimitResult
- func (p *GlobalProduct) GetGlobalItemID(shopID int64, itemIdList []int64) globalentity.GetGlobalItemIDResult
- func (p *GlobalProduct) GetGlobalItemInfo(globalItemIdList []int64) globalentity.GetGlobalItemInfoResult
- func (p *GlobalProduct) GetGlobalItemLimit(categoryID int64) globalentity.GetGlobalItemLimitResult
- func (p *GlobalProduct) GetGlobalItemList(offset string, pageSize int) globalentity.GetGlobalItemListResult
- func (p *GlobalProduct) GetGlobalModelList(globalItemID int64) globalentity.GetModelListResult
- func (p *GlobalProduct) GetPublishTaskResult(publishTaskID int64) globalentity.GetPublishTaskResult
- func (p *GlobalProduct) GetPublishableShop(globalItemID int64) globalentity.GetPublishableShopResult
- func (p *GlobalProduct) GetPublishedList(globalItemID int64) globalentity.GetPublishedListResult
- func (p *GlobalProduct) InitGlobalTierVariation(globalItemID int64, tierVariation globalentity.TierVariationEntity, ...) globalentity.InitTierVariationResult
- func (p *GlobalProduct) SetSyncField(shopSyncList []globalentity.ShopSyncEntity) globalentity.SetSyncFieldResult
- func (p *GlobalProduct) SupportGlobalSizeChart(categoryID int64) globalentity.SupportGlobalSizeChartResult
- func (p *GlobalProduct) UpdateGlobalItem(item globalentity.UpdateItemRequestItemEntity) globalentity.AddGlobalItemResult
- func (p *GlobalProduct) UpdateGlobalModel(globalItemID int64, model []globalentity.UpdateModelEntity) globalentity.UpdateGlobalModelResult
- func (p *GlobalProduct) UpdateGlobalPrice(globalItemID int64, priceList []globalentity.PriceEntity) globalentity.UpdateGlobalPriceResult
- func (p *GlobalProduct) UpdateGlobalSizeChart(globalItemID int64, sizeChart string) globalentity.UpdateGlobalSizeChartResult
- func (p *GlobalProduct) UpdateGlobalStock(globalItemID int64, stockList []globalentity.UpdateStockStockInfoEntity) globalentity.UpdateGlobalStockResult
- func (p *GlobalProduct) UpdateGlobalTierVariation(globalItemID int64, tierVariation []globalentity.TierVariationEntity) globalentity.UpdateTierVariationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrandStatus ¶
type BrandStatus int
BrandStatus
const ( NORMAL_BRAND BrandStatus = 1 PENDING_BRAND BrandStatus = 2 )
type GlobalProduct ¶
type GlobalProduct struct {
Config *shopeeConfig.Config
}
GlobalProduct
func (*GlobalProduct) AddGlobalItem ¶
func (p *GlobalProduct) AddGlobalItem(item globalentity.AddItemRequestItemEntity) globalentity.AddGlobalItemResult
AddGlobalItem @Title Add a new item. @Description https://open.shopee.com/documents?module=89&type=1&id=616&version=2
func (*GlobalProduct) AddGlobalModel ¶
func (p *GlobalProduct) AddGlobalModel(globalItemID int64, modelList []globalentity.InitTierVariationModelEntity) globalentity.AddGlobalModelResult
AddGlobalModel @Title Add model. @Description https://open.shopee.com/documents?module=90&type=1&id=643&version=2
func (*GlobalProduct) CreatePublishTask ¶
func (p *GlobalProduct) CreatePublishTask(globalItemID, shopID int64, shopRegion string, item globalentity.CreatePublishTaskItemEntity) globalentity.CreatePublishTaskResult
CreatePublishTask @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=639&version=2
func (*GlobalProduct) DeleteGlobalItem ¶
func (p *GlobalProduct) DeleteGlobalItem(globalItemID int64) globalentity.DeleteGlobalItemResult
DeleteGlobalItem @Title Delete global item. Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=621&version=2
func (*GlobalProduct) DeleteGlobalModel ¶
func (p *GlobalProduct) DeleteGlobalModel(globalItemID, globalModelID int64) globalentity.DeleteGlobalModelResult
DeleteGlobalModel @Title Delete item model. @Description https://open.shopee.com/documents?module=90&type=1&id=638&version=2
func (*GlobalProduct) GetGlobalAttributes ¶
func (g *GlobalProduct) GetGlobalAttributes(language string, categoryID int64) globalentity.GetAttributesResult
GetAttributes @Title Get attributes. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=704&version=2
func (*GlobalProduct) GetGlobalBrandList ¶
func (g *GlobalProduct) GetGlobalBrandList(offset, pageSize int, categoryID int64, status BrandStatus) globalentity.GetBrandListResult
GetBrandList @Title Use this call to get a list of brand. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=703&version=2
func (*GlobalProduct) GetGlobalCategory ¶
func (g *GlobalProduct) GetGlobalCategory(language string) globalentity.GetCategoryResult
GetCategory @Title Get global category. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=654&version=2
func (*GlobalProduct) GetGlobalDtsLimit ¶
func (p *GlobalProduct) GetGlobalDtsLimit(categoryID int64) globalentity.GetDtsLimitResult
GetDtsLimit @Title Get category DTS limit. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=634&version=2
func (*GlobalProduct) GetGlobalItemID ¶
func (p *GlobalProduct) GetGlobalItemID(shopID int64, itemIdList []int64) globalentity.GetGlobalItemIDResult
GetGlobalItemID @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=657&version=2
func (*GlobalProduct) GetGlobalItemInfo ¶
func (p *GlobalProduct) GetGlobalItemInfo(globalItemIdList []int64) globalentity.GetGlobalItemInfoResult
GetGlobalItemInfo @Title Get global item info.Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=644&version=2
func (*GlobalProduct) GetGlobalItemLimit ¶
func (p *GlobalProduct) GetGlobalItemLimit(categoryID int64) globalentity.GetGlobalItemLimitResult
GetItemLimit @Title Get global item upload control.Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926. @Description https://open.shopee.com/documents?module=90&type=1&id=637&version=2
func (*GlobalProduct) GetGlobalItemList ¶
func (p *GlobalProduct) GetGlobalItemList(offset string, pageSize int) globalentity.GetGlobalItemListResult
GetGlobalItemList @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 (*GlobalProduct) GetGlobalModelList ¶
func (p *GlobalProduct) GetGlobalModelList(globalItemID int64) globalentity.GetModelListResult
GetGlobalModelList @Title Get global model list. Only for China mainland sellers using China Seller Centre(CNSC) @Description https://open.shopee.com/documents?module=90&type=1&id=623&version=2
func (*GlobalProduct) GetPublishTaskResult ¶
func (p *GlobalProduct) GetPublishTaskResult(publishTaskID int64) globalentity.GetPublishTaskResult
GetPublishTaskResult @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=627&version=2
func (*GlobalProduct) GetPublishableShop ¶
func (p *GlobalProduct) GetPublishableShop(globalItemID int64) globalentity.GetPublishableShopResult
GetPublishableShop @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=630&version=2
func (*GlobalProduct) GetPublishedList ¶
func (p *GlobalProduct) GetPublishedList(globalItemID int64) globalentity.GetPublishedListResult
GetPublishedList @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=633&version=2
func (*GlobalProduct) InitGlobalTierVariation ¶
func (p *GlobalProduct) InitGlobalTierVariation(globalItemID int64, tierVariation globalentity.TierVariationEntity, model globalentity.InitTierVariationModelEntity) globalentity.InitTierVariationResult
InitGlobalTierVariation @Title Initialize global product tier variation. Only for China mainland sellers using China Seller Centre(CNSC) @Description https://open.shopee.com/documents?module=90&type=1&id=635&version=2
func (*GlobalProduct) SetSyncField ¶
func (p *GlobalProduct) SetSyncField(shopSyncList []globalentity.ShopSyncEntity) globalentity.SetSyncFieldResult
SetSyncField @Title Update stock. @Description https://open.shopee.com/documents?module=90&type=1&id=656&version=2
func (*GlobalProduct) SupportGlobalSizeChart ¶
func (p *GlobalProduct) SupportGlobalSizeChart(categoryID int64) globalentity.SupportGlobalSizeChartResult
SupportGlobalSizeChart @Title Get category support size chart. @Description https://open.shopee.com/documents?module=90&type=1&id=632&version=2
func (*GlobalProduct) UpdateGlobalItem ¶
func (p *GlobalProduct) UpdateGlobalItem(item globalentity.UpdateItemRequestItemEntity) globalentity.AddGlobalItemResult
UpdateGlobalItem @Title Update global item. Only for China mainland sellers using China Seller Centre(CNSC). More details in https://shopee.cn/cooperate/46/53/926 @Description https://open.shopee.com/documents?module=90&type=1&id=620&version=2
func (*GlobalProduct) UpdateGlobalModel ¶
func (p *GlobalProduct) UpdateGlobalModel(globalItemID int64, model []globalentity.UpdateModelEntity) globalentity.UpdateGlobalModelResult
UpdateGlobalModel @Title Update seller sku for model. @Description https://open.shopee.com/documents?module=90&type=1&id=645&version=2
func (*GlobalProduct) UpdateGlobalPrice ¶
func (p *GlobalProduct) UpdateGlobalPrice(globalItemID int64, priceList []globalentity.PriceEntity) globalentity.UpdateGlobalPriceResult
UpdateGlobalPrice @Title Create publish task for global item.Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=642&version=2
func (*GlobalProduct) UpdateGlobalSizeChart ¶
func (p *GlobalProduct) UpdateGlobalSizeChart(globalItemID int64, sizeChart string) globalentity.UpdateGlobalSizeChartResult
UpdateGlobalSizeChart @Title Update size chart image of item. @Description https://open.shopee.com/documents?module=90&type=1&id=625&version=2
func (*GlobalProduct) UpdateGlobalStock ¶
func (p *GlobalProduct) UpdateGlobalStock(globalItemID int64, stockList []globalentity.UpdateStockStockInfoEntity) globalentity.UpdateGlobalStockResult
UpdateGlobalStock @Title Update stock. @Description https://open.shopee.com/documents?module=90&type=1&id=641&version=2
func (*GlobalProduct) UpdateGlobalTierVariation ¶
func (p *GlobalProduct) UpdateGlobalTierVariation(globalItemID int64, tierVariation []globalentity.TierVariationEntity) globalentity.UpdateTierVariationResult
UpdateGlobalTierVariation @Title Update global product tier variation. Only for China mainland sellers using China Seller Centre(CNSC). @Description https://open.shopee.com/documents?module=90&type=1&id=636&version=2