exchange

package
v1.1.5 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

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 TmallExchangeAgreeAPIResponse

type TmallExchangeAgreeAPIResponse struct {
	model.CommonResponse
	TmallExchangeAgreeResponse
}

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

卖家同意换货申请

type TmallExchangeAgreeRequest

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

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

卖家同意换货申请

func NewTmallExchangeAgreeRequest

func NewTmallExchangeAgreeRequest() *TmallExchangeAgreeRequest

初始化TmallExchangeAgreeRequest对象

func (TmallExchangeAgreeRequest) GetAddressId

func (r TmallExchangeAgreeRequest) GetAddressId() int64

AddressId Getter

func (TmallExchangeAgreeRequest) GetApiMethodName

func (r TmallExchangeAgreeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeAgreeRequest) GetApiParams

func (r TmallExchangeAgreeRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeAgreeRequest) GetCompleteAddress

func (r TmallExchangeAgreeRequest) GetCompleteAddress() string

CompleteAddress Getter

func (TmallExchangeAgreeRequest) GetDisputeId

func (r TmallExchangeAgreeRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeAgreeRequest) GetFields

func (r TmallExchangeAgreeRequest) GetFields() []string

Fields Getter

func (TmallExchangeAgreeRequest) GetLeaveMessage

func (r TmallExchangeAgreeRequest) GetLeaveMessage() string

LeaveMessage Getter

func (TmallExchangeAgreeRequest) GetLeaveMessagePics

func (r TmallExchangeAgreeRequest) GetLeaveMessagePics() []*model.File

LeaveMessagePics Getter

func (TmallExchangeAgreeRequest) GetMobile

func (r TmallExchangeAgreeRequest) GetMobile() string

Mobile Getter

func (TmallExchangeAgreeRequest) GetPost

func (r TmallExchangeAgreeRequest) GetPost() string

Post Getter

func (*TmallExchangeAgreeRequest) SetAddressId

func (r *TmallExchangeAgreeRequest) SetAddressId(addressId int64) error

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

func (*TmallExchangeAgreeRequest) SetCompleteAddress

func (r *TmallExchangeAgreeRequest) SetCompleteAddress(completeAddress string) error

CompleteAddress Setter 详细收货地址

func (*TmallExchangeAgreeRequest) SetDisputeId

func (r *TmallExchangeAgreeRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeAgreeRequest) SetFields

func (r *TmallExchangeAgreeRequest) SetFields(fields []string) error

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

func (*TmallExchangeAgreeRequest) SetLeaveMessage

func (r *TmallExchangeAgreeRequest) SetLeaveMessage(leaveMessage string) error

LeaveMessage Setter 卖家留言

func (*TmallExchangeAgreeRequest) SetLeaveMessagePics

func (r *TmallExchangeAgreeRequest) SetLeaveMessagePics(leaveMessagePics []*model.File) error

LeaveMessagePics Setter 上传图片举证

func (*TmallExchangeAgreeRequest) SetMobile

func (r *TmallExchangeAgreeRequest) SetMobile(mobile string) error

Mobile Setter 收货人手机号

func (*TmallExchangeAgreeRequest) SetPost

func (r *TmallExchangeAgreeRequest) SetPost(post string) error

Post Setter 邮政编码

type TmallExchangeAgreeResponse

type TmallExchangeAgreeResponse 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 TmallExchangeConsigngoodsAPIResponse

type TmallExchangeConsigngoodsAPIResponse struct {
	model.CommonResponse
	TmallExchangeConsigngoodsResponse
}

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

卖家发货

type TmallExchangeConsigngoodsRequest

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

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

卖家发货

func NewTmallExchangeConsigngoodsRequest

func NewTmallExchangeConsigngoodsRequest() *TmallExchangeConsigngoodsRequest

初始化TmallExchangeConsigngoodsRequest对象

func (TmallExchangeConsigngoodsRequest) GetApiMethodName

func (r TmallExchangeConsigngoodsRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeConsigngoodsRequest) GetApiParams

func (r TmallExchangeConsigngoodsRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeConsigngoodsRequest) GetDisputeId

func (r TmallExchangeConsigngoodsRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeConsigngoodsRequest) GetFields

func (r TmallExchangeConsigngoodsRequest) GetFields() []string

Fields Getter

func (TmallExchangeConsigngoodsRequest) GetLogisticsCompanyName

func (r TmallExchangeConsigngoodsRequest) GetLogisticsCompanyName() string

LogisticsCompanyName Getter

func (TmallExchangeConsigngoodsRequest) GetLogisticsNo

func (r TmallExchangeConsigngoodsRequest) GetLogisticsNo() string

LogisticsNo Getter

func (TmallExchangeConsigngoodsRequest) GetLogisticsType

func (r TmallExchangeConsigngoodsRequest) GetLogisticsType() int64

LogisticsType Getter

func (*TmallExchangeConsigngoodsRequest) SetDisputeId

func (r *TmallExchangeConsigngoodsRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeConsigngoodsRequest) SetFields

func (r *TmallExchangeConsigngoodsRequest) SetFields(fields []string) error

Fields Setter 返回字段

func (*TmallExchangeConsigngoodsRequest) SetLogisticsCompanyName

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

LogisticsCompanyName Setter 卖家发货的快递公司

func (*TmallExchangeConsigngoodsRequest) SetLogisticsNo

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

LogisticsNo Setter 卖家发货的物流单号

func (*TmallExchangeConsigngoodsRequest) SetLogisticsType

func (r *TmallExchangeConsigngoodsRequest) SetLogisticsType(logisticsType int64) error

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

type TmallExchangeConsigngoodsResponse

type TmallExchangeConsigngoodsResponse 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 TmallExchangeGetAPIResponse

type TmallExchangeGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeGetResponse
}

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

获取单笔换货详情

type TmallExchangeGetRequest

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

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

获取单笔换货详情

func NewTmallExchangeGetRequest

func NewTmallExchangeGetRequest() *TmallExchangeGetRequest

初始化TmallExchangeGetRequest对象

func (TmallExchangeGetRequest) GetApiMethodName

func (r TmallExchangeGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeGetRequest) GetApiParams

func (r TmallExchangeGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeGetRequest) GetDisputeId

func (r TmallExchangeGetRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeGetRequest) GetFields

func (r TmallExchangeGetRequest) GetFields() []string

Fields Getter

func (*TmallExchangeGetRequest) SetDisputeId

func (r *TmallExchangeGetRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeGetRequest) SetFields

func (r *TmallExchangeGetRequest) 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 TmallExchangeGetResponse

type TmallExchangeGetResponse 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 TmallExchangeMessageAddAPIResponse

type TmallExchangeMessageAddAPIResponse struct {
	model.CommonResponse
	TmallExchangeMessageAddResponse
}

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

卖家创建换货留言

type TmallExchangeMessageAddRequest

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

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

卖家创建换货留言

func NewTmallExchangeMessageAddRequest

func NewTmallExchangeMessageAddRequest() *TmallExchangeMessageAddRequest

初始化TmallExchangeMessageAddRequest对象

func (TmallExchangeMessageAddRequest) GetApiMethodName

func (r TmallExchangeMessageAddRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeMessageAddRequest) GetApiParams

func (r TmallExchangeMessageAddRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeMessageAddRequest) GetContent

func (r TmallExchangeMessageAddRequest) GetContent() string

Content Getter

func (TmallExchangeMessageAddRequest) GetDisputeId

func (r TmallExchangeMessageAddRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeMessageAddRequest) GetFields

func (r TmallExchangeMessageAddRequest) GetFields() []string

Fields Getter

func (TmallExchangeMessageAddRequest) GetMessagePics

func (r TmallExchangeMessageAddRequest) GetMessagePics() []*model.File

MessagePics Getter

func (*TmallExchangeMessageAddRequest) SetContent

func (r *TmallExchangeMessageAddRequest) SetContent(content string) error

Content Setter 留言内容

func (*TmallExchangeMessageAddRequest) SetDisputeId

func (r *TmallExchangeMessageAddRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeMessageAddRequest) SetFields

func (r *TmallExchangeMessageAddRequest) SetFields(fields []string) error

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

func (*TmallExchangeMessageAddRequest) SetMessagePics

func (r *TmallExchangeMessageAddRequest) SetMessagePics(messagePics []*model.File) error

MessagePics Setter 凭证图片列表

type TmallExchangeMessageAddResponse

type TmallExchangeMessageAddResponse 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 TmallExchangeMessagesGetAPIResponse

type TmallExchangeMessagesGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeMessagesGetResponse
}

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

查询换货订单留言列表

type TmallExchangeMessagesGetRequest

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

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

查询换货订单留言列表

func NewTmallExchangeMessagesGetRequest

func NewTmallExchangeMessagesGetRequest() *TmallExchangeMessagesGetRequest

初始化TmallExchangeMessagesGetRequest对象

func (TmallExchangeMessagesGetRequest) GetApiMethodName

func (r TmallExchangeMessagesGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeMessagesGetRequest) GetApiParams

func (r TmallExchangeMessagesGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeMessagesGetRequest) GetDisputeId

func (r TmallExchangeMessagesGetRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeMessagesGetRequest) GetFields

func (r TmallExchangeMessagesGetRequest) GetFields() []string

Fields Getter

func (TmallExchangeMessagesGetRequest) GetOperatorRoles

func (r TmallExchangeMessagesGetRequest) GetOperatorRoles() []int64

OperatorRoles Getter

func (TmallExchangeMessagesGetRequest) GetPageNo

func (r TmallExchangeMessagesGetRequest) GetPageNo() int64

PageNo Getter

func (TmallExchangeMessagesGetRequest) GetPageSize

func (r TmallExchangeMessagesGetRequest) GetPageSize() int64

PageSize Getter

func (*TmallExchangeMessagesGetRequest) SetDisputeId

func (r *TmallExchangeMessagesGetRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeMessagesGetRequest) SetFields

func (r *TmallExchangeMessagesGetRequest) SetFields(fields []string) error

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

func (*TmallExchangeMessagesGetRequest) SetOperatorRoles

func (r *TmallExchangeMessagesGetRequest) SetOperatorRoles(operatorRoles []int64) error

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

func (*TmallExchangeMessagesGetRequest) SetPageNo

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

PageNo Setter 页码

func (*TmallExchangeMessagesGetRequest) SetPageSize

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

PageSize Setter 每页条数

type TmallExchangeMessagesGetResponse

type TmallExchangeMessagesGetResponse 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 TmallExchangeReceiveGetAPIResponse

type TmallExchangeReceiveGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeReceiveGetResponse
}

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

卖家查询换货列表

type TmallExchangeReceiveGetRequest

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

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

卖家查询换货列表

func NewTmallExchangeReceiveGetRequest

func NewTmallExchangeReceiveGetRequest() *TmallExchangeReceiveGetRequest

初始化TmallExchangeReceiveGetRequest对象

func (TmallExchangeReceiveGetRequest) GetApiMethodName

func (r TmallExchangeReceiveGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReceiveGetRequest) GetApiParams

func (r TmallExchangeReceiveGetRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeReceiveGetRequest) GetBizOrderId

func (r TmallExchangeReceiveGetRequest) GetBizOrderId() int64

BizOrderId Getter

func (TmallExchangeReceiveGetRequest) GetBuyerId

func (r TmallExchangeReceiveGetRequest) GetBuyerId() int64

BuyerId Getter

func (TmallExchangeReceiveGetRequest) GetBuyerNick

func (r TmallExchangeReceiveGetRequest) GetBuyerNick() string

BuyerNick Getter

func (TmallExchangeReceiveGetRequest) GetDisputeStatusArray

func (r TmallExchangeReceiveGetRequest) GetDisputeStatusArray() []int64

DisputeStatusArray Getter

func (TmallExchangeReceiveGetRequest) GetEndCreatedTime

func (r TmallExchangeReceiveGetRequest) GetEndCreatedTime() string

EndCreatedTime Getter

func (TmallExchangeReceiveGetRequest) GetEndGmtModifedTime

func (r TmallExchangeReceiveGetRequest) GetEndGmtModifedTime() string

EndGmtModifedTime Getter

func (TmallExchangeReceiveGetRequest) GetFields

func (r TmallExchangeReceiveGetRequest) GetFields() []string

Fields Getter

func (TmallExchangeReceiveGetRequest) GetLogisticNo

func (r TmallExchangeReceiveGetRequest) GetLogisticNo() string

LogisticNo Getter

func (TmallExchangeReceiveGetRequest) GetPageNo

func (r TmallExchangeReceiveGetRequest) GetPageNo() int64

PageNo Getter

func (TmallExchangeReceiveGetRequest) GetPageSize

func (r TmallExchangeReceiveGetRequest) GetPageSize() int64

PageSize Getter

func (TmallExchangeReceiveGetRequest) GetRefundIdArray

func (r TmallExchangeReceiveGetRequest) GetRefundIdArray() []int64

RefundIdArray Getter

func (TmallExchangeReceiveGetRequest) GetStartCreatedTime

func (r TmallExchangeReceiveGetRequest) GetStartCreatedTime() string

StartCreatedTime Getter

func (TmallExchangeReceiveGetRequest) GetStartGmtModifiedTime

func (r TmallExchangeReceiveGetRequest) GetStartGmtModifiedTime() string

StartGmtModifiedTime Getter

func (*TmallExchangeReceiveGetRequest) SetBizOrderId

func (r *TmallExchangeReceiveGetRequest) SetBizOrderId(bizOrderId int64) error

BizOrderId Setter 正向订单号

func (*TmallExchangeReceiveGetRequest) SetBuyerId

func (r *TmallExchangeReceiveGetRequest) SetBuyerId(buyerId int64) error

BuyerId Setter 买家id

func (*TmallExchangeReceiveGetRequest) SetBuyerNick

func (r *TmallExchangeReceiveGetRequest) SetBuyerNick(buyerNick string) error

BuyerNick Setter 买家昵称

func (*TmallExchangeReceiveGetRequest) SetDisputeStatusArray

func (r *TmallExchangeReceiveGetRequest) SetDisputeStatusArray(disputeStatusArray []int64) error

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

func (*TmallExchangeReceiveGetRequest) SetEndCreatedTime

func (r *TmallExchangeReceiveGetRequest) SetEndCreatedTime(endCreatedTime string) error

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

func (*TmallExchangeReceiveGetRequest) SetEndGmtModifedTime

func (r *TmallExchangeReceiveGetRequest) SetEndGmtModifedTime(endGmtModifedTime string) error

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

func (*TmallExchangeReceiveGetRequest) SetFields

func (r *TmallExchangeReceiveGetRequest) 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 (*TmallExchangeReceiveGetRequest) SetLogisticNo

func (r *TmallExchangeReceiveGetRequest) SetLogisticNo(logisticNo string) error

LogisticNo Setter 快递单号

func (*TmallExchangeReceiveGetRequest) SetPageNo

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

PageNo Setter 页码

func (*TmallExchangeReceiveGetRequest) SetPageSize

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

PageSize Setter 每页条数

func (*TmallExchangeReceiveGetRequest) SetRefundIdArray

func (r *TmallExchangeReceiveGetRequest) SetRefundIdArray(refundIdArray []int64) error

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

func (*TmallExchangeReceiveGetRequest) SetStartCreatedTime

func (r *TmallExchangeReceiveGetRequest) SetStartCreatedTime(startCreatedTime string) error

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

func (*TmallExchangeReceiveGetRequest) SetStartGmtModifiedTime

func (r *TmallExchangeReceiveGetRequest) SetStartGmtModifiedTime(startGmtModifiedTime string) error

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

type TmallExchangeReceiveGetResponse

type TmallExchangeReceiveGetResponse 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 TmallExchangeRefuseAPIResponse

type TmallExchangeRefuseAPIResponse struct {
	model.CommonResponse
	TmallExchangeRefuseResponse
}

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

卖家拒绝换货申请

type TmallExchangeRefuseRequest

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

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

卖家拒绝换货申请

func NewTmallExchangeRefuseRequest

func NewTmallExchangeRefuseRequest() *TmallExchangeRefuseRequest

初始化TmallExchangeRefuseRequest对象

func (TmallExchangeRefuseRequest) GetApiMethodName

func (r TmallExchangeRefuseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeRefuseRequest) GetApiParams

func (r TmallExchangeRefuseRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (TmallExchangeRefuseRequest) GetDisputeId

func (r TmallExchangeRefuseRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeRefuseRequest) GetFields

func (r TmallExchangeRefuseRequest) GetFields() []string

Fields Getter

func (TmallExchangeRefuseRequest) GetLeaveMessage

func (r TmallExchangeRefuseRequest) GetLeaveMessage() string

LeaveMessage Getter

func (TmallExchangeRefuseRequest) GetLeaveMessagePics

func (r TmallExchangeRefuseRequest) GetLeaveMessagePics() []*model.File

LeaveMessagePics Getter

func (TmallExchangeRefuseRequest) GetSellerRefuseReasonId

func (r TmallExchangeRefuseRequest) GetSellerRefuseReasonId() int64

SellerRefuseReasonId Getter

func (*TmallExchangeRefuseRequest) SetDisputeId

func (r *TmallExchangeRefuseRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeRefuseRequest) SetFields

func (r *TmallExchangeRefuseRequest) SetFields(fields []string) error

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

func (*TmallExchangeRefuseRequest) SetLeaveMessage

func (r *TmallExchangeRefuseRequest) SetLeaveMessage(leaveMessage string) error

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

func (*TmallExchangeRefuseRequest) SetLeaveMessagePics

func (r *TmallExchangeRefuseRequest) SetLeaveMessagePics(leaveMessagePics []*model.File) error

LeaveMessagePics Setter 凭证图片

func (*TmallExchangeRefuseRequest) SetSellerRefuseReasonId

func (r *TmallExchangeRefuseRequest) SetSellerRefuseReasonId(sellerRefuseReasonId int64) error

SellerRefuseReasonId Setter 换货原因对应ID

type TmallExchangeRefuseResponse

type TmallExchangeRefuseResponse 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 TmallExchangeRefusereasonGetAPIResponse

type TmallExchangeRefusereasonGetAPIResponse struct {
	model.CommonResponse
	TmallExchangeRefusereasonGetResponse
}

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

获取拒绝换货原因列表

type TmallExchangeRefusereasonGetRequest

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

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

获取拒绝换货原因列表

func NewTmallExchangeRefusereasonGetRequest

func NewTmallExchangeRefusereasonGetRequest() *TmallExchangeRefusereasonGetRequest

初始化TmallExchangeRefusereasonGetRequest对象

func (TmallExchangeRefusereasonGetRequest) GetApiMethodName

func (r TmallExchangeRefusereasonGetRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeRefusereasonGetRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallExchangeRefusereasonGetRequest) GetDisputeId

func (r TmallExchangeRefusereasonGetRequest) GetDisputeId() int64

DisputeId Getter

func (TmallExchangeRefusereasonGetRequest) GetDisputeType

func (r TmallExchangeRefusereasonGetRequest) GetDisputeType() int64

DisputeType Getter

func (TmallExchangeRefusereasonGetRequest) GetFields

Fields Getter

func (*TmallExchangeRefusereasonGetRequest) SetDisputeId

func (r *TmallExchangeRefusereasonGetRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeRefusereasonGetRequest) SetDisputeType

func (r *TmallExchangeRefusereasonGetRequest) SetDisputeType(disputeType int64) error

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

func (*TmallExchangeRefusereasonGetRequest) SetFields

func (r *TmallExchangeRefusereasonGetRequest) SetFields(fields []string) error

Fields Setter 返回字段

type TmallExchangeRefusereasonGetResponse

type TmallExchangeRefusereasonGetResponse 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 TmallExchangeReturngoodsAgreeAPIResponse

type TmallExchangeReturngoodsAgreeAPIResponse struct {
	model.CommonResponse
	TmallExchangeReturngoodsAgreeResponse
}

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

卖家确认收货

type TmallExchangeReturngoodsAgreeRequest

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

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

卖家确认收货

func NewTmallExchangeReturngoodsAgreeRequest

func NewTmallExchangeReturngoodsAgreeRequest() *TmallExchangeReturngoodsAgreeRequest

初始化TmallExchangeReturngoodsAgreeRequest对象

func (TmallExchangeReturngoodsAgreeRequest) GetApiMethodName

func (r TmallExchangeReturngoodsAgreeRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReturngoodsAgreeRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallExchangeReturngoodsAgreeRequest) GetDisputeId

DisputeId Getter

func (TmallExchangeReturngoodsAgreeRequest) GetFields

Fields Getter

func (*TmallExchangeReturngoodsAgreeRequest) SetDisputeId

func (r *TmallExchangeReturngoodsAgreeRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeReturngoodsAgreeRequest) SetFields

func (r *TmallExchangeReturngoodsAgreeRequest) SetFields(fields []string) error

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

type TmallExchangeReturngoodsAgreeResponse

type TmallExchangeReturngoodsAgreeResponse 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 TmallExchangeReturngoodsRefuseAPIResponse

type TmallExchangeReturngoodsRefuseAPIResponse struct {
	model.CommonResponse
	TmallExchangeReturngoodsRefuseResponse
}

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

卖家拒绝买家换货申请

type TmallExchangeReturngoodsRefuseRequest

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

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

卖家拒绝买家换货申请

func NewTmallExchangeReturngoodsRefuseRequest

func NewTmallExchangeReturngoodsRefuseRequest() *TmallExchangeReturngoodsRefuseRequest

初始化TmallExchangeReturngoodsRefuseRequest对象

func (TmallExchangeReturngoodsRefuseRequest) GetApiMethodName

func (r TmallExchangeReturngoodsRefuseRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TmallExchangeReturngoodsRefuseRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TmallExchangeReturngoodsRefuseRequest) GetDisputeId

DisputeId Getter

func (TmallExchangeReturngoodsRefuseRequest) GetLeaveMessage

func (r TmallExchangeReturngoodsRefuseRequest) GetLeaveMessage() string

LeaveMessage Getter

func (TmallExchangeReturngoodsRefuseRequest) GetLeaveMessagePics

func (r TmallExchangeReturngoodsRefuseRequest) GetLeaveMessagePics() []*model.File

LeaveMessagePics Getter

func (TmallExchangeReturngoodsRefuseRequest) GetSellerRefuseReasonId

func (r TmallExchangeReturngoodsRefuseRequest) GetSellerRefuseReasonId() int64

SellerRefuseReasonId Getter

func (*TmallExchangeReturngoodsRefuseRequest) SetDisputeId

func (r *TmallExchangeReturngoodsRefuseRequest) SetDisputeId(disputeId int64) error

DisputeId Setter 换货单号ID

func (*TmallExchangeReturngoodsRefuseRequest) SetLeaveMessage

func (r *TmallExchangeReturngoodsRefuseRequest) SetLeaveMessage(leaveMessage string) error

LeaveMessage Setter 留言说明

func (*TmallExchangeReturngoodsRefuseRequest) SetLeaveMessagePics

func (r *TmallExchangeReturngoodsRefuseRequest) SetLeaveMessagePics(leaveMessagePics []*model.File) error

LeaveMessagePics Setter 凭证图片

func (*TmallExchangeReturngoodsRefuseRequest) SetSellerRefuseReasonId

func (r *TmallExchangeReturngoodsRefuseRequest) SetSellerRefuseReasonId(sellerRefuseReasonId int64) error

SellerRefuseReasonId Setter 拒绝原因ID

type TmallExchangeReturngoodsRefuseResponse

type TmallExchangeReturngoodsRefuseResponse 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