exchange

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

换货API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	// 换货单状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 修改时间
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 换货单号ID
	DisputeId string `json:"dispute_id,omitempty" xml:"dispute_id,omitempty"`
	// 正向交易单号ID
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 买家发货物流单号
	BuyerLogisticNo string `json:"buyer_logistic_no,omitempty" xml:"buyer_logistic_no,omitempty"`
	// 支付宝单号ID
	AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"`
	// 换货理由说明
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 换货申请理由
	Reason string `json:"reason,omitempty" xml:"reason,omitempty"`
	// 申请换货的状态:售中换货 or 售后换货
	RefundPhase string `json:"refund_phase,omitempty" xml:"refund_phase,omitempty"`
	// 操作场景
	OperationContraint string `json:"operation_contraint,omitempty" xml:"operation_contraint,omitempty"`
	// 商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 换货单创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 先行垫付状态
	AdvanceStatus int64 `json:"advance_status,omitempty" xml:"advance_status,omitempty"`
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 换货版本
	RefundVersion int64 `json:"refund_version,omitempty" xml:"refund_version,omitempty"`
	// 换货数量
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 卖家发货快递单号
	SellerLogisticNo string `json:"seller_logistic_no,omitempty" xml:"seller_logistic_no,omitempty"`
	// 价格
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 小二托管状态
	CsStatus int64 `json:"cs_status,omitempty" xml:"cs_status,omitempty"`
	// 卖家换货地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 商品状态
	GoodStatus string `json:"good_status,omitempty" xml:"good_status,omitempty"`
	// 换货商品的sku
	ExchangeSku string `json:"exchange_sku,omitempty" xml:"exchange_sku,omitempty"`
	// buyerAddress
	BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"`
	// 超时时间
	TimeOut string `json:"time_out,omitempty" xml:"time_out,omitempty"`
	// 买家发货物流公司名称
	BuyerLogisticName string `json:"buyer_logistic_name,omitempty" xml:"buyer_logistic_name,omitempty"`
	// 卖家发货物流公司名称
	SellerLogisticName string `json:"seller_logistic_name,omitempty" xml:"seller_logistic_name,omitempty"`
	// 所购买的商品sku
	BoughtSku string `json:"bought_sku,omitempty" xml:"bought_sku,omitempty"`
	// 买家联系方式
	BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"`
	// buyerName
	BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"`
	// attributes
	Attributes string `json:"attributes,omitempty" xml:"attributes,omitempty"`
	// 支付费用
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
}

Exchange

type ExchangeBaseResponse

type ExchangeBaseResponse struct {
	// 返回结果说明
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 返回结果码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 是否成功调用
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 换货单信息
	Exchange *Exchange `json:"exchange,omitempty" xml:"exchange,omitempty"`
}

ExchangeBaseResponse

type PicUrl

type PicUrl struct {
	// 图片url
	Url string `json:"url,omitempty" xml:"url,omitempty"`
}

PicUrl

type Reason

type Reason struct {
	// 拒绝原因ID
	ReasonId int64 `json:"reason_id,omitempty" xml:"reason_id,omitempty"`
	// 拒绝原因内容
	ReasonText string `json:"reason_text,omitempty" xml:"reason_text,omitempty"`
}

Reason

type RefundBaseResponse

type RefundBaseResponse struct {
	// message
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// exchange
	Exchange *Exchange `json:"exchange,omitempty" xml:"exchange,omitempty"`
}

RefundBaseResponse

type RefundMessage

type RefundMessage struct {
	// 换货单号ID
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 留言创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 留言ID
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 留言者ID
	OwnerId int64 `json:"owner_id,omitempty" xml:"owner_id,omitempty"`
	// 留言者昵称
	OwnerNick string `json:"owner_nick,omitempty" xml:"owner_nick,omitempty"`
	// 留言内容
	Content string `json:"content,omitempty" xml:"content,omitempty"`
	// 凭证信息
	PicUrls []PicUrl `json:"pic_urls,omitempty" xml:"pic_urls>pic_url,omitempty"`
	// 留言类型:系统或是人工
	MessageType string `json:"message_type,omitempty" xml:"message_type,omitempty"`
	// 留言者橘色
	OwnerRole string `json:"owner_role,omitempty" xml:"owner_role,omitempty"`
}

RefundMessage

type RefundMessageResult

type RefundMessageResult struct {
	// 当前页面的留言条数
	PageResults int64 `json:"page_results,omitempty" xml:"page_results,omitempty"`
	// 留言记录
	Results []RefundMessage `json:"results,omitempty" xml:"results>refund_message,omitempty"`
	// 所有留言记录数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 是否有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 异常信息
	Exception string `json:"exception,omitempty" xml:"exception,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

RefundMessageResult

type TmallExchangeAgreeAPIRequest added in v1.2.0

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

卖家同意换货申请 API请求 tmall.exchange.agree

卖家同意换货申请

func NewTmallExchangeAgreeRequest

func NewTmallExchangeAgreeRequest() *TmallExchangeAgreeAPIRequest

初始化TmallExchangeAgreeAPIRequest对象

func (TmallExchangeAgreeAPIRequest) GetAddressId added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetAddressId() int64

AddressId Getter

func (TmallExchangeAgreeAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeAgreeAPIRequest) GetApiParams added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeAgreeAPIRequest) GetCompleteAddress added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetCompleteAddress() string

CompleteAddress Getter

func (TmallExchangeAgreeAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeAgreeAPIRequest) GetFields added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetFields() []string

Fields Getter

func (TmallExchangeAgreeAPIRequest) GetLeaveMessage added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetLeaveMessage() string

LeaveMessage Getter

func (TmallExchangeAgreeAPIRequest) GetLeaveMessagePics added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetLeaveMessagePics() *model.File

LeaveMessagePics Getter

func (TmallExchangeAgreeAPIRequest) GetMobile added in v1.2.0

func (r TmallExchangeAgreeAPIRequest) GetMobile() string

Mobile Getter

func (TmallExchangeAgreeAPIRequest) GetPost added in v1.2.0

Post Getter

func (*TmallExchangeAgreeAPIRequest) SetAddressId added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetAddressId(_addressId int64) error

AddressId Setter 收货地址id,如需获取请调用该top接口:taobao.logistics.address.search,对应属性为contact_id

func (*TmallExchangeAgreeAPIRequest) SetCompleteAddress added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetCompleteAddress(_completeAddress string) error

CompleteAddress Setter 详细收货地址

func (*TmallExchangeAgreeAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeAgreeAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。当前支持的有 dispute_id, bizorder_id, modified, status

func (*TmallExchangeAgreeAPIRequest) SetLeaveMessage added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetLeaveMessage(_leaveMessage string) error

LeaveMessage Setter 卖家留言

func (*TmallExchangeAgreeAPIRequest) SetLeaveMessagePics added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error

LeaveMessagePics Setter 上传图片举证

func (*TmallExchangeAgreeAPIRequest) SetMobile added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetMobile(_mobile string) error

Mobile Setter 收货人手机号

func (*TmallExchangeAgreeAPIRequest) SetPost added in v1.2.0

func (r *TmallExchangeAgreeAPIRequest) SetPost(_post string) error

Post Setter 邮政编码

type TmallExchangeAgreeAPIResponse

type TmallExchangeAgreeAPIResponse struct {
	model.CommonResponse
	TmallExchangeAgreeAPIResponseModel
}

卖家同意换货申请 API返回值 tmall.exchange.agree

卖家同意换货申请

type TmallExchangeAgreeAPIResponseModel added in v1.2.0

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

卖家同意换货申请 成功返回结果

type TmallExchangeConsigngoodsAPIRequest added in v1.2.0

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

卖家发货 API请求 tmall.exchange.consigngoods

卖家发货

func NewTmallExchangeConsigngoodsRequest

func NewTmallExchangeConsigngoodsRequest() *TmallExchangeConsigngoodsAPIRequest

初始化TmallExchangeConsigngoodsAPIRequest对象

func (TmallExchangeConsigngoodsAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeConsigngoodsAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeConsigngoodsAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallExchangeConsigngoodsAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeConsigngoodsAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeConsigngoodsAPIRequest) GetFields added in v1.2.0

Fields Getter

func (TmallExchangeConsigngoodsAPIRequest) GetLogisticsCompanyName added in v1.2.0

func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsCompanyName() string

LogisticsCompanyName Getter

func (TmallExchangeConsigngoodsAPIRequest) GetLogisticsNo added in v1.2.0

func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsNo() string

LogisticsNo Getter

func (TmallExchangeConsigngoodsAPIRequest) GetLogisticsType added in v1.2.0

func (r TmallExchangeConsigngoodsAPIRequest) GetLogisticsType() int64

LogisticsType Getter

func (*TmallExchangeConsigngoodsAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeConsigngoodsAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeConsigngoodsAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeConsigngoodsAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段

func (*TmallExchangeConsigngoodsAPIRequest) SetLogisticsCompanyName added in v1.2.0

func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsCompanyName(_logisticsCompanyName string) error

LogisticsCompanyName Setter 卖家发货的快递公司

func (*TmallExchangeConsigngoodsAPIRequest) SetLogisticsNo added in v1.2.0

func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsNo(_logisticsNo string) error

LogisticsNo Setter 卖家发货的物流单号

func (*TmallExchangeConsigngoodsAPIRequest) SetLogisticsType added in v1.2.0

func (r *TmallExchangeConsigngoodsAPIRequest) SetLogisticsType(_logisticsType int64) error

LogisticsType Setter 卖家发货的物流类型,100表示平邮,200表示快递

type TmallExchangeConsigngoodsAPIResponse

type TmallExchangeConsigngoodsAPIResponse struct {
	model.CommonResponse
	TmallExchangeConsigngoodsAPIResponseModel
}

卖家发货 API返回值 tmall.exchange.consigngoods

卖家发货

type TmallExchangeConsigngoodsAPIResponseModel added in v1.2.0

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

卖家发货 成功返回结果

type TmallExchangeGetAPIRequest added in v1.2.0

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

获取单笔换货详情 API请求 tmall.exchange.get

获取单笔换货详情

func NewTmallExchangeGetRequest

func NewTmallExchangeGetRequest() *TmallExchangeGetAPIRequest

初始化TmallExchangeGetAPIRequest对象

func (TmallExchangeGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeGetAPIRequest) GetApiParams added in v1.2.0

func (r TmallExchangeGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeGetAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeGetAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeGetAPIRequest) GetFields added in v1.2.0

func (r TmallExchangeGetAPIRequest) GetFields() []string

Fields Getter

func (*TmallExchangeGetAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeGetAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeGetAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeGetAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick

type TmallExchangeGetAPIResponse

type TmallExchangeGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeGetAPIResponseModel
}

获取单笔换货详情 API返回值 tmall.exchange.get

获取单笔换货详情

type TmallExchangeGetAPIResponseModel added in v1.2.0

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

获取单笔换货详情 成功返回结果

type TmallExchangeMessageAddAPIRequest added in v1.2.0

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

卖家创建换货留言 API请求 tmall.exchange.message.add

卖家创建换货留言

func NewTmallExchangeMessageAddRequest

func NewTmallExchangeMessageAddRequest() *TmallExchangeMessageAddAPIRequest

初始化TmallExchangeMessageAddAPIRequest对象

func (TmallExchangeMessageAddAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeMessageAddAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeMessageAddAPIRequest) GetApiParams added in v1.2.0

func (r TmallExchangeMessageAddAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeMessageAddAPIRequest) GetContent added in v1.2.0

Content Getter

func (TmallExchangeMessageAddAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeMessageAddAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeMessageAddAPIRequest) GetFields added in v1.2.0

func (r TmallExchangeMessageAddAPIRequest) GetFields() []string

Fields Getter

func (TmallExchangeMessageAddAPIRequest) GetMessagePics added in v1.2.0

func (r TmallExchangeMessageAddAPIRequest) GetMessagePics() *model.File

MessagePics Getter

func (*TmallExchangeMessageAddAPIRequest) SetContent added in v1.2.0

func (r *TmallExchangeMessageAddAPIRequest) SetContent(_content string) error

Content Setter 留言内容

func (*TmallExchangeMessageAddAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeMessageAddAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeMessageAddAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeMessageAddAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。目前支持id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type

func (*TmallExchangeMessageAddAPIRequest) SetMessagePics added in v1.2.0

func (r *TmallExchangeMessageAddAPIRequest) SetMessagePics(_messagePics *model.File) error

MessagePics Setter 凭证图片列表

type TmallExchangeMessageAddAPIResponse

type TmallExchangeMessageAddAPIResponse struct {
	model.CommonResponse
	TmallExchangeMessageAddAPIResponseModel
}

卖家创建换货留言 API返回值 tmall.exchange.message.add

卖家创建换货留言

type TmallExchangeMessageAddAPIResponseModel added in v1.2.0

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

卖家创建换货留言 成功返回结果

type TmallExchangeMessageAddResultSet

type TmallExchangeMessageAddResultSet struct {
	// 留言信息
	Results []RefundMessage `json:"results,omitempty" xml:"results>refund_message,omitempty"`
	// 异常信息
	Exception string `json:"exception,omitempty" xml:"exception,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

TmallExchangeMessageAddResultSet

type TmallExchangeMessagesGetAPIRequest added in v1.2.0

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

查询换货订单留言列表 API请求 tmall.exchange.messages.get

查询换货订单留言列表

func NewTmallExchangeMessagesGetRequest

func NewTmallExchangeMessagesGetRequest() *TmallExchangeMessagesGetAPIRequest

初始化TmallExchangeMessagesGetAPIRequest对象

func (TmallExchangeMessagesGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeMessagesGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeMessagesGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallExchangeMessagesGetAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeMessagesGetAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeMessagesGetAPIRequest) GetFields added in v1.2.0

Fields Getter

func (TmallExchangeMessagesGetAPIRequest) GetOperatorRoles added in v1.2.0

func (r TmallExchangeMessagesGetAPIRequest) GetOperatorRoles() []int64

OperatorRoles Getter

func (TmallExchangeMessagesGetAPIRequest) GetPageNo added in v1.2.0

PageNo Getter

func (TmallExchangeMessagesGetAPIRequest) GetPageSize added in v1.2.0

func (r TmallExchangeMessagesGetAPIRequest) GetPageSize() int64

PageSize Getter

func (*TmallExchangeMessagesGetAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeMessagesGetAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeMessagesGetAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeMessagesGetAPIRequest) SetFields(_fields []string) error

Fields Setter 返回的字段。具体包括:id,refund_id,owner_id,owner_nick,owner_role,content,pic_urls,created,message_type

func (*TmallExchangeMessagesGetAPIRequest) SetOperatorRoles added in v1.2.0

func (r *TmallExchangeMessagesGetAPIRequest) SetOperatorRoles(_operatorRoles []int64) error

OperatorRoles Setter 留言创建角色。具体包括:卖家主账户(1)、卖家子账户(2)、小二(3)、买家(4)、系统(5)、系统超时(6)

func (*TmallExchangeMessagesGetAPIRequest) SetPageNo added in v1.2.0

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

PageNo Setter 页码

func (*TmallExchangeMessagesGetAPIRequest) SetPageSize added in v1.2.0

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

PageSize Setter 每页条数

type TmallExchangeMessagesGetAPIResponse

type TmallExchangeMessagesGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeMessagesGetAPIResponseModel
}

查询换货订单留言列表 API返回值 tmall.exchange.messages.get

查询换货订单留言列表

type TmallExchangeMessagesGetAPIResponseModel added in v1.2.0

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

查询换货订单留言列表 成功返回结果

type TmallExchangeReceiveGetAPIRequest added in v1.2.0

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

卖家查询换货列表 API请求 tmall.exchange.receive.get

卖家查询换货列表

func NewTmallExchangeReceiveGetRequest

func NewTmallExchangeReceiveGetRequest() *TmallExchangeReceiveGetAPIRequest

初始化TmallExchangeReceiveGetAPIRequest对象

func (TmallExchangeReceiveGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReceiveGetAPIRequest) GetApiParams added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeReceiveGetAPIRequest) GetBizOrderId added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetBizOrderId() int64

BizOrderId Getter

func (TmallExchangeReceiveGetAPIRequest) GetBuyerId added in v1.2.0

BuyerId Getter

func (TmallExchangeReceiveGetAPIRequest) GetBuyerNick added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetBuyerNick() string

BuyerNick Getter

func (TmallExchangeReceiveGetAPIRequest) GetDisputeStatusArray added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetDisputeStatusArray() []int64

DisputeStatusArray Getter

func (TmallExchangeReceiveGetAPIRequest) GetEndCreatedTime added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetEndCreatedTime() string

EndCreatedTime Getter

func (TmallExchangeReceiveGetAPIRequest) GetEndGmtModifedTime added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetEndGmtModifedTime() string

EndGmtModifedTime Getter

func (TmallExchangeReceiveGetAPIRequest) GetFields added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetFields() []string

Fields Getter

func (TmallExchangeReceiveGetAPIRequest) GetLogisticNo added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetLogisticNo() string

LogisticNo Getter

func (TmallExchangeReceiveGetAPIRequest) GetPageNo added in v1.2.0

PageNo Getter

func (TmallExchangeReceiveGetAPIRequest) GetPageSize added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetPageSize() int64

PageSize Getter

func (TmallExchangeReceiveGetAPIRequest) GetRefundIdArray added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetRefundIdArray() []int64

RefundIdArray Getter

func (TmallExchangeReceiveGetAPIRequest) GetStartCreatedTime added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetStartCreatedTime() string

StartCreatedTime Getter

func (TmallExchangeReceiveGetAPIRequest) GetStartGmtModifiedTime added in v1.2.0

func (r TmallExchangeReceiveGetAPIRequest) GetStartGmtModifiedTime() string

StartGmtModifiedTime Getter

func (*TmallExchangeReceiveGetAPIRequest) SetBizOrderId added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetBizOrderId(_bizOrderId int64) error

BizOrderId Setter 正向订单号

func (*TmallExchangeReceiveGetAPIRequest) SetBuyerId added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetBuyerId(_buyerId int64) error

BuyerId Setter 买家id

func (*TmallExchangeReceiveGetAPIRequest) SetBuyerNick added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetBuyerNick(_buyerNick string) error

BuyerNick Setter 买家昵称

func (*TmallExchangeReceiveGetAPIRequest) SetDisputeStatusArray added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetDisputeStatusArray(_disputeStatusArray []int64) error

DisputeStatusArray Setter 换货状态,具体包括:换货待处理(1), 待买家退货(2), 买家已退货,待收货(3), 换货关闭(4), 换货成功(5), 待买家修改(6), 待发出换货商品(12), 待买家收货(13), 请退款(14)

func (*TmallExchangeReceiveGetAPIRequest) SetEndCreatedTime added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetEndCreatedTime(_endCreatedTime string) error

EndCreatedTime Setter 查询申请时间段的结束时间点

func (*TmallExchangeReceiveGetAPIRequest) SetEndGmtModifedTime added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetEndGmtModifedTime(_endGmtModifedTime string) error

EndGmtModifedTime Setter 查询修改时间段的结束时间点

func (*TmallExchangeReceiveGetAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。目前支持dispute_id, bizorder_id, num, buyer_nick, status, created, modified, reason, title, buyer_logistic_no, seller_logistic_no, bought_sku, exchange_sku, buyer_address, address, buyer_phone, buyer_logistic_name, seller_logistic_name, alipay_no, buyer_name, seller_nick

func (*TmallExchangeReceiveGetAPIRequest) SetLogisticNo added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetLogisticNo(_logisticNo string) error

LogisticNo Setter 快递单号

func (*TmallExchangeReceiveGetAPIRequest) SetPageNo added in v1.2.0

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

PageNo Setter 页码

func (*TmallExchangeReceiveGetAPIRequest) SetPageSize added in v1.2.0

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

PageSize Setter 每页条数

func (*TmallExchangeReceiveGetAPIRequest) SetRefundIdArray added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetRefundIdArray(_refundIdArray []int64) error

RefundIdArray Setter 退款单号ID列表,最多只能输入20个id

func (*TmallExchangeReceiveGetAPIRequest) SetStartCreatedTime added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetStartCreatedTime(_startCreatedTime string) error

StartCreatedTime Setter 查询申请时间段的开始时间点

func (*TmallExchangeReceiveGetAPIRequest) SetStartGmtModifiedTime added in v1.2.0

func (r *TmallExchangeReceiveGetAPIRequest) SetStartGmtModifiedTime(_startGmtModifiedTime string) error

StartGmtModifiedTime Setter 查询修改时间段的开始时间点

type TmallExchangeReceiveGetAPIResponse

type TmallExchangeReceiveGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeReceiveGetAPIResponseModel
}

卖家查询换货列表 API返回值 tmall.exchange.receive.get

卖家查询换货列表

type TmallExchangeReceiveGetAPIResponseModel added in v1.2.0

type TmallExchangeReceiveGetAPIResponseModel struct {
	XMLName xml.Name `xml:"tmall_exchange_receive_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 所有符合查询条件的换货单的数量
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 返回结果
	Results []Exchange `json:"results,omitempty" xml:"results>exchange,omitempty"`
	// 当前页的换货单数量
	PageResults int64 `json:"page_results,omitempty" xml:"page_results,omitempty"`
	// 是否还有下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
	// 所抛出异常
	Exception string `json:"exception,omitempty" xml:"exception,omitempty"`
	// 错误码
	ErrorCodes string `json:"error_codes,omitempty" xml:"error_codes,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

卖家查询换货列表 成功返回结果

type TmallExchangeRefuseAPIRequest added in v1.2.0

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

卖家拒绝换货申请 API请求 tmall.exchange.refuse

卖家拒绝换货申请

func NewTmallExchangeRefuseRequest

func NewTmallExchangeRefuseRequest() *TmallExchangeRefuseAPIRequest

初始化TmallExchangeRefuseAPIRequest对象

func (TmallExchangeRefuseAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeRefuseAPIRequest) GetApiParams added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeRefuseAPIRequest) GetDisputeId added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeRefuseAPIRequest) GetFields added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetFields() []string

Fields Getter

func (TmallExchangeRefuseAPIRequest) GetLeaveMessage added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetLeaveMessage() string

LeaveMessage Getter

func (TmallExchangeRefuseAPIRequest) GetLeaveMessagePics added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetLeaveMessagePics() *model.File

LeaveMessagePics Getter

func (TmallExchangeRefuseAPIRequest) GetSellerRefuseReasonId added in v1.2.0

func (r TmallExchangeRefuseAPIRequest) GetSellerRefuseReasonId() int64

SellerRefuseReasonId Getter

func (*TmallExchangeRefuseAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeRefuseAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeRefuseAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeRefuseAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。目前支持dispute_id, bizorder_id, modified, status

func (*TmallExchangeRefuseAPIRequest) SetLeaveMessage added in v1.2.0

func (r *TmallExchangeRefuseAPIRequest) SetLeaveMessage(_leaveMessage string) error

LeaveMessage Setter 拒绝换货申请时的留言

func (*TmallExchangeRefuseAPIRequest) SetLeaveMessagePics added in v1.2.0

func (r *TmallExchangeRefuseAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error

LeaveMessagePics Setter 凭证图片

func (*TmallExchangeRefuseAPIRequest) SetSellerRefuseReasonId added in v1.2.0

func (r *TmallExchangeRefuseAPIRequest) SetSellerRefuseReasonId(_sellerRefuseReasonId int64) error

SellerRefuseReasonId Setter 换货原因对应ID

type TmallExchangeRefuseAPIResponse

type TmallExchangeRefuseAPIResponse struct {
	model.CommonResponse
	TmallExchangeRefuseAPIResponseModel
}

卖家拒绝换货申请 API返回值 tmall.exchange.refuse

卖家拒绝换货申请

type TmallExchangeRefuseAPIResponseModel added in v1.2.0

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

卖家拒绝换货申请 成功返回结果

type TmallExchangeRefusereasonGetAPIRequest added in v1.2.0

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

获取拒绝换货原因列表 API请求 tmall.exchange.refusereason.get

获取拒绝换货原因列表

func NewTmallExchangeRefusereasonGetRequest

func NewTmallExchangeRefusereasonGetRequest() *TmallExchangeRefusereasonGetAPIRequest

初始化TmallExchangeRefusereasonGetAPIRequest对象

func (TmallExchangeRefusereasonGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeRefusereasonGetAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeRefusereasonGetAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallExchangeRefusereasonGetAPIRequest) GetDisputeId added in v1.2.0

DisputeId Getter

func (TmallExchangeRefusereasonGetAPIRequest) GetDisputeType added in v1.2.0

func (r TmallExchangeRefusereasonGetAPIRequest) GetDisputeType() int64

DisputeType Getter

func (TmallExchangeRefusereasonGetAPIRequest) GetFields added in v1.2.0

Fields Getter

func (*TmallExchangeRefusereasonGetAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeRefusereasonGetAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeRefusereasonGetAPIRequest) SetDisputeType added in v1.2.0

func (r *TmallExchangeRefusereasonGetAPIRequest) SetDisputeType(_disputeType int64) error

DisputeType Setter 换货申请类型:0-任意类型;1-售中;2-售后

func (*TmallExchangeRefusereasonGetAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeRefusereasonGetAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段

type TmallExchangeRefusereasonGetAPIResponse

type TmallExchangeRefusereasonGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeRefusereasonGetAPIResponseModel
}

获取拒绝换货原因列表 API返回值 tmall.exchange.refusereason.get

获取拒绝换货原因列表

type TmallExchangeRefusereasonGetAPIResponseModel added in v1.2.0

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

获取拒绝换货原因列表 成功返回结果

type TmallExchangeRefusereasonGetResultSet

type TmallExchangeRefusereasonGetResultSet struct {
	// 拒绝原因列表
	Results []Reason `json:"results,omitempty" xml:"results>reason,omitempty"`
	// 拒绝原因总数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
	// 异常信息
	Exception string `json:"exception,omitempty" xml:"exception,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
}

TmallExchangeRefusereasonGetResultSet

type TmallExchangeReturngoodsAgreeAPIRequest added in v1.2.0

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

卖家确认收货 API请求 tmall.exchange.returngoods.agree

卖家确认收货

func NewTmallExchangeReturngoodsAgreeRequest

func NewTmallExchangeReturngoodsAgreeRequest() *TmallExchangeReturngoodsAgreeAPIRequest

初始化TmallExchangeReturngoodsAgreeAPIRequest对象

func (TmallExchangeReturngoodsAgreeAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeReturngoodsAgreeAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReturngoodsAgreeAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallExchangeReturngoodsAgreeAPIRequest) GetDisputeId added in v1.2.0

DisputeId Getter

func (TmallExchangeReturngoodsAgreeAPIRequest) GetFields added in v1.2.0

Fields Getter

func (*TmallExchangeReturngoodsAgreeAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeReturngoodsAgreeAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeReturngoodsAgreeAPIRequest) SetFields added in v1.2.0

func (r *TmallExchangeReturngoodsAgreeAPIRequest) SetFields(_fields []string) error

Fields Setter 返回字段。目前支持dispute_id(换货单号ID),bizorder_id(正向交易单号ID), modified(订单修改时间), status(当前换货状态)

type TmallExchangeReturngoodsAgreeAPIResponse

type TmallExchangeReturngoodsAgreeAPIResponse struct {
	model.CommonResponse
	TmallExchangeReturngoodsAgreeAPIResponseModel
}

卖家确认收货 API返回值 tmall.exchange.returngoods.agree

卖家确认收货

type TmallExchangeReturngoodsAgreeAPIResponseModel added in v1.2.0

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

卖家确认收货 成功返回结果

type TmallExchangeReturngoodsRefuseAPIRequest added in v1.2.0

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

卖家拒绝确认收货 API请求 tmall.exchange.returngoods.refuse

卖家拒绝买家换货申请

func NewTmallExchangeReturngoodsRefuseRequest

func NewTmallExchangeReturngoodsRefuseRequest() *TmallExchangeReturngoodsRefuseAPIRequest

初始化TmallExchangeReturngoodsRefuseAPIRequest对象

func (TmallExchangeReturngoodsRefuseAPIRequest) GetApiMethodName added in v1.2.0

func (r TmallExchangeReturngoodsRefuseAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReturngoodsRefuseAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

func (TmallExchangeReturngoodsRefuseAPIRequest) GetDisputeId added in v1.2.0

DisputeId Getter

func (TmallExchangeReturngoodsRefuseAPIRequest) GetLeaveMessage added in v1.2.0

LeaveMessage Getter

func (TmallExchangeReturngoodsRefuseAPIRequest) GetLeaveMessagePics added in v1.2.0

func (r TmallExchangeReturngoodsRefuseAPIRequest) GetLeaveMessagePics() *model.File

LeaveMessagePics Getter

func (TmallExchangeReturngoodsRefuseAPIRequest) GetSellerRefuseReasonId added in v1.2.0

func (r TmallExchangeReturngoodsRefuseAPIRequest) GetSellerRefuseReasonId() int64

SellerRefuseReasonId Getter

func (*TmallExchangeReturngoodsRefuseAPIRequest) SetDisputeId added in v1.2.0

func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetDisputeId(_disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessage added in v1.2.0

func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessage(_leaveMessage string) error

LeaveMessage Setter 留言说明

func (*TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessagePics added in v1.2.0

func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetLeaveMessagePics(_leaveMessagePics *model.File) error

LeaveMessagePics Setter 凭证图片

func (*TmallExchangeReturngoodsRefuseAPIRequest) SetSellerRefuseReasonId added in v1.2.0

func (r *TmallExchangeReturngoodsRefuseAPIRequest) SetSellerRefuseReasonId(_sellerRefuseReasonId int64) error

SellerRefuseReasonId Setter 拒绝原因ID

type TmallExchangeReturngoodsRefuseAPIResponse

type TmallExchangeReturngoodsRefuseAPIResponse struct {
	model.CommonResponse
	TmallExchangeReturngoodsRefuseAPIResponseModel
}

卖家拒绝确认收货 API返回值 tmall.exchange.returngoods.refuse

卖家拒绝买家换货申请

type TmallExchangeReturngoodsRefuseAPIResponseModel added in v1.2.0

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

卖家拒绝确认收货 成功返回结果

Jump to

Keyboard shortcuts

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