product_addChannelProduct_request

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelBuyLimit

type ChannelBuyLimit struct {
	// 单用户累计购买上限数
	TotalBuyNum *int64 `json:"total_buy_num"`
	// 每次购买上限数
	MaxBuyNum *int64 `json:"max_buy_num"`
	// 每次至少购买数
	MinBuyNum *int64 `json:"min_buy_num"`
}

type FreightTemplate

type FreightTemplate struct {
	// 渠道品运费模板是否与主品保持一致
	FreightFollowMain bool `json:"freight_follow_main"`
	// 渠道品定制运费模板ID,当设置了freight_follow_main=true时与主品运费模板保持一致;否则需要传值。
	FreightId int64 `json:"freight_id"`
}

type ProductAddChannelProductParam

type ProductAddChannelProductParam struct {
	// 主商品ID
	MainProductId int64 `json:"main_product_id"`
	// 渠道类型3:商家自卖4:达人带货
	ChannelType int64 `json:"channel_type"`
	// 渠道品定制标题。必填
	Name *string `json:"name"`
	// 渠道品定制主图,最高支持5张。可省略,默认使用主商品主图列表
	MainImgList []string `json:"main_img_list"`
	// 有效期开始时间。不填开始和结束时间,代表长期有效
	StartTime *string `json:"start_time"`
	// 有效期结束时间。不填开始和结束时间,代表长期有效
	EndTime *string `json:"end_time"`
	// 渠道品SKU价格是否跟随主品
	PriceFollowMain bool `json:"price_follow_main"`
	// 渠道品SKU库存是否与主商品共享库存
	ShareMainStock bool `json:"share_main_stock"`
	// 是否『达人专属』渠道品
	IsKolExclusive bool `json:"is_kol_exclusive"`
	// 渠道品限购信息
	ChannelBuyLimit *ChannelBuyLimit `json:"channel_buy_limit"`
	// 渠道SKU相关信息
	SkuChannel []SkuChannelItem `json:"sku_channel"`
	// 渠道品定制详情图,最高支持50张。可省略,默认使用主商品详情图列表
	DetailBriefImg []string `json:"detail_brief_img"`
	// 运费模板信息
	FreightTemplate *FreightTemplate `json:"freight_template"`
}

type ProductAddChannelProductRequest

type ProductAddChannelProductRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *ProductAddChannelProductParam
}

func (*ProductAddChannelProductRequest) Execute

func (c *ProductAddChannelProductRequest) Execute(accessToken *doudian_sdk.AccessToken) (*product_addChannelProduct_response.ProductAddChannelProductResponse, error)

func (*ProductAddChannelProductRequest) GetParamObject

func (c *ProductAddChannelProductRequest) GetParamObject() interface{}

func (*ProductAddChannelProductRequest) GetParams

func (*ProductAddChannelProductRequest) GetUrlPath

func (c *ProductAddChannelProductRequest) GetUrlPath() string

type SkuChannelItem

type SkuChannelItem struct {
	// 库存编辑模式,0=设置绝对值,1=增量设置
	StockSetMode int32 `json:"stock_set_mode"`
	// 渠道品定制SKU商家编码。可忽略,默认使用主商品SKU商家编码。
	Code string `json:"code"`
	// 主商品SkuID
	SkuId int64 `json:"sku_id"`
	// 价格,单位分。设置价格跟随主品时,可不填
	Price *int64 `json:"price"`
	// 库存,勿大于主SKU的可售库存。设置库存与主商品共享时,可不填
	StockNum *int64 `json:"stock_num"`
}

Jump to

Keyboard shortcuts

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