Documentation ¶
Overview ¶
隐私保护API model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderMerge ¶
type OrderMerge struct { // 订单ID Tid string `json:"tid,omitempty" xml:"tid,omitempty"` // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` }
OrderMerge
type Receiver ¶
type Receiver struct { // 收件人的姓名 Name string `json:"name,omitempty" xml:"name,omitempty"` // 收件人的手机号 Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"` // 收件人的详细地址 AddressDetail string `json:"address_detail,omitempty" xml:"address_detail,omitempty"` // 收件人的电话号码 Phone string `json:"phone,omitempty" xml:"phone,omitempty"` // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 交易编号 Tid string `json:"tid,omitempty" xml:"tid,omitempty"` // 收货人街道地址 Town string `json:"town,omitempty" xml:"town,omitempty"` // 收货人的所在地区 District string `json:"district,omitempty" xml:"district,omitempty"` // 收货人的所在城市 City string `json:"city,omitempty" xml:"city,omitempty"` // 收货人的所在省份 State string `json:"state,omitempty" xml:"state,omitempty"` // 收货人国籍 Country string `json:"country,omitempty" xml:"country,omitempty"` // oaid是否和tid当前的oaid匹配。true:匹配,false:不匹配。当不匹配时,建议通过taobao.trade.fullinfo.get获取最新的oaid。 Matched bool `json:"matched,omitempty" xml:"matched,omitempty"` }
Receiver
type ReceiverQuery ¶
type ReceiverQuery struct { // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 交易订单ID Tid string `json:"tid,omitempty" xml:"tid,omitempty"` }
ReceiverQuery
type TaobaoTopOaidDecryptAPIResponse ¶
type TaobaoTopOaidDecryptAPIResponse struct { model.CommonResponse TaobaoTopOaidDecryptResponse }
OAID解密 API返回值 taobao.top.oaid.decrypt
解码OAID(Open Addressee ID),返回收件人信息。
type TaobaoTopOaidDecryptRequest ¶
OAID解密 API请求 taobao.top.oaid.decrypt
解码OAID(Open Addressee ID),返回收件人信息。
func NewTaobaoTopOaidDecryptRequest ¶
func NewTaobaoTopOaidDecryptRequest() *TaobaoTopOaidDecryptRequest
初始化TaobaoTopOaidDecryptRequest对象
func (TaobaoTopOaidDecryptRequest) GetApiMethodName ¶
func (r TaobaoTopOaidDecryptRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTopOaidDecryptRequest) GetApiParams ¶
func (r TaobaoTopOaidDecryptRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTopOaidDecryptRequest) GetQueryList ¶
func (r TaobaoTopOaidDecryptRequest) GetQueryList() []ReceiverQuery
QueryList Getter
func (*TaobaoTopOaidDecryptRequest) SetQueryList ¶
func (r *TaobaoTopOaidDecryptRequest) SetQueryList(queryList []ReceiverQuery) error
QueryList Setter 解密请求列表,最多支持20个。
type TaobaoTopOaidDecryptResponse ¶
type TaobaoTopOaidDecryptResponse struct { XMLName xml.Name `xml:"top_oaid_decrypt_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 收件人列表 ReceiverList []Receiver `json:"receiver_list,omitempty" xml:"receiver_list>receiver,omitempty"` }
OAID解密 成功返回结果
type TaobaoTopOaidMergeAPIResponse ¶
type TaobaoTopOaidMergeAPIResponse struct { model.CommonResponse TaobaoTopOaidMergeResponse }
OAID订单合并 API返回值 taobao.top.oaid.merge
基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。
type TaobaoTopOaidMergeRequest ¶
OAID订单合并 API请求 taobao.top.oaid.merge
基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。
func NewTaobaoTopOaidMergeRequest ¶
func NewTaobaoTopOaidMergeRequest() *TaobaoTopOaidMergeRequest
初始化TaobaoTopOaidMergeRequest对象
func (TaobaoTopOaidMergeRequest) GetApiMethodName ¶
func (r TaobaoTopOaidMergeRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (TaobaoTopOaidMergeRequest) GetApiParams ¶
func (r TaobaoTopOaidMergeRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (TaobaoTopOaidMergeRequest) GetMergeList ¶
func (r TaobaoTopOaidMergeRequest) GetMergeList() []OrderMerge
MergeList Getter
func (*TaobaoTopOaidMergeRequest) SetMergeList ¶
func (r *TaobaoTopOaidMergeRequest) SetMergeList(mergeList []OrderMerge) error
MergeList Setter 合单请求列表,最多支持100个。
type TaobaoTopOaidMergeResponse ¶
type TaobaoTopOaidMergeResponse struct { XMLName xml.Name `xml:"top_oaid_merge_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 合单结果。可合单的订单ID列表用逗号分隔的字符串表示。比如,"1111,2222"表示订单1111和订单2222可合并发货。 TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` }
OAID订单合并 成功返回结果