openmall

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostDo

type PostDo struct {
	// 运费金额,运费0为包邮
	Amount string `json:"amount,omitempty" xml:"amount,omitempty"`
	// 发货方式 快递,EMS等
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 物流方式,可选值  ems, post, express
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
}

PostDo

type RefundMessage

type RefundMessage struct {
	// 退款留言
	RefundMessage string `json:"refund_message,omitempty" xml:"refund_message,omitempty"`
	// 退款单结构
	RefundMessagePics []RefundMessagePic `json:"refund_message_pics,omitempty" xml:"refund_message_pics>refund_message_pic,omitempty"`
	// 留言时间
	Time string `json:"time,omitempty" xml:"time,omitempty"`
	// 操作角色ID,1(卖家主账户),2(卖家子账户),3(小二)、4(买家)、5(系统)、6(系统超时)、7(服务商);openmall中提交的留言角色均为4买家身份
	Role int64 `json:"role,omitempty" xml:"role,omitempty"`
}

RefundMessage

type RefundMessagePic

type RefundMessagePic struct {
	// 退款单图片留言
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 退款单图片地址
	Pic string `json:"pic,omitempty" xml:"pic,omitempty"`
	// 使用taobao.openmall.refund.image.upload得到的上传token
	PicToken string `json:"pic_token,omitempty" xml:"pic_token,omitempty"`
}

RefundMessagePic

type RefundRemindTimeout

type RefundRemindTimeout struct {
	// 是否存在超时。可选值:true(是),false(否)
	ExistTimeout bool `json:"exist_timeout,omitempty" xml:"exist_timeout,omitempty"`
	// 超时时间。格式:yyyy-MM-dd HH:mm:ss
	Timeout string `json:"timeout,omitempty" xml:"timeout,omitempty"`
}

RefundRemindTimeout

type TaobaoOpenmallItemGetAPIResponse

type TaobaoOpenmallItemGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallItemGetResponse
}

获取商品详情物料 API返回值 taobao.openmall.item.get

获取联盟开放的openmall商品

type TaobaoOpenmallItemGetRequest

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

获取商品详情物料 API请求 taobao.openmall.item.get

获取联盟开放的openmall商品

func NewTaobaoOpenmallItemGetRequest

func NewTaobaoOpenmallItemGetRequest() *TaobaoOpenmallItemGetRequest

初始化TaobaoOpenmallItemGetRequest对象

func (TaobaoOpenmallItemGetRequest) GetApiMethodName

func (r TaobaoOpenmallItemGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallItemGetRequest) GetApiParams

func (r TaobaoOpenmallItemGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallItemGetRequest) GetItemId

func (r TaobaoOpenmallItemGetRequest) GetItemId() int64

ItemId Getter

func (*TaobaoOpenmallItemGetRequest) SetItemId

func (r *TaobaoOpenmallItemGetRequest) SetItemId(itemId int64) error

ItemId Setter 商品ID

type TaobaoOpenmallItemGetResponse

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

获取商品详情物料 成功返回结果

type TaobaoOpenmallItemGetResultDo

type TaobaoOpenmallItemGetResultDo struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 商品
	Item *TopItemVo `json:"item,omitempty" xml:"item,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoOpenmallItemGetResultDo

type TaobaoOpenmallItemSaleareaGetAPIResponse

type TaobaoOpenmallItemSaleareaGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallItemSaleareaGetResponse
}

查询商品可售区域 API返回值 taobao.openmall.item.salearea.get

获取openmall商品的可售区域

type TaobaoOpenmallItemSaleareaGetRequest

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

查询商品可售区域 API请求 taobao.openmall.item.salearea.get

获取openmall商品的可售区域

func NewTaobaoOpenmallItemSaleareaGetRequest

func NewTaobaoOpenmallItemSaleareaGetRequest() *TaobaoOpenmallItemSaleareaGetRequest

初始化TaobaoOpenmallItemSaleareaGetRequest对象

func (TaobaoOpenmallItemSaleareaGetRequest) GetApiMethodName

func (r TaobaoOpenmallItemSaleareaGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallItemSaleareaGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallItemSaleareaGetRequest) GetItemId

ItemId Getter

func (TaobaoOpenmallItemSaleareaGetRequest) GetSkuIds

SkuIds Getter

func (*TaobaoOpenmallItemSaleareaGetRequest) SetItemId

func (r *TaobaoOpenmallItemSaleareaGetRequest) SetItemId(itemId int64) error

ItemId Setter 商品ID

func (*TaobaoOpenmallItemSaleareaGetRequest) SetSkuIds

func (r *TaobaoOpenmallItemSaleareaGetRequest) SetSkuIds(skuIds string) error

SkuIds Setter 商品SKU

type TaobaoOpenmallItemSaleareaGetResponse

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

查询商品可售区域 成功返回结果

type TaobaoOpenmallItemSaleareaGetResultDo

type TaobaoOpenmallItemSaleareaGetResultDo struct {
	// 可售区域结果
	SaleAreaList []TopSaleAreaVo `json:"sale_area_list,omitempty" xml:"sale_area_list>top_sale_area_vo,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

TaobaoOpenmallItemSaleareaGetResultDo

type TaobaoOpenmallItemsQueryAPIResponse

type TaobaoOpenmallItemsQueryAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallItemsQueryResponse
}

批量获取商品列表 API返回值 taobao.openmall.items.query

批量获取对联盟开放的商品列表。

type TaobaoOpenmallItemsQueryRequest

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

批量获取商品列表 API请求 taobao.openmall.items.query

批量获取对联盟开放的商品列表。

func NewTaobaoOpenmallItemsQueryRequest

func NewTaobaoOpenmallItemsQueryRequest() *TaobaoOpenmallItemsQueryRequest

初始化TaobaoOpenmallItemsQueryRequest对象

func (TaobaoOpenmallItemsQueryRequest) GetApiMethodName

func (r TaobaoOpenmallItemsQueryRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallItemsQueryRequest) GetApiParams

func (r TaobaoOpenmallItemsQueryRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallItemsQueryRequest) GetDistributor

func (r TaobaoOpenmallItemsQueryRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallItemsQueryRequest) GetItemIds

func (r TaobaoOpenmallItemsQueryRequest) GetItemIds() string

ItemIds Getter

func (TaobaoOpenmallItemsQueryRequest) GetPageNo

func (r TaobaoOpenmallItemsQueryRequest) GetPageNo() int64

PageNo Getter

func (TaobaoOpenmallItemsQueryRequest) GetPageSize

func (r TaobaoOpenmallItemsQueryRequest) GetPageSize() int64

PageSize Getter

func (*TaobaoOpenmallItemsQueryRequest) SetDistributor

func (r *TaobaoOpenmallItemsQueryRequest) SetDistributor(distributor string) error

Distributor Setter 当不输入渠道商时,展示全网公有商品池;当输入渠道商的淘宝Nick时,展示该渠道私有供给商品列表

func (*TaobaoOpenmallItemsQueryRequest) SetItemIds

func (r *TaobaoOpenmallItemsQueryRequest) SetItemIds(itemIds string) error

ItemIds Setter 已废弃,请勿使用

func (*TaobaoOpenmallItemsQueryRequest) SetPageNo

func (r *TaobaoOpenmallItemsQueryRequest) SetPageNo(pageNo int64) error

PageNo Setter 第几页,默认:1

func (*TaobaoOpenmallItemsQueryRequest) SetPageSize

func (r *TaobaoOpenmallItemsQueryRequest) SetPageSize(pageSize int64) error

PageSize Setter 页大小,默认20,1~100

type TaobaoOpenmallItemsQueryResponse

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

批量获取商品列表 成功返回结果

type TaobaoOpenmallItemsQueryResultDo

type TaobaoOpenmallItemsQueryResultDo struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 商品列表
	ItemList []TopItemVo `json:"item_list,omitempty" xml:"item_list>top_item_vo,omitempty"`
	// 调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaoOpenmallItemsQueryResultDo

type TaobaoOpenmallRefundBatchGetAPIResponse

type TaobaoOpenmallRefundBatchGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundBatchGetResponse
}

批量获取openmall退款单 API返回值 taobao.openmall.refund.batch.get

批量获取openmall退款单 注意:该接口信息存在延迟,如需实时详情请访问taobao.openmall.refund.get

type TaobaoOpenmallRefundBatchGetRequest

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

批量获取openmall退款单 API请求 taobao.openmall.refund.batch.get

批量获取openmall退款单 注意:该接口信息存在延迟,如需实时详情请访问taobao.openmall.refund.get

func NewTaobaoOpenmallRefundBatchGetRequest

func NewTaobaoOpenmallRefundBatchGetRequest() *TaobaoOpenmallRefundBatchGetRequest

初始化TaobaoOpenmallRefundBatchGetRequest对象

func (TaobaoOpenmallRefundBatchGetRequest) GetApiMethodName

func (r TaobaoOpenmallRefundBatchGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundBatchGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundBatchGetRequest) GetDistributor

func (r TaobaoOpenmallRefundBatchGetRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundBatchGetRequest) GetEndCreated

func (r TaobaoOpenmallRefundBatchGetRequest) GetEndCreated() string

EndCreated Getter

func (TaobaoOpenmallRefundBatchGetRequest) GetPageIndex

func (r TaobaoOpenmallRefundBatchGetRequest) GetPageIndex() int64

PageIndex Getter

func (TaobaoOpenmallRefundBatchGetRequest) GetPageSize

PageSize Getter

func (TaobaoOpenmallRefundBatchGetRequest) GetStartCreated

func (r TaobaoOpenmallRefundBatchGetRequest) GetStartCreated() string

StartCreated Getter

func (*TaobaoOpenmallRefundBatchGetRequest) SetDistributor

func (r *TaobaoOpenmallRefundBatchGetRequest) SetDistributor(distributor string) error

Distributor Setter 查询的渠道商Nick

func (*TaobaoOpenmallRefundBatchGetRequest) SetEndCreated

func (r *TaobaoOpenmallRefundBatchGetRequest) SetEndCreated(endCreated string) error

EndCreated Setter 查询范围结束时间,闭区间

func (*TaobaoOpenmallRefundBatchGetRequest) SetPageIndex

func (r *TaobaoOpenmallRefundBatchGetRequest) SetPageIndex(pageIndex int64) error

PageIndex Setter 翻页页码,从1开始

func (*TaobaoOpenmallRefundBatchGetRequest) SetPageSize

func (r *TaobaoOpenmallRefundBatchGetRequest) SetPageSize(pageSize int64) error

PageSize Setter 页面大小,不超过100

func (*TaobaoOpenmallRefundBatchGetRequest) SetStartCreated

func (r *TaobaoOpenmallRefundBatchGetRequest) SetStartCreated(startCreated string) error

StartCreated Setter 查询范围开始时间,闭区间

type TaobaoOpenmallRefundBatchGetResponse

type TaobaoOpenmallRefundBatchGetResponse struct {
	XMLName xml.Name `xml:"openmall_refund_batch_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款列表
	Entities []TopRefundVo `json:"entities,omitempty" xml:"entities>top_refund_vo,omitempty"`
	// 范围内总的退款单个数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

批量获取openmall退款单 成功返回结果

type TaobaoOpenmallRefundCloseAPIResponse

type TaobaoOpenmallRefundCloseAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundCloseResponse
}

关闭OpenMall退款单 API返回值 taobao.openmall.refund.close

关闭OpenMall退款单

type TaobaoOpenmallRefundCloseRequest

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

关闭OpenMall退款单 API请求 taobao.openmall.refund.close

关闭OpenMall退款单

func NewTaobaoOpenmallRefundCloseRequest

func NewTaobaoOpenmallRefundCloseRequest() *TaobaoOpenmallRefundCloseRequest

初始化TaobaoOpenmallRefundCloseRequest对象

func (TaobaoOpenmallRefundCloseRequest) GetApiMethodName

func (r TaobaoOpenmallRefundCloseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundCloseRequest) GetApiParams

func (r TaobaoOpenmallRefundCloseRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundCloseRequest) GetDistributor

func (r TaobaoOpenmallRefundCloseRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundCloseRequest) GetRefundId

func (r TaobaoOpenmallRefundCloseRequest) GetRefundId() int64

RefundId Getter

func (*TaobaoOpenmallRefundCloseRequest) SetDistributor

func (r *TaobaoOpenmallRefundCloseRequest) SetDistributor(distributor string) error

Distributor Setter 渠道

func (*TaobaoOpenmallRefundCloseRequest) SetRefundId

func (r *TaobaoOpenmallRefundCloseRequest) SetRefundId(refundId int64) error

RefundId Setter 退款ID

type TaobaoOpenmallRefundCloseResponse

type TaobaoOpenmallRefundCloseResponse struct {
	XMLName xml.Name `xml:"openmall_refund_close_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否关闭成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

关闭OpenMall退款单 成功返回结果

type TaobaoOpenmallRefundCreateAPIResponse

type TaobaoOpenmallRefundCreateAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundCreateResponse
}

创建OpenMall退款单 API返回值 taobao.openmall.refund.create

创建OpenMall退款单 如存在未完结的退款单,则返回该退款单ID

type TaobaoOpenmallRefundCreateRequest

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

创建OpenMall退款单 API请求 taobao.openmall.refund.create

创建OpenMall退款单 如存在未完结的退款单,则返回该退款单ID

func NewTaobaoOpenmallRefundCreateRequest

func NewTaobaoOpenmallRefundCreateRequest() *TaobaoOpenmallRefundCreateRequest

初始化TaobaoOpenmallRefundCreateRequest对象

func (TaobaoOpenmallRefundCreateRequest) GetApiMethodName

func (r TaobaoOpenmallRefundCreateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundCreateRequest) GetApiParams

func (r TaobaoOpenmallRefundCreateRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundCreateRequest) GetDistributor

func (r TaobaoOpenmallRefundCreateRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundCreateRequest) GetGoodsStatus

func (r TaobaoOpenmallRefundCreateRequest) GetGoodsStatus() string

GoodsStatus Getter

func (TaobaoOpenmallRefundCreateRequest) GetRefundDesc

func (r TaobaoOpenmallRefundCreateRequest) GetRefundDesc() string

RefundDesc Getter

func (TaobaoOpenmallRefundCreateRequest) GetRefundFee

func (r TaobaoOpenmallRefundCreateRequest) GetRefundFee() int64

RefundFee Getter

func (TaobaoOpenmallRefundCreateRequest) GetRefundReason

func (r TaobaoOpenmallRefundCreateRequest) GetRefundReason() string

RefundReason Getter

func (TaobaoOpenmallRefundCreateRequest) GetRefundType

func (r TaobaoOpenmallRefundCreateRequest) GetRefundType() string

RefundType Getter

func (TaobaoOpenmallRefundCreateRequest) GetTid

Tid Getter

func (*TaobaoOpenmallRefundCreateRequest) SetDistributor

func (r *TaobaoOpenmallRefundCreateRequest) SetDistributor(distributor string) error

Distributor Setter 分销者联盟身份

func (*TaobaoOpenmallRefundCreateRequest) SetGoodsStatus

func (r *TaobaoOpenmallRefundCreateRequest) SetGoodsStatus(goodsStatus string) error

GoodsStatus Setter 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货)

func (*TaobaoOpenmallRefundCreateRequest) SetRefundDesc

func (r *TaobaoOpenmallRefundCreateRequest) SetRefundDesc(refundDesc string) error

RefundDesc Setter 买家的退货描述

func (*TaobaoOpenmallRefundCreateRequest) SetRefundFee

func (r *TaobaoOpenmallRefundCreateRequest) SetRefundFee(refundFee int64) error

RefundFee Setter 退款金额,分

func (*TaobaoOpenmallRefundCreateRequest) SetRefundReason

func (r *TaobaoOpenmallRefundCreateRequest) SetRefundReason(refundReason string) error

RefundReason Setter 退款类别,可选值OTHER_REASON(其他)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费)

func (*TaobaoOpenmallRefundCreateRequest) SetRefundType

func (r *TaobaoOpenmallRefundCreateRequest) SetRefundType(refundType string) error

RefundType Setter 退款类型,可选值refund(仅退款)、return_and_refund(退款退货)

func (*TaobaoOpenmallRefundCreateRequest) SetTid

Tid Setter 订单号

type TaobaoOpenmallRefundCreateResponse

type TaobaoOpenmallRefundCreateResponse struct {
	XMLName xml.Name `xml:"openmall_refund_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款ID
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 退款单状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
}

创建OpenMall退款单 成功返回结果

type TaobaoOpenmallRefundGetAPIResponse

type TaobaoOpenmallRefundGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundGetResponse
}

获取OpenMall退款单详情 API返回值 taobao.openmall.refund.get

获取OpenMall退款单详情

type TaobaoOpenmallRefundGetRequest

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

获取OpenMall退款单详情 API请求 taobao.openmall.refund.get

获取OpenMall退款单详情

func NewTaobaoOpenmallRefundGetRequest

func NewTaobaoOpenmallRefundGetRequest() *TaobaoOpenmallRefundGetRequest

初始化TaobaoOpenmallRefundGetRequest对象

func (TaobaoOpenmallRefundGetRequest) GetApiMethodName

func (r TaobaoOpenmallRefundGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundGetRequest) GetApiParams

func (r TaobaoOpenmallRefundGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundGetRequest) GetDistributor

func (r TaobaoOpenmallRefundGetRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundGetRequest) GetRefundId

func (r TaobaoOpenmallRefundGetRequest) GetRefundId() int64

RefundId Getter

func (*TaobaoOpenmallRefundGetRequest) SetDistributor

func (r *TaobaoOpenmallRefundGetRequest) SetDistributor(distributor string) error

Distributor Setter 渠道商身份

func (*TaobaoOpenmallRefundGetRequest) SetRefundId

func (r *TaobaoOpenmallRefundGetRequest) SetRefundId(refundId int64) error

RefundId Setter 退款单ID

type TaobaoOpenmallRefundGetResponse

type TaobaoOpenmallRefundGetResponse struct {
	XMLName xml.Name `xml:"openmall_refund_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 系统自动生成
	Refund *TopRefundVo `json:"refund,omitempty" xml:"refund,omitempty"`
}

获取OpenMall退款单详情 成功返回结果

type TaobaoOpenmallRefundImageUploadAPIResponse

type TaobaoOpenmallRefundImageUploadAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundImageUploadResponse
}

OpenMall退款图片上传 API返回值 taobao.openmall.refund.image.upload

OpenMall退款图片上传

type TaobaoOpenmallRefundImageUploadRequest

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

OpenMall退款图片上传 API请求 taobao.openmall.refund.image.upload

OpenMall退款图片上传

func NewTaobaoOpenmallRefundImageUploadRequest

func NewTaobaoOpenmallRefundImageUploadRequest() *TaobaoOpenmallRefundImageUploadRequest

初始化TaobaoOpenmallRefundImageUploadRequest对象

func (TaobaoOpenmallRefundImageUploadRequest) GetApiMethodName

func (r TaobaoOpenmallRefundImageUploadRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundImageUploadRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundImageUploadRequest) GetDistributor

Distributor Getter

func (TaobaoOpenmallRefundImageUploadRequest) GetImage

Image Getter

func (TaobaoOpenmallRefundImageUploadRequest) GetRefundId

RefundId Getter

func (*TaobaoOpenmallRefundImageUploadRequest) SetDistributor

func (r *TaobaoOpenmallRefundImageUploadRequest) SetDistributor(distributor string) error

Distributor Setter 渠道商Nick

func (*TaobaoOpenmallRefundImageUploadRequest) SetImage

Image Setter 上传图片,必须为jpg或png格式,建议小于2M

func (*TaobaoOpenmallRefundImageUploadRequest) SetRefundId

func (r *TaobaoOpenmallRefundImageUploadRequest) SetRefundId(refundId int64) error

RefundId Setter 该图片归属的退款单ID

type TaobaoOpenmallRefundImageUploadResponse

type TaobaoOpenmallRefundImageUploadResponse struct {
	XMLName xml.Name `xml:"openmall_refund_image_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 图片上传对应Token,用于提交留言接口
	Result string `json:"result,omitempty" xml:"result,omitempty"`
}

OpenMall退款图片上传 成功返回结果

type TaobaoOpenmallRefundMessageGetAPIResponse

type TaobaoOpenmallRefundMessageGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundMessageGetResponse
}

openmall获取退款单留言 API返回值 taobao.openmall.refund.message.get

openmall获取退款单留言

type TaobaoOpenmallRefundMessageGetRequest

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

openmall获取退款单留言 API请求 taobao.openmall.refund.message.get

openmall获取退款单留言

func NewTaobaoOpenmallRefundMessageGetRequest

func NewTaobaoOpenmallRefundMessageGetRequest() *TaobaoOpenmallRefundMessageGetRequest

初始化TaobaoOpenmallRefundMessageGetRequest对象

func (TaobaoOpenmallRefundMessageGetRequest) GetApiMethodName

func (r TaobaoOpenmallRefundMessageGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundMessageGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundMessageGetRequest) GetDistributor

func (r TaobaoOpenmallRefundMessageGetRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundMessageGetRequest) GetPageNo

PageNo Getter

func (TaobaoOpenmallRefundMessageGetRequest) GetPageSize

PageSize Getter

func (TaobaoOpenmallRefundMessageGetRequest) GetRefundId

RefundId Getter

func (*TaobaoOpenmallRefundMessageGetRequest) SetDistributor

func (r *TaobaoOpenmallRefundMessageGetRequest) SetDistributor(distributor string) error

Distributor Setter 分销者身份

func (*TaobaoOpenmallRefundMessageGetRequest) SetPageNo

func (r *TaobaoOpenmallRefundMessageGetRequest) SetPageNo(pageNo int64) error

PageNo Setter 翻页页码

func (*TaobaoOpenmallRefundMessageGetRequest) SetPageSize

func (r *TaobaoOpenmallRefundMessageGetRequest) SetPageSize(pageSize int64) error

PageSize Setter 翻页大小

func (*TaobaoOpenmallRefundMessageGetRequest) SetRefundId

func (r *TaobaoOpenmallRefundMessageGetRequest) SetRefundId(refundId int64) error

RefundId Setter 退款单号

type TaobaoOpenmallRefundMessageGetResponse

type TaobaoOpenmallRefundMessageGetResponse struct {
	XMLName xml.Name `xml:"openmall_refund_message_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 留言列表
	ResultsList []RefundMessage `json:"results_list,omitempty" xml:"results_list>refund_message,omitempty"`
}

openmall获取退款单留言 成功返回结果

type TaobaoOpenmallRefundMessageSubmitAPIResponse

type TaobaoOpenmallRefundMessageSubmitAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundMessageSubmitResponse
}

提交退款单留言 API返回值 taobao.openmall.refund.message.submit

OpenMall业务提交退款单留言

type TaobaoOpenmallRefundMessageSubmitRequest

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

提交退款单留言 API请求 taobao.openmall.refund.message.submit

OpenMall业务提交退款单留言

func NewTaobaoOpenmallRefundMessageSubmitRequest

func NewTaobaoOpenmallRefundMessageSubmitRequest() *TaobaoOpenmallRefundMessageSubmitRequest

初始化TaobaoOpenmallRefundMessageSubmitRequest对象

func (TaobaoOpenmallRefundMessageSubmitRequest) GetApiMethodName

func (r TaobaoOpenmallRefundMessageSubmitRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundMessageSubmitRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundMessageSubmitRequest) GetDistributor

Distributor Getter

func (TaobaoOpenmallRefundMessageSubmitRequest) GetRefundId

RefundId Getter

func (TaobaoOpenmallRefundMessageSubmitRequest) GetRefundMessage

RefundMessage Getter

func (*TaobaoOpenmallRefundMessageSubmitRequest) SetDistributor

func (r *TaobaoOpenmallRefundMessageSubmitRequest) SetDistributor(distributor string) error

Distributor Setter 分销者身份

func (*TaobaoOpenmallRefundMessageSubmitRequest) SetRefundId

func (r *TaobaoOpenmallRefundMessageSubmitRequest) SetRefundId(refundId int64) error

RefundId Setter 退款单ID

func (*TaobaoOpenmallRefundMessageSubmitRequest) SetRefundMessage

func (r *TaobaoOpenmallRefundMessageSubmitRequest) SetRefundMessage(refundMessage *RefundMessage) error

RefundMessage Setter 提交留言结构

type TaobaoOpenmallRefundMessageSubmitResponse

type TaobaoOpenmallRefundMessageSubmitResponse struct {
	XMLName xml.Name `xml:"openmall_refund_message_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提交结果
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

提交退款单留言 成功返回结果

type TaobaoOpenmallRefundModifyAPIResponse

type TaobaoOpenmallRefundModifyAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundModifyResponse
}

修改OpenMall退款申请 API返回值 taobao.openmall.refund.modify

修改OpenMall退款申请

type TaobaoOpenmallRefundModifyRequest

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

修改OpenMall退款申请 API请求 taobao.openmall.refund.modify

修改OpenMall退款申请

func NewTaobaoOpenmallRefundModifyRequest

func NewTaobaoOpenmallRefundModifyRequest() *TaobaoOpenmallRefundModifyRequest

初始化TaobaoOpenmallRefundModifyRequest对象

func (TaobaoOpenmallRefundModifyRequest) GetApiMethodName

func (r TaobaoOpenmallRefundModifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundModifyRequest) GetApiParams

func (r TaobaoOpenmallRefundModifyRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundModifyRequest) GetDistributor

func (r TaobaoOpenmallRefundModifyRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundModifyRequest) GetGoodsStatus

func (r TaobaoOpenmallRefundModifyRequest) GetGoodsStatus() string

GoodsStatus Getter

func (TaobaoOpenmallRefundModifyRequest) GetRefundDesc

func (r TaobaoOpenmallRefundModifyRequest) GetRefundDesc() string

RefundDesc Getter

func (TaobaoOpenmallRefundModifyRequest) GetRefundFee

func (r TaobaoOpenmallRefundModifyRequest) GetRefundFee() int64

RefundFee Getter

func (TaobaoOpenmallRefundModifyRequest) GetRefundId

func (r TaobaoOpenmallRefundModifyRequest) GetRefundId() int64

RefundId Getter

func (TaobaoOpenmallRefundModifyRequest) GetRefundReason

func (r TaobaoOpenmallRefundModifyRequest) GetRefundReason() string

RefundReason Getter

func (TaobaoOpenmallRefundModifyRequest) GetRefundType

func (r TaobaoOpenmallRefundModifyRequest) GetRefundType() string

RefundType Getter

func (*TaobaoOpenmallRefundModifyRequest) SetDistributor

func (r *TaobaoOpenmallRefundModifyRequest) SetDistributor(distributor string) error

Distributor Setter 分销者联盟身份

func (*TaobaoOpenmallRefundModifyRequest) SetGoodsStatus

func (r *TaobaoOpenmallRefundModifyRequest) SetGoodsStatus(goodsStatus string) error

GoodsStatus Setter 货品状态,可选值 BUYER_NOT_RECEIVED(买家未收到货)、BUYER_RECEIVED(买家已收到货)、UNSHIPPED(未发货)

func (*TaobaoOpenmallRefundModifyRequest) SetRefundDesc

func (r *TaobaoOpenmallRefundModifyRequest) SetRefundDesc(refundDesc string) error

RefundDesc Setter 买家的退货描述

func (*TaobaoOpenmallRefundModifyRequest) SetRefundFee

func (r *TaobaoOpenmallRefundModifyRequest) SetRefundFee(refundFee int64) error

RefundFee Setter 退款金额,分

func (*TaobaoOpenmallRefundModifyRequest) SetRefundId

func (r *TaobaoOpenmallRefundModifyRequest) SetRefundId(refundId int64) error

RefundId Setter 退款单ID

func (*TaobaoOpenmallRefundModifyRequest) SetRefundReason

func (r *TaobaoOpenmallRefundModifyRequest) SetRefundReason(refundReason string) error

RefundReason Setter 退款类别,可选值OTHER_REASON(其他,默认)、SEVEN_DAYS_WITHOUT_REASON(7天无理由,不退邮费)

func (*TaobaoOpenmallRefundModifyRequest) SetRefundType

func (r *TaobaoOpenmallRefundModifyRequest) SetRefundType(refundType string) error

RefundType Setter 退款类型,可选值refund(仅退款)、return_and_refund(退款退货)

type TaobaoOpenmallRefundModifyResponse

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

修改OpenMall退款申请 成功返回结果

type TaobaoOpenmallRefundSubmitAPIResponse

type TaobaoOpenmallRefundSubmitAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallRefundSubmitResponse
}

提交OpenMall退款单物流 API返回值 taobao.openmall.refund.submit

提交OpenMall退款单物流

type TaobaoOpenmallRefundSubmitRequest

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

提交OpenMall退款单物流 API请求 taobao.openmall.refund.submit

提交OpenMall退款单物流

func NewTaobaoOpenmallRefundSubmitRequest

func NewTaobaoOpenmallRefundSubmitRequest() *TaobaoOpenmallRefundSubmitRequest

初始化TaobaoOpenmallRefundSubmitRequest对象

func (TaobaoOpenmallRefundSubmitRequest) GetApiMethodName

func (r TaobaoOpenmallRefundSubmitRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallRefundSubmitRequest) GetApiParams

func (r TaobaoOpenmallRefundSubmitRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallRefundSubmitRequest) GetDistributor

func (r TaobaoOpenmallRefundSubmitRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallRefundSubmitRequest) GetLogisticsCompanyCode

func (r TaobaoOpenmallRefundSubmitRequest) GetLogisticsCompanyCode() string

LogisticsCompanyCode Getter

func (TaobaoOpenmallRefundSubmitRequest) GetLogisticsCompanyName

func (r TaobaoOpenmallRefundSubmitRequest) GetLogisticsCompanyName() string

LogisticsCompanyName Getter

func (TaobaoOpenmallRefundSubmitRequest) GetLogisticsNo

func (r TaobaoOpenmallRefundSubmitRequest) GetLogisticsNo() string

LogisticsNo Getter

func (TaobaoOpenmallRefundSubmitRequest) GetRefundId

func (r TaobaoOpenmallRefundSubmitRequest) GetRefundId() int64

RefundId Getter

func (*TaobaoOpenmallRefundSubmitRequest) SetDistributor

func (r *TaobaoOpenmallRefundSubmitRequest) SetDistributor(distributor string) error

Distributor Setter 渠道

func (*TaobaoOpenmallRefundSubmitRequest) SetLogisticsCompanyCode

func (r *TaobaoOpenmallRefundSubmitRequest) SetLogisticsCompanyCode(logisticsCompanyCode string) error

LogisticsCompanyCode Setter 物流公司编码

func (*TaobaoOpenmallRefundSubmitRequest) SetLogisticsCompanyName

func (r *TaobaoOpenmallRefundSubmitRequest) SetLogisticsCompanyName(logisticsCompanyName string) error

LogisticsCompanyName Setter 物流公司名称

func (*TaobaoOpenmallRefundSubmitRequest) SetLogisticsNo

func (r *TaobaoOpenmallRefundSubmitRequest) SetLogisticsNo(logisticsNo string) error

LogisticsNo Setter 快递单号

func (*TaobaoOpenmallRefundSubmitRequest) SetRefundId

func (r *TaobaoOpenmallRefundSubmitRequest) SetRefundId(refundId int64) error

RefundId Setter 退款单ID

type TaobaoOpenmallRefundSubmitResponse

type TaobaoOpenmallRefundSubmitResponse struct {
	XMLName xml.Name `xml:"openmall_refund_submit_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 提交物流单成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

提交OpenMall退款单物流 成功返回结果

type TaobaoOpenmallTraceSearchAPIResponse

type TaobaoOpenmallTraceSearchAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTraceSearchResponse
}

获取Openmall订单物流流转信息 API返回值 taobao.openmall.trace.search

获取Openmall订单物流流转信息

type TaobaoOpenmallTraceSearchRequest

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

获取Openmall订单物流流转信息 API请求 taobao.openmall.trace.search

获取Openmall订单物流流转信息

func NewTaobaoOpenmallTraceSearchRequest

func NewTaobaoOpenmallTraceSearchRequest() *TaobaoOpenmallTraceSearchRequest

初始化TaobaoOpenmallTraceSearchRequest对象

func (TaobaoOpenmallTraceSearchRequest) GetApiMethodName

func (r TaobaoOpenmallTraceSearchRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTraceSearchRequest) GetApiParams

func (r TaobaoOpenmallTraceSearchRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTraceSearchRequest) GetDistributor

func (r TaobaoOpenmallTraceSearchRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTraceSearchRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTraceSearchRequest) SetDistributor

func (r *TaobaoOpenmallTraceSearchRequest) SetDistributor(distributor string) error

Distributor Setter 签约支付宝代扣的账号

func (*TaobaoOpenmallTraceSearchRequest) SetTid

Tid Setter 淘宝订单编号

type TaobaoOpenmallTraceSearchResponse

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

获取Openmall订单物流流转信息 成功返回结果

type TaobaoOpenmallTradeAddressParseAPIResponse

type TaobaoOpenmallTradeAddressParseAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeAddressParseResponse
}

openmall服务地址区域码解析 API返回值 taobao.openmall.trade.address.parse

openmall服务,解析地址区域码,获取创建订单等接口中的区域码信息

type TaobaoOpenmallTradeAddressParseRequest

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

openmall服务地址区域码解析 API请求 taobao.openmall.trade.address.parse

openmall服务,解析地址区域码,获取创建订单等接口中的区域码信息

func NewTaobaoOpenmallTradeAddressParseRequest

func NewTaobaoOpenmallTradeAddressParseRequest() *TaobaoOpenmallTradeAddressParseRequest

初始化TaobaoOpenmallTradeAddressParseRequest对象

func (TaobaoOpenmallTradeAddressParseRequest) GetApiMethodName

func (r TaobaoOpenmallTradeAddressParseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeAddressParseRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeAddressParseRequest) GetDistributor

Distributor Getter

func (TaobaoOpenmallTradeAddressParseRequest) GetRawAddress

RawAddress Getter

func (*TaobaoOpenmallTradeAddressParseRequest) SetDistributor

func (r *TaobaoOpenmallTradeAddressParseRequest) SetDistributor(distributor string) error

Distributor Setter 渠道商分销者淘宝账号

func (*TaobaoOpenmallTradeAddressParseRequest) SetRawAddress

func (r *TaobaoOpenmallTradeAddressParseRequest) SetRawAddress(rawAddress string) error

RawAddress Setter 需解析的地址信息,建议只传地址选择器中的省市区,街道门牌号等用户手动输入数据不传

type TaobaoOpenmallTradeAddressParseResponse

type TaobaoOpenmallTradeAddressParseResponse struct {
	XMLName xml.Name `xml:"openmall_trade_address_parse_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 一组地址解析结构,解析正确率与地址完整度相关
	Result *TopParseAddressVO `json:"result,omitempty" xml:"result,omitempty"`
}

openmall服务地址区域码解析 成功返回结果

type TaobaoOpenmallTradeAgreepayAPIResponse

type TaobaoOpenmallTradeAgreepayAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeAgreepayResponse
}

openmall订单支付 API返回值 taobao.openmall.trade.agreepay

openmall订单支付

type TaobaoOpenmallTradeAgreepayRequest

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

openmall订单支付 API请求 taobao.openmall.trade.agreepay

openmall订单支付

func NewTaobaoOpenmallTradeAgreepayRequest

func NewTaobaoOpenmallTradeAgreepayRequest() *TaobaoOpenmallTradeAgreepayRequest

初始化TaobaoOpenmallTradeAgreepayRequest对象

func (TaobaoOpenmallTradeAgreepayRequest) GetApiMethodName

func (r TaobaoOpenmallTradeAgreepayRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeAgreepayRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeAgreepayRequest) GetDistributor

func (r TaobaoOpenmallTradeAgreepayRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTradeAgreepayRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTradeAgreepayRequest) SetDistributor

func (r *TaobaoOpenmallTradeAgreepayRequest) SetDistributor(distributor string) error

Distributor Setter 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick

func (*TaobaoOpenmallTradeAgreepayRequest) SetTid

Tid Setter 淘宝交易单号

type TaobaoOpenmallTradeAgreepayResponse

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

openmall订单支付 成功返回结果

type TaobaoOpenmallTradeBatchGetAPIResponse

type TaobaoOpenmallTradeBatchGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeBatchGetResponse
}

批量获取openmall订单 API返回值 taobao.openmall.trade.batch.get

批量获取openmall订单 注意:该接口数据存在延迟,实时数据请通过taobao.openmall.trade.get获取

type TaobaoOpenmallTradeBatchGetRequest

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

批量获取openmall订单 API请求 taobao.openmall.trade.batch.get

批量获取openmall订单 注意:该接口数据存在延迟,实时数据请通过taobao.openmall.trade.get获取

func NewTaobaoOpenmallTradeBatchGetRequest

func NewTaobaoOpenmallTradeBatchGetRequest() *TaobaoOpenmallTradeBatchGetRequest

初始化TaobaoOpenmallTradeBatchGetRequest对象

func (TaobaoOpenmallTradeBatchGetRequest) GetApiMethodName

func (r TaobaoOpenmallTradeBatchGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeBatchGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeBatchGetRequest) GetDistributor

func (r TaobaoOpenmallTradeBatchGetRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTradeBatchGetRequest) GetEndCreated

func (r TaobaoOpenmallTradeBatchGetRequest) GetEndCreated() string

EndCreated Getter

func (TaobaoOpenmallTradeBatchGetRequest) GetPageIndex

func (r TaobaoOpenmallTradeBatchGetRequest) GetPageIndex() int64

PageIndex Getter

func (TaobaoOpenmallTradeBatchGetRequest) GetPageSize

func (r TaobaoOpenmallTradeBatchGetRequest) GetPageSize() int64

PageSize Getter

func (TaobaoOpenmallTradeBatchGetRequest) GetStartCreated

func (r TaobaoOpenmallTradeBatchGetRequest) GetStartCreated() string

StartCreated Getter

func (*TaobaoOpenmallTradeBatchGetRequest) SetDistributor

func (r *TaobaoOpenmallTradeBatchGetRequest) SetDistributor(distributor string) error

Distributor Setter 渠道商Nick

func (*TaobaoOpenmallTradeBatchGetRequest) SetEndCreated

func (r *TaobaoOpenmallTradeBatchGetRequest) SetEndCreated(endCreated string) error

EndCreated Setter 查询范围结束时间,闭区间

func (*TaobaoOpenmallTradeBatchGetRequest) SetPageIndex

func (r *TaobaoOpenmallTradeBatchGetRequest) SetPageIndex(pageIndex int64) error

PageIndex Setter 查询页码,从1开始

func (*TaobaoOpenmallTradeBatchGetRequest) SetPageSize

func (r *TaobaoOpenmallTradeBatchGetRequest) SetPageSize(pageSize int64) error

PageSize Setter 页面大小,不超过100

func (*TaobaoOpenmallTradeBatchGetRequest) SetStartCreated

func (r *TaobaoOpenmallTradeBatchGetRequest) SetStartCreated(startCreated string) error

StartCreated Setter 查询范围开始时间,闭区间

type TaobaoOpenmallTradeBatchGetResponse

type TaobaoOpenmallTradeBatchGetResponse struct {
	XMLName xml.Name `xml:"openmall_trade_batch_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单列表
	Entities []TopTradeDetailVo `json:"entities,omitempty" xml:"entities>top_trade_detail_vo,omitempty"`
	// 范围内总订单数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
}

批量获取openmall订单 成功返回结果

type TaobaoOpenmallTradeCloseAPIResponse

type TaobaoOpenmallTradeCloseAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeCloseResponse
}

关闭订单 API返回值 taobao.openmall.trade.close

关闭订单

type TaobaoOpenmallTradeCloseRequest

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

关闭订单 API请求 taobao.openmall.trade.close

关闭订单

func NewTaobaoOpenmallTradeCloseRequest

func NewTaobaoOpenmallTradeCloseRequest() *TaobaoOpenmallTradeCloseRequest

初始化TaobaoOpenmallTradeCloseRequest对象

func (TaobaoOpenmallTradeCloseRequest) GetApiMethodName

func (r TaobaoOpenmallTradeCloseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeCloseRequest) GetApiParams

func (r TaobaoOpenmallTradeCloseRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeCloseRequest) GetDistributor

func (r TaobaoOpenmallTradeCloseRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTradeCloseRequest) GetReason

Reason Getter

func (TaobaoOpenmallTradeCloseRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTradeCloseRequest) SetDistributor

func (r *TaobaoOpenmallTradeCloseRequest) SetDistributor(distributor string) error

Distributor Setter 分销者信息

func (*TaobaoOpenmallTradeCloseRequest) SetReason

func (r *TaobaoOpenmallTradeCloseRequest) SetReason(reason string) error

Reason Setter 关单原因

func (*TaobaoOpenmallTradeCloseRequest) SetTid

Tid Setter 淘宝订单号

type TaobaoOpenmallTradeCloseResponse

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

关闭订单 成功返回结果

type TaobaoOpenmallTradeConfirmAPIResponse

type TaobaoOpenmallTradeConfirmAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeConfirmResponse
}

确认收货 API返回值 taobao.openmall.trade.confirm

确认订单收货

type TaobaoOpenmallTradeConfirmRequest

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

确认收货 API请求 taobao.openmall.trade.confirm

确认订单收货

func NewTaobaoOpenmallTradeConfirmRequest

func NewTaobaoOpenmallTradeConfirmRequest() *TaobaoOpenmallTradeConfirmRequest

初始化TaobaoOpenmallTradeConfirmRequest对象

func (TaobaoOpenmallTradeConfirmRequest) GetApiMethodName

func (r TaobaoOpenmallTradeConfirmRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeConfirmRequest) GetApiParams

func (r TaobaoOpenmallTradeConfirmRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeConfirmRequest) GetDistributor

func (r TaobaoOpenmallTradeConfirmRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTradeConfirmRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTradeConfirmRequest) SetDistributor

func (r *TaobaoOpenmallTradeConfirmRequest) SetDistributor(distributor string) error

Distributor Setter 分销者信息

func (*TaobaoOpenmallTradeConfirmRequest) SetTid

Tid Setter 淘宝订单号

type TaobaoOpenmallTradeConfirmResponse

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

确认收货 成功返回结果

type TaobaoOpenmallTradeCreateAPIResponse

type TaobaoOpenmallTradeCreateAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeCreateResponse
}

创建订单 API返回值 taobao.openmall.trade.create

创建Openmall订单

type TaobaoOpenmallTradeCreateRequest

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

创建订单 API请求 taobao.openmall.trade.create

创建Openmall订单

func NewTaobaoOpenmallTradeCreateRequest

func NewTaobaoOpenmallTradeCreateRequest() *TaobaoOpenmallTradeCreateRequest

初始化TaobaoOpenmallTradeCreateRequest对象

func (TaobaoOpenmallTradeCreateRequest) GetApiMethodName

func (r TaobaoOpenmallTradeCreateRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeCreateRequest) GetApiParams

func (r TaobaoOpenmallTradeCreateRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeCreateRequest) GetParamTopTradeCreateDO

func (r TaobaoOpenmallTradeCreateRequest) GetParamTopTradeCreateDO() *TopTradeCreateDo

ParamTopTradeCreateDO Getter

func (*TaobaoOpenmallTradeCreateRequest) SetParamTopTradeCreateDO

func (r *TaobaoOpenmallTradeCreateRequest) SetParamTopTradeCreateDO(paramTopTradeCreateDO *TopTradeCreateDo) error

ParamTopTradeCreateDO Setter 请求入参

type TaobaoOpenmallTradeCreateResponse

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

创建订单 成功返回结果

type TaobaoOpenmallTradeGetAPIResponse

type TaobaoOpenmallTradeGetAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeGetResponse
}

查询订单详情 API返回值 taobao.openmall.trade.get

查询订单详情

type TaobaoOpenmallTradeGetRequest

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

查询订单详情 API请求 taobao.openmall.trade.get

查询订单详情

func NewTaobaoOpenmallTradeGetRequest

func NewTaobaoOpenmallTradeGetRequest() *TaobaoOpenmallTradeGetRequest

初始化TaobaoOpenmallTradeGetRequest对象

func (TaobaoOpenmallTradeGetRequest) GetApiMethodName

func (r TaobaoOpenmallTradeGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeGetRequest) GetApiParams

func (r TaobaoOpenmallTradeGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeGetRequest) GetDistributor

func (r TaobaoOpenmallTradeGetRequest) GetDistributor() string

Distributor Getter

func (TaobaoOpenmallTradeGetRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTradeGetRequest) SetDistributor

func (r *TaobaoOpenmallTradeGetRequest) SetDistributor(distributor string) error

Distributor Setter 分销者信息

func (*TaobaoOpenmallTradeGetRequest) SetTid

func (r *TaobaoOpenmallTradeGetRequest) SetTid(tid int64) error

Tid Setter 淘宝订单号

type TaobaoOpenmallTradeGetResponse

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

查询订单详情 成功返回结果

type TaobaoOpenmallTradeRenderAPIResponse

type TaobaoOpenmallTradeRenderAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeRenderResponse
}

渲染订单价格 API返回值 taobao.openmall.trade.render

请求渲染订单价格

type TaobaoOpenmallTradeRenderRequest

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

渲染订单价格 API请求 taobao.openmall.trade.render

请求渲染订单价格

func NewTaobaoOpenmallTradeRenderRequest

func NewTaobaoOpenmallTradeRenderRequest() *TaobaoOpenmallTradeRenderRequest

初始化TaobaoOpenmallTradeRenderRequest对象

func (TaobaoOpenmallTradeRenderRequest) GetApiMethodName

func (r TaobaoOpenmallTradeRenderRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeRenderRequest) GetApiParams

func (r TaobaoOpenmallTradeRenderRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeRenderRequest) GetParamTopTradeCreateDO

func (r TaobaoOpenmallTradeRenderRequest) GetParamTopTradeCreateDO() *TopTradeCreateDo

ParamTopTradeCreateDO Getter

func (*TaobaoOpenmallTradeRenderRequest) SetParamTopTradeCreateDO

func (r *TaobaoOpenmallTradeRenderRequest) SetParamTopTradeCreateDO(paramTopTradeCreateDO *TopTradeCreateDo) error

ParamTopTradeCreateDO Setter 请求入参

type TaobaoOpenmallTradeRenderResponse

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

渲染订单价格 成功返回结果

type TaobaoOpenmallTradeShipaddressUpdateAPIResponse

type TaobaoOpenmallTradeShipaddressUpdateAPIResponse struct {
	model.CommonResponse
	TaobaoOpenmallTradeShipaddressUpdateResponse
}

Openmall订单收货地址修改 API返回值 taobao.openmall.trade.shipaddress.update

Openmall订单收货地址修改

type TaobaoOpenmallTradeShipaddressUpdateRequest

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

Openmall订单收货地址修改 API请求 taobao.openmall.trade.shipaddress.update

Openmall订单收货地址修改

func NewTaobaoOpenmallTradeShipaddressUpdateRequest

func NewTaobaoOpenmallTradeShipaddressUpdateRequest() *TaobaoOpenmallTradeShipaddressUpdateRequest

初始化TaobaoOpenmallTradeShipaddressUpdateRequest对象

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetDistributor

Distributor Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverAddress

func (r TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverAddress() string

ReceiverAddress Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverCity

ReceiverCity Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverDistrict

func (r TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverDistrict() string

ReceiverDistrict Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverMobile

ReceiverMobile Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverName

ReceiverName Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverPhone

ReceiverPhone Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverState

ReceiverState Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetReceiverZip

ReceiverZip Getter

func (TaobaoOpenmallTradeShipaddressUpdateRequest) GetTid

Tid Getter

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetDistributor

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetDistributor(distributor string) error

Distributor Setter 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverAddress

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverAddress(receiverAddress string) error

ReceiverAddress Setter 收货地址。最大长度为228个字节。

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverCity

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverCity(receiverCity string) error

ReceiverCity Setter 城市。最大长度为32个字节。如:杭州

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverDistrict

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverDistrict(receiverDistrict string) error

ReceiverDistrict Setter 区/县。最大长度为32个字节。如:西湖区

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverMobile

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverMobile(receiverMobile string) error

ReceiverMobile Setter 移动电话。最大长度为11个字节。

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverName

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverName(receiverName string) error

ReceiverName Setter 收货人全名。最大长度为50个字节。

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverPhone

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverPhone(receiverPhone string) error

ReceiverPhone Setter 固定电话。最大长度为30个字节。

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverState

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverState(receiverState string) error

ReceiverState Setter 省份。最大长度为32个字节。如:浙江

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverZip

func (r *TaobaoOpenmallTradeShipaddressUpdateRequest) SetReceiverZip(receiverZip string) error

ReceiverZip Setter 6位数字的邮编

func (*TaobaoOpenmallTradeShipaddressUpdateRequest) SetTid

Tid Setter 淘宝订单号

type TaobaoOpenmallTradeShipaddressUpdateResponse

type TaobaoOpenmallTradeShipaddressUpdateResponse struct {
	XMLName xml.Name `xml:"openmall_trade_shipaddress_update_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单号
	Tid string `json:"tid,omitempty" xml:"tid,omitempty"`
}

Openmall订单收货地址修改 成功返回结果

type TopItemImageVo

type TopItemImageVo struct {
	// 图片放在第几张(多图时设置),propertyImages中不返回
	Position int64 `json:"position,omitempty" xml:"position,omitempty"`
	// 商品图片链接
	Url string `json:"url,omitempty" xml:"url,omitempty"`
	// 图片ID,itemImages中不返回
	ImageId int64 `json:"image_id,omitempty" xml:"image_id,omitempty"`
	// 商品属性,itemImages中不返回
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
}

TopItemImageVo

type TopItemSkuVo

type TopItemSkuVo struct {
	// 属于这个sku的商品的价格 取值范围:0-100000000;精确到2位小数;单位:元。如:200.07,表示:200元7分。
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// sku所对应的销售属性串,由 属性名ID(pid)、属性值ID(vid)组成。  格式为:pid1:vid1;pid2:vid2 ;pid3:vid3…    pid和vid对应的中文名称,可以从item_properties字段中获取。
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 属于这个sku的商品的数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// sku的id
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// sku描述,以分号分隔描述项,### 分隔翻译内容;注意,当为别名时,翻译项中将没有冒号分隔
	Description string `json:"description,omitempty" xml:"description,omitempty"`
}

TopItemSkuVo

type TopItemVo

type TopItemVo struct {
	// 商品类目
	CategoryId int64 `json:"category_id,omitempty" xml:"category_id,omitempty"`
	// 商品所在城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 商品成本价,精确到2位小数,单位:元。如:200.07,表示200元7分。
	CostPrice string `json:"cost_price,omitempty" xml:"cost_price,omitempty"`
	// 商品描述, 字数要大于5个字符,小于25000个字符
	Description string `json:"description,omitempty" xml:"description,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 商品图片
	ItemImages []TopItemImageVo `json:"item_images,omitempty" xml:"item_images>top_item_image_vo,omitempty"`
	// 商品视频列表,多个视频用逗号分隔。
	ItemVideos string `json:"item_videos,omitempty" xml:"item_videos,omitempty"`
	// 商品主图
	PicUrl string `json:"pic_url,omitempty" xml:"pic_url,omitempty"`
	// 运费列表
	Postages []TopPostageVo `json:"postages,omitempty" xml:"postages>top_postage_vo,omitempty"`
	// 商品的属性列表,由属性名ID(pid)、属性值ID(vid)、属性名(pid_name)、属性值(vid_name)组成。格式如:pid1:vid1:pid_name1:vid_name1;pid2:vid2:pid_name2:vid_name2……
	ItemProperties string `json:"item_properties,omitempty" xml:"item_properties,omitempty"`
	// 商品属性图片
	PropertyImages []TopItemImageVo `json:"property_images,omitempty" xml:"property_images>top_item_image_vo,omitempty"`
	// 商品所在省份
	Prov string `json:"prov,omitempty" xml:"prov,omitempty"`
	// 库存
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 表示商品的体积,用于按体积计费的运费模板。该值的单位为立方米(m3)。该值支持两种格式的设置:  格式1:bulk:3,单位为立方米(m3),表示直接设置为商品的体积;    格式2:width:10;breadth:10;height:10,单位为米(m)。
	Size string `json:"size,omitempty" xml:"size,omitempty"`
	// sku列表
	Skus []TopItemSkuVo `json:"skus,omitempty" xml:"skus>top_item_sku_vo,omitempty"`
	// 商品状态:上架(1)、下架(0)
	ItemStatus int64 `json:"item_status,omitempty" xml:"item_status,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 是否虚拟商品
	IsVirtual bool `json:"is_virtual,omitempty" xml:"is_virtual,omitempty"`
	// 商品的重量,用于按重量计费的运费模板。注意:单位为kg
	Weight string `json:"weight,omitempty" xml:"weight,omitempty"`
	// 是否区域限购。值为true时,通过taobao.openmall.item.salearea.get获取商品可销售区域;值为false时,该商品所有区域都可销售。
	AreaLimit bool `json:"area_limit,omitempty" xml:"area_limit,omitempty"`
	// 属性值别名,比如颜色的自定义名称
	PropertyAlias string `json:"property_alias,omitempty" xml:"property_alias,omitempty"`
	// 商品店铺名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 商品人气
	Popularity int64 `json:"popularity,omitempty" xml:"popularity,omitempty"`
	// 当前商品是否支持hold单,当为false时,下单接口中的need_erp_hold不生效
	SupportErpHold string `json:"support_erp_hold,omitempty" xml:"support_erp_hold,omitempty"`
	// 商品状态:上架(1)、下架(0)
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

TopItemVo

type TopLogisticsDetailTraceVo

type TopLogisticsDetailTraceVo struct {
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 运单号
	OutSid string `json:"out_sid,omitempty" xml:"out_sid,omitempty"`
	// 订单的物流状态(仅支持线上发货online订单,线下发货offline发出后直接变为已签收,OpenMall场景如无法判断请直接忽略,直接获取最后一个trace节点描述) * 等候发送给物流公司 *已提交给物流公司,等待物流公司接单 *已经确认消息接收,等待物流公司接单 *物流公司已接单 *物流公司不接单 *物流公司揽收失败 *物流公司揽收成功 *签收失败 *对方已签收 *对方拒绝签收
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 淘宝交易单ID
	Tid string `json:"tid,omitempty" xml:"tid,omitempty"`
	// 流转信息列表
	TraceList []TransitStepInfoVo `json:"trace_list,omitempty" xml:"trace_list>transit_step_info_vo,omitempty"`
}

TopLogisticsDetailTraceVo

type TopOrderVo

type TopOrderVo struct {
	// 子订单发货时间,当卖家对订单进行了多次发货,子订单的发货时间和主订单的发货时间可能不一样了,那么就需要以子订单的时间为准。(没有进行多次发货的订单,主订单的发货时间和子订单的发货时间都一样)
	ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"`
	// 子订单的交易结束时间说明:子订单有单独的结束时间,与主订单的结束时间可能有所不同,在有退款发起的时候或者是主订单分阶段付款的时候,子订单的结束时间会早于主订单的结束时间,所以开放这个字段便于订单结束状态的判断
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 子订单预计发货时间
	EstimateConTime string `json:"estimate_con_time,omitempty" xml:"estimate_con_time,omitempty"`
	// 商品备注
	ItemMemo string `json:"item_memo,omitempty" xml:"item_memo,omitempty"`
	// 购买数量。取值范围:大于零的整数
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 商品数字ID
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 子订单编号
	Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"`
	// 外部网店自己定义的Sku编号
	OuterSkuId string `json:"outer_sku_id,omitempty" xml:"outer_sku_id,omitempty"`
	// 子订单实付金额。精确到2位小数,单位:元。如:200.07,表示:200元7分。对于多子订单的交易,计算公式如下:payment = price * num + adjust_fee - discount_fee ;单子订单交易,payment与主订单的payment一致,对于退款成功的子订单,由于主订单的优惠分摊金额,会造成该字段可能不为0.00元。建议使用退款前的实付金额减去退款单中的实际退款金额计算。
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
	// 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 最近退款ID
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 退款状态。退款状态。可选值 WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功)
	RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// SKU的值。如:机身颜色:黑色;手机套餐:官方标配
	SkuPropertiesName string `json:"sku_properties_name,omitempty" xml:"sku_properties_name,omitempty"`
	// 订单状态。可选值: TRADE_NO_CREATE_PAY(没有创建支付宝交易,暂无) WAIT_BUYER_PAY(等待买家付款) WAIT_SELLER_SEND_GOODS(等待卖家发货,即:买家已付款) WAIT_BUYER_CONFIRM_GOODS(等待买家确认收货,即:卖家已发货) TRADE_BUYER_SIGNED(买家已签收,货到付款专用,暂无) TRADE_FINISHED(交易成功) TRADE_CLOSED(付款以后用户退款成功,交易自动关闭) TRADE_CLOSED_BY_TAOBAO(付款以前,卖家或买家主动关闭交易) PAY_PENDING(国际信用卡支付付款确认中,暂无)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 应付金额(商品价格 * 商品数量 + 手工调整金额 - 子订单级订单优惠金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 是否发货
	IsShShip bool `json:"is_sh_ship,omitempty" xml:"is_sh_ship,omitempty"`
	// 商品SKUID
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 物流公司名称
	LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"`
	// 子订单包裹运输号
	InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"`
}

TopOrderVo

type TopParseAddressEntryVO

type TopParseAddressEntryVO struct {
	// 地区编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 地域名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 地区级别,2代表省、自治区、直辖市、特别行政区;3代表地级市、 地区、盟、自治州;4代表县、区、自治县、旗;5代表乡、镇、街道,openmall中请取第三或者第四级别地域编码传入即可
	Scope int64 `json:"scope,omitempty" xml:"scope,omitempty"`
}

TopParseAddressEntryVO

type TopParseAddressVO

type TopParseAddressVO struct {
	// 地址解析结构
	Entries []TopParseAddressEntryVO `json:"entries,omitempty" xml:"entries>top_parse_address_entry_vo,omitempty"`
}

TopParseAddressVO

type TopPostageVo

type TopPostageVo struct {
	// 增费:支持0.00-999.99(最多包含两位小数)
	AddFee string `json:"add_fee,omitempty" xml:"add_fee,omitempty"`
	// 增费标准。 当valuation为0时,支持1-9999范围内的整数;  当valuation为1时,支持0.1-9999.9范围内的小数,只能包含一位小数(单位为千克);  当valuation为3时,支持0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)。
	AddStandard string `json:"add_standard,omitempty" xml:"add_standard,omitempty"`
	// 涉及的地区,多个地区用逗号分隔。地区码可以用taobao.areas.get接口获取,或者参考:http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003301019.html  当值为1时,表示全国所有地区。
	PostArea string `json:"post_area,omitempty" xml:"post_area,omitempty"`
	// 运费方式,可选值:平邮 (post)、快递公司(express)、EMS (ems)、货到付款(cod)、物流宝保障速递(wlb)、家装物流(furniture)。
	PostType string `json:"post_type,omitempty" xml:"post_type,omitempty"`
	// 首费,范围0.00-999.99(最多包含两位小数)。
	StartFee string `json:"start_fee,omitempty" xml:"start_fee,omitempty"`
	// 首费标准。  当valuation(记价方式)为1时,支持0.1-9999.9范围内的小数只能包含一位小数(单位为千克);  当valuation(记价方式)为3时,支持0.1-999.9范围内的数值,数值只能包含一位小数(单位为 立方米)。
	StartStandard string `json:"start_standard,omitempty" xml:"start_standard,omitempty"`
	// 运费计算方式,可选值:0(件数)、1(重量)、3(体积)。
	Valuation int64 `json:"valuation,omitempty" xml:"valuation,omitempty"`
}

TopPostageVo

type TopRefundVo

type TopRefundVo struct {
	// 退款单ID
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 对应订单ID
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 退款单状态,此接口存在延迟,详情参考taobao.openmall.refund.get
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 退款单创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 请求退款金额
	RefundFee string `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 货物状态。可选值BUYER_NOT_RECEIVED (买家未收到货) BUYER_RECEIVED (买家已收到货) BUYER_RETURNED_GOODS (买家已退货)
	GoodStatus string `json:"good_status,omitempty" xml:"good_status,omitempty"`
	// 买家是否需要退货。可选值:true(是),false(否)
	HasGoodReturn bool `json:"has_good_return,omitempty" xml:"has_good_return,omitempty"`
	// 更新时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 商品数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 商品ID
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 实付金额。精确到2位小数;单位:元。如:200.07,表示:200元7分
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
	// 退款阶段,可选值:onsale/aftersale
	RefundPhase string `json:"refund_phase,omitempty" xml:"refund_phase,omitempty"`
	// 退款超时结构
	RefundRemindTimeout *RefundRemindTimeout `json:"refund_remind_timeout,omitempty" xml:"refund_remind_timeout,omitempty"`
	// 创建交易时的物流方式。 可选值:ems, express, post, free
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
	// 商品SKU信息
	Sku string `json:"sku,omitempty" xml:"sku,omitempty"`
	// 交易总金额
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 卖家退货地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 退货运单号
	Sid string `json:"sid,omitempty" xml:"sid,omitempty"`
	// 物流公司名称
	CompanyName string `json:"company_name,omitempty" xml:"company_name,omitempty"`
	// 退货邮编
	PostCode string `json:"post_code,omitempty" xml:"post_code,omitempty"`
	// 退货时收货人电话
	FixPhone string `json:"fix_phone,omitempty" xml:"fix_phone,omitempty"`
	// 退货时收货人手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 退货时收货人姓名
	ConsigneeFullName string `json:"consignee_full_name,omitempty" xml:"consignee_full_name,omitempty"`
	// 当该退款单为 未发货仅退款 申请时,因卖家坚持发货而导致关单的情况下,该字段值为true;其余条件为空或false
	ClosedBySellerShip bool `json:"closed_by_seller_ship,omitempty" xml:"closed_by_seller_ship,omitempty"`
}

TopRefundVo

type TopSaleAreaVo

type TopSaleAreaVo struct {
	// 商品SKU ID
	SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 可售区域信息,JSON数组格式的字符串。区域的层次用树状结构表示。 包含的字段有:     areaId:区域码; 	subSaleArea:所属子区域的可售信息; 	 树的叶子节点表示可售区域。 树的枝节点只是聚合可售区域,表达区域的层次关系。
	SaleAreaInfo string `json:"sale_area_info,omitempty" xml:"sale_area_info,omitempty"`
}

TopSaleAreaVo

type TopTradeCreateDo

type TopTradeCreateDo struct {
	// 收货地址的收件人地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 买家来源渠道,可选值 WeiXin(微信渠道),DouYin(抖音), KuaiShou (快手),Other(其他)
	BuyerChannel string `json:"buyer_channel,omitempty" xml:"buyer_channel,omitempty"`
	// 买家来源渠道对应ID,例如微信的openId
	BuyerChannelId string `json:"buyer_channel_id,omitempty" xml:"buyer_channel_id,omitempty"`
	// 买家留言
	BuyerMemo string `json:"buyer_memo,omitempty" xml:"buyer_memo,omitempty"`
	// 买家手机号
	BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"`
	// 媒体渠道,代表分销者的身份,签约支付宝代扣的渠道商淘宝账号nick
	Distributor string `json:"distributor,omitempty" xml:"distributor,omitempty"`
	// 收货地址的区域码,从taobao.areas.get接口获取区域码,文档地址:https://open.taobao.com/api.htm?spm=a219a.7386653.0.0.77e7669aoxOfiV&source=search&docId=59&docType=2
	Divisioncode string `json:"divisioncode,omitempty" xml:"divisioncode,omitempty"`
	// 计划采购金额(单位元),如最终订单成交价与期望金额不同则直接关单采购失败,计算方式:运费+商品成本价
	ExpectOrderFee string `json:"expect_order_fee,omitempty" xml:"expect_order_fee,omitempty"`
	// 收货地址的手机号码
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 收货地址的收件人姓名
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 商品的id
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 商品数量
	Nums int64 `json:"nums,omitempty" xml:"nums,omitempty"`
	// 订单的外部订单号,用来防止重复提交。需要以TOP:  appkey_(如:100000_) 开头,最长32位
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 外部订单交易金额(单位元),即消费者在渠道的实付金额
	OuterOrderFee string `json:"outer_order_fee,omitempty" xml:"outer_order_fee,omitempty"`
	// 收货地址的电话号码
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 收货地址的邮编,为空或者6位数字的邮编
	Postcode string `json:"postcode,omitempty" xml:"postcode,omitempty"`
	// 创建交易时的物流方式。 具体的值从 taobao.openmall.trade.render 接口获取,邮费0说明为包邮
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
	// 商品对应的SKUID,无SKU商品传0
	SkuIids int64 `json:"sku_iids,omitempty" xml:"sku_iids,omitempty"`
	// 创建订单传入true的时候,订单支付后会进入半小时的hold单(订单状态为:PAID_FORBID_CONSIGN),此时订单不会发货,用户可以调用Openmall地址修改接口修改订单收货地址,半小时结束后订单自动结束hold单进入发货流程订单状态为(WAIT_SELLER_SEND_GOODS)
	NeedErpHold bool `json:"need_erp_hold,omitempty" xml:"need_erp_hold,omitempty"`
}

TopTradeCreateDo

type TopTradeDetailVo

type TopTradeDetailVo struct {
	// 订单ID
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 外部outid
	OutId string `json:"out_id,omitempty" xml:"out_id,omitempty"`
	// 实付金额
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
	// 邮费
	PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"`
	// 商品ID
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 商品数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 订单状态,该字段存在延迟,请参考taoboa.openmall.trade.get
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 支付宝交易号
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 下单用户渠道
	BuyerChannel string `json:"buyer_channel,omitempty" xml:"buyer_channel,omitempty"`
	// 下单用户渠道openid
	BuyerChannelId string `json:"buyer_channel_id,omitempty" xml:"buyer_channel_id,omitempty"`
	// 买家备注
	BuyerMemo string `json:"buyer_memo,omitempty" xml:"buyer_memo,omitempty"`
	// 卖家发货时间。格式:yyyy-MM-dd HH:mm:ss
	ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"`
	// 交易创建时间。格式:yyyy-MM-dd HH:mm:ss
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 下单媒体渠道
	Distributor string `json:"distributor,omitempty" xml:"distributor,omitempty"`
	// 交易结束时间。交易成功时间(更新交易状态为成功的同时更新)/确认收货时间或者交易关闭时间 。格式:yyyy-MM-dd HH:mm:ss
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 商家的预计发货时间
	EstConTime string `json:"est_con_time,omitempty" xml:"est_con_time,omitempty"`
	// 是否包含邮费
	HasPostFee bool `json:"has_post_fee,omitempty" xml:"has_post_fee,omitempty"`
	// 订单出现异常问题的时候,给予用户的描述,没有异常的时候,此值为空
	MarkDesc string `json:"mark_desc,omitempty" xml:"mark_desc,omitempty"`
	// 交易修改时间(用户对订单的任何修改都会更新此字段)。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 订单列表
	Orders []TopOrderVo `json:"orders,omitempty" xml:"orders>top_order_vo,omitempty"`
	// 付款时间。格式:yyyy-MM-dd HH:mm:ss。订单的付款时间即为物流订单的创建时间。
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 收货人的详细地址
	ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"`
	// 收货人的所在城市 注:因为国家对于城市和地区的划分的有:省直辖市和省直辖县级行政区(区级别的)划分的,淘宝这边根据这个差异保存在不同字段里面比如:广东广州:广州属于一个直辖市是放在的receiver_city的字段里面;而河南济源:济源属于省直辖县级行政区划分,是区级别的,放在了receiver_district里面 建议:程序依赖于城市字段做物流等判断的操作,最好加一个判断逻辑:如果返回值里面只有receiver_district参数,该参数作为城市
	ReceiverCity string `json:"receiver_city,omitempty" xml:"receiver_city,omitempty"`
	// 收货人国籍
	ReceiverCountry string `json:"receiver_country,omitempty" xml:"receiver_country,omitempty"`
	// 收货人的所在地区 注:因为国家对于城市和地区的划分的有:省直辖市和省直辖县级行政区(区级别的)划分的,淘宝这边根据这个差异保存在不同字段里面比如:广东广州:广州属于一个直辖市是放在的receiver_city的字段里面;而河南济源:济源属于省直辖县级行政区划分,是区级别的,放在了receiver_district里面 建议:程序依赖于城市字段做物流等判断的操作,最好加一个判断逻辑:如果返回值里面只有receiver_district参数,该参数作为城市
	ReceiverDistrict string `json:"receiver_district,omitempty" xml:"receiver_district,omitempty"`
	// 收货人手机号
	ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"`
	// 收货人姓名
	ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"`
	// 收货人电话
	ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"`
	// 收货人的所在省份
	ReceiverState string `json:"receiver_state,omitempty" xml:"receiver_state,omitempty"`
	// 收货人街道地址
	ReceiverTown string `json:"receiver_town,omitempty" xml:"receiver_town,omitempty"`
	// 收货人的邮编
	ReceiverZip string `json:"receiver_zip,omitempty" xml:"receiver_zip,omitempty"`
	// 商家
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 创建交易时的物流方式(交易完成前,物流方式有可能改变,但系统里的这个字段一直不变)。可选值:free(卖家包邮),post(平邮),express(快递)
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"`
	// 运单号,订单实际物流单号取 orders中的invoice_no和logistics_company
	Sid string `json:"sid,omitempty" xml:"sid,omitempty"`
	// 交易标题,以店铺名作为此标题的值。注:taobao.trades.get接口返回的Trade中的title是商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商品金额(商品价格乘以数量的总金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 交易备注。
	TradeMemo string `json:"trade_memo,omitempty" xml:"trade_memo,omitempty"`
}

TopTradeDetailVo

type TopTradeResultVo

type TopTradeResultVo struct {
	// 淘宝交易ID
	Tid string `json:"tid,omitempty" xml:"tid,omitempty"`
	// 发货地址对应的areaid
	AreaId int64 `json:"area_id,omitempty" xml:"area_id,omitempty"`
	// 商品ID
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 发货地址
	Location string `json:"location,omitempty" xml:"location,omitempty"`
	// 运费列表
	Posts []PostDo `json:"posts,omitempty" xml:"posts>post_do,omitempty"`
}

TopTradeResultVo

type TransitStepInfoVo

type TransitStepInfoVo struct {
	// 节点说明
	Action string `json:"action,omitempty" xml:"action,omitempty"`
	// 状态描述
	StatusDesc string `json:"status_desc,omitempty" xml:"status_desc,omitempty"`
	// 状态发生的时间
	StatusTime string `json:"status_time,omitempty" xml:"status_time,omitempty"`
}

TransitStepInfoVo

Source Files

Jump to

Keyboard shortcuts

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