fenxiao

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Overview

Package fenxiao 包含分销API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCnskuOption

type AddCnskuOption struct {
	// 是否同步到wms, 为空时默认下发
	SyncWms bool `json:"sync_wms,omitempty" xml:"sync_wms,omitempty"`
}

AddCnskuOption 结构体

type AlibabaascpcnskuaddAPIRequest added in v1.3.1

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

AlibabaascpcnskuaddAPIRequest 货品创建 API请求 alibaba.ascp.cnsku.add

供应链中台货品创建接口

func NewAlibabaascpcnskuaddRequest added in v1.3.1

func NewAlibabaascpcnskuaddRequest() *AlibabaascpcnskuaddAPIRequest

NewAlibabaascpcnskuaddRequest 初始化AlibabaascpcnskuaddAPIRequest对象

func (AlibabaascpcnskuaddAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascpcnskuaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascpcnskuaddAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascpcnskuaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascpcnskuaddAPIRequest) GetCnskuDto added in v1.3.1

func (r AlibabaascpcnskuaddAPIRequest) GetCnskuDto() *CnskuDto

GetCnskuDto CnskuDto Getter

func (AlibabaascpcnskuaddAPIRequest) GetOption added in v1.3.1

GetOption Option Getter

func (AlibabaascpcnskuaddAPIRequest) GetRawParams added in v1.3.1

func (r AlibabaascpcnskuaddAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascpcnskuaddAPIRequest) SetCnskuDto added in v1.3.1

func (r *AlibabaascpcnskuaddAPIRequest) SetCnskuDto(_cnskuDto *CnskuDto) error

SetCnskuDto is CnskuDto Setter 待新增的货品

func (*AlibabaascpcnskuaddAPIRequest) SetOption added in v1.3.1

func (r *AlibabaascpcnskuaddAPIRequest) SetOption(_option *AddCnskuOption) error

SetOption is Option Setter 选项

type AlibabaascpcnskuaddAPIResponse added in v1.3.1

type AlibabaascpcnskuaddAPIResponse struct {
	model.CommonResponse
	AlibabaascpcnskuaddAPIResponseModel
}

AlibabaascpcnskuaddAPIResponse 货品创建 API返回值 alibaba.ascp.cnsku.add

供应链中台货品创建接口

type AlibabaascpcnskuaddAPIResponseModel added in v1.3.1

type AlibabaascpcnskuaddAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_cnsku_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异常信息
	ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"`
	// 货品id
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 异常信息Code
	SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
}

AlibabaascpcnskuaddAPIResponseModel is 货品创建 成功返回结果

type AlibabaascpcnskumappingdeleteAPIRequest added in v1.3.1

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

AlibabaascpcnskumappingdeleteAPIRequest 货品关系解绑 API请求 alibaba.ascp.cnsku.mapping.delete

货品关系解绑

func NewAlibabaascpcnskumappingdeleteRequest added in v1.3.1

func NewAlibabaascpcnskumappingdeleteRequest() *AlibabaascpcnskumappingdeleteAPIRequest

NewAlibabaascpcnskumappingdeleteRequest 初始化AlibabaascpcnskumappingdeleteAPIRequest对象

func (AlibabaascpcnskumappingdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascpcnskumappingdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascpcnskumappingdeleteAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascpcnskumappingdeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascpcnskumappingdeleteAPIRequest) GetCnskuRelationDto added in v1.3.1

GetCnskuRelationDto CnskuRelationDto Getter

func (AlibabaascpcnskumappingdeleteAPIRequest) GetCnskuRelationOperateOption added in v1.3.1

func (r AlibabaascpcnskumappingdeleteAPIRequest) GetCnskuRelationOperateOption() *CnskuRelationOperateOption

GetCnskuRelationOperateOption CnskuRelationOperateOption Getter

func (AlibabaascpcnskumappingdeleteAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascpcnskumappingdeleteAPIRequest) SetCnskuRelationDto added in v1.3.1

func (r *AlibabaascpcnskumappingdeleteAPIRequest) SetCnskuRelationDto(_cnskuRelationDto *CnskuRelationDto) error

SetCnskuRelationDto is CnskuRelationDto Setter 待解绑的货品关系

func (*AlibabaascpcnskumappingdeleteAPIRequest) SetCnskuRelationOperateOption added in v1.3.1

func (r *AlibabaascpcnskumappingdeleteAPIRequest) SetCnskuRelationOperateOption(_cnskuRelationOperateOption *CnskuRelationOperateOption) error

SetCnskuRelationOperateOption is CnskuRelationOperateOption Setter 操作信息(不要传null)

type AlibabaascpcnskumappingdeleteAPIResponse added in v1.3.1

type AlibabaascpcnskumappingdeleteAPIResponse struct {
	model.CommonResponse
	AlibabaascpcnskumappingdeleteAPIResponseModel
}

AlibabaascpcnskumappingdeleteAPIResponse 货品关系解绑 API返回值 alibaba.ascp.cnsku.mapping.delete

货品关系解绑

type AlibabaascpcnskumappingdeleteAPIResponseModel added in v1.3.1

type AlibabaascpcnskumappingdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_cnsku_mapping_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 成功的关联关系集合
	SuccessResultMap string `json:"success_result_map,omitempty" xml:"success_result_map,omitempty"`
	// 错误编码
	EroCode string `json:"ero_code,omitempty" xml:"ero_code,omitempty"`
	// 失败的关联关系集合
	FailResultMap string `json:"fail_result_map,omitempty" xml:"fail_result_map,omitempty"`
	// 错误信息
	EroMsg string `json:"ero_msg,omitempty" xml:"ero_msg,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
}

AlibabaascpcnskumappingdeleteAPIResponseModel is 货品关系解绑 成功返回结果

type AlibabaascpcnskumodifyAPIRequest added in v1.3.1

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

AlibabaascpcnskumodifyAPIRequest 供应链中台货品修改接口 API请求 alibaba.ascp.cnsku.modify

供应链中台货品修改接口

func NewAlibabaascpcnskumodifyRequest added in v1.3.1

func NewAlibabaascpcnskumodifyRequest() *AlibabaascpcnskumodifyAPIRequest

NewAlibabaascpcnskumodifyRequest 初始化AlibabaascpcnskumodifyAPIRequest对象

func (AlibabaascpcnskumodifyAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascpcnskumodifyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascpcnskumodifyAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascpcnskumodifyAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascpcnskumodifyAPIRequest) GetCnskuDto added in v1.3.1

func (r AlibabaascpcnskumodifyAPIRequest) GetCnskuDto() *CnskuDto

GetCnskuDto CnskuDto Getter

func (AlibabaascpcnskumodifyAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaascpcnskumodifyAPIRequest) GetUpdateCnskuOption added in v1.3.1

func (r AlibabaascpcnskumodifyAPIRequest) GetUpdateCnskuOption() *UpdateCnskuOption

GetUpdateCnskuOption UpdateCnskuOption Getter

func (*AlibabaascpcnskumodifyAPIRequest) SetCnskuDto added in v1.3.1

func (r *AlibabaascpcnskumodifyAPIRequest) SetCnskuDto(_cnskuDto *CnskuDto) error

SetCnskuDto is CnskuDto Setter 待修改的货品

func (*AlibabaascpcnskumodifyAPIRequest) SetUpdateCnskuOption added in v1.3.1

func (r *AlibabaascpcnskumodifyAPIRequest) SetUpdateCnskuOption(_updateCnskuOption *UpdateCnskuOption) error

SetUpdateCnskuOption is UpdateCnskuOption Setter 选项

type AlibabaascpcnskumodifyAPIResponse added in v1.3.1

type AlibabaascpcnskumodifyAPIResponse struct {
	model.CommonResponse
	AlibabaascpcnskumodifyAPIResponseModel
}

AlibabaascpcnskumodifyAPIResponse 供应链中台货品修改接口 API返回值 alibaba.ascp.cnsku.modify

供应链中台货品修改接口

type AlibabaascpcnskumodifyAPIResponseModel added in v1.3.1

type AlibabaascpcnskumodifyAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_cnsku_modify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异常信息
	ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"`
	// Null
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 异常信息Code
	SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
}

AlibabaascpcnskumodifyAPIResponseModel is 供应链中台货品修改接口 成功返回结果

type AlibabaascpcnskusearchAPIRequest added in v1.3.1

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

AlibabaascpcnskusearchAPIRequest 供应链中台货品搜索接口 API请求 alibaba.ascp.cnsku.search

供应链中台货品搜索接口

func NewAlibabaascpcnskusearchRequest added in v1.3.1

func NewAlibabaascpcnskusearchRequest() *AlibabaascpcnskusearchAPIRequest

NewAlibabaascpcnskusearchRequest 初始化AlibabaascpcnskusearchAPIRequest对象

func (AlibabaascpcnskusearchAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascpcnskusearchAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascpcnskusearchAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascpcnskusearchAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascpcnskusearchAPIRequest) GetParam0 added in v1.3.1

GetParam0 Param0 Getter

func (AlibabaascpcnskusearchAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascpcnskusearchAPIRequest) SetParam0 added in v1.3.1

SetParam0 is Param0 Setter 货品搜索条件

type AlibabaascpcnskusearchAPIResponse added in v1.3.1

type AlibabaascpcnskusearchAPIResponse struct {
	model.CommonResponse
	AlibabaascpcnskusearchAPIResponseModel
}

AlibabaascpcnskusearchAPIResponse 供应链中台货品搜索接口 API返回值 alibaba.ascp.cnsku.search

供应链中台货品搜索接口

type AlibabaascpcnskusearchAPIResponseModel added in v1.3.1

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

AlibabaascpcnskusearchAPIResponseModel is 供应链中台货品搜索接口 成功返回结果

type AlibabaascpcnskuupdateAPIRequest added in v1.3.1

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

AlibabaascpcnskuupdateAPIRequest 供应链中台货品修改接口 API请求 alibaba.ascp.cnsku.update

供应链中台货品修改接口

func NewAlibabaascpcnskuupdateRequest added in v1.3.1

func NewAlibabaascpcnskuupdateRequest() *AlibabaascpcnskuupdateAPIRequest

NewAlibabaascpcnskuupdateRequest 初始化AlibabaascpcnskuupdateAPIRequest对象

func (AlibabaascpcnskuupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaascpcnskuupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaascpcnskuupdateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaascpcnskuupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaascpcnskuupdateAPIRequest) GetCnsku added in v1.3.1

GetCnsku Cnsku Getter

func (AlibabaascpcnskuupdateAPIRequest) GetOption added in v1.3.1

GetOption Option Getter

func (AlibabaascpcnskuupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaascpcnskuupdateAPIRequest) SetCnsku added in v1.3.1

func (r *AlibabaascpcnskuupdateAPIRequest) SetCnsku(_cnsku *CnskuDto) error

SetCnsku is Cnsku Setter 待新增的货品

func (*AlibabaascpcnskuupdateAPIRequest) SetOption added in v1.3.1

SetOption is Option Setter 修改选项

type AlibabaascpcnskuupdateAPIResponse added in v1.3.1

type AlibabaascpcnskuupdateAPIResponse struct {
	model.CommonResponse
	AlibabaascpcnskuupdateAPIResponseModel
}

AlibabaascpcnskuupdateAPIResponse 供应链中台货品修改接口 API返回值 alibaba.ascp.cnsku.update

供应链中台货品修改接口

type AlibabaascpcnskuupdateAPIResponseModel added in v1.3.1

type AlibabaascpcnskuupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_ascp_cnsku_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异常信息
	ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"`
	// 货品id
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 异常信息Code
	SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
}

AlibabaascpcnskuupdateAPIResponseModel is 供应链中台货品修改接口 成功返回结果

type AlibabafenxiaocbutotaobaorelationaddAPIRequest added in v1.3.1

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

AlibabafenxiaocbutotaobaorelationaddAPIRequest 1688分销铺货到淘宝关系添加 API请求 alibaba.fenxiao.cbutotaobao.relation.add

1688分销铺货到淘宝关系添加

func NewAlibabafenxiaocbutotaobaorelationaddRequest added in v1.3.1

func NewAlibabafenxiaocbutotaobaorelationaddRequest() *AlibabafenxiaocbutotaobaorelationaddAPIRequest

NewAlibabafenxiaocbutotaobaorelationaddRequest 初始化AlibabafenxiaocbutotaobaorelationaddAPIRequest对象

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetBuyerId added in v1.3.1

GetBuyerId BuyerId Getter

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetOfferId added in v1.3.1

GetOfferId OfferId Getter

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabafenxiaocbutotaobaorelationaddAPIRequest) GetSupplierId added in v1.3.1

GetSupplierId SupplierId Getter

func (*AlibabafenxiaocbutotaobaorelationaddAPIRequest) SetBuyerId added in v1.3.1

SetBuyerId is BuyerId Setter 1688买家id

func (*AlibabafenxiaocbutotaobaorelationaddAPIRequest) SetItemId added in v1.3.1

SetItemId is ItemId Setter 淘宝商品id

func (*AlibabafenxiaocbutotaobaorelationaddAPIRequest) SetOfferId added in v1.3.1

SetOfferId is OfferId Setter 1688商品id

func (*AlibabafenxiaocbutotaobaorelationaddAPIRequest) SetSupplierId added in v1.3.1

func (r *AlibabafenxiaocbutotaobaorelationaddAPIRequest) SetSupplierId(_supplierId int64) error

SetSupplierId is SupplierId Setter 1688供应商id

type AlibabafenxiaocbutotaobaorelationaddAPIResponse added in v1.3.1

type AlibabafenxiaocbutotaobaorelationaddAPIResponse struct {
	model.CommonResponse
	AlibabafenxiaocbutotaobaorelationaddAPIResponseModel
}

AlibabafenxiaocbutotaobaorelationaddAPIResponse 1688分销铺货到淘宝关系添加 API返回值 alibaba.fenxiao.cbutotaobao.relation.add

1688分销铺货到淘宝关系添加

type AlibabafenxiaocbutotaobaorelationaddAPIResponseModel added in v1.3.1

type AlibabafenxiaocbutotaobaorelationaddAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_fenxiao_cbutotaobao_relation_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 结果返回值
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 错误信息
	ResultMessage string `json:"result_message,omitempty" xml:"result_message,omitempty"`
	// 是否成功
	ResultSuccess bool `json:"result_success,omitempty" xml:"result_success,omitempty"`
}

AlibabafenxiaocbutotaobaorelationaddAPIResponseModel is 1688分销铺货到淘宝关系添加 成功返回结果

type BaseResult

type BaseResult struct {
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// data
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

BaseResult 结构体

type BuyerRefund

type BuyerRefund struct {
	// 消费者订单退款创建时间
	RefundCreateTime string `json:"refund_create_time,omitempty" xml:"refund_create_time,omitempty"`
	// 货物的状态:买家已收到货买家已退货买家未收到货
	GoodsStatusDesc string `json:"goods_status_desc,omitempty" xml:"goods_status_desc,omitempty"`
	// 消费者退款原因
	RefundReason string `json:"refund_reason,omitempty" xml:"refund_reason,omitempty"`
	// 消费者退款说明
	RefundDesc string `json:"refund_desc,omitempty" xml:"refund_desc,omitempty"`
	// 消费者nick
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 消费者退款修改时间。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 消费者淘宝id的加密key
	OpenBuyerId string `json:"open_buyer_id,omitempty" xml:"open_buyer_id,omitempty"`
	// 消费者退款状态最后修改时间,格式 yyyy-MM-dd HH:mm:ss
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 分销子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 消费者订单对应的退款单号
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 消费者订单退款涉及的消费者正向子订单号
	BizOrderId int64 `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 消费者订单退款状态 1、消费者已经申请退款,等待分销商确认 2、分销商已经同意退货,等待消费者退货  3、消费者已经退货,等待分销商确认收货 4、退款关闭   5、退款成功 6、分销商拒绝退款,待消费者重新修改  7、等待消费者确认重新邮寄的货物
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 退还给消费者的金额(分)
	ReturnFee int64 `json:"return_fee,omitempty" xml:"return_fee,omitempty"`
	// 确认收货后会打款给分销商的金额(分),分摊到子单的实付金额-退款给消费者的金额
	ToSellerFee int64 `json:"to_seller_fee,omitempty" xml:"to_seller_fee,omitempty"`
	// 消费者退货数量
	ReturnGoodsQuantity int64 `json:"return_goods_quantity,omitempty" xml:"return_goods_quantity,omitempty"`
	// 买家是否退货
	NeedReturnGoods bool `json:"need_return_goods,omitempty" xml:"need_return_goods,omitempty"`
}

BuyerRefund 结构体

type CnskuDto

type CnskuDto struct {
	// 组合货品
	CombRelationDTOList []CnskuRelationDto `json:"comb_relation_d_t_o_list,omitempty" xml:"comb_relation_d_t_o_list>cnsku_relation_dto,omitempty"`
	// 套装货品关系列表
	SuiteGoodsRelationList []CnskuSuiteGoodsRelationDto `json:"suite_goods_relation_list,omitempty" xml:"suite_goods_relation_list>cnsku_suite_goods_relation_dto,omitempty"`
	// 需要向featureMap中增加的属性列表(新增&更新接口使用)
	UpdateFeatureMap string `json:"update_feature_map,omitempty" xml:"update_feature_map,omitempty"`
	// 货品编码
	ItemCode string `json:"item_code,omitempty" xml:"item_code,omitempty"`
	// 货品类型,NORMAL / COMBINE / SUITEGOODS
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 条形码( 格式如:条码1#条码2#条码3,多条码中间用 # 分隔)
	WhcBarCode string `json:"whc_bar_code,omitempty" xml:"whc_bar_code,omitempty"`
	// 货品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 想去除的feature 和 updateFeatureMap对应
	RemoveFeatureMap string `json:"remove_feature_map,omitempty" xml:"remove_feature_map,omitempty"`
	// 品牌
	Brand string `json:"brand,omitempty" xml:"brand,omitempty"`
	// 包装材料
	PackageMaterial string `json:"package_material,omitempty" xml:"package_material,omitempty"`
	// 扩展属性
	FeatureMap string `json:"feature_map,omitempty" xml:"feature_map,omitempty"`
	// 货品高度
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 货品重量
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 吊牌价
	ReservePrice int64 `json:"reserve_price,omitempty" xml:"reserve_price,omitempty"`
	// 扩展字段
	CnskuExtendDTO *CnskuExtendDto `json:"cnsku_extend_d_t_o,omitempty" xml:"cnsku_extend_d_t_o,omitempty"`
	// feature字段
	CnskuFeatureDTO *CnskuFeatureDto `json:"cnsku_feature_d_t_o,omitempty" xml:"cnsku_feature_d_t_o,omitempty"`
	// 长度
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 宽度
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 市场叶子类目id
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 货品Id
	CnskuId int64 `json:"cnsku_id,omitempty" xml:"cnsku_id,omitempty"`
	// 货主id
	OwnerId int64 `json:"owner_id,omitempty" xml:"owner_id,omitempty"`
	// 前端skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 货品分类
	SkuCategory int64 `json:"sku_category,omitempty" xml:"sku_category,omitempty"`
	// 体积
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 商品状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 版本号
	Version int64 `json:"version,omitempty" xml:"version,omitempty"`
}

CnskuDto 结构体

type CnskuExtendDto

type CnskuExtendDto struct {
	// 最大列表长度:20
	CnskuSnSampleDTOList []CnskuSnSampleDto `json:"cnsku_sn_sample_d_t_o_list,omitempty" xml:"cnsku_sn_sample_d_t_o_list>cnsku_sn_sample_dto,omitempty"`
	// 配送要求(1:顺丰优先配)
	DeliverRequirements string `json:"deliver_requirements,omitempty" xml:"deliver_requirements,omitempty"`
	// 温度标识 1:常温 2:5°C-12°C 3:0°C-4°C 4:-18°C-0°C
	TemperatureRequirement string `json:"temperature_requirement,omitempty" xml:"temperature_requirement,omitempty"`
	// 货品图片
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 存储分类
	Classification string `json:"classification,omitempty" xml:"classification,omitempty"`
	// 税收分类编码
	TaxCode string `json:"tax_code,omitempty" xml:"tax_code,omitempty"`
	// 税率标示
	TaxRate string `json:"tax_rate,omitempty" xml:"tax_rate,omitempty"`
	// 是否包含电池(默认无电池) 1:无电池, 2:内置电池, 3:外置电池
	IncludeBattery string `json:"include_battery,omitempty" xml:"include_battery,omitempty"`
	// 生产企业名称
	Manufacturer string `json:"manufacturer,omitempty" xml:"manufacturer,omitempty"`
	// 运输单元体积照片
	TransImageUrl string `json:"trans_image_url,omitempty" xml:"trans_image_url,omitempty"`
	// 原产国
	BrandCountry string `json:"brand_country,omitempty" xml:"brand_country,omitempty"`
	// 币种
	Currency string `json:"currency,omitempty" xml:"currency,omitempty"`
	// 产地
	ProducingArea string `json:"producing_area,omitempty" xml:"producing_area,omitempty"`
	// 备案链接
	RecordUrl string `json:"record_url,omitempty" xml:"record_url,omitempty"`
	// 主要成分
	MainComposition string `json:"main_composition,omitempty" xml:"main_composition,omitempty"`
	// 包装单位
	PackageUnit string `json:"package_unit,omitempty" xml:"package_unit,omitempty"`
	// 商品使用的包材材质
	PackageMaterialClass string `json:"package_material_class,omitempty" xml:"package_material_class,omitempty"`
	// 3w货品分类属性(大电用)空调属性,内外机
	TypeProperty string `json:"type_property,omitempty" xml:"type_property,omitempty"`
	// 大电barCode
	WwwBarCode string `json:"www_bar_code,omitempty" xml:"www_bar_code,omitempty"`
	// 剂型
	DosageForms string `json:"dosage_forms,omitempty" xml:"dosage_forms,omitempty"`
	// 商品图片
	PictureUrl string `json:"picture_url,omitempty" xml:"picture_url,omitempty"`
	// 运输单元宽
	TransWidth int64 `json:"trans_width,omitempty" xml:"trans_width,omitempty"`
	// 运输单元长
	TransLength int64 `json:"trans_length,omitempty" xml:"trans_length,omitempty"`
	// 运输单元高
	TransHeight int64 `json:"trans_height,omitempty" xml:"trans_height,omitempty"`
	// 运输单元体积
	TransVolume int64 `json:"trans_volume,omitempty" xml:"trans_volume,omitempty"`
	// 运输单元重量
	TransWeight int64 `json:"trans_weight,omitempty" xml:"trans_weight,omitempty"`
	// 内长
	InnerLength int64 `json:"inner_length,omitempty" xml:"inner_length,omitempty"`
	// 承重
	LoadBearing int64 `json:"load_bearing,omitempty" xml:"load_bearing,omitempty"`
	// 内高
	InnerHeight int64 `json:"inner_height,omitempty" xml:"inner_height,omitempty"`
	// 包材类型 1:空白箱 2:菜鸟联盟包材
	MaterialType int64 `json:"material_type,omitempty" xml:"material_type,omitempty"`
	// 商品使用的包材范围 1:商家包材 2:CP包材
	PackageMaterialMode int64 `json:"package_material_mode,omitempty" xml:"package_material_mode,omitempty"`
	// 内宽
	InnerWidth int64 `json:"inner_width,omitempty" xml:"inner_width,omitempty"`
	// 是否生产批号管理
	IsProduceCodeMgt bool `json:"is_produce_code_mgt,omitempty" xml:"is_produce_code_mgt,omitempty"`
	// 是否进口
	IsImported bool `json:"is_imported,omitempty" xml:"is_imported,omitempty"`
	// 是否监管
	IsDrugs bool `json:"is_drugs,omitempty" xml:"is_drugs,omitempty"`
	// 是否贵品
	IsPrecious bool `json:"is_precious,omitempty" xml:"is_precious,omitempty"`
}

CnskuExtendDto 结构体

type CnskuFeatureDto

type CnskuFeatureDto struct {
	// 认证数据标
	GrayFlag string `json:"gray_flag,omitempty" xml:"gray_flag,omitempty"`
	// 物流类目
	WhcCategory string `json:"whc_category,omitempty" xml:"whc_category,omitempty"`
	// 计量单位
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 对应货值 单位元 小数点后保留2位
	GoodsValue string `json:"goods_value,omitempty" xml:"goods_value,omitempty"`
	// 货号
	GoodsNo string `json:"goods_no,omitempty" xml:"goods_no,omitempty"`
	// 规格
	Specification string `json:"specification,omitempty" xml:"specification,omitempty"`
	// SN管理模式
	SnMode string `json:"sn_mode,omitempty" xml:"sn_mode,omitempty"`
	// 产地
	OriginAddress string `json:"origin_address,omitempty" xml:"origin_address,omitempty"`
	// 尺寸
	Size string `json:"size,omitempty" xml:"size,omitempty"`
	// 包材分组
	MaterialGroup string `json:"material_group,omitempty" xml:"material_group,omitempty"`
	// 商家商品编码
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 包材分类
	MaterialClass string `json:"material_class,omitempty" xml:"material_class,omitempty"`
	// 规格类型,20:大件;10:中小件
	SpecificationType string `json:"specification_type,omitempty" xml:"specification_type,omitempty"`
	// 包装方式:1 原箱发货
	PackagingScheme string `json:"packaging_scheme,omitempty" xml:"packaging_scheme,omitempty"`
	// 产品编码
	CnProductCode string `json:"cn_product_code,omitempty" xml:"cn_product_code,omitempty"`
	// 批准文号
	ApprovalNumber string `json:"approval_number,omitempty" xml:"approval_number,omitempty"`
	// 容积
	CnCubage string `json:"cn_cubage,omitempty" xml:"cn_cubage,omitempty"`
	// 商品名称
	WhcName string `json:"whc_name,omitempty" xml:"whc_name,omitempty"`
	// 有效期天数
	Lifecycle int64 `json:"lifecycle,omitempty" xml:"lifecycle,omitempty"`
	// 净重
	NetWeight int64 `json:"net_weight,omitempty" xml:"net_weight,omitempty"`
	// 保质期禁收天数
	RejectLifecycle int64 `json:"reject_lifecycle,omitempty" xml:"reject_lifecycle,omitempty"`
	// 保质期禁售天数
	LockupLifecycle int64 `json:"lockup_lifecycle,omitempty" xml:"lockup_lifecycle,omitempty"`
	// 保质期临期天数
	AdventLifecycle int64 `json:"advent_lifecycle,omitempty" xml:"advent_lifecycle,omitempty"`
	// 箱规
	Pcs int64 `json:"pcs,omitempty" xml:"pcs,omitempty"`
	// 零售价
	SkuPrice int64 `json:"sku_price,omitempty" xml:"sku_price,omitempty"`
	// 成本价
	CostPrice int64 `json:"cost_price,omitempty" xml:"cost_price,omitempty"`
	// 是否贵品
	IsPrecious bool `json:"is_precious,omitempty" xml:"is_precious,omitempty"`
	// 是否规范运输单元
	IsStandardCarton bool `json:"is_standard_carton,omitempty" xml:"is_standard_carton,omitempty"`
	// 是否危险品
	IsDanger bool `json:"is_danger,omitempty" xml:"is_danger,omitempty"`
	// 是否启用序列号(sn)管理
	IsSnMgt bool `json:"is_sn_mgt,omitempty" xml:"is_sn_mgt,omitempty"`
	// 是否Po管理
	IsPoMgt bool `json:"is_po_mgt,omitempty" xml:"is_po_mgt,omitempty"`
	// 是否易碎品
	IsHygroscopic bool `json:"is_hygroscopic,omitempty" xml:"is_hygroscopic,omitempty"`
	// 是否规范销售单元
	IsStandard bool `json:"is_standard,omitempty" xml:"is_standard,omitempty"`
	// 是否批次管理
	IsBatchMgt bool `json:"is_batch_mgt,omitempty" xml:"is_batch_mgt,omitempty"`
	// 是否效期管理
	IsShelflife bool `json:"is_shelflife,omitempty" xml:"is_shelflife,omitempty"`
	// sn出库管理
	WhcSnOutMode bool `json:"whc_sn_out_mode,omitempty" xml:"whc_sn_out_mode,omitempty"`
	// sn入库管理
	WhcSnInMode bool `json:"whc_sn_in_mode,omitempty" xml:"whc_sn_in_mode,omitempty"`
	// 是否统一全仓数据-销售单元
	IsUnifiedAllWh bool `json:"is_unified_all_wh,omitempty" xml:"is_unified_all_wh,omitempty"`
	// 是否统一全仓数据-运输单元
	IsUnifiedAllWhCarton bool `json:"is_unified_all_wh_carton,omitempty" xml:"is_unified_all_wh_carton,omitempty"`
	// 是否需要测量图片-运输单元
	NeedMeasureImageCarton bool `json:"need_measure_image_carton,omitempty" xml:"need_measure_image_carton,omitempty"`
	// 是否启用标识
	UseYn bool `json:"use_yn,omitempty" xml:"use_yn,omitempty"`
	// 是否需要测量图片-销售单元
	NeedMeasureImage bool `json:"need_measure_image,omitempty" xml:"need_measure_image,omitempty"`
}

CnskuFeatureDto 结构体

type CnskuRelationDto added in v1.2.5

type CnskuRelationDto struct {
	// r_quantity:2 代表数量
	TypeAttrMap string `json:"type_attr_map,omitempty" xml:"type_attr_map,omitempty"`
	// 组合货品type:8
	RelationType int64 `json:"relation_type,omitempty" xml:"relation_type,omitempty"`
	// 货主Id
	TargetUserId int64 `json:"target_user_id,omitempty" xml:"target_user_id,omitempty"`
	// 组合货品子品Id
	TargetItemId int64 `json:"target_item_id,omitempty" xml:"target_item_id,omitempty"`
	// 组合货品主品Id,创建主品后自动填充
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 状态
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// skuId,当商品存在sku时,该参数必传
	IcSkuId int64 `json:"ic_sku_id,omitempty" xml:"ic_sku_id,omitempty"`
}

CnskuRelationDto 结构体

type CnskuRelationOperateOption added in v1.2.9

type CnskuRelationOperateOption struct {
	// 操作类型(默认为DELET)
	OperateType string `json:"operate_type,omitempty" xml:"operate_type,omitempty"`
}

CnskuRelationOperateOption 结构体

type CnskuResult added in v1.2.5

type CnskuResult struct {
	// 对应货品信息
	Data []CnskuDto `json:"data,omitempty" xml:"data>cnsku_dto,omitempty"`
	// 异常信息Code
	SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"`
	// 异常信息
	ErrorMSG string `json:"error_m_s_g,omitempty" xml:"error_m_s_g,omitempty"`
	// 页码
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 总个数
	TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

CnskuResult 结构体

type CnskuSnSampleDto added in v1.2.5

type CnskuSnSampleDto struct {
	// SN示例
	SampleRuleList []CnskuSnSampleRuleDto `json:"sample_rule_list,omitempty" xml:"sample_rule_list>cnsku_sn_sample_rule_dto,omitempty"`
	// sn示例顺序
	SnSeq string `json:"sn_seq,omitempty" xml:"sn_seq,omitempty"`
	// sn示例顺序
	SampleDesc string `json:"sample_desc,omitempty" xml:"sample_desc,omitempty"`
}

CnskuSnSampleDto 结构体

type CnskuSnSampleRuleDto added in v1.2.5

type CnskuSnSampleRuleDto struct {
	// 规则正则表达式
	RuleRegularExpression string `json:"rule_regular_expression,omitempty" xml:"rule_regular_expression,omitempty"`
	// 规则描述
	RuleDesc string `json:"rule_desc,omitempty" xml:"rule_desc,omitempty"`
	// 规则对应图面urlurl
	RuleImgUrl string `json:"rule_img_url,omitempty" xml:"rule_img_url,omitempty"`
	// SN截取正则表达式
	SnMgtSubExpression string `json:"sn_mgt_sub_expression,omitempty" xml:"sn_mgt_sub_expression,omitempty"`
	// 规则示例
	RuleSample string `json:"rule_sample,omitempty" xml:"rule_sample,omitempty"`
	// SN截取结束位置
	SnMgtSubEnd int64 `json:"sn_mgt_sub_end,omitempty" xml:"sn_mgt_sub_end,omitempty"`
	// SN截取开始位置
	SnMgtSubStart int64 `json:"sn_mgt_sub_start,omitempty" xml:"sn_mgt_sub_start,omitempty"`
	// SN是否需要截取
	IsSnMgtSub bool `json:"is_sn_mgt_sub,omitempty" xml:"is_sn_mgt_sub,omitempty"`
}

CnskuSnSampleRuleDto 结构体

type CnskuSuiteGoodsRelationDto added in v1.2.5

type CnskuSuiteGoodsRelationDto struct {
	// 真实货值
	GoodsValue string `json:"goods_value,omitempty" xml:"goods_value,omitempty"`
	// 主品Id,创建可不填
	BelongSuiteGoodId int64 `json:"belong_suite_good_id,omitempty" xml:"belong_suite_good_id,omitempty"`
	// 单子品数量,要求>0
	Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"`
	// 成分子品Id
	GoodsId int64 `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
}

CnskuSuiteGoodsRelationDto 结构体

type Cooperation

type Cooperation struct {
	// 授权产品线名称,和product_line中的值按序对应
	ProductLineName []string `json:"product_line_name,omitempty" xml:"product_line_name>string,omitempty"`
	// 供应商授权的支付方式:ALIPAY(支付宝)、OFFPREPAY(预付款)、OFFTRANSFER(转帐)、OFFSETTLEMENT(后期结算)
	AuthPayway []string `json:"auth_payway,omitempty" xml:"auth_payway>string,omitempty"`
	// 分销商nick
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 供应商NICK
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 授权产品线
	ProductLine string `json:"product_line,omitempty" xml:"product_line,omitempty"`
	// 分销方式: AGENT(代销) 、DEALER(经销)
	TradeType string `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 合作起始时间
	StartDate string `json:"start_date,omitempty" xml:"start_date,omitempty"`
	// 合作终止时间
	EndDate string `json:"end_date,omitempty" xml:"end_date,omitempty"`
	// 合作状态: NORMAL(合作中)、 ENDING(终止中) 、END (终止)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 合作关系ID
	CooperateId int64 `json:"cooperate_id,omitempty" xml:"cooperate_id,omitempty"`
	// 分销商ID
	DistributorId int64 `json:"distributor_id,omitempty" xml:"distributor_id,omitempty"`
	// 供应商ID
	SupplierId int64 `json:"supplier_id,omitempty" xml:"supplier_id,omitempty"`
	// 等级ID
	GradeId int64 `json:"grade_id,omitempty" xml:"grade_id,omitempty"`
}

Cooperation 结构体

type DealerOrder

type DealerOrder struct {
	// 产品明细
	DealerOrderDetails []DealerOrderDetail `json:"dealer_order_details,omitempty" xml:"dealer_order_details>dealer_order_detail,omitempty"`
	// 属性列表,key-value形式。
	Features []Feature `json:"features,omitempty" xml:"features>feature,omitempty"`
	// 物流方式:SELF_PICKUP(自提)、LOGISTICS(物流发货)
	LogisticsType string `json:"logistics_type,omitempty" xml:"logistics_type,omitempty"`
	// 物流费用(精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	LogisticsFee string `json:"logistics_fee,omitempty" xml:"logistics_fee,omitempty"`
	// 折让费用(精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	RebateFee string `json:"rebate_fee,omitempty" xml:"rebate_fee,omitempty"`
	// 修改时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 申请时间
	AppliedTime string `json:"applied_time,omitempty" xml:"applied_time,omitempty"`
	// 分销商最后一次确认/申请/拒绝的时间
	AuditTimeApplier string `json:"audit_time_applier,omitempty" xml:"audit_time_applier,omitempty"`
	// 采购总价(精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	TotalPrice string `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// WAIT_FOR_SUPPLIER_AUDIT1:分销商提交申请,待供应商审核;SUPPLIER_REFUSE:供应商驳回申请,待分销商确认;WAIT_FOR_APPLIER_AUDIT:供应商修改后,待分销商确认;WAIT_FOR_SUPPLIER_AUDIT2:分销商拒绝修改,待供应商再审核;BOTH_AGREE_WAIT_PAY:审核通过下单成功,待分销商付款WAIT_FOR_SUPPLIER_DELIVER:付款成功,待供应商发货;WAIT_FOR_APPLIER_STORAGE:供应商发货,待分销商收货;TRADE_FINISHED:分销商收货,交易成功;TRADE_CLOSED:经销采购单关闭。
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 关闭原因
	CloseReason string `json:"close_reason,omitempty" xml:"close_reason,omitempty"`
	// 支付方式:ALIPAY_SURETY(支付宝担保交易)TRANSFER(线下转账)PREPAY(预存款)IMMEDIATELY(即时到账)
	PayType string `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 供应商nick
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 供应商驳回申请的原因
	RefuseReasonSupplier string `json:"refuse_reason_supplier,omitempty" xml:"refuse_reason_supplier,omitempty"`
	// 分销商拒绝供应商修改的原因
	RefuseReasonApplier string `json:"refuse_reason_applier,omitempty" xml:"refuse_reason_applier,omitempty"`
	// 分销商nick
	ApplierNick string `json:"applier_nick,omitempty" xml:"applier_nick,omitempty"`
	// 供应商最后一次审核通过/修改/驳回的时间
	AuditTimeSupplier string `json:"audit_time_supplier,omitempty" xml:"audit_time_supplier,omitempty"`
	// 支付宝交易号
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 付款时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 供应商备注。仅供应商可见。
	SupplierMemo string `json:"supplier_memo,omitempty" xml:"supplier_memo,omitempty"`
	// 属性键
	DistMemo string `json:"dist_memo,omitempty" xml:"dist_memo,omitempty"`
	// 总采购数量
	QuantityCount int64 `json:"quantity_count,omitempty" xml:"quantity_count,omitempty"`
	// 收货人信息
	Receiver *Receiver `json:"receiver,omitempty" xml:"receiver,omitempty"`
	// 已发货数量
	DeliveredQuantityCount int64 `json:"delivered_quantity_count,omitempty" xml:"delivered_quantity_count,omitempty"`
	// 经销采购单编号,API发货使用此字段
	DealerOrderId int64 `json:"dealer_order_id,omitempty" xml:"dealer_order_id,omitempty"`
	// 供应商备注旗帜。1:红色 2:黄色 3:绿色 4:蓝色 5:粉红色。仅供应商可见。
	SupplierMemoFlag int64 `json:"supplier_memo_flag,omitempty" xml:"supplier_memo_flag,omitempty"`
}

DealerOrder 结构体

type DealerOrderDetail

type DealerOrderDetail struct {
	// 属性信息列表,key-value形式。如attr_key为storeCode,attr_value则为仓库编码。
	Features []Feature `json:"features,omitempty" xml:"features>feature,omitempty"`
	// 最终价格(精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	FinalPrice string `json:"final_price,omitempty" xml:"final_price,omitempty"`
	// 产品规格
	SkuSpec string `json:"sku_spec,omitempty" xml:"sku_spec,omitempty"`
	// 原始价格(精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	OriginalPrice string `json:"original_price,omitempty" xml:"original_price,omitempty"`
	// 产品快照url
	SnapshotUrl string `json:"snapshot_url,omitempty" xml:"snapshot_url,omitempty"`
	// 产品标题
	ProductTitle string `json:"product_title,omitempty" xml:"product_title,omitempty"`
	// 金额小计(采购数量乘以最终价格。精确到2位小数;单位:元。如:200.07,表示:200元7分 )
	PriceCount string `json:"price_count,omitempty" xml:"price_count,omitempty"`
	// 商家编码,是sku则为sku的商家编码,否则是产品的商家编码
	SkuNumber string `json:"sku_number,omitempty" xml:"sku_number,omitempty"`
	// 产品id
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 经销采购单明细id
	DealerDetailId int64 `json:"dealer_detail_id,omitempty" xml:"dealer_detail_id,omitempty"`
	// 经销采购单编号
	DealerOrderId int64 `json:"dealer_order_id,omitempty" xml:"dealer_order_id,omitempty"`
	// 采购数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// sku id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 该条明细是否已删除。true:已删除;false:未删除。
	IsDeleted bool `json:"is_deleted,omitempty" xml:"is_deleted,omitempty"`
}

DealerOrderDetail 结构体

type Discount

type Discount struct {
	// 折扣详情
	Details []DiscountDetail `json:"details,omitempty" xml:"details>discount_detail,omitempty"`
	// 折扣名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 折扣ID
	DiscountId int64 `json:"discount_id,omitempty" xml:"discount_id,omitempty"`
}

Discount 结构体

type DiscountDetail

type DiscountDetail struct {
	// 折扣类型:GRADE(按会员等级优惠)、DISTRIBUTOR(按分销商优惠)
	TargetType string `json:"target_type,omitempty" xml:"target_type,omitempty"`
	// 等级名称或者分销商名称
	TargetName string `json:"target_name,omitempty" xml:"target_name,omitempty"`
	// 优惠方式:PERCENT(按折扣优惠)、PRICE(按减价优惠)
	DiscountType string `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 折扣详情ID
	DetailId int64 `json:"detail_id,omitempty" xml:"detail_id,omitempty"`
	// 会员等级的id或者分销商id
	TargetId int64 `json:"target_id,omitempty" xml:"target_id,omitempty"`
	// 优惠比率或者优惠价格 10%或10
	DiscountValue int64 `json:"discount_value,omitempty" xml:"discount_value,omitempty"`
}

DiscountDetail 结构体

type Distributor

type Distributor struct {
	// 分销商姓名
	DistributorName string `json:"distributor_name,omitempty" xml:"distributor_name,omitempty"`
	// 联系人
	ContactPerson string `json:"contact_person,omitempty" xml:"contact_person,omitempty"`
	// 分销商的手机号
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 分销商的电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 分销商的email
	Email string `json:"email,omitempty" xml:"email,omitempty"`
	// 分销商的支付宝帐户
	AlipayAccount string `json:"alipay_account,omitempty" xml:"alipay_account,omitempty"`
	// 分销商的网店链接
	ShopWebLink string `json:"shop_web_link,omitempty" xml:"shop_web_link,omitempty"`
	// 分销商的真实姓名,认证姓名
	FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"`
	// 分销商卖家的开店时间
	Starts string `json:"starts,omitempty" xml:"starts,omitempty"`
	// 分销商Id
	DistributorId int64 `json:"distributor_id,omitempty" xml:"distributor_id,omitempty"`
	// 分销商店铺主营类目
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 店铺等级
	Level int64 `json:"level,omitempty" xml:"level,omitempty"`
	// 分销商的淘宝卖家评价
	Appraise int64 `json:"appraise,omitempty" xml:"appraise,omitempty"`
}

Distributor 结构体

type DpBuyerDetail added in v1.2.5

type DpBuyerDetail struct {
	// 地区
	Area string `json:"area,omitempty" xml:"area,omitempty"`
	// 收货地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 移动电话
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 邮编
	Post string `json:"post,omitempty" xml:"post,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 固定电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 收货人全名
	FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"`
	// 省份
	Prov string `json:"prov,omitempty" xml:"prov,omitempty"`
	// 收件人ID (Open Addressee ID),长度在128个字符之内。
	Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"`
}

DpBuyerDetail 结构体

type ErpLogisticsInfo

type ErpLogisticsInfo struct {
	// 发货类型 CN=菜鸟发货,SC的商家仓发货
	ConsignType string `json:"consign_type,omitempty" xml:"consign_type,omitempty"`
	// 商品的最小库存单位Sku的id
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 子订单类型:标示该子交易单来源交易,还是BMS增加的,枚举值(00=交易,10=BMS绑定)
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 如是菜鸟仓,则将菜鸟仓的区域仓code进行填充,如是商家仓发货则填充SC
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 货品仓储code
	ItemCode string `json:"item_code,omitempty" xml:"item_code,omitempty"`
	// 货品仓储id
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 组合商品ID
	CombineItemId string `json:"combine_item_id,omitempty" xml:"combine_item_id,omitempty"`
	// 组合商品Code
	CombineItemCode string `json:"combine_item_code,omitempty" xml:"combine_item_code,omitempty"`
	// 货品条码
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
	// 推荐配送公司编码
	DeliveryCps string `json:"delivery_cps,omitempty" xml:"delivery_cps,omitempty"`
	// 仓商家编码
	BizStoreCode string `json:"biz_store_code,omitempty" xml:"biz_store_code,omitempty"`
	// 推荐配送erp编码
	BizDeliveryCode string `json:"biz_delivery_code,omitempty" xml:"biz_delivery_code,omitempty"`
	// 仓配建议类型
	BizSdType string `json:"biz_sd_type,omitempty" xml:"biz_sd_type,omitempty"`
	// 预计发货地址-最小行政地址编码
	SendDivisionCode string `json:"send_division_code,omitempty" xml:"send_division_code,omitempty"`
	// 预计发货地址-文案描述-国家
	SendCountry string `json:"send_country,omitempty" xml:"send_country,omitempty"`
	// 预计发货地址-文案描述-省份
	SendState string `json:"send_state,omitempty" xml:"send_state,omitempty"`
	// 预计发货地址-文案描述-城市
	SendCity string `json:"send_city,omitempty" xml:"send_city,omitempty"`
	// 预计发货地址-文案描述-地区
	SendDistrict string `json:"send_district,omitempty" xml:"send_district,omitempty"`
	// 预计发货地址-文案描述-街道/镇
	SendTown string `json:"send_town,omitempty" xml:"send_town,omitempty"`
	// CP黑名单,逗号分隔
	BlackDeliveryCps string `json:"black_delivery_cps,omitempty" xml:"black_delivery_cps,omitempty"`
	// CP白名单,逗号分隔
	WhiteDeliveryCps string `json:"white_delivery_cps,omitempty" xml:"white_delivery_cps,omitempty"`
	// 商品数字编号
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 应发数量
	NeedConsignNum int64 `json:"need_consign_num,omitempty" xml:"need_consign_num,omitempty"`
	// 采购单子单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 采购单号
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 组合货品比例
	ItemRatio int64 `json:"item_ratio,omitempty" xml:"item_ratio,omitempty"`
}

ErpLogisticsInfo 结构体

type Feature

type Feature struct {
	// 属性键
	AttrKey string `json:"attr_key,omitempty" xml:"attr_key,omitempty"`
	// 属性值
	AttrValue string `json:"attr_value,omitempty" xml:"attr_value,omitempty"`
}

Feature 结构体

type FeatureDo

type FeatureDo struct {
	// 属性键
	AttrKey string `json:"attr_key,omitempty" xml:"attr_key,omitempty"`
	// 属性值
	AttrValue string `json:"attr_value,omitempty" xml:"attr_value,omitempty"`
}

FeatureDo 结构体

type FenxiaoGrade

type FenxiaoGrade struct {
	// 分销商等级名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 记录创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 记录最后修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 主键
	GradeId int64 `json:"grade_id,omitempty" xml:"grade_id,omitempty"`
}

FenxiaoGrade 结构体

type FenxiaoItemRecord

type FenxiaoItemRecord struct {
	// 下载时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 更新时间(系统时间,无业务意义)
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 分销方式:AGENT(只做代销,默认值)、DEALER(只做经销)
	TradeType string `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 分销商ID
	DistributorId int64 `json:"distributor_id,omitempty" xml:"distributor_id,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 产品ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
}

FenxiaoItemRecord 结构体

type FenxiaoProduct

type FenxiaoProduct struct {
	// sku列表
	Skus []SkuList `json:"skus,omitempty" xml:"skus>sku_list,omitempty"`
	// 产品图片
	Images []ProductImageList `json:"images,omitempty" xml:"images>product_image_list,omitempty"`
	// 产品分销商信息
	Pdus []PduList `json:"pdus,omitempty" xml:"pdus>pdu_list,omitempty"`
	// 产品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 采购基准价,单位:元。
	StandardPrice string `json:"standard_price,omitempty" xml:"standard_price,omitempty"`
	// 零售基准价,单位:元
	StandardRetailPrice string `json:"standard_retail_price,omitempty" xml:"standard_retail_price,omitempty"`
	// 最低零售价,单位:分。
	RetailPriceLow string `json:"retail_price_low,omitempty" xml:"retail_price_low,omitempty"`
	// 最高零售价,单位:分。
	RetailPriceHigh string `json:"retail_price_high,omitempty" xml:"retail_price_high,omitempty"`
	// 采购价格,单位:元。
	CostPrice string `json:"cost_price,omitempty" xml:"cost_price,omitempty"`
	// 经销采购价
	DealerCostPrice string `json:"dealer_cost_price,omitempty" xml:"dealer_cost_price,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 产品图片路径
	Pictures string `json:"pictures,omitempty" xml:"pictures,omitempty"`
	// 产品描述路径,通过http请求获取
	DescPath string `json:"desc_path,omitempty" xml:"desc_path,omitempty"`
	// 类目id
	CategoryId string `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 产品描述的内容
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 产品属性,格式为pid:vid;pid:vid
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 属性别名,格式为pid:vid:alias;pid:vid:alias
	PropertyAlias string `json:"property_alias,omitempty" xml:"property_alias,omitempty"`
	// 自定义属性,格式为pid:value;pid:value
	InputProperties string `json:"input_properties,omitempty" xml:"input_properties,omitempty"`
	// 所在地:省
	Prov string `json:"prov,omitempty" xml:"prov,omitempty"`
	// 所在地:市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费)
	PostageType string `json:"postage_type,omitempty" xml:"postage_type,omitempty"`
	// 平邮费用,单位:元
	PostageOrdinary string `json:"postage_ordinary,omitempty" xml:"postage_ordinary,omitempty"`
	// 快递费用,单位:元
	PostageFast string `json:"postage_fast,omitempty" xml:"postage_fast,omitempty"`
	// ems费用,单位:元
	PostageEms string `json:"postage_ems,omitempty" xml:"postage_ems,omitempty"`
	// 创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 更新时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 铺货时间
	UpshelfTime string `json:"upshelf_time,omitempty" xml:"upshelf_time,omitempty"`
	// 发布状态,可选值:up(上架)、down(下架)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 分销方式:AGENT(只做代销,默认值)、DEALER(只做经销)、ALL(代销和经销都做)
	TradeType string `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 查询产品列表时,查询入参增加is_authz:yes|no yes:需要授权 no:不需要授权
	IsAuthz string `json:"is_authz,omitempty" xml:"is_authz,omitempty"`
	// 产品ID
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 产品线ID
	ProductcatId int64 `json:"productcat_id,omitempty" xml:"productcat_id,omitempty"`
	// 产品库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 运费模板ID
	PostageId int64 `json:"postage_id,omitempty" xml:"postage_id,omitempty"`
	// 折扣ID(新增参数)
	DiscountId int64 `json:"discount_id,omitempty" xml:"discount_id,omitempty"`
	// 根据商品ID查询时,返回这个产品对应的商品ID,只对分销商查询接口有效
	QueryItemId int64 `json:"query_item_id,omitempty" xml:"query_item_id,omitempty"`
	// 下载人数
	ItemsCount int64 `json:"items_count,omitempty" xml:"items_count,omitempty"`
	// 累计采购次数
	OrdersCount int64 `json:"orders_count,omitempty" xml:"orders_count,omitempty"`
	// 关联的后端商品id
	ScitemId int64 `json:"scitem_id,omitempty" xml:"scitem_id,omitempty"`
	// 产品spu id
	SpuId int64 `json:"spu_id,omitempty" xml:"spu_id,omitempty"`
	// 预扣库存
	ReservedQuantity int64 `json:"reserved_quantity,omitempty" xml:"reserved_quantity,omitempty"`
	// 配额可用库存
	QuotaQuantity int64 `json:"quota_quantity,omitempty" xml:"quota_quantity,omitempty"`
	// 导入的商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 是否有发票,可选值:false(否)、true(是)
	HaveInvoice bool `json:"have_invoice,omitempty" xml:"have_invoice,omitempty"`
	// 是否有保修,可选值:false(否)、true(是)
	HaveQuarantee bool `json:"have_quarantee,omitempty" xml:"have_quarantee,omitempty"`
}

FenxiaoProduct 结构体

type FenxiaoSku

type FenxiaoSku struct {
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 市场价
	StandardPrice string `json:"standard_price,omitempty" xml:"standard_price,omitempty"`
	// 代销采购价,单位:元
	CostPrice string `json:"cost_price,omitempty" xml:"cost_price,omitempty"`
	// 经销采购价
	DealerCostPrice string `json:"dealer_cost_price,omitempty" xml:"dealer_cost_price,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// sku的销售属性组合字符串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// SkuID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 预扣库存
	ReservedQuantity int64 `json:"reserved_quantity,omitempty" xml:"reserved_quantity,omitempty"`
	// 配额可用库存
	QuotaQuantity int64 `json:"quota_quantity,omitempty" xml:"quota_quantity,omitempty"`
	// 关联的后端商品id
	ScitemId int64 `json:"scitem_id,omitempty" xml:"scitem_id,omitempty"`
	// 关联的前端宝贝对应的skuid
	AuctionSkuId int64 `json:"auction_sku_id,omitempty" xml:"auction_sku_id,omitempty"`
}

FenxiaoSku 结构体

type GradeDiscount

type GradeDiscount struct {
	// 采购价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 折扣类型:1-等级、2-分销商折扣
	DiscountType int64 `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 等级ID或分销商ID
	DiscountId int64 `json:"discount_id,omitempty" xml:"discount_id,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 模式:1-代销、2-经销
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
}

GradeDiscount 结构体

type InventoryInfoDetailDto

type InventoryInfoDetailDto struct {
	// subList
	SubList []InventorySubDetailDto `json:"sub_list,omitempty" xml:"sub_list>inventory_sub_detail_dto,omitempty"`
	// 后端商品code
	ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
	// 仓库code
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 占用库存数
	OccupyQuantity int64 `json:"occupy_quantity,omitempty" xml:"occupy_quantity,omitempty"`
	// 仓库物理库存数
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 预扣库存数
	ReserveQuantity int64 `json:"reserve_quantity,omitempty" xml:"reserve_quantity,omitempty"`
	// 后端商品id
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// distType
	InvStoreType int64 `json:"inv_store_type,omitempty" xml:"inv_store_type,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 1前端商品 2供应链货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
}

InventoryInfoDetailDto 结构体

type InventoryQueryForStoreRequest

type InventoryQueryForStoreRequest struct {
	// 后端商品code, sc_item_code或 sc_item_id需传入其中之一
	ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
	// 仓库code
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 后端商品id, sc_item_code或 sc_item_id需传入其中之一
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 实体类型  2:仓库类型, 6:门店类型
	InvStoreType int64 `json:"inv_store_type,omitempty" xml:"inv_store_type,omitempty"`
	// 货品填0即可,前端商品填skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 1前端商品 2供应链货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
}

InventoryQueryForStoreRequest 结构体

type InventoryQueryResult

type InventoryQueryResult struct {
	// 查询成功列表
	ItemInventorys []InventoryInfoDetailDto `json:"item_inventorys,omitempty" xml:"item_inventorys>inventory_info_detail_dto,omitempty"`
	// tipInfos
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
}

InventoryQueryResult 结构体

type InventorySubDetailDto

type InventorySubDetailDto struct {
	// ONLINE_INVENTORY:线上可售卖库存。SHARE_INVENTORY:线下独享库存,门店自提可用
	InvBizCode string `json:"inv_biz_code,omitempty" xml:"inv_biz_code,omitempty"`
	// 预扣库存数
	ReserveQuantity int64 `json:"reserve_quantity,omitempty" xml:"reserve_quantity,omitempty"`
	// 仓库物理库存数
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 占用库存数
	OccupyQuantity int64 `json:"occupy_quantity,omitempty" xml:"occupy_quantity,omitempty"`
}

InventorySubDetailDto 结构体

type InventorySum

type InventorySum struct {
	// 商家仓库编码
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 库存类型名称
	InventoryTypeName string `json:"inventory_type_name,omitempty" xml:"inventory_type_name,omitempty"`
	// 商品商家编码
	ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
	// 总预扣数量
	ReserveQuantity int64 `json:"reserve_quantity,omitempty" xml:"reserve_quantity,omitempty"`
	// 库存类型:<br/>1:正常 <br/>2:损坏 <br/>3:冻结 <br/>10:质押 <br/>11-20:商家自定义
	InventoryType int64 `json:"inventory_type,omitempty" xml:"inventory_type,omitempty"`
	// 商品后端ID,如果有传sc_item_code,参数可以为0
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 总物理库存数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 总占用数量
	OccupyQuantity int64 `json:"occupy_quantity,omitempty" xml:"occupy_quantity,omitempty"`
}

InventorySum 结构体

type LoginUser

type LoginUser struct {
	// 会员NICK
	Nick string `json:"nick,omitempty" xml:"nick,omitempty"`
	// 分销用户类型(1:分销商,2:供应商,3:品牌商;2、3都表示有供货能力,只是身份不同)
	UserType string `json:"user_type,omitempty" xml:"user_type,omitempty"`
	// 入驻时间
	CreateTime string `json:"create_time,omitempty" xml:"create_time,omitempty"`
	// 分销用户ID
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
}

LoginUser 结构体

type Null

type Null struct {
}

Null 结构体

type OrderList added in v1.2.5

type OrderList struct {
	// 子采购单详情
	SubOrderDetailYphList []SubOrderList `json:"sub_order_detail_yph_list,omitempty" xml:"sub_order_detail_yph_list>sub_order_list,omitempty"`
	// 建议废弃 Feature对象列表目前已有的属性: attr_key为 www,attr_value为1 表示是www子订单; attr_key为 wwwStoreCode,attr_value是www子订单发货的仓库编码; attr_key为 isWt,attr_value为1 表示是网厅子订单; attr_key为wtInfo,attr_value为网厅相关合约信息; attr_key为shipper,attr_value为cn表示菜鸟发货; attr_key为 storeCode,attr_value为仓库信息; attr_key为 erpHold,attr_value为1表示强管控中, attr_value为2表示分单完成;
	Features []FeatureDo `json:"features,omitempty" xml:"features>feature_do,omitempty"`
	// 支付宝交易号,在分销商使用担保交易支付时存在。 来源主订单的payOrderId。
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 运单号
	LogisticsId string `json:"logistics_id,omitempty" xml:"logistics_id,omitempty"`
	// 采购单付款时间。格式:yyyy-MM-dd HH:mm:ss
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 采购单留言
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 采购单主单买家实付金额,当前台订单只有一个供应商时该字段有值。单位:元。
	BuyerActualPayYuan string `json:"buyer_actual_pay_yuan,omitempty" xml:"buyer_actual_pay_yuan,omitempty"`
	// 发货时间,格式:格式:yyyy-MM-dd HH:mm:ss
	ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"`
	// 物流公司
	LogisticsCompanyName string `json:"logistics_company_name,omitempty" xml:"logistics_company_name,omitempty"`
	// 分销商昵称
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 采购单邮费
	PostageYuan string `json:"postage_yuan,omitempty" xml:"postage_yuan,omitempty"`
	// 供应商备注信息。 只有供应商身份查询输出此新信息
	SupplierMemo string `json:"supplier_memo,omitempty" xml:"supplier_memo,omitempty"`
	// 采购单编号
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 采购单最后修改时间(包括订单状态变更和订单操作)。格式:yyyy-MM-dd HH:mm:ss
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 分销商实付金额,单位:元
	DistributorPayPriceYuan string `json:"distributor_pay_price_yuan,omitempty" xml:"distributor_pay_price_yuan,omitempty"`
	// 供应商昵称
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 确认收货金额,单位:元
	ConfirmPaidFeeYuan string `json:"confirm_paid_fee_yuan,omitempty" xml:"confirm_paid_fee_yuan,omitempty"`
	// 采购单创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 分销商来源网站
	DistributorFromSys string `json:"distributor_from_sys,omitempty" xml:"distributor_from_sys,omitempty"`
	// 交易成功的时间,分销商确认收货/付款的时间。格式:yyyy-MM-dd HH:mm:ss
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 采购单总额(不含邮费),单位:元
	TotalPriceYuan string `json:"total_price_yuan,omitempty" xml:"total_price_yuan,omitempty"`
	// 主采购单交易状态,枚举:WAIT_SELLER_SEND_GOODS-已付款,待发货;WAIT_SELLER_CONFIRM_PAY-待确认收款;TRADE_REFUNDING-退款中;WAIT_BUYER_PAY-等待买家付款;WAIT_BUYER_CONFIRM_GOODS-已付款,已发货;TRADE_FINISHED-交易成功了;TRADE_CLOSED-交易关闭;TRADE_FOR_PAY-已付款;TRADE_REFUNDED-已退款
	OrderStatusCode string `json:"order_status_code,omitempty" xml:"order_status_code,omitempty"`
	// 主采购单退款状态,枚举:ORDER_RF_NO_REFUND-没有过申请退款;ORDER_RF_REFUNDING-退款活动中,至少有一个子单在退款中;ORDER_RF_END_REFUND-退款结束,即曾经发生过退款且所有退款都完结了
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 寄售模式文字(商家仓,菜鸟仓,门店发货)
	LogisType string `json:"logis_type,omitempty" xml:"logis_type,omitempty"`
	// tp单创单时间
	TpCreateTime string `json:"tp_create_time,omitempty" xml:"tp_create_time,omitempty"`
	// 支付方式,枚举:101-支付宝担保交易;102-代销分账;103-即时到账;104-预存款;201-线下转账汇款交易;301-资金账户预存款交易;302-资金账户即时到账交易;303-先款后货;401-账期支付;402-国际分账;403-直营无需支付;404-外币分账;10000-无需支付
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 配送方式,枚举:1-平邮;2-快递;3-ems;4-虚拟物品
	Shipping int64 `json:"shipping,omitempty" xml:"shipping,omitempty"`
	// 采购单总额(不含邮费,单位:分)
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 消费者主订单ID (经销模式下,不存在该单号)
	TcOrderId int64 `json:"tc_order_id,omitempty" xml:"tc_order_id,omitempty"`
	// 主采购单交易状态-数字表示,枚举:1-已付款,待发货;2-待确认收款;4-等待买家付款;5-已付款,已发货;6-交易成功;7-交易关闭;8-已付款;
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 确认收货金额,单位:分
	ConfirmPaidFee int64 `json:"confirm_paid_fee,omitempty" xml:"confirm_paid_fee,omitempty"`
	// 查询的经营模式,当不指定时,默认查询代销订单 代销:1 经销:2 寄售(自营寄售):5 平台寄售:6
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场;302-猫超一盘货;506-虾选一盘货
	ChannelCode int64 `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
	// 采购单主单买家实付金额,当前台订单只有一个供应商时该字段有值。单位:分。
	BuyerActualPay int64 `json:"buyer_actual_pay,omitempty" xml:"buyer_actual_pay,omitempty"`
	// 分销采购单号(分销流水号)
	FenxiaoId int64 `json:"fenxiao_id,omitempty" xml:"fenxiao_id,omitempty"`
	// 采购单邮费,单位:分
	Postage int64 `json:"postage,omitempty" xml:"postage,omitempty"`
	// 供应商来源网站。 入驻时定义供应商来源的外部系统编码, values: taobao, alibaba
	SupplierFromSys int64 `json:"supplier_from_sys,omitempty" xml:"supplier_from_sys,omitempty"`
	// 分销商实付金额,单位:分
	DistributorPayPrice int64 `json:"distributor_pay_price,omitempty" xml:"distributor_pay_price,omitempty"`
	// 主采购单退款状态-数字表示,枚举:9-没有过申请退款;10-退款活动中,至少有一个子单在退款中;11-退款结束,即曾经发生过退款且所有退款都完结了
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 寄售模式code(0-菜鸟仓,1-商家仓,2-门店发货)
	LogisTypeCode int64 `json:"logis_type_code,omitempty" xml:"logis_type_code,omitempty"`
	// 消费者详细信息(收货人姓名、收货人手机、收货人电话、收货人邮编、收货人省份、收货人详细地址)
	DpBuyerDetail *DpBuyerDetail `json:"dp_buyer_detail,omitempty" xml:"dp_buyer_detail,omitempty"`
}

OrderList 结构体

type OrderMessages

type OrderMessages struct {
	// 留言时间
	MessageTime string `json:"message_time,omitempty" xml:"message_time,omitempty"`
	// 留言标题,例如:分销商留言,供应商留言,买家留言
	MessageTitle string `json:"message_title,omitempty" xml:"message_title,omitempty"`
	// 留言内容
	MessageContent string `json:"message_content,omitempty" xml:"message_content,omitempty"`
	// 留言时的图片地址
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
}

OrderMessages 结构体

type PaginationResult

type PaginationResult struct {
	// 仓库信息数组
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 页码
	PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"`
	// 页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总条数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

PaginationResult 结构体

type PduList

type PduList struct {
	// 分销商用户名
	DistributorName string `json:"distributor_name,omitempty" xml:"distributor_name,omitempty"`
	// 产品销售属性值
	SkuProperties string `json:"sku_properties,omitempty" xml:"sku_properties,omitempty"`
	// 产品ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// 分销商ID
	DistributorId int64 `json:"distributor_id,omitempty" xml:"distributor_id,omitempty"`
	// 产品代销配额库存
	QuantityAgent int64 `json:"quantity_agent,omitempty" xml:"quantity_agent,omitempty"`
}

PduList 结构体

type ProductCat

type ProductCat struct {
	// 产品线名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 产品最低零售价
	RetailLowPercent string `json:"retail_low_percent,omitempty" xml:"retail_low_percent,omitempty"`
	// 产品最高零售价
	RetailHighPercent string `json:"retail_high_percent,omitempty" xml:"retail_high_percent,omitempty"`
	// 产品代销采购价
	CostPercentAgent string `json:"cost_percent_agent,omitempty" xml:"cost_percent_agent,omitempty"`
	// 产品经销采购价
	CostPercentDealer string `json:"cost_percent_dealer,omitempty" xml:"cost_percent_dealer,omitempty"`
	// 产品线ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 产品数量
	ProductNum int64 `json:"product_num,omitempty" xml:"product_num,omitempty"`
}

ProductCat 结构体

type ProductImageList

type ProductImageList struct {
	// 图片对应的url
	ImageUrl string `json:"image_url,omitempty" xml:"image_url,omitempty"`
	// 当图片类型为属性图片时,表示图片对应的属性pv对。
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 图片类型(PRODUCT:产品图片  EXTPRODUCT:产品辅图  PROPERTIES:产品属性图片 )
	Type string `json:"type,omitempty" xml:"type,omitempty"`
	// 图片id
	ImageId int64 `json:"image_id,omitempty" xml:"image_id,omitempty"`
	// 图片顺序
	ImagePosition int64 `json:"image_position,omitempty" xml:"image_position,omitempty"`
}

ProductImageList 结构体

type ProductSkuDo

type ProductSkuDo struct {
	// sku的销售属性组合字符串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 关联的前端宝贝skuid
	AuctionSkuId int64 `json:"auction_sku_id,omitempty" xml:"auction_sku_id,omitempty"`
	// 代销采购价:单位分
	CostPriceFen int64 `json:"cost_price_fen,omitempty" xml:"cost_price_fen,omitempty"`
	// 经销采购价:单位分
	PriceCostDealerFen int64 `json:"price_cost_dealer_fen,omitempty" xml:"price_cost_dealer_fen,omitempty"`
	// 库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 配额可用库存
	QuotaQuantity int64 `json:"quota_quantity,omitempty" xml:"quota_quantity,omitempty"`
	// 预扣库存
	ReservedQuantity int64 `json:"reserved_quantity,omitempty" xml:"reserved_quantity,omitempty"`
	// 关联的后端商品id
	ScitemId int64 `json:"scitem_id,omitempty" xml:"scitem_id,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 市场价单位分
	StandardPriceFen int64 `json:"standard_price_fen,omitempty" xml:"standard_price_fen,omitempty"`
}

ProductSkuDo 结构体

type PurchaseOrder added in v1.2.5

type PurchaseOrder struct {
	// 子采购单详情
	SubOrderDetailYphList []SubOrderDetail `json:"sub_order_detail_yph_list,omitempty" xml:"sub_order_detail_yph_list>sub_order_detail,omitempty"`
	// 建议废弃 Feature对象列表目前已有的属性: attr_key为 www,attr_value为1 表示是www子订单; attr_key为 wwwStoreCode,attr_value是www子订单发货的仓库编码; attr_key为 isWt,attr_value为1 表示是网厅子订单; attr_key为wtInfo,attr_value为网厅相关合约信息; attr_key为shipper,attr_value为cn表示菜鸟发货; attr_key为 storeCode,attr_value为仓库信息; attr_key为 erpHold,attr_value为1表示强管控中, attr_value为2表示分单完成;
	Features []FeatureDo `json:"features,omitempty" xml:"features>feature_do,omitempty"`
	// 支付宝交易号
	PayOrderId string `json:"pay_order_id,omitempty" xml:"pay_order_id,omitempty"`
	// 运单号
	LogisticsId string `json:"logistics_id,omitempty" xml:"logistics_id,omitempty"`
	// 采购单付款时间。格式:yyyy-MM-dd HH:mm:ss
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 采购单留言,默认是分销商留言。在代销模式下信息包括消费者(买家)留言和分销商留言信息
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 采购单主单买家实付金额,当tc主单只有一个供应商时该字段才有值
	BuyerActualPayYuan string `json:"buyer_actual_pay_yuan,omitempty" xml:"buyer_actual_pay_yuan,omitempty"`
	// 发货时间,格式:yyyy-MM-dd HH:mm:ss
	ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"`
	// 物流公司名称
	LogisticsCompanyName string `json:"logistics_company_name,omitempty" xml:"logistics_company_name,omitempty"`
	// 支付宝交易号,担保交易使用。
	AlipayOrderNo string `json:"alipay_order_no,omitempty" xml:"alipay_order_no,omitempty"`
	// 分销商昵称
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 邮费,单位:元
	PostageYuan string `json:"postage_yuan,omitempty" xml:"postage_yuan,omitempty"`
	// 供应商备注信息。 只有供应商身份查询输出此信息。
	SupplierMemo string `json:"supplier_memo,omitempty" xml:"supplier_memo,omitempty"`
	// 采购单编号
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 采购单最后更新时间,包括订单状态变更和订单操作。格式:yyyy-MM-dd HH:mm:ss
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 交易状态,枚举:WAIT_BUYER_PAY-等待付款;WAIT_SELLER_CONFIRM-付款信息待确认,待发货;WAIT_SELLER_SEND_GOODS-已付款,待发货;WAIT_BUYER_CONFIRM_GOODS-已付款,已发货;TRADE_FINISHED-交易成功;TRADE_CLOSED-交易关闭
	OrderStatusCode string `json:"order_status_code,omitempty" xml:"order_status_code,omitempty"`
	// 分销商实付金额,单位:元
	DistributorPayPriceYuan string `json:"distributor_pay_price_yuan,omitempty" xml:"distributor_pay_price_yuan,omitempty"`
	// 供应商昵称
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 确认收货金额,单位:元
	ConfirmPaidFeeYuan string `json:"confirm_paid_fee_yuan,omitempty" xml:"confirm_paid_fee_yuan,omitempty"`
	// 采购单创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 分销商来源网站
	DistributorFromSys string `json:"distributor_from_sys,omitempty" xml:"distributor_from_sys,omitempty"`
	// 订单结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 采购单总价,单位:元
	TotalPriceYuan string `json:"total_price_yuan,omitempty" xml:"total_price_yuan,omitempty"`
	// 主采购单退款状态,枚举:ORDER_RF_NO_REFUND-没有过申请退款;ORDER_RF_REFUNDING-退款活动中,至少有一个子单在退款中;ORDER_RF_END_REFUND-退款结束,即曾经发生过退款且所有退款都完结了
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 寄售模式文字(菜鸟仓,商家仓,门店发货)
	LogisType string `json:"logis_type,omitempty" xml:"logis_type,omitempty"`
	// 支付方式,枚举:101-支付宝担保交易;102-代销分账;103-即时到账;104-预存款;201-线下转账汇款交易;301-资金账户预存款交易;302-资金账户即时到账交易;303-先款后货;401-账期支付;402-国际分账;403-直营无需支付;404-外币分账;10000-无需支付
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 配送方式,枚举:1-平邮;2-快递;3-ems;4-虚拟物品
	Shipping int64 `json:"shipping,omitempty" xml:"shipping,omitempty"`
	// 采购单总额(不含邮费)
	TotalPrice int64 `json:"total_price,omitempty" xml:"total_price,omitempty"`
	// 消费者主订单ID (经销模式下,不存在该单号)
	TcOrderId int64 `json:"tc_order_id,omitempty" xml:"tc_order_id,omitempty"`
	// 已执行确认收货的金额,单位:分
	ConfirmPaidFee int64 `json:"confirm_paid_fee,omitempty" xml:"confirm_paid_fee,omitempty"`
	// 供应商备注旗帜vlaue在1-5之间。 非1-5之间,都采用1作为默认。 1:红色 2:黄色 3:绿色 4:蓝色 5:粉红色 供应商角色查询返回
	SupplierFlag int64 `json:"supplier_flag,omitempty" xml:"supplier_flag,omitempty"`
	// 交易模式(分销方式):1-代销;2-经销;5-寄售;6-平台寄售
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场;302-猫超一盘货;506-虾选一盘货
	ChannelCode int64 `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
	// 采购单主单买家实付金额,当前台主单只有一个供应商时该字段才有值,单位:分
	BuyerActualPay int64 `json:"buyer_actual_pay,omitempty" xml:"buyer_actual_pay,omitempty"`
	// 分销采购单号(分销流水号)
	FenxiaoId int64 `json:"fenxiao_id,omitempty" xml:"fenxiao_id,omitempty"`
	// 邮费,单位:分
	Postage int64 `json:"postage,omitempty" xml:"postage,omitempty"`
	// 供应商来源网站,1-淘宝,2-阿里巴巴
	SupplierFromSys int64 `json:"supplier_from_sys,omitempty" xml:"supplier_from_sys,omitempty"`
	// 分销商实付金额,单位:分
	DistributorPayPrice int64 `json:"distributor_pay_price,omitempty" xml:"distributor_pay_price,omitempty"`
	// 主采购单交易状态-数字表示,枚举:1-已付款,待发货;2-待确认收款;4-等待买家付款;5-已付款,已发货;6-交易成功;7-交易关闭;8-已付款;
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 主采购单退款状态-数字表示,枚举:9-没有过申请退款;10-退款活动中,至少有一个子单在退款中;11-退款结束,即曾经发生过退款且所有退款都完结了
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 寄售模式code(0-菜鸟仓,1-商家仓,2-门店发货)
	LogisTypeCode int64 `json:"logis_type_code,omitempty" xml:"logis_type_code,omitempty"`
	// 消费者信息(收货人姓名、收货人手机、收货人电话、收货人邮编、收货人省份、收货人详细地址)
	DpBuyerDetail *DpBuyerDetail `json:"dp_buyer_detail,omitempty" xml:"dp_buyer_detail,omitempty"`
}

PurchaseOrder 结构体

type QueryPagination

type QueryPagination struct {
	// 当前页码数
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
}

QueryPagination 结构体

type Receiver

type Receiver struct {
	// 邮政编码
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// 移动电话
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 固定电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 收货人的详细地址信息
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 收货人全名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 收货人所在省份
	State string `json:"state,omitempty" xml:"state,omitempty"`
	// 区/县
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 证件号
	CardId string `json:"card_id,omitempty" xml:"card_id,omitempty"`
	// 收货人的城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
}

Receiver 结构体

type RefundDetail

type RefundDetail struct {
	// 退款明细项,记录退款涉及的订单
	ReturnLogistics []RefundLogistics `json:"return_logistics,omitempty" xml:"return_logistics>refund_logistics,omitempty"`
	// 退款明细项,记录退款涉及的订单
	RefundItems []RefundItem `json:"refund_items,omitempty" xml:"refund_items>refund_item,omitempty"`
	// 退款创建时间
	RefundCreateTime string `json:"refund_create_time,omitempty" xml:"refund_create_time,omitempty"`
	// 退款的金额(元)
	RefundFee string `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 支付给供应商的金额(元),分销订单子单实付金额-退款金额
	PaySupFee string `json:"pay_sup_fee,omitempty" xml:"pay_sup_fee,omitempty"`
	// 退款原因
	RefundReason string `json:"refund_reason,omitempty" xml:"refund_reason,omitempty"`
	// 退款说明
	RefundDesc string `json:"refund_desc,omitempty" xml:"refund_desc,omitempty"`
	// 分销商nick
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 供应商nick
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 退款修改时间。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 超时时间
	Timeout string `json:"timeout,omitempty" xml:"timeout,omitempty"`
	// 退款单最后修改时间,格式 yyyy-MM-dd HH:mm:ss
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 退款金额,单位:元
	RefundFeeYuan string `json:"refund_fee_yuan,omitempty" xml:"refund_fee_yuan,omitempty"`
	// 支付给供应商的金额,单位:元
	PaySupFeeYuan string `json:"pay_sup_fee_yuan,omitempty" xml:"pay_sup_fee_yuan,omitempty"`
	// 退款单状态code,RF_STATUS_NO_REFUND-已撤回;RF_STATUS_WAIT_SELLER_AGREE-等待卖家同意;RF_STATUS_SELLER_REFUSE-卖家拒绝退款,等待买家修改;RF_STATUS_WAIT_BUYER_RETURN_GOODS-等待买家退货;RF_STATUS_WAIT_SELLER_CONFIRM_GOODS-买家退货,等待卖家确认收货;RF_STATUS_SELLER_REFUSE_RETURN_GOODS-卖家拒绝收货;RF_STATUS_WAIT_SYSTEM_TRANSFER-等待系统打款;RF_STATUS_SUCCESS-退款成功;RF_STATUS_CLOSED-退款关闭
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 分销子订单号,如果是by子单发起退款,就会在退款主单上记录分销子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 退款状态1:分销商已经申请退款,等待供应商确认2:供应商已经同意退货,等待分销商退货3:分销商已经退货,等待供应商确认收货4:退款关闭5:退款成功  6:供应商拒绝退款12:供应商同意退款,待系统打款  9:没有申请退款 10:供应商拒绝确认收货,待分销商重新修改
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 分销主订单号
	PurchaseOrderId int64 `json:"purchase_order_id,omitempty" xml:"purchase_order_id,omitempty"`
	// 退款流程类型:4:发货前退款;1:发货后退款不退货;2:发货后退款退货;3:售后退款;5:拒收;6:售后退货退款
	RefundFlowType int64 `json:"refund_flow_type,omitempty" xml:"refund_flow_type,omitempty"`
	// 超时类型:<br/>1:供应商同意退款/同意退货超时;<br/>2:供应商确认收货超时
	ToType int64 `json:"to_type,omitempty" xml:"to_type,omitempty"`
	// 前台消费者订单对应的退款详情
	BuyerRefund *BuyerRefund `json:"buyer_refund,omitempty" xml:"buyer_refund,omitempty"`
	// 分销退款单号
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 退款单类型,10-未发货退款;20-已发货退货;30-已发货仅退款;40-拒收
	RefundType int64 `json:"refund_type,omitempty" xml:"refund_type,omitempty"`
	// 是否退货,如果是已发货退货退款/售后退货退款,就是true
	IsReturnGoods bool `json:"is_return_goods,omitempty" xml:"is_return_goods,omitempty"`
	// 是否退货
	ReturnGoods bool `json:"return_goods,omitempty" xml:"return_goods,omitempty"`
}

RefundDetail 结构体

type RefundDetailList added in v1.2.5

type RefundDetailList struct {
	// 退货的物流信息
	ReturnLogistics []RefundLogistics `json:"return_logistics,omitempty" xml:"return_logistics>refund_logistics,omitempty"`
	// 退款明细项,记录退款涉及的订单
	RefundItems []RefundItem `json:"refund_items,omitempty" xml:"refund_items>refund_item,omitempty"`
	// 退款单最后修改时间,格式 yyyy-MM-dd HH:mm:ss
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 退款说明
	RefundDesc string `json:"refund_desc,omitempty" xml:"refund_desc,omitempty"`
	// 退款金额,单位:元
	RefundFeeYuan string `json:"refund_fee_yuan,omitempty" xml:"refund_fee_yuan,omitempty"`
	// 支付给供应商的金额,单位:元
	PaySupFeeYuan string `json:"pay_sup_fee_yuan,omitempty" xml:"pay_sup_fee_yuan,omitempty"`
	// 退款创建时间
	RefundCreateTime string `json:"refund_create_time,omitempty" xml:"refund_create_time,omitempty"`
	// 退款单状态code,RF_STATUS_NO_REFUND-已撤回;RF_STATUS_WAIT_SELLER_AGREE-等待卖家同意;RF_STATUS_SELLER_REFUSE-卖家拒绝退款,等待买家修改;RF_STATUS_WAIT_BUYER_RETURN_GOODS-等待买家退货;RF_STATUS_WAIT_SELLER_CONFIRM_GOODS-买家退货,等待卖家确认收货;RF_STATUS_SELLER_REFUSE_RETURN_GOODS-卖家拒绝收货;RF_STATUS_WAIT_SYSTEM_TRANSFER-等待系统打款;RF_STATUS_SUCCESS-退款成功;RF_STATUS_CLOSED-退款关闭
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 退款金额,单位:分
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 退款单状态,10-已撤回;20-等待卖家同意;30-卖家拒绝退款,等待买家修改;40-等待买家退货;50-买家退货,等待卖家确认收货;60-卖家拒绝收货;90-等待系统打款;100-退款成功;200-退款关闭
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 发生退款的分销子采购单id
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 买家退款单信息
	BuyerRefund *BuyerRefund `json:"buyer_refund,omitempty" xml:"buyer_refund,omitempty"`
	// 分销采购单id
	PurchaseOrderId int64 `json:"purchase_order_id,omitempty" xml:"purchase_order_id,omitempty"`
	// 支付给供应商的金额,单位:分
	PaySupFee int64 `json:"pay_sup_fee,omitempty" xml:"pay_sup_fee,omitempty"`
	// 退款单类型,10-未发货退款;20-已发货退货;30-已发货仅退款;40-拒收
	RefundType int64 `json:"refund_type,omitempty" xml:"refund_type,omitempty"`
	// 退款单id
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 是否退货
	ReturnGoods bool `json:"return_goods,omitempty" xml:"return_goods,omitempty"`
}

RefundDetailList 结构体

type RefundItem added in v1.2.5

type RefundItem struct {
	// 退款明细ID,针对一笔退款每一个品就映射为一个明细,每一个明细有一个全局唯一的ID
	RefundItemId int64 `json:"refund_item_id,omitempty" xml:"refund_item_id,omitempty"`
	// 分销子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 退货数量
	RefundQuantity int64 `json:"refund_quantity,omitempty" xml:"refund_quantity,omitempty"`
}

RefundItem 结构体

type RefundLogistics added in v1.2.5

type RefundLogistics struct {
	// 退货物流公司编码,如顺丰、韵达等
	CompanyCode string `json:"company_code,omitempty" xml:"company_code,omitempty"`
	// 退货物流公司名称,如顺丰
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 退货物流运单号
	MailNo string `json:"mail_no,omitempty" xml:"mail_no,omitempty"`
}

RefundLogistics 结构体

type RegionalPriceDto

type RegionalPriceDto struct {
	// 市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 省
	Province string `json:"province,omitempty" xml:"province,omitempty"`
	// 区县,特殊可选
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 街道,特殊可选
	Street string `json:"street,omitempty" xml:"street,omitempty"`
	// 金额(分)
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
}

RegionalPriceDto 结构体

type Requisition

type Requisition struct {
	// 分销申请加盟时,给供应商的留言
	DistMessage string `json:"dist_message,omitempty" xml:"dist_message,omitempty"`
	// 申请时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 分销商nick
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 开店时间
	DistOpenDate string `json:"dist_open_date,omitempty" xml:"dist_open_date,omitempty"`
	// 店铺地址
	DistShopAddress string `json:"dist_shop_address,omitempty" xml:"dist_shop_address,omitempty"`
	// 主营类目名称
	DistCategoryName string `json:"dist_category_name,omitempty" xml:"dist_category_name,omitempty"`
	// 好评率
	DistAppraise int64 `json:"dist_appraise,omitempty" xml:"dist_appraise,omitempty"`
	// 店铺星级
	DistLevel int64 `json:"dist_level,omitempty" xml:"dist_level,omitempty"`
	// 申请状态(1-申请中、2-成功、3-被退回、4-已撤消、5-过期)
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 主营类目
	DistCategory int64 `json:"dist_category,omitempty" xml:"dist_category,omitempty"`
	// 分销商id
	DistributorId int64 `json:"distributor_id,omitempty" xml:"distributor_id,omitempty"`
	// 合作申请ID
	RequisitionId int64 `json:"requisition_id,omitempty" xml:"requisition_id,omitempty"`
	// 是否消保(0-不是、1-是)
	DistIsXiaobao int64 `json:"dist_is_xiaobao,omitempty" xml:"dist_is_xiaobao,omitempty"`
}

Requisition 结构体

type ResultDto

type ResultDto struct {
	// 库存数量
	Module string `json:"module,omitempty" xml:"module,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"`
}

ResultDto 结构体

type ScItem

type ScItem struct {
	// 条形码
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
	// 备注
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 商品属性格式是  p1:v1,p2:v2,p3:v3
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 品牌名称
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 仓储商编码,可以支持多个,格式wmsname:code
	WmsCode string `json:"wms_code,omitempty" xml:"wms_code,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商家编码
	OuterCode string `json:"outer_code,omitempty" xml:"outer_code,omitempty"`
	// LIQUID:液体,1:粉体,SOLID:固体
	MatterStatus string `json:"matter_status,omitempty" xml:"matter_status,omitempty"`
	// 重量.单位:克
	Weight int64 `json:"weight,omitempty" xml:"weight,omitempty"`
	// 宽 单位:mm
	Width int64 `json:"width,omitempty" xml:"width,omitempty"`
	// 品牌id
	BrandId int64 `json:"brand_id,omitempty" xml:"brand_id,omitempty"`
	// 价格:分(吊牌价)
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 高 单位:mm
	Height int64 `json:"height,omitempty" xml:"height,omitempty"`
	// 商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 体积:立方厘米
	Volume int64 `json:"volume,omitempty" xml:"volume,omitempty"`
	// 长度 单位:mm
	Length int64 `json:"length,omitempty" xml:"length,omitempty"`
	// 1.普通供应链商品 2.供应链组合主商品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
	// 1表示区域销售,0或是空是非区域销售
	IsAreaSale int64 `json:"is_area_sale,omitempty" xml:"is_area_sale,omitempty"`
	// 后端商品options字段
	Options int64 `json:"options,omitempty" xml:"options,omitempty"`
	// 是否易碎 false :不是  true:是
	IsFriable bool `json:"is_friable,omitempty" xml:"is_friable,omitempty"`
	// 是否保质期:false:不是 true:是
	IsWarranty bool `json:"is_warranty,omitempty" xml:"is_warranty,omitempty"`
	// 是否危险 false:不是  true:是
	IsDangerous bool `json:"is_dangerous,omitempty" xml:"is_dangerous,omitempty"`
	// 贵重品:false:不是 true:是
	IsCostly bool `json:"is_costly,omitempty" xml:"is_costly,omitempty"`
}

ScItem 结构体

type ScItemMap

type ScItemMap struct {
	// 后端商品所有者名称
	RelUserNick string `json:"rel_user_nick,omitempty" xml:"rel_user_nick,omitempty"`
	// Ic商家nick(分销商nick)
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 后端商品所有者商家编码
	RelOuterCode string `json:"rel_outer_code,omitempty" xml:"rel_outer_code,omitempty"`
	// 后端商品ID
	RelItemId int64 `json:"rel_item_id,omitempty" xml:"rel_item_id,omitempty"`
	// map_type=1时,item_id为IC商品id<br/><br/>map_type=7时,item_id为分销商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 后端商品所有者id
	RelUserId int64 `json:"rel_user_id,omitempty" xml:"rel_user_id,omitempty"`
	// 1:前台和后台关系<br/>7:分销和后台关系
	MapType int64 `json:"map_type,omitempty" xml:"map_type,omitempty"`
	// Ic商家id(分销商id)
	UserId int64 `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 当宝贝下没SKU时该字段为空
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

ScItemMap 结构体

type ScItemSearchDto added in v1.2.5

type ScItemSearchDto struct {
	// 剔除的货品类型
	NonScItemTypeList []string `json:"non_sc_item_type_list,omitempty" xml:"non_sc_item_type_list>string,omitempty"`
	// 货品类型
	ScItemTypeList []string `json:"sc_item_type_list,omitempty" xml:"sc_item_type_list>string,omitempty"`
	// 货品编码列表
	OuterIdList []string `json:"outer_id_list,omitempty" xml:"outer_id_list>string,omitempty"`
	// 条形码列表
	WhcBarCodeList []string `json:"whc_bar_code_list,omitempty" xml:"whc_bar_code_list>string,omitempty"`
	// 商家类目ID列表
	MerchantCategoryIdList []int64 `json:"merchant_category_id_list,omitempty" xml:"merchant_category_id_list>int64,omitempty"`
	// 标签
	AuctionTags []string `json:"auction_tags,omitempty" xml:"auction_tags>string,omitempty"`
	// 货品ID列表
	ScItemIdList []int64 `json:"sc_item_id_list,omitempty" xml:"sc_item_id_list>int64,omitempty"`
	// 货品名称
	ScItemName string `json:"sc_item_name,omitempty" xml:"sc_item_name,omitempty"`
	// 货品不包含的特征
	NonFeatureCondition string `json:"non_feature_condition,omitempty" xml:"non_feature_condition,omitempty"`
	// 品牌名称
	BrandName string `json:"brand_name,omitempty" xml:"brand_name,omitempty"`
	// 货品编码
	ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
	// 货品包含的特征
	FeatureCondition string `json:"feature_condition,omitempty" xml:"feature_condition,omitempty"`
	// 条形码
	WhcBarcode string `json:"whc_barcode,omitempty" xml:"whc_barcode,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 标记位,3表示后端商品
	ItemDim int64 `json:"item_dim,omitempty" xml:"item_dim,omitempty"`
	// 货品状态,0 正常
	ScItemStatus int64 `json:"sc_item_status,omitempty" xml:"sc_item_status,omitempty"`
	// 货品ID
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 页码
	CurrentPage int64 `json:"current_page,omitempty" xml:"current_page,omitempty"`
	// 市场类目ID
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
}

ScItemSearchDto 结构体

type SkuList

type SkuList struct {
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 市场价
	StandardPrice string `json:"standard_price,omitempty" xml:"standard_price,omitempty"`
	// 代销采购价,单位:元
	CostPrice string `json:"cost_price,omitempty" xml:"cost_price,omitempty"`
	// 经销采购价
	DealerCostPrice string `json:"dealer_cost_price,omitempty" xml:"dealer_cost_price,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// sku的销售属性组合字符串。格式:pid:vid;pid:vid,如:1627207:3232483;1630696:3284570,表示:机身颜色:军绿色;手机套餐:一电一充。
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// SkuID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 关联的后端商品id
	ScitemId int64 `json:"scitem_id,omitempty" xml:"scitem_id,omitempty"`
	// 预扣库存
	ReservedQuantity int64 `json:"reserved_quantity,omitempty" xml:"reserved_quantity,omitempty"`
	// 配额可用库存
	QuotaQuantity int64 `json:"quota_quantity,omitempty" xml:"quota_quantity,omitempty"`
}

SkuList 结构体

type Store

type Store struct {
	// 联系电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 商家的仓库编码,不允许重复
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 仓库的物理地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 仓库类型
	StoreType string `json:"store_type,omitempty" xml:"store_type,omitempty"`
	// 邮编
	PostCode string `json:"post_code,omitempty" xml:"post_code,omitempty"`
	// 联系人
	Contact string `json:"contact,omitempty" xml:"contact,omitempty"`
	// 商家的仓库名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 仓库对应的淘宝区域
	AddressAreaName string `json:"address_area_name,omitempty" xml:"address_area_name,omitempty"`
	// 仓库简称
	AliasName string `json:"alias_name,omitempty" xml:"alias_name,omitempty"`
}

Store 结构体

type SubOrderDetail

type SubOrderDetail struct {
	// 建议废弃 Feature对象列表目前已有的属性: attr_key为 www,attr_value为1 表示是www子订单; attr_key为 wwwStoreCode,attr_value是www子订单发货的仓库编码; attr_key为 isWt,attr_value为1 表示是网厅子订单; attr_key为wtInfo,attr_value为网厅相关合约信息;  attr_key为 storeCode,attr_value为仓库信息;  attr_key为 erpHold,attr_value为1表示强管控中, attr_value为2表示分单完成;
	Features []FeatureDo `json:"features,omitempty" xml:"features>feature_do,omitempty"`
	// 商品商家编码,供应商发布产品是定义的产品编码
	ItemOuterId string `json:"item_outer_id,omitempty" xml:"item_outer_id,omitempty"`
	// SKU商家编码,供应商发布产品SKU是定义的编码
	SkuOuterId string `json:"sku_outer_id,omitempty" xml:"sku_outer_id,omitempty"`
	// SKU属性值。如: 颜色:红色:别名;尺码:L:别名
	SkuProperties string `json:"sku_properties,omitempty" xml:"sku_properties,omitempty"`
	// 老的SKU属性值。如: 颜色:红色:别名;尺码:L:别名
	OldSkuProperties string `json:"old_sku_properties,omitempty" xml:"old_sku_properties,omitempty"`
	// 采购的产品标题。
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 产品的采购价格。(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 废弃: 产品快照地址
	SnapshotUrl string `json:"snapshot_url,omitempty" xml:"snapshot_url,omitempty"`
	// 子单创建时间。格式 yyyy-MM-dd HH:mm:ss 。
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 采购单交易状态。 可选值: WAIT_BUYER_PAY(等待付款) WAIT_SELLER_CONFIRM(付款信息待确认,待发货) WAIT_SELLER_SEND_GOODS(已付款,待发货) WAIT_BUYER_CONFIRM_GOODS(已付款,已发货)  TRADE_FINISHED(交易成功) TRADE_CLOSED(交易关闭) TRADE_REFUNDING(退款中) TRADE_REFUNDED(已退款) PAID_FORBID_CONSIGN(已付款, 禁止发货(大快消行业)) WAIT_BUYER_CONFIRM_GOODS_ACOUNTED(已付款(已分账),已发货。只对代销分账支持) PAY_ACOUNTED_GOODS_CONFIRM (已分账发货成功) PAY_WAIT_ACOUNT_GOODS_CONFIRM(已付款,确认收货)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 分销商应付金额。 计算公式:num(采购数量)*price(采购价) - 折扣。(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 分销商实付金额。 total_fee(分销商应付金额)+ 改价。(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	DistributorPayment string `json:"distributor_payment,omitempty" xml:"distributor_payment,omitempty"`
	// 买家订单上对应的子单零售金额。 计算公式:消费者订单的成交价 * 购买数量 + 调整金额 - 优惠折扣(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	BuyerPayment string `json:"buyer_payment,omitempty" xml:"buyer_payment,omitempty"`
	// 退款金额,单位元。(精确到2位小数;单位:元。如:12.23,表示:12元2角3分)
	RefundFee string `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 消费者的交易订单状态(代销采购单对应下游200订单状态)。 可选值: WAIT_SELLER_SEND_GOODS(已付款,待发货) WAIT_BUYER_CONFIRM_GOODS(已付款,已发货) TRADE_CLOSED(已退款成功) TRADE_REFUNDING(退款中) TRADE_FINISHED(交易成功) TRADE_CLOSED_BY_TAOBAO(交易关闭)
	Order200Status string `json:"order_200_status,omitempty" xml:"order_200_status,omitempty"`
	// 分销商店铺中宝贝一口价,消费者看见的宝贝价格。单位元 代销场景下存在,此价格不是实付款的价格。
	AuctionPrice string `json:"auction_price,omitempty" xml:"auction_price,omitempty"`
	// 发票应开金额。 子单的消费者实付分摊金额。根据买家实际付款去除邮费后,按各个子单(商品)金额比例进行分摊后的金额,仅供开发票时做票面金额参考。
	BillFee string `json:"bill_fee,omitempty" xml:"bill_fee,omitempty"`
	// 商品优惠类型:聚划算、秒杀或其他
	TcPreferentialType string `json:"tc_preferential_type,omitempty" xml:"tc_preferential_type,omitempty"`
	// 消费者订单优惠金额,始终为正数,单位是分,不带小数
	DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 采购子订单优惠活动类型。0=无优惠;1=限时折
	PromotionType string `json:"promotion_type,omitempty" xml:"promotion_type,omitempty"`
	// 消费者订单优惠金额,始终为正数,单位是元
	DiscountFeeYuan string `json:"discount_fee_yuan,omitempty" xml:"discount_fee_yuan,omitempty"`
	// sku属性值
	SkuPropertyVal string `json:"sku_property_val,omitempty" xml:"sku_property_val,omitempty"`
	// 分销商实付金额,单位:元
	DistributorPayPriceYuan string `json:"distributor_pay_price_yuan,omitempty" xml:"distributor_pay_price_yuan,omitempty"`
	// 退款金额,单位:元
	RefundFeeYuan string `json:"refund_fee_yuan,omitempty" xml:"refund_fee_yuan,omitempty"`
	// 确认收货金额,单位:元
	ConfirmPaidFeeYuan string `json:"confirm_paid_fee_yuan,omitempty" xml:"confirm_paid_fee_yuan,omitempty"`
	// 买家实付金额,单位:元
	BuyerPayPriceYuan string `json:"buyer_pay_price_yuan,omitempty" xml:"buyer_pay_price_yuan,omitempty"`
	// 老的sku属性值
	OldSkuPropertyVal string `json:"old_sku_property_val,omitempty" xml:"old_sku_property_val,omitempty"`
	// 支付宝交易号,担保交易使用。
	AlipayOrderNo string `json:"alipay_order_no,omitempty" xml:"alipay_order_no,omitempty"`
	// 图片地址
	SnapPath string `json:"snap_path,omitempty" xml:"snap_path,omitempty"`
	// 子采购单创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 发票应开金额。 子单的消费者实付分摊金额。根据买家实际付款去除邮费后,按各个子单(商品)金额比例进行分摊后的金额,仅供开发票时做票面金额参考。单位:元
	BillFeeYuan string `json:"bill_fee_yuan,omitempty" xml:"bill_fee_yuan,omitempty"`
	// 单个商品价格,单位:元
	PriceYuan string `json:"price_yuan,omitempty" xml:"price_yuan,omitempty"`
	// 分销商应付金额,单位:元
	DistributorPriceYuan string `json:"distributor_price_yuan,omitempty" xml:"distributor_price_yuan,omitempty"`
	// 子采购单退款状态,枚举:RF_STATUS_NO_REFUND-没有申请退款;RF_STATUS_REFUNDING-退款中;RF_STATUS_END_REFUND-退款结束,退款成功或者退款关闭都会走到这里
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 子采购单交易状态,枚举:AUDITING-意向单审核中;LOCKED-订单付款前锁定;WAIT_FOR_ALLOCATE_GOODS-待分货;ALLOCATING-分货中;WAIT_FOR_PAY-等待付款;PAID_WAIT_FOR_CONFIRM-已付款待确认付款操作;PAID-已确认付款,可直接发货;DELIVERED-已提交交货;CONSIGNED-已发货;RECEIVING-已提交确认收货,但收货未完成;ORDER_CLOSE-交易关闭;ORDER_SUCCESS-交易成功
	SubOrderStatusCode string `json:"sub_order_status_code,omitempty" xml:"sub_order_status_code,omitempty"`
	// 商品商家编码,供应商发布产品时定义的产品编码
	AuctionOutId string `json:"auction_out_id,omitempty" xml:"auction_out_id,omitempty"`
	// SKU商家编码,供应商发布产品SKU是定义的编码
	AuctionOutSkuId string `json:"auction_out_sku_id,omitempty" xml:"auction_out_sku_id,omitempty"`
	// 消费者订单子订单ID(经销模式下不存在该值)
	TcOrderId int64 `json:"tc_order_id,omitempty" xml:"tc_order_id,omitempty"`
	// 子采购单编号
	FenxiaoId int64 `json:"fenxiao_id,omitempty" xml:"fenxiao_id,omitempty"`
	// 分销平台上的产品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 分销产品的SKU ID。 当存在时才会有值,建议使用sku_outer_id,sku_properties这两个值
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 消费者购买宝贝ID,不存在时为0。 2015年4月15日之前创建的采购单该字段都是0。
	AuctionId int64 `json:"auction_id,omitempty" xml:"auction_id,omitempty"`
	// 消费者购买宝贝SKU ID,不存在时为0。 2015年3月15日之前创建的采购单该字段都是0。
	AuctionSkuId int64 `json:"auction_sku_id,omitempty" xml:"auction_sku_id,omitempty"`
	// 产品的采购数量。取值范围:大于零的整数
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 建议废弃:只有当担保交易支付时存在,为TP800的订单编号 子采购单id,淘宝交易主键,采购单未付款时为0.(只有支付宝 付款才有这个id,其余付款形式该字段为0)
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 后端商品id
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 优惠金额,始终为正数,单位是分,不带小数
	TcDiscountFee int64 `json:"tc_discount_fee,omitempty" xml:"tc_discount_fee,omitempty"`
	// 商品的卖出金额调整,金额增加时为正数,金额减少时为负数,单位是分,不带小数
	TcAdjustFee int64 `json:"tc_adjust_fee,omitempty" xml:"tc_adjust_fee,omitempty"`
	// 子订单留言信息
	TopMemo *TopMemoDto `json:"top_memo,omitempty" xml:"top_memo,omitempty"`
	// 买家实付金额,单位:分
	BuyerPayPrice int64 `json:"buyer_pay_price,omitempty" xml:"buyer_pay_price,omitempty"`
	// 购买数量
	BuyNum int64 `json:"buy_num,omitempty" xml:"buy_num,omitempty"`
	// 前台子订单id
	SubTcOrderId int64 `json:"sub_tc_order_id,omitempty" xml:"sub_tc_order_id,omitempty"`
	// 确认收货金额,单位:分
	ConfirmPaidFee int64 `json:"confirm_paid_fee,omitempty" xml:"confirm_paid_fee,omitempty"`
	// 消费者购买宝贝ID,不存在时为0。 2015年4月15日之前创建的采购单该字段都是0。
	RealAuctionId int64 `json:"real_auction_id,omitempty" xml:"real_auction_id,omitempty"`
	// 消费者购买宝贝SKU ID,不存在时为0。 2015年3月15日之前创建的采购单该字段都是0。
	RealAuctionSkuId int64 `json:"real_auction_sku_id,omitempty" xml:"real_auction_sku_id,omitempty"`
	// 子采购单id
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 分销商应付金额,单位:分
	DistributorPrice int64 `json:"distributor_price,omitempty" xml:"distributor_price,omitempty"`
	// sku商家编码
	AuctionSellerSkuId int64 `json:"auction_seller_sku_id,omitempty" xml:"auction_seller_sku_id,omitempty"`
	// 分销商实付金额,单位:分
	DistributorPayPrice int64 `json:"distributor_pay_price,omitempty" xml:"distributor_pay_price,omitempty"`
	// 子采购单退款状态-数字形式,枚举:9-没有申请退款;20-退款中;21-退款结束,退款成功或者退款关闭都会走到这里
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 子采购单交易状态-数字表示,枚举:10-意向单审核中;20-订单付款前锁定;30-待分货;40-分货中;50-订单等待付款;55-已付款待确认付款操作;60-已付款;70-已提交交货;80-已发货;90-已提交确认收货,但收货未完成;100-交易关闭;110-交易成功
	SubOrderStatus int64 `json:"sub_order_status,omitempty" xml:"sub_order_status,omitempty"`
	// 二级供应商id
	SecondarySupplierId int64 `json:"secondary_supplier_id,omitempty" xml:"secondary_supplier_id,omitempty"`
	// tp单创单时间的货品采购单价
	TpCreateTimePrice float64 `json:"tp_create_time_price,omitempty" xml:"tp_create_time_price,omitempty"`
}

SubOrderDetail 结构体

type SubOrderList added in v1.2.5

type SubOrderList struct {
	// 建议废弃 Feature对象列表目前已有的属性: attr_key为 www,attr_value为1 表示是www子订单; attr_key为 wwwStoreCode,attr_value是www子订单发货的仓库编码; attr_key为 isWt,attr_value为1 表示是网厅子订单; attr_key为wtInfo,attr_value为网厅相关合约信息; attr_key为shipper,attr_value为cn表示菜鸟发货; attr_key为 storeCode,attr_value为仓库信息; attr_key为 erpHold,attr_value为1表示强管控中, attr_value为2表示分单完成;
	Features []FeatureDo `json:"features,omitempty" xml:"features>feature_do,omitempty"`
	// 买家实付金额,单位:元
	BuyerPayPrice string `json:"buyer_pay_price,omitempty" xml:"buyer_pay_price,omitempty"`
	// 优惠活动折扣金额,单位:元
	DiscountFeeYuan string `json:"discount_fee_yuan,omitempty" xml:"discount_fee_yuan,omitempty"`
	// 商品sku属性值
	SkuPropertyVal string `json:"sku_property_val,omitempty" xml:"sku_property_val,omitempty"`
	// 分销商实付金额,单位:元
	DistributorPayPriceYuan string `json:"distributor_pay_price_yuan,omitempty" xml:"distributor_pay_price_yuan,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 退款金额,单位:元。(精确到2位小数;单位:元。如:12.23,表示:12元2角3分)
	RefundFeeYuan string `json:"refund_fee_yuan,omitempty" xml:"refund_fee_yuan,omitempty"`
	// 已执行确认收货的金额,单位:元
	ConfirmPaidFeeYuan string `json:"confirm_paid_fee_yuan,omitempty" xml:"confirm_paid_fee_yuan,omitempty"`
	// 买家实付金额,单位:元
	BuyerPayPriceYuan string `json:"buyer_pay_price_yuan,omitempty" xml:"buyer_pay_price_yuan,omitempty"`
	// 优惠活动类型 0-无优惠 1-限时折
	PromotionType string `json:"promotion_type,omitempty" xml:"promotion_type,omitempty"`
	// 创单时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 商品优惠类型:聚划算、秒杀或其他
	TcPreferentialType string `json:"tc_preferential_type,omitempty" xml:"tc_preferential_type,omitempty"`
	// 发票应开金额,单位:元。子单的消费者实付分摊金额。根据买家实际付款去除邮费后,按各个子单(商品)金额比例进行分摊后的金额,仅供开发票时做票面金额参考。
	BillFeeYuan string `json:"bill_fee_yuan,omitempty" xml:"bill_fee_yuan,omitempty"`
	// 分销商店铺中宝贝一口价,消费者看见的宝贝价格。单位:元。 代销场景下存在,此价格不是实付款的价格。
	AuctionPrice string `json:"auction_price,omitempty" xml:"auction_price,omitempty"`
	// 产品的采购价格。(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	PriceYuan string `json:"price_yuan,omitempty" xml:"price_yuan,omitempty"`
	// 消费者的交易订单状态(代销采购单对应下游200订单状态)。 可选值: WAIT_SELLER_SEND_GOODS(已付款,待发货) WAIT_BUYER_CONFIRM_GOODS(已付款,已发货) TRADE_CLOSED(已退款成功) TRADE_REFUNDING(退款中) TRADE_FINISHED(交易成功) TRADE_CLOSED_BY_TAOBAO(交易关闭)
	Order200Status string `json:"order_200_status,omitempty" xml:"order_200_status,omitempty"`
	// 分销商应付金额,单位:元
	DistributorPriceYuan string `json:"distributor_price_yuan,omitempty" xml:"distributor_price_yuan,omitempty"`
	// 子采购单交易状态,枚举:AUDITING-意向单审核中;LOCKED-订单付款前锁定;WAIT_FOR_ALLOCATE_GOODS-待分货;ALLOCATING-分货中;WAIT_FOR_PAY-等待付款;PAID_WAIT_FOR_CONFIRM-已付款待确认付款操作;PAID-已确认付款,可直接发货;DELIVERED-已提交交货;CONSIGNED-已发货;RECEIVING-已提交确认收货,但收货未完成;ORDER_CLOSE-交易关闭;ORDER_SUCCESS-交易成功
	SubOrderStatusCode string `json:"sub_order_status_code,omitempty" xml:"sub_order_status_code,omitempty"`
	// 子采购单退款状态,枚举:RF_STATUS_NO_REFUND-没有申请退款;RF_STATUS_REFUNDING-退款中;RF_STATUS_END_REFUND-退款结束,退款成功或者退款关闭都会走到这里
	RefundStatusCode string `json:"refund_status_code,omitempty" xml:"refund_status_code,omitempty"`
	// 子采购单商品商家编码,供应商发布产品时定义的产品编码
	AuctionOutId string `json:"auction_out_id,omitempty" xml:"auction_out_id,omitempty"`
	// SKU商家编码,供应商发布产品SKU是定义的编码
	AuctionOutSkuId string `json:"auction_out_sku_id,omitempty" xml:"auction_out_sku_id,omitempty"`
	// 退款金额,单位:分
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 购买数量
	BuyNum int64 `json:"buy_num,omitempty" xml:"buy_num,omitempty"`
	// 优惠活动折扣金额,单位:分
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 子订单的前台订单号
	SubTcOrderId int64 `json:"sub_tc_order_id,omitempty" xml:"sub_tc_order_id,omitempty"`
	// 确认收货金额,单位:分
	ConfirmPaidFee int64 `json:"confirm_paid_fee,omitempty" xml:"confirm_paid_fee,omitempty"`
	// 发票应开金额。 子单的消费者实付分摊金额。根据买家实际付款去除邮费后,按各个子单(商品)金额比例进行分摊后的金额,仅供开发票时做票面金额参考。
	BillFee int64 `json:"bill_fee,omitempty" xml:"bill_fee,omitempty"`
	// 消费者购买宝贝ID,不存在时为0。 2015年4月15日之前创建的采购单该字段都是0。
	RealAuctionId int64 `json:"real_auction_id,omitempty" xml:"real_auction_id,omitempty"`
	// 消费者购买宝贝SKU ID,不存在时为0。 2015年3月15日之前创建的采购单该字段都是0。
	RealAuctionSkuId int64 `json:"real_auction_sku_id,omitempty" xml:"real_auction_sku_id,omitempty"`
	// 采购单子单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 单个商品价格,单位:分
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 优惠金额,始终为正数,单位是分,不带小数
	TcDiscountFee int64 `json:"tc_discount_fee,omitempty" xml:"tc_discount_fee,omitempty"`
	// 分销商应付金额,单位:分
	DistributorPrice int64 `json:"distributor_price,omitempty" xml:"distributor_price,omitempty"`
	// 后端商品id
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 分销采购单号(分销流水号)
	FenxiaoId int64 `json:"fenxiao_id,omitempty" xml:"fenxiao_id,omitempty"`
	// 商品的卖出金额调整,金额增加时为正数,金额减少时为负数,单位是分,不带小数
	TcAdjustFee int64 `json:"tc_adjust_fee,omitempty" xml:"tc_adjust_fee,omitempty"`
	// 消费者购买宝贝ID,不存在时为0。 2015年4月15日之前创建的采购单该字段都是0。
	AuctionId int64 `json:"auction_id,omitempty" xml:"auction_id,omitempty"`
	// 消费者购买宝贝SKU ID,不存在时为0。 2015年3月15日之前创建的采购单该字段都是0
	AuctionSkuId int64 `json:"auction_sku_id,omitempty" xml:"auction_sku_id,omitempty"`
	// 分销商实付金额,单位:分
	DistributorPayPrice int64 `json:"distributor_pay_price,omitempty" xml:"distributor_pay_price,omitempty"`
	// 子采购单交易状态-数字表示,枚举:10-意向单审核中;20-订单付款前锁定;30-待分货;40-分货中;50-订单等待付款;55-已付款待确认付款操作;60-已付款;70-已提交交货;80-已发货;90-已提交确认收货,但收货未完成;100-交易关闭;110-交易成功
	SubOrderStatus int64 `json:"sub_order_status,omitempty" xml:"sub_order_status,omitempty"`
	// 子采购单退款状态-数字形式,枚举:9-没有申请退款;20-退款中;21-退款结束,退款成功或者退款关闭都会走到这里
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 二级供应商id
	SecondarySupplierId int64 `json:"secondary_supplier_id,omitempty" xml:"secondary_supplier_id,omitempty"`
	// tp单创单时间点的货品采购价
	TpCreateTimePrice float64 `json:"tp_create_time_price,omitempty" xml:"tp_create_time_price,omitempty"`
}

SubOrderList 结构体

type TaobaofenxiaocooperationgetAPIRequest added in v1.3.1

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

TaobaofenxiaocooperationgetAPIRequest 供应商或分销商获取合作关系信息 API请求 taobao.fenxiao.cooperation.get

获取供应商的合作关系信息

func NewTaobaofenxiaocooperationgetRequest added in v1.3.1

func NewTaobaofenxiaocooperationgetRequest() *TaobaofenxiaocooperationgetAPIRequest

NewTaobaofenxiaocooperationgetRequest 初始化TaobaofenxiaocooperationgetAPIRequest对象

func (TaobaofenxiaocooperationgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaocooperationgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaocooperationgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaocooperationgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaocooperationgetAPIRequest) GetChannelCode added in v1.3.1

func (r TaobaofenxiaocooperationgetAPIRequest) GetChannelCode() string

GetChannelCode ChannelCode Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaocooperationgetAPIRequest) GetRoleType added in v1.3.1

GetRoleType RoleType Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetStartDate added in v1.3.1

GetStartDate StartDate Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaofenxiaocooperationgetAPIRequest) GetTradeType added in v1.3.1

GetTradeType TradeType Getter

func (*TaobaofenxiaocooperationgetAPIRequest) SetChannelCode added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetChannelCode(_channelCode string) error

SetChannelCode is ChannelCode Setter 渠道code

func (*TaobaofenxiaocooperationgetAPIRequest) SetEndDate added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 合作结束时间yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaocooperationgetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码(大于0的整数,默认1)

func (*TaobaofenxiaocooperationgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页记录数(默认20,最大50)

func (*TaobaofenxiaocooperationgetAPIRequest) SetRoleType added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetRoleType(_roleType int64) error

SetRoleType is RoleType Setter 1是供应商,2 是分销商

func (*TaobaofenxiaocooperationgetAPIRequest) SetStartDate added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetStartDate(_startDate string) error

SetStartDate is StartDate Setter 合作开始时间yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaocooperationgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 合作状态: NORMAL(合作中)、 ENDING(终止中) 、END (终止)

func (*TaobaofenxiaocooperationgetAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaocooperationgetAPIRequest) SetTradeType(_tradeType string) error

SetTradeType is TradeType Setter 分销方式:AGENT(代销) 、DEALER(经销)

type TaobaofenxiaocooperationgetAPIResponse added in v1.3.1

type TaobaofenxiaocooperationgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaocooperationgetAPIResponseModel
}

TaobaofenxiaocooperationgetAPIResponse 供应商或分销商获取合作关系信息 API返回值 taobao.fenxiao.cooperation.get

获取供应商的合作关系信息

type TaobaofenxiaocooperationgetAPIResponseModel added in v1.3.1

type TaobaofenxiaocooperationgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_cooperation_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 合作分销关系
	Cooperations []Cooperation `json:"cooperations,omitempty" xml:"cooperations>cooperation,omitempty"`
	// 结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaocooperationgetAPIResponseModel is 供应商或分销商获取合作关系信息 成功返回结果

type TaobaofenxiaodealerrequisitionorderagreeAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionorderagreeAPIRequest 供应商/分销商通过采购申请/经销采购单申请 API请求 taobao.fenxiao.dealer.requisitionorder.agree

供应商或分销商通过采购申请/经销采购单审核

func NewTaobaofenxiaodealerrequisitionorderagreeRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionorderagreeRequest() *TaobaofenxiaodealerrequisitionorderagreeAPIRequest

NewTaobaofenxiaodealerrequisitionorderagreeRequest 初始化TaobaofenxiaodealerrequisitionorderagreeAPIRequest对象

func (TaobaofenxiaodealerrequisitionorderagreeAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionorderagreeAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionorderagreeAPIRequest) GetDealerOrderId added in v1.3.1

GetDealerOrderId DealerOrderId Getter

func (TaobaofenxiaodealerrequisitionorderagreeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaodealerrequisitionorderagreeAPIRequest) SetDealerOrderId added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionorderagreeAPIRequest) SetDealerOrderId(_dealerOrderId int64) error

SetDealerOrderId is DealerOrderId Setter 采购申请/经销采购单编号

type TaobaofenxiaodealerrequisitionorderagreeAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionorderagreeAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionorderagreeAPIResponseModel
}

TaobaofenxiaodealerrequisitionorderagreeAPIResponse 供应商/分销商通过采购申请/经销采购单申请 API返回值 taobao.fenxiao.dealer.requisitionorder.agree

供应商或分销商通过采购申请/经销采购单审核

type TaobaofenxiaodealerrequisitionorderagreeAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionorderagreeAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_agree_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功。true:成功;false:失败。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaodealerrequisitionorderagreeAPIResponseModel is 供应商/分销商通过采购申请/经销采购单申请 成功返回结果

type TaobaofenxiaodealerrequisitionordercloseAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionordercloseAPIRequest 供应商/分销商关闭采购申请/经销采购单 API请求 taobao.fenxiao.dealer.requisitionorder.close

供应商或分销商关闭采购申请/经销采购单

func NewTaobaofenxiaodealerrequisitionordercloseRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionordercloseRequest() *TaobaofenxiaodealerrequisitionordercloseAPIRequest

NewTaobaofenxiaodealerrequisitionordercloseRequest 初始化TaobaofenxiaodealerrequisitionordercloseAPIRequest对象

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetDealerOrderId added in v1.3.1

GetDealerOrderId DealerOrderId Getter

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetReason added in v1.3.1

GetReason Reason Getter

func (TaobaofenxiaodealerrequisitionordercloseAPIRequest) GetReasonDetail added in v1.3.1

GetReasonDetail ReasonDetail Getter

func (*TaobaofenxiaodealerrequisitionordercloseAPIRequest) SetDealerOrderId added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordercloseAPIRequest) SetDealerOrderId(_dealerOrderId int64) error

SetDealerOrderId is DealerOrderId Setter 经销采购单编号

func (*TaobaofenxiaodealerrequisitionordercloseAPIRequest) SetReason added in v1.3.1

SetReason is Reason Setter 关闭原因:<br/>1:长时间无法联系到分销商,取消交易。<br/>2:分销商错误提交申请,取消交易。<br/>3:缺货,近段时间都无法发货。<br/>4:分销商恶意提交申请单。<br/>5:其他原因。

func (*TaobaofenxiaodealerrequisitionordercloseAPIRequest) SetReasonDetail added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordercloseAPIRequest) SetReasonDetail(_reasonDetail string) error

SetReasonDetail is ReasonDetail Setter 关闭详细原因,字数5-200字

type TaobaofenxiaodealerrequisitionordercloseAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionordercloseAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionordercloseAPIResponseModel
}

TaobaofenxiaodealerrequisitionordercloseAPIResponse 供应商/分销商关闭采购申请/经销采购单 API返回值 taobao.fenxiao.dealer.requisitionorder.close

供应商或分销商关闭采购申请/经销采购单

type TaobaofenxiaodealerrequisitionordercloseAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionordercloseAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_close_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功。true:成功;false:失败。
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaodealerrequisitionordercloseAPIResponseModel is 供应商/分销商关闭采购申请/经销采购单 成功返回结果

type TaobaofenxiaodealerrequisitionordercreateAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionordercreateAPIRequest 创建经销采购申请 API请求 taobao.fenxiao.dealer.requisitionorder.create

创建经销采购申请

func NewTaobaofenxiaodealerrequisitionordercreateRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionordercreateRequest() *TaobaofenxiaodealerrequisitionordercreateAPIRequest

NewTaobaofenxiaodealerrequisitionordercreateRequest 初始化TaobaofenxiaodealerrequisitionordercreateAPIRequest对象

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetAddress added in v1.3.1

GetAddress Address Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetBuyerName added in v1.3.1

GetBuyerName BuyerName Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetCity added in v1.3.1

GetCity City Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetDistrict added in v1.3.1

GetDistrict District Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetIdCardNumber added in v1.3.1

GetIdCardNumber IdCardNumber Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetLogisticsType added in v1.3.1

GetLogisticsType LogisticsType Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetMobile added in v1.3.1

GetMobile Mobile Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetOrderDetail added in v1.3.1

GetOrderDetail OrderDetail Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetPhone added in v1.3.1

GetPhone Phone Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetPostCode added in v1.3.1

GetPostCode PostCode Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetProvince added in v1.3.1

GetProvince Province Getter

func (TaobaofenxiaodealerrequisitionordercreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetAddress added in v1.3.1

SetAddress is Address Setter 收货人所在街道地址

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetBuyerName added in v1.3.1

SetBuyerName is BuyerName Setter 买家姓名(自提方式填写提货人姓名)

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetCity added in v1.3.1

SetCity is City Setter 收货人所在市

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetDistrict added in v1.3.1

SetDistrict is District Setter 收货人所在区

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetIdCardNumber added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetIdCardNumber(_idCardNumber string) error

SetIdCardNumber is IdCardNumber Setter 身份证号(自提方式必填,填写提货人身份证号码,提货时用于确认提货人身份)

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetLogisticsType added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetLogisticsType(_logisticsType string) error

SetLogisticsType is LogisticsType Setter 配送方式。SELF_PICKUP:自提;LOGISTICS:仓库发货

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetMobile added in v1.3.1

SetMobile is Mobile Setter 买家的手机号码(1、此字段与phone字段至少填写一个。2、自提方式下此字段必填,保存提货人联系电话)

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetOrderDetail added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetOrderDetail(_orderDetail []string) error

SetOrderDetail is OrderDetail Setter 采购清单,存放多个采购明细,每个采购明细内部以‘:’隔开,多个采购明细之间以‘,’隔开. 例(分销产品id:skuid:购买数量:申请单价,分销产品id:skuid:购买数量:申请单价),申请单价的单位为分。不存在sku请留空skuid,如(分销产品id::购买数量:申请单价)

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetPhone added in v1.3.1

SetPhone is Phone Setter 买家联系电话(此字段和mobile字段至少填写一个)

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetPostCode added in v1.3.1

SetPostCode is PostCode Setter 收货人所在地区邮政编码

func (*TaobaofenxiaodealerrequisitionordercreateAPIRequest) SetProvince added in v1.3.1

SetProvince is Province Setter 收货人所在省份

type TaobaofenxiaodealerrequisitionordercreateAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionordercreateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionordercreateAPIResponseModel
}

TaobaofenxiaodealerrequisitionordercreateAPIResponse 创建经销采购申请 API返回值 taobao.fenxiao.dealer.requisitionorder.create

创建经销采购申请

type TaobaofenxiaodealerrequisitionordercreateAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionordercreateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 经销采购申请编号
	DealerOrderId int64 `json:"dealer_order_id,omitempty" xml:"dealer_order_id,omitempty"`
}

TaobaofenxiaodealerrequisitionordercreateAPIResponseModel is 创建经销采购申请 成功返回结果

type TaobaofenxiaodealerrequisitionordergetAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionordergetAPIRequest 批量查询采购申请/经销采购单 API请求 taobao.fenxiao.dealer.requisitionorder.get

批量查询采购申请/经销采购单,目前支持供应商和分销商查询

func NewTaobaofenxiaodealerrequisitionordergetRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionordergetRequest() *TaobaofenxiaodealerrequisitionordergetAPIRequest

NewTaobaofenxiaodealerrequisitionordergetRequest 初始化TaobaofenxiaodealerrequisitionordergetAPIRequest对象

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetIdentity added in v1.3.1

GetIdentity Identity Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetOrderStatus added in v1.3.1

GetOrderStatus OrderStatus Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodealerrequisitionordergetAPIRequest) GetStartDate added in v1.3.1

GetStartDate StartDate Getter

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetEndDate added in v1.3.1

SetEndDate is EndDate Setter 采购申请/经销采购单最迟修改时间。与start_date字段的最大时间间隔不能超过30天

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetFields added in v1.3.1

SetFields is Fields Setter 多个字段用","分隔。 fields 如果为空:返回所有采购申请/经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetIdentity added in v1.3.1

SetIdentity is Identity Setter 查询者自己在所要查询的采购申请/经销采购单中的身份。<br/>1:供应商。<br/>2:分销商。<br/>注:填写其他值当做错误处理。

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetOrderStatus added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionordergetAPIRequest) SetOrderStatus(_orderStatus int64) error

SetOrderStatus is OrderStatus Setter 采购申请/经销采购单状态。<br/>0:全部状态。<br/>1:分销商提交申请,待供应商审核。<br/>2:供应商驳回申请,待分销商确认。<br/>3:供应商修改后,待分销商确认。<br/>4:分销商拒绝修改,待供应商再审核。<br/>5:审核通过下单成功,待分销商付款。<br/>7:付款成功,待供应商发货。<br/>8:供应商发货,待分销商收货。<br/>9:分销商收货,交易成功。<br/>10:采购申请/经销采购单关闭。<br/><br/>注:无值按默认值0计,超出状态范围返回错误信息。

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码(大于0的整数。无值或小于1的值按默认值1计)

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetPageSize added in v1.3.1

SetPageSize is PageSize Setter 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计)

func (*TaobaofenxiaodealerrequisitionordergetAPIRequest) SetStartDate added in v1.3.1

SetStartDate is StartDate Setter 采购申请/经销采购单最早修改时间

type TaobaofenxiaodealerrequisitionordergetAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionordergetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionordergetAPIResponseModel
}

TaobaofenxiaodealerrequisitionordergetAPIResponse 批量查询采购申请/经销采购单 API返回值 taobao.fenxiao.dealer.requisitionorder.get

批量查询采购申请/经销采购单,目前支持供应商和分销商查询

type TaobaofenxiaodealerrequisitionordergetAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionordergetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 采购申请/经销采购单结果列表
	DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"`
	// 按查询条件查到的记录总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaodealerrequisitionordergetAPIResponseModel is 批量查询采购申请/经销采购单 成功返回结果

type TaobaofenxiaodealerrequisitionorderqueryAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionorderqueryAPIRequest 按编号查询采购申请/经销采购单 API请求 taobao.fenxiao.dealer.requisitionorder.query

按编号查询采购申请/经销采购单,目前支持供应商和分销商查询。

func NewTaobaofenxiaodealerrequisitionorderqueryRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionorderqueryRequest() *TaobaofenxiaodealerrequisitionorderqueryAPIRequest

NewTaobaofenxiaodealerrequisitionorderqueryRequest 初始化TaobaofenxiaodealerrequisitionorderqueryAPIRequest对象

func (TaobaofenxiaodealerrequisitionorderqueryAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionorderqueryAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionorderqueryAPIRequest) GetDealerOrderIds added in v1.3.1

GetDealerOrderIds DealerOrderIds Getter

func (TaobaofenxiaodealerrequisitionorderqueryAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaodealerrequisitionorderqueryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaodealerrequisitionorderqueryAPIRequest) SetDealerOrderIds added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionorderqueryAPIRequest) SetDealerOrderIds(_dealerOrderIds []int64) error

SetDealerOrderIds is DealerOrderIds Setter 经销采购单编号。<br/>多个编号用英文符号的逗号隔开。最多支持50个经销采购单编号的查询。

func (*TaobaofenxiaodealerrequisitionorderqueryAPIRequest) SetFields added in v1.3.1

SetFields is Fields Setter 多个字段用","分隔。 fields 如果为空:返回所有经销采购单对象(dealer_orders)字段。 如果不为空:返回指定采购单对象(dealer_orders)字段。 例1: dealer_order_details.product_id 表示只返回product_id 例2: dealer_order_details 表示只返回明细列表

type TaobaofenxiaodealerrequisitionorderqueryAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionorderqueryAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionorderqueryAPIResponseModel
}

TaobaofenxiaodealerrequisitionorderqueryAPIResponse 按编号查询采购申请/经销采购单 API返回值 taobao.fenxiao.dealer.requisitionorder.query

按编号查询采购申请/经销采购单,目前支持供应商和分销商查询。

type TaobaofenxiaodealerrequisitionorderqueryAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionorderqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 经销采购单结果列表
	DealerOrders []DealerOrder `json:"dealer_orders,omitempty" xml:"dealer_orders>dealer_order,omitempty"`
}

TaobaofenxiaodealerrequisitionorderqueryAPIResponseModel is 按编号查询采购申请/经销采购单 成功返回结果

type TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest added in v1.3.1

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

TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest 修改经销采购单备注 API请求 taobao.fenxiao.dealer.requisitionorder.remark.update

供应商修改经销采购单备注

func NewTaobaofenxiaodealerrequisitionorderremarkupdateRequest added in v1.3.1

func NewTaobaofenxiaodealerrequisitionorderremarkupdateRequest() *TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest

NewTaobaofenxiaodealerrequisitionorderremarkupdateRequest 初始化TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest对象

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetDealerOrderId added in v1.3.1

GetDealerOrderId DealerOrderId Getter

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetSupplierMemo added in v1.3.1

GetSupplierMemo SupplierMemo Getter

func (TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) GetSupplierMemoFlag added in v1.3.1

GetSupplierMemoFlag SupplierMemoFlag Getter

func (*TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) SetDealerOrderId added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) SetDealerOrderId(_dealerOrderId int64) error

SetDealerOrderId is DealerOrderId Setter 经销采购单ID

func (*TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) SetSupplierMemo added in v1.3.1

SetSupplierMemo is SupplierMemo Setter 备注留言,可为空

func (*TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) SetSupplierMemoFlag added in v1.3.1

func (r *TaobaofenxiaodealerrequisitionorderremarkupdateAPIRequest) SetSupplierMemoFlag(_supplierMemoFlag int64) error

SetSupplierMemoFlag is SupplierMemoFlag Setter 旗子的标记,必选。<br/>1-5之间的数字。<br/>非1-5之间,都采用1作为默认。<br/>1:红色<br/>2:黄色<br/>3:绿色<br/>4:蓝色<br/>5:粉红色

type TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponse added in v1.3.1

type TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponseModel
}

TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponse 修改经销采购单备注 API返回值 taobao.fenxiao.dealer.requisitionorder.remark.update

供应商修改经销采购单备注

type TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_dealer_requisitionorder_remark_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaodealerrequisitionorderremarkupdateAPIResponseModel is 修改经销采购单备注 成功返回结果

type TaobaofenxiaodiscountsgetAPIRequest added in v1.3.1

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

TaobaofenxiaodiscountsgetAPIRequest 获取折扣信息 API请求 taobao.fenxiao.discounts.get

查询折扣信息

func NewTaobaofenxiaodiscountsgetRequest added in v1.3.1

func NewTaobaofenxiaodiscountsgetRequest() *TaobaofenxiaodiscountsgetAPIRequest

NewTaobaofenxiaodiscountsgetRequest 初始化TaobaofenxiaodiscountsgetAPIRequest对象

func (TaobaofenxiaodiscountsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaodiscountsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodiscountsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaodiscountsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodiscountsgetAPIRequest) GetDiscountId added in v1.3.1

func (r TaobaofenxiaodiscountsgetAPIRequest) GetDiscountId() int64

GetDiscountId DiscountId Getter

func (TaobaofenxiaodiscountsgetAPIRequest) GetExtFields added in v1.3.1

GetExtFields ExtFields Getter

func (TaobaofenxiaodiscountsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaodiscountsgetAPIRequest) SetDiscountId added in v1.3.1

func (r *TaobaofenxiaodiscountsgetAPIRequest) SetDiscountId(_discountId int64) error

SetDiscountId is DiscountId Setter 折扣ID

func (*TaobaofenxiaodiscountsgetAPIRequest) SetExtFields added in v1.3.1

func (r *TaobaofenxiaodiscountsgetAPIRequest) SetExtFields(_extFields string) error

SetExtFields is ExtFields Setter 指定查询额外的信息,可选值:DETAIL(查询折扣详情),多个可选值用逗号分割。(只允许指定折扣ID情况下使用)

type TaobaofenxiaodiscountsgetAPIResponse added in v1.3.1

type TaobaofenxiaodiscountsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodiscountsgetAPIResponseModel
}

TaobaofenxiaodiscountsgetAPIResponse 获取折扣信息 API返回值 taobao.fenxiao.discounts.get

查询折扣信息

type TaobaofenxiaodiscountsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaodiscountsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_discounts_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 折扣数据结构
	Discounts []Discount `json:"discounts,omitempty" xml:"discounts>discount,omitempty"`
	// 记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaodiscountsgetAPIResponseModel is 获取折扣信息 成功返回结果

type TaobaofenxiaodistributoritemsgetAPIRequest added in v1.3.1

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

TaobaofenxiaodistributoritemsgetAPIRequest 查询商品下载记录 API请求 taobao.fenxiao.distributor.items.get

供应商查询分销商商品下载记录。

func NewTaobaofenxiaodistributoritemsgetRequest added in v1.3.1

func NewTaobaofenxiaodistributoritemsgetRequest() *TaobaofenxiaodistributoritemsgetAPIRequest

NewTaobaofenxiaodistributoritemsgetRequest 初始化TaobaofenxiaodistributoritemsgetAPIRequest对象

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaodistributoritemsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetDistributorId added in v1.3.1

GetDistributorId DistributorId Getter

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetEndModified added in v1.3.1

GetEndModified EndModified Getter

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodistributoritemsgetAPIRequest) GetStartModified added in v1.3.1

GetStartModified StartModified Getter

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetDistributorId added in v1.3.1

func (r *TaobaofenxiaodistributoritemsgetAPIRequest) SetDistributorId(_distributorId int64) error

SetDistributorId is DistributorId Setter 分销商ID 。

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetEndModified added in v1.3.1

func (r *TaobaofenxiaodistributoritemsgetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 设置结束时间,空为不设置。

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码(大于0的整数,默认1)

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaodistributoritemsgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页记录数(默认20,最大50)

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaodistributoritemsgetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaodistributoritemsgetAPIRequest) SetStartModified added in v1.3.1

func (r *TaobaofenxiaodistributoritemsgetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 设置开始时间。空为不设置。

type TaobaofenxiaodistributoritemsgetAPIResponse added in v1.3.1

type TaobaofenxiaodistributoritemsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodistributoritemsgetAPIResponseModel
}

TaobaofenxiaodistributoritemsgetAPIResponse 查询商品下载记录 API返回值 taobao.fenxiao.distributor.items.get

供应商查询分销商商品下载记录。

type TaobaofenxiaodistributoritemsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaodistributoritemsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_distributor_items_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 下载记录对象
	Records []FenxiaoItemRecord `json:"records,omitempty" xml:"records>fenxiao_item_record,omitempty"`
	// 查询结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaodistributoritemsgetAPIResponseModel is 查询商品下载记录 成功返回结果

type TaobaofenxiaodistributorproductquantitygetAPIRequest added in v1.3.1

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

TaobaofenxiaodistributorproductquantitygetAPIRequest 分销商查询产品库存 API请求 taobao.fenxiao.distributor.product.quantity.get

分销商查询产品库存

func NewTaobaofenxiaodistributorproductquantitygetRequest added in v1.3.1

func NewTaobaofenxiaodistributorproductquantitygetRequest() *TaobaofenxiaodistributorproductquantitygetAPIRequest

NewTaobaofenxiaodistributorproductquantitygetRequest 初始化TaobaofenxiaodistributorproductquantitygetAPIRequest对象

func (TaobaofenxiaodistributorproductquantitygetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodistributorproductquantitygetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodistributorproductquantitygetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaodistributorproductquantitygetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodistributorproductquantitygetAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaofenxiaodistributorproductquantitygetAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaodistributorproductquantitygetAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter SKU ID

type TaobaofenxiaodistributorproductquantitygetAPIResponse added in v1.3.1

type TaobaofenxiaodistributorproductquantitygetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodistributorproductquantitygetAPIResponseModel
}

TaobaofenxiaodistributorproductquantitygetAPIResponse 分销商查询产品库存 API返回值 taobao.fenxiao.distributor.product.quantity.get

分销商查询产品库存

type TaobaofenxiaodistributorproductquantitygetAPIResponseModel added in v1.3.1

type TaobaofenxiaodistributorproductquantitygetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_distributor_product_quantity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaodistributorproductquantitygetAPIResponseModel is 分销商查询产品库存 成功返回结果

type TaobaofenxiaodistributorproductsgetAPIRequest added in v1.3.1

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

TaobaofenxiaodistributorproductsgetAPIRequest 分销商查询产品信息 API请求 taobao.fenxiao.distributor.products.get

分销商查询供应商产品信息

func NewTaobaofenxiaodistributorproductsgetRequest added in v1.3.1

func NewTaobaofenxiaodistributorproductsgetRequest() *TaobaofenxiaodistributorproductsgetAPIRequest

NewTaobaofenxiaodistributorproductsgetRequest 初始化TaobaofenxiaodistributorproductsgetAPIRequest对象

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetDownloadStatus added in v1.3.1

GetDownloadStatus DownloadStatus Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetItemIds added in v1.3.1

GetItemIds ItemIds Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetOrderBy added in v1.3.1

GetOrderBy OrderBy Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetPids added in v1.3.1

GetPids Pids Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetProductcatId added in v1.3.1

GetProductcatId ProductcatId Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetStartTime added in v1.3.1

GetStartTime StartTime Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetSupplierNick added in v1.3.1

GetSupplierNick SupplierNick Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetTimeType added in v1.3.1

GetTimeType TimeType Getter

func (TaobaofenxiaodistributorproductsgetAPIRequest) GetTradeType added in v1.3.1

GetTradeType TradeType Getter

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetDownloadStatus added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetDownloadStatus(_downloadStatus string) error

SetDownloadStatus is DownloadStatus Setter 下载状态,默认是未下载;可选值:UNDOWNLOAD:未下载 ;DOWNLOADED:已下载;下载:指将供应商授权的产品发布为店铺新宝贝的过程,下载成功后,分销商需要将新生成的宝贝重新编辑并上架后售卖。

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetEndTime added in v1.3.1

SetEndTime is EndTime Setter 结束时间

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetFields added in v1.3.1

SetFields is Fields Setter 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetItemIds added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetItemIds(_itemIds []int64) error

SetItemIds is ItemIds Setter 根据商品ID列表查询,优先级次于产品ID列表,高于其他分页查询条件。如果商品不是分销商品,自动过滤。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005”

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetOrderBy added in v1.3.1

SetOrderBy is OrderBy Setter order_by

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码(大于0的整数,默认1)

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页记录数(默认20,最大50)

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetPids added in v1.3.1

SetPids is Pids Setter 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005”

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetProductcatId added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetProductcatId(_productcatId int64) error

SetProductcatId is ProductcatId Setter 产品线ID

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetStartTime added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetStartTime(_startTime string) error

SetStartTime is StartTime Setter 开始修改时间

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetSupplierNick added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetSupplierNick(_supplierNick string) error

SetSupplierNick is SupplierNick Setter 供应商nick,分页查询时,必传

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetTimeType added in v1.3.1

SetTimeType is TimeType Setter time_type

func (*TaobaofenxiaodistributorproductsgetAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaodistributorproductsgetAPIRequest) SetTradeType(_tradeType string) error

SetTradeType is TradeType Setter 分销方式;可选择:AGENT : 代销;DEALER:经销;DIRECT:直营

type TaobaofenxiaodistributorproductsgetAPIResponse added in v1.3.1

type TaobaofenxiaodistributorproductsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodistributorproductsgetAPIResponseModel
}

TaobaofenxiaodistributorproductsgetAPIResponse 分销商查询产品信息 API返回值 taobao.fenxiao.distributor.products.get

分销商查询供应商产品信息

type TaobaofenxiaodistributorproductsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaodistributorproductsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_distributor_products_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。
	Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"`
	// 是否存在下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaofenxiaodistributorproductsgetAPIResponseModel is 分销商查询产品信息 成功返回结果

type TaobaofenxiaodistributorsgetAPIRequest added in v1.3.1

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

TaobaofenxiaodistributorsgetAPIRequest 获取分销商信息 API请求 taobao.fenxiao.distributors.get

查询和当前登录供应商有合作关系的分销商的信息

func NewTaobaofenxiaodistributorsgetRequest added in v1.3.1

func NewTaobaofenxiaodistributorsgetRequest() *TaobaofenxiaodistributorsgetAPIRequest

NewTaobaofenxiaodistributorsgetRequest 初始化TaobaofenxiaodistributorsgetAPIRequest对象

func (TaobaofenxiaodistributorsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaodistributorsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaodistributorsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaodistributorsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaodistributorsgetAPIRequest) GetNicks added in v1.3.1

GetNicks Nicks Getter

func (TaobaofenxiaodistributorsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaodistributorsgetAPIRequest) SetNicks added in v1.3.1

SetNicks is Nicks Setter 分销商用户名列表。多个之间以“,”分隔;最多支持50个分销商用户名。

type TaobaofenxiaodistributorsgetAPIResponse added in v1.3.1

type TaobaofenxiaodistributorsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaodistributorsgetAPIResponseModel
}

TaobaofenxiaodistributorsgetAPIResponse 获取分销商信息 API返回值 taobao.fenxiao.distributors.get

查询和当前登录供应商有合作关系的分销商的信息

type TaobaofenxiaodistributorsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaodistributorsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_distributors_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 分销商详细信息
	Distributors []Distributor `json:"distributors,omitempty" xml:"distributors>distributor,omitempty"`
}

TaobaofenxiaodistributorsgetAPIResponseModel is 获取分销商信息 成功返回结果

type TaobaofenxiaogradesgetAPIRequest added in v1.3.1

type TaobaofenxiaogradesgetAPIRequest struct {
	model.Params
}

TaobaofenxiaogradesgetAPIRequest 分销商等级查询 API请求 taobao.fenxiao.grades.get

根据供应商ID,查询他的分销商等级信息

func NewTaobaofenxiaogradesgetRequest added in v1.3.1

func NewTaobaofenxiaogradesgetRequest() *TaobaofenxiaogradesgetAPIRequest

NewTaobaofenxiaogradesgetRequest 初始化TaobaofenxiaogradesgetAPIRequest对象

func (TaobaofenxiaogradesgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaogradesgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaogradesgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaogradesgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaogradesgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

type TaobaofenxiaogradesgetAPIResponse added in v1.3.1

type TaobaofenxiaogradesgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaogradesgetAPIResponseModel
}

TaobaofenxiaogradesgetAPIResponse 分销商等级查询 API返回值 taobao.fenxiao.grades.get

根据供应商ID,查询他的分销商等级信息

type TaobaofenxiaogradesgetAPIResponseModel added in v1.3.1

type TaobaofenxiaogradesgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_grades_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 分销商等级信息
	FenxiaoGrades []FenxiaoGrade `json:"fenxiao_grades,omitempty" xml:"fenxiao_grades>fenxiao_grade,omitempty"`
}

TaobaofenxiaogradesgetAPIResponseModel is 分销商等级查询 成功返回结果

type TaobaofenxiaologinusergetAPIRequest added in v1.3.1

type TaobaofenxiaologinusergetAPIRequest struct {
	model.Params
}

TaobaofenxiaologinusergetAPIRequest 获取分销用户登录信息 API请求 taobao.fenxiao.login.user.get

获取用户登录信息

func NewTaobaofenxiaologinusergetRequest added in v1.3.1

func NewTaobaofenxiaologinusergetRequest() *TaobaofenxiaologinusergetAPIRequest

NewTaobaofenxiaologinusergetRequest 初始化TaobaofenxiaologinusergetAPIRequest对象

func (TaobaofenxiaologinusergetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaologinusergetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaologinusergetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaologinusergetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaologinusergetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

type TaobaofenxiaologinusergetAPIResponse added in v1.3.1

type TaobaofenxiaologinusergetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaologinusergetAPIResponseModel
}

TaobaofenxiaologinusergetAPIResponse 获取分销用户登录信息 API返回值 taobao.fenxiao.login.user.get

获取用户登录信息

type TaobaofenxiaologinusergetAPIResponseModel added in v1.3.1

type TaobaofenxiaologinusergetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_login_user_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 登录用户信息
	LoginUser *LoginUser `json:"login_user,omitempty" xml:"login_user,omitempty"`
}

TaobaofenxiaologinusergetAPIResponseModel is 获取分销用户登录信息 成功返回结果

type TaobaofenxiaoorderconfirmpaidAPIRequest added in v1.3.1

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

TaobaofenxiaoorderconfirmpaidAPIRequest 确认收款 API请求 taobao.fenxiao.order.confirm.paid

供应商确认收款(非支付宝交易)。

func NewTaobaofenxiaoorderconfirmpaidRequest added in v1.3.1

func NewTaobaofenxiaoorderconfirmpaidRequest() *TaobaofenxiaoorderconfirmpaidAPIRequest

NewTaobaofenxiaoorderconfirmpaidRequest 初始化TaobaofenxiaoorderconfirmpaidAPIRequest对象

func (TaobaofenxiaoorderconfirmpaidAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoorderconfirmpaidAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoorderconfirmpaidAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoorderconfirmpaidAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoorderconfirmpaidAPIRequest) GetConfirmRemark added in v1.3.1

func (r TaobaofenxiaoorderconfirmpaidAPIRequest) GetConfirmRemark() string

GetConfirmRemark ConfirmRemark Getter

func (TaobaofenxiaoorderconfirmpaidAPIRequest) GetPurchaseOrderId added in v1.3.1

func (r TaobaofenxiaoorderconfirmpaidAPIRequest) GetPurchaseOrderId() int64

GetPurchaseOrderId PurchaseOrderId Getter

func (TaobaofenxiaoorderconfirmpaidAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoorderconfirmpaidAPIRequest) SetConfirmRemark added in v1.3.1

func (r *TaobaofenxiaoorderconfirmpaidAPIRequest) SetConfirmRemark(_confirmRemark string) error

SetConfirmRemark is ConfirmRemark Setter 确认支付信息(字数小于100)

func (*TaobaofenxiaoorderconfirmpaidAPIRequest) SetPurchaseOrderId added in v1.3.1

func (r *TaobaofenxiaoorderconfirmpaidAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error

SetPurchaseOrderId is PurchaseOrderId Setter 采购单编号。

type TaobaofenxiaoorderconfirmpaidAPIResponse added in v1.3.1

type TaobaofenxiaoorderconfirmpaidAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoorderconfirmpaidAPIResponseModel
}

TaobaofenxiaoorderconfirmpaidAPIResponse 确认收款 API返回值 taobao.fenxiao.order.confirm.paid

供应商确认收款(非支付宝交易)。

type TaobaofenxiaoorderconfirmpaidAPIResponseModel added in v1.3.1

type TaobaofenxiaoorderconfirmpaidAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_order_confirm_paid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 确认结果成功与否
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoorderconfirmpaidAPIResponseModel is 确认收款 成功返回结果

type TaobaofenxiaoorderremarkupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoorderremarkupdateAPIRequest 修改采购单备注 API请求 taobao.fenxiao.order.remark.update

供应商修改采购单备注

func NewTaobaofenxiaoorderremarkupdateRequest added in v1.3.1

func NewTaobaofenxiaoorderremarkupdateRequest() *TaobaofenxiaoorderremarkupdateAPIRequest

NewTaobaofenxiaoorderremarkupdateRequest 初始化TaobaofenxiaoorderremarkupdateAPIRequest对象

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoorderremarkupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoorderremarkupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetPurchaseOrderId added in v1.3.1

func (r TaobaofenxiaoorderremarkupdateAPIRequest) GetPurchaseOrderId() int64

GetPurchaseOrderId PurchaseOrderId Getter

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetSupplierMemo added in v1.3.1

GetSupplierMemo SupplierMemo Getter

func (TaobaofenxiaoorderremarkupdateAPIRequest) GetSupplierMemoFlag added in v1.3.1

func (r TaobaofenxiaoorderremarkupdateAPIRequest) GetSupplierMemoFlag() int64

GetSupplierMemoFlag SupplierMemoFlag Getter

func (*TaobaofenxiaoorderremarkupdateAPIRequest) SetPurchaseOrderId added in v1.3.1

func (r *TaobaofenxiaoorderremarkupdateAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error

SetPurchaseOrderId is PurchaseOrderId Setter 采购单编号

func (*TaobaofenxiaoorderremarkupdateAPIRequest) SetSupplierMemo added in v1.3.1

func (r *TaobaofenxiaoorderremarkupdateAPIRequest) SetSupplierMemo(_supplierMemo string) error

SetSupplierMemo is SupplierMemo Setter 备注内容(供应商操作)

func (*TaobaofenxiaoorderremarkupdateAPIRequest) SetSupplierMemoFlag added in v1.3.1

func (r *TaobaofenxiaoorderremarkupdateAPIRequest) SetSupplierMemoFlag(_supplierMemoFlag int64) error

SetSupplierMemoFlag is SupplierMemoFlag Setter 旗子的标记,1-5之间的数字。非1-5之间,都采用1作为默认。<br/>1:红色<br/>2:黄色<br/>3:绿色<br/>4:蓝色<br/>5:粉红色

type TaobaofenxiaoorderremarkupdateAPIResponse added in v1.3.1

type TaobaofenxiaoorderremarkupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoorderremarkupdateAPIResponseModel
}

TaobaofenxiaoorderremarkupdateAPIResponse 修改采购单备注 API返回值 taobao.fenxiao.order.remark.update

供应商修改采购单备注

type TaobaofenxiaoorderremarkupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoorderremarkupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_order_remark_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoorderremarkupdateAPIResponseModel is 修改采购单备注 成功返回结果

type TaobaofenxiaoordersgetAPIRequest added in v1.3.1

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

TaobaofenxiaoordersgetAPIRequest 查询采购单信息 API请求 taobao.fenxiao.orders.get

查询代销采购单单据。

1. 支持商家按照供应商、分销商两种角色来查询数据。如果没有指定角色角色,系统会自动判断,此时如果商家存在供应商、分销商两种角色时,按照供应商角色查询。 2. 同时此接口还可以查询除供销经销外的其他经营模式的数据。如果需要查询供销经销单据请参考接口:taobao.fenxiao.dealer.requisitionorder.query

3. 发货请调用物流API中的发货接口taobao.logistics.offline.send 进行发货,需要注意的是这里是供应商发货,因此调发货接口时需要传人供应商账号对应的sessionkey,tid 需传入供销平台的采购单(即fenxiao_id 分销流水号))。

func NewTaobaofenxiaoordersgetRequest added in v1.3.1

func NewTaobaofenxiaoordersgetRequest() *TaobaofenxiaoordersgetAPIRequest

NewTaobaofenxiaoordersgetRequest 初始化TaobaofenxiaoordersgetAPIRequest对象

func (TaobaofenxiaoordersgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoordersgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoordersgetAPIRequest) GetChannelCodes added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetChannelCodes() []int64

GetChannelCodes ChannelCodes Getter

func (TaobaofenxiaoordersgetAPIRequest) GetEndCreated added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaofenxiaoordersgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaoordersgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaoordersgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaofenxiaoordersgetAPIRequest) GetPurchaseOrderId added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetPurchaseOrderId() int64

GetPurchaseOrderId PurchaseOrderId Getter

func (TaobaofenxiaoordersgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoordersgetAPIRequest) GetStartCreated added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaofenxiaoordersgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaofenxiaoordersgetAPIRequest) GetTcOrderId added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetTcOrderId() int64

GetTcOrderId TcOrderId Getter

func (TaobaofenxiaoordersgetAPIRequest) GetTimeType added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetTimeType() string

GetTimeType TimeType Getter

func (TaobaofenxiaoordersgetAPIRequest) GetTradeTypes added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetTradeTypes() []int64

GetTradeTypes TradeTypes Getter

func (TaobaofenxiaoordersgetAPIRequest) GetUserRoleType added in v1.3.1

func (r TaobaofenxiaoordersgetAPIRequest) GetUserRoleType() int64

GetUserRoleType UserRoleType Getter

func (*TaobaofenxiaoordersgetAPIRequest) SetChannelCodes added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetChannelCodes(_channelCodes []int64) error

SetChannelCodes is ChannelCodes Setter 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场

func (*TaobaofenxiaoordersgetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetEndCreated(_endCreated string) error

SetEndCreated is EndCreated Setter 结束时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。若不传时分秒,默认为0时0分0秒。当指定了purchase_order_id或者tc_order_id时,此值可选,否则此参数必传。 结束时间和开始时间的时间间隔不能超过7天,精确到秒。

func (*TaobaofenxiaoordersgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 指定返回的字段(废弃该参数) 多个字段用","分隔。 fields 如果为空:返回所有采购单对象(purchase_orders)字段。 如果不为空:返回指定采购单对象(purchase_orders)字段。 例1: sub_purchase_orders.tc_order_id 表示只返回tc_order_id 例2: sub_purchase_orders表示只返回子采购单列表

func (*TaobaofenxiaoordersgetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码。(大于0的整数。默认为1)

func (*TaobaofenxiaoordersgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数。(每页条数不超过50条)

func (*TaobaofenxiaoordersgetAPIRequest) SetPurchaseOrderId added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error

SetPurchaseOrderId is PurchaseOrderId Setter 采购单编号或分销流水号。 当指定此参数后,其他可选参数可以为空

func (*TaobaofenxiaoordersgetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetStartCreated(_startCreated string) error

SetStartCreated is StartCreated Setter 起始时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。若不传时分秒,默认为0时0分0秒。当指定了purchase_order_id或者tc_order_id时,此值可选,否则此参数必传。 结束时间和开始时间的时间间隔不能超过7天,精确到秒。

func (*TaobaofenxiaoordersgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 交易状态,不传默认查询所有采购单 根据用户角色选择自身状态可选值: * 供应商: WAIT_SELLER_SEND_GOODS(等待发货) WAIT_SELLER_CONFIRM_PAY(待确认收款) WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(已发货) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭) * 分销商: WAIT_BUYER_PAY(等待付款) WAIT_BUYER_CONFIRM_GOODS(待收货确认) TRADE_FOR_PAY(已付款) TRADE_REFUNDING(退款中) TRADE_FINISHED(采购成功) TRADE_CLOSED(已关闭)

func (*TaobaofenxiaoordersgetAPIRequest) SetTcOrderId added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetTcOrderId(_tcOrderId int64) error

SetTcOrderId is TcOrderId Setter 消费者交易单号(采购单下游买家订单id)。 当在代销、寄售交易中,此单号存在。

func (*TaobaofenxiaoordersgetAPIRequest) SetTimeType added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetTimeType(_timeType string) error

SetTimeType is TimeType Setter 时间类型: trade_time_type(默认类型,按照采购单创建时间范围查询,推荐按照此时间类型查询) update_time_type(采购单按照更新时间范围查询)

func (*TaobaofenxiaoordersgetAPIRequest) SetTradeTypes added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetTradeTypes(_tradeTypes []int64) error

SetTradeTypes is TradeTypes Setter 查询的经营模式,当不指定时,默认查询代销订单 代销:1 经销:2 寄售(自营寄售):5 平台寄售:6

func (*TaobaofenxiaoordersgetAPIRequest) SetUserRoleType added in v1.3.1

func (r *TaobaofenxiaoordersgetAPIRequest) SetUserRoleType(_userRoleType int64) error

SetUserRoleType is UserRoleType Setter 当前查询用户的角色 当不指定时,默认为供应商 供应商:2,分销商:1

type TaobaofenxiaoordersgetAPIResponse added in v1.3.1

type TaobaofenxiaoordersgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoordersgetAPIResponseModel
}

TaobaofenxiaoordersgetAPIResponse 查询采购单信息 API返回值 taobao.fenxiao.orders.get

查询代销采购单单据。

1. 支持商家按照供应商、分销商两种角色来查询数据。如果没有指定角色角色,系统会自动判断,此时如果商家存在供应商、分销商两种角色时,按照供应商角色查询。 2. 同时此接口还可以查询除供销经销外的其他经营模式的数据。如果需要查询供销经销单据请参考接口:taobao.fenxiao.dealer.requisitionorder.query

3. 发货请调用物流API中的发货接口taobao.logistics.offline.send 进行发货,需要注意的是这里是供应商发货,因此调发货接口时需要传人供应商账号对应的sessionkey,tid 需传入供销平台的采购单(即fenxiao_id 分销流水号))。

type TaobaofenxiaoordersgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoordersgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_orders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 采购单及子采购单信息。 返回 PurchaseOrder 包含的字段信息。
	PurchaseOrders []TopDpOrderDo `json:"purchase_orders,omitempty" xml:"purchase_orders>top_dp_order_do,omitempty"`
	// 查询到的采购单记录总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaoordersgetAPIResponseModel is 查询采购单信息 成功返回结果

type TaobaofenxiaoproductaddAPIRequest added in v1.3.1

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

TaobaofenxiaoproductaddAPIRequest 添加产品 API请求 taobao.fenxiao.product.add

添加分销平台产品数据。业务逻辑与分销系统前台页面一致。<br/><br/> * 产品图片默认为空<br/> * 产品发布后默认为下架状态

func NewTaobaofenxiaoproductaddRequest added in v1.3.1

func NewTaobaofenxiaoproductaddRequest() *TaobaofenxiaoproductaddAPIRequest

NewTaobaofenxiaoproductaddRequest 初始化TaobaofenxiaoproductaddAPIRequest对象

func (TaobaofenxiaoproductaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductaddAPIRequest) GetCategoryId added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetCity added in v1.3.1

GetCity City Getter

func (TaobaofenxiaoproductaddAPIRequest) GetCostPrice added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetCostPrice() string

GetCostPrice CostPrice Getter

func (TaobaofenxiaoproductaddAPIRequest) GetDealerCostPrice added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetDealerCostPrice() string

GetDealerCostPrice DealerCostPrice Getter

func (TaobaofenxiaoproductaddAPIRequest) GetDesc added in v1.3.1

GetDesc Desc Getter

func (TaobaofenxiaoproductaddAPIRequest) GetDiscountId added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetDiscountId() int64

GetDiscountId DiscountId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetHaveInvoice added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetHaveInvoice() string

GetHaveInvoice HaveInvoice Getter

func (TaobaofenxiaoproductaddAPIRequest) GetHaveQuarantee added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetHaveQuarantee() string

GetHaveQuarantee HaveQuarantee Getter

func (TaobaofenxiaoproductaddAPIRequest) GetImage added in v1.3.1

GetImage Image Getter

func (TaobaofenxiaoproductaddAPIRequest) GetInputProperties added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetInputProperties() string

GetInputProperties InputProperties Getter

func (TaobaofenxiaoproductaddAPIRequest) GetIsAuthz added in v1.3.1

GetIsAuthz IsAuthz Getter

func (TaobaofenxiaoproductaddAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaofenxiaoproductaddAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPicPath added in v1.3.1

GetPicPath PicPath Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPostageEms added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPostageEms() string

GetPostageEms PostageEms Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPostageFast added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPostageFast() string

GetPostageFast PostageFast Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPostageId added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPostageId() int64

GetPostageId PostageId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPostageOrdinary added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPostageOrdinary() string

GetPostageOrdinary PostageOrdinary Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPostageType added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPostageType() string

GetPostageType PostageType Getter

func (TaobaofenxiaoproductaddAPIRequest) GetProductcatId added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetProductcatId() int64

GetProductcatId ProductcatId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetProperties added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaofenxiaoproductaddAPIRequest) GetPropertyAlias added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetPropertyAlias() string

GetPropertyAlias PropertyAlias Getter

func (TaobaofenxiaoproductaddAPIRequest) GetProv added in v1.3.1

GetProv Prov Getter

func (TaobaofenxiaoproductaddAPIRequest) GetQuantity added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetQuantity() int64

GetQuantity Quantity Getter

func (TaobaofenxiaoproductaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductaddAPIRequest) GetRetailPriceHigh added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetRetailPriceHigh() string

GetRetailPriceHigh RetailPriceHigh Getter

func (TaobaofenxiaoproductaddAPIRequest) GetRetailPriceLow added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetRetailPriceLow() string

GetRetailPriceLow RetailPriceLow Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuCostPrices added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuCostPrices() string

GetSkuCostPrices SkuCostPrices Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuDealerCostPrices added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuDealerCostPrices() string

GetSkuDealerCostPrices SkuDealerCostPrices Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuOuterIds added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuOuterIds() string

GetSkuOuterIds SkuOuterIds Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuProperties added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuProperties() string

GetSkuProperties SkuProperties Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuQuantitys added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuQuantitys() string

GetSkuQuantitys SkuQuantitys Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSkuStandardPrices added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetSkuStandardPrices() string

GetSkuStandardPrices SkuStandardPrices Getter

func (TaobaofenxiaoproductaddAPIRequest) GetSpuId added in v1.3.1

GetSpuId SpuId Getter

func (TaobaofenxiaoproductaddAPIRequest) GetStandardPrice added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetStandardPrice() string

GetStandardPrice StandardPrice Getter

func (TaobaofenxiaoproductaddAPIRequest) GetStandardRetailPrice added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetStandardRetailPrice() string

GetStandardRetailPrice StandardRetailPrice Getter

func (TaobaofenxiaoproductaddAPIRequest) GetTradeType added in v1.3.1

func (r TaobaofenxiaoproductaddAPIRequest) GetTradeType() string

GetTradeType TradeType Getter

func (*TaobaofenxiaoproductaddAPIRequest) SetCategoryId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。

func (*TaobaofenxiaoproductaddAPIRequest) SetCity added in v1.3.1

SetCity is City Setter 所在地:市,例:“杭州”

func (*TaobaofenxiaoproductaddAPIRequest) SetCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetCostPrice(_costPrice string) error

SetCostPrice is CostPrice Setter 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetDealerCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error

SetDealerCostPrice is DealerCostPrice Setter 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetDesc added in v1.3.1

SetDesc is Desc Setter 产品描述,长度为5到25000字符。

func (*TaobaofenxiaoproductaddAPIRequest) SetDiscountId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetDiscountId(_discountId int64) error

SetDiscountId is DiscountId Setter 折扣ID

func (*TaobaofenxiaoproductaddAPIRequest) SetHaveInvoice added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetHaveInvoice(_haveInvoice string) error

SetHaveInvoice is HaveInvoice Setter 是否有发票,可选值:false(否)、true(是),默认false。

func (*TaobaofenxiaoproductaddAPIRequest) SetHaveQuarantee added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetHaveQuarantee(_haveQuarantee string) error

SetHaveQuarantee is HaveQuarantee Setter 是否有保修,可选值:false(否)、true(是),默认false。

func (*TaobaofenxiaoproductaddAPIRequest) SetImage added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetImage(_image *model.File) error

SetImage is Image Setter 产品主图,大小不超过500k,格式为gif,jpg,jpeg,png,bmp等图片

func (*TaobaofenxiaoproductaddAPIRequest) SetInputProperties added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetInputProperties(_inputProperties string) error

SetInputProperties is InputProperties Setter 自定义属性。格式为pid:value;pid:value

func (*TaobaofenxiaoproductaddAPIRequest) SetIsAuthz added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetIsAuthz(_isAuthz string) error

SetIsAuthz is IsAuthz Setter 添加产品时,添加入参isAuthz:yes|no <br/>yes:需要授权 <br/>no:不需要授权 <br/>默认是需要授权

func (*TaobaofenxiaoproductaddAPIRequest) SetItemId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 导入的商品ID

func (*TaobaofenxiaoproductaddAPIRequest) SetName added in v1.3.1

SetName is Name Setter 产品名称,长度不超过60个字节。

func (*TaobaofenxiaoproductaddAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商家编码,长度不能超过60个字节。

func (*TaobaofenxiaoproductaddAPIRequest) SetPicPath added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPicPath(_picPath string) error

SetPicPath is PicPath Setter 产品主图图片空间相对路径或绝对路径

func (*TaobaofenxiaoproductaddAPIRequest) SetPostageEms added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPostageEms(_postageEms string) error

SetPostageEms is PostageEms Setter ems费用,单位:元。例:“10.56”。 大小为0.00元到999999元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetPostageFast added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPostageFast(_postageFast string) error

SetPostageFast is PostageFast Setter 快递费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetPostageId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPostageId(_postageId int64) error

SetPostageId is PostageId Setter 运费模板ID,参考taobao.postages.get。

func (*TaobaofenxiaoproductaddAPIRequest) SetPostageOrdinary added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPostageOrdinary(_postageOrdinary string) error

SetPostageOrdinary is PostageOrdinary Setter 平邮费用,单位:元。例:“10.56”。 大小为0.01元到999999元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetPostageType added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPostageType(_postageType string) error

SetPostageType is PostageType Setter 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费),默认seller。

func (*TaobaofenxiaoproductaddAPIRequest) SetProductcatId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetProductcatId(_productcatId int64) error

SetProductcatId is ProductcatId Setter 产品线ID

func (*TaobaofenxiaoproductaddAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter 产品属性,格式为pid:vid;pid:vid

func (*TaobaofenxiaoproductaddAPIRequest) SetPropertyAlias added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetPropertyAlias(_propertyAlias string) error

SetPropertyAlias is PropertyAlias Setter 属性别名,格式为:pid:vid:alias;pid:vid:alias(alias为别名)

func (*TaobaofenxiaoproductaddAPIRequest) SetProv added in v1.3.1

SetProv is Prov Setter 所在地:省,例:“浙江”

func (*TaobaofenxiaoproductaddAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 产品库存必须是1到999999。

func (*TaobaofenxiaoproductaddAPIRequest) SetRetailPriceHigh added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetRetailPriceHigh(_retailPriceHigh string) error

SetRetailPriceHigh is RetailPriceHigh Setter 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。

func (*TaobaofenxiaoproductaddAPIRequest) SetRetailPriceLow added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetRetailPriceLow(_retailPriceLow string) error

SetRetailPriceLow is RetailPriceLow Setter 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuCostPrices added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuCostPrices(_skuCostPrices string) error

SetSkuCostPrices is SkuCostPrices Setter sku的采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuDealerCostPrices added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuDealerCostPrices(_skuDealerCostPrices string) error

SetSkuDealerCostPrices is SkuDealerCostPrices Setter sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuOuterIds added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuOuterIds(_skuOuterIds string) error

SetSkuOuterIds is SkuOuterIds Setter sku的商家编码。如果多个,用逗号分隔,并与其他sku信息保持相同顺序

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuProperties added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuProperties(_skuProperties string) error

SetSkuProperties is SkuProperties Setter sku的属性。如果多个,用逗号分隔,并与其他sku信息保持相同顺序

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuQuantitys added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuQuantitys(_skuQuantitys string) error

SetSkuQuantitys is SkuQuantitys Setter sku的库存。如果多个,用逗号分隔,并与其他sku信息保持相同顺序

func (*TaobaofenxiaoproductaddAPIRequest) SetSkuStandardPrices added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSkuStandardPrices(_skuStandardPrices string) error

SetSkuStandardPrices is SkuStandardPrices Setter sku的采购基准价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序

func (*TaobaofenxiaoproductaddAPIRequest) SetSpuId added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter 产品spuID,达尔文产品必须要传spuID,否则不能发布。其他非达尔文产品,看情况传

func (*TaobaofenxiaoproductaddAPIRequest) SetStandardPrice added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetStandardPrice(_standardPrice string) error

SetStandardPrice is StandardPrice Setter 采购基准价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetStandardRetailPrice added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetStandardRetailPrice(_standardRetailPrice string) error

SetStandardRetailPrice is StandardRetailPrice Setter 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductaddAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaoproductaddAPIRequest) SetTradeType(_tradeType string) error

SetTradeType is TradeType Setter 分销方式:AGENT(只做代销,默认值)、DEALER(只做经销)、ALL(代销和经销都做)

type TaobaofenxiaoproductaddAPIResponse added in v1.3.1

type TaobaofenxiaoproductaddAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductaddAPIResponseModel
}

TaobaofenxiaoproductaddAPIResponse 添加产品 API返回值 taobao.fenxiao.product.add

添加分销平台产品数据。业务逻辑与分销系统前台页面一致。<br/><br/> * 产品图片默认为空<br/> * 产品发布后默认为下架状态

type TaobaofenxiaoproductaddAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductaddAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品创建时间 时间格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 产品ID
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
}

TaobaofenxiaoproductaddAPIResponseModel is 添加产品 成功返回结果

type TaobaofenxiaoproductcataddAPIRequest added in v1.3.1

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

TaobaofenxiaoproductcataddAPIRequest 新增产品线 API请求 taobao.fenxiao.productcat.add

新增产品线

func NewTaobaofenxiaoproductcataddRequest added in v1.3.1

func NewTaobaofenxiaoproductcataddRequest() *TaobaofenxiaoproductcataddAPIRequest

NewTaobaofenxiaoproductcataddRequest 初始化TaobaofenxiaoproductcataddAPIRequest对象

func (TaobaofenxiaoproductcataddAPIRequest) GetAgentCostPercent added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetAgentCostPercent() int64

GetAgentCostPercent AgentCostPercent Getter

func (TaobaofenxiaoproductcataddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductcataddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductcataddAPIRequest) GetDealerCostPercent added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetDealerCostPercent() int64

GetDealerCostPercent DealerCostPercent Getter

func (TaobaofenxiaoproductcataddAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaofenxiaoproductcataddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductcataddAPIRequest) GetRetailHighPercent added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetRetailHighPercent() int64

GetRetailHighPercent RetailHighPercent Getter

func (TaobaofenxiaoproductcataddAPIRequest) GetRetailLowPercent added in v1.3.1

func (r TaobaofenxiaoproductcataddAPIRequest) GetRetailLowPercent() int64

GetRetailLowPercent RetailLowPercent Getter

func (*TaobaofenxiaoproductcataddAPIRequest) SetAgentCostPercent added in v1.3.1

func (r *TaobaofenxiaoproductcataddAPIRequest) SetAgentCostPercent(_agentCostPercent int64) error

SetAgentCostPercent is AgentCostPercent Setter 代销默认采购价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcataddAPIRequest) SetDealerCostPercent added in v1.3.1

func (r *TaobaofenxiaoproductcataddAPIRequest) SetDealerCostPercent(_dealerCostPercent int64) error

SetDealerCostPercent is DealerCostPercent Setter 经销默认采购价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcataddAPIRequest) SetName added in v1.3.1

SetName is Name Setter 产品线名称

func (*TaobaofenxiaoproductcataddAPIRequest) SetRetailHighPercent added in v1.3.1

func (r *TaobaofenxiaoproductcataddAPIRequest) SetRetailHighPercent(_retailHighPercent int64) error

SetRetailHighPercent is RetailHighPercent Setter 最高零售价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcataddAPIRequest) SetRetailLowPercent added in v1.3.1

func (r *TaobaofenxiaoproductcataddAPIRequest) SetRetailLowPercent(_retailLowPercent int64) error

SetRetailLowPercent is RetailLowPercent Setter 最低零售价比例,注意:100.00%,则输入为10000

type TaobaofenxiaoproductcataddAPIResponse added in v1.3.1

type TaobaofenxiaoproductcataddAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductcataddAPIResponseModel
}

TaobaofenxiaoproductcataddAPIResponse 新增产品线 API返回值 taobao.fenxiao.productcat.add

新增产品线

type TaobaofenxiaoproductcataddAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductcataddAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_productcat_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品线ID
	ProductLineId int64 `json:"product_line_id,omitempty" xml:"product_line_id,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductcataddAPIResponseModel is 新增产品线 成功返回结果

type TaobaofenxiaoproductcatdeleteAPIRequest added in v1.3.1

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

TaobaofenxiaoproductcatdeleteAPIRequest 删除产品线 API请求 taobao.fenxiao.productcat.delete

删除产品线

func NewTaobaofenxiaoproductcatdeleteRequest added in v1.3.1

func NewTaobaofenxiaoproductcatdeleteRequest() *TaobaofenxiaoproductcatdeleteAPIRequest

NewTaobaofenxiaoproductcatdeleteRequest 初始化TaobaofenxiaoproductcatdeleteAPIRequest对象

func (TaobaofenxiaoproductcatdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductcatdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductcatdeleteAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductcatdeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductcatdeleteAPIRequest) GetProductLineId added in v1.3.1

func (r TaobaofenxiaoproductcatdeleteAPIRequest) GetProductLineId() int64

GetProductLineId ProductLineId Getter

func (TaobaofenxiaoproductcatdeleteAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductcatdeleteAPIRequest) SetProductLineId added in v1.3.1

func (r *TaobaofenxiaoproductcatdeleteAPIRequest) SetProductLineId(_productLineId int64) error

SetProductLineId is ProductLineId Setter 产品线ID

type TaobaofenxiaoproductcatdeleteAPIResponse added in v1.3.1

type TaobaofenxiaoproductcatdeleteAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductcatdeleteAPIResponseModel
}

TaobaofenxiaoproductcatdeleteAPIResponse 删除产品线 API返回值 taobao.fenxiao.productcat.delete

删除产品线

type TaobaofenxiaoproductcatdeleteAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductcatdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_productcat_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductcatdeleteAPIResponseModel is 删除产品线 成功返回结果

type TaobaofenxiaoproductcatsgetAPIRequest added in v1.3.1

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

TaobaofenxiaoproductcatsgetAPIRequest 查询产品线列表 API请求 taobao.fenxiao.productcats.get

查询供应商的所有产品线数据。根据登陆用户来查询,不需要其他入参

func NewTaobaofenxiaoproductcatsgetRequest added in v1.3.1

func NewTaobaofenxiaoproductcatsgetRequest() *TaobaofenxiaoproductcatsgetAPIRequest

NewTaobaofenxiaoproductcatsgetRequest 初始化TaobaofenxiaoproductcatsgetAPIRequest对象

func (TaobaofenxiaoproductcatsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductcatsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductcatsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductcatsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductcatsgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaoproductcatsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductcatsgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaofenxiaoproductcatsgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 返回字段列表

type TaobaofenxiaoproductcatsgetAPIResponse added in v1.3.1

type TaobaofenxiaoproductcatsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductcatsgetAPIResponseModel
}

TaobaofenxiaoproductcatsgetAPIResponse 查询产品线列表 API返回值 taobao.fenxiao.productcats.get

查询供应商的所有产品线数据。根据登陆用户来查询,不需要其他入参

type TaobaofenxiaoproductcatsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductcatsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_productcats_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品线列表。返回 ProductCat 包含的字段信息。
	Productcats []ProductCat `json:"productcats,omitempty" xml:"productcats>product_cat,omitempty"`
	// 查询结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaoproductcatsgetAPIResponseModel is 查询产品线列表 成功返回结果

type TaobaofenxiaoproductcatupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoproductcatupdateAPIRequest 修改产品线 API请求 taobao.fenxiao.productcat.update

修改产品线

func NewTaobaofenxiaoproductcatupdateRequest added in v1.3.1

func NewTaobaofenxiaoproductcatupdateRequest() *TaobaofenxiaoproductcatupdateAPIRequest

NewTaobaofenxiaoproductcatupdateRequest 初始化TaobaofenxiaoproductcatupdateAPIRequest对象

func (TaobaofenxiaoproductcatupdateAPIRequest) GetAgentCostPercent added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetAgentCostPercent() int64

GetAgentCostPercent AgentCostPercent Getter

func (TaobaofenxiaoproductcatupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductcatupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductcatupdateAPIRequest) GetDealerCostPercent added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetDealerCostPercent() int64

GetDealerCostPercent DealerCostPercent Getter

func (TaobaofenxiaoproductcatupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaofenxiaoproductcatupdateAPIRequest) GetProductLineId added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetProductLineId() int64

GetProductLineId ProductLineId Getter

func (TaobaofenxiaoproductcatupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductcatupdateAPIRequest) GetRetailHighPercent added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetRetailHighPercent() int64

GetRetailHighPercent RetailHighPercent Getter

func (TaobaofenxiaoproductcatupdateAPIRequest) GetRetailLowPercent added in v1.3.1

func (r TaobaofenxiaoproductcatupdateAPIRequest) GetRetailLowPercent() int64

GetRetailLowPercent RetailLowPercent Getter

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetAgentCostPercent added in v1.3.1

func (r *TaobaofenxiaoproductcatupdateAPIRequest) SetAgentCostPercent(_agentCostPercent int64) error

SetAgentCostPercent is AgentCostPercent Setter 代销默认采购价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetDealerCostPercent added in v1.3.1

func (r *TaobaofenxiaoproductcatupdateAPIRequest) SetDealerCostPercent(_dealerCostPercent int64) error

SetDealerCostPercent is DealerCostPercent Setter 经销默认采购价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetName added in v1.3.1

SetName is Name Setter 产品线名称

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetProductLineId added in v1.3.1

func (r *TaobaofenxiaoproductcatupdateAPIRequest) SetProductLineId(_productLineId int64) error

SetProductLineId is ProductLineId Setter 产品线ID

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetRetailHighPercent added in v1.3.1

func (r *TaobaofenxiaoproductcatupdateAPIRequest) SetRetailHighPercent(_retailHighPercent int64) error

SetRetailHighPercent is RetailHighPercent Setter 最高零售价比例,注意:100.00%,则输入为10000

func (*TaobaofenxiaoproductcatupdateAPIRequest) SetRetailLowPercent added in v1.3.1

func (r *TaobaofenxiaoproductcatupdateAPIRequest) SetRetailLowPercent(_retailLowPercent int64) error

SetRetailLowPercent is RetailLowPercent Setter 最低零售价比例,注意:100.00%,则输入为10000

type TaobaofenxiaoproductcatupdateAPIResponse added in v1.3.1

type TaobaofenxiaoproductcatupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductcatupdateAPIResponseModel
}

TaobaofenxiaoproductcatupdateAPIResponse 修改产品线 API返回值 taobao.fenxiao.productcat.update

修改产品线

type TaobaofenxiaoproductcatupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductcatupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_productcat_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductcatupdateAPIResponseModel is 修改产品线 成功返回结果

type TaobaofenxiaoproductgradepricegetAPIRequest added in v1.3.1

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

TaobaofenxiaoproductgradepricegetAPIRequest 等级折扣查询 API请求 taobao.fenxiao.product.gradeprice.get

等级折扣查询

func NewTaobaofenxiaoproductgradepricegetRequest added in v1.3.1

func NewTaobaofenxiaoproductgradepricegetRequest() *TaobaofenxiaoproductgradepricegetAPIRequest

NewTaobaofenxiaoproductgradepricegetRequest 初始化TaobaofenxiaoproductgradepricegetAPIRequest对象

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (TaobaofenxiaoproductgradepricegetAPIRequest) GetTradeType added in v1.3.1

GetTradeType TradeType Getter

func (*TaobaofenxiaoproductgradepricegetAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductgradepricegetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品id

func (*TaobaofenxiaoproductgradepricegetAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter skuId

func (*TaobaofenxiaoproductgradepricegetAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaoproductgradepricegetAPIRequest) SetTradeType(_tradeType int64) error

SetTradeType is TradeType Setter 经、代销模式(1:代销、2:经销)

type TaobaofenxiaoproductgradepricegetAPIResponse added in v1.3.1

type TaobaofenxiaoproductgradepricegetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductgradepricegetAPIResponseModel
}

TaobaofenxiaoproductgradepricegetAPIResponse 等级折扣查询 API返回值 taobao.fenxiao.product.gradeprice.get

等级折扣查询

type TaobaofenxiaoproductgradepricegetAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductgradepricegetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_gradeprice_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 等级折扣列表
	GradeDiscounts []GradeDiscount `json:"grade_discounts,omitempty" xml:"grade_discounts>grade_discount,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductgradepricegetAPIResponseModel is 等级折扣查询 成功返回结果

type TaobaofenxiaoproductgradepriceupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoproductgradepriceupdateAPIRequest 根据sku设置折扣价 API请求 taobao.fenxiao.product.gradeprice.update

供应商可以针对产品不同的sku,指定对应交易类型(代销or经销)方式下,设定折扣方式(按等级or指定分销商)以及对应优惠后的采购价格

func NewTaobaofenxiaoproductgradepriceupdateRequest added in v1.3.1

func NewTaobaofenxiaoproductgradepriceupdateRequest() *TaobaofenxiaoproductgradepriceupdateAPIRequest

NewTaobaofenxiaoproductgradepriceupdateRequest 初始化TaobaofenxiaoproductgradepriceupdateAPIRequest对象

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetIds added in v1.3.1

GetIds Ids Getter

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetPrices added in v1.3.1

GetPrices Prices Getter

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetTargetType added in v1.3.1

GetTargetType TargetType Getter

func (TaobaofenxiaoproductgradepriceupdateAPIRequest) GetTradeType added in v1.3.1

GetTradeType TradeType Getter

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetIds added in v1.3.1

SetIds is Ids Setter 会员等级的id或者分销商id,例如:”1001,2001,1002”

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetPrices added in v1.3.1

SetPrices is Prices Setter 优惠价格,大小为0到100000000之间的整数或两位小数,例:优惠价格为:100元2角5分,传入的参数应写成:100.25

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductgradepriceupdateAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品Id

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter skuId,如果产品有skuId,必须要输入skuId;没有skuId的时候不必选

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetTargetType added in v1.3.1

func (r *TaobaofenxiaoproductgradepriceupdateAPIRequest) SetTargetType(_targetType string) error

SetTargetType is TargetType Setter 选择折扣方式:GRADE(按等级进行设置);DISCITUTOR(按分销商进行设置)。例如"GRADE,DISTRIBUTOR"

func (*TaobaofenxiaoproductgradepriceupdateAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaoproductgradepriceupdateAPIRequest) SetTradeType(_tradeType string) error

SetTradeType is TradeType Setter 交易类型: AGENT(代销)、DEALER(经销),ALL(代销和经销)

type TaobaofenxiaoproductgradepriceupdateAPIResponse added in v1.3.1

type TaobaofenxiaoproductgradepriceupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductgradepriceupdateAPIResponseModel
}

TaobaofenxiaoproductgradepriceupdateAPIResponse 根据sku设置折扣价 API返回值 taobao.fenxiao.product.gradeprice.update

供应商可以针对产品不同的sku,指定对应交易类型(代销or经销)方式下,设定折扣方式(按等级or指定分销商)以及对应优惠后的采购价格

type TaobaofenxiaoproductgradepriceupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductgradepriceupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_gradeprice_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回操作结果:成功或失败
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductgradepriceupdateAPIResponseModel is 根据sku设置折扣价 成功返回结果

type TaobaofenxiaoproductimagedeleteAPIRequest added in v1.3.1

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

TaobaofenxiaoproductimagedeleteAPIRequest 产品图片删除 API请求 taobao.fenxiao.product.image.delete

产品图片删除,只删除图片信息,不真正删除图片

func NewTaobaofenxiaoproductimagedeleteRequest added in v1.3.1

func NewTaobaofenxiaoproductimagedeleteRequest() *TaobaofenxiaoproductimagedeleteAPIRequest

NewTaobaofenxiaoproductimagedeleteRequest 初始化TaobaofenxiaoproductimagedeleteAPIRequest对象

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductimagedeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetPosition added in v1.3.1

GetPosition Position Getter

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetProperties added in v1.3.1

GetProperties Properties Getter

func (TaobaofenxiaoproductimagedeleteAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductimagedeleteAPIRequest) SetPosition added in v1.3.1

func (r *TaobaofenxiaoproductimagedeleteAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片位置

func (*TaobaofenxiaoproductimagedeleteAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductimagedeleteAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaoproductimagedeleteAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductimagedeleteAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项

type TaobaofenxiaoproductimagedeleteAPIResponse added in v1.3.1

type TaobaofenxiaoproductimagedeleteAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductimagedeleteAPIResponseModel
}

TaobaofenxiaoproductimagedeleteAPIResponse 产品图片删除 API返回值 taobao.fenxiao.product.image.delete

产品图片删除,只删除图片信息,不真正删除图片

type TaobaofenxiaoproductimagedeleteAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductimagedeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_image_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductimagedeleteAPIResponseModel is 产品图片删除 成功返回结果

type TaobaofenxiaoproductimageuploadAPIRequest added in v1.3.1

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

TaobaofenxiaoproductimageuploadAPIRequest 产品图片上传 API请求 taobao.fenxiao.product.image.upload

产品主图图片空间相对路径或绝对路径添加或更新,或者是图片上传。如果指定位置的图片已存在,则覆盖原有信息。如果位置为1,自动设为主图;如果位置为0,表示属性图片

func NewTaobaofenxiaoproductimageuploadRequest added in v1.3.1

func NewTaobaofenxiaoproductimageuploadRequest() *TaobaofenxiaoproductimageuploadAPIRequest

NewTaobaofenxiaoproductimageuploadRequest 初始化TaobaofenxiaoproductimageuploadAPIRequest对象

func (TaobaofenxiaoproductimageuploadAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductimageuploadAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductimageuploadAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductimageuploadAPIRequest) GetImage added in v1.3.1

GetImage Image Getter

func (TaobaofenxiaoproductimageuploadAPIRequest) GetPicPath added in v1.3.1

GetPicPath PicPath Getter

func (TaobaofenxiaoproductimageuploadAPIRequest) GetPosition added in v1.3.1

GetPosition Position Getter

func (TaobaofenxiaoproductimageuploadAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductimageuploadAPIRequest) GetProperties added in v1.3.1

GetProperties Properties Getter

func (TaobaofenxiaoproductimageuploadAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductimageuploadAPIRequest) SetImage added in v1.3.1

SetImage is Image Setter 产品图片

func (*TaobaofenxiaoproductimageuploadAPIRequest) SetPicPath added in v1.3.1

func (r *TaobaofenxiaoproductimageuploadAPIRequest) SetPicPath(_picPath string) error

SetPicPath is PicPath Setter 产品主图图片空间相对路径或绝对路径

func (*TaobaofenxiaoproductimageuploadAPIRequest) SetPosition added in v1.3.1

func (r *TaobaofenxiaoproductimageuploadAPIRequest) SetPosition(_position int64) error

SetPosition is Position Setter 图片位置,0-14之间。0:操作sku属性图片,1:主图,2-5:细节图,6-14:额外主图

func (*TaobaofenxiaoproductimageuploadAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductimageuploadAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaoproductimageuploadAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductimageuploadAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter properties表示sku图片的属性。key:value形式,key是pid,value是vid。如果position是0的话,则properties需要是必传项

type TaobaofenxiaoproductimageuploadAPIResponse added in v1.3.1

type TaobaofenxiaoproductimageuploadAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductimageuploadAPIResponseModel
}

TaobaofenxiaoproductimageuploadAPIResponse 产品图片上传 API返回值 taobao.fenxiao.product.image.upload

产品主图图片空间相对路径或绝对路径添加或更新,或者是图片上传。如果指定位置的图片已存在,则覆盖原有信息。如果位置为1,自动设为主图;如果位置为0,表示属性图片

type TaobaofenxiaoproductimageuploadAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductimageuploadAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_image_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作是否成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductimageuploadAPIResponseModel is 产品图片上传 成功返回结果

type TaobaofenxiaoproductimportfromauctionAPIRequest added in v1.3.1

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

TaobaofenxiaoproductimportfromauctionAPIRequest 导入商品生成产品 API请求 taobao.fenxiao.product.import.from.auction

供应商选择关联店铺的前台宝贝,导入生成产品

func NewTaobaofenxiaoproductimportfromauctionRequest added in v1.3.1

func NewTaobaofenxiaoproductimportfromauctionRequest() *TaobaofenxiaoproductimportfromauctionAPIRequest

NewTaobaofenxiaoproductimportfromauctionRequest 初始化TaobaofenxiaoproductimportfromauctionAPIRequest对象

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetAuctionId added in v1.3.1

GetAuctionId AuctionId Getter

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetProductLineId added in v1.3.1

GetProductLineId ProductLineId Getter

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductimportfromauctionAPIRequest) GetTradeType added in v1.3.1

GetTradeType TradeType Getter

func (*TaobaofenxiaoproductimportfromauctionAPIRequest) SetAuctionId added in v1.3.1

func (r *TaobaofenxiaoproductimportfromauctionAPIRequest) SetAuctionId(_auctionId int64) error

SetAuctionId is AuctionId Setter 店铺宝贝id

func (*TaobaofenxiaoproductimportfromauctionAPIRequest) SetProductLineId added in v1.3.1

func (r *TaobaofenxiaoproductimportfromauctionAPIRequest) SetProductLineId(_productLineId int64) error

SetProductLineId is ProductLineId Setter 产品线id

func (*TaobaofenxiaoproductimportfromauctionAPIRequest) SetTradeType added in v1.3.1

func (r *TaobaofenxiaoproductimportfromauctionAPIRequest) SetTradeType(_tradeType int64) error

SetTradeType is TradeType Setter 导入产品需要支持的交易类型:[1 代销][ 2 经销 ][3 代销和经销]

type TaobaofenxiaoproductimportfromauctionAPIResponse added in v1.3.1

type TaobaofenxiaoproductimportfromauctionAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductimportfromauctionAPIResponseModel
}

TaobaofenxiaoproductimportfromauctionAPIResponse 导入商品生成产品 API返回值 taobao.fenxiao.product.import.from.auction

供应商选择关联店铺的前台宝贝,导入生成产品

type TaobaofenxiaoproductimportfromauctionAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductimportfromauctionAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_import_from_auction_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"`
	// 生成的产品id
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
}

TaobaofenxiaoproductimportfromauctionAPIResponseModel is 导入商品生成产品 成功返回结果

type TaobaofenxiaoproductmapaddAPIRequest added in v1.3.1

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

TaobaofenxiaoproductmapaddAPIRequest 创建分销和后端商品映射关系 API请求 taobao.fenxiao.product.map.add

创建分销和供应链商品映射关系。

func NewTaobaofenxiaoproductmapaddRequest added in v1.3.1

func NewTaobaofenxiaoproductmapaddRequest() *TaobaofenxiaoproductmapaddAPIRequest

NewTaobaofenxiaoproductmapaddRequest 初始化TaobaofenxiaoproductmapaddAPIRequest对象

func (TaobaofenxiaoproductmapaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductmapaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductmapaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductmapaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductmapaddAPIRequest) GetNotCheckOuterCode added in v1.3.1

func (r TaobaofenxiaoproductmapaddAPIRequest) GetNotCheckOuterCode() bool

GetNotCheckOuterCode NotCheckOuterCode Getter

func (TaobaofenxiaoproductmapaddAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductmapaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductmapaddAPIRequest) GetScItemId added in v1.3.1

GetScItemId ScItemId Getter

func (TaobaofenxiaoproductmapaddAPIRequest) GetScItemIds added in v1.3.1

GetScItemIds ScItemIds Getter

func (TaobaofenxiaoproductmapaddAPIRequest) GetSkuIds added in v1.3.1

GetSkuIds SkuIds Getter

func (*TaobaofenxiaoproductmapaddAPIRequest) SetNotCheckOuterCode added in v1.3.1

func (r *TaobaofenxiaoproductmapaddAPIRequest) SetNotCheckOuterCode(_notCheckOuterCode bool) error

SetNotCheckOuterCode is NotCheckOuterCode Setter 是否需要校验商家编码,true不校验,false校验。

func (*TaobaofenxiaoproductmapaddAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductmapaddAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 分销产品id。

func (*TaobaofenxiaoproductmapaddAPIRequest) SetScItemId added in v1.3.1

func (r *TaobaofenxiaoproductmapaddAPIRequest) SetScItemId(_scItemId int64) error

SetScItemId is ScItemId Setter 后端商品id(如果当前分销产品没有sku和后端商品时需要指定)。

func (*TaobaofenxiaoproductmapaddAPIRequest) SetScItemIds added in v1.3.1

func (r *TaobaofenxiaoproductmapaddAPIRequest) SetScItemIds(_scItemIds string) error

SetScItemIds is ScItemIds Setter 在有sku的情况下,与各个sku对应的后端商品id列表。逗号分隔,顺序需要保证与sku_ids一致。

func (*TaobaofenxiaoproductmapaddAPIRequest) SetSkuIds added in v1.3.1

func (r *TaobaofenxiaoproductmapaddAPIRequest) SetSkuIds(_skuIds string) error

SetSkuIds is SkuIds Setter 分销产品的sku id。逗号分隔,顺序需要保证与sc_item_ids一致(没有sku就不传)。

type TaobaofenxiaoproductmapaddAPIResponse added in v1.3.1

type TaobaofenxiaoproductmapaddAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductmapaddAPIResponseModel
}

TaobaofenxiaoproductmapaddAPIResponse 创建分销和后端商品映射关系 API返回值 taobao.fenxiao.product.map.add

创建分销和供应链商品映射关系。

type TaobaofenxiaoproductmapaddAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductmapaddAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_map_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作结果
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaoproductmapaddAPIResponseModel is 创建分销和后端商品映射关系 成功返回结果

type TaobaofenxiaoproductquantityupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoproductquantityupdateAPIRequest 产品库存修改 API请求 taobao.fenxiao.product.quantity.update

修改产品库存信息,支持全量修改以及增量修改两种方式

func NewTaobaofenxiaoproductquantityupdateRequest added in v1.3.1

func NewTaobaofenxiaoproductquantityupdateRequest() *TaobaofenxiaoproductquantityupdateAPIRequest

NewTaobaofenxiaoproductquantityupdateRequest 初始化TaobaofenxiaoproductquantityupdateAPIRequest对象

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetProperties added in v1.3.1

GetProperties Properties Getter

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductquantityupdateAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (*TaobaofenxiaoproductquantityupdateAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductquantityupdateAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaoproductquantityupdateAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductquantityupdateAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter sku属性值,产品有sku时填写,多个sku用,分隔。为空时默认该产品无sku,则只修改产品的库存。请参照taobao.fenxiao.products.get接口返回的properties设置入参

func (*TaobaofenxiaoproductquantityupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaofenxiaoproductquantityupdateAPIRequest) SetQuantity(_quantity string) error

SetQuantity is Quantity Setter 库存修改值。产品有sku时,与sku属性顺序对应,用,分隔。产品无sku时,只写库存值。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0

func (*TaobaofenxiaoproductquantityupdateAPIRequest) SetType added in v1.3.1

SetType is Type Setter 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新。当选择全量更新时,如果库存更新值传入的是负数,会出错并返回错误码;当选择增量更新时,如果库存更新值为负数且绝对值大于当前库存,则sku库存会设置为0

type TaobaofenxiaoproductquantityupdateAPIResponse added in v1.3.1

type TaobaofenxiaoproductquantityupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductquantityupdateAPIResponseModel
}

TaobaofenxiaoproductquantityupdateAPIResponse 产品库存修改 API返回值 taobao.fenxiao.product.quantity.update

修改产品库存信息,支持全量修改以及增量修改两种方式

type TaobaofenxiaoproductquantityupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductquantityupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_quantity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductquantityupdateAPIResponseModel is 产品库存修改 成功返回结果

type TaobaofenxiaoproductsgetAPIRequest added in v1.3.1

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

TaobaofenxiaoproductsgetAPIRequest 查询产品列表 API请求 taobao.fenxiao.products.get

查询供应商的产品数据。<br/><br/> * 入参传入pids将优先查询,即只按这个条件查询。<br/> *入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条)<br/> * 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。<br/> * 入参fields传入images将查询多图数据,不传只返回主图数据。<br/> * 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据)<br/> * 查询结果按照产品发布时间倒序,即时间近的数据在前。

func NewTaobaofenxiaoproductsgetRequest added in v1.3.1

func NewTaobaofenxiaoproductsgetRequest() *TaobaofenxiaoproductsgetAPIRequest

NewTaobaofenxiaoproductsgetRequest 初始化TaobaofenxiaoproductsgetAPIRequest对象

func (TaobaofenxiaoproductsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductsgetAPIRequest) GetEndModified added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetEndModified() string

GetEndModified EndModified Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetIsAuthz added in v1.3.1

GetIsAuthz IsAuthz Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetItemIds added in v1.3.1

GetItemIds ItemIds Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetPids added in v1.3.1

GetPids Pids Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetProductcatId added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetProductcatId() int64

GetProductcatId ProductcatId Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductsgetAPIRequest) GetSkuNumber added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetSkuNumber() string

GetSkuNumber SkuNumber Getter

func (TaobaofenxiaoproductsgetAPIRequest) GetStartModified added in v1.3.1

func (r TaobaofenxiaoproductsgetAPIRequest) GetStartModified() string

GetStartModified StartModified Getter

func (*TaobaofenxiaoproductsgetAPIRequest) SetEndModified added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 结束修改时间

func (*TaobaofenxiaoproductsgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 指定查询额外的信息,可选值:skus(sku数据)、images(多图),多个可选值用逗号分割。

func (*TaobaofenxiaoproductsgetAPIRequest) SetIsAuthz added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetIsAuthz(_isAuthz string) error

SetIsAuthz is IsAuthz Setter 查询产品列表时,查询入参“是否需要授权”<br/>yes:需要授权 <br/>no:不需要授权

func (*TaobaofenxiaoproductsgetAPIRequest) SetItemIds added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetItemIds(_itemIds int64) error

SetItemIds is ItemIds Setter 可根据导入的商品ID列表查询,优先级次于产品ID、sku_numbers,高于其他分页查询条件。最大限制20,用逗号分割,例如:“1001,1002,1003,1004,1005”

func (*TaobaofenxiaoproductsgetAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商家编码

func (*TaobaofenxiaoproductsgetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码(大于0的整数,默认1)

func (*TaobaofenxiaoproductsgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页记录数(默认20,最大50)

func (*TaobaofenxiaoproductsgetAPIRequest) SetPids added in v1.3.1

SetPids is Pids Setter 产品ID列表(最大限制30),用逗号分割,例如:“1001,1002,1003,1004,1005”

func (*TaobaofenxiaoproductsgetAPIRequest) SetProductcatId added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetProductcatId(_productcatId int64) error

SetProductcatId is ProductcatId Setter 产品线ID

func (*TaobaofenxiaoproductsgetAPIRequest) SetSkuNumber added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetSkuNumber(_skuNumber string) error

SetSkuNumber is SkuNumber Setter sku商家编码

func (*TaobaofenxiaoproductsgetAPIRequest) SetStartModified added in v1.3.1

func (r *TaobaofenxiaoproductsgetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 开始修改时间

type TaobaofenxiaoproductsgetAPIResponse added in v1.3.1

type TaobaofenxiaoproductsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductsgetAPIResponseModel
}

TaobaofenxiaoproductsgetAPIResponse 查询产品列表 API返回值 taobao.fenxiao.products.get

查询供应商的产品数据。<br/><br/> * 入参传入pids将优先查询,即只按这个条件查询。<br/> *入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条)<br/> * 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。<br/> * 入参fields传入images将查询多图数据,不传只返回主图数据。<br/> * 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据)<br/> * 查询结果按照产品发布时间倒序,即时间近的数据在前。

type TaobaofenxiaoproductsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_products_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品对象记录集。返回 FenxiaoProduct 包含的字段信息。
	Products []FenxiaoProduct `json:"products,omitempty" xml:"products>fenxiao_product,omitempty"`
	// 查询结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaoproductsgetAPIResponseModel is 查询产品列表 成功返回结果

type TaobaofenxiaoproductskuaddAPIRequest added in v1.3.1

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

TaobaofenxiaoproductskuaddAPIRequest 产品sku添加接口 API请求 taobao.fenxiao.product.sku.add

添加产品SKU信息

func NewTaobaofenxiaoproductskuaddRequest added in v1.3.1

func NewTaobaofenxiaoproductskuaddRequest() *TaobaofenxiaoproductskuaddAPIRequest

NewTaobaofenxiaoproductskuaddRequest 初始化TaobaofenxiaoproductskuaddAPIRequest对象

func (TaobaofenxiaoproductskuaddAPIRequest) GetAgentCostPrice added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetAgentCostPrice() string

GetAgentCostPrice AgentCostPrice Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductskuaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductskuaddAPIRequest) GetDealerCostPrice added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetDealerCostPrice() string

GetDealerCostPrice DealerCostPrice Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetProperties added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductskuaddAPIRequest) GetSkuNumber added in v1.3.1

GetSkuNumber SkuNumber Getter

func (TaobaofenxiaoproductskuaddAPIRequest) GetStandardPrice added in v1.3.1

func (r TaobaofenxiaoproductskuaddAPIRequest) GetStandardPrice() string

GetStandardPrice StandardPrice Getter

func (*TaobaofenxiaoproductskuaddAPIRequest) SetAgentCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetAgentCostPrice(_agentCostPrice string) error

SetAgentCostPrice is AgentCostPrice Setter 代销采购价

func (*TaobaofenxiaoproductskuaddAPIRequest) SetDealerCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error

SetDealerCostPrice is DealerCostPrice Setter 经销采购价

func (*TaobaofenxiaoproductskuaddAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaoproductskuaddAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter sku属性

func (*TaobaofenxiaoproductskuaddAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter sku产品库存,在0到1000000之间,如果不传,则库存为0

func (*TaobaofenxiaoproductskuaddAPIRequest) SetSkuNumber added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetSkuNumber(_skuNumber string) error

SetSkuNumber is SkuNumber Setter 商家编码

func (*TaobaofenxiaoproductskuaddAPIRequest) SetStandardPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuaddAPIRequest) SetStandardPrice(_standardPrice string) error

SetStandardPrice is StandardPrice Setter 采购基准价,最大值1000000000

type TaobaofenxiaoproductskuaddAPIResponse added in v1.3.1

type TaobaofenxiaoproductskuaddAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductskuaddAPIResponseModel
}

TaobaofenxiaoproductskuaddAPIResponse 产品sku添加接口 API返回值 taobao.fenxiao.product.sku.add

添加产品SKU信息

type TaobaofenxiaoproductskuaddAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductskuaddAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_sku_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductskuaddAPIResponseModel is 产品sku添加接口 成功返回结果

type TaobaofenxiaoproductskudeleteAPIRequest added in v1.3.1

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

TaobaofenxiaoproductskudeleteAPIRequest 产品SKU删除接口 API请求 taobao.fenxiao.product.sku.delete

根据sku properties删除sku数据

func NewTaobaofenxiaoproductskudeleteRequest added in v1.3.1

func NewTaobaofenxiaoproductskudeleteRequest() *TaobaofenxiaoproductskudeleteAPIRequest

NewTaobaofenxiaoproductskudeleteRequest 初始化TaobaofenxiaoproductskudeleteAPIRequest对象

func (TaobaofenxiaoproductskudeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductskudeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductskudeleteAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductskudeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductskudeleteAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductskudeleteAPIRequest) GetProperties added in v1.3.1

GetProperties Properties Getter

func (TaobaofenxiaoproductskudeleteAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductskudeleteAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductskudeleteAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品id

func (*TaobaofenxiaoproductskudeleteAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductskudeleteAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter sku属性

type TaobaofenxiaoproductskudeleteAPIResponse added in v1.3.1

type TaobaofenxiaoproductskudeleteAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductskudeleteAPIResponseModel
}

TaobaofenxiaoproductskudeleteAPIResponse 产品SKU删除接口 API返回值 taobao.fenxiao.product.sku.delete

根据sku properties删除sku数据

type TaobaofenxiaoproductskudeleteAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductskudeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_sku_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductskudeleteAPIResponseModel is 产品SKU删除接口 成功返回结果

type TaobaofenxiaoproductskusgetAPIRequest added in v1.3.1

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

TaobaofenxiaoproductskusgetAPIRequest SKU查询接口 API请求 taobao.fenxiao.product.skus.get

产品sku查询

func NewTaobaofenxiaoproductskusgetRequest added in v1.3.1

func NewTaobaofenxiaoproductskusgetRequest() *TaobaofenxiaoproductskusgetAPIRequest

NewTaobaofenxiaoproductskusgetRequest 初始化TaobaofenxiaoproductskusgetAPIRequest对象

func (TaobaofenxiaoproductskusgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductskusgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductskusgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductskusgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductskusgetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductskusgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproductskusgetAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductskusgetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

type TaobaofenxiaoproductskusgetAPIResponse added in v1.3.1

type TaobaofenxiaoproductskusgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductskusgetAPIResponseModel
}

TaobaofenxiaoproductskusgetAPIResponse SKU查询接口 API返回值 taobao.fenxiao.product.skus.get

产品sku查询

type TaobaofenxiaoproductskusgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductskusgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_skus_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// sku信息
	Skus []FenxiaoSku `json:"skus,omitempty" xml:"skus>fenxiao_sku,omitempty"`
	// 记录数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaoproductskusgetAPIResponseModel is SKU查询接口 成功返回结果

type TaobaofenxiaoproductskuupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoproductskuupdateAPIRequest 产品sku编辑接口 API请求 taobao.fenxiao.product.sku.update

产品SKU信息更新

func NewTaobaofenxiaoproductskuupdateRequest added in v1.3.1

func NewTaobaofenxiaoproductskuupdateRequest() *TaobaofenxiaoproductskuupdateAPIRequest

NewTaobaofenxiaoproductskuupdateRequest 初始化TaobaofenxiaoproductskuupdateAPIRequest对象

func (TaobaofenxiaoproductskuupdateAPIRequest) GetAgentCostPrice added in v1.3.1

func (r TaobaofenxiaoproductskuupdateAPIRequest) GetAgentCostPrice() string

GetAgentCostPrice AgentCostPrice Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductskuupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductskuupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductskuupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductskuupdateAPIRequest) GetDealerCostPrice added in v1.3.1

func (r TaobaofenxiaoproductskuupdateAPIRequest) GetDealerCostPrice() string

GetDealerCostPrice DealerCostPrice Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetProperties added in v1.3.1

GetProperties Properties Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductskuupdateAPIRequest) GetSkuNumber added in v1.3.1

GetSkuNumber SkuNumber Getter

func (TaobaofenxiaoproductskuupdateAPIRequest) GetStandardPrice added in v1.3.1

func (r TaobaofenxiaoproductskuupdateAPIRequest) GetStandardPrice() string

GetStandardPrice StandardPrice Getter

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetAgentCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetAgentCostPrice(_agentCostPrice string) error

SetAgentCostPrice is AgentCostPrice Setter 代销采购价

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetDealerCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error

SetDealerCostPrice is DealerCostPrice Setter 经销采购价

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter sku属性

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 产品SKU库存

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetSkuNumber added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetSkuNumber(_skuNumber string) error

SetSkuNumber is SkuNumber Setter 商家编码

func (*TaobaofenxiaoproductskuupdateAPIRequest) SetStandardPrice added in v1.3.1

func (r *TaobaofenxiaoproductskuupdateAPIRequest) SetStandardPrice(_standardPrice string) error

SetStandardPrice is StandardPrice Setter 采购基准价

type TaobaofenxiaoproductskuupdateAPIResponse added in v1.3.1

type TaobaofenxiaoproductskuupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductskuupdateAPIResponseModel
}

TaobaofenxiaoproductskuupdateAPIResponse 产品sku编辑接口 API返回值 taobao.fenxiao.product.sku.update

产品SKU信息更新

type TaobaofenxiaoproductskuupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductskuupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_sku_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 操作时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 操作结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaofenxiaoproductskuupdateAPIResponseModel is 产品sku编辑接口 成功返回结果

type TaobaofenxiaoproducttochannelimportAPIRequest added in v1.3.1

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

TaobaofenxiaoproducttochannelimportAPIRequest 产品导入到渠道 API请求 taobao.fenxiao.product.to.channel.import

支持供应商将已有产品导入到某个渠道销售

func NewTaobaofenxiaoproducttochannelimportRequest added in v1.3.1

func NewTaobaofenxiaoproducttochannelimportRequest() *TaobaofenxiaoproducttochannelimportAPIRequest

NewTaobaofenxiaoproducttochannelimportRequest 初始化TaobaofenxiaoproducttochannelimportAPIRequest对象

func (TaobaofenxiaoproducttochannelimportAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproducttochannelimportAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproducttochannelimportAPIRequest) GetChannel added in v1.3.1

GetChannel Channel Getter

func (TaobaofenxiaoproducttochannelimportAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TaobaofenxiaoproducttochannelimportAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaoproducttochannelimportAPIRequest) SetChannel added in v1.3.1

SetChannel is Channel Setter 要导入的渠道[21 零售PLUS]目前仅支持此渠道

func (*TaobaofenxiaoproducttochannelimportAPIRequest) SetProductId added in v1.3.1

func (r *TaobaofenxiaoproducttochannelimportAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 要导入的产品id

type TaobaofenxiaoproducttochannelimportAPIResponse added in v1.3.1

type TaobaofenxiaoproducttochannelimportAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproducttochannelimportAPIResponseModel
}

TaobaofenxiaoproducttochannelimportAPIResponse 产品导入到渠道 API返回值 taobao.fenxiao.product.to.channel.import

支持供应商将已有产品导入到某个渠道销售

type TaobaofenxiaoproducttochannelimportAPIResponseModel added in v1.3.1

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

TaobaofenxiaoproducttochannelimportAPIResponseModel is 产品导入到渠道 成功返回结果

type TaobaofenxiaoproductupdateAPIRequest added in v1.3.1

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

TaobaofenxiaoproductupdateAPIRequest 更新产品 API请求 taobao.fenxiao.product.update

更新分销平台产品数据,不传更新数据返回失败<br><br/>1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。<br>

func NewTaobaofenxiaoproductupdateRequest added in v1.3.1

func NewTaobaofenxiaoproductupdateRequest() *TaobaofenxiaoproductupdateAPIRequest

NewTaobaofenxiaoproductupdateRequest 初始化TaobaofenxiaoproductupdateAPIRequest对象

func (TaobaofenxiaoproductupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoproductupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoproductupdateAPIRequest) GetCategoryId added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetCategoryId() int64

GetCategoryId CategoryId Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetCity added in v1.3.1

GetCity City Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetCostPrice added in v1.3.1

GetCostPrice CostPrice Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetDealerCostPrice added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetDealerCostPrice() string

GetDealerCostPrice DealerCostPrice Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetDesc added in v1.3.1

GetDesc Desc Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetDiscountId added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetDiscountId() int64

GetDiscountId DiscountId Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetHaveInvoice added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetHaveInvoice() string

GetHaveInvoice HaveInvoice Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetHaveQuarantee added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetHaveQuarantee() string

GetHaveQuarantee HaveQuarantee Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetImage added in v1.3.1

GetImage Image Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetInputProperties added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetInputProperties() string

GetInputProperties InputProperties Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetIsAuthz added in v1.3.1

GetIsAuthz IsAuthz Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetName added in v1.3.1

GetName Name Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetOuterId added in v1.3.1

GetOuterId OuterId Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPicPath added in v1.3.1

GetPicPath PicPath Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPid added in v1.3.1

GetPid Pid Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPostageEms added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetPostageEms() string

GetPostageEms PostageEms Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPostageFast added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetPostageFast() string

GetPostageFast PostageFast Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPostageId added in v1.3.1

GetPostageId PostageId Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPostageOrdinary added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetPostageOrdinary() string

GetPostageOrdinary PostageOrdinary Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPostageType added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetPostageType() string

GetPostageType PostageType Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetProperties added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetPropertyAlias added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetPropertyAlias() string

GetPropertyAlias PropertyAlias Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetProv added in v1.3.1

GetProv Prov Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoproductupdateAPIRequest) GetRetailPriceHigh added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetRetailPriceHigh() string

GetRetailPriceHigh RetailPriceHigh Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetRetailPriceLow added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetRetailPriceLow() string

GetRetailPriceLow RetailPriceLow Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuCostPrices added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuCostPrices() string

GetSkuCostPrices SkuCostPrices Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuDealerCostPrices added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuDealerCostPrices() string

GetSkuDealerCostPrices SkuDealerCostPrices Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuIds added in v1.3.1

GetSkuIds SkuIds Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuOuterIds added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuOuterIds() string

GetSkuOuterIds SkuOuterIds Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuProperties added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuProperties() string

GetSkuProperties SkuProperties Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuPropertiesDel added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuPropertiesDel() string

GetSkuPropertiesDel SkuPropertiesDel Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuQuantitys added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuQuantitys() string

GetSkuQuantitys SkuQuantitys Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetSkuStandardPrices added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetSkuStandardPrices() string

GetSkuStandardPrices SkuStandardPrices Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetStandardPrice added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetStandardPrice() string

GetStandardPrice StandardPrice Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetStandardRetailPrice added in v1.3.1

func (r TaobaofenxiaoproductupdateAPIRequest) GetStandardRetailPrice() string

GetStandardRetailPrice StandardRetailPrice Getter

func (TaobaofenxiaoproductupdateAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (*TaobaofenxiaoproductupdateAPIRequest) SetCategoryId added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetCategoryId(_categoryId int64) error

SetCategoryId is CategoryId Setter 所属类目id,参考Taobao.itemcats.get,不支持成人等类目,输入成人类目id保存提示类目属性错误。

func (*TaobaofenxiaoproductupdateAPIRequest) SetCity added in v1.3.1

SetCity is City Setter 所在地:市,例:“杭州”

func (*TaobaofenxiaoproductupdateAPIRequest) SetCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetCostPrice(_costPrice string) error

SetCostPrice is CostPrice Setter 代销采购价格,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetDealerCostPrice added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetDealerCostPrice(_dealerCostPrice string) error

SetDealerCostPrice is DealerCostPrice Setter 经销采购价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetDesc added in v1.3.1

SetDesc is Desc Setter 产品描述,长度为5到25000字符。

func (*TaobaofenxiaoproductupdateAPIRequest) SetDiscountId added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetDiscountId(_discountId int64) error

SetDiscountId is DiscountId Setter 折扣ID

func (*TaobaofenxiaoproductupdateAPIRequest) SetHaveInvoice added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetHaveInvoice(_haveInvoice string) error

SetHaveInvoice is HaveInvoice Setter 是否有发票,可选值:false(否)、true(是),默认false。

func (*TaobaofenxiaoproductupdateAPIRequest) SetHaveQuarantee added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetHaveQuarantee(_haveQuarantee string) error

SetHaveQuarantee is HaveQuarantee Setter 是否有保修,可选值:false(否)、true(是),默认false。

func (*TaobaofenxiaoproductupdateAPIRequest) SetImage added in v1.3.1

SetImage is Image Setter 主图图片,如果pic_path参数不空,则优先使用pic_path,忽略该参数

func (*TaobaofenxiaoproductupdateAPIRequest) SetInputProperties added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetInputProperties(_inputProperties string) error

SetInputProperties is InputProperties Setter 自定义属性。格式为pid:value;pid:value

func (*TaobaofenxiaoproductupdateAPIRequest) SetIsAuthz added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetIsAuthz(_isAuthz string) error

SetIsAuthz is IsAuthz Setter 产品是否需要授权isAuthz:yes|no <br/>yes:需要授权 <br/>no:不需要授权

func (*TaobaofenxiaoproductupdateAPIRequest) SetName added in v1.3.1

SetName is Name Setter 产品名称,长度不超过60个字节。

func (*TaobaofenxiaoproductupdateAPIRequest) SetOuterId added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetOuterId(_outerId string) error

SetOuterId is OuterId Setter 商家编码,长度不能超过60个字节。

func (*TaobaofenxiaoproductupdateAPIRequest) SetPicPath added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPicPath(_picPath string) error

SetPicPath is PicPath Setter 产品主图图片空间相对路径或绝对路径

func (*TaobaofenxiaoproductupdateAPIRequest) SetPid added in v1.3.1

SetPid is Pid Setter 产品ID

func (*TaobaofenxiaoproductupdateAPIRequest) SetPostageEms added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPostageEms(_postageEms string) error

SetPostageEms is PostageEms Setter ems费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。

func (*TaobaofenxiaoproductupdateAPIRequest) SetPostageFast added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPostageFast(_postageFast string) error

SetPostageFast is PostageFast Setter 快递费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。

func (*TaobaofenxiaoproductupdateAPIRequest) SetPostageId added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPostageId(_postageId int64) error

SetPostageId is PostageId Setter 运费模板ID,参考taobao.postages.get。更新时必须指定运费类型为 buyer,否则不更新。

func (*TaobaofenxiaoproductupdateAPIRequest) SetPostageOrdinary added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPostageOrdinary(_postageOrdinary string) error

SetPostageOrdinary is PostageOrdinary Setter 平邮费用,单位:元。例:“10.56”。大小为0.01元到999999元之间。更新时必须指定运费类型为buyer,否则不更新。

func (*TaobaofenxiaoproductupdateAPIRequest) SetPostageType added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPostageType(_postageType string) error

SetPostageType is PostageType Setter 运费类型,可选值:seller(供应商承担运费)、buyer(分销商承担运费)。

func (*TaobaofenxiaoproductupdateAPIRequest) SetProperties added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter 产品属性

func (*TaobaofenxiaoproductupdateAPIRequest) SetPropertyAlias added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetPropertyAlias(_propertyAlias string) error

SetPropertyAlias is PropertyAlias Setter 属性别名

func (*TaobaofenxiaoproductupdateAPIRequest) SetProv added in v1.3.1

SetProv is Prov Setter 所在地:省,例:“浙江”

func (*TaobaofenxiaoproductupdateAPIRequest) SetQuantity added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetQuantity(_quantity int64) error

SetQuantity is Quantity Setter 产品库存必须是1到999999。

func (*TaobaofenxiaoproductupdateAPIRequest) SetRetailPriceHigh added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetRetailPriceHigh(_retailPriceHigh string) error

SetRetailPriceHigh is RetailPriceHigh Setter 最高零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间,最高零售价必须大于最低零售价。

func (*TaobaofenxiaoproductupdateAPIRequest) SetRetailPriceLow added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetRetailPriceLow(_retailPriceLow string) error

SetRetailPriceLow is RetailPriceLow Setter 最低零售价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuCostPrices added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuCostPrices(_skuCostPrices string) error

SetSkuCostPrices is SkuCostPrices Setter sku采购价格,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuDealerCostPrices added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuDealerCostPrices(_skuDealerCostPrices string) error

SetSkuDealerCostPrices is SkuDealerCostPrices Setter sku的经销采购价。如果多个,用逗号分隔,并与其他sku信息保持相同顺序。其中每个值的单位:元。例:“10.56,12.3”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuIds added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuIds(_skuIds string) error

SetSkuIds is SkuIds Setter sku id列表,例:1001,1002,1003。如果传入sku_properties将忽略此参数。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuOuterIds added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuOuterIds(_skuOuterIds string) error

SetSkuOuterIds is SkuOuterIds Setter sku商家编码 ,单位元,例:"S1000,S1002,S1003",字段必须和上面的id或sku_properties保持一致,如果没有可以写成",,"

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuProperties added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuProperties(_skuProperties string) error

SetSkuProperties is SkuProperties Setter sku属性。格式:pid:vid;pid:vid,表示一组属性如:1627207:3232483;1630696:3284570,表示一组:机身颜色:军绿色;手机套餐:一电一充。多组之间用逗号“,”区分。(属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid)<br/>通过此字段可新增和更新sku。若传入此值将忽略sku_ids字段。sku其他字段与此值保持一致。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuPropertiesDel added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuPropertiesDel(_skuPropertiesDel string) error

SetSkuPropertiesDel is SkuPropertiesDel Setter 根据sku属性删除sku信息。需要按组删除属性。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuQuantitys added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuQuantitys(_skuQuantitys string) error

SetSkuQuantitys is SkuQuantitys Setter sku库存,单位元,例:"10,20,30",字段必须和sku_ids或sku_properties保持一致。

func (*TaobaofenxiaoproductupdateAPIRequest) SetSkuStandardPrices added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetSkuStandardPrices(_skuStandardPrices string) error

SetSkuStandardPrices is SkuStandardPrices Setter sku采购基准价,单位元,例:"10.50,11.00,20.50",字段必须和上面的sku_ids或sku_properties保持一致。

func (*TaobaofenxiaoproductupdateAPIRequest) SetStandardPrice added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetStandardPrice(_standardPrice string) error

SetStandardPrice is StandardPrice Setter 采购基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetStandardRetailPrice added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetStandardRetailPrice(_standardRetailPrice string) error

SetStandardRetailPrice is StandardRetailPrice Setter 零售基准价,单位:元。例:“10.56”。必须在0.01元到10000000元之间。

func (*TaobaofenxiaoproductupdateAPIRequest) SetStatus added in v1.3.1

func (r *TaobaofenxiaoproductupdateAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 发布状态,可选值:up(上架)、down(下架)、delete(删除),输入非法字符则忽略。

type TaobaofenxiaoproductupdateAPIResponse added in v1.3.1

type TaobaofenxiaoproductupdateAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoproductupdateAPIResponseModel
}

TaobaofenxiaoproductupdateAPIResponse 更新产品 API返回值 taobao.fenxiao.product.update

更新分销平台产品数据,不传更新数据返回失败<br><br/>1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。<br>

type TaobaofenxiaoproductupdateAPIResponseModel added in v1.3.1

type TaobaofenxiaoproductupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_product_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 更新时间,时间格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 产品ID
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
}

TaobaofenxiaoproductupdateAPIResponseModel is 更新产品 成功返回结果

type TaobaofenxiaorefundgetAPIRequest added in v1.3.1

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

TaobaofenxiaorefundgetAPIRequest 查询采购单退款信息 API请求 taobao.fenxiao.refund.get

分销商或供应商可以查询某子单的退款信息,以及下游订单的退款信息

func NewTaobaofenxiaorefundgetRequest added in v1.3.1

func NewTaobaofenxiaorefundgetRequest() *TaobaofenxiaorefundgetAPIRequest

NewTaobaofenxiaorefundgetRequest 初始化TaobaofenxiaorefundgetAPIRequest对象

func (TaobaofenxiaorefundgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaorefundgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaorefundgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaorefundgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaorefundgetAPIRequest) GetQuerySellerRefund added in v1.3.1

func (r TaobaofenxiaorefundgetAPIRequest) GetQuerySellerRefund() bool

GetQuerySellerRefund QuerySellerRefund Getter

func (TaobaofenxiaorefundgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaorefundgetAPIRequest) GetRefundId added in v1.3.1

func (r TaobaofenxiaorefundgetAPIRequest) GetRefundId() int64

GetRefundId RefundId Getter

func (TaobaofenxiaorefundgetAPIRequest) GetSubOrderId added in v1.3.1

func (r TaobaofenxiaorefundgetAPIRequest) GetSubOrderId() int64

GetSubOrderId SubOrderId Getter

func (*TaobaofenxiaorefundgetAPIRequest) SetQuerySellerRefund added in v1.3.1

func (r *TaobaofenxiaorefundgetAPIRequest) SetQuerySellerRefund(_querySellerRefund bool) error

SetQuerySellerRefund is QuerySellerRefund Setter 是否查询下游消费者订单对应退款信息

func (*TaobaofenxiaorefundgetAPIRequest) SetRefundId added in v1.3.1

func (r *TaobaofenxiaorefundgetAPIRequest) SetRefundId(_refundId int64) error

SetRefundId is RefundId Setter 退款单id(分销子订单号和退款单id,两者至少必填一个,都填的情况下,以退款单id为准)

func (*TaobaofenxiaorefundgetAPIRequest) SetSubOrderId added in v1.3.1

func (r *TaobaofenxiaorefundgetAPIRequest) SetSubOrderId(_subOrderId int64) error

SetSubOrderId is SubOrderId Setter 要查询的退款对应的分销子订单号

type TaobaofenxiaorefundgetAPIResponse added in v1.3.1

type TaobaofenxiaorefundgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaorefundgetAPIResponseModel
}

TaobaofenxiaorefundgetAPIResponse 查询采购单退款信息 API返回值 taobao.fenxiao.refund.get

分销商或供应商可以查询某子单的退款信息,以及下游订单的退款信息

type TaobaofenxiaorefundgetAPIResponseModel added in v1.3.1

type TaobaofenxiaorefundgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_refund_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款详情
	RefundDetail *TopDpRefundDetailDo `json:"refund_detail,omitempty" xml:"refund_detail,omitempty"`
}

TaobaofenxiaorefundgetAPIResponseModel is 查询采购单退款信息 成功返回结果

type TaobaofenxiaorefundqueryAPIRequest added in v1.3.1

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

TaobaofenxiaorefundqueryAPIRequest 批量查询采购退款 API请求 taobao.fenxiao.refund.query

供应商按查询条件批量查询代销采购退款

func NewTaobaofenxiaorefundqueryRequest added in v1.3.1

func NewTaobaofenxiaorefundqueryRequest() *TaobaofenxiaorefundqueryAPIRequest

NewTaobaofenxiaorefundqueryRequest 初始化TaobaofenxiaorefundqueryAPIRequest对象

func (TaobaofenxiaorefundqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaorefundqueryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaorefundqueryAPIRequest) GetChannelCodes added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetChannelCodes() []int64

GetChannelCodes ChannelCodes Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetEndDate added in v1.3.1

GetEndDate EndDate Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetPageSize added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetQuerySellerRefund added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetQuerySellerRefund() bool

GetQuerySellerRefund QuerySellerRefund Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaorefundqueryAPIRequest) GetRefundFlowTypes added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetRefundFlowTypes() int64

GetRefundFlowTypes RefundFlowTypes Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetStartDate added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetStartDate() string

GetStartDate StartDate Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetTradeTypes added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetTradeTypes() []int64

GetTradeTypes TradeTypes Getter

func (TaobaofenxiaorefundqueryAPIRequest) GetUserRoleType added in v1.3.1

func (r TaobaofenxiaorefundqueryAPIRequest) GetUserRoleType() int64

GetUserRoleType UserRoleType Getter

func (*TaobaofenxiaorefundqueryAPIRequest) SetChannelCodes added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetChannelCodes(_channelCodes []int64) error

SetChannelCodes is ChannelCodes Setter 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场

func (*TaobaofenxiaorefundqueryAPIRequest) SetEndDate added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetEndDate(_endDate string) error

SetEndDate is EndDate Setter 查询退款单的修改时间结束,格式如:yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaorefundqueryAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码(大于0的整数。无值或小于1的值按默认值1计)

func (*TaobaofenxiaorefundqueryAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数(大于0但小于等于50的整数。无值或大于50或小于1的值按默认值50计)

func (*TaobaofenxiaorefundqueryAPIRequest) SetQuerySellerRefund added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetQuerySellerRefund(_querySellerRefund bool) error

SetQuerySellerRefund is QuerySellerRefund Setter 是否查询下游消费者的退款信息

func (*TaobaofenxiaorefundqueryAPIRequest) SetRefundFlowTypes added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetRefundFlowTypes(_refundFlowTypes int64) error

SetRefundFlowTypes is RefundFlowTypes Setter 退款流程类型:4:发货前退款;1:发货后退款不退货;2:发货后退款退货;3:售后退款;5:拒收;6:售后退货退款

func (*TaobaofenxiaorefundqueryAPIRequest) SetStartDate added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetStartDate(_startDate string) error

SetStartDate is StartDate Setter 查询退款单的修改时间开始,格式如:yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaorefundqueryAPIRequest) SetTradeTypes added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetTradeTypes(_tradeTypes []int64) error

SetTradeTypes is TradeTypes Setter 查询的经营模式,当不指定时,默认查询代销订单 代销:1 经销:2 寄售(自营寄售):5 平台寄售

func (*TaobaofenxiaorefundqueryAPIRequest) SetUserRoleType added in v1.3.1

func (r *TaobaofenxiaorefundqueryAPIRequest) SetUserRoleType(_userRoleType int64) error

SetUserRoleType is UserRoleType Setter 角色,供应商:2,分销商:1

type TaobaofenxiaorefundqueryAPIResponse added in v1.3.1

type TaobaofenxiaorefundqueryAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaorefundqueryAPIResponseModel
}

TaobaofenxiaorefundqueryAPIResponse 批量查询采购退款 API返回值 taobao.fenxiao.refund.query

供应商按查询条件批量查询代销采购退款

type TaobaofenxiaorefundqueryAPIResponseModel added in v1.3.1

type TaobaofenxiaorefundqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_refund_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款列表
	RefundList []RefundDetail `json:"refund_list,omitempty" xml:"refund_list>refund_detail,omitempty"`
	// 按查询条件查到的记录总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaofenxiaorefundqueryAPIResponseModel is 批量查询采购退款 成功返回结果

type TaobaofenxiaorequisitionsgetAPIRequest added in v1.3.1

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

TaobaofenxiaorequisitionsgetAPIRequest 合作申请查询 API请求 taobao.fenxiao.requisitions.get

合作申请查询

func NewTaobaofenxiaorequisitionsgetRequest added in v1.3.1

func NewTaobaofenxiaorequisitionsgetRequest() *TaobaofenxiaorequisitionsgetAPIRequest

NewTaobaofenxiaorequisitionsgetRequest 初始化TaobaofenxiaorequisitionsgetAPIRequest对象

func (TaobaofenxiaorequisitionsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaorequisitionsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaorequisitionsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaorequisitionsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaorequisitionsgetAPIRequest) GetApplyEnd added in v1.3.1

GetApplyEnd ApplyEnd Getter

func (TaobaofenxiaorequisitionsgetAPIRequest) GetApplyStart added in v1.3.1

GetApplyStart ApplyStart Getter

func (TaobaofenxiaorequisitionsgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaofenxiaorequisitionsgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaorequisitionsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaorequisitionsgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (*TaobaofenxiaorequisitionsgetAPIRequest) SetApplyEnd added in v1.3.1

func (r *TaobaofenxiaorequisitionsgetAPIRequest) SetApplyEnd(_applyEnd string) error

SetApplyEnd is ApplyEnd Setter 申请结束时间yyyy-MM-dd

func (*TaobaofenxiaorequisitionsgetAPIRequest) SetApplyStart added in v1.3.1

func (r *TaobaofenxiaorequisitionsgetAPIRequest) SetApplyStart(_applyStart string) error

SetApplyStart is ApplyStart Setter 申请开始时间yyyy-MM-dd

func (*TaobaofenxiaorequisitionsgetAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaofenxiaorequisitionsgetAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码(大于0的整数,默认1)

func (*TaobaofenxiaorequisitionsgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaorequisitionsgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页记录数(默认20,最大50)

func (*TaobaofenxiaorequisitionsgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaofenxiaorequisitionsgetAPIRequest) SetStatus(_status int64) error

SetStatus is Status Setter 申请状态(1-申请中、2-成功、3-被退回、4-已撤消、5-过期)

type TaobaofenxiaorequisitionsgetAPIResponse added in v1.3.1

type TaobaofenxiaorequisitionsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaorequisitionsgetAPIResponseModel
}

TaobaofenxiaorequisitionsgetAPIResponse 合作申请查询 API返回值 taobao.fenxiao.requisitions.get

合作申请查询

type TaobaofenxiaorequisitionsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaorequisitionsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_requisitions_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 合作申请
	Requisitions []Requisition `json:"requisitions,omitempty" xml:"requisitions>requisition,omitempty"`
	// 结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 操作是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaofenxiaorequisitionsgetAPIResponseModel is 合作申请查询 成功返回结果

type TaobaofenxiaotradeprepayofflineaddAPIRequest added in v1.3.1

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

TaobaofenxiaotradeprepayofflineaddAPIRequest 线下预存款流水增加 API请求 taobao.fenxiao.trade.prepay.offline.add

渠道分销供应商上传线下流水预存款(增加)

func NewTaobaofenxiaotradeprepayofflineaddRequest added in v1.3.1

func NewTaobaofenxiaotradeprepayofflineaddRequest() *TaobaofenxiaotradeprepayofflineaddAPIRequest

NewTaobaofenxiaotradeprepayofflineaddRequest 初始化TaobaofenxiaotradeprepayofflineaddAPIRequest对象

func (TaobaofenxiaotradeprepayofflineaddAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaotradeprepayofflineaddAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaotradeprepayofflineaddAPIRequest) GetOfflineAddPrepayParam added in v1.3.1

GetOfflineAddPrepayParam OfflineAddPrepayParam Getter

func (TaobaofenxiaotradeprepayofflineaddAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaotradeprepayofflineaddAPIRequest) SetOfflineAddPrepayParam added in v1.3.1

func (r *TaobaofenxiaotradeprepayofflineaddAPIRequest) SetOfflineAddPrepayParam(_offlineAddPrepayParam *TopOfflineAddPrepayDto) error

SetOfflineAddPrepayParam is OfflineAddPrepayParam Setter 增加流水

type TaobaofenxiaotradeprepayofflineaddAPIResponse added in v1.3.1

type TaobaofenxiaotradeprepayofflineaddAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaotradeprepayofflineaddAPIResponseModel
}

TaobaofenxiaotradeprepayofflineaddAPIResponse 线下预存款流水增加 API返回值 taobao.fenxiao.trade.prepay.offline.add

渠道分销供应商上传线下流水预存款(增加)

type TaobaofenxiaotradeprepayofflineaddAPIResponseModel added in v1.3.1

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

TaobaofenxiaotradeprepayofflineaddAPIResponseModel is 线下预存款流水增加 成功返回结果

type TaobaofenxiaotradeprepayofflineaddResultTopDo added in v1.3.1

type TaobaofenxiaotradeprepayofflineaddResultTopDo struct {
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaofenxiaotradeprepayofflineaddResultTopDo 结构体

type TaobaofenxiaotradeprepayofflinereduceAPIRequest added in v1.3.1

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

TaobaofenxiaotradeprepayofflinereduceAPIRequest 渠道分销供应商上传线下流水预存款(减少) API请求 taobao.fenxiao.trade.prepay.offline.reduce

渠道分销供应商上传线下流水预存款(减少)

func NewTaobaofenxiaotradeprepayofflinereduceRequest added in v1.3.1

func NewTaobaofenxiaotradeprepayofflinereduceRequest() *TaobaofenxiaotradeprepayofflinereduceAPIRequest

NewTaobaofenxiaotradeprepayofflinereduceRequest 初始化TaobaofenxiaotradeprepayofflinereduceAPIRequest对象

func (TaobaofenxiaotradeprepayofflinereduceAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaotradeprepayofflinereduceAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaotradeprepayofflinereduceAPIRequest) GetOfflineReducePrepayParam added in v1.3.1

GetOfflineReducePrepayParam OfflineReducePrepayParam Getter

func (TaobaofenxiaotradeprepayofflinereduceAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaofenxiaotradeprepayofflinereduceAPIRequest) SetOfflineReducePrepayParam added in v1.3.1

func (r *TaobaofenxiaotradeprepayofflinereduceAPIRequest) SetOfflineReducePrepayParam(_offlineReducePrepayParam *TopOfflineReducePrepayDto) error

SetOfflineReducePrepayParam is OfflineReducePrepayParam Setter 减少流水

type TaobaofenxiaotradeprepayofflinereduceAPIResponse added in v1.3.1

type TaobaofenxiaotradeprepayofflinereduceAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaotradeprepayofflinereduceAPIResponseModel
}

TaobaofenxiaotradeprepayofflinereduceAPIResponse 渠道分销供应商上传线下流水预存款(减少) API返回值 taobao.fenxiao.trade.prepay.offline.reduce

渠道分销供应商上传线下流水预存款(减少)

type TaobaofenxiaotradeprepayofflinereduceAPIResponseModel added in v1.3.1

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

TaobaofenxiaotradeprepayofflinereduceAPIResponseModel is 渠道分销供应商上传线下流水预存款(减少) 成功返回结果

type TaobaofenxiaotradeprepayofflinereduceResultTopDo added in v1.3.1

type TaobaofenxiaotradeprepayofflinereduceResultTopDo struct {
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaofenxiaotradeprepayofflinereduceResultTopDo 结构体

type TaobaofenxiaoyphordergetAPIRequest added in v1.3.1

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

TaobaofenxiaoyphordergetAPIRequest 一盘货商家单个查询采购单信息 API请求 taobao.fenxiao.yph.order.get

一盘货商家单个查询采购单信息

func NewTaobaofenxiaoyphordergetRequest added in v1.3.1

func NewTaobaofenxiaoyphordergetRequest() *TaobaofenxiaoyphordergetAPIRequest

NewTaobaofenxiaoyphordergetRequest 初始化TaobaofenxiaoyphordergetAPIRequest对象

func (TaobaofenxiaoyphordergetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoyphordergetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoyphordergetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoyphordergetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoyphordergetAPIRequest) GetPurchaseOrderId added in v1.3.1

func (r TaobaofenxiaoyphordergetAPIRequest) GetPurchaseOrderId() int64

GetPurchaseOrderId PurchaseOrderId Getter

func (TaobaofenxiaoyphordergetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoyphordergetAPIRequest) GetUserRoleType added in v1.3.1

func (r TaobaofenxiaoyphordergetAPIRequest) GetUserRoleType() int64

GetUserRoleType UserRoleType Getter

func (*TaobaofenxiaoyphordergetAPIRequest) SetPurchaseOrderId added in v1.3.1

func (r *TaobaofenxiaoyphordergetAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error

SetPurchaseOrderId is PurchaseOrderId Setter 采购单id,单个查询此参数必填

func (*TaobaofenxiaoyphordergetAPIRequest) SetUserRoleType added in v1.3.1

func (r *TaobaofenxiaoyphordergetAPIRequest) SetUserRoleType(_userRoleType int64) error

SetUserRoleType is UserRoleType Setter 当前查询用户的角色 当不指定时,默认为供应商 供应商:2,分销商:1

type TaobaofenxiaoyphordergetAPIResponse added in v1.3.1

type TaobaofenxiaoyphordergetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoyphordergetAPIResponseModel
}

TaobaofenxiaoyphordergetAPIResponse 一盘货商家单个查询采购单信息 API返回值 taobao.fenxiao.yph.order.get

一盘货商家单个查询采购单信息

type TaobaofenxiaoyphordergetAPIResponseModel added in v1.3.1

type TaobaofenxiaoyphordergetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_yph_order_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回错误信息
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 操作时间
	OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"`
	// 返回的采购单对象
	PurchaseOrder *PurchaseOrder `json:"purchase_order,omitempty" xml:"purchase_order,omitempty"`
}

TaobaofenxiaoyphordergetAPIResponseModel is 一盘货商家单个查询采购单信息 成功返回结果

type TaobaofenxiaoyphordersgetAPIRequest added in v1.3.1

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

TaobaofenxiaoyphordersgetAPIRequest 批量查询一盘货采购单信息 API请求 taobao.fenxiao.yph.orders.get

一盘货商家批量查询采购单信息

func NewTaobaofenxiaoyphordersgetRequest added in v1.3.1

func NewTaobaofenxiaoyphordersgetRequest() *TaobaofenxiaoyphordersgetAPIRequest

NewTaobaofenxiaoyphordersgetRequest 初始化TaobaofenxiaoyphordersgetAPIRequest对象

func (TaobaofenxiaoyphordersgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoyphordersgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoyphordersgetAPIRequest) GetBeginTime added in v1.3.1

GetBeginTime BeginTime Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetChannelCodes added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetChannelCodes() int64

GetChannelCodes ChannelCodes Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetEndTime added in v1.3.1

GetEndTime EndTime Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetOrderStatus added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetOrderStatus() int64

GetOrderStatus OrderStatus Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetPageNum added in v1.3.1

GetPageNum PageNum Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoyphordersgetAPIRequest) GetRefundStatus added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetRefundStatus() int64

GetRefundStatus RefundStatus Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetTradeTypes added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetTradeTypes() int64

GetTradeTypes TradeTypes Getter

func (TaobaofenxiaoyphordersgetAPIRequest) GetUserRoleType added in v1.3.1

func (r TaobaofenxiaoyphordersgetAPIRequest) GetUserRoleType() int64

GetUserRoleType UserRoleType Getter

func (*TaobaofenxiaoyphordersgetAPIRequest) SetBeginTime added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetBeginTime(_beginTime string) error

SetBeginTime is BeginTime Setter 采购单最后更新时间-起始时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。时间跨度必须在0-7天。

func (*TaobaofenxiaoyphordersgetAPIRequest) SetChannelCodes added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetChannelCodes(_channelCodes int64) error

SetChannelCodes is ChannelCodes Setter 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场;302-猫超一盘货;506-虾选一盘货

func (*TaobaofenxiaoyphordersgetAPIRequest) SetEndTime added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetEndTime(_endTime string) error

SetEndTime is EndTime Setter 采购单最后更新时间-结束时间,格式 yyyy-MM-dd HH:mm:ss 支持到秒的查询。时间跨度必须在0-7天。

func (*TaobaofenxiaoyphordersgetAPIRequest) SetOrderStatus added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetOrderStatus(_orderStatus int64) error

SetOrderStatus is OrderStatus Setter 主采购单交易状态-数字表示,枚举:1-已付款,待发货;2-待确认收款;4-等待买家付款;5-已付款,已发货;6-交易成功;7-交易关闭;8-已付款;

func (*TaobaofenxiaoyphordersgetAPIRequest) SetPageNum added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetPageNum(_pageNum int64) error

SetPageNum is PageNum Setter 页号,不填则默认为1

func (*TaobaofenxiaoyphordersgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数。(每页条数不超过50条)

func (*TaobaofenxiaoyphordersgetAPIRequest) SetRefundStatus added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetRefundStatus(_refundStatus int64) error

SetRefundStatus is RefundStatus Setter 主采购单退款状态-数字表示,枚举:9-没有过申请退款;10-退款活动中,至少有一个子单在退款中;11-退款结束,即曾经发生过退款且所有退款都完结了

func (*TaobaofenxiaoyphordersgetAPIRequest) SetTradeTypes added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetTradeTypes(_tradeTypes int64) error

SetTradeTypes is TradeTypes Setter 查询的经营模式,当不指定时,默认查询代销订单 代销:1 经销:2 寄售(自营寄售):5 平台寄售:6

func (*TaobaofenxiaoyphordersgetAPIRequest) SetUserRoleType added in v1.3.1

func (r *TaobaofenxiaoyphordersgetAPIRequest) SetUserRoleType(_userRoleType int64) error

SetUserRoleType is UserRoleType Setter 当前查询用户的角色 当不指定时,默认为供应商 供应商:2,分销商:1

type TaobaofenxiaoyphordersgetAPIResponse added in v1.3.1

type TaobaofenxiaoyphordersgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoyphordersgetAPIResponseModel
}

TaobaofenxiaoyphordersgetAPIResponse 批量查询一盘货采购单信息 API返回值 taobao.fenxiao.yph.orders.get

一盘货商家批量查询采购单信息

type TaobaofenxiaoyphordersgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoyphordersgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_yph_orders_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 采购单及子采购单信息
	PurchaseOrders []OrderList `json:"purchase_orders,omitempty" xml:"purchase_orders>order_list,omitempty"`
	// 错误说明
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 接口操作时间
	OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"`
	// 接口返回错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 采购单查询总数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaofenxiaoyphordersgetAPIResponseModel is 批量查询一盘货采购单信息 成功返回结果

type TaobaofenxiaoyphrefundgetAPIRequest added in v1.3.1

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

TaobaofenxiaoyphrefundgetAPIRequest 一盘货商家单个查询退款单信息 API请求 taobao.fenxiao.yph.refund.get

一盘货商家单个查询退款单信息

func NewTaobaofenxiaoyphrefundgetRequest added in v1.3.1

func NewTaobaofenxiaoyphrefundgetRequest() *TaobaofenxiaoyphrefundgetAPIRequest

NewTaobaofenxiaoyphrefundgetRequest 初始化TaobaofenxiaoyphrefundgetAPIRequest对象

func (TaobaofenxiaoyphrefundgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoyphrefundgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoyphrefundgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoyphrefundgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoyphrefundgetAPIRequest) GetQueryB2cRefund added in v1.3.1

func (r TaobaofenxiaoyphrefundgetAPIRequest) GetQueryB2cRefund() bool

GetQueryB2cRefund QueryB2cRefund Getter

func (TaobaofenxiaoyphrefundgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoyphrefundgetAPIRequest) GetRefundId added in v1.3.1

GetRefundId RefundId Getter

func (*TaobaofenxiaoyphrefundgetAPIRequest) SetQueryB2cRefund added in v1.3.1

func (r *TaobaofenxiaoyphrefundgetAPIRequest) SetQueryB2cRefund(_queryB2cRefund bool) error

SetQueryB2cRefund is QueryB2cRefund Setter 是否查询前台消费者退款

func (*TaobaofenxiaoyphrefundgetAPIRequest) SetRefundId added in v1.3.1

func (r *TaobaofenxiaoyphrefundgetAPIRequest) SetRefundId(_refundId int64) error

SetRefundId is RefundId Setter 分销退款单id,此参数必填

type TaobaofenxiaoyphrefundgetAPIResponse added in v1.3.1

type TaobaofenxiaoyphrefundgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoyphrefundgetAPIResponseModel
}

TaobaofenxiaoyphrefundgetAPIResponse 一盘货商家单个查询退款单信息 API返回值 taobao.fenxiao.yph.refund.get

一盘货商家单个查询退款单信息

type TaobaofenxiaoyphrefundgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoyphrefundgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_yph_refund_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回值错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回值错误信息
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 操作时间
	OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"`
	// 退款单查询详情
	RefundDetail *RefundDetail `json:"refund_detail,omitempty" xml:"refund_detail,omitempty"`
}

TaobaofenxiaoyphrefundgetAPIResponseModel is 一盘货商家单个查询退款单信息 成功返回结果

type TaobaofenxiaoyphrefundsgetAPIRequest added in v1.3.1

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

TaobaofenxiaoyphrefundsgetAPIRequest 一盘货商家批量查询退款单信息 API请求 taobao.fenxiao.yph.refunds.get

一盘货商家批量查询退款单信息

func NewTaobaofenxiaoyphrefundsgetRequest added in v1.3.1

func NewTaobaofenxiaoyphrefundsgetRequest() *TaobaofenxiaoyphrefundsgetAPIRequest

NewTaobaofenxiaoyphrefundsgetRequest 初始化TaobaofenxiaoyphrefundsgetAPIRequest对象

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetChannelCodes added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetChannelCodes() int64

GetChannelCodes ChannelCodes Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetModifiedBeginTime added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetModifiedBeginTime() string

GetModifiedBeginTime ModifiedBeginTime Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetModifiedEndTime added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetModifiedEndTime() string

GetModifiedEndTime ModifiedEndTime Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetPageNum added in v1.3.1

GetPageNum PageNum Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetPurchaseOrderId added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetPurchaseOrderId() int64

GetPurchaseOrderId PurchaseOrderId Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetQueryB2cRefund added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetQueryB2cRefund() bool

GetQueryB2cRefund QueryB2cRefund Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetRefundStatusList added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetRefundStatusList() int64

GetRefundStatusList RefundStatusList Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetRefundTypeList added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetRefundTypeList() int64

GetRefundTypeList RefundTypeList Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetSubOrderId added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetSubOrderId() int64

GetSubOrderId SubOrderId Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetTradeTypes added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetTradeTypes() int64

GetTradeTypes TradeTypes Getter

func (TaobaofenxiaoyphrefundsgetAPIRequest) GetUserRoleType added in v1.3.1

func (r TaobaofenxiaoyphrefundsgetAPIRequest) GetUserRoleType() int64

GetUserRoleType UserRoleType Getter

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetChannelCodes added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetChannelCodes(_channelCodes int64) error

SetChannelCodes is ChannelCodes Setter 渠道市场编码,可批量指定。 当不指定时,按照配置的分销市场生效 渠道编码枚举:1-供销平台(淘宝);2-供销平台(天猫);3-供销平台(天猫超市);5-供销平台(淘乡甜);110001-供销平台(全球购);110007-淘分销;200002-消费电子市场;302-猫超一盘货;506-虾选一盘货;27-优品一盘货

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetModifiedBeginTime added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetModifiedBeginTime(_modifiedBeginTime string) error

SetModifiedBeginTime is ModifiedBeginTime Setter 退款单最后修改时间,查询最后修改时间在modify_begin_time到modify_end_time时间间隔内的所有退款单,时间间隔不能超过30天,格式 yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetModifiedEndTime added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetModifiedEndTime(_modifiedEndTime string) error

SetModifiedEndTime is ModifiedEndTime Setter 退款单最后修改时间,查询最后修改时间在modify_begin_time到modify_end_time时间间隔内的所有退款单,时间间隔不能超过30天,格式 yyyy-MM-dd HH:mm:ss

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetPageNum added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetPageNum(_pageNum int64) error

SetPageNum is PageNum Setter 页号,不填则默认为1

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数,必填,不可超过50条

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetPurchaseOrderId added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetPurchaseOrderId(_purchaseOrderId int64) error

SetPurchaseOrderId is PurchaseOrderId Setter 分销采购单id

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetQueryB2cRefund added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetQueryB2cRefund(_queryB2cRefund bool) error

SetQueryB2cRefund is QueryB2cRefund Setter 是否查询前台消费者退款

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetRefundStatusList added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetRefundStatusList(_refundStatusList int64) error

SetRefundStatusList is RefundStatusList Setter 退款单状态,10-已撤回;20-等待卖家同意;30-卖家拒绝退款,等待买家修改;40-等待买家退货;50-买家退货,等待卖家确认收货;60-卖家拒绝收货;90-等待系统打款;100-退款成功;200-退款关闭

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetRefundTypeList added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetRefundTypeList(_refundTypeList int64) error

SetRefundTypeList is RefundTypeList Setter 退款单类型,10-未发货退款;20-已发货退货;30-已发货仅退款;40-拒收

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetSubOrderId added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetSubOrderId(_subOrderId int64) error

SetSubOrderId is SubOrderId Setter 分销采购单子单id

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetTradeTypes added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetTradeTypes(_tradeTypes int64) error

SetTradeTypes is TradeTypes Setter 交易模式(分销方式):1-代销;2-经销;5-寄售;6-平台寄售

func (*TaobaofenxiaoyphrefundsgetAPIRequest) SetUserRoleType added in v1.3.1

func (r *TaobaofenxiaoyphrefundsgetAPIRequest) SetUserRoleType(_userRoleType int64) error

SetUserRoleType is UserRoleType Setter 当前查询用户的角色 当不指定时,默认为供应商 供应商:2,分销商:1

type TaobaofenxiaoyphrefundsgetAPIResponse added in v1.3.1

type TaobaofenxiaoyphrefundsgetAPIResponse struct {
	model.CommonResponse
	TaobaofenxiaoyphrefundsgetAPIResponseModel
}

TaobaofenxiaoyphrefundsgetAPIResponse 一盘货商家批量查询退款单信息 API返回值 taobao.fenxiao.yph.refunds.get

一盘货商家批量查询退款单信息

type TaobaofenxiaoyphrefundsgetAPIResponseModel added in v1.3.1

type TaobaofenxiaoyphrefundsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"fenxiao_yph_refunds_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款单详情列表
	RefundDetailList []RefundDetailList `json:"refund_detail_list,omitempty" xml:"refund_detail_list>refund_detail_list,omitempty"`
	// 操作时间
	OptTime string `json:"opt_time,omitempty" xml:"opt_time,omitempty"`
	// 返回结果错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 返回结果错误信息
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 退款单查询总条数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

TaobaofenxiaoyphrefundsgetAPIResponseModel is 一盘货商家批量查询退款单信息 成功返回结果

type TaobaoinventoryadjustexternalAPIRequest added in v1.3.1

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

TaobaoinventoryadjustexternalAPIRequest 非交易库存调整单 API请求 taobao.inventory.adjust.external

商家非交易调整库存,调拨出库、盘点等时调用

func NewTaobaoinventoryadjustexternalRequest added in v1.3.1

func NewTaobaoinventoryadjustexternalRequest() *TaobaoinventoryadjustexternalAPIRequest

NewTaobaoinventoryadjustexternalRequest 初始化TaobaoinventoryadjustexternalAPIRequest对象

func (TaobaoinventoryadjustexternalAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventoryadjustexternalAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventoryadjustexternalAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventoryadjustexternalAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventoryadjustexternalAPIRequest) GetBizType added in v1.3.1

GetBizType BizType Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetBizUniqueCode added in v1.3.1

func (r TaobaoinventoryadjustexternalAPIRequest) GetBizUniqueCode() string

GetBizUniqueCode BizUniqueCode Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetItems added in v1.3.1

GetItems Items Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetOccupyOperateCode added in v1.3.1

func (r TaobaoinventoryadjustexternalAPIRequest) GetOccupyOperateCode() string

GetOccupyOperateCode OccupyOperateCode Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetOperateTime added in v1.3.1

GetOperateTime OperateTime Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetOperateType added in v1.3.1

GetOperateType OperateType Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventoryadjustexternalAPIRequest) GetReduceType added in v1.3.1

GetReduceType ReduceType Getter

func (TaobaoinventoryadjustexternalAPIRequest) GetStoreCode added in v1.3.1

GetStoreCode StoreCode Getter

func (*TaobaoinventoryadjustexternalAPIRequest) SetBizType added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetBizType(_bizType string) error

SetBizType is BizType Setter 外部订单类型, BALANCE:盘点、NON_TAOBAO_TRADE:非淘宝交易、ALLOCATE:调拨、OTHERS:其他

func (*TaobaoinventoryadjustexternalAPIRequest) SetBizUniqueCode added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetBizUniqueCode(_bizUniqueCode string) error

SetBizUniqueCode is BizUniqueCode Setter 商家外部定单号

func (*TaobaoinventoryadjustexternalAPIRequest) SetItems added in v1.3.1

SetItems is Items Setter 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,”direction”: 1: 盘盈 -1: 盘亏,参数可选,"quantity":"数量(正数)"}]

func (*TaobaoinventoryadjustexternalAPIRequest) SetOccupyOperateCode added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetOccupyOperateCode(_occupyOperateCode string) error

SetOccupyOperateCode is OccupyOperateCode Setter 库存占用返回的操作码.operate_type 为OUTBOUND时,如果是确认事先进行过的库存占用,需要传入当时返回的操作码,并且明细必须与申请时保持一致

func (*TaobaoinventoryadjustexternalAPIRequest) SetOperateTime added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetOperateTime(_operateTime string) error

SetOperateTime is OperateTime Setter 业务操作时间

func (*TaobaoinventoryadjustexternalAPIRequest) SetOperateType added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetOperateType(_operateType string) error

SetOperateType is OperateType Setter test

func (*TaobaoinventoryadjustexternalAPIRequest) SetReduceType added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetReduceType(_reduceType string) error

SetReduceType is ReduceType Setter test

func (*TaobaoinventoryadjustexternalAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoinventoryadjustexternalAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 商家仓库编码

type TaobaoinventoryadjustexternalAPIResponse added in v1.3.1

type TaobaoinventoryadjustexternalAPIResponse struct {
	model.CommonResponse
	TaobaoinventoryadjustexternalAPIResponseModel
}

TaobaoinventoryadjustexternalAPIResponse 非交易库存调整单 API返回值 taobao.inventory.adjust.external

商家非交易调整库存,调拨出库、盘点等时调用

type TaobaoinventoryadjustexternalAPIResponseModel added in v1.3.1

type TaobaoinventoryadjustexternalAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_adjust_external_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提示信息
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
	// 操作返回码
	OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"`
}

TaobaoinventoryadjustexternalAPIResponseModel is 非交易库存调整单 成功返回结果

type TaobaoinventoryadjusttradeAPIRequest added in v1.3.1

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

TaobaoinventoryadjusttradeAPIRequest 交易库存调整单 API请求 taobao.inventory.adjust.trade

商家交易调整库存,淘宝交易、B2B经销等

func NewTaobaoinventoryadjusttradeRequest added in v1.3.1

func NewTaobaoinventoryadjusttradeRequest() *TaobaoinventoryadjusttradeAPIRequest

NewTaobaoinventoryadjusttradeRequest 初始化TaobaoinventoryadjusttradeAPIRequest对象

func (TaobaoinventoryadjusttradeAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventoryadjusttradeAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventoryadjusttradeAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventoryadjusttradeAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventoryadjusttradeAPIRequest) GetBizUniqueCode added in v1.3.1

func (r TaobaoinventoryadjusttradeAPIRequest) GetBizUniqueCode() string

GetBizUniqueCode BizUniqueCode Getter

func (TaobaoinventoryadjusttradeAPIRequest) GetItems added in v1.3.1

GetItems Items Getter

func (TaobaoinventoryadjusttradeAPIRequest) GetOperateTime added in v1.3.1

func (r TaobaoinventoryadjusttradeAPIRequest) GetOperateTime() string

GetOperateTime OperateTime Getter

func (TaobaoinventoryadjusttradeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventoryadjusttradeAPIRequest) GetTbOrderType added in v1.3.1

func (r TaobaoinventoryadjusttradeAPIRequest) GetTbOrderType() string

GetTbOrderType TbOrderType Getter

func (*TaobaoinventoryadjusttradeAPIRequest) SetBizUniqueCode added in v1.3.1

func (r *TaobaoinventoryadjusttradeAPIRequest) SetBizUniqueCode(_bizUniqueCode string) error

SetBizUniqueCode is BizUniqueCode Setter 商家外部定单号

func (*TaobaoinventoryadjusttradeAPIRequest) SetItems added in v1.3.1

SetItems is Items Setter 商品初始库存信息: [{ "TBOrderCode”:”淘宝交易号”,"TBSubOrderCode ":"淘宝子交易单号,赠品可以不填","”isGift”:”TRUE或者FALSE,是否赠品”,storeCode":"商家仓库编码"," scItemId ":"商品后端ID","scItemCode":"商品商家编码"," originScItemId ":"原商品ID","inventoryType":"","quantity":"111","isComplete":"TRUE或者FALSE,是否全部确认出库"}]

func (*TaobaoinventoryadjusttradeAPIRequest) SetOperateTime added in v1.3.1

func (r *TaobaoinventoryadjusttradeAPIRequest) SetOperateTime(_operateTime string) error

SetOperateTime is OperateTime Setter 业务操作时间

func (*TaobaoinventoryadjusttradeAPIRequest) SetTbOrderType added in v1.3.1

func (r *TaobaoinventoryadjusttradeAPIRequest) SetTbOrderType(_tbOrderType string) error

SetTbOrderType is TbOrderType Setter 订单类型:B2C、B2B

type TaobaoinventoryadjusttradeAPIResponse added in v1.3.1

type TaobaoinventoryadjusttradeAPIResponse struct {
	model.CommonResponse
	TaobaoinventoryadjusttradeAPIResponseModel
}

TaobaoinventoryadjusttradeAPIResponse 交易库存调整单 API返回值 taobao.inventory.adjust.trade

商家交易调整库存,淘宝交易、B2B经销等

type TaobaoinventoryadjusttradeAPIResponseModel added in v1.3.1

type TaobaoinventoryadjusttradeAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_adjust_trade_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提示信息
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
	// 操作返回码
	OperateCode string `json:"operate_code,omitempty" xml:"operate_code,omitempty"`
}

TaobaoinventoryadjusttradeAPIResponseModel is 交易库存调整单 成功返回结果

type TaobaoinventoryinitialAPIRequest added in v1.3.1

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

TaobaoinventoryinitialAPIRequest 库存初始化 API请求 taobao.inventory.initial

建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账。

func NewTaobaoinventoryinitialRequest added in v1.3.1

func NewTaobaoinventoryinitialRequest() *TaobaoinventoryinitialAPIRequest

NewTaobaoinventoryinitialRequest 初始化TaobaoinventoryinitialAPIRequest对象

func (TaobaoinventoryinitialAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventoryinitialAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventoryinitialAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventoryinitialAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventoryinitialAPIRequest) GetItems added in v1.3.1

GetItems Items Getter

func (TaobaoinventoryinitialAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventoryinitialAPIRequest) GetStoreCode added in v1.3.1

func (r TaobaoinventoryinitialAPIRequest) GetStoreCode() string

GetStoreCode StoreCode Getter

func (*TaobaoinventoryinitialAPIRequest) SetItems added in v1.3.1

func (r *TaobaoinventoryinitialAPIRequest) SetItems(_items string) error

SetItems is Items Setter 商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义","quantity":"数量"}]

func (*TaobaoinventoryinitialAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoinventoryinitialAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 商家仓库编码

type TaobaoinventoryinitialAPIResponse added in v1.3.1

type TaobaoinventoryinitialAPIResponse struct {
	model.CommonResponse
	TaobaoinventoryinitialAPIResponseModel
}

TaobaoinventoryinitialAPIResponse 库存初始化 API返回值 taobao.inventory.initial

建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账。

type TaobaoinventoryinitialAPIResponseModel added in v1.3.1

type TaobaoinventoryinitialAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_initial_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提示信息
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
}

TaobaoinventoryinitialAPIResponseModel is 库存初始化 成功返回结果

type TaobaoinventoryinitialitemAPIRequest added in v1.3.1

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

TaobaoinventoryinitialitemAPIRequest 商品库存初始化 API请求 taobao.inventory.initial.item

建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 商家仓商品初始化在各个仓中库存

func NewTaobaoinventoryinitialitemRequest added in v1.3.1

func NewTaobaoinventoryinitialitemRequest() *TaobaoinventoryinitialitemAPIRequest

NewTaobaoinventoryinitialitemRequest 初始化TaobaoinventoryinitialitemAPIRequest对象

func (TaobaoinventoryinitialitemAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventoryinitialitemAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventoryinitialitemAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventoryinitialitemAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventoryinitialitemAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventoryinitialitemAPIRequest) GetScItemId added in v1.3.1

GetScItemId ScItemId Getter

func (TaobaoinventoryinitialitemAPIRequest) GetStoreInventorys added in v1.3.1

func (r TaobaoinventoryinitialitemAPIRequest) GetStoreInventorys() string

GetStoreInventorys StoreInventorys Getter

func (*TaobaoinventoryinitialitemAPIRequest) SetScItemId added in v1.3.1

func (r *TaobaoinventoryinitialitemAPIRequest) SetScItemId(_scItemId int64) error

SetScItemId is ScItemId Setter 后端商品id

func (*TaobaoinventoryinitialitemAPIRequest) SetStoreInventorys added in v1.3.1

func (r *TaobaoinventoryinitialitemAPIRequest) SetStoreInventorys(_storeInventorys string) error

SetStoreInventorys is StoreInventorys Setter 商品初始库存信息: [{"storeCode":"必选,商家仓库编号","inventoryType":"可选,库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义,默认为1","quantity":"必选,数量"}]

type TaobaoinventoryinitialitemAPIResponse added in v1.3.1

type TaobaoinventoryinitialitemAPIResponse struct {
	model.CommonResponse
	TaobaoinventoryinitialitemAPIResponseModel
}

TaobaoinventoryinitialitemAPIResponse 商品库存初始化 API返回值 taobao.inventory.initial.item

建议使用新接口:taobao.inventory.merchant.adjust ,该接口会逐步停用。 商家仓商品初始化在各个仓中库存

type TaobaoinventoryinitialitemAPIResponseModel added in v1.3.1

type TaobaoinventoryinitialitemAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_initial_item_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提示信息
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
}

TaobaoinventoryinitialitemAPIResponseModel is 商品库存初始化 成功返回结果

type TaobaoinventoryqueryAPIRequest added in v1.3.1

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

TaobaoinventoryqueryAPIRequest 查询商品库存信息 API请求 taobao.inventory.query

建议使用新接口:tmall.inventory.query.forstore ,新ISV不推荐使用。 商家查询商品总体库存信息

func NewTaobaoinventoryqueryRequest added in v1.3.1

func NewTaobaoinventoryqueryRequest() *TaobaoinventoryqueryAPIRequest

NewTaobaoinventoryqueryRequest 初始化TaobaoinventoryqueryAPIRequest对象

func (TaobaoinventoryqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventoryqueryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventoryqueryAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventoryqueryAPIRequest) GetScItemCodes added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetScItemCodes() string

GetScItemCodes ScItemCodes Getter

func (TaobaoinventoryqueryAPIRequest) GetScItemIds added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetScItemIds() string

GetScItemIds ScItemIds Getter

func (TaobaoinventoryqueryAPIRequest) GetSellerNick added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetSellerNick() string

GetSellerNick SellerNick Getter

func (TaobaoinventoryqueryAPIRequest) GetStoreCodes added in v1.3.1

func (r TaobaoinventoryqueryAPIRequest) GetStoreCodes() string

GetStoreCodes StoreCodes Getter

func (*TaobaoinventoryqueryAPIRequest) SetScItemCodes added in v1.3.1

func (r *TaobaoinventoryqueryAPIRequest) SetScItemCodes(_scItemCodes string) error

SetScItemCodes is ScItemCodes Setter 后端商品的商家编码列表,控制到50个

func (*TaobaoinventoryqueryAPIRequest) SetScItemIds added in v1.3.1

func (r *TaobaoinventoryqueryAPIRequest) SetScItemIds(_scItemIds string) error

SetScItemIds is ScItemIds Setter 后端商品ID 列表,控制到50个

func (*TaobaoinventoryqueryAPIRequest) SetSellerNick added in v1.3.1

func (r *TaobaoinventoryqueryAPIRequest) SetSellerNick(_sellerNick string) error

SetSellerNick is SellerNick Setter 卖家昵称

func (*TaobaoinventoryqueryAPIRequest) SetStoreCodes added in v1.3.1

func (r *TaobaoinventoryqueryAPIRequest) SetStoreCodes(_storeCodes string) error

SetStoreCodes is StoreCodes Setter 仓库列表:GLY001^GLY002

type TaobaoinventoryqueryAPIResponse added in v1.3.1

type TaobaoinventoryqueryAPIResponse struct {
	model.CommonResponse
	TaobaoinventoryqueryAPIResponseModel
}

TaobaoinventoryqueryAPIResponse 查询商品库存信息 API返回值 taobao.inventory.query

建议使用新接口:tmall.inventory.query.forstore ,新ISV不推荐使用。 商家查询商品总体库存信息

type TaobaoinventoryqueryAPIResponseModel added in v1.3.1

type TaobaoinventoryqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 商品总体库存信息
	ItemInventorys []InventorySum `json:"item_inventorys,omitempty" xml:"item_inventorys>inventory_sum,omitempty"`
	// 提示信息,提示不存在的后端商品
	TipInfos []TipInfo `json:"tip_infos,omitempty" xml:"tip_infos>tip_info,omitempty"`
}

TaobaoinventoryqueryAPIResponseModel is 查询商品库存信息 成功返回结果

type TaobaoinventorystoremanageAPIRequest added in v1.3.1

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

TaobaoinventorystoremanageAPIRequest 创建或更新仓库 API请求 taobao.inventory.store.manage

创建商家仓或者更新商家仓信息

func NewTaobaoinventorystoremanageRequest added in v1.3.1

func NewTaobaoinventorystoremanageRequest() *TaobaoinventorystoremanageAPIRequest

NewTaobaoinventorystoremanageRequest 初始化TaobaoinventorystoremanageAPIRequest对象

func (TaobaoinventorystoremanageAPIRequest) GetAddress added in v1.3.1

GetAddress Address Getter

func (TaobaoinventorystoremanageAPIRequest) GetAddressAreaName added in v1.3.1

func (r TaobaoinventorystoremanageAPIRequest) GetAddressAreaName() string

GetAddressAreaName AddressAreaName Getter

func (TaobaoinventorystoremanageAPIRequest) GetAliasName added in v1.3.1

GetAliasName AliasName Getter

func (TaobaoinventorystoremanageAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventorystoremanageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventorystoremanageAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventorystoremanageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventorystoremanageAPIRequest) GetContact added in v1.3.1

GetContact Contact Getter

func (TaobaoinventorystoremanageAPIRequest) GetOperateType added in v1.3.1

func (r TaobaoinventorystoremanageAPIRequest) GetOperateType() string

GetOperateType OperateType Getter

func (TaobaoinventorystoremanageAPIRequest) GetPhone added in v1.3.1

GetPhone Phone Getter

func (TaobaoinventorystoremanageAPIRequest) GetPostcode added in v1.3.1

GetPostcode Postcode Getter

func (TaobaoinventorystoremanageAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventorystoremanageAPIRequest) GetStoreCode added in v1.3.1

GetStoreCode StoreCode Getter

func (TaobaoinventorystoremanageAPIRequest) GetStoreName added in v1.3.1

GetStoreName StoreName Getter

func (TaobaoinventorystoremanageAPIRequest) GetStoreType added in v1.3.1

GetStoreType StoreType Getter

func (*TaobaoinventorystoremanageAPIRequest) SetAddress added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetAddress(_address string) error

SetAddress is Address Setter 仓库的物理地址,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetAddressAreaName added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetAddressAreaName(_addressAreaName string) error

SetAddressAreaName is AddressAreaName Setter 仓库区域名,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetAliasName added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetAliasName(_aliasName string) error

SetAliasName is AliasName Setter 仓库简称,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetContact added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetContact(_contact string) error

SetContact is Contact Setter 联系人,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetOperateType added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetOperateType(_operateType string) error

SetOperateType is OperateType Setter 参数定义,ADD:新建; UPDATE:更新

func (*TaobaoinventorystoremanageAPIRequest) SetPhone added in v1.3.1

SetPhone is Phone Setter 联系电话,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetPostcode added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetPostcode(_postcode int64) error

SetPostcode is Postcode Setter 邮编,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 商家的仓库编码,不允许重复,不允许更新

func (*TaobaoinventorystoremanageAPIRequest) SetStoreName added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetStoreName(_storeName string) error

SetStoreName is StoreName Setter 商家的仓库名称,可更新

func (*TaobaoinventorystoremanageAPIRequest) SetStoreType added in v1.3.1

func (r *TaobaoinventorystoremanageAPIRequest) SetStoreType(_storeType string) error

SetStoreType is StoreType Setter 仓库类型,可更新。目前只支持自有仓,TYPE_OWN:自有物理仓

type TaobaoinventorystoremanageAPIResponse added in v1.3.1

type TaobaoinventorystoremanageAPIResponse struct {
	model.CommonResponse
	TaobaoinventorystoremanageAPIResponseModel
}

TaobaoinventorystoremanageAPIResponse 创建或更新仓库 API返回值 taobao.inventory.store.manage

创建商家仓或者更新商家仓信息

type TaobaoinventorystoremanageAPIResponseModel added in v1.3.1

type TaobaoinventorystoremanageAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_store_manage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回结果
	StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"`
}

TaobaoinventorystoremanageAPIResponseModel is 创建或更新仓库 成功返回结果

type TaobaoinventorystorequeryAPIRequest added in v1.3.1

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

TaobaoinventorystorequeryAPIRequest 查询仓库信息 API请求 taobao.inventory.store.query

查询商家仓信息

func NewTaobaoinventorystorequeryRequest added in v1.3.1

func NewTaobaoinventorystorequeryRequest() *TaobaoinventorystorequeryAPIRequest

NewTaobaoinventorystorequeryRequest 初始化TaobaoinventorystorequeryAPIRequest对象

func (TaobaoinventorystorequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventorystorequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventorystorequeryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventorystorequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventorystorequeryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventorystorequeryAPIRequest) GetStoreCode added in v1.3.1

GetStoreCode StoreCode Getter

func (*TaobaoinventorystorequeryAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoinventorystorequeryAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 商家的仓库编码

type TaobaoinventorystorequeryAPIResponse added in v1.3.1

type TaobaoinventorystorequeryAPIResponse struct {
	model.CommonResponse
	TaobaoinventorystorequeryAPIResponseModel
}

TaobaoinventorystorequeryAPIResponse 查询仓库信息 API返回值 taobao.inventory.store.query

查询商家仓信息

type TaobaoinventorystorequeryAPIResponseModel added in v1.3.1

type TaobaoinventorystorequeryAPIResponseModel struct {
	XMLName xml.Name `xml:"inventory_store_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 仓库列表
	StoreList []Store `json:"store_list,omitempty" xml:"store_list>store,omitempty"`
}

TaobaoinventorystorequeryAPIResponseModel is 查询仓库信息 成功返回结果

type TaobaoinventorywarehousemanageAPIRequest added in v1.3.1

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

TaobaoinventorywarehousemanageAPIRequest 创建商家仓或者更新商家仓信息 API请求 taobao.inventory.warehouse.manage

创建商家仓或者更新商家仓信息

func NewTaobaoinventorywarehousemanageRequest added in v1.3.1

func NewTaobaoinventorywarehousemanageRequest() *TaobaoinventorywarehousemanageAPIRequest

NewTaobaoinventorywarehousemanageRequest 初始化TaobaoinventorywarehousemanageAPIRequest对象

func (TaobaoinventorywarehousemanageAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventorywarehousemanageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventorywarehousemanageAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventorywarehousemanageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventorywarehousemanageAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoinventorywarehousemanageAPIRequest) GetWareHouseDto added in v1.3.1

GetWareHouseDto WareHouseDto Getter

func (*TaobaoinventorywarehousemanageAPIRequest) SetWareHouseDto added in v1.3.1

func (r *TaobaoinventorywarehousemanageAPIRequest) SetWareHouseDto(_wareHouseDto *WareHouseDto) error

SetWareHouseDto is WareHouseDto Setter 仓库信息

type TaobaoinventorywarehousemanageAPIResponse added in v1.3.1

type TaobaoinventorywarehousemanageAPIResponse struct {
	model.CommonResponse
	TaobaoinventorywarehousemanageAPIResponseModel
}

TaobaoinventorywarehousemanageAPIResponse 创建商家仓或者更新商家仓信息 API返回值 taobao.inventory.warehouse.manage

创建商家仓或者更新商家仓信息

type TaobaoinventorywarehousemanageAPIResponseModel added in v1.3.1

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

TaobaoinventorywarehousemanageAPIResponseModel is 创建商家仓或者更新商家仓信息 成功返回结果

type TaobaoinventorywarehousemanageResult added in v1.3.1

type TaobaoinventorywarehousemanageResult struct {
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// data
	Data bool `json:"data,omitempty" xml:"data,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoinventorywarehousemanageResult 结构体

type TaobaoinventorywarehousequeryAPIRequest added in v1.3.1

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

TaobaoinventorywarehousequeryAPIRequest 分页查询商家仓信息 API请求 taobao.inventory.warehouse.query

分页查询商家仓信息

func NewTaobaoinventorywarehousequeryRequest added in v1.3.1

func NewTaobaoinventorywarehousequeryRequest() *TaobaoinventorywarehousequeryAPIRequest

NewTaobaoinventorywarehousequeryRequest 初始化TaobaoinventorywarehousequeryAPIRequest对象

func (TaobaoinventorywarehousequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoinventorywarehousequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoinventorywarehousequeryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoinventorywarehousequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoinventorywarehousequeryAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaoinventorywarehousequeryAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaoinventorywarehousequeryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoinventorywarehousequeryAPIRequest) SetPageNo added in v1.3.1

func (r *TaobaoinventorywarehousequeryAPIRequest) SetPageNo(_pageNo int64) error

SetPageNo is PageNo Setter 页码

func (*TaobaoinventorywarehousequeryAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaoinventorywarehousequeryAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 页大小

type TaobaoinventorywarehousequeryAPIResponse added in v1.3.1

type TaobaoinventorywarehousequeryAPIResponse struct {
	model.CommonResponse
	TaobaoinventorywarehousequeryAPIResponseModel
}

TaobaoinventorywarehousequeryAPIResponse 分页查询商家仓信息 API返回值 taobao.inventory.warehouse.query

分页查询商家仓信息

type TaobaoinventorywarehousequeryAPIResponseModel added in v1.3.1

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

TaobaoinventorywarehousequeryAPIResponseModel is 分页查询商家仓信息 成功返回结果

type TaobaokaolascitemaddAPIRequest added in v1.3.1

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

TaobaokaolascitemaddAPIRequest 考拉货品新增接口 API请求 taobao.kaola.scitem.add

考拉货品新增接口

func NewTaobaokaolascitemaddRequest added in v1.3.1

func NewTaobaokaolascitemaddRequest() *TaobaokaolascitemaddAPIRequest

NewTaobaokaolascitemaddRequest 初始化TaobaokaolascitemaddAPIRequest对象

func (TaobaokaolascitemaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaokaolascitemaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaokaolascitemaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaokaolascitemaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaokaolascitemaddAPIRequest) GetCnsku added in v1.3.1

GetCnsku Cnsku Getter

func (TaobaokaolascitemaddAPIRequest) GetOption added in v1.3.1

GetOption Option Getter

func (TaobaokaolascitemaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaokaolascitemaddAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaokaolascitemaddAPIRequest) SetCnsku added in v1.3.1

func (r *TaobaokaolascitemaddAPIRequest) SetCnsku(_cnsku *CnskuDto) error

SetCnsku is Cnsku Setter 待新增的货品

func (*TaobaokaolascitemaddAPIRequest) SetOption added in v1.3.1

func (r *TaobaokaolascitemaddAPIRequest) SetOption(_option *AddCnskuOption) error

SetOption is Option Setter 新增选项

type TaobaokaolascitemaddAPIResponse added in v1.3.1

type TaobaokaolascitemaddAPIResponse struct {
	model.CommonResponse
	TaobaokaolascitemaddAPIResponseModel
}

TaobaokaolascitemaddAPIResponse 考拉货品新增接口 API返回值 taobao.kaola.scitem.add

考拉货品新增接口

type TaobaokaolascitemaddAPIResponseModel added in v1.3.1

type TaobaokaolascitemaddAPIResponseModel struct {
	XMLName xml.Name `xml:"kaola_scitem_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异常信息
	ErrorMessages []string `json:"error_messages,omitempty" xml:"error_messages>string,omitempty"`
	// 异常信息Code
	SysErrorCode string `json:"sys_error_code,omitempty" xml:"sys_error_code,omitempty"`
	// 货品id
	Data int64 `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
	// 是否系统异常
	IsSystemFailed bool `json:"is_system_failed,omitempty" xml:"is_system_failed,omitempty"`
}

TaobaokaolascitemaddAPIResponseModel is 考拉货品新增接口 成功返回结果

type TaobaoregionpricecancleAPIRequest added in v1.3.1

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

TaobaoregionpricecancleAPIRequest 取消区域价格 API请求 taobao.region.price.cancle

取消区域价格

func NewTaobaoregionpricecancleRequest added in v1.3.1

func NewTaobaoregionpricecancleRequest() *TaobaoregionpricecancleAPIRequest

NewTaobaoregionpricecancleRequest 初始化TaobaoregionpricecancleAPIRequest对象

func (TaobaoregionpricecancleAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionpricecancleAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionpricecancleAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionpricecancleAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionpricecancleAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoregionpricecancleAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionpricecancleAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaoregionpricecancleAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoregionpricecancleAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品

func (*TaobaoregionpricecancleAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoregionpricecancleAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 无sku传0

type TaobaoregionpricecancleAPIResponse added in v1.3.1

type TaobaoregionpricecancleAPIResponse struct {
	model.CommonResponse
	TaobaoregionpricecancleAPIResponseModel
}

TaobaoregionpricecancleAPIResponse 取消区域价格 API返回值 taobao.region.price.cancle

取消区域价格

type TaobaoregionpricecancleAPIResponseModel added in v1.3.1

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

TaobaoregionpricecancleAPIResponseModel is 取消区域价格 成功返回结果

type TaobaoregionpricemanageAPIRequest added in v1.3.1

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

TaobaoregionpricemanageAPIRequest 编辑区域价格 API请求 taobao.region.price.manage

编辑区域价格

func NewTaobaoregionpricemanageRequest added in v1.3.1

func NewTaobaoregionpricemanageRequest() *TaobaoregionpricemanageAPIRequest

NewTaobaoregionpricemanageRequest 初始化TaobaoregionpricemanageAPIRequest对象

func (TaobaoregionpricemanageAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionpricemanageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionpricemanageAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionpricemanageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionpricemanageAPIRequest) GetIsFull added in v1.3.1

GetIsFull IsFull Getter

func (TaobaoregionpricemanageAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoregionpricemanageAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionpricemanageAPIRequest) GetRegionalPriceDtos added in v1.3.1

func (r TaobaoregionpricemanageAPIRequest) GetRegionalPriceDtos() []RegionalPriceDto

GetRegionalPriceDtos RegionalPriceDtos Getter

func (TaobaoregionpricemanageAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaoregionpricemanageAPIRequest) SetIsFull added in v1.3.1

func (r *TaobaoregionpricemanageAPIRequest) SetIsFull(_isFull bool) error

SetIsFull is IsFull Setter true:全量, false:增量

func (*TaobaoregionpricemanageAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoregionpricemanageAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

func (*TaobaoregionpricemanageAPIRequest) SetRegionalPriceDtos added in v1.3.1

func (r *TaobaoregionpricemanageAPIRequest) SetRegionalPriceDtos(_regionalPriceDtos []RegionalPriceDto) error

SetRegionalPriceDtos is RegionalPriceDtos Setter 列表

func (*TaobaoregionpricemanageAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoregionpricemanageAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 无sku传0

type TaobaoregionpricemanageAPIResponse added in v1.3.1

type TaobaoregionpricemanageAPIResponse struct {
	model.CommonResponse
	TaobaoregionpricemanageAPIResponseModel
}

TaobaoregionpricemanageAPIResponse 编辑区域价格 API返回值 taobao.region.price.manage

编辑区域价格

type TaobaoregionpricemanageAPIResponseModel added in v1.3.1

type TaobaoregionpricemanageAPIResponseModel struct {
	XMLName xml.Name `xml:"region_price_manage_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// success
	IsSuccess bool `json:"is_success,omitempty" xml:"is_success,omitempty"`
}

TaobaoregionpricemanageAPIResponseModel is 编辑区域价格 成功返回结果

type TaobaoregionpricequeryAPIRequest added in v1.3.1

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

TaobaoregionpricequeryAPIRequest 区域价格查询 API请求 taobao.region.price.query

区域价格查询

func NewTaobaoregionpricequeryRequest added in v1.3.1

func NewTaobaoregionpricequeryRequest() *TaobaoregionpricequeryAPIRequest

NewTaobaoregionpricequeryRequest 初始化TaobaoregionpricequeryAPIRequest对象

func (TaobaoregionpricequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionpricequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionpricequeryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionpricequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionpricequeryAPIRequest) GetItemId added in v1.3.1

GetItemId ItemId Getter

func (TaobaoregionpricequeryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionpricequeryAPIRequest) GetRegionalPriceDtos added in v1.3.1

func (r TaobaoregionpricequeryAPIRequest) GetRegionalPriceDtos() []RegionalPriceDto

GetRegionalPriceDtos RegionalPriceDtos Getter

func (TaobaoregionpricequeryAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaoregionpricequeryAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoregionpricequeryAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

func (*TaobaoregionpricequeryAPIRequest) SetRegionalPriceDtos added in v1.3.1

func (r *TaobaoregionpricequeryAPIRequest) SetRegionalPriceDtos(_regionalPriceDtos []RegionalPriceDto) error

SetRegionalPriceDtos is RegionalPriceDtos Setter 不传则返回所有设置的区域价格

func (*TaobaoregionpricequeryAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoregionpricequeryAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 无sku可传0

type TaobaoregionpricequeryAPIResponse added in v1.3.1

type TaobaoregionpricequeryAPIResponse struct {
	model.CommonResponse
	TaobaoregionpricequeryAPIResponseModel
}

TaobaoregionpricequeryAPIResponse 区域价格查询 API返回值 taobao.region.price.query

区域价格查询

type TaobaoregionpricequeryAPIResponseModel added in v1.3.1

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

TaobaoregionpricequeryAPIResponseModel is 区域价格查询 成功返回结果

type TaobaoregionsalequeryAPIRequest added in v1.3.1

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

TaobaoregionsalequeryAPIRequest 查询商品销售区域 API请求 taobao.region.sale.query

查询商品销售区域

func NewTaobaoregionsalequeryRequest added in v1.3.1

func NewTaobaoregionsalequeryRequest() *TaobaoregionsalequeryAPIRequest

NewTaobaoregionsalequeryRequest 初始化TaobaoregionsalequeryAPIRequest对象

func (TaobaoregionsalequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionsalequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionsalequeryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionsalequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionsalequeryAPIRequest) GetItemId added in v1.3.1

func (r TaobaoregionsalequeryAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoregionsalequeryAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoregionsalequeryAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionsalequeryAPIRequest) GetSaleRegionLevel added in v1.3.1

func (r TaobaoregionsalequeryAPIRequest) GetSaleRegionLevel() int64

GetSaleRegionLevel SaleRegionLevel Getter

func (TaobaoregionsalequeryAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaoregionsalequeryAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoregionsalequeryAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

func (*TaobaoregionsalequeryAPIRequest) SetSaleRegionLevel added in v1.3.1

func (r *TaobaoregionsalequeryAPIRequest) SetSaleRegionLevel(_saleRegionLevel int64) error

SetSaleRegionLevel is SaleRegionLevel Setter 1:国家;2:省;3: 市;4:区县

func (*TaobaoregionsalequeryAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoregionsalequeryAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 无sku传0

type TaobaoregionsalequeryAPIResponse added in v1.3.1

type TaobaoregionsalequeryAPIResponse struct {
	model.CommonResponse
	TaobaoregionsalequeryAPIResponseModel
}

TaobaoregionsalequeryAPIResponse 查询商品销售区域 API返回值 taobao.region.sale.query

查询商品销售区域

type TaobaoregionsalequeryAPIResponseModel added in v1.3.1

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

TaobaoregionsalequeryAPIResponseModel is 查询商品销售区域 成功返回结果

type TaobaoregionwarehousemanageAPIRequest added in v1.3.1

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

TaobaoregionwarehousemanageAPIRequest 编辑仓库覆盖范围 API请求 taobao.region.warehouse.manage

编辑仓库覆盖范围

func NewTaobaoregionwarehousemanageRequest added in v1.3.1

func NewTaobaoregionwarehousemanageRequest() *TaobaoregionwarehousemanageAPIRequest

NewTaobaoregionwarehousemanageRequest 初始化TaobaoregionwarehousemanageAPIRequest对象

func (TaobaoregionwarehousemanageAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionwarehousemanageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionwarehousemanageAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionwarehousemanageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionwarehousemanageAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionwarehousemanageAPIRequest) GetRegions added in v1.3.1

GetRegions Regions Getter

func (TaobaoregionwarehousemanageAPIRequest) GetStoreCode added in v1.3.1

GetStoreCode StoreCode Getter

func (*TaobaoregionwarehousemanageAPIRequest) SetRegions added in v1.3.1

func (r *TaobaoregionwarehousemanageAPIRequest) SetRegions(_regions []string) error

SetRegions is Regions Setter 可映射三级地址,例: 广东省

func (*TaobaoregionwarehousemanageAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoregionwarehousemanageAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 仓库编码

type TaobaoregionwarehousemanageAPIResponse added in v1.3.1

type TaobaoregionwarehousemanageAPIResponse struct {
	model.CommonResponse
	TaobaoregionwarehousemanageAPIResponseModel
}

TaobaoregionwarehousemanageAPIResponse 编辑仓库覆盖范围 API返回值 taobao.region.warehouse.manage

编辑仓库覆盖范围

type TaobaoregionwarehousemanageAPIResponseModel added in v1.3.1

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

TaobaoregionwarehousemanageAPIResponseModel is 编辑仓库覆盖范围 成功返回结果

type TaobaoregionwarehousequeryAPIRequest added in v1.3.1

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

TaobaoregionwarehousequeryAPIRequest 查询仓库覆盖范围 API请求 taobao.region.warehouse.query

查询仓库覆盖范围

func NewTaobaoregionwarehousequeryRequest added in v1.3.1

func NewTaobaoregionwarehousequeryRequest() *TaobaoregionwarehousequeryAPIRequest

NewTaobaoregionwarehousequeryRequest 初始化TaobaoregionwarehousequeryAPIRequest对象

func (TaobaoregionwarehousequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoregionwarehousequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoregionwarehousequeryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoregionwarehousequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoregionwarehousequeryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoregionwarehousequeryAPIRequest) GetStoreCode added in v1.3.1

GetStoreCode StoreCode Getter

func (*TaobaoregionwarehousequeryAPIRequest) SetStoreCode added in v1.3.1

func (r *TaobaoregionwarehousequeryAPIRequest) SetStoreCode(_storeCode string) error

SetStoreCode is StoreCode Setter 仓库编码

type TaobaoregionwarehousequeryAPIResponse added in v1.3.1

type TaobaoregionwarehousequeryAPIResponse struct {
	model.CommonResponse
	TaobaoregionwarehousequeryAPIResponseModel
}

TaobaoregionwarehousequeryAPIResponse 查询仓库覆盖范围 API返回值 taobao.region.warehouse.query

查询仓库覆盖范围

type TaobaoregionwarehousequeryAPIResponseModel added in v1.3.1

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

TaobaoregionwarehousequeryAPIResponseModel is 查询仓库覆盖范围 成功返回结果

type TaobaoscitemaddAPIRequest added in v1.3.1

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

TaobaoscitemaddAPIRequest 发布后端商品 API请求 taobao.scitem.add

发布后端商品

func NewTaobaoscitemaddRequest added in v1.3.1

func NewTaobaoscitemaddRequest() *TaobaoscitemaddAPIRequest

NewTaobaoscitemaddRequest 初始化TaobaoscitemaddAPIRequest对象

func (TaobaoscitemaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemaddAPIRequest) GetBarCode added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetBarCode() string

GetBarCode BarCode Getter

func (TaobaoscitemaddAPIRequest) GetBrandId added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetBrandId() int64

GetBrandId BrandId Getter

func (TaobaoscitemaddAPIRequest) GetBrandName added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetBrandName() string

GetBrandName BrandName Getter

func (TaobaoscitemaddAPIRequest) GetHeight added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetHeight() int64

GetHeight Height Getter

func (TaobaoscitemaddAPIRequest) GetIsAreaSale added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetIsAreaSale() int64

GetIsAreaSale IsAreaSale Getter

func (TaobaoscitemaddAPIRequest) GetIsCostly added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetIsCostly() int64

GetIsCostly IsCostly Getter

func (TaobaoscitemaddAPIRequest) GetIsDangerous added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetIsDangerous() int64

GetIsDangerous IsDangerous Getter

func (TaobaoscitemaddAPIRequest) GetIsFriable added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetIsFriable() int64

GetIsFriable IsFriable Getter

func (TaobaoscitemaddAPIRequest) GetIsWarranty added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetIsWarranty() int64

GetIsWarranty IsWarranty Getter

func (TaobaoscitemaddAPIRequest) GetItemName added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetItemName() string

GetItemName ItemName Getter

func (TaobaoscitemaddAPIRequest) GetItemType added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetItemType() int64

GetItemType ItemType Getter

func (TaobaoscitemaddAPIRequest) GetLength added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetLength() int64

GetLength Length Getter

func (TaobaoscitemaddAPIRequest) GetMatterStatus added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetMatterStatus() int64

GetMatterStatus MatterStatus Getter

func (TaobaoscitemaddAPIRequest) GetOuterCode added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TaobaoscitemaddAPIRequest) GetPrice added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetPrice() int64

GetPrice Price Getter

func (TaobaoscitemaddAPIRequest) GetProperties added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetProperties() string

GetProperties Properties Getter

func (TaobaoscitemaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemaddAPIRequest) GetRemark added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetRemark() string

GetRemark Remark Getter

func (TaobaoscitemaddAPIRequest) GetSpuId added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetSpuId() int64

GetSpuId SpuId Getter

func (TaobaoscitemaddAPIRequest) GetVolume added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetVolume() int64

GetVolume Volume Getter

func (TaobaoscitemaddAPIRequest) GetWeight added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetWeight() int64

GetWeight Weight Getter

func (TaobaoscitemaddAPIRequest) GetWidth added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetWidth() int64

GetWidth Width Getter

func (TaobaoscitemaddAPIRequest) GetWmsCode added in v1.3.1

func (r TaobaoscitemaddAPIRequest) GetWmsCode() string

GetWmsCode WmsCode Getter

func (*TaobaoscitemaddAPIRequest) SetBarCode added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetBarCode(_barCode string) error

SetBarCode is BarCode Setter 条形码

func (*TaobaoscitemaddAPIRequest) SetBrandId added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌id

func (*TaobaoscitemaddAPIRequest) SetBrandName added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetBrandName(_brandName string) error

SetBrandName is BrandName Setter brand_Name

func (*TaobaoscitemaddAPIRequest) SetHeight added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetHeight(_height int64) error

SetHeight is Height Setter 高 单位:mm

func (*TaobaoscitemaddAPIRequest) SetIsAreaSale added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetIsAreaSale(_isAreaSale int64) error

SetIsAreaSale is IsAreaSale Setter 1表示区域销售,0或是空是非区域销售

func (*TaobaoscitemaddAPIRequest) SetIsCostly added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetIsCostly(_isCostly int64) error

SetIsCostly is IsCostly Setter 是否是贵重品 0:不是 1:是

func (*TaobaoscitemaddAPIRequest) SetIsDangerous added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetIsDangerous(_isDangerous int64) error

SetIsDangerous is IsDangerous Setter 是否危险 0:不是 1:是

func (*TaobaoscitemaddAPIRequest) SetIsFriable added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetIsFriable(_isFriable int64) error

SetIsFriable is IsFriable Setter 是否易碎 0:不是 1:是

func (*TaobaoscitemaddAPIRequest) SetIsWarranty added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetIsWarranty(_isWarranty int64) error

SetIsWarranty is IsWarranty Setter 是否保质期:0:不是 1:是

func (*TaobaoscitemaddAPIRequest) SetItemName added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetItemName(_itemName string) error

SetItemName is ItemName Setter 商品名称

func (*TaobaoscitemaddAPIRequest) SetItemType added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetItemType(_itemType int64) error

SetItemType is ItemType Setter 0.普通供应链商品 1.供应链组合主商品

func (*TaobaoscitemaddAPIRequest) SetLength added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetLength(_length int64) error

SetLength is Length Setter 长度 单位:mm

func (*TaobaoscitemaddAPIRequest) SetMatterStatus added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetMatterStatus(_matterStatus int64) error

SetMatterStatus is MatterStatus Setter 0:液体,1:粉体,2:固体

func (*TaobaoscitemaddAPIRequest) SetOuterCode added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 商家编码

func (*TaobaoscitemaddAPIRequest) SetPrice added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetPrice(_price int64) error

SetPrice is Price Setter 价格 单位:分

func (*TaobaoscitemaddAPIRequest) SetProperties added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetProperties(_properties string) error

SetProperties is Properties Setter 商品属性格式是 p1:v1,p2:v2,p3:v3

func (*TaobaoscitemaddAPIRequest) SetRemark added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetRemark(_remark string) error

SetRemark is Remark Setter remark

func (*TaobaoscitemaddAPIRequest) SetSpuId added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter spuId或是cspuid

func (*TaobaoscitemaddAPIRequest) SetVolume added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetVolume(_volume int64) error

SetVolume is Volume Setter 体积:立方厘米

func (*TaobaoscitemaddAPIRequest) SetWeight added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetWeight(_weight int64) error

SetWeight is Weight Setter 重量 单位:g

func (*TaobaoscitemaddAPIRequest) SetWidth added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetWidth(_width int64) error

SetWidth is Width Setter 宽 单位:mm

func (*TaobaoscitemaddAPIRequest) SetWmsCode added in v1.3.1

func (r *TaobaoscitemaddAPIRequest) SetWmsCode(_wmsCode string) error

SetWmsCode is WmsCode Setter 仓储商编码

type TaobaoscitemaddAPIResponse added in v1.3.1

type TaobaoscitemaddAPIResponse struct {
	model.CommonResponse
	TaobaoscitemaddAPIResponseModel
}

TaobaoscitemaddAPIResponse 发布后端商品 API返回值 taobao.scitem.add

发布后端商品

type TaobaoscitemaddAPIResponseModel added in v1.3.1

type TaobaoscitemaddAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 后台商品信息
	ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"`
}

TaobaoscitemaddAPIResponseModel is 发布后端商品 成功返回结果

type TaobaoscitemgetAPIRequest added in v1.3.1

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

TaobaoscitemgetAPIRequest 根据id查询商品 API请求 taobao.scitem.get

根据id查询商品

func NewTaobaoscitemgetRequest added in v1.3.1

func NewTaobaoscitemgetRequest() *TaobaoscitemgetAPIRequest

NewTaobaoscitemgetRequest 初始化TaobaoscitemgetAPIRequest对象

func (TaobaoscitemgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemgetAPIRequest) GetItemId added in v1.3.1

func (r TaobaoscitemgetAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoscitemgetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemgetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoscitemgetAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoscitemgetAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 商品id

type TaobaoscitemgetAPIResponse added in v1.3.1

type TaobaoscitemgetAPIResponse struct {
	model.CommonResponse
	TaobaoscitemgetAPIResponseModel
}

TaobaoscitemgetAPIResponse 根据id查询商品 API返回值 taobao.scitem.get

根据id查询商品

type TaobaoscitemgetAPIResponseModel added in v1.3.1

type TaobaoscitemgetAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 后端商品
	ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"`
}

TaobaoscitemgetAPIResponseModel is 根据id查询商品 成功返回结果

type TaobaoscitemmapaddAPIRequest added in v1.3.1

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

TaobaoscitemmapaddAPIRequest 创建IC商品与后端商品的映射关系 API请求 taobao.scitem.map.add

创建IC商品或分销商品与后端商品的映射关系

func NewTaobaoscitemmapaddRequest added in v1.3.1

func NewTaobaoscitemmapaddRequest() *TaobaoscitemmapaddAPIRequest

NewTaobaoscitemmapaddRequest 初始化TaobaoscitemmapaddAPIRequest对象

func (TaobaoscitemmapaddAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemmapaddAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemmapaddAPIRequest) GetItemId added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoscitemmapaddAPIRequest) GetNeedCheck added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetNeedCheck() bool

GetNeedCheck NeedCheck Getter

func (TaobaoscitemmapaddAPIRequest) GetOuterCode added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TaobaoscitemmapaddAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemmapaddAPIRequest) GetScItemId added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetScItemId() int64

GetScItemId ScItemId Getter

func (TaobaoscitemmapaddAPIRequest) GetSkuId added in v1.3.1

func (r TaobaoscitemmapaddAPIRequest) GetSkuId() int64

GetSkuId SkuId Getter

func (*TaobaoscitemmapaddAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoscitemmapaddAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 前台ic商品id

func (*TaobaoscitemmapaddAPIRequest) SetNeedCheck added in v1.3.1

func (r *TaobaoscitemmapaddAPIRequest) SetNeedCheck(_needCheck bool) error

SetNeedCheck is NeedCheck Setter 默认值为false<br/>true:进行高级校验,前端商品或SKU的商家编码必须与后端商品的商家编码一致,否则会拒绝关联<br/>false:不进行高级校验

func (*TaobaoscitemmapaddAPIRequest) SetOuterCode added in v1.3.1

func (r *TaobaoscitemmapaddAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter sc_item_id和outer_code 其中一个不能为空

func (*TaobaoscitemmapaddAPIRequest) SetScItemId added in v1.3.1

func (r *TaobaoscitemmapaddAPIRequest) SetScItemId(_scItemId int64) error

SetScItemId is ScItemId Setter sc_item_id和outer_code 其中一个不能为空

func (*TaobaoscitemmapaddAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoscitemmapaddAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter 前台ic商品skuid

type TaobaoscitemmapaddAPIResponse added in v1.3.1

type TaobaoscitemmapaddAPIResponse struct {
	model.CommonResponse
	TaobaoscitemmapaddAPIResponseModel
}

TaobaoscitemmapaddAPIResponse 创建IC商品与后端商品的映射关系 API返回值 taobao.scitem.map.add

创建IC商品或分销商品与后端商品的映射关系

type TaobaoscitemmapaddAPIResponseModel added in v1.3.1

type TaobaoscitemmapaddAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_map_add_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口调用返回结果信息:商家编码
	OuterCode string `json:"outer_code,omitempty" xml:"outer_code,omitempty"`
}

TaobaoscitemmapaddAPIResponseModel is 创建IC商品与后端商品的映射关系 成功返回结果

type TaobaoscitemmapdeleteAPIRequest added in v1.3.1

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

TaobaoscitemmapdeleteAPIRequest 失效指定用户的商品与后端商品的映射关系 API请求 taobao.scitem.map.delete

根据后端商品Id,失效指定用户的商品与后端商品的映射关系

func NewTaobaoscitemmapdeleteRequest added in v1.3.1

func NewTaobaoscitemmapdeleteRequest() *TaobaoscitemmapdeleteAPIRequest

NewTaobaoscitemmapdeleteRequest 初始化TaobaoscitemmapdeleteAPIRequest对象

func (TaobaoscitemmapdeleteAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemmapdeleteAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemmapdeleteAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemmapdeleteAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemmapdeleteAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemmapdeleteAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemmapdeleteAPIRequest) GetScItemId added in v1.3.1

func (r TaobaoscitemmapdeleteAPIRequest) GetScItemId() int64

GetScItemId ScItemId Getter

func (TaobaoscitemmapdeleteAPIRequest) GetUserNick added in v1.3.1

func (r TaobaoscitemmapdeleteAPIRequest) GetUserNick() string

GetUserNick UserNick Getter

func (*TaobaoscitemmapdeleteAPIRequest) SetScItemId added in v1.3.1

func (r *TaobaoscitemmapdeleteAPIRequest) SetScItemId(_scItemId int64) error

SetScItemId is ScItemId Setter 后台商品ID

func (*TaobaoscitemmapdeleteAPIRequest) SetUserNick added in v1.3.1

func (r *TaobaoscitemmapdeleteAPIRequest) SetUserNick(_userNick string) error

SetUserNick is UserNick Setter 店铺用户nick。 如果该参数为空则删除后端商品与当前调用人的商品映射关系;如果不为空则删除指定用户与后端商品的映射关系

type TaobaoscitemmapdeleteAPIResponse added in v1.3.1

type TaobaoscitemmapdeleteAPIResponse struct {
	model.CommonResponse
	TaobaoscitemmapdeleteAPIResponseModel
}

TaobaoscitemmapdeleteAPIResponse 失效指定用户的商品与后端商品的映射关系 API返回值 taobao.scitem.map.delete

根据后端商品Id,失效指定用户的商品与后端商品的映射关系

type TaobaoscitemmapdeleteAPIResponseModel added in v1.3.1

type TaobaoscitemmapdeleteAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_map_delete_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 失效条数
	Module int64 `json:"module,omitempty" xml:"module,omitempty"`
}

TaobaoscitemmapdeleteAPIResponseModel is 失效指定用户的商品与后端商品的映射关系 成功返回结果

type TaobaoscitemmapqueryAPIRequest added in v1.3.1

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

TaobaoscitemmapqueryAPIRequest 查找IC商品或分销商品与后端商品的关联信息 API请求 taobao.scitem.map.query

查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku

func NewTaobaoscitemmapqueryRequest added in v1.3.1

func NewTaobaoscitemmapqueryRequest() *TaobaoscitemmapqueryAPIRequest

NewTaobaoscitemmapqueryRequest 初始化TaobaoscitemmapqueryAPIRequest对象

func (TaobaoscitemmapqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemmapqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemmapqueryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemmapqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemmapqueryAPIRequest) GetItemId added in v1.3.1

func (r TaobaoscitemmapqueryAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoscitemmapqueryAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemmapqueryAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemmapqueryAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TaobaoscitemmapqueryAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoscitemmapqueryAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter map_type为1:前台ic商品id<br/>map_type为2:分销productid

func (*TaobaoscitemmapqueryAPIRequest) SetSkuId added in v1.3.1

func (r *TaobaoscitemmapqueryAPIRequest) SetSkuId(_skuId int64) error

SetSkuId is SkuId Setter map_type为1:前台ic商品skuid <br/>map_type为2:分销商品的skuid

type TaobaoscitemmapqueryAPIResponse added in v1.3.1

type TaobaoscitemmapqueryAPIResponse struct {
	model.CommonResponse
	TaobaoscitemmapqueryAPIResponseModel
}

TaobaoscitemmapqueryAPIResponse 查找IC商品或分销商品与后端商品的关联信息 API返回值 taobao.scitem.map.query

查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku

type TaobaoscitemmapqueryAPIResponseModel added in v1.3.1

type TaobaoscitemmapqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_map_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 后端商品映射列表
	ScItemMaps []ScItemMap `json:"sc_item_maps,omitempty" xml:"sc_item_maps>sc_item_map,omitempty"`
}

TaobaoscitemmapqueryAPIResponseModel is 查找IC商品或分销商品与后端商品的关联信息 成功返回结果

type TaobaoscitemoutercodegetAPIRequest added in v1.3.1

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

TaobaoscitemoutercodegetAPIRequest 根据outerCode查询商品 API请求 taobao.scitem.outercode.get

根据outerCode查询商品

func NewTaobaoscitemoutercodegetRequest added in v1.3.1

func NewTaobaoscitemoutercodegetRequest() *TaobaoscitemoutercodegetAPIRequest

NewTaobaoscitemoutercodegetRequest 初始化TaobaoscitemoutercodegetAPIRequest对象

func (TaobaoscitemoutercodegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemoutercodegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemoutercodegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemoutercodegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemoutercodegetAPIRequest) GetOuterCode added in v1.3.1

func (r TaobaoscitemoutercodegetAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TaobaoscitemoutercodegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaoscitemoutercodegetAPIRequest) SetOuterCode added in v1.3.1

func (r *TaobaoscitemoutercodegetAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 商品编码

type TaobaoscitemoutercodegetAPIResponse added in v1.3.1

type TaobaoscitemoutercodegetAPIResponse struct {
	model.CommonResponse
	TaobaoscitemoutercodegetAPIResponseModel
}

TaobaoscitemoutercodegetAPIResponse 根据outerCode查询商品 API返回值 taobao.scitem.outercode.get

根据outerCode查询商品

type TaobaoscitemoutercodegetAPIResponseModel added in v1.3.1

type TaobaoscitemoutercodegetAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_outercode_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 后台商品
	ScItem *ScItem `json:"sc_item,omitempty" xml:"sc_item,omitempty"`
}

TaobaoscitemoutercodegetAPIResponseModel is 根据outerCode查询商品 成功返回结果

type TaobaoscitemqueryAPIRequest added in v1.3.1

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

TaobaoscitemqueryAPIRequest 查询后端商品 API请求 taobao.scitem.query

查询后端商品

func NewTaobaoscitemqueryRequest added in v1.3.1

func NewTaobaoscitemqueryRequest() *TaobaoscitemqueryAPIRequest

NewTaobaoscitemqueryRequest 初始化TaobaoscitemqueryAPIRequest对象

func (TaobaoscitemqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemqueryAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemqueryAPIRequest) GetBarCode added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetBarCode() string

GetBarCode BarCode Getter

func (TaobaoscitemqueryAPIRequest) GetItemName added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetItemName() string

GetItemName ItemName Getter

func (TaobaoscitemqueryAPIRequest) GetItemType added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetItemType() int64

GetItemType ItemType Getter

func (TaobaoscitemqueryAPIRequest) GetOuterCode added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TaobaoscitemqueryAPIRequest) GetPageIndex added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetPageIndex() int64

GetPageIndex PageIndex Getter

func (TaobaoscitemqueryAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoscitemqueryAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemqueryAPIRequest) GetWmsCode added in v1.3.1

func (r TaobaoscitemqueryAPIRequest) GetWmsCode() string

GetWmsCode WmsCode Getter

func (*TaobaoscitemqueryAPIRequest) SetBarCode added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetBarCode(_barCode string) error

SetBarCode is BarCode Setter 条形码

func (*TaobaoscitemqueryAPIRequest) SetItemName added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetItemName(_itemName string) error

SetItemName is ItemName Setter 商品名称

func (*TaobaoscitemqueryAPIRequest) SetItemType added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetItemType(_itemType int64) error

SetItemType is ItemType Setter ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION

func (*TaobaoscitemqueryAPIRequest) SetOuterCode added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 商家给商品的一个编码

func (*TaobaoscitemqueryAPIRequest) SetPageIndex added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetPageIndex(_pageIndex int64) error

SetPageIndex is PageIndex Setter 当前页码数

func (*TaobaoscitemqueryAPIRequest) SetPageSize added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录

func (*TaobaoscitemqueryAPIRequest) SetWmsCode added in v1.3.1

func (r *TaobaoscitemqueryAPIRequest) SetWmsCode(_wmsCode string) error

SetWmsCode is WmsCode Setter 仓库编码

type TaobaoscitemqueryAPIResponse added in v1.3.1

type TaobaoscitemqueryAPIResponse struct {
	model.CommonResponse
	TaobaoscitemqueryAPIResponseModel
}

TaobaoscitemqueryAPIResponse 查询后端商品 API返回值 taobao.scitem.query

查询后端商品

type TaobaoscitemqueryAPIResponseModel added in v1.3.1

type TaobaoscitemqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// List<ScItemDO>
	ScItemList []ScItem `json:"sc_item_list,omitempty" xml:"sc_item_list>sc_item,omitempty"`
	// 商品条数
	TotalPage int64 `json:"total_page,omitempty" xml:"total_page,omitempty"`
	// 分页
	QueryPagination *QueryPagination `json:"query_pagination,omitempty" xml:"query_pagination,omitempty"`
}

TaobaoscitemqueryAPIResponseModel is 查询后端商品 成功返回结果

type TaobaoscitemupdateAPIRequest added in v1.3.1

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

TaobaoscitemupdateAPIRequest 根据商品ID或商家编码修改后端商品 API请求 taobao.scitem.update

根据商品ID或商家编码修改后端商品

func NewTaobaoscitemupdateRequest added in v1.3.1

func NewTaobaoscitemupdateRequest() *TaobaoscitemupdateAPIRequest

NewTaobaoscitemupdateRequest 初始化TaobaoscitemupdateAPIRequest对象

func (TaobaoscitemupdateAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoscitemupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoscitemupdateAPIRequest) GetBarCode added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetBarCode() string

GetBarCode BarCode Getter

func (TaobaoscitemupdateAPIRequest) GetBrandId added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetBrandId() int64

GetBrandId BrandId Getter

func (TaobaoscitemupdateAPIRequest) GetBrandName added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetBrandName() string

GetBrandName BrandName Getter

func (TaobaoscitemupdateAPIRequest) GetHeight added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetHeight() int64

GetHeight Height Getter

func (TaobaoscitemupdateAPIRequest) GetIsAreaSale added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetIsAreaSale() int64

GetIsAreaSale IsAreaSale Getter

func (TaobaoscitemupdateAPIRequest) GetIsCostly added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetIsCostly() int64

GetIsCostly IsCostly Getter

func (TaobaoscitemupdateAPIRequest) GetIsDangerous added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetIsDangerous() int64

GetIsDangerous IsDangerous Getter

func (TaobaoscitemupdateAPIRequest) GetIsFriable added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetIsFriable() int64

GetIsFriable IsFriable Getter

func (TaobaoscitemupdateAPIRequest) GetIsWarranty added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetIsWarranty() int64

GetIsWarranty IsWarranty Getter

func (TaobaoscitemupdateAPIRequest) GetItemId added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetItemId() int64

GetItemId ItemId Getter

func (TaobaoscitemupdateAPIRequest) GetItemName added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetItemName() string

GetItemName ItemName Getter

func (TaobaoscitemupdateAPIRequest) GetItemType added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetItemType() int64

GetItemType ItemType Getter

func (TaobaoscitemupdateAPIRequest) GetLength added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetLength() int64

GetLength Length Getter

func (TaobaoscitemupdateAPIRequest) GetMatterStatus added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetMatterStatus() int64

GetMatterStatus MatterStatus Getter

func (TaobaoscitemupdateAPIRequest) GetOuterCode added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetOuterCode() string

GetOuterCode OuterCode Getter

func (TaobaoscitemupdateAPIRequest) GetPrice added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetPrice() int64

GetPrice Price Getter

func (TaobaoscitemupdateAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoscitemupdateAPIRequest) GetRemark added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetRemark() string

GetRemark Remark Getter

func (TaobaoscitemupdateAPIRequest) GetRemoveProperties added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetRemoveProperties() string

GetRemoveProperties RemoveProperties Getter

func (TaobaoscitemupdateAPIRequest) GetSpuId added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetSpuId() int64

GetSpuId SpuId Getter

func (TaobaoscitemupdateAPIRequest) GetUpdateProperties added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetUpdateProperties() string

GetUpdateProperties UpdateProperties Getter

func (TaobaoscitemupdateAPIRequest) GetVolume added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetVolume() int64

GetVolume Volume Getter

func (TaobaoscitemupdateAPIRequest) GetWeight added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetWeight() int64

GetWeight Weight Getter

func (TaobaoscitemupdateAPIRequest) GetWidth added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetWidth() int64

GetWidth Width Getter

func (TaobaoscitemupdateAPIRequest) GetWmsCode added in v1.3.1

func (r TaobaoscitemupdateAPIRequest) GetWmsCode() string

GetWmsCode WmsCode Getter

func (*TaobaoscitemupdateAPIRequest) SetBarCode added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetBarCode(_barCode string) error

SetBarCode is BarCode Setter 条形码

func (*TaobaoscitemupdateAPIRequest) SetBrandId added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetBrandId(_brandId int64) error

SetBrandId is BrandId Setter 品牌id

func (*TaobaoscitemupdateAPIRequest) SetBrandName added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetBrandName(_brandName string) error

SetBrandName is BrandName Setter brand_Name

func (*TaobaoscitemupdateAPIRequest) SetHeight added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetHeight(_height int64) error

SetHeight is Height Setter 高 单位:mm

func (*TaobaoscitemupdateAPIRequest) SetIsAreaSale added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetIsAreaSale(_isAreaSale int64) error

SetIsAreaSale is IsAreaSale Setter 1表示区域销售,0或是空是非区域销售

func (*TaobaoscitemupdateAPIRequest) SetIsCostly added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetIsCostly(_isCostly int64) error

SetIsCostly is IsCostly Setter 是否是贵重品 0:不是 1:是

func (*TaobaoscitemupdateAPIRequest) SetIsDangerous added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetIsDangerous(_isDangerous int64) error

SetIsDangerous is IsDangerous Setter 是否危险 0:不是 0:是

func (*TaobaoscitemupdateAPIRequest) SetIsFriable added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetIsFriable(_isFriable int64) error

SetIsFriable is IsFriable Setter 是否易碎 0:不是 1:是

func (*TaobaoscitemupdateAPIRequest) SetIsWarranty added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetIsWarranty(_isWarranty int64) error

SetIsWarranty is IsWarranty Setter 是否保质期:0:不是 1:是

func (*TaobaoscitemupdateAPIRequest) SetItemId added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetItemId(_itemId int64) error

SetItemId is ItemId Setter 后端商品ID,跟outer_code必须指定一个

func (*TaobaoscitemupdateAPIRequest) SetItemName added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetItemName(_itemName string) error

SetItemName is ItemName Setter 商品名称

func (*TaobaoscitemupdateAPIRequest) SetItemType added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetItemType(_itemType int64) error

SetItemType is ItemType Setter 0.普通供应链商品 1.供应链组合主商品

func (*TaobaoscitemupdateAPIRequest) SetLength added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetLength(_length int64) error

SetLength is Length Setter 长度 单位:mm

func (*TaobaoscitemupdateAPIRequest) SetMatterStatus added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetMatterStatus(_matterStatus int64) error

SetMatterStatus is MatterStatus Setter 0:液体,1:粉体,2:固体

func (*TaobaoscitemupdateAPIRequest) SetOuterCode added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetOuterCode(_outerCode string) error

SetOuterCode is OuterCode Setter 商家编码,跟item_id必须指定一个

func (*TaobaoscitemupdateAPIRequest) SetPrice added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetPrice(_price int64) error

SetPrice is Price Setter price

func (*TaobaoscitemupdateAPIRequest) SetRemark added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetRemark(_remark string) error

SetRemark is Remark Setter remark

func (*TaobaoscitemupdateAPIRequest) SetRemoveProperties added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetRemoveProperties(_removeProperties string) error

SetRemoveProperties is RemoveProperties Setter 移除商品属性P列表,P由系统分配:p1;p2

func (*TaobaoscitemupdateAPIRequest) SetSpuId added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetSpuId(_spuId int64) error

SetSpuId is SpuId Setter 淘宝SKU产品级编码CSPU ID

func (*TaobaoscitemupdateAPIRequest) SetUpdateProperties added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetUpdateProperties(_updateProperties string) error

SetUpdateProperties is UpdateProperties Setter 需要更新的商品属性格式是 p1:v1,p2:v2,p3:v3

func (*TaobaoscitemupdateAPIRequest) SetVolume added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetVolume(_volume int64) error

SetVolume is Volume Setter 体积:立方厘米

func (*TaobaoscitemupdateAPIRequest) SetWeight added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetWeight(_weight int64) error

SetWeight is Weight Setter weight

func (*TaobaoscitemupdateAPIRequest) SetWidth added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetWidth(_width int64) error

SetWidth is Width Setter 宽 单位:mm

func (*TaobaoscitemupdateAPIRequest) SetWmsCode added in v1.3.1

func (r *TaobaoscitemupdateAPIRequest) SetWmsCode(_wmsCode string) error

SetWmsCode is WmsCode Setter 仓储商编码

type TaobaoscitemupdateAPIResponse added in v1.3.1

type TaobaoscitemupdateAPIResponse struct {
	model.CommonResponse
	TaobaoscitemupdateAPIResponseModel
}

TaobaoscitemupdateAPIResponse 根据商品ID或商家编码修改后端商品 API返回值 taobao.scitem.update

根据商品ID或商家编码修改后端商品

type TaobaoscitemupdateAPIResponseModel added in v1.3.1

type TaobaoscitemupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"scitem_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 更新商品数量,1表示成功更新了一条数据,0:表示未找到匹配的数据
	UpdateRows int64 `json:"update_rows,omitempty" xml:"update_rows,omitempty"`
}

TaobaoscitemupdateAPIResponseModel is 根据商品ID或商家编码修改后端商品 成功返回结果

type TipInfo

type TipInfo struct {
	// 商品id
	ScItemId string `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// 返回信息
	Info string `json:"info,omitempty" xml:"info,omitempty"`
	// errorCode
	Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"`
	// errorMessage
	Errormessage string `json:"errormessage,omitempty" xml:"errormessage,omitempty"`
	// scItemCode
	ScItemCode string `json:"sc_item_code,omitempty" xml:"sc_item_code,omitempty"`
	// storeCode
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// invStoreType
	InvStoreType int64 `json:"inv_store_type,omitempty" xml:"inv_store_type,omitempty"`
	// skuId
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 1前端商品 2供应链货品
	ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"`
}

TipInfo 结构体

type TmallchannelproductsgetAPIRequest added in v1.3.1

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

TmallchannelproductsgetAPIRequest 查询供应商的产品数据 API请求 tmall.channel.products.get

查询供应商的产品数据。

* 入参传入pids将优先查询,即只按这个条件查询。 *入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条) * 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。 * 入参fields传入images将查询多图数据,不传只返回主图数据。 * 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据) * 查询结果按照产品发布时间倒序,即时间近的数据在前。 * 传入channel 渠道,会只返回相应渠道的产品

func NewTmallchannelproductsgetRequest added in v1.3.1

func NewTmallchannelproductsgetRequest() *TmallchannelproductsgetAPIRequest

NewTmallchannelproductsgetRequest 初始化TmallchannelproductsgetAPIRequest对象

func (TmallchannelproductsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallchannelproductsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallchannelproductsgetAPIRequest) GetApiParams added in v1.3.1

func (r TmallchannelproductsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TmallchannelproductsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallchannelproductsgetAPIRequest) GetTopQueryProductDO added in v1.3.1

func (r TmallchannelproductsgetAPIRequest) GetTopQueryProductDO() *TopQueryProductDo

GetTopQueryProductDO TopQueryProductDO Getter

func (*TmallchannelproductsgetAPIRequest) SetTopQueryProductDO added in v1.3.1

func (r *TmallchannelproductsgetAPIRequest) SetTopQueryProductDO(_topQueryProductDO *TopQueryProductDo) error

SetTopQueryProductDO is TopQueryProductDO Setter top_query_product_d_o

type TmallchannelproductsgetAPIResponse added in v1.3.1

type TmallchannelproductsgetAPIResponse struct {
	model.CommonResponse
	TmallchannelproductsgetAPIResponseModel
}

TmallchannelproductsgetAPIResponse 查询供应商的产品数据 API返回值 tmall.channel.products.get

查询供应商的产品数据。

* 入参传入pids将优先查询,即只按这个条件查询。 *入参传入sku_number将优先查询(没有传入pids),即只按这个条件查询(最多显示50条) * 入参fields传skus将查询sku的数据,不传该参数默认不查询,返回产品的其它信息。 * 入参fields传入images将查询多图数据,不传只返回主图数据。 * 入参fields仅对传入pids生效(只有按ID查询时,才能查询额外的数据) * 查询结果按照产品发布时间倒序,即时间近的数据在前。 * 传入channel 渠道,会只返回相应渠道的产品

type TmallchannelproductsgetAPIResponseModel added in v1.3.1

type TmallchannelproductsgetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_channel_products_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 产品对象记录集
	Products []TopProductDo `json:"products,omitempty" xml:"products>top_product_do,omitempty"`
	// 查询结果记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TmallchannelproductsgetAPIResponseModel is 查询供应商的产品数据 成功返回结果

type TmallinventoryqueryforstoreAPIRequest added in v1.3.1

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

TmallinventoryqueryforstoreAPIRequest 查询后端商品仓库库存 API请求 tmall.inventory.query.forstore

商家查询后端商品仓库库存

func NewTmallinventoryqueryforstoreRequest added in v1.3.1

func NewTmallinventoryqueryforstoreRequest() *TmallinventoryqueryforstoreAPIRequest

NewTmallinventoryqueryforstoreRequest 初始化TmallinventoryqueryforstoreAPIRequest对象

func (TmallinventoryqueryforstoreAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallinventoryqueryforstoreAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallinventoryqueryforstoreAPIRequest) GetApiParams added in v1.3.1

func (r TmallinventoryqueryforstoreAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TmallinventoryqueryforstoreAPIRequest) GetParamList added in v1.3.1

GetParamList ParamList Getter

func (TmallinventoryqueryforstoreAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallinventoryqueryforstoreAPIRequest) SetParamList added in v1.3.1

SetParamList is ParamList Setter 查询列表

type TmallinventoryqueryforstoreAPIResponse added in v1.3.1

type TmallinventoryqueryforstoreAPIResponse struct {
	model.CommonResponse
	TmallinventoryqueryforstoreAPIResponseModel
}

TmallinventoryqueryforstoreAPIResponse 查询后端商品仓库库存 API返回值 tmall.inventory.query.forstore

商家查询后端商品仓库库存

type TmallinventoryqueryforstoreAPIResponseModel added in v1.3.1

type TmallinventoryqueryforstoreAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_inventory_query_forstore_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误code
	Errorcode string `json:"errorcode,omitempty" xml:"errorcode,omitempty"`
	// 错误信息
	Errormessage string `json:"errormessage,omitempty" xml:"errormessage,omitempty"`
	// 查询结果
	Result *InventoryQueryResult `json:"result,omitempty" xml:"result,omitempty"`
	// 整体成功或失败
	Issuccess bool `json:"issuccess,omitempty" xml:"issuccess,omitempty"`
}

TmallinventoryqueryforstoreAPIResponseModel is 查询后端商品仓库库存 成功返回结果

type TmallsupplychainchannelproductdownshelfAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductdownshelfAPIRequest 产品下架 API请求 tmall.supplychain.channel.product.downshelf

产品下架

func NewTmallsupplychainchannelproductdownshelfRequest added in v1.3.1

func NewTmallsupplychainchannelproductdownshelfRequest() *TmallsupplychainchannelproductdownshelfAPIRequest

NewTmallsupplychainchannelproductdownshelfRequest 初始化TmallsupplychainchannelproductdownshelfAPIRequest对象

func (TmallsupplychainchannelproductdownshelfAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductdownshelfAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductdownshelfAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductdownshelfAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallsupplychainchannelproductdownshelfAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品ID

type TmallsupplychainchannelproductdownshelfAPIResponse added in v1.3.1

type TmallsupplychainchannelproductdownshelfAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductdownshelfAPIResponseModel
}

TmallsupplychainchannelproductdownshelfAPIResponse 产品下架 API返回值 tmall.supplychain.channel.product.downshelf

产品下架

type TmallsupplychainchannelproductdownshelfAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductdownshelfAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_downshelf_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductdownshelfResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductdownshelfAPIResponseModel is 产品下架 成功返回结果

type TmallsupplychainchannelproductdownshelfResultDto added in v1.3.1

type TmallsupplychainchannelproductdownshelfResultDto struct {
	// 错误码
	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"`
	// 下架结果
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

TmallsupplychainchannelproductdownshelfResultDto 结构体

type TmallsupplychainchannelproductpricegetAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductpricegetAPIRequest 渠道价格查询接口 API请求 tmall.supplychain.channel.product.price.get

渠道价格查询接口

func NewTmallsupplychainchannelproductpricegetRequest added in v1.3.1

func NewTmallsupplychainchannelproductpricegetRequest() *TmallsupplychainchannelproductpricegetAPIRequest

NewTmallsupplychainchannelproductpricegetRequest 初始化TmallsupplychainchannelproductpricegetAPIRequest对象

func (TmallsupplychainchannelproductpricegetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductpricegetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductpricegetAPIRequest) GetChannelCode added in v1.3.1

GetChannelCode ChannelCode Getter

func (TmallsupplychainchannelproductpricegetAPIRequest) GetPriceType added in v1.3.1

GetPriceType PriceType Getter

func (TmallsupplychainchannelproductpricegetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductpricegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallsupplychainchannelproductpricegetAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TmallsupplychainchannelproductpricegetAPIRequest) SetChannelCode added in v1.3.1

func (r *TmallsupplychainchannelproductpricegetAPIRequest) SetChannelCode(_channelCode int64) error

SetChannelCode is ChannelCode Setter 渠道ID(台湾市场/供销平台/大农业…..)

func (*TmallsupplychainchannelproductpricegetAPIRequest) SetPriceType added in v1.3.1

func (r *TmallsupplychainchannelproductpricegetAPIRequest) SetPriceType(_priceType int64) error

SetPriceType is PriceType Setter 区域价、指导价

func (*TmallsupplychainchannelproductpricegetAPIRequest) SetProductId added in v1.3.1

func (r *TmallsupplychainchannelproductpricegetAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

func (*TmallsupplychainchannelproductpricegetAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter SKU ID

type TmallsupplychainchannelproductpricegetAPIResponse added in v1.3.1

type TmallsupplychainchannelproductpricegetAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductpricegetAPIResponseModel
}

TmallsupplychainchannelproductpricegetAPIResponse 渠道价格查询接口 API返回值 tmall.supplychain.channel.product.price.get

渠道价格查询接口

type TmallsupplychainchannelproductpricegetAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductpricegetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductpricegetResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductpricegetAPIResponseModel is 渠道价格查询接口 成功返回结果

type TmallsupplychainchannelproductpricegetResultDto added in v1.3.1

type TmallsupplychainchannelproductpricegetResultDto struct {
	// 错误码
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 询价结果
	Module *TopProductPriceResult `json:"module,omitempty" xml:"module,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallsupplychainchannelproductpricegetResultDto 结构体

type TmallsupplychainchannelproductpriceupdateAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductpriceupdateAPIRequest 渠道价格更新接口 API请求 tmall.supplychain.channel.product.price.update

更新渠道产品价格

func NewTmallsupplychainchannelproductpriceupdateRequest added in v1.3.1

func NewTmallsupplychainchannelproductpriceupdateRequest() *TmallsupplychainchannelproductpriceupdateAPIRequest

NewTmallsupplychainchannelproductpriceupdateRequest 初始化TmallsupplychainchannelproductpriceupdateAPIRequest对象

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetChannelCode added in v1.3.1

GetChannelCode ChannelCode Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetCurrencyType added in v1.3.1

GetCurrencyType CurrencyType Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetPriceType added in v1.3.1

GetPriceType PriceType Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetProductPrice added in v1.3.1

GetProductPrice ProductPrice Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (TmallsupplychainchannelproductpriceupdateAPIRequest) GetSkuPrice added in v1.3.1

GetSkuPrice SkuPrice Getter

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetChannelCode added in v1.3.1

func (r *TmallsupplychainchannelproductpriceupdateAPIRequest) SetChannelCode(_channelCode int64) error

SetChannelCode is ChannelCode Setter 渠道编码

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetCurrencyType added in v1.3.1

func (r *TmallsupplychainchannelproductpriceupdateAPIRequest) SetCurrencyType(_currencyType string) error

SetCurrencyType is CurrencyType Setter 币种,非必填,仅支持当商品记为外币价格时使用

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetPriceType added in v1.3.1

SetPriceType is PriceType Setter 1.指导价(默认) 2.区域价

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品数字ID

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetProductPrice added in v1.3.1

func (r *TmallsupplychainchannelproductpriceupdateAPIRequest) SetProductPrice(_productPrice string) error

SetProductPrice is ProductPrice Setter 产品价格,必填

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter SKU ID

func (*TmallsupplychainchannelproductpriceupdateAPIRequest) SetSkuPrice added in v1.3.1

SetSkuPrice is SkuPrice Setter 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。

type TmallsupplychainchannelproductpriceupdateAPIResponse added in v1.3.1

type TmallsupplychainchannelproductpriceupdateAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductpriceupdateAPIResponseModel
}

TmallsupplychainchannelproductpriceupdateAPIResponse 渠道价格更新接口 API返回值 tmall.supplychain.channel.product.price.update

更新渠道产品价格

type TmallsupplychainchannelproductpriceupdateAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductpriceupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_price_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *ResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductpriceupdateAPIResponseModel is 渠道价格更新接口 成功返回结果

type TmallsupplychainchannelproductquantitygetAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductquantitygetAPIRequest 渠道库存查询接口 API请求 tmall.supplychain.channel.product.quantity.get

渠道库存查询接口

func NewTmallsupplychainchannelproductquantitygetRequest added in v1.3.1

func NewTmallsupplychainchannelproductquantitygetRequest() *TmallsupplychainchannelproductquantitygetAPIRequest

NewTmallsupplychainchannelproductquantitygetRequest 初始化TmallsupplychainchannelproductquantitygetAPIRequest对象

func (TmallsupplychainchannelproductquantitygetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductquantitygetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductquantitygetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductquantitygetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallsupplychainchannelproductquantitygetAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (*TmallsupplychainchannelproductquantitygetAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品数字ID

func (*TmallsupplychainchannelproductquantitygetAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter SKU ID

type TmallsupplychainchannelproductquantitygetAPIResponse added in v1.3.1

type TmallsupplychainchannelproductquantitygetAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductquantitygetAPIResponseModel
}

TmallsupplychainchannelproductquantitygetAPIResponse 渠道库存查询接口 API返回值 tmall.supplychain.channel.product.quantity.get

渠道库存查询接口

type TmallsupplychainchannelproductquantitygetAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductquantitygetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductquantitygetResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductquantitygetAPIResponseModel is 渠道库存查询接口 成功返回结果

type TmallsupplychainchannelproductquantitygetResultDto added in v1.3.1

type TmallsupplychainchannelproductquantitygetResultDto struct {
	// 库存数量
	Module string `json:"module,omitempty" xml:"module,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"`
}

TmallsupplychainchannelproductquantitygetResultDto 结构体

type TmallsupplychainchannelproductquantityupdateAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductquantityupdateAPIRequest 渠道无仓库存更新接口 API请求 tmall.supplychain.channel.product.quantity.update

渠道无仓库存更新接口

func NewTmallsupplychainchannelproductquantityupdateRequest added in v1.3.1

func NewTmallsupplychainchannelproductquantityupdateRequest() *TmallsupplychainchannelproductquantityupdateAPIRequest

NewTmallsupplychainchannelproductquantityupdateRequest 初始化TmallsupplychainchannelproductquantityupdateAPIRequest对象

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetQuantity added in v1.3.1

GetQuantity Quantity Getter

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetSkuId added in v1.3.1

GetSkuId SkuId Getter

func (TmallsupplychainchannelproductquantityupdateAPIRequest) GetUpdateType added in v1.3.1

GetUpdateType UpdateType Getter

func (*TmallsupplychainchannelproductquantityupdateAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品数字ID

func (*TmallsupplychainchannelproductquantityupdateAPIRequest) SetQuantity added in v1.3.1

SetQuantity is Quantity Setter 库存修改值,必选。当全量更新库存时,quantity必须为大于等于0的正整数;当增量更新库存时,quantity为整数,可小于等于0。若增量更新时传入的库存为负数,则负数与实际库存之和不能小于0。比如当前实际库存为1,传入增量更新quantity=-1,库存改为0

func (*TmallsupplychainchannelproductquantityupdateAPIRequest) SetSkuId added in v1.3.1

SetSkuId is SkuId Setter 产品SKU ID

func (*TmallsupplychainchannelproductquantityupdateAPIRequest) SetUpdateType added in v1.3.1

SetUpdateType is UpdateType Setter 库存更新方式,可选。1为全量更新,2为增量更新。如果不填,默认为全量更新

type TmallsupplychainchannelproductquantityupdateAPIResponse added in v1.3.1

type TmallsupplychainchannelproductquantityupdateAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductquantityupdateAPIResponseModel
}

TmallsupplychainchannelproductquantityupdateAPIResponse 渠道无仓库存更新接口 API返回值 tmall.supplychain.channel.product.quantity.update

渠道无仓库存更新接口

type TmallsupplychainchannelproductquantityupdateAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductquantityupdateAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_quantity_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductquantityupdateResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductquantityupdateAPIResponseModel is 渠道无仓库存更新接口 成功返回结果

type TmallsupplychainchannelproductquantityupdateResultDto added in v1.3.1

type TmallsupplychainchannelproductquantityupdateResultDto struct {
	// 错误码
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 更新内容
	Module *TopProductQuantityResult `json:"module,omitempty" xml:"module,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallsupplychainchannelproductquantityupdateResultDto 结构体

type TmallsupplychainchannelproductreleaseAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductreleaseAPIRequest 供应商铺货 API请求 tmall.supplychain.channel.product.release

供应商渠道铺货接口

func NewTmallsupplychainchannelproductreleaseRequest added in v1.3.1

func NewTmallsupplychainchannelproductreleaseRequest() *TmallsupplychainchannelproductreleaseAPIRequest

NewTmallsupplychainchannelproductreleaseRequest 初始化TmallsupplychainchannelproductreleaseAPIRequest对象

func (TmallsupplychainchannelproductreleaseAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductreleaseAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductreleaseAPIRequest) GetChannelCode added in v1.3.1

GetChannelCode ChannelCode Getter

func (TmallsupplychainchannelproductreleaseAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductreleaseAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallsupplychainchannelproductreleaseAPIRequest) SetChannelCode added in v1.3.1

func (r *TmallsupplychainchannelproductreleaseAPIRequest) SetChannelCode(_channelCode int64) error

SetChannelCode is ChannelCode Setter 渠道ID

func (*TmallsupplychainchannelproductreleaseAPIRequest) SetProductId added in v1.3.1

func (r *TmallsupplychainchannelproductreleaseAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品数字ID

type TmallsupplychainchannelproductreleaseAPIResponse added in v1.3.1

type TmallsupplychainchannelproductreleaseAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductreleaseAPIResponseModel
}

TmallsupplychainchannelproductreleaseAPIResponse 供应商铺货 API返回值 tmall.supplychain.channel.product.release

供应商渠道铺货接口

type TmallsupplychainchannelproductreleaseAPIResponseModel added in v1.3.1

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

TmallsupplychainchannelproductreleaseAPIResponseModel is 供应商铺货 成功返回结果

type TmallsupplychainchannelproductreleaseResultDto added in v1.3.1

type TmallsupplychainchannelproductreleaseResultDto struct {
	// 链路ID
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 异常名
	ExpName string `json:"exp_name,omitempty" xml:"exp_name,omitempty"`
	// 重定向url
	RedirectUrl string `json:"redirect_url,omitempty" xml:"redirect_url,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"`
}

TmallsupplychainchannelproductreleaseResultDto 结构体

type TmallsupplychainchannelproductreleasestatusgetAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductreleasestatusgetAPIRequest 产品铺货状态查询 API请求 tmall.supplychain.channel.product.release.status.get

巴拿马战役渠道产品状态查询

func NewTmallsupplychainchannelproductreleasestatusgetRequest added in v1.3.1

func NewTmallsupplychainchannelproductreleasestatusgetRequest() *TmallsupplychainchannelproductreleasestatusgetAPIRequest

NewTmallsupplychainchannelproductreleasestatusgetRequest 初始化TmallsupplychainchannelproductreleasestatusgetAPIRequest对象

func (TmallsupplychainchannelproductreleasestatusgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductreleasestatusgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductreleasestatusgetAPIRequest) GetChannelCode added in v1.3.1

GetChannelCode ChannelCode Getter

func (TmallsupplychainchannelproductreleasestatusgetAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductreleasestatusgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallsupplychainchannelproductreleasestatusgetAPIRequest) SetChannelCode added in v1.3.1

SetChannelCode is ChannelCode Setter 渠道ID ( 台湾 : 111002 )

func (*TmallsupplychainchannelproductreleasestatusgetAPIRequest) SetProductId added in v1.3.1

SetProductId is ProductId Setter 产品ID

type TmallsupplychainchannelproductreleasestatusgetAPIResponse added in v1.3.1

type TmallsupplychainchannelproductreleasestatusgetAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductreleasestatusgetAPIResponseModel
}

TmallsupplychainchannelproductreleasestatusgetAPIResponse 产品铺货状态查询 API返回值 tmall.supplychain.channel.product.release.status.get

巴拿马战役渠道产品状态查询

type TmallsupplychainchannelproductreleasestatusgetAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductreleasestatusgetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_release_status_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductreleasestatusgetResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductreleasestatusgetAPIResponseModel is 产品铺货状态查询 成功返回结果

type TmallsupplychainchannelproductreleasestatusgetResultDto added in v1.3.1

type TmallsupplychainchannelproductreleasestatusgetResultDto struct {
	// 错误码
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 查询结果
	Module *TopProductStatusResult `json:"module,omitempty" xml:"module,omitempty"`
	// 执行结果
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallsupplychainchannelproductreleasestatusgetResultDto 结构体

type TmallsupplychainchannelproductupshelfAPIRequest added in v1.3.1

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

TmallsupplychainchannelproductupshelfAPIRequest 产品上架 API请求 tmall.supplychain.channel.product.upshelf

上架渠道产品

func NewTmallsupplychainchannelproductupshelfRequest added in v1.3.1

func NewTmallsupplychainchannelproductupshelfRequest() *TmallsupplychainchannelproductupshelfAPIRequest

NewTmallsupplychainchannelproductupshelfRequest 初始化TmallsupplychainchannelproductupshelfAPIRequest对象

func (TmallsupplychainchannelproductupshelfAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallsupplychainchannelproductupshelfAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TmallsupplychainchannelproductupshelfAPIRequest) GetProductId added in v1.3.1

GetProductId ProductId Getter

func (TmallsupplychainchannelproductupshelfAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallsupplychainchannelproductupshelfAPIRequest) SetProductId added in v1.3.1

func (r *TmallsupplychainchannelproductupshelfAPIRequest) SetProductId(_productId int64) error

SetProductId is ProductId Setter 产品ID

type TmallsupplychainchannelproductupshelfAPIResponse added in v1.3.1

type TmallsupplychainchannelproductupshelfAPIResponse struct {
	model.CommonResponse
	TmallsupplychainchannelproductupshelfAPIResponseModel
}

TmallsupplychainchannelproductupshelfAPIResponse 产品上架 API返回值 tmall.supplychain.channel.product.upshelf

上架渠道产品

type TmallsupplychainchannelproductupshelfAPIResponseModel added in v1.3.1

type TmallsupplychainchannelproductupshelfAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_supplychain_channel_product_upshelf_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 异步获取历史数据接口返回结果
	Result *TmallsupplychainchannelproductupshelfResultDto `json:"result,omitempty" xml:"result,omitempty"`
}

TmallsupplychainchannelproductupshelfAPIResponseModel is 产品上架 成功返回结果

type TmallsupplychainchannelproductupshelfResultDto added in v1.3.1

type TmallsupplychainchannelproductupshelfResultDto struct {
	// 错误码
	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"`
	// 上架结果
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

TmallsupplychainchannelproductupshelfResultDto 结构体

type TopDpOrderDo

type TopDpOrderDo struct {
	// ISV自定义key,通过taobao.fenxiao.order.customfield.update 写入。目前禁用
	IsvCustomKey []string `json:"isv_custom_key,omitempty" xml:"isv_custom_key>string,omitempty"`
	// ISV自定义值,通过taobao.fenxiao.order.customfield.update 写入。目前禁用
	IsvCustomValue []string `json:"isv_custom_value,omitempty" xml:"isv_custom_value>string,omitempty"`
	// 建议废弃 Feature对象列表目前已有的属性: attr_key为 www,attr_value为1 表示是www子订单; attr_key为 wwwStoreCode,attr_value是www子订单发货的仓库编码; attr_key为 isWt,attr_value为1 表示是网厅子订单; attr_key为wtInfo,attr_value为网厅相关合约信息; attr_key为 storeCode,attr_value为仓库信息;  attr_key为 erpHold,attr_value为1表示强管控中, attr_value为2表示分单完成;
	Features []FeatureDo `json:"features,omitempty" xml:"features>feature_do,omitempty"`
	// 子订单的详细信息列表
	SubPurchaseOrders []SubOrderDetail `json:"sub_purchase_orders,omitempty" xml:"sub_purchase_orders>sub_order_detail,omitempty"`
	// 采购单留言列表,如果是代销,包含消费者留言。
	OrderMessages []OrderMessages `json:"order_messages,omitempty" xml:"order_messages>order_messages,omitempty"`
	// [架海金梁独有字段,非架海金梁用户请勿关心]子单物流发货信息
	LogisticsInfos []ErpLogisticsInfo `json:"logistics_infos,omitempty" xml:"logistics_infos>erp_logistics_info,omitempty"`
	// 供应商来源网站。 入驻时定义供应商来源的外部系统编码, values: taobao, alibaba
	SupplierFrom string `json:"supplier_from,omitempty" xml:"supplier_from,omitempty"`
	// 供应商昵称(在来源网站的帐号名)
	SupplierUsername string `json:"supplier_username,omitempty" xml:"supplier_username,omitempty"`
	// 建议废弃: 分销商来源网站。 入驻时定义分销商来源的外部系统编码, 目前固定值: taobao
	DistributorFrom string `json:"distributor_from,omitempty" xml:"distributor_from,omitempty"`
	// 分销商昵称(在来源网站的帐号名)。
	DistributorUsername string `json:"distributor_username,omitempty" xml:"distributor_username,omitempty"`
	// 加密后的消费者淘宝ID,长度为32
	BuyerTaobaoId string `json:"buyer_taobao_id,omitempty" xml:"buyer_taobao_id,omitempty"`
	// 消费者(买家)nick,供应商查询不会返回买家昵称,分销商查询才会返回。
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 交易模式(分销方式):AGENT(代销)、DEALER(经销)、INSTEAD_SALE(代售)、CONSIGNMENT(自营寄售)、PLATFORM_CONSIGNMENT(平台寄售)
	TradeType string `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
	// 采购单创建时间。格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 采购单留言,默认是分销商留言。在代销模式下信息包括消费者(买家)留言和分销商留言信息
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 供应商备注信息。 只有供应商身份查询输出此新信息
	SupplierMemo string `json:"supplier_memo,omitempty" xml:"supplier_memo,omitempty"`
	// 支付宝交易号,在分销商使用担保交易支付时存在。 来源主订单的payOrderId。
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 应付采购单总额(不含邮费,精确到2位小数;单位:元。如:200.07,表示:200元7分 ) 计算公式: SUM(子单采购价 * 子单采购数量 - 子单折扣)+ 主单调整金额 - 主单折扣
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 采购单邮费。(改价后最新邮费,精确到2位小数;单位:元。如:8.07,表示:8元7分 )
	PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"`
	// 分销商实付金额。(精确到2位小数;单位:元。如:208.14,表示:208元1角4分 )
	DistributorPayment string `json:"distributor_payment,omitempty" xml:"distributor_payment,omitempty"`
	// 消费者(买家)支付给分销商的主单的实际总金额。 注意买家购买的商品可能不是全部来自同一供货商,所以此金额不代表供应商销售商品消费者的实付款。请同时参考子单上的相关金额。(精确到2位小数;单位:元。如:200.07,表示:200元7分)
	BuyerPayment string `json:"buyer_payment,omitempty" xml:"buyer_payment,omitempty"`
	// 交易订单快照URL(该字段废弃)
	SnapshotUrl string `json:"snapshot_url,omitempty" xml:"snapshot_url,omitempty"`
	// 采购单交易状态。 可选值: WAIT_BUYER_PAY(等待付款) WAIT_SELLER_SEND_GOODS(已付款,待发货) WAIT_BUYER_CONFIRM_GOODS(已付款,已发货) PAID_FORBID_CONSIGN(已付款,禁止发货 ps:只有大快消行业的才有) TRADE_FINISHED(交易成功) TRADE_CLOSED(交易关闭) WAIT_BUYER_CONFIRM_GOODS_ACOUNTED(已付款(已分账),已发货。只对代销分账支持) PAY_ACOUNTED_GOODS_CONFIRM (已分账发货成功) PAY_WAIT_ACOUNT_GOODS_CONFIRM(已付款,确认收货)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 采购单付款时间。格式:yyyy-MM-dd HH:mm:ss
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 交易结束时间。 如果交易成功此时间表示交易成功时间,如果交易关闭,此时间表示交易关闭时间。
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 采购单物流发货时间。格式:yyyy-MM-dd HH:mm:ss
	ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"`
	// 采购单最后修改时间(包括订单状态变更和订单操作)。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 支付方式:ALIPAY_SURETY(支付宝担保交易)、ALIPAY_CHAIN(分账交易)、TRANSFER(线下转账)、PREPAY(预存款)、IMMEDIATELY(即时到账)、CASHGOODS(先款后货)、ACCOUNT_PERIOD(账期支付)
	PayType string `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 物流配送方式,发货后有此数据。 对应的值:FAST(快速)、EMS、ORDINARY(平邮)、SELLER(卖家包邮)
	Shipping string `json:"shipping,omitempty" xml:"shipping,omitempty"`
	// 物流公司名称
	LogisticsCompanyName string `json:"logistics_company_name,omitempty" xml:"logistics_company_name,omitempty"`
	// 运单号
	LogisticsId string `json:"logistics_id,omitempty" xml:"logistics_id,omitempty"`
	// 支付宝交易号,担保交易使用。
	AlipayOrderNo string `json:"alipay_order_no,omitempty" xml:"alipay_order_no,omitempty"`
	// 已执行确认收货的金额,单位:元
	ConfirmPaidFeeYuan string `json:"confirm_paid_fee_yuan,omitempty" xml:"confirm_paid_fee_yuan,omitempty"`
	// 消费者淘宝id被加密后的唯一标识
	OpenBuyerUid string `json:"open_buyer_uid,omitempty" xml:"open_buyer_uid,omitempty"`
	// 计划出库时间
	DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"`
	// 计划送达时间
	SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"`
	// 配送服务,201为驿站送货上门服务,202为顺丰配送服务,里面多个值时用英文逗号隔开
	AsdpAds string `json:"asdp_ads,omitempty" xml:"asdp_ads,omitempty"`
	// 推荐配送公司编码
	DeliveryCps string `json:"delivery_cps,omitempty" xml:"delivery_cps,omitempty"`
	// 消费者主订单ID (经销模式下,不存在该单号)
	TcOrderId int64 `json:"tc_order_id,omitempty" xml:"tc_order_id,omitempty"`
	// 废弃:如果是担保交易此值是TP800的交易单号,其他情况是采购单单号
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 分销采购单号(分销流水号)
	FenxiaoId int64 `json:"fenxiao_id,omitempty" xml:"fenxiao_id,omitempty"`
	// 供应商备注旗帜vlaue在1-5之间。 非1-5之间,都采用1作为默认。 1:红色 2:黄色 3:绿色 4:蓝色 5:粉红色 供应商角色查询返回
	SupplierFlag int64 `json:"supplier_flag,omitempty" xml:"supplier_flag,omitempty"`
	// 买家详细信息
	Receiver *TopReceiverDo `json:"receiver,omitempty" xml:"receiver,omitempty"`
	// 渠道(市场)编码,例如消费电子的编码为200002
	ChannelCode int64 `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
}

TopDpOrderDo 结构体

type TopDpRefundDetailDo added in v1.2.5

type TopDpRefundDetailDo struct {
	// 退货的物流信息
	ReturnLogistics []RefundLogistics `json:"return_logistics,omitempty" xml:"return_logistics>refund_logistics,omitempty"`
	// 退款明细项,记录退款涉及的订单
	RefundItems []RefundItem `json:"refund_items,omitempty" xml:"refund_items>refund_item,omitempty"`
	// 退款创建时间
	RefundCreateTime string `json:"refund_create_time,omitempty" xml:"refund_create_time,omitempty"`
	// 退款的金额(元)
	RefundFee string `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 支付给供应商的金额(元),分销订单子单实付金额-退款金额
	PaySupFee string `json:"pay_sup_fee,omitempty" xml:"pay_sup_fee,omitempty"`
	// 退款原因
	RefundReason string `json:"refund_reason,omitempty" xml:"refund_reason,omitempty"`
	// 退款说明
	RefundDesc string `json:"refund_desc,omitempty" xml:"refund_desc,omitempty"`
	// 分销商nick
	DistributorNick string `json:"distributor_nick,omitempty" xml:"distributor_nick,omitempty"`
	// 供应商nick
	SupplierNick string `json:"supplier_nick,omitempty" xml:"supplier_nick,omitempty"`
	// 退款修改时间。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 超时时间
	Timeout string `json:"timeout,omitempty" xml:"timeout,omitempty"`
	// 分销子订单号,如果是by子单发起退款,就会在退款主单上记录分销子订单号
	SubOrderId int64 `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 退款状态1:分销商已经申请退款,等待供应商确认2:供应商已经同意退货,等待分销商退货3:分销商已经退货,等待供应商确认收货4:退款关闭5:退款成功  6:供应商拒绝退款12:供应商同意退款,待系统打款  9:没有申请退款 10:供应商拒绝确认收货,待分销商重新修改
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 分销主订单号
	PurchaseOrderId int64 `json:"purchase_order_id,omitempty" xml:"purchase_order_id,omitempty"`
	// 退款流程类型:4:未发货退款;1:已发货仅退款;2:已发货退货退款;3:售后仅退款;5:物流拒收;6:售后退货退款
	RefundFlowType int64 `json:"refund_flow_type,omitempty" xml:"refund_flow_type,omitempty"`
	// 超时类型:<br/>1:供应商同意退款/同意退货超时;<br/>2:供应商确认收货超时
	ToType int64 `json:"to_type,omitempty" xml:"to_type,omitempty"`
	// 前台消费者订单对应的退款详情
	BuyerRefund *BuyerRefund `json:"buyer_refund,omitempty" xml:"buyer_refund,omitempty"`
	// 分销退款单号
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 是否退货,如果是已发货退货退款/售后退货退款,就是true
	IsReturnGoods bool `json:"is_return_goods,omitempty" xml:"is_return_goods,omitempty"`
}

TopDpRefundDetailDo 结构体

type TopMemoAttachment

type TopMemoAttachment struct {
	// 附件地址
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 附件名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
}

TopMemoAttachment 结构体

type TopMemoDto

type TopMemoDto struct {
	// 附件
	Attachments []TopMemoAttachment `json:"attachments,omitempty" xml:"attachments>top_memo_attachment,omitempty"`
	// 子订单备注内容
	Remark string `json:"remark,omitempty" xml:"remark,omitempty"`
	// 操作者昵称
	OperateUserNick string `json:"operate_user_nick,omitempty" xml:"operate_user_nick,omitempty"`
}

TopMemoDto 结构体

type TopOfflineAddPrepayDto

type TopOfflineAddPrepayDto struct {
	// 收款人账号
	ReceiverAccountNum string `json:"receiver_account_num,omitempty" xml:"receiver_account_num,omitempty"`
	// 外部系统支付流水Id,用于商家上传流水时去重(外部保证唯一)
	OuterPayId string `json:"outer_pay_id,omitempty" xml:"outer_pay_id,omitempty"`
	// 销商淘宝nick
	DistNick string `json:"dist_nick,omitempty" xml:"dist_nick,omitempty"`
	// 出票人全称
	DrawerFullName string `json:"drawer_full_name,omitempty" xml:"drawer_full_name,omitempty"`
	// 付款行行号
	PayBankNum string `json:"pay_bank_num,omitempty" xml:"pay_bank_num,omitempty"`
	// 出票人账号
	DrawerAccountNum string `json:"drawer_account_num,omitempty" xml:"drawer_account_num,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 出票日期
	TicketIssueDate string `json:"ticket_issue_date,omitempty" xml:"ticket_issue_date,omitempty"`
	// 收款开户银行
	ReceiverBankFullName string `json:"receiver_bank_full_name,omitempty" xml:"receiver_bank_full_name,omitempty"`
	// 承兑票据号(承兑必填)
	TicketId string `json:"ticket_id,omitempty" xml:"ticket_id,omitempty"`
	// 汇票到期日期
	AcceptDate string `json:"accept_date,omitempty" xml:"accept_date,omitempty"`
	// 收款人全称
	ReceiverFullName string `json:"receiver_full_name,omitempty" xml:"receiver_full_name,omitempty"`
	// 付款行全称
	PayBankFullName string `json:"pay_bank_full_name,omitempty" xml:"pay_bank_full_name,omitempty"`
	// 资金流水类型:1.纸质承兑; 2.电子承兑;3.现金;4.优惠返点;5.奖励
	FlowType int64 `json:"flow_type,omitempty" xml:"flow_type,omitempty"`
	// 金额,单位分(必须为正数)
	TicketMoney int64 `json:"ticket_money,omitempty" xml:"ticket_money,omitempty"`
}

TopOfflineAddPrepayDto 结构体

type TopOfflineReducePrepayDto

type TopOfflineReducePrepayDto struct {
	// 收款人账号
	ReceiverAccountNum string `json:"receiver_account_num,omitempty" xml:"receiver_account_num,omitempty"`
	// 外部系统支付流水Id,用于商家上传流水时去重(外部保证唯一)
	OuterPayId string `json:"outer_pay_id,omitempty" xml:"outer_pay_id,omitempty"`
	// 销商淘宝nick
	DistNick string `json:"dist_nick,omitempty" xml:"dist_nick,omitempty"`
	// 出票人全称
	DrawerFullName string `json:"drawer_full_name,omitempty" xml:"drawer_full_name,omitempty"`
	// 付款行行号
	PayBankNum string `json:"pay_bank_num,omitempty" xml:"pay_bank_num,omitempty"`
	// 出票人账号
	DrawerAccountNum string `json:"drawer_account_num,omitempty" xml:"drawer_account_num,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 出票日期
	TicketIssueDate string `json:"ticket_issue_date,omitempty" xml:"ticket_issue_date,omitempty"`
	// 收款开户银行
	ReceiverBankFullName string `json:"receiver_bank_full_name,omitempty" xml:"receiver_bank_full_name,omitempty"`
	// 承兑票据号
	TicketId string `json:"ticket_id,omitempty" xml:"ticket_id,omitempty"`
	// 汇票到期日期
	AcceptDate string `json:"accept_date,omitempty" xml:"accept_date,omitempty"`
	// 收款人全称
	ReceiverFullName string `json:"receiver_full_name,omitempty" xml:"receiver_full_name,omitempty"`
	// 付款行全称
	PayBankFullName string `json:"pay_bank_full_name,omitempty" xml:"pay_bank_full_name,omitempty"`
	// 资金流水类型:1.纸质承兑; 2.电子承兑;3.现金;4.优惠返点;5.奖励
	FlowType int64 `json:"flow_type,omitempty" xml:"flow_type,omitempty"`
	// 线下流水类型 1票据作废 2线下使用
	OfflinePrepayDetailType int64 `json:"offline_prepay_detail_type,omitempty" xml:"offline_prepay_detail_type,omitempty"`
	// 金额,单位分(必须为负数)
	TicketMoney int64 `json:"ticket_money,omitempty" xml:"ticket_money,omitempty"`
}

TopOfflineReducePrepayDto 结构体

type TopProductDo

type TopProductDo struct {
	// 分销产品SKU列表
	Skus []ProductSkuDo `json:"skus,omitempty" xml:"skus>product_sku_do,omitempty"`
	// 所在地:市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 代销采购价格,单位:元。
	CostPriceYuan string `json:"cost_price_yuan,omitempty" xml:"cost_price_yuan,omitempty"`
	// 产品描述路径,通过http请求获取
	DescPath string `json:"desc_path,omitempty" xml:"desc_path,omitempty"`
	// 创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 更新时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// ems费用,单位:元
	PostageEms string `json:"postage_ems,omitempty" xml:"postage_ems,omitempty"`
	// 快递费用,单位:元
	PostageFast string `json:"postage_fast,omitempty" xml:"postage_fast,omitempty"`
	// 平邮费用,单位:元
	PostageOrdinary string `json:"postage_ordinary,omitempty" xml:"postage_ordinary,omitempty"`
	// 商家编码
	OuterId string `json:"outer_id,omitempty" xml:"outer_id,omitempty"`
	// 所在地:省
	Prov string `json:"prov,omitempty" xml:"prov,omitempty"`
	// 最高零售价,单位:元。
	RetailPriceHigh string `json:"retail_price_high,omitempty" xml:"retail_price_high,omitempty"`
	// 最低零售价,单位:元。
	RetailPriceLow string `json:"retail_price_low,omitempty" xml:"retail_price_low,omitempty"`
	// 市场价:单位元
	StandardPrice string `json:"standard_price,omitempty" xml:"standard_price,omitempty"`
	// 产品名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 产品图片路径列表,用“,”分隔
	Pictures string `json:"pictures,omitempty" xml:"pictures,omitempty"`
	// 是否有发票,可选值:false(否)、true(是)
	HaveInvoice int64 `json:"have_invoice,omitempty" xml:"have_invoice,omitempty"`
	// 是否有保修,可选值:false(否)、true(是)
	HaveQuarantee int64 `json:"have_quarantee,omitempty" xml:"have_quarantee,omitempty"`
	// 关联的前台宝贝id
	AuctionId int64 `json:"auction_id,omitempty" xml:"auction_id,omitempty"`
	// 下载人数
	ItemsCount int64 `json:"items_count,omitempty" xml:"items_count,omitempty"`
	// 运费模板ID
	PostageId int64 `json:"postage_id,omitempty" xml:"postage_id,omitempty"`
	// 运费类型:1(供应商承担运费)、2(分销商承担运费)可选值:seller(供应商承担运费)、buyer(分销商承担运费)
	PostageType int64 `json:"postage_type,omitempty" xml:"postage_type,omitempty"`
	// 产品ID
	Pid int64 `json:"pid,omitempty" xml:"pid,omitempty"`
	// 产品所属产品线id
	ProductLineId int64 `json:"product_line_id,omitempty" xml:"product_line_id,omitempty"`
	// 产品库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// scItemId
	ScItemId int64 `json:"sc_item_id,omitempty" xml:"sc_item_id,omitempty"`
	// spuId
	SpuId int64 `json:"spu_id,omitempty" xml:"spu_id,omitempty"`
	// 发布状态: 1 上架,2 下架,3 删除
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
	// 累计采购次数
	OrdersCount int64 `json:"orders_count,omitempty" xml:"orders_count,omitempty"`
}

TopProductDo 结构体

type TopProductPriceResult

type TopProductPriceResult struct {
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 币种
	CurrencyType string `json:"currency_type,omitempty" xml:"currency_type,omitempty"`
	// 产品ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// SKU ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 渠道编码
	ChannelCode int64 `json:"channel_code,omitempty" xml:"channel_code,omitempty"`
	// 价格类型,区域价、指导价
	PriceType int64 `json:"price_type,omitempty" xml:"price_type,omitempty"`
}

TopProductPriceResult 结构体

type TopProductQuantityResult

type TopProductQuantityResult struct {
	// 更新后库存数量
	Result string `json:"result,omitempty" xml:"result,omitempty"`
	// 更新时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 产品数字ID
	ProductId int64 `json:"product_id,omitempty" xml:"product_id,omitempty"`
	// SKU ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

TopProductQuantityResult 结构体

type TopProductStatusResult

type TopProductStatusResult struct {
	// 产品铺货状态
	Release bool `json:"release,omitempty" xml:"release,omitempty"`
}

TopProductStatusResult 结构体

type TopQueryProductDo

type TopQueryProductDo struct {
	// 要查询的产品id 列表
	Ids []int64 `json:"ids,omitempty" xml:"ids>int64,omitempty"`
	// 关联的前端宝贝id列表
	ItemIds []int64 `json:"item_ids,omitempty" xml:"item_ids>int64,omitempty"`
	// 产品商家编码
	ProductOuterId string `json:"product_outer_id,omitempty" xml:"product_outer_id,omitempty"`
	// sku商家编码
	SkuOuterId string `json:"sku_outer_id,omitempty" xml:"sku_outer_id,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 产品线id
	ProductLineId int64 `json:"product_line_id,omitempty" xml:"product_line_id,omitempty"`
	// 当前要查看的页数
	PageNum int64 `json:"page_num,omitempty" xml:"page_num,omitempty"`
	// 渠道[21 零售plus]
	Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"`
}

TopQueryProductDo 结构体

type TopReceiverDo

type TopReceiverDo struct {
	// 收货人全名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 收货人的详细地址信息
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 邮政编码
	Zip string `json:"zip,omitempty" xml:"zip,omitempty"`
	// 固定电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 移动电话
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 收货人所在省份
	State string `json:"state,omitempty" xml:"state,omitempty"`
	// 收货人的城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 区/县
	District string `json:"district,omitempty" xml:"district,omitempty"`
	// 收件人ID (Open Addressee ID),长度在128个字符之内。
	Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"`
}

TopReceiverDo 结构体

type UpdateCnskuOption

type UpdateCnskuOption struct {
	// 是否同步到wms, 为空时默认下发
	SyncWms bool `json:"sync_wms,omitempty" xml:"sync_wms,omitempty"`
}

UpdateCnskuOption 结构体

type WareHouseDto

type WareHouseDto struct {
	// 详细地址描述
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 仓库地址信息,格式 :省~市~区县
	AddressAreaName string `json:"address_area_name,omitempty" xml:"address_area_name,omitempty"`
	// 别名
	AliasName string `json:"alias_name,omitempty" xml:"alias_name,omitempty"`
	// 联系人
	Contact string `json:"contact,omitempty" xml:"contact,omitempty"`
	// 电话号码
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 邮编
	PostCode string `json:"post_code,omitempty" xml:"post_code,omitempty"`
	// 仓库编码,仅允许使用字母、数字、下划线,并且在6-30个字符内
	StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"`
	// 仓库名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 操作类型,新增:ADD;修改:UPDATE
	OperateType string `json:"operate_type,omitempty" xml:"operate_type,omitempty"`
}

WareHouseDto 结构体

Source Files

Jump to

Keyboard shortcuts

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