sku_syncStockBatch_request

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MulanPSL-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 SkuSyncListItem

type SkuSyncListItem struct {
	// skuid
	SkuId int64 `json:"sku_id"`
	// 库存类型:0普通库存,1区域库存,10阶梯库存。 超市小时达子品传区域库存
	SkuType int64 `json:"sku_type"`
	// 普通库存数量
	StockNum int64 `json:"stock_num"`
	// 阶梯库存数量
	StepStockNum int64 `json:"step_stock_num"`
	// 区域库存配置
	StockMap []StockMapItem `json:"stock_map"`
	// 供应商ID
	SupplierId string `json:"supplier_id"`
}

type SkuSyncStockBatchParam

type SkuSyncStockBatchParam struct {
	// 商品ID,整型格式
	ProductId int64 `json:"product_id"`
	// 幂等ID,仅incremental=true时有用
	IdempotentId string `json:"idempotent_id"`
	// true表示增量库存,false表示全量库存,默认为false
	Incremental bool `json:"incremental"`
	// 需要批量提交的skuid及对应的库存和仓;接口规则全部成功或全部失败,例:批量更新10个skuid库存,其中一个skuid信息不正确,这样整个请求都会失败,10个skuid都未更新成功。
	SkuSyncList []SkuSyncListItem `json:"sku_sync_list"`
}

type SkuSyncStockBatchRequest

type SkuSyncStockBatchRequest struct {
	doudian_sdk.BaseDoudianOpApiRequest
	Param *SkuSyncStockBatchParam
}

func New

func (*SkuSyncStockBatchRequest) Execute

func (c *SkuSyncStockBatchRequest) Execute(accessToken *doudian_sdk.AccessToken) (*sku_syncStockBatch_response.SkuSyncStockBatchResponse, error)

func (*SkuSyncStockBatchRequest) GetParamObject

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

func (*SkuSyncStockBatchRequest) GetParams

func (*SkuSyncStockBatchRequest) GetUrlPath

func (c *SkuSyncStockBatchRequest) GetUrlPath() string

type StockMapItem

type StockMapItem struct {
	// 仓id,超市小时达子品传storeId
	OutWarehouseId string `json:"out_warehouse_id"`
	// 库存数量
	StockNum int64 `json:"stock_num"`
}

Jump to

Keyboard shortcuts

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