fenxiao

package
v0.0.0-...-32237eb Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2013 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

提供了分销商信息和采购单信息的查询以及分销产品的添加和更新等功能 auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com

Index

Constants

View Source
const VersionNo = "20130808"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuyerRefund

type BuyerRefund struct {
	BizOrderId       int    `json:"biz_order_id"`
	BuyerNick        string `json:"buyer_nick"`
	GoodsStatusDesc  string `json:"goods_status_desc"`
	Modified         string `json:"modified"`
	NeedReturnGoods  bool   `json:"need_return_goods"`
	RefundCreateTime string `json:"refund_create_time"`
	RefundDesc       string `json:"refund_desc"`
	RefundId         int    `json:"refund_id"`
	RefundReason     string `json:"refund_reason"`
	RefundStatus     int    `json:"refund_status"`
	ReturnFee        int    `json:"return_fee"`
	SubOrderId       int    `json:"sub_order_id"`
	ToSellerFee      int    `json:"to_seller_fee"`
}

下游买家退款信息

type Cooperation

type Cooperation struct {
	AuthPayway      []string `json:"auth_payway"`
	CooperateId     int      `json:"cooperate_id"`
	DistributorId   int      `json:"distributor_id"`
	DistributorNick string   `json:"distributor_nick"`
	EndDate         string   `json:"end_date"`
	GradeId         int      `json:"grade_id"`
	ProductLine     string   `json:"product_line"`
	ProductLineName []string `json:"product_line_name"`
	StartDate       string   `json:"start_date"`
	Status          string   `json:"status"`
	SupplierId      int      `json:"supplier_id"`
	SupplierNick    string   `json:"supplier_nick"`
	TradeType       string   `json:"trade_type"`
}

合作分销关系

type DealerOrder

type DealerOrder struct {
	AppliedTime            string               `json:"applied_time"`
	ApplierNick            string               `json:"applier_nick"`
	AuditTimeApplier       string               `json:"audit_time_applier"`
	AuditTimeSupplier      string               `json:"audit_time_supplier"`
	CloseReason            string               `json:"close_reason"`
	DealerOrderDetails     []*DealerOrderDetail `json:"dealer_order_details"`
	DealerOrderId          int                  `json:"dealer_order_id"`
	DeliveredQuantityCount int                  `json:"delivered_quantity_count"`
	LogisticsFee           float64              `json:"logistics_fee"`
	LogisticsType          string               `json:"logistics_type"`
	ModifiedTime           string               `json:"modified_time"`
	OrderStatus            string               `json:"order_status"`
	PayType                string               `json:"pay_type"`
	QuantityCount          int                  `json:"quantity_count"`
	Receiver               *Receiver            `json:"receiver"`
	RefuseReasonApplier    string               `json:"refuse_reason_applier"`
	RefuseReasonSupplier   string               `json:"refuse_reason_supplier"`
	SupplierNick           string               `json:"supplier_nick"`
	TotalPrice             float64              `json:"total_price"`
}

经销采购申请单

type DealerOrderDetail

type DealerOrderDetail struct {
	DealerDetailId int     `json:"dealer_detail_id"`
	DealerOrderId  int     `json:"dealer_order_id"`
	FinalPrice     float64 `json:"final_price"`
	IsDeleted      bool    `json:"is_deleted"`
	OriginalPrice  float64 `json:"original_price"`
	PriceCount     float64 `json:"price_count"`
	ProductId      int     `json:"product_id"`
	ProductTitle   string  `json:"product_title"`
	Quantity       int     `json:"quantity"`
	SkuId          int     `json:"sku_id"`
	SkuNumber      string  `json:"sku_number"`
	SkuSpec        string  `json:"sku_spec"`
	SnapshotUrl    string  `json:"snapshot_url"`
}

经销采购申请单商品明细

type Discount

type Discount struct {
	Created    string            `json:"created"`
	Details    []*DiscountDetail `json:"details"`
	DiscountId int               `json:"discount_id"`
	Modified   string            `json:"modified"`
	Name       string            `json:"name"`
}

折扣信息

type DiscountDetail

type DiscountDetail struct {
	Created       string `json:"created"`
	DetailId      int    `json:"detail_id"`
	DiscountType  string `json:"discount_type"`
	DiscountValue int    `json:"discount_value"`
	Modified      string `json:"modified"`
	TargetId      int    `json:"target_id"`
	TargetName    string `json:"target_name"`
	TargetType    string `json:"target_type"`
}

折扣详情信息

type Distributor

type Distributor struct {
	AlipayAccount   string `json:"alipay_account"`
	Appraise        int    `json:"appraise"`
	CategoryId      int    `json:"category_id"`
	ContactPerson   string `json:"contact_person"`
	Created         string `json:"created"`
	DistributorId   int    `json:"distributor_id"`
	DistributorName string `json:"distributor_name"`
	Email           string `json:"email"`
	FullName        string `json:"full_name"`
	Level           int    `json:"level"`
	MobilePhone     string `json:"mobile_phone"`
	Phone           string `json:"phone"`
	ShopWebLink     string `json:"shop_web_link"`
	Starts          string `json:"starts"`
	UserId          int    `json:"user_id"`
}

分销API返回数据结构

type DistributorArchive

type DistributorArchive struct {
	ComplaintsCountPer    string `json:"complaints_count_per"`
	DownLoadRatio         string `json:"down_load_ratio"`
	GoodEvaluationRate    string `json:"good_evaluation_rate"`
	GoodEvaluationRateD   string `json:"good_evaluation_rate_d"`
	GoodsSum              string `json:"goods_sum"`
	IndusPerScole         string `json:"indus_per_scole"`
	Industry              string `json:"industry"`
	OpenashopTime         string `json:"openashop_time"`
	OrderMerchandiseScore string `json:"order_merchandise_score"`
	OrderShopRatio        string `json:"order_shop_ratio"`
	PunishedCount         string `json:"punished_count"`
	SaleConsignmentScore  string `json:"sale_consignment_score"`
	SellerRefundTime      string `json:"seller_refund_time"`
	SellerRefundTimePer   string `json:"seller_refund_time_per"`
	SellerStarName        string `json:"seller_star_name"`
	SellerType            string `json:"seller_type"`
	ServiceQualityScore   string `json:"service_quality_score"`
	ShopAddress           string `json:"shop_address"`
	ShopName              string `json:"shop_name"`
	UpSelfRatio           string `json:"up_self_ratio"`
	UpShopRatio           string `json:"up_shop_ratio"`
	UvShopRatio           string `json:"uv_shop_ratio"`
}

分销商档案信息

type DistributorItemFlow

type DistributorItemFlow struct {
	ItemPv    string `json:"item_pv"`
	ItemUv    string `json:"item_uv"`
	ProductId int    `json:"product_id"`
}

分销商品流量

type FenxiaoCooperationAuditRequest

type FenxiaoCooperationAuditRequest struct {
	open_taobao.TaobaoMethodRequest
}

合作授权审批

func (*FenxiaoCooperationAuditRequest) GetResponse

func (*FenxiaoCooperationAuditRequest) SetAuditResult

func (r *FenxiaoCooperationAuditRequest) SetAuditResult(value string)
1:审批通过,审批通过后要加入授权产品线列表;

2:审批拒绝

func (*FenxiaoCooperationAuditRequest) SetProductLineListAgent

func (r *FenxiaoCooperationAuditRequest) SetProductLineListAgent(value string)

当审批通过时需要指定授权产品线id列表(代销),如果没传则表示不开通,且经销和代销的授权产品线列表至少传入一种,同时传入则表示都开通。

func (*FenxiaoCooperationAuditRequest) SetProductLineListDealer

func (r *FenxiaoCooperationAuditRequest) SetProductLineListDealer(value string)

当审批通过时需要指定授权产品线id列表(经销),如果没传则表示不开通,且经销和代销的授权产品线列表至少传入一种,同时传入则表示都开通。

func (*FenxiaoCooperationAuditRequest) SetRemark

func (r *FenxiaoCooperationAuditRequest) SetRemark(value string)

备注

func (*FenxiaoCooperationAuditRequest) SetRequisitionId

func (r *FenxiaoCooperationAuditRequest) SetRequisitionId(value string)

合作申请Id

type FenxiaoCooperationAuditResponse

type FenxiaoCooperationAuditResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoCooperationAuditResponseResult

type FenxiaoCooperationAuditResponseResult struct {
	Response *FenxiaoCooperationAuditResponse `json:"fenxiao_cooperation_audit_response"`
}

type FenxiaoCooperationGetRequest

type FenxiaoCooperationGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoCooperationGetRequest) GetResponse

func (r *FenxiaoCooperationGetRequest) GetResponse(accessToken string) (*FenxiaoCooperationGetResponse, []byte, error)

func (*FenxiaoCooperationGetRequest) SetEndDate

func (r *FenxiaoCooperationGetRequest) SetEndDate(value string)

合作结束时间yyyy-MM-dd HH:mm:ss

func (*FenxiaoCooperationGetRequest) SetPageNo

func (r *FenxiaoCooperationGetRequest) SetPageNo(value string)

页码(大于0的整数,默认1)

func (*FenxiaoCooperationGetRequest) SetPageSize

func (r *FenxiaoCooperationGetRequest) SetPageSize(value string)

每页记录数(默认20,最大50)

func (*FenxiaoCooperationGetRequest) SetStartDate

func (r *FenxiaoCooperationGetRequest) SetStartDate(value string)

合作开始时间yyyy-MM-dd HH:mm:ss

func (*FenxiaoCooperationGetRequest) SetStatus

func (r *FenxiaoCooperationGetRequest) SetStatus(value string)

合作状态: NORMAL(合作中)、 ENDING(终止中) 、END (终止)

func (*FenxiaoCooperationGetRequest) SetTradeType

func (r *FenxiaoCooperationGetRequest) SetTradeType(value string)

分销方式:AGENT(代销) 、DEALER(经销)

type FenxiaoCooperationGetResponse

type FenxiaoCooperationGetResponse struct {
	Cooperations []*Cooperation `json:"cooperations"`
	TotalResults int            `json:"total_results"`
}

type FenxiaoCooperationGetResponseResult

type FenxiaoCooperationGetResponseResult struct {
	Response *FenxiaoCooperationGetResponse `json:"fenxiao_cooperation_get_response"`
}

type FenxiaoCooperationProductcatAddRequest

type FenxiaoCooperationProductcatAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

追加授权产品线

func (*FenxiaoCooperationProductcatAddRequest) GetResponse

func (*FenxiaoCooperationProductcatAddRequest) SetCooperateId

func (r *FenxiaoCooperationProductcatAddRequest) SetCooperateId(value string)

合作关系id

func (*FenxiaoCooperationProductcatAddRequest) SetGradeId

func (r *FenxiaoCooperationProductcatAddRequest) SetGradeId(value string)

等级ID(为空则不修改)

func (*FenxiaoCooperationProductcatAddRequest) SetProductLineList

func (r *FenxiaoCooperationProductcatAddRequest) SetProductLineList(value string)

产品线id列表,若有多个,以逗号分隔

type FenxiaoCooperationProductcatAddResponse

type FenxiaoCooperationProductcatAddResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoCooperationProductcatAddResponseResult

type FenxiaoCooperationProductcatAddResponseResult struct {
	Response *FenxiaoCooperationProductcatAddResponse `json:"fenxiao_cooperation_productcat_add_response"`
}

type FenxiaoCooperationTerminateRequest

type FenxiaoCooperationTerminateRequest struct {
	open_taobao.TaobaoMethodRequest
}

终止与分销商的合作关系

func (*FenxiaoCooperationTerminateRequest) GetResponse

func (*FenxiaoCooperationTerminateRequest) SetCooperateId

func (r *FenxiaoCooperationTerminateRequest) SetCooperateId(value string)

合作编号

func (*FenxiaoCooperationTerminateRequest) SetEndRemainDays

func (r *FenxiaoCooperationTerminateRequest) SetEndRemainDays(value string)

终止天数,可选1,2,3,5,7,15,在多少天数内终止

func (*FenxiaoCooperationTerminateRequest) SetEndRemark

func (r *FenxiaoCooperationTerminateRequest) SetEndRemark(value string)

终止说明(5-2000字)

type FenxiaoCooperationTerminateResponse

type FenxiaoCooperationTerminateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoCooperationTerminateResponseResult

type FenxiaoCooperationTerminateResponseResult struct {
	Response *FenxiaoCooperationTerminateResponse `json:"fenxiao_cooperation_terminate_response"`
}

type FenxiaoCooperationUpdateRequest

type FenxiaoCooperationUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

供应商更新合作的分销商等级

func (*FenxiaoCooperationUpdateRequest) GetResponse

func (*FenxiaoCooperationUpdateRequest) SetDistributorId

func (r *FenxiaoCooperationUpdateRequest) SetDistributorId(value string)

分销商ID

func (*FenxiaoCooperationUpdateRequest) SetGradeId

func (r *FenxiaoCooperationUpdateRequest) SetGradeId(value string)

等级ID(0代表取消)

func (*FenxiaoCooperationUpdateRequest) SetTradeType

func (r *FenxiaoCooperationUpdateRequest) SetTradeType(value string)

分销方式(新增): AGENT(代销)、DEALER(经销)(默认为代销)

type FenxiaoCooperationUpdateResponse

type FenxiaoCooperationUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoCooperationUpdateResponseResult

type FenxiaoCooperationUpdateResponseResult struct {
	Response *FenxiaoCooperationUpdateResponse `json:"fenxiao_cooperation_update_response"`
}

type FenxiaoDealerRequisitionorderAgreeRequest

type FenxiaoDealerRequisitionorderAgreeRequest struct {
	open_taobao.TaobaoMethodRequest
}

供货方或采购方通过采购申请单审核

func (*FenxiaoDealerRequisitionorderAgreeRequest) GetResponse

func (*FenxiaoDealerRequisitionorderAgreeRequest) SetDealerOrderId

func (r *FenxiaoDealerRequisitionorderAgreeRequest) SetDealerOrderId(value string)

采购申请单编号

type FenxiaoDealerRequisitionorderAgreeResponse

type FenxiaoDealerRequisitionorderAgreeResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoDealerRequisitionorderAgreeResponseResult

type FenxiaoDealerRequisitionorderAgreeResponseResult struct {
	Response *FenxiaoDealerRequisitionorderAgreeResponse `json:"fenxiao_dealer_requisitionorder_agree_response"`
}

type FenxiaoDealerRequisitionorderCloseRequest

type FenxiaoDealerRequisitionorderCloseRequest struct {
	open_taobao.TaobaoMethodRequest
}

供货方或采购方关闭采购申请单

func (*FenxiaoDealerRequisitionorderCloseRequest) GetResponse

func (*FenxiaoDealerRequisitionorderCloseRequest) SetDealerOrderId

func (r *FenxiaoDealerRequisitionorderCloseRequest) SetDealerOrderId(value string)

采购申请单编号

func (*FenxiaoDealerRequisitionorderCloseRequest) SetReason

关闭原因:

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

func (*FenxiaoDealerRequisitionorderCloseRequest) SetReasonDetail

func (r *FenxiaoDealerRequisitionorderCloseRequest) SetReasonDetail(value string)

关闭详细原因,字数5-200字

type FenxiaoDealerRequisitionorderCloseResponse

type FenxiaoDealerRequisitionorderCloseResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoDealerRequisitionorderCloseResponseResult

type FenxiaoDealerRequisitionorderCloseResponseResult struct {
	Response *FenxiaoDealerRequisitionorderCloseResponse `json:"fenxiao_dealer_requisitionorder_close_response"`
}

type FenxiaoDealerRequisitionorderGetRequest

type FenxiaoDealerRequisitionorderGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量查询采购申请单,目前支持供货方和采购方查询

func (*FenxiaoDealerRequisitionorderGetRequest) GetResponse

func (*FenxiaoDealerRequisitionorderGetRequest) SetEndDate

func (r *FenxiaoDealerRequisitionorderGetRequest) SetEndDate(value string)

采购申请单最迟修改时间。与start_date字段的最大时间间隔不能超过30天

func (*FenxiaoDealerRequisitionorderGetRequest) SetFields

func (r *FenxiaoDealerRequisitionorderGetRequest) SetFields(value string)

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

func (*FenxiaoDealerRequisitionorderGetRequest) SetIdentity

func (r *FenxiaoDealerRequisitionorderGetRequest) SetIdentity(value string)
查询者自己在所要查询的采购申请单中的身份。

1:供货方。 2:采购方。 注:填写其他值当做错误处理。

func (*FenxiaoDealerRequisitionorderGetRequest) SetOrderStatus

func (r *FenxiaoDealerRequisitionorderGetRequest) SetOrderStatus(value string)
采购申请单状态。

0:全部状态。 1:采购方刚申请,待供货方审核。 2:供货方驳回,待采购方审核。 3:供货方修改后,待采购方审核。 4:采购方驳回修改,待供货方再审核。 5:双方审核通过,待采购方付款。 6:采购方已付款,待供货方确认。 7:付款成功,待供货方出库。 8:供货方出库,待采购方入库。 9:采购方入库,交易成功。 10:采购申请单关闭。

注:无值按默认值0计,超出状态范围返回错误信息。

func (*FenxiaoDealerRequisitionorderGetRequest) SetPageNo

func (r *FenxiaoDealerRequisitionorderGetRequest) SetPageNo(value string)

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

func (*FenxiaoDealerRequisitionorderGetRequest) SetPageSize

func (r *FenxiaoDealerRequisitionorderGetRequest) SetPageSize(value string)

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

func (*FenxiaoDealerRequisitionorderGetRequest) SetStartDate

func (r *FenxiaoDealerRequisitionorderGetRequest) SetStartDate(value string)

采购申请单最早修改时间

type FenxiaoDealerRequisitionorderGetResponse

type FenxiaoDealerRequisitionorderGetResponse struct {
	DealerOrders []*DealerOrder `json:"dealer_orders"`
	TotalResults int            `json:"total_results"`
}

type FenxiaoDealerRequisitionorderGetResponseResult

type FenxiaoDealerRequisitionorderGetResponseResult struct {
	Response *FenxiaoDealerRequisitionorderGetResponse `json:"fenxiao_dealer_requisitionorder_get_response"`
}

type FenxiaoDealerRequisitionorderModifyRequest

type FenxiaoDealerRequisitionorderModifyRequest struct {
	open_taobao.TaobaoMethodRequest
}

供货方或采购方修改采购申请单明细,如果商品总数量被修改为0(或删除所有商品明细)则关闭采购申请单,否则状态变为供货方或采购方审核通过。

func (*FenxiaoDealerRequisitionorderModifyRequest) GetResponse

func (*FenxiaoDealerRequisitionorderModifyRequest) SetDealerOrderId

func (r *FenxiaoDealerRequisitionorderModifyRequest) SetDealerOrderId(value string)

采购申请单编号

func (*FenxiaoDealerRequisitionorderModifyRequest) SetDeleteDetailIds

func (r *FenxiaoDealerRequisitionorderModifyRequest) SetDeleteDetailIds(value string)

要删除的商品明细id列表,多个id使用英文符号的逗号隔开

func (*FenxiaoDealerRequisitionorderModifyRequest) SetDetailIdPrices

func (r *FenxiaoDealerRequisitionorderModifyRequest) SetDetailIdPrices(value string)

采购申请单的商品明细的新的采购价格。格式为商品明细id:价格修改值,商品明细id:价格修改值

func (*FenxiaoDealerRequisitionorderModifyRequest) SetDetailIdQuantities

func (r *FenxiaoDealerRequisitionorderModifyRequest) SetDetailIdQuantities(value string)

修改采购申请单的商品明细的新的库存。格式为商品明细id:库存修改值,商品明细id:库存修改值

func (*FenxiaoDealerRequisitionorderModifyRequest) SetNewPostFee

func (r *FenxiaoDealerRequisitionorderModifyRequest) SetNewPostFee(value string)

新邮费(单位:分,示例值1005表示10.05元)。必须大于等于0。自提方式不可修改邮费。不提交该参数表示不修改邮费。

type FenxiaoDealerRequisitionorderModifyResponse

type FenxiaoDealerRequisitionorderModifyResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoDealerRequisitionorderModifyResponseResult

type FenxiaoDealerRequisitionorderModifyResponseResult struct {
	Response *FenxiaoDealerRequisitionorderModifyResponse `json:"fenxiao_dealer_requisitionorder_modify_response"`
}

type FenxiaoDealerRequisitionorderQueryRequest

type FenxiaoDealerRequisitionorderQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

按编号查询采购申请单,目前支持供货方和采购方查询。

func (*FenxiaoDealerRequisitionorderQueryRequest) GetResponse

func (*FenxiaoDealerRequisitionorderQueryRequest) SetDealerOrderIds

func (r *FenxiaoDealerRequisitionorderQueryRequest) SetDealerOrderIds(value string)
采购申请单编号。

多个编号用英文符号的逗号隔开。最多支持50个采购申请单编号的查询。

func (*FenxiaoDealerRequisitionorderQueryRequest) SetFields

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

type FenxiaoDealerRequisitionorderQueryResponse

type FenxiaoDealerRequisitionorderQueryResponse struct {
	DealerOrders []*DealerOrder `json:"dealer_orders"`
}

type FenxiaoDealerRequisitionorderQueryResponseResult

type FenxiaoDealerRequisitionorderQueryResponseResult struct {
	Response *FenxiaoDealerRequisitionorderQueryResponse `json:"fenxiao_dealer_requisitionorder_query_response"`
}

type FenxiaoDealerRequisitionorderRefuseRequest

type FenxiaoDealerRequisitionorderRefuseRequest struct {
	open_taobao.TaobaoMethodRequest
}

供货方或采购方驳回采购申请单

func (*FenxiaoDealerRequisitionorderRefuseRequest) GetResponse

func (*FenxiaoDealerRequisitionorderRefuseRequest) SetDealerOrderId

func (r *FenxiaoDealerRequisitionorderRefuseRequest) SetDealerOrderId(value string)

采购申请单编号

func (*FenxiaoDealerRequisitionorderRefuseRequest) SetReason

驳回原因(1:价格不合理;2:采购数量不合理;3:其他原因)

func (*FenxiaoDealerRequisitionorderRefuseRequest) SetReasonDetail

func (r *FenxiaoDealerRequisitionorderRefuseRequest) SetReasonDetail(value string)

驳回详细原因,字数范围5-200字

type FenxiaoDealerRequisitionorderRefuseResponse

type FenxiaoDealerRequisitionorderRefuseResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoDealerRequisitionorderRefuseResponseResult

type FenxiaoDealerRequisitionorderRefuseResponseResult struct {
	Response *FenxiaoDealerRequisitionorderRefuseResponse `json:"fenxiao_dealer_requisitionorder_refuse_response"`
}

type FenxiaoDiscountAddRequest

type FenxiaoDiscountAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增等级折扣

func (*FenxiaoDiscountAddRequest) GetResponse

func (r *FenxiaoDiscountAddRequest) GetResponse(accessToken string) (*FenxiaoDiscountAddResponse, []byte, error)

func (*FenxiaoDiscountAddRequest) SetDiscountName

func (r *FenxiaoDiscountAddRequest) SetDiscountName(value string)

折扣名称,长度不能超过25字节

func (*FenxiaoDiscountAddRequest) SetDiscountTypes

func (r *FenxiaoDiscountAddRequest) SetDiscountTypes(value string)

PERCENT(按折扣优惠)、PRICE(按减价优惠),例如"PERCENT,PRICE,PERCENT"

func (*FenxiaoDiscountAddRequest) SetDiscountValues

func (r *FenxiaoDiscountAddRequest) SetDiscountValues(value string)

优惠比率或者优惠价格,例如:”8000,-2300,7000”,大小为-100000000到100000000之间(单位:分)

func (*FenxiaoDiscountAddRequest) SetTargetIds

func (r *FenxiaoDiscountAddRequest) SetTargetIds(value string)

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

func (*FenxiaoDiscountAddRequest) SetTargetTypes

func (r *FenxiaoDiscountAddRequest) SetTargetTypes(value string)

GRADE(按会员等级优惠)、DISTRIBUTOR(按分销商优惠),例如"GRADE,DISTRIBUTOR"

type FenxiaoDiscountAddResponse

type FenxiaoDiscountAddResponse struct {
	DiscountId int `json:"discount_id"`
}

type FenxiaoDiscountAddResponseResult

type FenxiaoDiscountAddResponseResult struct {
	Response *FenxiaoDiscountAddResponse `json:"fenxiao_discount_add_response"`
}

type FenxiaoDiscountUpdateRequest

type FenxiaoDiscountUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改等级折扣

func (*FenxiaoDiscountUpdateRequest) GetResponse

func (r *FenxiaoDiscountUpdateRequest) GetResponse(accessToken string) (*FenxiaoDiscountUpdateResponse, []byte, error)

func (*FenxiaoDiscountUpdateRequest) SetDetailIds

func (r *FenxiaoDiscountUpdateRequest) SetDetailIds(value string)

详情ID,例如:”0,1002,1003”

func (*FenxiaoDiscountUpdateRequest) SetDetailStatuss

func (r *FenxiaoDiscountUpdateRequest) SetDetailStatuss(value string)

ADD(新增)、UPDATE(更新)、DEL(删除,对应的target_type等信息填NULL),例如:”UPDATE,DEL,DEL”

func (*FenxiaoDiscountUpdateRequest) SetDiscountId

func (r *FenxiaoDiscountUpdateRequest) SetDiscountId(value string)

折扣ID

func (*FenxiaoDiscountUpdateRequest) SetDiscountName

func (r *FenxiaoDiscountUpdateRequest) SetDiscountName(value string)

折扣名称,长度不能超过25字节

func (*FenxiaoDiscountUpdateRequest) SetDiscountStatus

func (r *FenxiaoDiscountUpdateRequest) SetDiscountStatus(value string)

状态DEL(删除)UPDATE(更新)

func (*FenxiaoDiscountUpdateRequest) SetDiscountTypes

func (r *FenxiaoDiscountUpdateRequest) SetDiscountTypes(value string)

PERCENT(按折扣优惠)、PRICE(按减价优惠),例如"PERCENT,PRICE,PERCENT"

func (*FenxiaoDiscountUpdateRequest) SetDiscountValues

func (r *FenxiaoDiscountUpdateRequest) SetDiscountValues(value string)

优惠比率或者优惠价格,例如:”8000,-2300,7000”,大小为-100000000到100000000之间(单位:分)

func (*FenxiaoDiscountUpdateRequest) SetTargetIds

func (r *FenxiaoDiscountUpdateRequest) SetTargetIds(value string)

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

func (*FenxiaoDiscountUpdateRequest) SetTargetTypes

func (r *FenxiaoDiscountUpdateRequest) SetTargetTypes(value string)

GRADE(按会员等级优惠)、DISTRIBUTOR(按分销商优惠),例如"GRADE,DISTRIBUTOR"

type FenxiaoDiscountUpdateResponse

type FenxiaoDiscountUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoDiscountUpdateResponseResult

type FenxiaoDiscountUpdateResponseResult struct {
	Response *FenxiaoDiscountUpdateResponse `json:"fenxiao_discount_update_response"`
}

type FenxiaoDiscountsGetRequest

type FenxiaoDiscountsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询折扣信息

func (*FenxiaoDiscountsGetRequest) GetResponse

func (r *FenxiaoDiscountsGetRequest) GetResponse(accessToken string) (*FenxiaoDiscountsGetResponse, []byte, error)

func (*FenxiaoDiscountsGetRequest) SetDiscountId

func (r *FenxiaoDiscountsGetRequest) SetDiscountId(value string)

折扣ID

func (*FenxiaoDiscountsGetRequest) SetExtFields

func (r *FenxiaoDiscountsGetRequest) SetExtFields(value string)

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

type FenxiaoDiscountsGetResponse

type FenxiaoDiscountsGetResponse struct {
	Discounts    []*Discount `json:"discounts"`
	TotalResults int         `json:"total_results"`
}

type FenxiaoDiscountsGetResponseResult

type FenxiaoDiscountsGetResponseResult struct {
	Response *FenxiaoDiscountsGetResponse `json:"fenxiao_discounts_get_response"`
}

type FenxiaoDistributorArchivesGetRequest

type FenxiaoDistributorArchivesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}
获取当前供应商授权分销商的产品的下载率,计算逻辑同后台页面。downLoadRatio

获取当前供应商授权分销商的产品的上架率,计算逻辑同后台页面。获取upSelfRatio 获取当前供应商在分销商店铺中的上架商品占比。upShopRatio 获取当前供应商在分销商店铺中的成交(已付款)订单笔数占比。 orderShopRatio 获取当前供应商在分销商店铺中铺货商品UV占店铺商品总UV的比。uvShopRatio

func (*FenxiaoDistributorArchivesGetRequest) GetResponse

func (*FenxiaoDistributorArchivesGetRequest) SetDistributorUserNick

func (r *FenxiaoDistributorArchivesGetRequest) SetDistributorUserNick(value string)

分销商淘宝店主nick

type FenxiaoDistributorArchivesGetResponse

type FenxiaoDistributorArchivesGetResponse struct {
	DistributorArchive *DistributorArchive `json:"distributor_archive"`
	IsSuccess          bool                `json:"is_success"`
}

type FenxiaoDistributorArchivesGetResponseResult

type FenxiaoDistributorArchivesGetResponseResult struct {
	Response *FenxiaoDistributorArchivesGetResponse `json:"fenxiao_distributor_archives_get_response"`
}

type FenxiaoDistributorItemsGetRequest

type FenxiaoDistributorItemsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoDistributorItemsGetRequest) GetResponse

func (*FenxiaoDistributorItemsGetRequest) SetDistributorId

func (r *FenxiaoDistributorItemsGetRequest) SetDistributorId(value string)

分销商ID 。

func (*FenxiaoDistributorItemsGetRequest) SetEndModified

func (r *FenxiaoDistributorItemsGetRequest) SetEndModified(value string)

设置结束时间,空为不设置。

func (*FenxiaoDistributorItemsGetRequest) SetPageNo

func (r *FenxiaoDistributorItemsGetRequest) SetPageNo(value string)

页码(大于0的整数,默认1)

func (*FenxiaoDistributorItemsGetRequest) SetPageSize

func (r *FenxiaoDistributorItemsGetRequest) SetPageSize(value string)

每页记录数(默认20,最大50)

func (*FenxiaoDistributorItemsGetRequest) SetProductId

func (r *FenxiaoDistributorItemsGetRequest) SetProductId(value string)

产品ID

func (*FenxiaoDistributorItemsGetRequest) SetStartModified

func (r *FenxiaoDistributorItemsGetRequest) SetStartModified(value string)

设置开始时间。空为不设置。

type FenxiaoDistributorItemsGetResponse

type FenxiaoDistributorItemsGetResponse struct {
	Records      []*FenxiaoItemRecord `json:"records"`
	TotalResults int                  `json:"total_results"`
}

type FenxiaoDistributorItemsGetResponseResult

type FenxiaoDistributorItemsGetResponseResult struct {
	Response *FenxiaoDistributorItemsGetResponse `json:"fenxiao_distributor_items_get_response"`
}

type FenxiaoDistributorProcuctStaticGetRequest

type FenxiaoDistributorProcuctStaticGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取分销商品流量,以天为单位统计分销商品的PV,UV

func (*FenxiaoDistributorProcuctStaticGetRequest) GetResponse

func (*FenxiaoDistributorProcuctStaticGetRequest) SetDistributorUserNick

func (r *FenxiaoDistributorProcuctStaticGetRequest) SetDistributorUserNick(value string)

分销商淘宝店主nick

func (*FenxiaoDistributorProcuctStaticGetRequest) SetProductIdArray

func (r *FenxiaoDistributorProcuctStaticGetRequest) SetProductIdArray(value string)
供应商商品id,一次可以传多个,每次最多40个。

以,(英文)作为分隔符。

type FenxiaoDistributorProcuctStaticGetResponse

type FenxiaoDistributorProcuctStaticGetResponse struct {
	DistributorItemFlows []*DistributorItemFlow `json:"distributor_item_flows"`
	IsSuccess            bool                   `json:"is_success"`
}

type FenxiaoDistributorProcuctStaticGetResponseResult

type FenxiaoDistributorProcuctStaticGetResponseResult struct {
	Response *FenxiaoDistributorProcuctStaticGetResponse `json:"fenxiao_distributor_procuct_static_get_response"`
}

type FenxiaoDistributorProductsGetRequest

type FenxiaoDistributorProductsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoDistributorProductsGetRequest) GetResponse

func (*FenxiaoDistributorProductsGetRequest) SetDownloadStatus

func (r *FenxiaoDistributorProductsGetRequest) SetDownloadStatus(value string)

下载状态,默认未下载。UNDOWNLOAD:未下载,DOWNLOADED:已下载。

func (*FenxiaoDistributorProductsGetRequest) SetEndTime

func (r *FenxiaoDistributorProductsGetRequest) SetEndTime(value string)

结束时间

func (*FenxiaoDistributorProductsGetRequest) SetFields

func (r *FenxiaoDistributorProductsGetRequest) SetFields(value string)

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

func (*FenxiaoDistributorProductsGetRequest) SetItemIds

func (r *FenxiaoDistributorProductsGetRequest) SetItemIds(value string)

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

func (*FenxiaoDistributorProductsGetRequest) SetOrderBy

func (r *FenxiaoDistributorProductsGetRequest) SetOrderBy(value string)

排序。QUANTITY_DESC:库存降序,CREATE_TIME_DESC,创建时间降序。

func (*FenxiaoDistributorProductsGetRequest) SetPageNo

func (r *FenxiaoDistributorProductsGetRequest) SetPageNo(value string)

页码(大于0的整数,默认1)

func (*FenxiaoDistributorProductsGetRequest) SetPageSize

func (r *FenxiaoDistributorProductsGetRequest) SetPageSize(value string)

每页记录数(默认20,最大50)

func (*FenxiaoDistributorProductsGetRequest) SetPids

func (r *FenxiaoDistributorProductsGetRequest) SetPids(value string)

产品ID列表,优先级最高,传了忽略其他查询条件。用逗号分割,例如:“1001,1002,1003,1004,1005”

func (*FenxiaoDistributorProductsGetRequest) SetProductcatId

func (r *FenxiaoDistributorProductsGetRequest) SetProductcatId(value string)

产品线ID

func (*FenxiaoDistributorProductsGetRequest) SetStartTime

func (r *FenxiaoDistributorProductsGetRequest) SetStartTime(value string)

开始时间

func (*FenxiaoDistributorProductsGetRequest) SetSupplierNick

func (r *FenxiaoDistributorProductsGetRequest) SetSupplierNick(value string)

供应商nick,分页查询时,必传

func (*FenxiaoDistributorProductsGetRequest) SetTimeType

func (r *FenxiaoDistributorProductsGetRequest) SetTimeType(value string)

查询时间类型,默认更新时间。MODIFIED:更新时间,CREATE:创建时间

func (*FenxiaoDistributorProductsGetRequest) SetTradeType

func (r *FenxiaoDistributorProductsGetRequest) SetTradeType(value string)

分销方式,分页查询时,必传。AGENT:代销,DEALER:经销

type FenxiaoDistributorProductsGetResponse

type FenxiaoDistributorProductsGetResponse struct {
	HasNext  bool              `json:"has_next"`
	Products []*FenxiaoProduct `json:"products"`
}

type FenxiaoDistributorProductsGetResponseResult

type FenxiaoDistributorProductsGetResponseResult struct {
	Response *FenxiaoDistributorProductsGetResponse `json:"fenxiao_distributor_products_get_response"`
}

type FenxiaoDistributorsGetRequest

type FenxiaoDistributorsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoDistributorsGetRequest) GetResponse

func (*FenxiaoDistributorsGetRequest) SetNicks

func (r *FenxiaoDistributorsGetRequest) SetNicks(value string)

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

type FenxiaoDistributorsGetResponse

type FenxiaoDistributorsGetResponse struct {
	Distributors []*Distributor `json:"distributors"`
}

type FenxiaoDistributorsGetResponseResult

type FenxiaoDistributorsGetResponseResult struct {
	Response *FenxiaoDistributorsGetResponse `json:"fenxiao_distributors_get_response"`
}

type FenxiaoGrade

type FenxiaoGrade struct {
	Created  string `json:"created"`
	GradeId  int    `json:"grade_id"`
	Modified string `json:"modified"`
	Name     string `json:"name"`
}

分销商等级

type FenxiaoGradeAddRequest

type FenxiaoGradeAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新建等级

func (*FenxiaoGradeAddRequest) GetResponse

func (r *FenxiaoGradeAddRequest) GetResponse(accessToken string) (*FenxiaoGradeAddResponse, []byte, error)

func (*FenxiaoGradeAddRequest) SetName

func (r *FenxiaoGradeAddRequest) SetName(value string)

等级名称,等级名称不可重复

type FenxiaoGradeAddResponse

type FenxiaoGradeAddResponse struct {
	GradeId   int  `json:"grade_id"`
	IsSuccess bool `json:"is_success"`
}

type FenxiaoGradeAddResponseResult

type FenxiaoGradeAddResponseResult struct {
	Response *FenxiaoGradeAddResponse `json:"fenxiao_grade_add_response"`
}

type FenxiaoGradeDeleteRequest

type FenxiaoGradeDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除等级

func (*FenxiaoGradeDeleteRequest) GetResponse

func (r *FenxiaoGradeDeleteRequest) GetResponse(accessToken string) (*FenxiaoGradeDeleteResponse, []byte, error)

func (*FenxiaoGradeDeleteRequest) SetGradeId

func (r *FenxiaoGradeDeleteRequest) SetGradeId(value string)

等级ID

type FenxiaoGradeDeleteResponse

type FenxiaoGradeDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoGradeDeleteResponseResult

type FenxiaoGradeDeleteResponseResult struct {
	Response *FenxiaoGradeDeleteResponse `json:"fenxiao_grade_delete_response"`
}

type FenxiaoGradeUpdateRequest

type FenxiaoGradeUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改等级

func (*FenxiaoGradeUpdateRequest) GetResponse

func (r *FenxiaoGradeUpdateRequest) GetResponse(accessToken string) (*FenxiaoGradeUpdateResponse, []byte, error)

func (*FenxiaoGradeUpdateRequest) SetGradeId

func (r *FenxiaoGradeUpdateRequest) SetGradeId(value string)

等级ID

func (*FenxiaoGradeUpdateRequest) SetName

func (r *FenxiaoGradeUpdateRequest) SetName(value string)

等级名称,等级名称不可重复

type FenxiaoGradeUpdateResponse

type FenxiaoGradeUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoGradeUpdateResponseResult

type FenxiaoGradeUpdateResponseResult struct {
	Response *FenxiaoGradeUpdateResponse `json:"fenxiao_grade_update_response"`
}

type FenxiaoGradesGetRequest

type FenxiaoGradesGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoGradesGetRequest) GetResponse

func (r *FenxiaoGradesGetRequest) GetResponse(accessToken string) (*FenxiaoGradesGetResponse, []byte, error)

type FenxiaoGradesGetResponse

type FenxiaoGradesGetResponse struct {
	FenxiaoGrades []*FenxiaoGrade `json:"fenxiao_grades"`
	TotalResults  int             `json:"total_results"`
}

type FenxiaoGradesGetResponseResult

type FenxiaoGradesGetResponseResult struct {
	Response *FenxiaoGradesGetResponse `json:"fenxiao_grades_get_response"`
}

type FenxiaoImage

type FenxiaoImage struct {
	ImageId       int    `json:"image_id"`
	ImagePosition int    `json:"image_position"`
	ImageUrl      string `json:"image_url"`
	Properties    string `json:"properties"`
	Type          string `json:"type"`
}

产品的各种图片信息

type FenxiaoItemRecord

type FenxiaoItemRecord struct {
	Created       string `json:"created"`
	DistributorId int    `json:"distributor_id"`
	ItemId        int    `json:"item_id"`
	Modified      string `json:"modified"`
	ProductId     int    `json:"product_id"`
	TradeType     string `json:"trade_type"`
}

分销商品下载记录

type FenxiaoLoginUserGetRequest

type FenxiaoLoginUserGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

获取用户登录信息

func (*FenxiaoLoginUserGetRequest) GetResponse

func (r *FenxiaoLoginUserGetRequest) GetResponse(accessToken string) (*FenxiaoLoginUserGetResponse, []byte, error)

type FenxiaoLoginUserGetResponse

type FenxiaoLoginUserGetResponse struct {
	LoginUser *LoginUser `json:"login_user"`
}

type FenxiaoLoginUserGetResponseResult

type FenxiaoLoginUserGetResponseResult struct {
	Response *FenxiaoLoginUserGetResponse `json:"fenxiao_login_user_get_response"`
}

type FenxiaoOrderCloseRequest

type FenxiaoOrderCloseRequest struct {
	open_taobao.TaobaoMethodRequest
}

供应商关闭未付款采购单.可传入一个主单号或是多个子单号,多个子单号之间以‘,’隔开

func (*FenxiaoOrderCloseRequest) GetResponse

func (r *FenxiaoOrderCloseRequest) GetResponse(accessToken string) (*FenxiaoOrderCloseResponse, []byte, error)

func (*FenxiaoOrderCloseRequest) SetMessage

func (r *FenxiaoOrderCloseRequest) SetMessage(value string)

关闭理由,特殊字符会被转义,会改变长度,有特殊字符是请注意

func (*FenxiaoOrderCloseRequest) SetPurchaseOrderId

func (r *FenxiaoOrderCloseRequest) SetPurchaseOrderId(value string)

采购单编号

func (*FenxiaoOrderCloseRequest) SetSubOrderIds

func (r *FenxiaoOrderCloseRequest) SetSubOrderIds(value string)

子采购单ID,可传多笔子单ID,逗号分隔

type FenxiaoOrderCloseResponse

type FenxiaoOrderCloseResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoOrderCloseResponseResult

type FenxiaoOrderCloseResponseResult struct {
	Response *FenxiaoOrderCloseResponse `json:"fenxiao_order_close_response"`
}

type FenxiaoOrderConfirmPaidRequest

type FenxiaoOrderConfirmPaidRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoOrderConfirmPaidRequest) GetResponse

func (*FenxiaoOrderConfirmPaidRequest) SetConfirmRemark

func (r *FenxiaoOrderConfirmPaidRequest) SetConfirmRemark(value string)

确认支付信息(字数小于100)

func (*FenxiaoOrderConfirmPaidRequest) SetPurchaseOrderId

func (r *FenxiaoOrderConfirmPaidRequest) SetPurchaseOrderId(value string)

采购单编号。

type FenxiaoOrderConfirmPaidResponse

type FenxiaoOrderConfirmPaidResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoOrderConfirmPaidResponseResult

type FenxiaoOrderConfirmPaidResponseResult struct {
	Response *FenxiaoOrderConfirmPaidResponse `json:"fenxiao_order_confirm_paid_response"`
}

type FenxiaoOrderCreateDealerRequest

type FenxiaoOrderCreateDealerRequest struct {
	open_taobao.TaobaoMethodRequest
}

分销商创建经销采购单.

func (*FenxiaoOrderCreateDealerRequest) GetResponse

func (*FenxiaoOrderCreateDealerRequest) SetAddr

func (r *FenxiaoOrderCreateDealerRequest) SetAddr(value string)

街道

func (*FenxiaoOrderCreateDealerRequest) SetBuyerName

func (r *FenxiaoOrderCreateDealerRequest) SetBuyerName(value string)

买家姓名

func (*FenxiaoOrderCreateDealerRequest) SetCity

func (r *FenxiaoOrderCreateDealerRequest) SetCity(value string)

func (*FenxiaoOrderCreateDealerRequest) SetCountry

func (r *FenxiaoOrderCreateDealerRequest) SetCountry(value string)

func (*FenxiaoOrderCreateDealerRequest) SetLogisticFee

func (r *FenxiaoOrderCreateDealerRequest) SetLogisticFee(value string)

运费,单位为分

func (*FenxiaoOrderCreateDealerRequest) SetLogisticType

func (r *FenxiaoOrderCreateDealerRequest) SetLogisticType(value string)

运输方式,快递,平邮等

func (*FenxiaoOrderCreateDealerRequest) SetMessage

func (r *FenxiaoOrderCreateDealerRequest) SetMessage(value string)

留言

func (*FenxiaoOrderCreateDealerRequest) SetMobilePhone

func (r *FenxiaoOrderCreateDealerRequest) SetMobilePhone(value string)

买家手机号码和电话号码两者中必须有一个

func (*FenxiaoOrderCreateDealerRequest) SetOuterId

func (r *FenxiaoOrderCreateDealerRequest) SetOuterId(value string)

erp主订单号,用于去重。当传入号已存在将返回原来的采购单

func (*FenxiaoOrderCreateDealerRequest) SetPayType

func (r *FenxiaoOrderCreateDealerRequest) SetPayType(value string)

支付类型,需要供应支持该支付类型

func (*FenxiaoOrderCreateDealerRequest) SetPhone

func (r *FenxiaoOrderCreateDealerRequest) SetPhone(value string)

买家电话号码

func (*FenxiaoOrderCreateDealerRequest) SetProvince

func (r *FenxiaoOrderCreateDealerRequest) SetProvince(value string)

func (*FenxiaoOrderCreateDealerRequest) SetSubOrderDetail

func (r *FenxiaoOrderCreateDealerRequest) SetSubOrderDetail(value string)
子单信息,子单内部以‘,’隔开,多个子单以‘;’隔开.

例(分销产品id,skuid,购买数量,单价;分销产品id:,skuid,购买数量,单价) 单价的单位位分

func (*FenxiaoOrderCreateDealerRequest) SetZipCode

func (r *FenxiaoOrderCreateDealerRequest) SetZipCode(value string)

邮编

type FenxiaoOrderCreateDealerResponse

type FenxiaoOrderCreateDealerResponse struct {
	GetModule int `json:"get_module"`
}

type FenxiaoOrderCreateDealerResponseResult

type FenxiaoOrderCreateDealerResponseResult struct {
	Response *FenxiaoOrderCreateDealerResponse `json:"fenxiao_order_create_dealer_response"`
}

type FenxiaoOrderCustomfieldUpdateRequest

type FenxiaoOrderCustomfieldUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

采购单自定义字段

func (*FenxiaoOrderCustomfieldUpdateRequest) GetResponse

func (*FenxiaoOrderCustomfieldUpdateRequest) SetIsvCustomKey

func (r *FenxiaoOrderCustomfieldUpdateRequest) SetIsvCustomKey(value string)

自定义key

func (*FenxiaoOrderCustomfieldUpdateRequest) SetIsvCustomValue

func (r *FenxiaoOrderCustomfieldUpdateRequest) SetIsvCustomValue(value string)

自定义的值

func (*FenxiaoOrderCustomfieldUpdateRequest) SetPurchaseOrderId

func (r *FenxiaoOrderCustomfieldUpdateRequest) SetPurchaseOrderId(value string)

采购单id

type FenxiaoOrderCustomfieldUpdateResponse

type FenxiaoOrderCustomfieldUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoOrderCustomfieldUpdateResponseResult

type FenxiaoOrderCustomfieldUpdateResponseResult struct {
	Response *FenxiaoOrderCustomfieldUpdateResponse `json:"fenxiao_order_customfield_update_response"`
}

type FenxiaoOrderMessageAddRequest

type FenxiaoOrderMessageAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

添加采购单留言,最多20条(供应商分销商都可添加)

func (*FenxiaoOrderMessageAddRequest) GetResponse

func (*FenxiaoOrderMessageAddRequest) SetMessage

func (r *FenxiaoOrderMessageAddRequest) SetMessage(value string)

留言内容

func (*FenxiaoOrderMessageAddRequest) SetPurchaseOrderId

func (r *FenxiaoOrderMessageAddRequest) SetPurchaseOrderId(value string)

采购单id

type FenxiaoOrderMessageAddResponse

type FenxiaoOrderMessageAddResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoOrderMessageAddResponseResult

type FenxiaoOrderMessageAddResponseResult struct {
	Response *FenxiaoOrderMessageAddResponse `json:"fenxiao_order_message_add_response"`
}

type FenxiaoOrderRemarkUpdateRequest

type FenxiaoOrderRemarkUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

供应商修改采购单备注

func (*FenxiaoOrderRemarkUpdateRequest) GetResponse

func (*FenxiaoOrderRemarkUpdateRequest) SetPurchaseOrderId

func (r *FenxiaoOrderRemarkUpdateRequest) SetPurchaseOrderId(value string)

采购单编号

func (*FenxiaoOrderRemarkUpdateRequest) SetSupplierMemo

func (r *FenxiaoOrderRemarkUpdateRequest) SetSupplierMemo(value string)

备注旗子(供应商操作)

func (*FenxiaoOrderRemarkUpdateRequest) SetSupplierMemoFlag

func (r *FenxiaoOrderRemarkUpdateRequest) SetSupplierMemoFlag(value string)
旗子的标记,1-5之间的数字。非1-5之间,都采用1作为默认。

1:红色 2:黄色 3:绿色 4:蓝色 5:粉红色

type FenxiaoOrderRemarkUpdateResponse

type FenxiaoOrderRemarkUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoOrderRemarkUpdateResponseResult

type FenxiaoOrderRemarkUpdateResponseResult struct {
	Response *FenxiaoOrderRemarkUpdateResponse `json:"fenxiao_order_remark_update_response"`
}

type FenxiaoOrdersGetRequest

type FenxiaoOrdersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

分销商或供应商均可用此接口查询采购单信息. (发货处理请调用物流API中的发货接口)

func (*FenxiaoOrdersGetRequest) GetResponse

func (r *FenxiaoOrdersGetRequest) GetResponse(accessToken string) (*FenxiaoOrdersGetResponse, []byte, error)

func (*FenxiaoOrdersGetRequest) SetEndCreated

func (r *FenxiaoOrdersGetRequest) SetEndCreated(value string)

结束时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。

func (*FenxiaoOrdersGetRequest) SetFields

func (r *FenxiaoOrdersGetRequest) SetFields(value string)
多个字段用","分隔。

fields 如果为空:返回所有采购单对象(purchase_orders)字段。 如果不为空:返回指定采购单对象(purchase_orders)字段。

例1: sub_purchase_orders.tc_order_id 表示只返回tc_order_id 例2: sub_purchase_orders表示只返回子采购单列表

func (*FenxiaoOrdersGetRequest) SetPageNo

func (r *FenxiaoOrdersGetRequest) SetPageNo(value string)

页码。(大于0的整数。默认为1)

func (*FenxiaoOrdersGetRequest) SetPageSize

func (r *FenxiaoOrdersGetRequest) SetPageSize(value string)

每页条数。(每页条数不超过50条)

func (*FenxiaoOrdersGetRequest) SetPurchaseOrderId

func (r *FenxiaoOrdersGetRequest) SetPurchaseOrderId(value string)

采购单编号或分销流水号,若其它参数没传,则此参数必传。

func (*FenxiaoOrdersGetRequest) SetStartCreated

func (r *FenxiaoOrdersGetRequest) SetStartCreated(value string)

起始时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。若purchase_order_id没传,则此参数必传。

func (*FenxiaoOrdersGetRequest) SetStatus

func (r *FenxiaoOrdersGetRequest) SetStatus(value string)

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

func (*FenxiaoOrdersGetRequest) SetTcOrderId

func (r *FenxiaoOrdersGetRequest) SetTcOrderId(value string)

采购单下游买家订单id

func (*FenxiaoOrdersGetRequest) SetTimeType

func (r *FenxiaoOrdersGetRequest) SetTimeType(value string)

可选值:trade_time_type(采购单按照成交时间范围查询),update_time_type(采购单按照更新时间范围查询)

type FenxiaoOrdersGetResponse

type FenxiaoOrdersGetResponse struct {
	PurchaseOrders []*PurchaseOrder `json:"purchase_orders"`
	TotalResults   int              `json:"total_results"`
}

type FenxiaoOrdersGetResponseResult

type FenxiaoOrdersGetResponseResult struct {
	Response *FenxiaoOrdersGetResponse `json:"fenxiao_orders_get_response"`
}

type FenxiaoPdu

type FenxiaoPdu struct {
	DistributorId   int    `json:"distributor_id"`
	DistributorName string `json:"distributor_name"`
	ProductId       int    `json:"product_id"`
	QuantityAgent   int    `json:"quantity_agent"`
	SkuProperties   string `json:"sku_properties"`
}

产品分销商属性

type FenxiaoProduct

type FenxiaoProduct struct {
	AlarmNumber         int             `json:"alarm_number"`
	CategoryId          string          `json:"category_id"`
	City                string          `json:"city"`
	CostPrice           float64         `json:"cost_price"`
	Created             string          `json:"created"`
	DealerCostPrice     float64         `json:"dealer_cost_price"`
	DescPath            string          `json:"desc_path"`
	Description         string          `json:"description"`
	DiscountId          int             `json:"discount_id"`
	HaveGuarantee       bool            `json:"have_guarantee"`
	HaveInvoice         bool            `json:"have_invoice"`
	Images              []*FenxiaoImage `json:"images"`
	InputProperties     string          `json:"input_properties"`
	IsAuthz             string          `json:"is_authz"`
	ItemId              int             `json:"item_id"`
	ItemsCount          int             `json:"items_count"`
	Modified            string          `json:"modified"`
	Name                string          `json:"name"`
	OrdersCount         int             `json:"orders_count"`
	OuterId             string          `json:"outer_id"`
	Pdus                []*FenxiaoPdu   `json:"pdus"`
	Pictures            string          `json:"pictures"`
	Pid                 int             `json:"pid"`
	PostageEms          float64         `json:"postage_ems"`
	PostageFast         float64         `json:"postage_fast"`
	PostageId           int             `json:"postage_id"`
	PostageOrdinary     float64         `json:"postage_ordinary"`
	PostageType         string          `json:"postage_type"`
	ProductcatId        int             `json:"productcat_id"`
	Properties          string          `json:"properties"`
	PropertyAlias       string          `json:"property_alias"`
	Prov                string          `json:"prov"`
	Quantity            int             `json:"quantity"`
	QueryItemId         int             `json:"query_item_id"`
	RetailPriceHigh     float64         `json:"retail_price_high"`
	RetailPriceLow      float64         `json:"retail_price_low"`
	ScitemId            int             `json:"scitem_id"`
	Skus                []*FenxiaoSku   `json:"skus"`
	StandardPrice       float64         `json:"standard_price"`
	StandardRetailPrice float64         `json:"standard_retail_price"`
	Status              string          `json:"status"`
	TradeType           string          `json:"trade_type"`
	UpshelfTime         string          `json:"upshelf_time"`
}

分销产品

type FenxiaoProductAddRequest

type FenxiaoProductAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

添加分销平台产品数据。业务逻辑与分销系统前台页面一致。

* 产品图片默认为空 * 产品发布后默认为下架状态

func (*FenxiaoProductAddRequest) GetResponse

func (r *FenxiaoProductAddRequest) GetResponse(accessToken string) (*FenxiaoProductAddResponse, []byte, error)

func (*FenxiaoProductAddRequest) SetAlarmNumber

func (r *FenxiaoProductAddRequest) SetAlarmNumber(value string)

警戒库存必须是0到29999。

func (*FenxiaoProductAddRequest) SetCategoryId

func (r *FenxiaoProductAddRequest) SetCategoryId(value string)

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

func (*FenxiaoProductAddRequest) SetCity

func (r *FenxiaoProductAddRequest) SetCity(value string)

所在地:市,例:“杭州”

func (*FenxiaoProductAddRequest) SetCostPrice

func (r *FenxiaoProductAddRequest) SetCostPrice(value string)

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

func (*FenxiaoProductAddRequest) SetDealerCostPrice

func (r *FenxiaoProductAddRequest) SetDealerCostPrice(value string)

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

func (*FenxiaoProductAddRequest) SetDesc

func (r *FenxiaoProductAddRequest) SetDesc(value string)

产品描述,长度为5到25000字符。

func (*FenxiaoProductAddRequest) SetDiscountId

func (r *FenxiaoProductAddRequest) SetDiscountId(value string)

折扣ID

func (*FenxiaoProductAddRequest) SetHaveGuarantee

func (r *FenxiaoProductAddRequest) SetHaveGuarantee(value string)

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

func (*FenxiaoProductAddRequest) SetHaveInvoice

func (r *FenxiaoProductAddRequest) SetHaveInvoice(value string)

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

func (*FenxiaoProductAddRequest) SetImage

func (r *FenxiaoProductAddRequest) SetImage(value string)

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

func (*FenxiaoProductAddRequest) SetInputProperties

func (r *FenxiaoProductAddRequest) SetInputProperties(value string)

自定义属性。格式为pid:value;pid:value

func (*FenxiaoProductAddRequest) SetIsAuthz

func (r *FenxiaoProductAddRequest) SetIsAuthz(value string)
添加产品时,添加入参isAuthz:yes|no

yes:需要授权 no:不需要授权 默认是需要授权

func (*FenxiaoProductAddRequest) SetItemId

func (r *FenxiaoProductAddRequest) SetItemId(value string)

导入的商品ID

func (*FenxiaoProductAddRequest) SetName

func (r *FenxiaoProductAddRequest) SetName(value string)

产品名称,长度不超过60个字节。

func (*FenxiaoProductAddRequest) SetOuterId

func (r *FenxiaoProductAddRequest) SetOuterId(value string)

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

func (*FenxiaoProductAddRequest) SetPicPath

func (r *FenxiaoProductAddRequest) SetPicPath(value string)

产品主图图片空间相对路径或绝对路径

func (*FenxiaoProductAddRequest) SetPostageEms

func (r *FenxiaoProductAddRequest) SetPostageEms(value string)

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

func (*FenxiaoProductAddRequest) SetPostageFast

func (r *FenxiaoProductAddRequest) SetPostageFast(value string)

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

func (*FenxiaoProductAddRequest) SetPostageId

func (r *FenxiaoProductAddRequest) SetPostageId(value string)

运费模板ID,参考taobao.postages.get。

func (*FenxiaoProductAddRequest) SetPostageOrdinary

func (r *FenxiaoProductAddRequest) SetPostageOrdinary(value string)

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

func (*FenxiaoProductAddRequest) SetPostageType

func (r *FenxiaoProductAddRequest) SetPostageType(value string)

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

func (*FenxiaoProductAddRequest) SetProductcatId

func (r *FenxiaoProductAddRequest) SetProductcatId(value string)

产品线ID

func (*FenxiaoProductAddRequest) SetProperties

func (r *FenxiaoProductAddRequest) SetProperties(value string)

产品属性,格式为pid:vid;pid:vid

func (*FenxiaoProductAddRequest) SetPropertyAlias

func (r *FenxiaoProductAddRequest) SetPropertyAlias(value string)

属性别名,格式为:pid:vid:alias;pid:vid:alias(alias为别名)

func (*FenxiaoProductAddRequest) SetProv

func (r *FenxiaoProductAddRequest) SetProv(value string)

所在地:省,例:“浙江”

func (*FenxiaoProductAddRequest) SetQuantity

func (r *FenxiaoProductAddRequest) SetQuantity(value string)

产品库存必须是1到999999。

func (*FenxiaoProductAddRequest) SetRetailPriceHigh

func (r *FenxiaoProductAddRequest) SetRetailPriceHigh(value string)

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

func (*FenxiaoProductAddRequest) SetRetailPriceLow

func (r *FenxiaoProductAddRequest) SetRetailPriceLow(value string)

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

func (*FenxiaoProductAddRequest) SetSkuCostPrices

func (r *FenxiaoProductAddRequest) SetSkuCostPrices(value string)

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

func (*FenxiaoProductAddRequest) SetSkuDealerCostPrices

func (r *FenxiaoProductAddRequest) SetSkuDealerCostPrices(value string)

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

func (*FenxiaoProductAddRequest) SetSkuOuterIds

func (r *FenxiaoProductAddRequest) SetSkuOuterIds(value string)

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

func (*FenxiaoProductAddRequest) SetSkuProperties

func (r *FenxiaoProductAddRequest) SetSkuProperties(value string)

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

func (*FenxiaoProductAddRequest) SetSkuQuantitys

func (r *FenxiaoProductAddRequest) SetSkuQuantitys(value string)

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

func (*FenxiaoProductAddRequest) SetSkuStandardPrices

func (r *FenxiaoProductAddRequest) SetSkuStandardPrices(value string)

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

func (*FenxiaoProductAddRequest) SetStandardPrice

func (r *FenxiaoProductAddRequest) SetStandardPrice(value string)

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

func (*FenxiaoProductAddRequest) SetStandardRetailPrice

func (r *FenxiaoProductAddRequest) SetStandardRetailPrice(value string)

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

func (*FenxiaoProductAddRequest) SetTradeType

func (r *FenxiaoProductAddRequest) SetTradeType(value string)

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

type FenxiaoProductAddResponse

type FenxiaoProductAddResponse struct {
	Created string `json:"created"`
	Pid     int    `json:"pid"`
}

type FenxiaoProductAddResponseResult

type FenxiaoProductAddResponseResult struct {
	Response *FenxiaoProductAddResponse `json:"fenxiao_product_add_response"`
}

type FenxiaoProductGradepriceGetRequest

type FenxiaoProductGradepriceGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

等级折扣查询

func (*FenxiaoProductGradepriceGetRequest) GetResponse

func (*FenxiaoProductGradepriceGetRequest) SetProductId

func (r *FenxiaoProductGradepriceGetRequest) SetProductId(value string)

产品id

func (*FenxiaoProductGradepriceGetRequest) SetSkuId

func (r *FenxiaoProductGradepriceGetRequest) SetSkuId(value string)

skuId

func (*FenxiaoProductGradepriceGetRequest) SetTradeType

func (r *FenxiaoProductGradepriceGetRequest) SetTradeType(value string)

经、代销模式(1:代销、2:经销)

type FenxiaoProductGradepriceGetResponse

type FenxiaoProductGradepriceGetResponse struct {
	GradeDiscounts []*GradeDiscount `json:"grade_discounts"`
	IsSuccess      bool             `json:"is_success"`
}

type FenxiaoProductGradepriceGetResponseResult

type FenxiaoProductGradepriceGetResponseResult struct {
	Response *FenxiaoProductGradepriceGetResponse `json:"fenxiao_product_gradeprice_get_response"`
}

type FenxiaoProductGradepriceUpdateRequest

type FenxiaoProductGradepriceUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoProductGradepriceUpdateRequest) GetResponse

func (*FenxiaoProductGradepriceUpdateRequest) SetIds

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

func (*FenxiaoProductGradepriceUpdateRequest) SetPrices

func (r *FenxiaoProductGradepriceUpdateRequest) SetPrices(value string)

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

func (*FenxiaoProductGradepriceUpdateRequest) SetProductId

func (r *FenxiaoProductGradepriceUpdateRequest) SetProductId(value string)

产品Id

func (*FenxiaoProductGradepriceUpdateRequest) SetSkuId

func (r *FenxiaoProductGradepriceUpdateRequest) SetSkuId(value string)

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

func (*FenxiaoProductGradepriceUpdateRequest) SetTargetType

func (r *FenxiaoProductGradepriceUpdateRequest) SetTargetType(value string)

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

func (*FenxiaoProductGradepriceUpdateRequest) SetTradeType

func (r *FenxiaoProductGradepriceUpdateRequest) SetTradeType(value string)

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

type FenxiaoProductGradepriceUpdateResponse

type FenxiaoProductGradepriceUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoProductGradepriceUpdateResponseResult

type FenxiaoProductGradepriceUpdateResponseResult struct {
	Response *FenxiaoProductGradepriceUpdateResponse `json:"fenxiao_product_gradeprice_update_response"`
}

type FenxiaoProductImageDeleteRequest

type FenxiaoProductImageDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoProductImageDeleteRequest) GetResponse

func (*FenxiaoProductImageDeleteRequest) SetPosition

func (r *FenxiaoProductImageDeleteRequest) SetPosition(value string)

图片位置

func (*FenxiaoProductImageDeleteRequest) SetProductId

func (r *FenxiaoProductImageDeleteRequest) SetProductId(value string)

产品ID

func (*FenxiaoProductImageDeleteRequest) SetProperties

func (r *FenxiaoProductImageDeleteRequest) SetProperties(value string)

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

type FenxiaoProductImageDeleteResponse

type FenxiaoProductImageDeleteResponse struct {
	Created string `json:"created"`
	Result  bool   `json:"result"`
}

type FenxiaoProductImageDeleteResponseResult

type FenxiaoProductImageDeleteResponseResult struct {
	Response *FenxiaoProductImageDeleteResponse `json:"fenxiao_product_image_delete_response"`
}

type FenxiaoProductImageUploadRequest

type FenxiaoProductImageUploadRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoProductImageUploadRequest) GetResponse

func (*FenxiaoProductImageUploadRequest) SetImage

func (r *FenxiaoProductImageUploadRequest) SetImage(value string)

产品图片

func (*FenxiaoProductImageUploadRequest) SetPicPath

func (r *FenxiaoProductImageUploadRequest) SetPicPath(value string)

产品主图图片空间相对路径或绝对路径

func (*FenxiaoProductImageUploadRequest) SetPosition

func (r *FenxiaoProductImageUploadRequest) SetPosition(value string)

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

func (*FenxiaoProductImageUploadRequest) SetProductId

func (r *FenxiaoProductImageUploadRequest) SetProductId(value string)

产品ID

func (*FenxiaoProductImageUploadRequest) SetProperties

func (r *FenxiaoProductImageUploadRequest) SetProperties(value string)

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

type FenxiaoProductImageUploadResponse

type FenxiaoProductImageUploadResponse struct {
	Created string `json:"created"`
	Result  bool   `json:"result"`
}

type FenxiaoProductImageUploadResponseResult

type FenxiaoProductImageUploadResponseResult struct {
	Response *FenxiaoProductImageUploadResponse `json:"fenxiao_product_image_upload_response"`
}

type FenxiaoProductMapAddRequest

type FenxiaoProductMapAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoProductMapAddRequest) GetResponse

func (r *FenxiaoProductMapAddRequest) GetResponse(accessToken string) (*FenxiaoProductMapAddResponse, []byte, error)

func (*FenxiaoProductMapAddRequest) SetNotCheckOuterCode

func (r *FenxiaoProductMapAddRequest) SetNotCheckOuterCode(value string)

是否需要校验商家编码,true不校验,false校验。

func (*FenxiaoProductMapAddRequest) SetProductId

func (r *FenxiaoProductMapAddRequest) SetProductId(value string)

分销产品id。

func (*FenxiaoProductMapAddRequest) SetScItemId

func (r *FenxiaoProductMapAddRequest) SetScItemId(value string)

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

func (*FenxiaoProductMapAddRequest) SetScItemIds

func (r *FenxiaoProductMapAddRequest) SetScItemIds(value string)

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

func (*FenxiaoProductMapAddRequest) SetSkuIds

func (r *FenxiaoProductMapAddRequest) SetSkuIds(value string)

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

type FenxiaoProductMapAddResponse

type FenxiaoProductMapAddResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoProductMapAddResponseResult

type FenxiaoProductMapAddResponseResult struct {
	Response *FenxiaoProductMapAddResponse `json:"fenxiao_product_map_add_response"`
}

type FenxiaoProductMapDeleteRequest

type FenxiaoProductMapDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除分销和供应链商品映射关系。

func (*FenxiaoProductMapDeleteRequest) GetResponse

func (*FenxiaoProductMapDeleteRequest) SetProductId

func (r *FenxiaoProductMapDeleteRequest) SetProductId(value string)

分销产品id。

func (*FenxiaoProductMapDeleteRequest) SetSkuIds

func (r *FenxiaoProductMapDeleteRequest) SetSkuIds(value string)

分销产品的sku id列表,逗号分隔,在有sku时需要指定。

type FenxiaoProductMapDeleteResponse

type FenxiaoProductMapDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoProductMapDeleteResponseResult

type FenxiaoProductMapDeleteResponseResult struct {
	Response *FenxiaoProductMapDeleteResponse `json:"fenxiao_product_map_delete_response"`
}

type FenxiaoProductSkuAddRequest

type FenxiaoProductSkuAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

添加产品SKU信息

func (*FenxiaoProductSkuAddRequest) GetResponse

func (r *FenxiaoProductSkuAddRequest) GetResponse(accessToken string) (*FenxiaoProductSkuAddResponse, []byte, error)

func (*FenxiaoProductSkuAddRequest) SetAgentCostPrice

func (r *FenxiaoProductSkuAddRequest) SetAgentCostPrice(value string)

代销采购价

func (*FenxiaoProductSkuAddRequest) SetDealerCostPrice

func (r *FenxiaoProductSkuAddRequest) SetDealerCostPrice(value string)

经销采购价

func (*FenxiaoProductSkuAddRequest) SetProductId

func (r *FenxiaoProductSkuAddRequest) SetProductId(value string)

产品ID

func (*FenxiaoProductSkuAddRequest) SetProperties

func (r *FenxiaoProductSkuAddRequest) SetProperties(value string)

sku属性

func (*FenxiaoProductSkuAddRequest) SetQuantity

func (r *FenxiaoProductSkuAddRequest) SetQuantity(value string)

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

func (*FenxiaoProductSkuAddRequest) SetSkuNumber

func (r *FenxiaoProductSkuAddRequest) SetSkuNumber(value string)

商家编码

func (*FenxiaoProductSkuAddRequest) SetStandardPrice

func (r *FenxiaoProductSkuAddRequest) SetStandardPrice(value string)

采购基准价,最大值1000000000

type FenxiaoProductSkuAddResponse

type FenxiaoProductSkuAddResponse struct {
	Created string `json:"created"`
	Result  bool   `json:"result"`
}

type FenxiaoProductSkuAddResponseResult

type FenxiaoProductSkuAddResponseResult struct {
	Response *FenxiaoProductSkuAddResponse `json:"fenxiao_product_sku_add_response"`
}

type FenxiaoProductSkuDeleteRequest

type FenxiaoProductSkuDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据sku properties删除sku数据

func (*FenxiaoProductSkuDeleteRequest) GetResponse

func (*FenxiaoProductSkuDeleteRequest) SetProductId

func (r *FenxiaoProductSkuDeleteRequest) SetProductId(value string)

产品id

func (*FenxiaoProductSkuDeleteRequest) SetProperties

func (r *FenxiaoProductSkuDeleteRequest) SetProperties(value string)

sku属性

type FenxiaoProductSkuDeleteResponse

type FenxiaoProductSkuDeleteResponse struct {
	Created string `json:"created"`
	Result  bool   `json:"result"`
}

type FenxiaoProductSkuDeleteResponseResult

type FenxiaoProductSkuDeleteResponseResult struct {
	Response *FenxiaoProductSkuDeleteResponse `json:"fenxiao_product_sku_delete_response"`
}

type FenxiaoProductSkuUpdateRequest

type FenxiaoProductSkuUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

产品SKU信息更新

func (*FenxiaoProductSkuUpdateRequest) GetResponse

func (*FenxiaoProductSkuUpdateRequest) SetAgentCostPrice

func (r *FenxiaoProductSkuUpdateRequest) SetAgentCostPrice(value string)

代销采购价

func (*FenxiaoProductSkuUpdateRequest) SetDealerCostPrice

func (r *FenxiaoProductSkuUpdateRequest) SetDealerCostPrice(value string)

经销采购价

func (*FenxiaoProductSkuUpdateRequest) SetProductId

func (r *FenxiaoProductSkuUpdateRequest) SetProductId(value string)

产品ID

func (*FenxiaoProductSkuUpdateRequest) SetProperties

func (r *FenxiaoProductSkuUpdateRequest) SetProperties(value string)

sku属性

func (*FenxiaoProductSkuUpdateRequest) SetQuantity

func (r *FenxiaoProductSkuUpdateRequest) SetQuantity(value string)

产品SKU库存

func (*FenxiaoProductSkuUpdateRequest) SetSkuNumber

func (r *FenxiaoProductSkuUpdateRequest) SetSkuNumber(value string)

商家编码

func (*FenxiaoProductSkuUpdateRequest) SetStandardPrice

func (r *FenxiaoProductSkuUpdateRequest) SetStandardPrice(value string)

采购基准价

type FenxiaoProductSkuUpdateResponse

type FenxiaoProductSkuUpdateResponse struct {
	Created string `json:"created"`
	Result  bool   `json:"result"`
}

type FenxiaoProductSkuUpdateResponseResult

type FenxiaoProductSkuUpdateResponseResult struct {
	Response *FenxiaoProductSkuUpdateResponse `json:"fenxiao_product_sku_update_response"`
}

type FenxiaoProductSkusGetRequest

type FenxiaoProductSkusGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

产品sku查询

func (*FenxiaoProductSkusGetRequest) GetResponse

func (r *FenxiaoProductSkusGetRequest) GetResponse(accessToken string) (*FenxiaoProductSkusGetResponse, []byte, error)

func (*FenxiaoProductSkusGetRequest) SetProductId

func (r *FenxiaoProductSkusGetRequest) SetProductId(value string)

产品ID

type FenxiaoProductSkusGetResponse

type FenxiaoProductSkusGetResponse struct {
	Skus         []*FenxiaoSku `json:"skus"`
	TotalResults int           `json:"total_results"`
}

type FenxiaoProductSkusGetResponseResult

type FenxiaoProductSkusGetResponseResult struct {
	Response *FenxiaoProductSkusGetResponse `json:"fenxiao_product_skus_get_response"`
}

type FenxiaoProductUpdateRequest

type FenxiaoProductUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}
更新分销平台产品数据,不传更新数据返回失败<br>

1. 对sku进行增、删操作时,原有的sku_ids字段会被忽略,请使用sku_properties和sku_properties_del。<br>

func (*FenxiaoProductUpdateRequest) GetResponse

func (r *FenxiaoProductUpdateRequest) GetResponse(accessToken string) (*FenxiaoProductUpdateResponse, []byte, error)

func (*FenxiaoProductUpdateRequest) SetAlarmNumber

func (r *FenxiaoProductUpdateRequest) SetAlarmNumber(value string)

警戒库存必须是0到29999。

func (*FenxiaoProductUpdateRequest) SetCategoryId

func (r *FenxiaoProductUpdateRequest) SetCategoryId(value string)

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

func (*FenxiaoProductUpdateRequest) SetCity

func (r *FenxiaoProductUpdateRequest) SetCity(value string)

所在地:市,例:“杭州”

func (*FenxiaoProductUpdateRequest) SetCostPrice

func (r *FenxiaoProductUpdateRequest) SetCostPrice(value string)

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

func (*FenxiaoProductUpdateRequest) SetDealerCostPrice

func (r *FenxiaoProductUpdateRequest) SetDealerCostPrice(value string)

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

func (*FenxiaoProductUpdateRequest) SetDesc

func (r *FenxiaoProductUpdateRequest) SetDesc(value string)

产品描述,长度为5到25000字符。

func (*FenxiaoProductUpdateRequest) SetDiscountId

func (r *FenxiaoProductUpdateRequest) SetDiscountId(value string)

折扣ID

func (*FenxiaoProductUpdateRequest) SetHaveGuarantee

func (r *FenxiaoProductUpdateRequest) SetHaveGuarantee(value string)

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

func (*FenxiaoProductUpdateRequest) SetHaveInvoice

func (r *FenxiaoProductUpdateRequest) SetHaveInvoice(value string)

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

func (*FenxiaoProductUpdateRequest) SetImage

func (r *FenxiaoProductUpdateRequest) SetImage(value string)

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

func (*FenxiaoProductUpdateRequest) SetInputProperties

func (r *FenxiaoProductUpdateRequest) SetInputProperties(value string)

自定义属性。格式为pid:value;pid:value

func (*FenxiaoProductUpdateRequest) SetIsAuthz

func (r *FenxiaoProductUpdateRequest) SetIsAuthz(value string)
产品是否需要授权isAuthz:yes|no

yes:需要授权 no:不需要授权

func (*FenxiaoProductUpdateRequest) SetName

func (r *FenxiaoProductUpdateRequest) SetName(value string)

产品名称,长度不超过60个字节。

func (*FenxiaoProductUpdateRequest) SetOuterId

func (r *FenxiaoProductUpdateRequest) SetOuterId(value string)

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

func (*FenxiaoProductUpdateRequest) SetPicPath

func (r *FenxiaoProductUpdateRequest) SetPicPath(value string)

产品主图图片空间相对路径或绝对路径

func (*FenxiaoProductUpdateRequest) SetPid

func (r *FenxiaoProductUpdateRequest) SetPid(value string)

产品ID

func (*FenxiaoProductUpdateRequest) SetPostageEms

func (r *FenxiaoProductUpdateRequest) SetPostageEms(value string)

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

func (*FenxiaoProductUpdateRequest) SetPostageFast

func (r *FenxiaoProductUpdateRequest) SetPostageFast(value string)

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

func (*FenxiaoProductUpdateRequest) SetPostageId

func (r *FenxiaoProductUpdateRequest) SetPostageId(value string)

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

func (*FenxiaoProductUpdateRequest) SetPostageOrdinary

func (r *FenxiaoProductUpdateRequest) SetPostageOrdinary(value string)

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

func (*FenxiaoProductUpdateRequest) SetPostageType

func (r *FenxiaoProductUpdateRequest) SetPostageType(value string)

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

func (*FenxiaoProductUpdateRequest) SetProperties

func (r *FenxiaoProductUpdateRequest) SetProperties(value string)

产品属性

func (*FenxiaoProductUpdateRequest) SetPropertyAlias

func (r *FenxiaoProductUpdateRequest) SetPropertyAlias(value string)

属性别名

func (*FenxiaoProductUpdateRequest) SetProv

func (r *FenxiaoProductUpdateRequest) SetProv(value string)

所在地:省,例:“浙江”

func (*FenxiaoProductUpdateRequest) SetQuantity

func (r *FenxiaoProductUpdateRequest) SetQuantity(value string)

产品库存必须是1到999999。

func (*FenxiaoProductUpdateRequest) SetRetailPriceHigh

func (r *FenxiaoProductUpdateRequest) SetRetailPriceHigh(value string)

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

func (*FenxiaoProductUpdateRequest) SetRetailPriceLow

func (r *FenxiaoProductUpdateRequest) SetRetailPriceLow(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuCostPrices

func (r *FenxiaoProductUpdateRequest) SetSkuCostPrices(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuDealerCostPrices

func (r *FenxiaoProductUpdateRequest) SetSkuDealerCostPrices(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuIds

func (r *FenxiaoProductUpdateRequest) SetSkuIds(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuOuterIds

func (r *FenxiaoProductUpdateRequest) SetSkuOuterIds(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuProperties

func (r *FenxiaoProductUpdateRequest) SetSkuProperties(value string)
sku属性。格式:pid:vid;pid:vid,表示一组属性如:1627207:3232483;1630696:3284570,表示一组:机身颜色:军绿色;手机套餐:一电一充。多组之间用逗号“,”区分。(属性的pid调用taobao.itemprops.get取得,属性值的vid用taobao.itempropvalues.get取得vid)

通过此字段可新增和更新sku。若传入此值将忽略sku_ids字段。sku其他字段与此值保持一致。

func (*FenxiaoProductUpdateRequest) SetSkuPropertiesDel

func (r *FenxiaoProductUpdateRequest) SetSkuPropertiesDel(value string)

根据sku属性删除sku信息。需要按组删除属性。

func (*FenxiaoProductUpdateRequest) SetSkuQuantitys

func (r *FenxiaoProductUpdateRequest) SetSkuQuantitys(value string)

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

func (*FenxiaoProductUpdateRequest) SetSkuStandardPrices

func (r *FenxiaoProductUpdateRequest) SetSkuStandardPrices(value string)

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

func (*FenxiaoProductUpdateRequest) SetStandardPrice

func (r *FenxiaoProductUpdateRequest) SetStandardPrice(value string)

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

func (*FenxiaoProductUpdateRequest) SetStandardRetailPrice

func (r *FenxiaoProductUpdateRequest) SetStandardRetailPrice(value string)

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

func (*FenxiaoProductUpdateRequest) SetStatus

func (r *FenxiaoProductUpdateRequest) SetStatus(value string)

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

type FenxiaoProductUpdateResponse

type FenxiaoProductUpdateResponse struct {
	Modified string `json:"modified"`
	Pid      int    `json:"pid"`
}

type FenxiaoProductUpdateResponseResult

type FenxiaoProductUpdateResponseResult struct {
	Response *FenxiaoProductUpdateResponse `json:"fenxiao_product_update_response"`
}

type FenxiaoProductcatAddRequest

type FenxiaoProductcatAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

新增产品线

func (*FenxiaoProductcatAddRequest) GetResponse

func (r *FenxiaoProductcatAddRequest) GetResponse(accessToken string) (*FenxiaoProductcatAddResponse, []byte, error)

func (*FenxiaoProductcatAddRequest) SetAgentCostPercent

func (r *FenxiaoProductcatAddRequest) SetAgentCostPercent(value string)

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

func (*FenxiaoProductcatAddRequest) SetDealerCostPercent

func (r *FenxiaoProductcatAddRequest) SetDealerCostPercent(value string)

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

func (*FenxiaoProductcatAddRequest) SetName

func (r *FenxiaoProductcatAddRequest) SetName(value string)

产品线名称

func (*FenxiaoProductcatAddRequest) SetRetailHighPercent

func (r *FenxiaoProductcatAddRequest) SetRetailHighPercent(value string)

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

func (*FenxiaoProductcatAddRequest) SetRetailLowPercent

func (r *FenxiaoProductcatAddRequest) SetRetailLowPercent(value string)

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

type FenxiaoProductcatAddResponse

type FenxiaoProductcatAddResponse struct {
	IsSuccess     bool `json:"is_success"`
	ProductLineId int  `json:"product_line_id"`
}

type FenxiaoProductcatAddResponseResult

type FenxiaoProductcatAddResponseResult struct {
	Response *FenxiaoProductcatAddResponse `json:"fenxiao_productcat_add_response"`
}

type FenxiaoProductcatDeleteRequest

type FenxiaoProductcatDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

删除产品线

func (*FenxiaoProductcatDeleteRequest) GetResponse

func (*FenxiaoProductcatDeleteRequest) SetProductLineId

func (r *FenxiaoProductcatDeleteRequest) SetProductLineId(value string)

产品线ID

type FenxiaoProductcatDeleteResponse

type FenxiaoProductcatDeleteResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoProductcatDeleteResponseResult

type FenxiaoProductcatDeleteResponseResult struct {
	Response *FenxiaoProductcatDeleteResponse `json:"fenxiao_productcat_delete_response"`
}

type FenxiaoProductcatUpdateRequest

type FenxiaoProductcatUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改产品线

func (*FenxiaoProductcatUpdateRequest) GetResponse

func (*FenxiaoProductcatUpdateRequest) SetAgentCostPercent

func (r *FenxiaoProductcatUpdateRequest) SetAgentCostPercent(value string)

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

func (*FenxiaoProductcatUpdateRequest) SetDealerCostPercent

func (r *FenxiaoProductcatUpdateRequest) SetDealerCostPercent(value string)

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

func (*FenxiaoProductcatUpdateRequest) SetName

func (r *FenxiaoProductcatUpdateRequest) SetName(value string)

产品线名称

func (*FenxiaoProductcatUpdateRequest) SetProductLineId

func (r *FenxiaoProductcatUpdateRequest) SetProductLineId(value string)

产品线ID

func (*FenxiaoProductcatUpdateRequest) SetRetailHighPercent

func (r *FenxiaoProductcatUpdateRequest) SetRetailHighPercent(value string)

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

func (*FenxiaoProductcatUpdateRequest) SetRetailLowPercent

func (r *FenxiaoProductcatUpdateRequest) SetRetailLowPercent(value string)

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

type FenxiaoProductcatUpdateResponse

type FenxiaoProductcatUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoProductcatUpdateResponseResult

type FenxiaoProductcatUpdateResponseResult struct {
	Response *FenxiaoProductcatUpdateResponse `json:"fenxiao_productcat_update_response"`
}

type FenxiaoProductcatsGetRequest

type FenxiaoProductcatsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoProductcatsGetRequest) GetResponse

func (r *FenxiaoProductcatsGetRequest) GetResponse(accessToken string) (*FenxiaoProductcatsGetResponse, []byte, error)

func (*FenxiaoProductcatsGetRequest) SetFields

func (r *FenxiaoProductcatsGetRequest) SetFields(value string)

返回字段列表

type FenxiaoProductcatsGetResponse

type FenxiaoProductcatsGetResponse struct {
	Productcats  []*ProductCat `json:"productcats"`
	TotalResults int           `json:"total_results"`
}

type FenxiaoProductcatsGetResponseResult

type FenxiaoProductcatsGetResponseResult struct {
	Response *FenxiaoProductcatsGetResponse `json:"fenxiao_productcats_get_response"`
}

type FenxiaoProductsGetRequest

type FenxiaoProductsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询供应商的产品数据。

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

func (*FenxiaoProductsGetRequest) GetResponse

func (r *FenxiaoProductsGetRequest) GetResponse(accessToken string) (*FenxiaoProductsGetResponse, []byte, error)

func (*FenxiaoProductsGetRequest) SetEndModified

func (r *FenxiaoProductsGetRequest) SetEndModified(value string)

结束修改时间

func (*FenxiaoProductsGetRequest) SetFields

func (r *FenxiaoProductsGetRequest) SetFields(value string)

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

func (*FenxiaoProductsGetRequest) SetIsAuthz

func (r *FenxiaoProductsGetRequest) SetIsAuthz(value string)
查询产品列表时,查询入参“是否需要授权”

yes:需要授权 no:不需要授权

func (*FenxiaoProductsGetRequest) SetItemIds

func (r *FenxiaoProductsGetRequest) SetItemIds(value string)

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

func (*FenxiaoProductsGetRequest) SetOuterId

func (r *FenxiaoProductsGetRequest) SetOuterId(value string)

商家编码

func (*FenxiaoProductsGetRequest) SetPageNo

func (r *FenxiaoProductsGetRequest) SetPageNo(value string)

页码(大于0的整数,默认1)

func (*FenxiaoProductsGetRequest) SetPageSize

func (r *FenxiaoProductsGetRequest) SetPageSize(value string)

每页记录数(默认20,最大50)

func (*FenxiaoProductsGetRequest) SetPids

func (r *FenxiaoProductsGetRequest) SetPids(value string)

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

func (*FenxiaoProductsGetRequest) SetProductcatId

func (r *FenxiaoProductsGetRequest) SetProductcatId(value string)

产品线ID

func (*FenxiaoProductsGetRequest) SetSkuNumber

func (r *FenxiaoProductsGetRequest) SetSkuNumber(value string)

sku商家编码

func (*FenxiaoProductsGetRequest) SetStartModified

func (r *FenxiaoProductsGetRequest) SetStartModified(value string)

开始修改时间

func (*FenxiaoProductsGetRequest) SetStatus

func (r *FenxiaoProductsGetRequest) SetStatus(value string)

产品状态,可选值:up(上架)、down(下架),不传默认查询所有

type FenxiaoProductsGetResponse

type FenxiaoProductsGetResponse struct {
	Products     []*FenxiaoProduct `json:"products"`
	TotalResults int               `json:"total_results"`
}

type FenxiaoProductsGetResponseResult

type FenxiaoProductsGetResponseResult struct {
	Response *FenxiaoProductsGetResponse `json:"fenxiao_products_get_response"`
}

type FenxiaoRefundCreateRequest

type FenxiaoRefundCreateRequest struct {
	open_taobao.TaobaoMethodRequest
}

用于对分销的子采购单创建退款

func (*FenxiaoRefundCreateRequest) GetResponse

func (r *FenxiaoRefundCreateRequest) GetResponse(accessToken string) (*FenxiaoRefundCreateResponse, []byte, error)

func (*FenxiaoRefundCreateRequest) SetIsReturnGoods

func (r *FenxiaoRefundCreateRequest) SetIsReturnGoods(value string)

是否退货,只有子采购单发货后,才能申请退货

func (*FenxiaoRefundCreateRequest) SetIsReturnPostFee

func (r *FenxiaoRefundCreateRequest) SetIsReturnPostFee(value string)

此条子采购单是否退邮费,邮费要记在最后一笔申请退款的子单上面

func (*FenxiaoRefundCreateRequest) SetRefundDesc

func (r *FenxiaoRefundCreateRequest) SetRefundDesc(value string)

退款说明,2-200字

func (*FenxiaoRefundCreateRequest) SetRefundReasonId

func (r *FenxiaoRefundCreateRequest) SetRefundReasonId(value string)
发货前:

1、缺货,2、拍错商品,3、商品缺少所需样式,4、协商一致退款,5、未及时发货,0、其它 发货后: 经销: 1、商品质量问题,2、收到的商品不符,3、协商一致退款,4、一直未收到货,5、退还多付邮费,6、折扣、赠品、发票等问题,0、其它 代销: 1、商品质量问题,2、收到的商品不符,3、协商一致退款,4、买家一直未收到货,5、退还多付邮费,6、折扣、赠品、发票等问题,0、其它

func (*FenxiaoRefundCreateRequest) SetReturnFee

func (r *FenxiaoRefundCreateRequest) SetReturnFee(value string)

需要退款的金额,单位为分

func (*FenxiaoRefundCreateRequest) SetSubOrderId

func (r *FenxiaoRefundCreateRequest) SetSubOrderId(value string)

需要创建退款的子采购单id

type FenxiaoRefundCreateResponse

type FenxiaoRefundCreateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoRefundCreateResponseResult

type FenxiaoRefundCreateResponseResult struct {
	Response *FenxiaoRefundCreateResponse `json:"fenxiao_refund_create_response"`
}

type FenxiaoRefundGetRequest

type FenxiaoRefundGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

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

func (*FenxiaoRefundGetRequest) GetResponse

func (r *FenxiaoRefundGetRequest) GetResponse(accessToken string) (*FenxiaoRefundGetResponse, []byte, error)

func (*FenxiaoRefundGetRequest) SetQuerySellerRefund

func (r *FenxiaoRefundGetRequest) SetQuerySellerRefund(value string)

是否查询下游买家的退款信息

func (*FenxiaoRefundGetRequest) SetSubOrderId

func (r *FenxiaoRefundGetRequest) SetSubOrderId(value string)

要查询的退款子单的id

type FenxiaoRefundGetResponse

type FenxiaoRefundGetResponse struct {
	RefundDetail *RefundDetail `json:"refund_detail"`
}

type FenxiaoRefundGetResponseResult

type FenxiaoRefundGetResponseResult struct {
	Response *FenxiaoRefundGetResponse `json:"fenxiao_refund_get_response"`
}

type FenxiaoRefundMessageAddRequest

type FenxiaoRefundMessageAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

添加退款留言

func (*FenxiaoRefundMessageAddRequest) GetResponse

func (*FenxiaoRefundMessageAddRequest) SetImage

func (r *FenxiaoRefundMessageAddRequest) SetImage(value string)

留言凭证

func (*FenxiaoRefundMessageAddRequest) SetMessageContent

func (r *FenxiaoRefundMessageAddRequest) SetMessageContent(value string)

留言内容

func (*FenxiaoRefundMessageAddRequest) SetSubOrderId

func (r *FenxiaoRefundMessageAddRequest) SetSubOrderId(value string)

发生退款的子采购单id

type FenxiaoRefundMessageAddResponse

type FenxiaoRefundMessageAddResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoRefundMessageAddResponseResult

type FenxiaoRefundMessageAddResponseResult struct {
	Response *FenxiaoRefundMessageAddResponse `json:"fenxiao_refund_message_add_response"`
}

type FenxiaoRefundMessageGetRequest

type FenxiaoRefundMessageGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据子采购单id,查询对应子单的退款留言信息

func (*FenxiaoRefundMessageGetRequest) GetResponse

func (*FenxiaoRefundMessageGetRequest) SetPageNo

func (r *FenxiaoRefundMessageGetRequest) SetPageNo(value string)

页码。(大于0的整数。默认为1)

func (*FenxiaoRefundMessageGetRequest) SetPageSize

func (r *FenxiaoRefundMessageGetRequest) SetPageSize(value string)

每页条数。(默认10)

func (*FenxiaoRefundMessageGetRequest) SetSubOrderId

func (r *FenxiaoRefundMessageGetRequest) SetSubOrderId(value string)

子采购单id

type FenxiaoRefundMessageGetResponse

type FenxiaoRefundMessageGetResponse struct {
	OrderMessages []*OrderMessage `json:"order_messages"`
	TotalResults  int             `json:"total_results"`
}

type FenxiaoRefundMessageGetResponseResult

type FenxiaoRefundMessageGetResponseResult struct {
	Response *FenxiaoRefundMessageGetResponse `json:"fenxiao_refund_message_get_response"`
}

type FenxiaoRefundUpdateRequest

type FenxiaoRefundUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

修改退款协议

func (*FenxiaoRefundUpdateRequest) GetResponse

func (r *FenxiaoRefundUpdateRequest) GetResponse(accessToken string) (*FenxiaoRefundUpdateResponse, []byte, error)

func (*FenxiaoRefundUpdateRequest) SetIsReturnGoods

func (r *FenxiaoRefundUpdateRequest) SetIsReturnGoods(value string)

是否退货,只有子采购单发货后,才能申请退货

func (*FenxiaoRefundUpdateRequest) SetRefundDesc

func (r *FenxiaoRefundUpdateRequest) SetRefundDesc(value string)

退款说明

func (*FenxiaoRefundUpdateRequest) SetRefundReasonId

func (r *FenxiaoRefundUpdateRequest) SetRefundReasonId(value string)
发货前:

1、缺货,2、拍错商品,3、商品缺少所需样式,4、协商一致退款,5、未及时发货,0、其它 发货后: 经销: 1、商品质量问题,2、收到的商品不符,3、协商一致退款,4、一直未收到货,5、退还多付邮费,6、折扣、赠品、发票等问题,0、其它 代销: 1、商品质量问题,2、收到的商品不符,3、协商一致退款,4、买家一直未收到货,5、退还多付邮费,6、折扣、赠品、发票等问题,0、其它

func (*FenxiaoRefundUpdateRequest) SetReturnFee

func (r *FenxiaoRefundUpdateRequest) SetReturnFee(value string)

需要退款的金额

func (*FenxiaoRefundUpdateRequest) SetSubOrderId

func (r *FenxiaoRefundUpdateRequest) SetSubOrderId(value string)

需要修改退款的子采购单id

type FenxiaoRefundUpdateResponse

type FenxiaoRefundUpdateResponse struct {
	IsSuccess bool `json:"is_success"`
}

type FenxiaoRefundUpdateResponseResult

type FenxiaoRefundUpdateResponseResult struct {
	Response *FenxiaoRefundUpdateResponse `json:"fenxiao_refund_update_response"`
}

type FenxiaoRequisitionsGetRequest

type FenxiaoRequisitionsGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

合作申请查询

func (*FenxiaoRequisitionsGetRequest) GetResponse

func (*FenxiaoRequisitionsGetRequest) SetApplyEnd

func (r *FenxiaoRequisitionsGetRequest) SetApplyEnd(value string)

申请结束时间yyyy-MM-dd

func (*FenxiaoRequisitionsGetRequest) SetApplyStart

func (r *FenxiaoRequisitionsGetRequest) SetApplyStart(value string)

申请开始时间yyyy-MM-dd

func (*FenxiaoRequisitionsGetRequest) SetPageNo

func (r *FenxiaoRequisitionsGetRequest) SetPageNo(value string)

页码(大于0的整数,默认1)

func (*FenxiaoRequisitionsGetRequest) SetPageSize

func (r *FenxiaoRequisitionsGetRequest) SetPageSize(value string)

每页记录数(默认20,最大50)

func (*FenxiaoRequisitionsGetRequest) SetStatus

func (r *FenxiaoRequisitionsGetRequest) SetStatus(value string)

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

type FenxiaoRequisitionsGetResponse

type FenxiaoRequisitionsGetResponse struct {
	IsSuccess    bool           `json:"is_success"`
	Requisitions []*Requisition `json:"requisitions"`
	TotalResults int            `json:"total_results"`
}

type FenxiaoRequisitionsGetResponseResult

type FenxiaoRequisitionsGetResponseResult struct {
	Response *FenxiaoRequisitionsGetResponse `json:"fenxiao_requisitions_get_response"`
}

type FenxiaoSku

type FenxiaoSku struct {
	CostPrice       string `json:"cost_price"`
	DealerCostPrice string `json:"dealer_cost_price"`
	Id              int    `json:"id"`
	Name            string `json:"name"`
	OuterId         string `json:"outer_id"`
	Properties      string `json:"properties"`
	Quantity        int    `json:"quantity"`
	ScitemId        int    `json:"scitem_id"`
	StandardPrice   string `json:"standard_price"`
}

分销产品SKU

type FenxiaoTrademonitorGetRequest

type FenxiaoTrademonitorGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

仅限供应商调用此接口查询经销商品监控信息

func (*FenxiaoTrademonitorGetRequest) GetResponse

func (*FenxiaoTrademonitorGetRequest) SetDistributorNick

func (r *FenxiaoTrademonitorGetRequest) SetDistributorNick(value string)

经销商的淘宝账号

func (*FenxiaoTrademonitorGetRequest) SetEndCreated

func (r *FenxiaoTrademonitorGetRequest) SetEndCreated(value string)

结束时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。

func (*FenxiaoTrademonitorGetRequest) SetFields

func (r *FenxiaoTrademonitorGetRequest) SetFields(value string)

多个字段用","分隔。 fields 如果为空:返回所有采购单对象(purchase_orders)字段。 如果不为空:返回指定采购单对象(purchase_orders)字段。例如:trade_monitors.item_title表示只返回item_title

func (*FenxiaoTrademonitorGetRequest) SetPageNo

func (r *FenxiaoTrademonitorGetRequest) SetPageNo(value string)

页码。(大于0的整数。小于1按1计)

func (*FenxiaoTrademonitorGetRequest) SetPageSize

func (r *FenxiaoTrademonitorGetRequest) SetPageSize(value string)

每页条数。(每页条数不超过50条,超过50或小于0均按50计)

func (*FenxiaoTrademonitorGetRequest) SetProductId

func (r *FenxiaoTrademonitorGetRequest) SetProductId(value string)

产品id

func (*FenxiaoTrademonitorGetRequest) SetStartCreated

func (r *FenxiaoTrademonitorGetRequest) SetStartCreated(value string)

起始时间 格式 yyyy-MM-dd HH:mm:ss.支持到秒的查询。若不传时分秒,默认为0时0分0秒。

type FenxiaoTrademonitorGetResponse

type FenxiaoTrademonitorGetResponse struct {
	TotalResults  int             `json:"total_results"`
	TradeMonitors []*TradeMonitor `json:"trade_monitors"`
}

type FenxiaoTrademonitorGetResponseResult

type FenxiaoTrademonitorGetResponseResult struct {
	Response *FenxiaoTrademonitorGetResponse `json:"fenxiao_trademonitor_get_response"`
}

type GradeDiscount

type GradeDiscount struct {
	DiscountId   int     `json:"discount_id"`
	DiscountType int     `json:"discount_type"`
	Price        float64 `json:"price"`
	SkuId        int     `json:"sku_id"`
	TradeType    int     `json:"trade_type"`
}

等级折扣数据结构

type InventoryAdjustExternalRequest

type InventoryAdjustExternalRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家非交易调整库存,调拨出库、盘点等时调用

func (*InventoryAdjustExternalRequest) GetResponse

func (*InventoryAdjustExternalRequest) SetBizType

func (r *InventoryAdjustExternalRequest) SetBizType(value string)

外部订单类型:ALLOCATE:调拨、 RETURN:退货、PURCHACE:采购、BALANCE:盘点、NON_TAOBAO_TRADE:非淘宝交易、OTHERS:其他

func (*InventoryAdjustExternalRequest) SetBizUniqueCode

func (r *InventoryAdjustExternalRequest) SetBizUniqueCode(value string)

商家外部定单号

func (*InventoryAdjustExternalRequest) SetItems

func (r *InventoryAdjustExternalRequest) SetItems(value string)

商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,”direction”: 1: 盘盈 -1: 盘亏,参数可选,"quantity":"数量"}]

func (*InventoryAdjustExternalRequest) SetOccupyOperateCode

func (r *InventoryAdjustExternalRequest) SetOccupyOperateCode(value string)

库存占用返回的操作码.operate_type 为OUTBOUND时,如果是确认事先进行过的库存占用,需要传入当时返回的操作码,并且明细必须与申请时保持一致

func (*InventoryAdjustExternalRequest) SetOperateTime

func (r *InventoryAdjustExternalRequest) SetOperateTime(value string)

业务操作时间

func (*InventoryAdjustExternalRequest) SetOperateType

func (r *InventoryAdjustExternalRequest) SetOperateType(value string)

库存操作类别:INBOUND:入库 OUTBOUND: 出库BALANCE: 盘点

func (*InventoryAdjustExternalRequest) SetReduceType

func (r *InventoryAdjustExternalRequest) SetReduceType(value string)
出库时库存扣减类型,operate_type为OUTBOUND时有效。

AUTO_CALCULATE:自动计算可供扣减,如果库存不够返回失败 ClIENT_FORCE:强制要求最大化扣减,有多少扣多少

func (*InventoryAdjustExternalRequest) SetStoreCode

func (r *InventoryAdjustExternalRequest) SetStoreCode(value string)

商家仓库编码

type InventoryAdjustExternalResponse

type InventoryAdjustExternalResponse struct {
	OperateCode string     `json:"operate_code"`
	TipInfos    []*TipInfo `json:"tip_infos"`
}

type InventoryAdjustExternalResponseResult

type InventoryAdjustExternalResponseResult struct {
	Response *InventoryAdjustExternalResponse `json:"inventory_adjust_external_response"`
}

type InventoryAdjustTradeRequest

type InventoryAdjustTradeRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家交易调整库存,淘宝交易、B2B经销等

func (*InventoryAdjustTradeRequest) GetResponse

func (r *InventoryAdjustTradeRequest) GetResponse(accessToken string) (*InventoryAdjustTradeResponse, []byte, error)

func (*InventoryAdjustTradeRequest) SetBizUniqueCode

func (r *InventoryAdjustTradeRequest) SetBizUniqueCode(value string)

商家外部定单号

func (*InventoryAdjustTradeRequest) SetItems

func (r *InventoryAdjustTradeRequest) SetItems(value string)

商品初始库存信息: [{ "TBOrderCode”:”淘宝交易号”,"TBSubOrderCode ":"淘宝子交易单号,赠品可以不填","”isGift”:”TRUE或者FALSE,是否赠品”,storeCode":"商家仓库编码"," scItemId ":"商品后端ID","scItemCode":"商品商家编码"," originScItemId ":"原商品ID","inventoryType":"","quantity":"111","isComplete":"TRUE或者FALSE,是否全部确认出库"}]

func (*InventoryAdjustTradeRequest) SetOperateTime

func (r *InventoryAdjustTradeRequest) SetOperateTime(value string)

业务操作时间

func (*InventoryAdjustTradeRequest) SetTbOrderType

func (r *InventoryAdjustTradeRequest) SetTbOrderType(value string)

订单类型:B2C、B2B

type InventoryAdjustTradeResponse

type InventoryAdjustTradeResponse struct {
	OperateCode string     `json:"operate_code"`
	TipInfos    []*TipInfo `json:"tip_infos"`
}

type InventoryAdjustTradeResponseResult

type InventoryAdjustTradeResponseResult struct {
	Response *InventoryAdjustTradeResponse `json:"inventory_adjust_trade_response"`
}

type InventoryAuthorizeGetRequest

type InventoryAuthorizeGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据授权结果码获取授权状况

func (*InventoryAuthorizeGetRequest) GetResponse

func (r *InventoryAuthorizeGetRequest) GetResponse(accessToken string) (*InventoryAuthorizeGetResponse, []byte, error)

func (*InventoryAuthorizeGetRequest) SetAuthorizeCode

func (r *InventoryAuthorizeGetRequest) SetAuthorizeCode(value string)

库存分配授权结果码

func (*InventoryAuthorizeGetRequest) SetScItemId

func (r *InventoryAuthorizeGetRequest) SetScItemId(value string)

sc_item_id商品后端id

func (*InventoryAuthorizeGetRequest) SetUserNickList

func (r *InventoryAuthorizeGetRequest) SetUserNickList(value string)

分配用户列表,多个用户使用“,“分割开

type InventoryAuthorizeGetResponse

type InventoryAuthorizeGetResponse struct {
	AuthorizeList []*InventoryAuthorizeInfo `json:"authorize_list"`
}

type InventoryAuthorizeGetResponseResult

type InventoryAuthorizeGetResponseResult struct {
	Response *InventoryAuthorizeGetResponse `json:"inventory_authorize_get_response"`
}

type InventoryAuthorizeGetallRequest

type InventoryAuthorizeGetallRequest struct {
	open_taobao.TaobaoMethodRequest
}

货主根据多个商品列表获取每个商品的授权明细

func (*InventoryAuthorizeGetallRequest) GetResponse

func (*InventoryAuthorizeGetallRequest) SetScItemIdList

func (r *InventoryAuthorizeGetallRequest) SetScItemIdList(value string)

商品编码列表,使用”,”分割多个号码,最大50个

func (*InventoryAuthorizeGetallRequest) SetStoreCodeList

func (r *InventoryAuthorizeGetallRequest) SetStoreCodeList(value string)

指定的商家仓库编码,使用”,”分割多个仓库

type InventoryAuthorizeGetallResponse

type InventoryAuthorizeGetallResponse struct {
	AuthorizeList []*InventoryAuthorizeInfo `json:"authorize_list"`
}

type InventoryAuthorizeGetallResponseResult

type InventoryAuthorizeGetallResponseResult struct {
	Response *InventoryAuthorizeGetallResponse `json:"inventory_authorize_getall_response"`
}

type InventoryAuthorizeInfo

type InventoryAuthorizeInfo struct {
	AuthorizeCode   string `json:"authorize_code"`
	ChannelFlag     int    `json:"channel_flag"`
	Index           int    `json:"index"`
	InventoryType   int    `json:"inventory_type"`
	NickName        string `json:"nick_name"`
	NickNameList    string `json:"nick_name_list"`
	OccupyQuantity  int    `json:"occupy_quantity"`
	Quantity        int    `json:"quantity"`
	QuotaQuantity   int    `json:"quota_quantity"`
	ReserveQuantity int    `json:"reserve_quantity"`
	ScItemCode      string `json:"sc_item_code"`
	ScItemId        int    `json:"sc_item_id"`
	StoreCode       string `json:"store_code"`
}

授权信息数据结构

type InventoryAuthorizeRemoveRequest

type InventoryAuthorizeRemoveRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据库存授权结果码移除该授权下的用户库存授权

func (*InventoryAuthorizeRemoveRequest) GetResponse

func (*InventoryAuthorizeRemoveRequest) SetAuthorizeCode

func (r *InventoryAuthorizeRemoveRequest) SetAuthorizeCode(value string)

库存授权结果码

func (*InventoryAuthorizeRemoveRequest) SetScItemId

func (r *InventoryAuthorizeRemoveRequest) SetScItemId(value string)

后端商品id

func (*InventoryAuthorizeRemoveRequest) SetUserNickList

func (r *InventoryAuthorizeRemoveRequest) SetUserNickList(value string)

移除授权的目标用户昵称列表,用”,”隔开

type InventoryAuthorizeRemoveResponse

type InventoryAuthorizeRemoveResponse struct {
	TipInfos []*TipInfo `json:"tip_infos"`
}

type InventoryAuthorizeRemoveResponseResult

type InventoryAuthorizeRemoveResponseResult struct {
	Response *InventoryAuthorizeRemoveResponse `json:"inventory_authorize_remove_response"`
}

type InventoryAuthorizeRemoveallRequest

type InventoryAuthorizeRemoveallRequest struct {
	open_taobao.TaobaoMethodRequest
}

移除该授权下的用户库存授权

func (*InventoryAuthorizeRemoveallRequest) GetResponse

func (*InventoryAuthorizeRemoveallRequest) SetScItemId

func (r *InventoryAuthorizeRemoveallRequest) SetScItemId(value string)

后端商品id

func (*InventoryAuthorizeRemoveallRequest) SetUserNickList

func (r *InventoryAuthorizeRemoveallRequest) SetUserNickList(value string)

移除授权的目标用户昵称列表,用”,”隔开

type InventoryAuthorizeRemoveallResponse

type InventoryAuthorizeRemoveallResponse struct {
	TipInfos []*TipInfo `json:"tip_infos"`
}

type InventoryAuthorizeRemoveallResponseResult

type InventoryAuthorizeRemoveallResponseResult struct {
	Response *InventoryAuthorizeRemoveallResponse `json:"inventory_authorize_removeall_response"`
}

type InventoryAuthorizeSetRequest

type InventoryAuthorizeSetRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家向其他用户设置配额库存的共享或者独享,支持到渠道,商家自定义库存类别

func (*InventoryAuthorizeSetRequest) GetResponse

func (r *InventoryAuthorizeSetRequest) GetResponse(accessToken string) (*InventoryAuthorizeSetResponse, []byte, error)

func (*InventoryAuthorizeSetRequest) SetAuthorizeType

func (r *InventoryAuthorizeSetRequest) SetAuthorizeType(value string)
配额授权方式

PUBLIC: 全共享 PRIVATE:独享

func (*InventoryAuthorizeSetRequest) SetItems

func (r *InventoryAuthorizeSetRequest) SetItems(value string)
授权明细

[{“index”:0,“scItemId”:232323,”scItemCode”:”A232”,”storeCode”:”Kj11”,”inventoryType”:1,”channelFlag”:0,”quotaQuantity”:1000,”nickNameList”:”s108,TY000”,“nickName":"ca11"}] 每次请求的列表数据量是1条,如果authorize_type是PUBLIC,使用nickNameList,否则请用nickName

type InventoryAuthorizeSetResponse

type InventoryAuthorizeSetResponse struct {
	AuthorizeResults []*InventoryAuthorizeInfo `json:"authorize_results"`
	TipInfos         []*TipInfo                `json:"tip_infos"`
}

type InventoryAuthorizeSetResponseResult

type InventoryAuthorizeSetResponseResult struct {
	Response *InventoryAuthorizeSetResponse `json:"inventory_authorize_set_response"`
}

type InventoryInitialItemRequest

type InventoryInitialItemRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家仓商品初始化在各个仓中库存

func (*InventoryInitialItemRequest) GetResponse

func (r *InventoryInitialItemRequest) GetResponse(accessToken string) (*InventoryInitialItemResponse, []byte, error)

func (*InventoryInitialItemRequest) SetScItemId

func (r *InventoryInitialItemRequest) SetScItemId(value string)

后端商品id

func (*InventoryInitialItemRequest) SetStoreInventorys

func (r *InventoryInitialItemRequest) SetStoreInventorys(value string)

商品初始库存信息: [{"storeCode":"必选,商家仓库编号","inventoryType":"可选,库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义,默认为1","quantity":"必选,数量"}]

type InventoryInitialItemResponse

type InventoryInitialItemResponse struct {
	TipInfos []*TipInfo `json:"tip_infos"`
}

type InventoryInitialItemResponseResult

type InventoryInitialItemResponseResult struct {
	Response *InventoryInitialItemResponse `json:"inventory_initial_item_response"`
}

type InventoryInitialRequest

type InventoryInitialRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家仓库存初始化接口,直接按照商家指定的商品库存数进行填充,没有单据核对,不参与库存对账

func (*InventoryInitialRequest) GetResponse

func (r *InventoryInitialRequest) GetResponse(accessToken string) (*InventoryInitialResponse, []byte, error)

func (*InventoryInitialRequest) SetItems

func (r *InventoryInitialRequest) SetItems(value string)

商品初始库存信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,2:损坏,3:冻结,10:质押,11-20:用户自定义","quantity":"数量"}]

func (*InventoryInitialRequest) SetStoreCode

func (r *InventoryInitialRequest) SetStoreCode(value string)

商家仓库编码

type InventoryInitialResponse

type InventoryInitialResponse struct {
	TipInfos []*TipInfo `json:"tip_infos"`
}

type InventoryInitialResponseResult

type InventoryInitialResponseResult struct {
	Response *InventoryInitialResponse `json:"inventory_initial_response"`
}

type InventoryIpcInventorydetailGetRequest

type InventoryIpcInventorydetailGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询库存明细

func (*InventoryIpcInventorydetailGetRequest) GetResponse

func (*InventoryIpcInventorydetailGetRequest) SetBizOrderId

func (r *InventoryIpcInventorydetailGetRequest) SetBizOrderId(value string)

主订单号,可选

func (*InventoryIpcInventorydetailGetRequest) SetBizSubOrderId

func (r *InventoryIpcInventorydetailGetRequest) SetBizSubOrderId(value string)

子订单号,可选

func (*InventoryIpcInventorydetailGetRequest) SetPageIndex

func (r *InventoryIpcInventorydetailGetRequest) SetPageIndex(value string)

当前页数

func (*InventoryIpcInventorydetailGetRequest) SetPageSize

func (r *InventoryIpcInventorydetailGetRequest) SetPageSize(value string)

一页显示多少条

func (*InventoryIpcInventorydetailGetRequest) SetScItemId

func (r *InventoryIpcInventorydetailGetRequest) SetScItemId(value string)

仓储商品id

func (*InventoryIpcInventorydetailGetRequest) SetStatusQuery

func (r *InventoryIpcInventorydetailGetRequest) SetStatusQuery(value string)

1:查询预扣 4:查询占用

type InventoryIpcInventorydetailGetResponse

type InventoryIpcInventorydetailGetResponse struct {
	InventoryDetails []*IpcInventoryDetailDo `json:"inventory_details"`
}

type InventoryIpcInventorydetailGetResponseResult

type InventoryIpcInventorydetailGetResponseResult struct {
	Response *InventoryIpcInventorydetailGetResponse `json:"inventory_ipc_inventorydetail_get_response"`
}

type InventoryOccupyApplyRequest

type InventoryOccupyApplyRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家申请预留库存

func (*InventoryOccupyApplyRequest) GetResponse

func (r *InventoryOccupyApplyRequest) GetResponse(accessToken string) (*InventoryOccupyApplyResponse, []byte, error)

func (*InventoryOccupyApplyRequest) SetBizType

func (r *InventoryOccupyApplyRequest) SetBizType(value string)

外部订单类型, BALANCE:盘点、NON_TAOBAO_TRADE:非淘宝交易、ALLOCATE:调拨、OTHERS:其他

func (*InventoryOccupyApplyRequest) SetBizUniqueCode

func (r *InventoryOccupyApplyRequest) SetBizUniqueCode(value string)

商家外部定单号

func (*InventoryOccupyApplyRequest) SetChannelFlags

func (r *InventoryOccupyApplyRequest) SetChannelFlags(value string)

渠道编号

func (*InventoryOccupyApplyRequest) SetItems

func (r *InventoryOccupyApplyRequest) SetItems(value string)

商品库存预留信息: [{"scItemId":"商品后端ID,如果有传scItemCode,参数可以为0","scItemCode":"商品商家编码","inventoryType":"库存类型 1:正常,2:损坏,3:冻结,10:质押",11-20:商家自定义,”inventoryTypeName”:”库存类型名称,可选”,"occupyQuantity":"数量"}]

func (*InventoryOccupyApplyRequest) SetOccupyTime

func (r *InventoryOccupyApplyRequest) SetOccupyTime(value string)

天数,默认5天,最大15天

func (*InventoryOccupyApplyRequest) SetOccupyType

func (r *InventoryOccupyApplyRequest) SetOccupyType(value string)
占用类型

参数定义 AUTO_CALCULATE:自动计算可供占用,如果库存不够返回失败 ClIENT_FORCE:强制要求最大化占用,有多少占用多少

func (*InventoryOccupyApplyRequest) SetStoreCode

func (r *InventoryOccupyApplyRequest) SetStoreCode(value string)

商家仓库编码

type InventoryOccupyApplyResponse

type InventoryOccupyApplyResponse struct {
	OperateCode string     `json:"operate_code"`
	TipInfos    []*TipInfo `json:"tip_infos"`
}

type InventoryOccupyApplyResponseResult

type InventoryOccupyApplyResponseResult struct {
	Response *InventoryOccupyApplyResponse `json:"inventory_occupy_apply_response"`
}

type InventoryOccupyCancelRequest

type InventoryOccupyCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家取消预留库存

func (*InventoryOccupyCancelRequest) GetResponse

func (r *InventoryOccupyCancelRequest) GetResponse(accessToken string) (*InventoryOccupyCancelResponse, []byte, error)

func (*InventoryOccupyCancelRequest) SetBizUniqueCode

func (r *InventoryOccupyCancelRequest) SetBizUniqueCode(value string)

商家外部定单号

func (*InventoryOccupyCancelRequest) SetOperateCode

func (r *InventoryOccupyCancelRequest) SetOperateCode(value string)

申请预留时的操作返回码

func (*InventoryOccupyCancelRequest) SetStoreCode

func (r *InventoryOccupyCancelRequest) SetStoreCode(value string)

商家仓库编码

type InventoryOccupyCancelResponse

type InventoryOccupyCancelResponse struct {
	IsSuccess bool `json:"is_success"`
}

type InventoryOccupyCancelResponseResult

type InventoryOccupyCancelResponseResult struct {
	Response *InventoryOccupyCancelResponse `json:"inventory_occupy_cancel_response"`
}

type InventoryQueryRequest

type InventoryQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

商家查询商品总体库存信息

func (*InventoryQueryRequest) GetResponse

func (r *InventoryQueryRequest) GetResponse(accessToken string) (*InventoryQueryResponse, []byte, error)

func (*InventoryQueryRequest) SetScItemCodes

func (r *InventoryQueryRequest) SetScItemCodes(value string)

后端商品的商家编码列表,控制到50个

func (*InventoryQueryRequest) SetScItemIds

func (r *InventoryQueryRequest) SetScItemIds(value string)

后端商品ID 列表,控制到50个

func (*InventoryQueryRequest) SetSellerNick

func (r *InventoryQueryRequest) SetSellerNick(value string)

卖家昵称

func (*InventoryQueryRequest) SetStoreCodes

func (r *InventoryQueryRequest) SetStoreCodes(value string)

仓库列表:GLY001^GLY002

type InventoryQueryResponse

type InventoryQueryResponse struct {
	ItemInventorys []*InventorySum `json:"item_inventorys"`
	TipInfos       []*TipInfo      `json:"tip_infos"`
}

type InventoryQueryResponseResult

type InventoryQueryResponseResult struct {
	Response *InventoryQueryResponse `json:"inventory_query_response"`
}

type InventoryStoreManageRequest

type InventoryStoreManageRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建商家仓或者更新商家仓信息

func (*InventoryStoreManageRequest) GetResponse

func (r *InventoryStoreManageRequest) GetResponse(accessToken string) (*InventoryStoreManageResponse, []byte, error)

func (*InventoryStoreManageRequest) SetAddress

func (r *InventoryStoreManageRequest) SetAddress(value string)

仓库的物理地址,可更新

func (*InventoryStoreManageRequest) SetAddressAreaName

func (r *InventoryStoreManageRequest) SetAddressAreaName(value string)

仓库区域名,可更新

func (*InventoryStoreManageRequest) SetAliasName

func (r *InventoryStoreManageRequest) SetAliasName(value string)

仓库简称,可更新

func (*InventoryStoreManageRequest) SetContact

func (r *InventoryStoreManageRequest) SetContact(value string)

联系人,可更新

func (*InventoryStoreManageRequest) SetOperateType

func (r *InventoryStoreManageRequest) SetOperateType(value string)

参数定义,ADD:新建; UPDATE:更新

func (*InventoryStoreManageRequest) SetPhone

func (r *InventoryStoreManageRequest) SetPhone(value string)

联系电话,可更新

func (*InventoryStoreManageRequest) SetPostcode

func (r *InventoryStoreManageRequest) SetPostcode(value string)

邮编,可更新

func (*InventoryStoreManageRequest) SetStoreCode

func (r *InventoryStoreManageRequest) SetStoreCode(value string)

商家的仓库编码,不允许重复,不允许更新

func (*InventoryStoreManageRequest) SetStoreName

func (r *InventoryStoreManageRequest) SetStoreName(value string)

商家的仓库名称,可更新

func (*InventoryStoreManageRequest) SetStoreType

func (r *InventoryStoreManageRequest) SetStoreType(value string)

仓库类型,可更新。目前只支持自有仓,TYPE_OWN:自有物理仓

type InventoryStoreManageResponse

type InventoryStoreManageResponse struct {
	StoreList []*Store `json:"store_list"`
}

type InventoryStoreManageResponseResult

type InventoryStoreManageResponseResult struct {
	Response *InventoryStoreManageResponse `json:"inventory_store_manage_response"`
}

type InventoryStoreQueryRequest

type InventoryStoreQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询商家仓信息

func (*InventoryStoreQueryRequest) GetResponse

func (r *InventoryStoreQueryRequest) GetResponse(accessToken string) (*InventoryStoreQueryResponse, []byte, error)

func (*InventoryStoreQueryRequest) SetStoreCode

func (r *InventoryStoreQueryRequest) SetStoreCode(value string)

商家的仓库编码

type InventoryStoreQueryResponse

type InventoryStoreQueryResponse struct {
	StoreList []*Store `json:"store_list"`
}

type InventoryStoreQueryResponseResult

type InventoryStoreQueryResponseResult struct {
	Response *InventoryStoreQueryResponse `json:"inventory_store_query_response"`
}

type InventorySum

type InventorySum struct {
	InventoryType     int    `json:"inventory_type"`
	InventoryTypeName string `json:"inventory_type_name"`
	OccupyQuantity    int    `json:"occupy_quantity"`
	Quantity          int    `json:"quantity"`
	ReserveQuantity   int    `json:"reserve_quantity"`
	ScItemCode        string `json:"sc_item_code"`
	ScItemId          int    `json:"sc_item_id"`
	StoreCode         string `json:"store_code"`
}

商品库存对象

type IpcInventoryDetailDo

type IpcInventoryDetailDo struct {
	BizOrderId      int    `json:"biz_order_id"`
	BizSubOrderId   int    `json:"biz_sub_order_id"`
	Flag            int    `json:"flag"`
	OccupyQuantity  int    `json:"occupy_quantity"`
	OwnerNick       string `json:"owner_nick"`
	ReserveQuantity int    `json:"reserve_quantity"`
	ScItemId        int    `json:"sc_item_id"`
	StoreCode       string `json:"store_code"`
}

库存明细

type LoginUser

type LoginUser struct {
	CreateTime string `json:"create_time"`
	Nick       string `json:"nick"`
	UserId     int    `json:"user_id"`
	UserType   string `json:"user_type"`
}

登录分销用户信息

type OrderMessage

type OrderMessage struct {
	MessageContent string `json:"message_content"`
	MessageTime    string `json:"message_time"`
	MessageTitle   string `json:"message_title"`
	PicUrl         string `json:"pic_url"`
}

采购单留言列表

type ProductCat

type ProductCat struct {
	CostPercentAgent  string `json:"cost_percent_agent"`
	CostPercentDealer string `json:"cost_percent_dealer"`
	Id                int    `json:"id"`
	Name              string `json:"name"`
	ProductNum        int    `json:"product_num"`
	RetailHighPercent string `json:"retail_high_percent"`
	RetailLowPercent  string `json:"retail_low_percent"`
}

产品线

type PurchaseOrder

type PurchaseOrder struct {
	AlipayNo             string              `json:"alipay_no"`
	BuyerNick            string              `json:"buyer_nick"`
	BuyerPayment         float64             `json:"buyer_payment"`
	ConsignTime          string              `json:"consign_time"`
	Created              string              `json:"created"`
	DistributorFrom      string              `json:"distributor_from"`
	DistributorPayment   float64             `json:"distributor_payment"`
	DistributorUsername  string              `json:"distributor_username"`
	EndTime              string              `json:"end_time"`
	FenxiaoId            int                 `json:"fenxiao_id"`
	Id                   int                 `json:"id"`
	IsvCustomKey         []string            `json:"isv_custom_key"`
	IsvCustomValue       []string            `json:"isv_custom_value"`
	LogisticsCompanyName string              `json:"logistics_company_name"`
	LogisticsId          string              `json:"logistics_id"`
	Memo                 string              `json:"memo"`
	Modified             string              `json:"modified"`
	OrderMessages        []*OrderMessage     `json:"order_messages"`
	PayTime              string              `json:"pay_time"`
	PayType              string              `json:"pay_type"`
	PostFee              float64             `json:"post_fee"`
	Receiver             *Receiver           `json:"receiver"`
	Shipping             string              `json:"shipping"`
	SnapshotUrl          string              `json:"snapshot_url"`
	Status               string              `json:"status"`
	SubPurchaseOrders    []*SubPurchaseOrder `json:"sub_purchase_orders"`
	SupplierFlag         int                 `json:"supplier_flag"`
	SupplierFrom         string              `json:"supplier_from"`
	SupplierMemo         string              `json:"supplier_memo"`
	SupplierUsername     string              `json:"supplier_username"`
	TcOrderId            int                 `json:"tc_order_id"`
	TotalFee             float64             `json:"total_fee"`
	TradeType            string              `json:"trade_type"`
}

采购单及子采购单信息

type QueryPagination

type QueryPagination struct {
	PageIndex int `json:"page_index"`
	PageSize  int `json:"page_size"`
}

查询分页结构

type Receiver

type Receiver struct {
	Address     string `json:"address"`
	CardId      string `json:"card_id"`
	City        string `json:"city"`
	District    string `json:"district"`
	MobilePhone string `json:"mobile_phone"`
	Name        string `json:"name"`
	Phone       string `json:"phone"`
	State       string `json:"state"`
	Zip         string `json:"zip"`
}

收货人详细信息

type RefundDetail

type RefundDetail struct {
	BuyerRefund      *BuyerRefund `json:"buyer_refund"`
	DistributorNick  string       `json:"distributor_nick"`
	IsReturnGoods    bool         `json:"is_return_goods"`
	Modified         string       `json:"modified"`
	PaySupFee        float64      `json:"pay_sup_fee"`
	RefundCreateTime string       `json:"refund_create_time"`
	RefundDesc       string       `json:"refund_desc"`
	RefundFee        float64      `json:"refund_fee"`
	RefundReason     string       `json:"refund_reason"`
	RefundStatus     int          `json:"refund_status"`
	SubOrderId       int          `json:"sub_order_id"`
	SupplierNick     string       `json:"supplier_nick"`
}

采购单子单退款详情

type Requisition

type Requisition struct {
	DistAppraise     int    `json:"dist_appraise"`
	DistCategory     int    `json:"dist_category"`
	DistCategoryName string `json:"dist_category_name"`
	DistIsXiaobao    int    `json:"dist_is_xiaobao"`
	DistLevel        int    `json:"dist_level"`
	DistMessage      string `json:"dist_message"`
	DistOpenDate     string `json:"dist_open_date"`
	DistShopAddress  string `json:"dist_shop_address"`
	DistributorId    int    `json:"distributor_id"`
	DistributorNick  string `json:"distributor_nick"`
	GmtCreate        string `json:"gmt_create"`
	RequisitionId    int    `json:"requisition_id"`
	Status           int    `json:"status"`
}

合作申请

type ScItem

type ScItem struct {
	BarCode      string `json:"bar_code"`
	BrandId      int    `json:"brand_id"`
	BrandName    string `json:"brand_name"`
	Height       int    `json:"height"`
	IsAreaSale   int    `json:"is_area_sale"`
	IsCostly     bool   `json:"is_costly"`
	IsDangerous  bool   `json:"is_dangerous"`
	IsFriable    bool   `json:"is_friable"`
	IsWarranty   bool   `json:"is_warranty"`
	ItemId       int    `json:"item_id"`
	ItemName     string `json:"item_name"`
	ItemType     int    `json:"item_type"`
	Length       int    `json:"length"`
	MatterStatus string `json:"matter_status"`
	OuterCode    string `json:"outer_code"`
	Price        int    `json:"price"`
	Properties   string `json:"properties"`
	Remark       string `json:"remark"`
	Volume       int    `json:"volume"`
	Weight       int    `json:"weight"`
	Width        int    `json:"width"`
	WmsCode      string `json:"wms_code"`
}

后端商品

type ScItemMap

type ScItemMap struct {
	ItemId       int    `json:"item_id"`
	MapType      int    `json:"map_type"`
	RelItemId    int    `json:"rel_item_id"`
	RelOuterCode string `json:"rel_outer_code"`
	RelUserId    int    `json:"rel_user_id"`
	RelUserNick  string `json:"rel_user_nick"`
	SkuId        int    `json:"sku_id"`
	UserId       int    `json:"user_id"`
	UserNick     string `json:"user_nick"`
}

后端商品映射关系对象

type ScitemAddRequest

type ScitemAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

发布后端商品

func (*ScitemAddRequest) GetResponse

func (r *ScitemAddRequest) GetResponse(accessToken string) (*ScitemAddResponse, []byte, error)

func (*ScitemAddRequest) SetBarCode

func (r *ScitemAddRequest) SetBarCode(value string)

条形码

func (*ScitemAddRequest) SetBrandId

func (r *ScitemAddRequest) SetBrandId(value string)

品牌id

func (*ScitemAddRequest) SetBrandName

func (r *ScitemAddRequest) SetBrandName(value string)

brand_Name

func (*ScitemAddRequest) SetHeight

func (r *ScitemAddRequest) SetHeight(value string)

高 单位:mm

func (*ScitemAddRequest) SetIsAreaSale

func (r *ScitemAddRequest) SetIsAreaSale(value string)

1表示区域销售,0或是空是非区域销售

func (*ScitemAddRequest) SetIsCostly

func (r *ScitemAddRequest) SetIsCostly(value string)

是否是贵重品 0:不是 1:是

func (*ScitemAddRequest) SetIsDangerous

func (r *ScitemAddRequest) SetIsDangerous(value string)

是否危险 0:不是 1:是

func (*ScitemAddRequest) SetIsFriable

func (r *ScitemAddRequest) SetIsFriable(value string)

是否易碎 0:不是 1:是

func (*ScitemAddRequest) SetIsWarranty

func (r *ScitemAddRequest) SetIsWarranty(value string)

是否保质期:0:不是 1:是

func (*ScitemAddRequest) SetItemName

func (r *ScitemAddRequest) SetItemName(value string)

商品名称

func (*ScitemAddRequest) SetItemType

func (r *ScitemAddRequest) SetItemType(value string)

0.普通供应链商品 1.供应链组合主商品

func (*ScitemAddRequest) SetLength

func (r *ScitemAddRequest) SetLength(value string)

长度 单位:mm

func (*ScitemAddRequest) SetMatterStatus

func (r *ScitemAddRequest) SetMatterStatus(value string)

0:液体,1:粉体,2:固体

func (*ScitemAddRequest) SetOuterCode

func (r *ScitemAddRequest) SetOuterCode(value string)

商家编码

func (*ScitemAddRequest) SetPrice

func (r *ScitemAddRequest) SetPrice(value string)

价格 单位:分

func (*ScitemAddRequest) SetProperties

func (r *ScitemAddRequest) SetProperties(value string)

商品属性格式是 p1:v1,p2:v2,p3:v3

func (*ScitemAddRequest) SetRemark

func (r *ScitemAddRequest) SetRemark(value string)

remark

func (*ScitemAddRequest) SetSpuId

func (r *ScitemAddRequest) SetSpuId(value string)

spuId或是cspuid

func (*ScitemAddRequest) SetVolume

func (r *ScitemAddRequest) SetVolume(value string)

体积:立方厘米

func (*ScitemAddRequest) SetWeight

func (r *ScitemAddRequest) SetWeight(value string)

重量 单位:g

func (*ScitemAddRequest) SetWidth

func (r *ScitemAddRequest) SetWidth(value string)

宽 单位:mm

func (*ScitemAddRequest) SetWmsCode

func (r *ScitemAddRequest) SetWmsCode(value string)

仓储商编码

type ScitemAddResponse

type ScitemAddResponse struct {
	ScItem *ScItem `json:"sc_item"`
}

type ScitemAddResponseResult

type ScitemAddResponseResult struct {
	Response *ScitemAddResponse `json:"scitem_add_response"`
}

type ScitemGetRequest

type ScitemGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据id查询商品

func (*ScitemGetRequest) GetResponse

func (r *ScitemGetRequest) GetResponse(accessToken string) (*ScitemGetResponse, []byte, error)

func (*ScitemGetRequest) SetItemId

func (r *ScitemGetRequest) SetItemId(value string)

商品id

type ScitemGetResponse

type ScitemGetResponse struct {
	ScItem *ScItem `json:"sc_item"`
}

type ScitemGetResponseResult

type ScitemGetResponseResult struct {
	Response *ScitemGetResponse `json:"scitem_get_response"`
}

type ScitemMapAddRequest

type ScitemMapAddRequest struct {
	open_taobao.TaobaoMethodRequest
}

创建IC商品或分销商品与后端商品的映射关系

func (*ScitemMapAddRequest) GetResponse

func (r *ScitemMapAddRequest) GetResponse(accessToken string) (*ScitemMapAddResponse, []byte, error)

func (*ScitemMapAddRequest) SetItemId

func (r *ScitemMapAddRequest) SetItemId(value string)

前台ic商品id

func (*ScitemMapAddRequest) SetNeedCheck

func (r *ScitemMapAddRequest) SetNeedCheck(value string)
默认值为false

true:进行高级校验,前端商品或SKU的商家编码必须与后端商品的商家编码一致,否则会拒绝关联 false:不进行高级校验

func (*ScitemMapAddRequest) SetOuterCode

func (r *ScitemMapAddRequest) SetOuterCode(value string)

sc_item_id和outer_code 其中一个不能为空

func (*ScitemMapAddRequest) SetScItemId

func (r *ScitemMapAddRequest) SetScItemId(value string)

sc_item_id和outer_code 其中一个不能为空

func (*ScitemMapAddRequest) SetSkuId

func (r *ScitemMapAddRequest) SetSkuId(value string)

前台ic商品skuid

type ScitemMapAddResponse

type ScitemMapAddResponse struct {
	OuterCode string `json:"outer_code"`
}

type ScitemMapAddResponseResult

type ScitemMapAddResponseResult struct {
	Response *ScitemMapAddResponse `json:"scitem_map_add_response"`
}

type ScitemMapBatchQueryRequest

type ScitemMapBatchQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量分页查询后端商品对应的前端商品

func (*ScitemMapBatchQueryRequest) GetResponse

func (r *ScitemMapBatchQueryRequest) GetResponse(accessToken string) (*ScitemMapBatchQueryResponse, []byte, error)

func (*ScitemMapBatchQueryRequest) SetOuterCode

func (r *ScitemMapBatchQueryRequest) SetOuterCode(value string)

后端商品的商家编码

func (*ScitemMapBatchQueryRequest) SetPageIndex

func (r *ScitemMapBatchQueryRequest) SetPageIndex(value string)

当前页码数

func (*ScitemMapBatchQueryRequest) SetPageSize

func (r *ScitemMapBatchQueryRequest) SetPageSize(value string)

分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录

func (*ScitemMapBatchQueryRequest) SetScItemId

func (r *ScitemMapBatchQueryRequest) SetScItemId(value string)

后端商品id

type ScitemMapBatchQueryResponse

type ScitemMapBatchQueryResponse struct {
	ScItemMaps []*ScItemMap `json:"sc_item_maps"`
}

type ScitemMapBatchQueryResponseResult

type ScitemMapBatchQueryResponseResult struct {
	Response *ScitemMapBatchQueryResponse `json:"scitem_map_batch_query_response"`
}

type ScitemMapDeleteRequest

type ScitemMapDeleteRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据后端商品Id,失效指定用户的商品与后端商品的映射关系

func (*ScitemMapDeleteRequest) GetResponse

func (r *ScitemMapDeleteRequest) GetResponse(accessToken string) (*ScitemMapDeleteResponse, []byte, error)

func (*ScitemMapDeleteRequest) SetScItemId

func (r *ScitemMapDeleteRequest) SetScItemId(value string)

后台商品ID

func (*ScitemMapDeleteRequest) SetUserNick

func (r *ScitemMapDeleteRequest) SetUserNick(value string)

店铺用户nick。 如果该参数为空则删除后端商品与当前调用人的商品映射关系;如果不为空则删除指定用户与后端商品的映射关系

type ScitemMapDeleteResponse

type ScitemMapDeleteResponse struct {
	Module int `json:"module"`
}

type ScitemMapDeleteResponseResult

type ScitemMapDeleteResponseResult struct {
	Response *ScitemMapDeleteResponse `json:"scitem_map_delete_response"`
}

type ScitemMapQueryRequest

type ScitemMapQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

查找IC商品或分销商品与后端商品的关联信息。skuId如果不传就查找该itemId下所有的sku

func (*ScitemMapQueryRequest) GetResponse

func (r *ScitemMapQueryRequest) GetResponse(accessToken string) (*ScitemMapQueryResponse, []byte, error)

func (*ScitemMapQueryRequest) SetItemId

func (r *ScitemMapQueryRequest) SetItemId(value string)
map_type为1:前台ic商品id

map_type为2:分销productid

func (*ScitemMapQueryRequest) SetSkuId

func (r *ScitemMapQueryRequest) SetSkuId(value string)
map_type为1:前台ic商品skuid

map_type为2:分销商品的skuid

type ScitemMapQueryResponse

type ScitemMapQueryResponse struct {
	ScItemMaps []*ScItemMap `json:"sc_item_maps"`
}

type ScitemMapQueryResponseResult

type ScitemMapQueryResponseResult struct {
	Response *ScitemMapQueryResponse `json:"scitem_map_query_response"`
}

type ScitemOutercodeGetRequest

type ScitemOutercodeGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据outerCode查询商品

func (*ScitemOutercodeGetRequest) GetResponse

func (r *ScitemOutercodeGetRequest) GetResponse(accessToken string) (*ScitemOutercodeGetResponse, []byte, error)

func (*ScitemOutercodeGetRequest) SetOuterCode

func (r *ScitemOutercodeGetRequest) SetOuterCode(value string)

商品编码

type ScitemOutercodeGetResponse

type ScitemOutercodeGetResponse struct {
	ScItem *ScItem `json:"sc_item"`
}

type ScitemOutercodeGetResponseResult

type ScitemOutercodeGetResponseResult struct {
	Response *ScitemOutercodeGetResponse `json:"scitem_outercode_get_response"`
}

type ScitemQueryRequest

type ScitemQueryRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询后端商品

func (*ScitemQueryRequest) GetResponse

func (r *ScitemQueryRequest) GetResponse(accessToken string) (*ScitemQueryResponse, []byte, error)

func (*ScitemQueryRequest) SetBarCode

func (r *ScitemQueryRequest) SetBarCode(value string)

条形码

func (*ScitemQueryRequest) SetItemName

func (r *ScitemQueryRequest) SetItemName(value string)

商品名称

func (*ScitemQueryRequest) SetItemType

func (r *ScitemQueryRequest) SetItemType(value string)

ITEM类型(只允许输入以下英文或空) NORMAL 0:普通商品; COMBINE 1:是否是组合商品 DISTRIBUTION

func (*ScitemQueryRequest) SetOuterCode

func (r *ScitemQueryRequest) SetOuterCode(value string)

商家给商品的一个编码

func (*ScitemQueryRequest) SetPageIndex

func (r *ScitemQueryRequest) SetPageIndex(value string)

当前页码数

func (*ScitemQueryRequest) SetPageSize

func (r *ScitemQueryRequest) SetPageSize(value string)

分页记录个数,如果用户输入的记录数大于50,则一页显示50条记录

func (*ScitemQueryRequest) SetWmsCode

func (r *ScitemQueryRequest) SetWmsCode(value string)

仓库编码

type ScitemQueryResponse

type ScitemQueryResponse struct {
	PageIndex       int              `json:"page_index"`
	PageSize        int              `json:"page_size"`
	QueryPagination *QueryPagination `json:"query_pagination"`
	ScItemList      []*ScItem        `json:"sc_item_list"`
	TotalPage       int              `json:"total_page"`
}

type ScitemQueryResponseResult

type ScitemQueryResponseResult struct {
	Response *ScitemQueryResponse `json:"scitem_query_response"`
}

type ScitemUpdateRequest

type ScitemUpdateRequest struct {
	open_taobao.TaobaoMethodRequest
}

根据商品ID或商家编码修改后端商品

func (*ScitemUpdateRequest) GetResponse

func (r *ScitemUpdateRequest) GetResponse(accessToken string) (*ScitemUpdateResponse, []byte, error)

func (*ScitemUpdateRequest) SetBarCode

func (r *ScitemUpdateRequest) SetBarCode(value string)

条形码

func (*ScitemUpdateRequest) SetBrandId

func (r *ScitemUpdateRequest) SetBrandId(value string)

品牌id

func (*ScitemUpdateRequest) SetBrandName

func (r *ScitemUpdateRequest) SetBrandName(value string)

brand_Name

func (*ScitemUpdateRequest) SetHeight

func (r *ScitemUpdateRequest) SetHeight(value string)

高 单位:mm

func (*ScitemUpdateRequest) SetIsAreaSale

func (r *ScitemUpdateRequest) SetIsAreaSale(value string)

1表示区域销售,0或是空是非区域销售

func (*ScitemUpdateRequest) SetIsCostly

func (r *ScitemUpdateRequest) SetIsCostly(value string)

是否是贵重品 0:不是 1:是

func (*ScitemUpdateRequest) SetIsDangerous

func (r *ScitemUpdateRequest) SetIsDangerous(value string)

是否危险 0:不是 0:是

func (*ScitemUpdateRequest) SetIsFriable

func (r *ScitemUpdateRequest) SetIsFriable(value string)

是否易碎 0:不是 1:是

func (*ScitemUpdateRequest) SetIsWarranty

func (r *ScitemUpdateRequest) SetIsWarranty(value string)

是否保质期:0:不是 1:是

func (*ScitemUpdateRequest) SetItemId

func (r *ScitemUpdateRequest) SetItemId(value string)

后端商品ID,跟outer_code必须指定一个

func (*ScitemUpdateRequest) SetItemName

func (r *ScitemUpdateRequest) SetItemName(value string)

商品名称

func (*ScitemUpdateRequest) SetItemType

func (r *ScitemUpdateRequest) SetItemType(value string)

0.普通供应链商品 1.供应链组合主商品

func (*ScitemUpdateRequest) SetLength

func (r *ScitemUpdateRequest) SetLength(value string)

长度 单位:mm

func (*ScitemUpdateRequest) SetMatterStatus

func (r *ScitemUpdateRequest) SetMatterStatus(value string)

0:液体,1:粉体,2:固体

func (*ScitemUpdateRequest) SetOuterCode

func (r *ScitemUpdateRequest) SetOuterCode(value string)

商家编码,跟item_id必须指定一个

func (*ScitemUpdateRequest) SetPrice

func (r *ScitemUpdateRequest) SetPrice(value string)

price

func (*ScitemUpdateRequest) SetRemark

func (r *ScitemUpdateRequest) SetRemark(value string)

remark

func (*ScitemUpdateRequest) SetRemoveProperties

func (r *ScitemUpdateRequest) SetRemoveProperties(value string)

移除商品属性P列表,P由系统分配:p1;p2

func (*ScitemUpdateRequest) SetSpuId

func (r *ScitemUpdateRequest) SetSpuId(value string)

淘宝SKU产品级编码CSPU ID

func (*ScitemUpdateRequest) SetUpdateProperties

func (r *ScitemUpdateRequest) SetUpdateProperties(value string)

需要更新的商品属性格式是 p1:v1,p2:v2,p3:v3

func (*ScitemUpdateRequest) SetVolume

func (r *ScitemUpdateRequest) SetVolume(value string)

体积:立方厘米

func (*ScitemUpdateRequest) SetWeight

func (r *ScitemUpdateRequest) SetWeight(value string)

weight

func (*ScitemUpdateRequest) SetWidth

func (r *ScitemUpdateRequest) SetWidth(value string)

宽 单位:mm

func (*ScitemUpdateRequest) SetWmsCode

func (r *ScitemUpdateRequest) SetWmsCode(value string)

仓储商编码

type ScitemUpdateResponse

type ScitemUpdateResponse struct {
	UpdateRows int `json:"update_rows"`
}

type ScitemUpdateResponseResult

type ScitemUpdateResponseResult struct {
	Response *ScitemUpdateResponse `json:"scitem_update_response"`
}

type Store

type Store struct {
	Address         string `json:"address"`
	AddressAreaName string `json:"address_area_name"`
	AliasName       string `json:"alias_name"`
	Contact         string `json:"contact"`
	Phone           string `json:"phone"`
	PostCode        string `json:"post_code"`
	StoreCode       string `json:"store_code"`
	StoreName       string `json:"store_name"`
	StoreType       string `json:"store_type"`
}

仓库对象

type SubPurchaseOrder

type SubPurchaseOrder struct {
	AuctionPrice       float64 `json:"auction_price"`
	BillFee            float64 `json:"bill_fee"`
	BuyerPayment       float64 `json:"buyer_payment"`
	Created            string  `json:"created"`
	DistributorPayment float64 `json:"distributor_payment"`
	FenxiaoId          int     `json:"fenxiao_id"`
	Id                 int     `json:"id"`
	ItemId             int     `json:"item_id"`
	ItemOuterId        string  `json:"item_outer_id"`
	Num                int     `json:"num"`
	OldSkuProperties   string  `json:"old_sku_properties"`
	Order200Status     string  `json:"order_200_status"`
	Price              float64 `json:"price"`
	RefundFee          float64 `json:"refund_fee"`
	ScItemId           int     `json:"sc_item_id"`
	SkuId              int     `json:"sku_id"`
	SkuOuterId         string  `json:"sku_outer_id"`
	SkuProperties      string  `json:"sku_properties"`
	SnapshotUrl        string  `json:"snapshot_url"`
	Status             string  `json:"status"`
	TcAdjustFee        int     `json:"tc_adjust_fee"`
	TcDiscountFee      int     `json:"tc_discount_fee"`
	TcOrderId          int     `json:"tc_order_id"`
	TcPreferentialType string  `json:"tc_preferential_type"`
	Title              string  `json:"title"`
	TotalFee           float64 `json:"total_fee"`
}

子采购单详细信息

type Subtask

type Subtask struct {
	IsSuccess      bool   `json:"is_success"`
	SubTaskRequest string `json:"sub_task_request"`
	SubTaskResult  string `json:"sub_task_result"`
}

批量异步任务的子任务结果

type Task

type Task struct {
	CheckCode   string     `json:"check_code"`
	Created     string     `json:"created"`
	DownloadUrl string     `json:"download_url"`
	Method      string     `json:"method"`
	Schedule    string     `json:"schedule"`
	Status      string     `json:"status"`
	Subtasks    []*Subtask `json:"subtasks"`
	TaskId      int        `json:"task_id"`
}

批量异步任务结果

type TipInfo

type TipInfo struct {
	Info     string `json:"info"`
	ScItemId string `json:"sc_item_id"`
}

提示信息对象

type TopatsFenxiaoOrdersGetRequest

type TopatsFenxiaoOrdersGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

异步获取历史分销订单, 查询从昨天到3个月内的分销订单数据。所有数据根据gmt_create 降序排序

func (*TopatsFenxiaoOrdersGetRequest) GetResponse

func (*TopatsFenxiaoOrdersGetRequest) SetEndCreated

func (r *TopatsFenxiaoOrdersGetRequest) SetEndCreated(value string)

结束时间 格式 yyyyMMdd表示yyyy-MM-dd 00:00:00.开始与结束时间不能超过90天。

func (*TopatsFenxiaoOrdersGetRequest) SetFields

func (r *TopatsFenxiaoOrdersGetRequest) SetFields(value string)
多个字段用","分隔。

fields 如果为空:返回所有采购单对象(purchase_orders)字段。 如果不为空:返回指定采购单对象(purchase_orders)字段。

例1: sub_purchase_orders.tc_order_id 表示只返回tc_order_id 例2: sub_purchase_orders表示只返回子采购单列表

func (*TopatsFenxiaoOrdersGetRequest) SetStartCreated

func (r *TopatsFenxiaoOrdersGetRequest) SetStartCreated(value string)

起始时间 格式 yyyyMMdd表示yyyy-MM-dd 00:00:00.开始与结束时间不能超过90天且开始时间不能为90天前

func (*TopatsFenxiaoOrdersGetRequest) SetStatus

func (r *TopatsFenxiaoOrdersGetRequest) SetStatus(value string)

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

type TopatsFenxiaoOrdersGetResponse

type TopatsFenxiaoOrdersGetResponse struct {
	Task *Task `json:"task"`
}

type TopatsFenxiaoOrdersGetResponseResult

type TopatsFenxiaoOrdersGetResponseResult struct {
	Response *TopatsFenxiaoOrdersGetResponse `json:"topats_fenxiao_orders_get_response"`
}

type TradeMonitor

type TradeMonitor struct {
	Area               string `json:"area"`
	BuyAmount          int    `json:"buy_amount"`
	BuyerFullName      string `json:"buyer_full_name"`
	BuyerNick          string `json:"buyer_nick"`
	City               string `json:"city"`
	DistributorNick    string `json:"distributor_nick"`
	ItemId             int    `json:"item_id"`
	ItemNumber         string `json:"item_number"`
	ItemPrice          int    `json:"item_price"`
	ItemSkuName        string `json:"item_sku_name"`
	ItemSkuNumber      string `json:"item_sku_number"`
	ItemTitle          string `json:"item_title"`
	ItemTotalPrice     int    `json:"item_total_price"`
	PayTime            string `json:"pay_time"`
	ProductId          int    `json:"product_id"`
	ProductNumber      string `json:"product_number"`
	ProductSkuNumber   string `json:"product_sku_number"`
	ProductTitle       string `json:"product_title"`
	Provence           string `json:"provence"`
	RetailPriceHigh    int    `json:"retail_price_high"`
	RetailPriceLow     int    `json:"retail_price_low"`
	ShippingAddress    string `json:"shipping_address"`
	Status             string `json:"status"`
	SubTcOrderId       int    `json:"sub_tc_order_id"`
	SupplierNick       string `json:"supplier_nick"`
	TcAdjustFee        int    `json:"tc_adjust_fee"`
	TcDiscountFee      int    `json:"tc_discount_fee"`
	TcOrderId          int    `json:"tc_order_id"`
	TcPreferentialType string `json:"tc_preferential_type"`
	TradeMonitorId     int    `json:"trade_monitor_id"`
}

经销订单监控记录信息

Jump to

Keyboard shortcuts

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