inventory

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package inventory 包含库存API相关结构体

https://open.taobao.com/API.htm?docId=31754&docType=2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaRetailDeviceInventorySyncAPIRequest added in v1.2.0

type AlibabaRetailDeviceInventorySyncAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlibabaRetailDeviceInventorySyncAPIRequest 库存同步接口 API请求 alibaba.retail.device.inventory.sync

商库存同步接口

func NewAlibabaRetailDeviceInventorySyncRequest

func NewAlibabaRetailDeviceInventorySyncRequest() *AlibabaRetailDeviceInventorySyncAPIRequest

NewAlibabaRetailDeviceInventorySyncRequest 初始化AlibabaRetailDeviceInventorySyncAPIRequest对象

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceOption added in v1.2.0

GetDeviceOption DeviceOption Getter

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetDeviceType added in v1.2.0

GetDeviceType DeviceType Getter

func (AlibabaRetailDeviceInventorySyncAPIRequest) GetInventoryDtos added in v1.2.0

GetInventoryDtos InventoryDtos Getter

func (*AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceId added in v1.2.0

func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备Id

func (*AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceOption added in v1.2.0

func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceOption(_deviceOption *InventorySyncOption) error

SetDeviceOption is DeviceOption Setter 系统自动生成

func (*AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceType added in v1.2.0

func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetDeviceType(_deviceType string) error

SetDeviceType is DeviceType Setter 设备类型

func (*AlibabaRetailDeviceInventorySyncAPIRequest) SetInventoryDtos added in v1.2.0

func (r *AlibabaRetailDeviceInventorySyncAPIRequest) SetInventoryDtos(_inventoryDtos []InventorySyncDto) error

SetInventoryDtos is InventoryDtos Setter 系统自动生成

type AlibabaRetailDeviceInventorySyncAPIResponse

type AlibabaRetailDeviceInventorySyncAPIResponse struct {
	model.CommonResponse
	AlibabaRetailDeviceInventorySyncAPIResponseModel
}

AlibabaRetailDeviceInventorySyncAPIResponse 库存同步接口 API返回值 alibaba.retail.device.inventory.sync

商库存同步接口

type AlibabaRetailDeviceInventorySyncAPIResponseModel added in v1.2.0

type AlibabaRetailDeviceInventorySyncAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_retail_device_inventory_sync_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *AlibabaRetailDeviceInventorySyncResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabaRetailDeviceInventorySyncAPIResponseModel is 库存同步接口 成功返回结果

type AlibabaRetailDeviceInventorySyncResult

type AlibabaRetailDeviceInventorySyncResult struct {
	// errorInfos
	ErrorInfos []ErrorInfo `json:"error_infos,omitempty" xml:"error_infos>error_info,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabaRetailDeviceInventorySyncResult 结构体

type BatchResult

type BatchResult struct {
	// 成功列表
	SuccessResultMap string `json:"success_result_map,omitempty" xml:"success_result_map,omitempty"`
	// 失败列表
	ErrorResultMap string `json:"error_result_map,omitempty" xml:"error_result_map,omitempty"`
	// 有一个失败,则整体是失败
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

BatchResult 结构体

type ErrorInfo

type ErrorInfo struct {
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// subErrorCode
	SubErrorCode string `json:"sub_error_code,omitempty" xml:"sub_error_code,omitempty"`
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
}

ErrorInfo 结构体

type InvUnifyPlanTopQuery

type InvUnifyPlanTopQuery struct {
	// 生成计划库存的外部单据号
	PlanOrderId string `json:"plan_order_id,omitempty" xml:"plan_order_id,omitempty"`
	// 商品或者货品的id,计划建在哪,就用哪个id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// skuid。如果是货品,则skuid是0
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// item_id的类型,1是前端宝贝,2是后端货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
}

InvUnifyPlanTopQuery 结构体

type InvUnifyPlanTopQuerys

type InvUnifyPlanTopQuerys struct {
	// 查询入参
	PlanQueryList []InvUnifyPlanTopQuery `json:"plan_query_list,omitempty" xml:"plan_query_list>inv_unify_plan_top_query,omitempty"`
}

InvUnifyPlanTopQuerys 结构体

type InventoryCheckDetailDto

type InventoryCheckDetailDto struct {
	// 如果是门店类型,则为必填。 ONLINE_INVENTORY  线上可售库存,  SHARE_INVENTORY 线下可售库存
	InvBizCode string `json:"inv_biz_code,omitempty" xml:"inv_biz_code,omitempty"`
	// 每个货品的调整子单据号,作为业务调整依据,处理时会根据此单据号作幂
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 调整数量,正数盘盈,负数盘亏
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 若为货品仓库存,则此处是货品ID 若为商品直接设置仓库存,则此处是商品ID, 若商品带SKU,还需要补充skuId
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 调整商品对应的SKUID,如果商品为货品,则为0
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

InventoryCheckDetailDto 结构体

type InventoryCheckDto

type InventoryCheckDto struct {
	// 调整明细
	DetailList []InventoryCheckDetailDto `json:"detail_list,omitempty" xml:"detail_list>inventory_check_detail_dto,omitempty"`
	// 仓库code或者门店id
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 调整单据号
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 1:全量更新   2: 出入库盘盈盘亏
	CheckMode int64 `json:"check_mode,omitempty" xml:"check_mode,omitempty"`
	// 2: 仓库类型   6:门店类型
	InvStoreType int64 `json:"inv_store_type,omitempty" xml:"inv_store_type,omitempty"`
}

InventoryCheckDto 结构体

type InventoryCheckResultDto

type InventoryCheckResultDto struct {
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 每个货品的调整子单据号,作为业务调整依据,处理时会幂等
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 每个子调整单据是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

InventoryCheckResultDto 结构体

type InventorySyncDto added in v1.2.0

type InventorySyncDto struct {
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 库存数量
	ItemAmount int64 `json:"item_amount,omitempty" xml:"item_amount,omitempty"`
}

InventorySyncDto 结构体

type InventorySyncOption

type InventorySyncOption struct {
	// 业务
	BizName string `json:"biz_name,omitempty" xml:"biz_name,omitempty"`
}

InventorySyncOption 结构体

type LocationRelationDto

type LocationRelationDto struct {
	// 实体code
	TargetStoreCode string `json:"target_store_code,omitempty" xml:"target_store_code,omitempty"`
	// 实体code
	SourceStoreCode string `json:"source_store_code,omitempty" xml:"source_store_code,omitempty"`
	// 状态  0 正常  -1 删除
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 实体类型 2:仓库 6:门店
	TargetInvStoreType int64 `json:"target_inv_store_type,omitempty" xml:"target_inv_store_type,omitempty"`
	// 实体类型 2:仓库 6:门店
	SourceInvStoreType int64 `json:"source_inv_store_type,omitempty" xml:"source_inv_store_type,omitempty"`
}

LocationRelationDto 结构体

type PlanInstanceInvResultDto

type PlanInstanceInvResultDto struct {
	// 计划的履约仓信息
	PromiseList []PlanPromiseTopDto `json:"promise_list,omitempty" xml:"promise_list>plan_promise_top_dto,omitempty"`
	// 计划生效的前端宝贝列表,如果是货品关联的所有前端都生效,则这个对象是空
	RelationList []PlanItemRelationTopDto `json:"relation_list,omitempty" xml:"relation_list>plan_item_relation_top_dto,omitempty"`
	// 计划的开始销售时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 计划的结束销售时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 生成计划库存的外部单据号
	PlanOrderId string `json:"plan_order_id,omitempty" xml:"plan_order_id,omitempty"`
	// 品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 品类型,1是前端宝贝,2是后端货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// skuid
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 当前计划的实时剩余可售数量
	SellableQuantity int64 `json:"sellable_quantity,omitempty" xml:"sellable_quantity,omitempty"`
	// 当前计划的实时预扣数量
	WithholdingQuantity int64 `json:"withholding_quantity,omitempty" xml:"withholding_quantity,omitempty"`
	// 当前计划的实时占用数量
	OccupyQuantity int64 `json:"occupy_quantity,omitempty" xml:"occupy_quantity,omitempty"`
	// 策略
	Strategy *StrategyRuleTopDto `json:"strategy,omitempty" xml:"strategy,omitempty"`
	// 计划id,平台内为planOrderId生成的计划id
	PlanInstanceId int64 `json:"plan_instance_id,omitempty" xml:"plan_instance_id,omitempty"`
	// 最后一次全量设置的计划库存值。如果是增量编辑库存,settingQuantity不会变。这个值仅做参考,主要看前面的实时剩余可售数量sellable_quantity
	SettingQuantity int64 `json:"setting_quantity,omitempty" xml:"setting_quantity,omitempty"`
}

PlanInstanceInvResultDto 结构体

type PlanInstanceTopDto

type PlanInstanceTopDto struct {
	// 服务承诺信息
	PromiseList []PromiseList `json:"promise_list,omitempty" xml:"promise_list>promise_list,omitempty"`
	// 计划库存生效的宝贝范围。对于品的后端货品情况下,才有可能设置,设置后在这个范围的宝贝才能使用计划库存。也可以不设置,代表后端货品关联的所有宝贝都生效。
	RelationList []RelationList `json:"relation_list,omitempty" xml:"relation_list>relation_list,omitempty"`
	// 计划库存销售开始时间,年月日时分秒
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 计划库存销售结束时间,年月日时分秒
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 外部商家系统单据号,用于生成计划库存的业务来源
	PlanOrderId string `json:"plan_order_id,omitempty" xml:"plan_order_id,omitempty"`
	// 操作码,用于幂等验证
	OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"`
	// 设置的库存类型,0-全量覆盖,1-增量处理
	QuantityOpType int64 `json:"quantity_op_type,omitempty" xml:"quantity_op_type,omitempty"`
	// 销售策略
	Strategy *Strategy `json:"strategy,omitempty" xml:"strategy,omitempty"`
	// 设置的库存值
	SettingQuantity int64 `json:"setting_quantity,omitempty" xml:"setting_quantity,omitempty"`
}

PlanInstanceTopDto 结构体

type PlanInvAdjustTopDetailDto

type PlanInvAdjustTopDetailDto struct {
	// 操作码,用于幂等验证
	OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"`
	// 外部商家系统单据号,用于定位计划库存的业务来源
	PlanOrderId string `json:"plan_order_id,omitempty" xml:"plan_order_id,omitempty"`
	// 要调整的库存值,负数代表调低库存,正数代表调高库存
	AdjustQuantity int64 `json:"adjust_quantity,omitempty" xml:"adjust_quantity,omitempty"`
}

PlanInvAdjustTopDetailDto 结构体

type PlanInvAdjustTopDto

type PlanInvAdjustTopDto struct {
	// 计划库存增量编辑的详细信息
	AdjustDetailList []PlanInvAdjustTopDetailDto `json:"adjust_detail_list,omitempty" xml:"adjust_detail_list>plan_inv_adjust_top_detail_dto,omitempty"`
	// 品id,前端宝贝id,或者后端货品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 品的类型,1-前端宝贝,2-后端货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 设置计划的品的skuid。对于货品,是0.
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

PlanInvAdjustTopDto 结构体

type PlanInvTopDto

type PlanInvTopDto struct {
	// 实例列表
	PlanInstanceInvList []PlanInstanceInvResultDto `json:"plan_instance_inv_list,omitempty" xml:"plan_instance_inv_list>plan_instance_inv_result_dto,omitempty"`
}

PlanInvTopDto 结构体

type PlanItemRelationTopDto

type PlanItemRelationTopDto struct {
	// 计划生效的itemid
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 计划生效的skuid
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

PlanItemRelationTopDto 结构体

type PlanPromiseTopDto

type PlanPromiseTopDto struct {
	// 仓code
	PerformStore string `json:"perform_store,omitempty" xml:"perform_store,omitempty"`
	// 履约时间,如绝对时间 2021-03-11 ,或者相对时间 2
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// 履约时间类型,0 是绝对时间,年月日;1是相对时间
	DeliveryType int64 `json:"delivery_type,omitempty" xml:"delivery_type,omitempty"`
}

PlanPromiseTopDto 结构体

type PlanStopDetailTopDto

type PlanStopDetailTopDto struct {
	// 外部商家系统单据号,用于生成计划库存的业务来源
	PlanOrderId string `json:"plan_order_id,omitempty" xml:"plan_order_id,omitempty"`
	// 操作码
	OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"`
}

PlanStopDetailTopDto 结构体

type PlanStopTopDto

type PlanStopTopDto struct {
	// 要失效的计划库存的详情
	PlanDetailList []PlanStopDetailTopDto `json:"plan_detail_list,omitempty" xml:"plan_detail_list>plan_stop_detail_top_dto,omitempty"`
	// 品id,前端宝贝id,或者后端货品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 品的类型,1-前端宝贝,2-后端货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 设置计划的品的skuid。对于货品,是0.
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

PlanStopTopDto 结构体

type PlanTopDto

type PlanTopDto struct {
	// 计划详情
	PlanInstanceList []PlanInstanceTopDto `json:"plan_instance_list,omitempty" xml:"plan_instance_list>plan_instance_top_dto,omitempty"`
	// 品id,前端宝贝id,或者后端货品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 品的类型,1-前端宝贝,2-后端货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 设置计划的品的skuid。对于货品,是0.
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

PlanTopDto 结构体

type PromiseList

type PromiseList struct {
	// 服务时效信息,发货时间比如2020-01-26;相对时间比如3,代表付款后3天内发货
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// 履约仓code
	PerformStore string `json:"perform_store,omitempty" xml:"perform_store,omitempty"`
	// 发货时间类型,0-绝对时间,1-相对时间
	DeliveryType int64 `json:"delivery_type,omitempty" xml:"delivery_type,omitempty"`
}

PromiseList 结构体

type RelationList

type RelationList struct {
	// 生效的前端宝贝id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 生效的前端宝贝的skuid
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

RelationList 结构体

type ResultCode

type ResultCode struct {
	// 结果描述
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 结果码
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 结果id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

ResultCode 结构体

type SingleResult

type SingleResult struct {
	// data
	AdjustResults []InventoryCheckResultDto `json:"adjust_results,omitempty" xml:"adjust_results>inventory_check_result_dto,omitempty"`
	// 地点关系
	LocationRelationList []LocationRelationDto `json:"location_relation_list,omitempty" xml:"location_relation_list>location_relation_dto,omitempty"`
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 如果是失败,可能是部分失败。如果是成功,则全部成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

SingleResult 结构体

type Strategy

type Strategy struct {
	// 具体的销售策略,1-先现货库存,后计划库存;2-仅计划库存
	RuleType int64 `json:"rule_type,omitempty" xml:"rule_type,omitempty"`
	// 组合货品情况下,是否支持部分子品现货部分子品计划库存可以进行组合。如果不设置,则都是现货库存,或者都是计划库存才能进行组合
	CombSupport bool `json:"comb_support,omitempty" xml:"comb_support,omitempty"`
}

Strategy 结构体

type StrategyRuleTopDto

type StrategyRuleTopDto struct {
	// 1,代表先现货后计划库存;2代表仅卖计划库存
	RuleType int64 `json:"rule_type,omitempty" xml:"rule_type,omitempty"`
	// 是否支持组合情况下,一部分子品用现货,一部分子品用计划库存。true代表支持,空或者false代表  子品都要同类型的库存才能组合起来
	CombSupport bool `json:"comb_support,omitempty" xml:"comb_support,omitempty"`
}

StrategyRuleTopDto 结构体

type TaobaoInventoryMerchantAdjustAPIRequest added in v1.2.0

type TaobaoInventoryMerchantAdjustAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoInventoryMerchantAdjustAPIRequest 货品库存商家端调整 API请求 taobao.inventory.merchant.adjust

货品库存商家端调整 ,入库,出库,盘点

func NewTaobaoInventoryMerchantAdjustRequest

func NewTaobaoInventoryMerchantAdjustRequest() *TaobaoInventoryMerchantAdjustAPIRequest

NewTaobaoInventoryMerchantAdjustRequest 初始化TaobaoInventoryMerchantAdjustAPIRequest对象

func (TaobaoInventoryMerchantAdjustAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoInventoryMerchantAdjustAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoInventoryMerchantAdjustAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoInventoryMerchantAdjustAPIRequest) GetInventoryCheck added in v1.2.0

GetInventoryCheck InventoryCheck Getter

func (*TaobaoInventoryMerchantAdjustAPIRequest) SetInventoryCheck added in v1.2.0

func (r *TaobaoInventoryMerchantAdjustAPIRequest) SetInventoryCheck(_inventoryCheck *InventoryCheckDto) error

SetInventoryCheck is InventoryCheck Setter 调整库存对象

type TaobaoInventoryMerchantAdjustAPIResponse

type TaobaoInventoryMerchantAdjustAPIResponse struct {
	model.CommonResponse
	TaobaoInventoryMerchantAdjustAPIResponseModel
}

TaobaoInventoryMerchantAdjustAPIResponse 货品库存商家端调整 API返回值 taobao.inventory.merchant.adjust

货品库存商家端调整 ,入库,出库,盘点

type TaobaoInventoryMerchantAdjustAPIResponseModel added in v1.2.0

type TaobaoInventoryMerchantAdjustAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_merchant_adjust_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoInventoryMerchantAdjustAPIResponseModel is 货品库存商家端调整 成功返回结果

type TaobaoInventoryPlanEditAPIRequest added in v1.2.0

type TaobaoInventoryPlanEditAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoInventoryPlanEditAPIRequest 设置计划库存 API请求 taobao.inventory.plan.edit

初始化计划库存,或者编辑已经存在的计划库存

func NewTaobaoInventoryPlanEditRequest

func NewTaobaoInventoryPlanEditRequest() *TaobaoInventoryPlanEditAPIRequest

NewTaobaoInventoryPlanEditRequest 初始化TaobaoInventoryPlanEditAPIRequest对象

func (TaobaoInventoryPlanEditAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoInventoryPlanEditAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoInventoryPlanEditAPIRequest) GetApiParams added in v1.2.0

func (r TaobaoInventoryPlanEditAPIRequest) GetApiParams() url.Values

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoInventoryPlanEditAPIRequest) GetPlanTop added in v1.2.0

GetPlanTop PlanTop Getter

func (*TaobaoInventoryPlanEditAPIRequest) SetPlanTop added in v1.2.0

func (r *TaobaoInventoryPlanEditAPIRequest) SetPlanTop(_planTop *PlanTopDto) error

SetPlanTop is PlanTop Setter 计划库存设置入参

type TaobaoInventoryPlanEditAPIResponse

type TaobaoInventoryPlanEditAPIResponse struct {
	model.CommonResponse
	TaobaoInventoryPlanEditAPIResponseModel
}

TaobaoInventoryPlanEditAPIResponse 设置计划库存 API返回值 taobao.inventory.plan.edit

初始化计划库存,或者编辑已经存在的计划库存

type TaobaoInventoryPlanEditAPIResponseModel added in v1.2.0

type TaobaoInventoryPlanEditAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_plan_edit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 批量返回结果
	Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoInventoryPlanEditAPIResponseModel is 设置计划库存 成功返回结果

type TaobaoInventoryPlanInvalidAPIRequest added in v1.2.0

type TaobaoInventoryPlanInvalidAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoInventoryPlanInvalidAPIRequest 失效计划库存 API请求 taobao.inventory.plan.invalid

计划库存的失效服务

func NewTaobaoInventoryPlanInvalidRequest

func NewTaobaoInventoryPlanInvalidRequest() *TaobaoInventoryPlanInvalidAPIRequest

NewTaobaoInventoryPlanInvalidRequest 初始化TaobaoInventoryPlanInvalidAPIRequest对象

func (TaobaoInventoryPlanInvalidAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoInventoryPlanInvalidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoInventoryPlanInvalidAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoInventoryPlanInvalidAPIRequest) GetPlanStopTop added in v1.2.0

GetPlanStopTop PlanStopTop Getter

func (*TaobaoInventoryPlanInvalidAPIRequest) SetPlanStopTop added in v1.2.0

func (r *TaobaoInventoryPlanInvalidAPIRequest) SetPlanStopTop(_planStopTop *PlanStopTopDto) error

SetPlanStopTop is PlanStopTop Setter 计划库存失效入参

type TaobaoInventoryPlanInvalidAPIResponse

type TaobaoInventoryPlanInvalidAPIResponse struct {
	model.CommonResponse
	TaobaoInventoryPlanInvalidAPIResponseModel
}

TaobaoInventoryPlanInvalidAPIResponse 失效计划库存 API返回值 taobao.inventory.plan.invalid

计划库存的失效服务

type TaobaoInventoryPlanInvalidAPIResponseModel added in v1.2.0

type TaobaoInventoryPlanInvalidAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_plan_invalid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 批量返回结果
	Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoInventoryPlanInvalidAPIResponseModel is 失效计划库存 成功返回结果

type TaobaoInventoryPlanQuantityIncreaseAPIRequest added in v1.2.0

type TaobaoInventoryPlanQuantityIncreaseAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoInventoryPlanQuantityIncreaseAPIRequest 计划库存的增量编辑 API请求 taobao.inventory.plan.quantity.increase

计划库存的增量编辑

func NewTaobaoInventoryPlanQuantityIncreaseRequest

func NewTaobaoInventoryPlanQuantityIncreaseRequest() *TaobaoInventoryPlanQuantityIncreaseAPIRequest

NewTaobaoInventoryPlanQuantityIncreaseRequest 初始化TaobaoInventoryPlanQuantityIncreaseAPIRequest对象

func (TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoInventoryPlanQuantityIncreaseAPIRequest) GetPlanInvAdjustTop added in v1.2.0

GetPlanInvAdjustTop PlanInvAdjustTop Getter

func (*TaobaoInventoryPlanQuantityIncreaseAPIRequest) SetPlanInvAdjustTop added in v1.2.0

func (r *TaobaoInventoryPlanQuantityIncreaseAPIRequest) SetPlanInvAdjustTop(_planInvAdjustTop *PlanInvAdjustTopDto) error

SetPlanInvAdjustTop is PlanInvAdjustTop Setter 增量编辑计划库存入参

type TaobaoInventoryPlanQuantityIncreaseAPIResponse

type TaobaoInventoryPlanQuantityIncreaseAPIResponse struct {
	model.CommonResponse
	TaobaoInventoryPlanQuantityIncreaseAPIResponseModel
}

TaobaoInventoryPlanQuantityIncreaseAPIResponse 计划库存的增量编辑 API返回值 taobao.inventory.plan.quantity.increase

计划库存的增量编辑

type TaobaoInventoryPlanQuantityIncreaseAPIResponseModel added in v1.2.0

type TaobaoInventoryPlanQuantityIncreaseAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_plan_quantity_increase_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 批量返回结果
	Result *BatchResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoInventoryPlanQuantityIncreaseAPIResponseModel is 计划库存的增量编辑 成功返回结果

type TaobaoInventoryPlanQueryAPIRequest added in v1.2.0

type TaobaoInventoryPlanQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoInventoryPlanQueryAPIRequest 计划库存查询 API请求 taobao.inventory.plan.query

计划库存查询

func NewTaobaoInventoryPlanQueryRequest

func NewTaobaoInventoryPlanQueryRequest() *TaobaoInventoryPlanQueryAPIRequest

NewTaobaoInventoryPlanQueryRequest 初始化TaobaoInventoryPlanQueryAPIRequest对象

func (TaobaoInventoryPlanQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoInventoryPlanQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoInventoryPlanQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoInventoryPlanQueryAPIRequest) GetParam added in v1.2.0

GetParam Param Getter

func (*TaobaoInventoryPlanQueryAPIRequest) SetParam added in v1.2.0

SetParam is Param Setter 计划库存查询入参

type TaobaoInventoryPlanQueryAPIResponse

type TaobaoInventoryPlanQueryAPIResponse struct {
	model.CommonResponse
	TaobaoInventoryPlanQueryAPIResponseModel
}

TaobaoInventoryPlanQueryAPIResponse 计划库存查询 API返回值 taobao.inventory.plan.query

计划库存查询

type TaobaoInventoryPlanQueryAPIResponseModel added in v1.2.0

type TaobaoInventoryPlanQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_plan_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaoInventoryPlanQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoInventoryPlanQueryAPIResponseModel is 计划库存查询 成功返回结果

type TaobaoInventoryPlanQueryResult

type TaobaoInventoryPlanQueryResult struct {
	// 返回的对象
	Data *PlanInvTopDto `json:"data,omitempty" xml:"data,omitempty"`
	// 返回结果码
	ResultCode *ResultCode `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

TaobaoInventoryPlanQueryResult 结构体

type TaobaoLocationRelationEditAPIRequest added in v1.2.0

type TaobaoLocationRelationEditAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoLocationRelationEditAPIRequest 地点关联关系增量编辑 API请求 taobao.location.relation.edit

地点关联关系增量编辑

func NewTaobaoLocationRelationEditRequest

func NewTaobaoLocationRelationEditRequest() *TaobaoLocationRelationEditAPIRequest

NewTaobaoLocationRelationEditRequest 初始化TaobaoLocationRelationEditAPIRequest对象

func (TaobaoLocationRelationEditAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoLocationRelationEditAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLocationRelationEditAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLocationRelationEditAPIRequest) GetLocationRelationList added in v1.2.0

func (r TaobaoLocationRelationEditAPIRequest) GetLocationRelationList() []LocationRelationDto

GetLocationRelationList LocationRelationList Getter

func (*TaobaoLocationRelationEditAPIRequest) SetLocationRelationList added in v1.2.0

func (r *TaobaoLocationRelationEditAPIRequest) SetLocationRelationList(_locationRelationList []LocationRelationDto) error

SetLocationRelationList is LocationRelationList Setter 关系对象列表

type TaobaoLocationRelationEditAPIResponse

type TaobaoLocationRelationEditAPIResponse struct {
	model.CommonResponse
	TaobaoLocationRelationEditAPIResponseModel
}

TaobaoLocationRelationEditAPIResponse 地点关联关系增量编辑 API返回值 taobao.location.relation.edit

地点关联关系增量编辑

type TaobaoLocationRelationEditAPIResponseModel added in v1.2.0

type TaobaoLocationRelationEditAPIResponseModel struct {
	XMLName xml.Name `xml:"location_relation_edit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 错误码
	Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoLocationRelationEditAPIResponseModel is 地点关联关系增量编辑 成功返回结果

type TaobaoLocationRelationQueryAPIRequest added in v1.2.0

type TaobaoLocationRelationQueryAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

TaobaoLocationRelationQueryAPIRequest 地点关联关系查询 API请求 taobao.location.relation.query

地点关联关系查询 门店和仓库关联关系查询

func NewTaobaoLocationRelationQueryRequest

func NewTaobaoLocationRelationQueryRequest() *TaobaoLocationRelationQueryAPIRequest

NewTaobaoLocationRelationQueryRequest 初始化TaobaoLocationRelationQueryAPIRequest对象

func (TaobaoLocationRelationQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoLocationRelationQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoLocationRelationQueryAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoLocationRelationQueryAPIRequest) GetLocationRelation added in v1.2.0

GetLocationRelation LocationRelation Getter

func (*TaobaoLocationRelationQueryAPIRequest) SetLocationRelation added in v1.2.0

func (r *TaobaoLocationRelationQueryAPIRequest) SetLocationRelation(_locationRelation *LocationRelationDto) error

SetLocationRelation is LocationRelation Setter 关系查询

type TaobaoLocationRelationQueryAPIResponse

type TaobaoLocationRelationQueryAPIResponse struct {
	model.CommonResponse
	TaobaoLocationRelationQueryAPIResponseModel
}

TaobaoLocationRelationQueryAPIResponse 地点关联关系查询 API返回值 taobao.location.relation.query

地点关联关系查询 门店和仓库关联关系查询

type TaobaoLocationRelationQueryAPIResponseModel added in v1.2.0

type TaobaoLocationRelationQueryAPIResponseModel struct {
	XMLName xml.Name `xml:"location_relation_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *SingleResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoLocationRelationQueryAPIResponseModel is 地点关联关系查询 成功返回结果

Jump to

Keyboard shortcuts

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