Documentation

Overview

天猫逆向流程API auto sdk from taobao ApiMetadata.xml version 20130808 auther: dz7changkong@qq.com

Index

Constants

const VersionNo = "20130808"

Variables

This section is empty.

Functions

This section is empty.

Types

type RefundBill

type RefundBill struct {
	ActualRefundFee     int           `json:"actual_refund_fee"`
	AlipayNo            string        `json:"alipay_no"`
	Attribute           string        `json:"attribute"`
	BillType            string        `json:"bill_type"`
	BuyerNick           string        `json:"buyer_nick"`
	Created             string        `json:"created"`
	CsStatus            string        `json:"cs_status"`
	CurrentPhaseTimeout string        `json:"current_phase_timeout"`
	ItemList            []*RefundItem `json:"item_list"`
	Modified            string        `json:"modified"`
	Oid                 int           `json:"oid"`
	OperationConstraint string        `json:"operation_constraint"`
	Reason              string        `json:"reason"`
	RefundFee           int           `json:"refund_fee"`
	RefundId            int           `json:"refund_id"`
	RefundPhase         string        `json:"refund_phase"`
	RefundType          string        `json:"refund_type"`
	RefundVersion       int           `json:"refund_version"`
	SellerNick          string        `json:"seller_nick"`
	Status              string        `json:"status"`
	TagList             []*Tag        `json:"tag_list"`
	Tid                 int           `json:"tid"`
	TradeStatus         string        `json:"trade_status"`
}

退款单

type RefundItem

type RefundItem struct {
	Num     int    `json:"num"`
	NumIid  int    `json:"num_iid"`
	OuterId string `json:"outer_id"`
	Price   int    `json:"price"`
	Sku     string `json:"sku"`
}

退款商品信息

type ReturnBill

type ReturnBill struct {
	BillType      string        `json:"bill_type"`
	CompanyName   string        `json:"company_name"`
	Created       string        `json:"created"`
	ItemList      []*RefundItem `json:"item_list"`
	Modified      string        `json:"modified"`
	Oid           int           `json:"oid"`
	OperationLog  string        `json:"operation_log"`
	Reason        string        `json:"reason"`
	RefundId      int           `json:"refund_id"`
	RefundPhase   string        `json:"refund_phase"`
	RefundVersion int           `json:"refund_version"`
	Sid           string        `json:"sid"`
	Status        string        `json:"status"`
	TagList       []*Tag        `json:"tag_list"`
	Tid           int           `json:"tid"`
}

退货单

type Tag

type Tag struct {
	TagKey  string `json:"tag_key"`
	TagName string `json:"tag_name"`
	TagType string `json:"tag_type"`
}

标签信息

type TmallEaiBaseGatewayRegisterRequest

type TmallEaiBaseGatewayRegisterRequest struct {
	open_taobao.TaobaoMethodRequest
}
用户接入时调用该 API 进行授权初始化的操作。

调用该 API的目的是告知订单数据中心, 外部用户需要的是哪个卖家的订单数据。 同时告知我们对开放出去的该卖家的订单数据的负责用户是谁。 "负责用户"可以是卖家本身。也可以是ISV。

func (*TmallEaiBaseGatewayRegisterRequest) GetResponse

func (r *TmallEaiBaseGatewayRegisterRequest) GetResponse(accessToken string) (*TmallEaiBaseGatewayRegisterResponse, []byte, error)

func (*TmallEaiBaseGatewayRegisterRequest) SetCallBackUrl

func (r *TmallEaiBaseGatewayRegisterRequest) SetCallBackUrl(value string)

用户应用的回调URL,若是普通OPEN-API用户(user_type=0)这个字段可以不填。但是若是JIP用户注册,也就是(user_type=1)时,则此字段必填。否则调用不会成功。

func (*TmallEaiBaseGatewayRegisterRequest) SetCharSet

func (r *TmallEaiBaseGatewayRegisterRequest) SetCharSet(value string)

字符集编码GBK,UTF-8默认,GB2312

func (*TmallEaiBaseGatewayRegisterRequest) SetCity

func (r *TmallEaiBaseGatewayRegisterRequest) SetCity(value string)

用户所在的城市

func (*TmallEaiBaseGatewayRegisterRequest) SetContentType

func (r *TmallEaiBaseGatewayRegisterRequest) SetContentType(value string)
数据格式:XML,JSON。

默认:JSON

func (*TmallEaiBaseGatewayRegisterRequest) SetDescription

func (r *TmallEaiBaseGatewayRegisterRequest) SetDescription(value string)

接入方式描述,为了更好的方便我们为您服务请务必详细描述下您的APP情况。

func (*TmallEaiBaseGatewayRegisterRequest) SetDistrict

func (r *TmallEaiBaseGatewayRegisterRequest) SetDistrict(value string)

用户所在区域

func (*TmallEaiBaseGatewayRegisterRequest) SetEmail

func (r *TmallEaiBaseGatewayRegisterRequest) SetEmail(value string)

用户的联系邮箱

func (*TmallEaiBaseGatewayRegisterRequest) SetMaxFlow

func (r *TmallEaiBaseGatewayRegisterRequest) SetMaxFlow(value string)

暂时还没有支持

func (*TmallEaiBaseGatewayRegisterRequest) SetMobile

func (r *TmallEaiBaseGatewayRegisterRequest) SetMobile(value string)

用户手机号码

func (*TmallEaiBaseGatewayRegisterRequest) SetNotifyType

func (r *TmallEaiBaseGatewayRegisterRequest) SetNotifyType(value string)
用户通知接收方式,邮件,电话或者其他。

email:邮件; message:短信; aliwangwang:阿里旺旺弹出消息。

func (*TmallEaiBaseGatewayRegisterRequest) SetPrincipal

func (r *TmallEaiBaseGatewayRegisterRequest) SetPrincipal(value string)

联系人姓名

func (*TmallEaiBaseGatewayRegisterRequest) SetTelephone

func (r *TmallEaiBaseGatewayRegisterRequest) SetTelephone(value string)

用户联系电话-座机

func (*TmallEaiBaseGatewayRegisterRequest) SetTopic

func (r *TmallEaiBaseGatewayRegisterRequest) SetTopic(value string)
接口/api名称:

天猫退款消息可选值为: tmall.eai.order.refund.refundBill.push tmall.eai.order.refund.refundStatus.push

func (*TmallEaiBaseGatewayRegisterRequest) SetTopicGroup

func (r *TmallEaiBaseGatewayRegisterRequest) SetTopicGroup(value string)

Topic组.暂时还不能支持.

func (*TmallEaiBaseGatewayRegisterRequest) SetUrlProtocal

func (r *TmallEaiBaseGatewayRegisterRequest) SetUrlProtocal(value string)
url协议

HTTP默认

func (*TmallEaiBaseGatewayRegisterRequest) SetUserType

func (r *TmallEaiBaseGatewayRegisterRequest) SetUserType(value string)
0:普通TOP-OPEN-API用户;

1:JIP用户。

type TmallEaiBaseGatewayRegisterResponse

type TmallEaiBaseGatewayRegisterResponse struct {
	Count     int  `json:"count"`
	IsSuccess bool `json:"is_success"`
}

type TmallEaiBaseGatewayRegisterResponseResult

type TmallEaiBaseGatewayRegisterResponseResult struct {
	Response *TmallEaiBaseGatewayRegisterResponse `json:"tmall_eai_base_gateway_register_response"`
}

type TmallEaiOrderRefundBillsumGetRequest

type TmallEaiOrderRefundBillsumGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询退货单 或者 退款单数量

func (*TmallEaiOrderRefundBillsumGetRequest) GetResponse

func (r *TmallEaiOrderRefundBillsumGetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundBillsumGetResponse, []byte, error)

func (*TmallEaiOrderRefundBillsumGetRequest) SetBillType

func (r *TmallEaiOrderRefundBillsumGetRequest) SetBillType(value string)

查找数量的单据类型 refund_bill:退款单, return_bill:退货单

func (*TmallEaiOrderRefundBillsumGetRequest) SetEndTime

func (r *TmallEaiOrderRefundBillsumGetRequest) SetEndTime(value string)

批量查询结束时间

func (*TmallEaiOrderRefundBillsumGetRequest) SetStartTime

func (r *TmallEaiOrderRefundBillsumGetRequest) SetStartTime(value string)

批量查询开始时间

func (*TmallEaiOrderRefundBillsumGetRequest) SetStatus

func (r *TmallEaiOrderRefundBillsumGetRequest) SetStatus(value string)

退货单 退款单状态

type TmallEaiOrderRefundBillsumGetResponse

type TmallEaiOrderRefundBillsumGetResponse struct {
	BillSum int `json:"bill_sum"`
}

type TmallEaiOrderRefundBillsumGetResponseResult

type TmallEaiOrderRefundBillsumGetResponseResult struct {
	Response *TmallEaiOrderRefundBillsumGetResponse `json:"tmall_eai_order_refund_billsum_get_response"`
}

type TmallEaiOrderRefundExamineCancelRequest

type TmallEaiOrderRefundExamineCancelRequest struct {
	open_taobao.TaobaoMethodRequest
}

退款单反审核结果回写

func (*TmallEaiOrderRefundExamineCancelRequest) GetResponse

func (r *TmallEaiOrderRefundExamineCancelRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundExamineCancelResponse, []byte, error)

func (*TmallEaiOrderRefundExamineCancelRequest) SetMessage

func (r *TmallEaiOrderRefundExamineCancelRequest) SetMessage(value string)

反审核留言

func (*TmallEaiOrderRefundExamineCancelRequest) SetOperator

func (r *TmallEaiOrderRefundExamineCancelRequest) SetOperator(value string)

反审核人姓名

func (*TmallEaiOrderRefundExamineCancelRequest) SetRefundId

func (r *TmallEaiOrderRefundExamineCancelRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundExamineCancelRequest) SetRefundPhase

func (r *TmallEaiOrderRefundExamineCancelRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundExamineCancelRequest) SetRefundVersion

func (r *TmallEaiOrderRefundExamineCancelRequest) SetRefundVersion(value string)

退款版本号

type TmallEaiOrderRefundExamineCancelResponse

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

type TmallEaiOrderRefundExamineCancelResponseResult

type TmallEaiOrderRefundExamineCancelResponseResult struct {
	Response *TmallEaiOrderRefundExamineCancelResponse `json:"tmall_eai_order_refund_examine_cancel_response"`
}

type TmallEaiOrderRefundExamineRequest

type TmallEaiOrderRefundExamineRequest struct {
	open_taobao.TaobaoMethodRequest
}

退款单审核结果回写,标记前端批量可退款

func (*TmallEaiOrderRefundExamineRequest) GetResponse

func (r *TmallEaiOrderRefundExamineRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundExamineResponse, []byte, error)

func (*TmallEaiOrderRefundExamineRequest) SetMessage

func (r *TmallEaiOrderRefundExamineRequest) SetMessage(value string)

审核留言

func (*TmallEaiOrderRefundExamineRequest) SetOperator

func (r *TmallEaiOrderRefundExamineRequest) SetOperator(value string)

审核人姓名

func (*TmallEaiOrderRefundExamineRequest) SetRefundId

func (r *TmallEaiOrderRefundExamineRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundExamineRequest) SetRefundPhase

func (r *TmallEaiOrderRefundExamineRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundExamineRequest) SetRefundVersion

func (r *TmallEaiOrderRefundExamineRequest) SetRefundVersion(value string)

退款版本号

type TmallEaiOrderRefundExamineResponse

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

type TmallEaiOrderRefundExamineResponseResult

type TmallEaiOrderRefundExamineResponseResult struct {
	Response *TmallEaiOrderRefundExamineResponse `json:"tmall_eai_order_refund_examine_response"`
}

type TmallEaiOrderRefundGetRequest

type TmallEaiOrderRefundGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询单笔退款单

func (*TmallEaiOrderRefundGetRequest) GetResponse

func (r *TmallEaiOrderRefundGetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGetResponse, []byte, error)

func (*TmallEaiOrderRefundGetRequest) SetRefundId

func (r *TmallEaiOrderRefundGetRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundGetRequest) SetRefundPhase

func (r *TmallEaiOrderRefundGetRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

type TmallEaiOrderRefundGetResponse

type TmallEaiOrderRefundGetResponse struct {
	RefundBill *RefundBill `json:"refund_bill"`
}

type TmallEaiOrderRefundGetResponseResult

type TmallEaiOrderRefundGetResponseResult struct {
	Response *TmallEaiOrderRefundGetResponse `json:"tmall_eai_order_refund_get_response"`
}

type TmallEaiOrderRefundGoodReturnAgreeRequest

type TmallEaiOrderRefundGoodReturnAgreeRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家同意退货

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) GetResponse

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGoodReturnAgreeResponse, []byte, error)

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) SetMessage

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) SetMessage(value string)

同意退货留言

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundId

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundPhase

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundVersion

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) SetRefundVersion(value string)

退款版本号

func (*TmallEaiOrderRefundGoodReturnAgreeRequest) SetSellerLogisticsAddressId

func (r *TmallEaiOrderRefundGoodReturnAgreeRequest) SetSellerLogisticsAddressId(value string)

卖家收货地址编号

type TmallEaiOrderRefundGoodReturnAgreeResponse

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

type TmallEaiOrderRefundGoodReturnAgreeResponseResult

type TmallEaiOrderRefundGoodReturnAgreeResponseResult struct {
	Response *TmallEaiOrderRefundGoodReturnAgreeResponse `json:"tmall_eai_order_refund_good_return_agree_response"`
}

type TmallEaiOrderRefundGoodReturnCheckRequest

type TmallEaiOrderRefundGoodReturnCheckRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家验货回写订单号

func (*TmallEaiOrderRefundGoodReturnCheckRequest) GetResponse

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGoodReturnCheckResponse, []byte, error)

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetCompanyCode

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetCompanyCode(value string)

物流公司编号

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetConfirmResult

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetConfirmResult(value string)
1.验货通过

2.验货不通过

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetConfirmTime

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetConfirmTime(value string)

验货时间

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetOperator

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetOperator(value string)

验货人员

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetRefundId

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetRefundPhase

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundGoodReturnCheckRequest) SetSid

func (r *TmallEaiOrderRefundGoodReturnCheckRequest) SetSid(value string)

物流运单号

type TmallEaiOrderRefundGoodReturnCheckResponse

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

type TmallEaiOrderRefundGoodReturnCheckResponseResult

type TmallEaiOrderRefundGoodReturnCheckResponseResult struct {
	Response *TmallEaiOrderRefundGoodReturnCheckResponse `json:"tmall_eai_order_refund_good_return_check_response"`
}

type TmallEaiOrderRefundGoodReturnGetRequest

type TmallEaiOrderRefundGoodReturnGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询单笔退货单

func (*TmallEaiOrderRefundGoodReturnGetRequest) GetResponse

func (r *TmallEaiOrderRefundGoodReturnGetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGoodReturnGetResponse, []byte, error)

func (*TmallEaiOrderRefundGoodReturnGetRequest) SetRefundId

func (r *TmallEaiOrderRefundGoodReturnGetRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundGoodReturnGetRequest) SetRefundPhase

func (r *TmallEaiOrderRefundGoodReturnGetRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

type TmallEaiOrderRefundGoodReturnGetResponse

type TmallEaiOrderRefundGoodReturnGetResponse struct {
	ReturnBill *ReturnBill `json:"return_bill"`
}

type TmallEaiOrderRefundGoodReturnGetResponseResult

type TmallEaiOrderRefundGoodReturnGetResponseResult struct {
	Response *TmallEaiOrderRefundGoodReturnGetResponse `json:"tmall_eai_order_refund_good_return_get_response"`
}

type TmallEaiOrderRefundGoodReturnMgetRequest

type TmallEaiOrderRefundGoodReturnMgetRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量退货单查询

func (*TmallEaiOrderRefundGoodReturnMgetRequest) GetResponse

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGoodReturnMgetResponse, []byte, error)

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetEndTime

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetEndTime(value string)

批量查询结束时间

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetPageNo

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetPageNo(value string)

页码。取值范围:大于零的整数; 默认值:1

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetPageSize

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetPageSize(value string)

每页条数。取值范围:大于零的整数; 默认值:40;最大值:100

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetStartTime

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetStartTime(value string)

批量查询开始时间

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetStatus

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetStatus(value string)

退货单 退款单状态

func (*TmallEaiOrderRefundGoodReturnMgetRequest) SetUseHasNext

func (r *TmallEaiOrderRefundGoodReturnMgetRequest) SetUseHasNext(value string)

是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。

type TmallEaiOrderRefundGoodReturnMgetResponse

type TmallEaiOrderRefundGoodReturnMgetResponse struct {
	HasNext        bool          `json:"has_next"`
	ReturnBillList []*ReturnBill `json:"return_bill_list"`
	TotalResults   int           `json:"total_results"`
}

type TmallEaiOrderRefundGoodReturnMgetResponseResult

type TmallEaiOrderRefundGoodReturnMgetResponseResult struct {
	Response *TmallEaiOrderRefundGoodReturnMgetResponse `json:"tmall_eai_order_refund_good_return_mget_response"`
}

type TmallEaiOrderRefundGoodReturnRefuseRequest

type TmallEaiOrderRefundGoodReturnRefuseRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家拒绝退货

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) GetResponse

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundGoodReturnRefuseResponse, []byte, error)

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundId

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundPhase

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundVersion

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefundVersion(value string)

退款版本号

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefuseMessage

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefuseMessage(value string)

拒绝退款原因留言

func (*TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefuseProof

func (r *TmallEaiOrderRefundGoodReturnRefuseRequest) SetRefuseProof(value string)

拒绝退款举证上传

type TmallEaiOrderRefundGoodReturnRefuseResponse

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

type TmallEaiOrderRefundGoodReturnRefuseResponseResult

type TmallEaiOrderRefundGoodReturnRefuseResponseResult struct {
	Response *TmallEaiOrderRefundGoodReturnRefuseResponse `json:"tmall_eai_order_refund_good_return_refuse_response"`
}

type TmallEaiOrderRefundMessageGetRequest

type TmallEaiOrderRefundMessageGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

退款留言查询

func (*TmallEaiOrderRefundMessageGetRequest) GetResponse

func (r *TmallEaiOrderRefundMessageGetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundMessageGetResponse, []byte, error)

func (*TmallEaiOrderRefundMessageGetRequest) SetPageNo

func (r *TmallEaiOrderRefundMessageGetRequest) SetPageNo(value string)

页码。取值范围:大于零的整数; 默认值:1

func (*TmallEaiOrderRefundMessageGetRequest) SetPageSize

func (r *TmallEaiOrderRefundMessageGetRequest) SetPageSize(value string)

每页条数。取值范围:大于零的整数; 默认值:40;最大值:100

func (*TmallEaiOrderRefundMessageGetRequest) SetRefundId

func (r *TmallEaiOrderRefundMessageGetRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundMessageGetRequest) SetRefundPhase

func (r *TmallEaiOrderRefundMessageGetRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

type TmallEaiOrderRefundMessageGetResponse

type TmallEaiOrderRefundMessageGetResponse struct {
	MessageList  []*TmallRefundMessage `json:"message_list"`
	TotalResults int                   `json:"total_results"`
}

type TmallEaiOrderRefundMessageGetResponseResult

type TmallEaiOrderRefundMessageGetResponseResult struct {
	Response *TmallEaiOrderRefundMessageGetResponse `json:"tmall_eai_order_refund_message_get_response"`
}

type TmallEaiOrderRefundMgetRequest

type TmallEaiOrderRefundMgetRequest struct {
	open_taobao.TaobaoMethodRequest
}

批量查询退款单

func (*TmallEaiOrderRefundMgetRequest) GetResponse

func (r *TmallEaiOrderRefundMgetRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundMgetResponse, []byte, error)

func (*TmallEaiOrderRefundMgetRequest) SetEndTime

func (r *TmallEaiOrderRefundMgetRequest) SetEndTime(value string)

批量查询结束时间

func (*TmallEaiOrderRefundMgetRequest) SetPageNo

func (r *TmallEaiOrderRefundMgetRequest) SetPageNo(value string)

页码。取值范围:大于零的整数; 默认值:1

func (*TmallEaiOrderRefundMgetRequest) SetPageSize

func (r *TmallEaiOrderRefundMgetRequest) SetPageSize(value string)

每页条数。取值范围:大于零的整数; 默认值:40;最大值:100

func (*TmallEaiOrderRefundMgetRequest) SetStartTime

func (r *TmallEaiOrderRefundMgetRequest) SetStartTime(value string)

批量查询开始时间

func (*TmallEaiOrderRefundMgetRequest) SetStatus

func (r *TmallEaiOrderRefundMgetRequest) SetStatus(value string)

退货单 退款单状态

func (*TmallEaiOrderRefundMgetRequest) SetUseHasNext

func (r *TmallEaiOrderRefundMgetRequest) SetUseHasNext(value string)

是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量退款,接口调用成功率在原有的基础上有所提升。

type TmallEaiOrderRefundMgetResponse

type TmallEaiOrderRefundMgetResponse struct {
	HasNext        bool          `json:"has_next"`
	RefundBillList []*RefundBill `json:"refund_bill_list"`
	TotalResults   int           `json:"total_results"`
}

type TmallEaiOrderRefundMgetResponseResult

type TmallEaiOrderRefundMgetResponseResult struct {
	Response *TmallEaiOrderRefundMgetResponse `json:"tmall_eai_order_refund_mget_response"`
}

type TmallEaiOrderRefundOrderHoldRequest

type TmallEaiOrderRefundOrderHoldRequest struct {
	open_taobao.TaobaoMethodRequest
}

订单截停回写

func (*TmallEaiOrderRefundOrderHoldRequest) GetResponse

func (r *TmallEaiOrderRefundOrderHoldRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundOrderHoldResponse, []byte, error)

func (*TmallEaiOrderRefundOrderHoldRequest) SetHoldResult

func (r *TmallEaiOrderRefundOrderHoldRequest) SetHoldResult(value string)
1. 截停成功

2. 截停失败

func (*TmallEaiOrderRefundOrderHoldRequest) SetHoldStep

func (r *TmallEaiOrderRefundOrderHoldRequest) SetHoldStep(value string)
截停环节

1. 订单处理环节 2. 发货环节

func (*TmallEaiOrderRefundOrderHoldRequest) SetHoldTime

func (r *TmallEaiOrderRefundOrderHoldRequest) SetHoldTime(value string)

截单时间

func (*TmallEaiOrderRefundOrderHoldRequest) SetRefundId

func (r *TmallEaiOrderRefundOrderHoldRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundOrderHoldRequest) SetRefundPhase

func (r *TmallEaiOrderRefundOrderHoldRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

type TmallEaiOrderRefundOrderHoldResponse

type TmallEaiOrderRefundOrderHoldResponse struct {
	IsSuccess string `json:"is_success"`
}

type TmallEaiOrderRefundOrderHoldResponseResult

type TmallEaiOrderRefundOrderHoldResponseResult struct {
	Response *TmallEaiOrderRefundOrderHoldResponse `json:"tmall_eai_order_refund_order_hold_response"`
}

type TmallEaiOrderRefundRefuseRequest

type TmallEaiOrderRefundRefuseRequest struct {
	open_taobao.TaobaoMethodRequest
}

卖家拒绝退款

func (*TmallEaiOrderRefundRefuseRequest) GetResponse

func (r *TmallEaiOrderRefundRefuseRequest) GetResponse(accessToken string) (*TmallEaiOrderRefundRefuseResponse, []byte, error)

func (*TmallEaiOrderRefundRefuseRequest) SetRefundId

func (r *TmallEaiOrderRefundRefuseRequest) SetRefundId(value string)

退款单编号

func (*TmallEaiOrderRefundRefuseRequest) SetRefundPhase

func (r *TmallEaiOrderRefundRefuseRequest) SetRefundPhase(value string)
售中:onsale

售后:aftersale

func (*TmallEaiOrderRefundRefuseRequest) SetRefundVersion

func (r *TmallEaiOrderRefundRefuseRequest) SetRefundVersion(value string)

退款版本号

func (*TmallEaiOrderRefundRefuseRequest) SetRefuseMessage

func (r *TmallEaiOrderRefundRefuseRequest) SetRefuseMessage(value string)

拒绝退款原因留言

func (*TmallEaiOrderRefundRefuseRequest) SetRefuseProof

func (r *TmallEaiOrderRefundRefuseRequest) SetRefuseProof(value string)

拒绝退款举证上传

type TmallEaiOrderRefundRefuseResponse

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

type TmallEaiOrderRefundRefuseResponseResult

type TmallEaiOrderRefundRefuseResponseResult struct {
	Response *TmallEaiOrderRefundRefuseResponse `json:"tmall_eai_order_refund_refuse_response"`
}

type TmallEaiOrderRegisterRequest

type TmallEaiOrderRegisterRequest struct {
	open_taobao.TaobaoMethodRequest
}
修改某个用户订阅的天猫退款的信息。

可以追加某个事件订阅也可以去掉某个事件订阅。 体现在参数action 里面: 0:取消订阅;1:订阅。

func (*TmallEaiOrderRegisterRequest) GetResponse

func (r *TmallEaiOrderRegisterRequest) GetResponse(accessToken string) (*TmallEaiOrderRegisterResponse, []byte, error)

func (*TmallEaiOrderRegisterRequest) SetAction

func (r *TmallEaiOrderRegisterRequest) SetAction(value string)

对传入的事件的操作类型 0:取消订阅;1:订阅

func (*TmallEaiOrderRegisterRequest) SetDataMode

func (r *TmallEaiOrderRegisterRequest) SetDataMode(value string)
1:主订单模式;

2:子订单模式; 天猫退款消息订阅默认子订单模式。 不传入即可。

func (*TmallEaiOrderRegisterRequest) SetEventName

func (r *TmallEaiOrderRegisterRequest) SetEventName(value string)
需要订阅或者取消订阅的事件名称。

可选择的值如下所示: RcRefundClosedEvent; RcRefundPrepaidEvent; RcReturnCreatedEvent; RcRefundSucceedEvent; RcRefundCreatedEvent; RcRefundModifiedEvent; RcReturnModifiedEvent; RcRefundSellerRefuseEvent; RcReturnConfirmFailedEvent; RcRefundTaobaoInvolvedEvent; RcRefundMessageCreatedEvent; RcReturnConfirmSucceedEvent; RcRefundPaymentFinishedEvent; RcRefundRefundableMarkedEvent; RcReturnBuyerReturnGoodsEvent; RcRefundSellerAgreeReturnEvent; RcRefundRefundableCanceledEvent;

func (*TmallEaiOrderRegisterRequest) SetTopic

func (r *TmallEaiOrderRegisterRequest) SetTopic(value string)
天猫退款订单可选topic:

tmall.eai.order.refund.refundBill.push; tmall.eai.order.refund.refundStatus.push

func (*TmallEaiOrderRegisterRequest) SetUserType

func (r *TmallEaiOrderRegisterRequest) SetUserType(value string)
标识出用户类型。

这里“用户”指的是外部开发者。 0:TOP-OPEN-API 用户 1:JIP用户

type TmallEaiOrderRegisterResponse

type TmallEaiOrderRegisterResponse struct {
	Count     int  `json:"count"`
	IsSuccess bool `json:"is_success"`
}

type TmallEaiOrderRegisterResponseResult

type TmallEaiOrderRegisterResponseResult struct {
	Response *TmallEaiOrderRegisterResponse `json:"tmall_eai_order_register_response"`
}

type TmallRefundMessage

type TmallRefundMessage struct {
	Created        string `json:"created"`
	MessageContent string `json:"message_content"`
	RefundId       int    `json:"refund_id"`
	RefundPhase    string `json:"refund_phase"`
	UserNick       string `json:"user_nick"`
	UserRole       string `json:"user_role"`
	VoucherUrls    string `json:"voucher_urls"`
}

退款留言