Documentation ¶
Overview ¶
Package tbtrade 包含淘宝交易API,相关结构体
Index ¶
- type AddressDetail
- type AgreeRefundCheck
- type AppBillQueryRequest
- type AssembleOrder
- type BillDetailInfo
- type CombineConsignInfo
- type CombineLogisticsDetail
- type CombineSubItemDo
- type DeliveryPlan
- type ExpandCardInfo
- type IdentifyInfo
- type IdentifyLogisticsInfo
- type IdentifyServiceInfo
- type LogisticServiceTag
- type LogisticsAgreement
- type LogisticsConsignInfo
- type LogisticsInfo
- type LogisticsModifyInfo
- type LogisticsTag
- type Order
- type OrderAmount
- type OrderAssembleResponse
- type OrderGroup
- type OrderGroupResponse
- type OrderMerge
- type OrderQuery
- type PackageGoodsDetail
- type PromotionDetail
- type Receiver
- type ReceiverQuery
- type SecretNo
- type SecretNoExtendRequest
- type SellerBillQueryRequest
- type SendGoodsDetail
- type ServiceOrder
- type ShipInfo
- type SortInfo
- type StepPayDetail
- type TaobaofulfillmentorderassembleAPIRequest
- func (r TaobaofulfillmentorderassembleAPIRequest) GetApiMethodName() string
- func (r TaobaofulfillmentorderassembleAPIRequest) GetApiParams(params url.Values)
- func (r TaobaofulfillmentorderassembleAPIRequest) GetAssembleOrders() *AssembleOrder
- func (r TaobaofulfillmentorderassembleAPIRequest) GetRawParams() model.Params
- func (r TaobaofulfillmentorderassembleAPIRequest) GetType() string
- func (r *TaobaofulfillmentorderassembleAPIRequest) SetAssembleOrders(_assembleOrders *AssembleOrder) error
- func (r *TaobaofulfillmentorderassembleAPIRequest) SetType(_type string) error
- type TaobaofulfillmentorderassembleAPIResponse
- type TaobaofulfillmentorderassembleAPIResponseModel
- type TaobaotopoaidclientdecryptAPIRequest
- func (r TaobaotopoaidclientdecryptAPIRequest) GetApiMethodName() string
- func (r TaobaotopoaidclientdecryptAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopoaidclientdecryptAPIRequest) GetQueryList() []ReceiverQuery
- func (r TaobaotopoaidclientdecryptAPIRequest) GetRawParams() model.Params
- func (r TaobaotopoaidclientdecryptAPIRequest) GetSecOnceToken() string
- func (r *TaobaotopoaidclientdecryptAPIRequest) SetQueryList(_queryList []ReceiverQuery) error
- func (r *TaobaotopoaidclientdecryptAPIRequest) SetSecOnceToken(_secOnceToken string) error
- type TaobaotopoaidclientdecryptAPIResponse
- type TaobaotopoaidclientdecryptAPIResponseModel
- type TaobaotopoaiddecryptAPIRequest
- func (r TaobaotopoaiddecryptAPIRequest) GetApiMethodName() string
- func (r TaobaotopoaiddecryptAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopoaiddecryptAPIRequest) GetQueryList() []ReceiverQuery
- func (r TaobaotopoaiddecryptAPIRequest) GetRawParams() model.Params
- func (r *TaobaotopoaiddecryptAPIRequest) SetQueryList(_queryList []ReceiverQuery) error
- type TaobaotopoaiddecryptAPIResponse
- type TaobaotopoaiddecryptAPIResponseModel
- type TaobaotopoaidmergeAPIRequest
- func (r TaobaotopoaidmergeAPIRequest) GetApiMethodName() string
- func (r TaobaotopoaidmergeAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopoaidmergeAPIRequest) GetMergeList() []OrderMerge
- func (r TaobaotopoaidmergeAPIRequest) GetRawParams() model.Params
- func (r *TaobaotopoaidmergeAPIRequest) SetMergeList(_mergeList []OrderMerge) error
- type TaobaotopoaidmergeAPIResponse
- type TaobaotopoaidmergeAPIResponseModel
- type TaobaotoponcetokengetAPIRequest
- func (r TaobaotoponcetokengetAPIRequest) GetApiMethodName() string
- func (r TaobaotoponcetokengetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotoponcetokengetAPIRequest) GetRawParams() model.Params
- func (r TaobaotoponcetokengetAPIRequest) GetSecToken() string
- func (r *TaobaotoponcetokengetAPIRequest) SetSecToken(_secToken string) error
- type TaobaotoponcetokengetAPIResponse
- type TaobaotoponcetokengetAPIResponseModel
- type TaobaotopsecretappkeybilldetailAPIRequest
- func (r TaobaotopsecretappkeybilldetailAPIRequest) GetApiMethodName() string
- func (r TaobaotopsecretappkeybilldetailAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopsecretappkeybilldetailAPIRequest) GetAppBillQueryRequest() *AppBillQueryRequest
- func (r TaobaotopsecretappkeybilldetailAPIRequest) GetRawParams() model.Params
- func (r *TaobaotopsecretappkeybilldetailAPIRequest) SetAppBillQueryRequest(_appBillQueryRequest *AppBillQueryRequest) error
- type TaobaotopsecretappkeybilldetailAPIResponse
- type TaobaotopsecretappkeybilldetailAPIResponseModel
- type TaobaotopsecretbilldetailAPIRequest
- func (r TaobaotopsecretbilldetailAPIRequest) GetApiMethodName() string
- func (r TaobaotopsecretbilldetailAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopsecretbilldetailAPIRequest) GetRawParams() model.Params
- func (r TaobaotopsecretbilldetailAPIRequest) GetSellerBillQueryRequest() *SellerBillQueryRequest
- func (r *TaobaotopsecretbilldetailAPIRequest) SetSellerBillQueryRequest(_sellerBillQueryRequest *SellerBillQueryRequest) error
- type TaobaotopsecretbilldetailAPIResponse
- type TaobaotopsecretbilldetailAPIResponseModel
- type TaobaotopsecretextendAPIRequest
- func (r TaobaotopsecretextendAPIRequest) GetApiMethodName() string
- func (r TaobaotopsecretextendAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotopsecretextendAPIRequest) GetExtendRequest() *SecretNoExtendRequest
- func (r TaobaotopsecretextendAPIRequest) GetRawParams() model.Params
- func (r *TaobaotopsecretextendAPIRequest) SetExtendRequest(_extendRequest *SecretNoExtendRequest) error
- type TaobaotopsecretextendAPIResponse
- type TaobaotopsecretextendAPIResponseModel
- type TaobaotradeamountgetAPIRequest
- func (r TaobaotradeamountgetAPIRequest) GetApiMethodName() string
- func (r TaobaotradeamountgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradeamountgetAPIRequest) GetFields() string
- func (r TaobaotradeamountgetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradeamountgetAPIRequest) GetTid() int64
- func (r *TaobaotradeamountgetAPIRequest) SetFields(_fields string) error
- func (r *TaobaotradeamountgetAPIRequest) SetTid(_tid int64) error
- type TaobaotradeamountgetAPIResponse
- type TaobaotradeamountgetAPIResponseModel
- type TaobaotradecloseAPIRequest
- func (r TaobaotradecloseAPIRequest) GetApiMethodName() string
- func (r TaobaotradecloseAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradecloseAPIRequest) GetCloseReason() string
- func (r TaobaotradecloseAPIRequest) GetRawParams() model.Params
- func (r TaobaotradecloseAPIRequest) GetTid() int64
- func (r *TaobaotradecloseAPIRequest) SetCloseReason(_closeReason string) error
- func (r *TaobaotradecloseAPIRequest) SetTid(_tid int64) error
- type TaobaotradecloseAPIResponse
- type TaobaotradecloseAPIResponseModel
- type TaobaotradeconfirmfeegetAPIRequest
- func (r TaobaotradeconfirmfeegetAPIRequest) GetApiMethodName() string
- func (r TaobaotradeconfirmfeegetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradeconfirmfeegetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradeconfirmfeegetAPIRequest) GetTid() int64
- func (r *TaobaotradeconfirmfeegetAPIRequest) SetTid(_tid int64) error
- type TaobaotradeconfirmfeegetAPIResponse
- type TaobaotradeconfirmfeegetAPIResponseModel
- type TaobaotradefullinfogetAPIRequest
- func (r TaobaotradefullinfogetAPIRequest) GetApiMethodName() string
- func (r TaobaotradefullinfogetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradefullinfogetAPIRequest) GetFields() string
- func (r TaobaotradefullinfogetAPIRequest) GetIncludeOaid() string
- func (r TaobaotradefullinfogetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradefullinfogetAPIRequest) GetTid() int64
- func (r *TaobaotradefullinfogetAPIRequest) SetFields(_fields string) error
- func (r *TaobaotradefullinfogetAPIRequest) SetIncludeOaid(_includeOaid string) error
- func (r *TaobaotradefullinfogetAPIRequest) SetTid(_tid int64) error
- type TaobaotradefullinfogetAPIResponse
- type TaobaotradefullinfogetAPIResponseModel
- type TaobaotradeinvoiceamountgetAPIRequest
- func (r TaobaotradeinvoiceamountgetAPIRequest) GetApiMethodName() string
- func (r TaobaotradeinvoiceamountgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradeinvoiceamountgetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradeinvoiceamountgetAPIRequest) GetTid() int64
- func (r *TaobaotradeinvoiceamountgetAPIRequest) SetTid(_tid int64) error
- type TaobaotradeinvoiceamountgetAPIResponse
- type TaobaotradeinvoiceamountgetAPIResponseModel
- type TaobaotradememoaddAPIRequest
- func (r TaobaotradememoaddAPIRequest) GetApiMethodName() string
- func (r TaobaotradememoaddAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradememoaddAPIRequest) GetFlag() int64
- func (r TaobaotradememoaddAPIRequest) GetMemo() string
- func (r TaobaotradememoaddAPIRequest) GetRawParams() model.Params
- func (r TaobaotradememoaddAPIRequest) GetTid() int64
- func (r *TaobaotradememoaddAPIRequest) SetFlag(_flag int64) error
- func (r *TaobaotradememoaddAPIRequest) SetMemo(_memo string) error
- func (r *TaobaotradememoaddAPIRequest) SetTid(_tid int64) error
- type TaobaotradememoaddAPIResponse
- type TaobaotradememoaddAPIResponseModel
- type TaobaotradememoupdateAPIRequest
- func (r TaobaotradememoupdateAPIRequest) GetApiMethodName() string
- func (r TaobaotradememoupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradememoupdateAPIRequest) GetFlag() int64
- func (r TaobaotradememoupdateAPIRequest) GetMemo() string
- func (r TaobaotradememoupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaotradememoupdateAPIRequest) GetReset() bool
- func (r TaobaotradememoupdateAPIRequest) GetTid() int64
- func (r *TaobaotradememoupdateAPIRequest) SetFlag(_flag int64) error
- func (r *TaobaotradememoupdateAPIRequest) SetMemo(_memo string) error
- func (r *TaobaotradememoupdateAPIRequest) SetReset(_reset bool) error
- func (r *TaobaotradememoupdateAPIRequest) SetTid(_tid int64) error
- type TaobaotradememoupdateAPIResponse
- type TaobaotradememoupdateAPIResponseModel
- type TaobaotradeorderskuupdateAPIRequest
- func (r TaobaotradeorderskuupdateAPIRequest) GetApiMethodName() string
- func (r TaobaotradeorderskuupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradeorderskuupdateAPIRequest) GetOid() int64
- func (r TaobaotradeorderskuupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaotradeorderskuupdateAPIRequest) GetSkuId() int64
- func (r TaobaotradeorderskuupdateAPIRequest) GetSkuProps() string
- func (r *TaobaotradeorderskuupdateAPIRequest) SetOid(_oid int64) error
- func (r *TaobaotradeorderskuupdateAPIRequest) SetSkuId(_skuId int64) error
- func (r *TaobaotradeorderskuupdateAPIRequest) SetSkuProps(_skuProps string) error
- type TaobaotradeorderskuupdateAPIResponse
- type TaobaotradeorderskuupdateAPIResponseModel
- type TaobaotradepostageupdateAPIRequest
- func (r TaobaotradepostageupdateAPIRequest) GetApiMethodName() string
- func (r TaobaotradepostageupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradepostageupdateAPIRequest) GetPostFee() string
- func (r TaobaotradepostageupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaotradepostageupdateAPIRequest) GetTid() int64
- func (r *TaobaotradepostageupdateAPIRequest) SetPostFee(_postFee string) error
- func (r *TaobaotradepostageupdateAPIRequest) SetTid(_tid int64) error
- type TaobaotradepostageupdateAPIResponse
- type TaobaotradepostageupdateAPIResponseModel
- type TaobaotradereceivetimedelayAPIRequest
- func (r TaobaotradereceivetimedelayAPIRequest) GetApiMethodName() string
- func (r TaobaotradereceivetimedelayAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradereceivetimedelayAPIRequest) GetDays() int64
- func (r TaobaotradereceivetimedelayAPIRequest) GetRawParams() model.Params
- func (r TaobaotradereceivetimedelayAPIRequest) GetTid() int64
- func (r *TaobaotradereceivetimedelayAPIRequest) SetDays(_days int64) error
- func (r *TaobaotradereceivetimedelayAPIRequest) SetTid(_tid int64) error
- type TaobaotradereceivetimedelayAPIResponse
- type TaobaotradereceivetimedelayAPIResponseModel
- type TaobaotradeshippingaddressupdateAPIRequest
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetApiMethodName() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetRawParams() model.Params
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverAddress() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverCity() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverDistrict() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverMobile() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverName() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverPhone() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverState() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverTown() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverZip() string
- func (r TaobaotradeshippingaddressupdateAPIRequest) GetTid() int64
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverAddress(_receiverAddress string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverCity(_receiverCity string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverDistrict(_receiverDistrict string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverMobile(_receiverMobile string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverName(_receiverName string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverPhone(_receiverPhone string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverState(_receiverState string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverTown(_receiverTown string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverZip(_receiverZip string) error
- func (r *TaobaotradeshippingaddressupdateAPIRequest) SetTid(_tid int64) error
- type TaobaotradeshippingaddressupdateAPIResponse
- type TaobaotradeshippingaddressupdateAPIResponseModel
- type TaobaotradessoldgetAPIRequest
- func (r TaobaotradessoldgetAPIRequest) GetApiMethodName() string
- func (r TaobaotradessoldgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradessoldgetAPIRequest) GetBuyerNick() string
- func (r TaobaotradessoldgetAPIRequest) GetBuyerOpenId() string
- func (r TaobaotradessoldgetAPIRequest) GetEndCreated() string
- func (r TaobaotradessoldgetAPIRequest) GetExtType() string
- func (r TaobaotradessoldgetAPIRequest) GetFields() string
- func (r TaobaotradessoldgetAPIRequest) GetPageNo() int64
- func (r TaobaotradessoldgetAPIRequest) GetPageSize() int64
- func (r TaobaotradessoldgetAPIRequest) GetRateStatus() string
- func (r TaobaotradessoldgetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradessoldgetAPIRequest) GetStartCreated() string
- func (r TaobaotradessoldgetAPIRequest) GetStatus() string
- func (r TaobaotradessoldgetAPIRequest) GetTag() string
- func (r TaobaotradessoldgetAPIRequest) GetType() string
- func (r TaobaotradessoldgetAPIRequest) GetUseHasNext() bool
- func (r *TaobaotradessoldgetAPIRequest) SetBuyerNick(_buyerNick string) error
- func (r *TaobaotradessoldgetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error
- func (r *TaobaotradessoldgetAPIRequest) SetEndCreated(_endCreated string) error
- func (r *TaobaotradessoldgetAPIRequest) SetExtType(_extType string) error
- func (r *TaobaotradessoldgetAPIRequest) SetFields(_fields string) error
- func (r *TaobaotradessoldgetAPIRequest) SetPageNo(_pageNo int64) error
- func (r *TaobaotradessoldgetAPIRequest) SetPageSize(_pageSize int64) error
- func (r *TaobaotradessoldgetAPIRequest) SetRateStatus(_rateStatus string) error
- func (r *TaobaotradessoldgetAPIRequest) SetStartCreated(_startCreated string) error
- func (r *TaobaotradessoldgetAPIRequest) SetStatus(_status string) error
- func (r *TaobaotradessoldgetAPIRequest) SetTag(_tag string) error
- func (r *TaobaotradessoldgetAPIRequest) SetType(_type string) error
- func (r *TaobaotradessoldgetAPIRequest) SetUseHasNext(_useHasNext bool) error
- type TaobaotradessoldgetAPIResponse
- type TaobaotradessoldgetAPIResponseModel
- type TaobaotradessoldincrementgetAPIRequest
- func (r TaobaotradessoldincrementgetAPIRequest) GetApiMethodName() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradessoldincrementgetAPIRequest) GetBuyerNick() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetBuyerOpenUid() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetEndModified() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetExtType() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetFields() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetPageNo() int64
- func (r TaobaotradessoldincrementgetAPIRequest) GetPageSize() int64
- func (r TaobaotradessoldincrementgetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradessoldincrementgetAPIRequest) GetStartModified() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetStatus() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetTag() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetType() string
- func (r TaobaotradessoldincrementgetAPIRequest) GetUseHasNext() bool
- func (r *TaobaotradessoldincrementgetAPIRequest) SetBuyerNick(_buyerNick string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetBuyerOpenUid(_buyerOpenUid string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetEndModified(_endModified string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetExtType(_extType string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetFields(_fields string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetPageNo(_pageNo int64) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetPageSize(_pageSize int64) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetStartModified(_startModified string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetStatus(_status string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetTag(_tag string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetType(_type string) error
- func (r *TaobaotradessoldincrementgetAPIRequest) SetUseHasNext(_useHasNext bool) error
- type TaobaotradessoldincrementgetAPIResponse
- type TaobaotradessoldincrementgetAPIResponseModel
- type TaobaotradessoldincrementvgetAPIRequest
- func (r TaobaotradessoldincrementvgetAPIRequest) GetApiMethodName() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradessoldincrementvgetAPIRequest) GetEndCreate() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetExtType() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetFields() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetPageNo() int64
- func (r TaobaotradessoldincrementvgetAPIRequest) GetPageSize() int64
- func (r TaobaotradessoldincrementvgetAPIRequest) GetRawParams() model.Params
- func (r TaobaotradessoldincrementvgetAPIRequest) GetStartCreate() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetStatus() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetTag() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetType() string
- func (r TaobaotradessoldincrementvgetAPIRequest) GetUseHasNext() bool
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetEndCreate(_endCreate string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetExtType(_extType string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetFields(_fields string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetPageNo(_pageNo int64) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetPageSize(_pageSize int64) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetStartCreate(_startCreate string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetStatus(_status string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetTag(_tag string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetType(_type string) error
- func (r *TaobaotradessoldincrementvgetAPIRequest) SetUseHasNext(_useHasNext bool) error
- type TaobaotradessoldincrementvgetAPIResponse
- type TaobaotradessoldincrementvgetAPIResponseModel
- type TaobaotradessoldqueryAPIRequest
- func (r TaobaotradessoldqueryAPIRequest) GetApiMethodName() string
- func (r TaobaotradessoldqueryAPIRequest) GetApiParams(params url.Values)
- func (r TaobaotradessoldqueryAPIRequest) GetOrderType() string
- func (r TaobaotradessoldqueryAPIRequest) GetQueryList() []OrderQuery
- func (r TaobaotradessoldqueryAPIRequest) GetRawParams() model.Params
- func (r TaobaotradessoldqueryAPIRequest) GetScene() string
- func (r *TaobaotradessoldqueryAPIRequest) SetOrderType(_orderType string) error
- func (r *TaobaotradessoldqueryAPIRequest) SetQueryList(_queryList []OrderQuery) error
- func (r *TaobaotradessoldqueryAPIRequest) SetScene(_scene string) error
- type TaobaotradessoldqueryAPIResponse
- type TaobaotradessoldqueryAPIResponseModel
- type Trade
- type TradeAmount
- type TradeConfirmFee
- type TradeExt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressDetail ¶
type AddressDetail struct { // 详细地址 DetailedAddress string `json:"detailed_address,omitempty" xml:"detailed_address,omitempty"` // 行政区编码 DivisionCode string `json:"division_code,omitempty" xml:"division_code,omitempty"` // 区 Area string `json:"area,omitempty" xml:"area,omitempty"` // 电话号码 Telephone string `json:"telephone,omitempty" xml:"telephone,omitempty"` // 城市 City string `json:"city,omitempty" xml:"city,omitempty"` // 省份 Prov string `json:"prov,omitempty" xml:"prov,omitempty"` // 国家 Country string `json:"country,omitempty" xml:"country,omitempty"` // 国家 ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"` // 业务类型 BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"` }
AddressDetail 结构体
type AgreeRefundCheck ¶
type AgreeRefundCheck struct { // 提示文案 DeliveryTips string `json:"delivery_tips,omitempty" xml:"delivery_tips,omitempty"` // 流程状态 DeliveryProcess string `json:"delivery_process,omitempty" xml:"delivery_process,omitempty"` // 订单id DetailOrderId string `json:"detail_order_id,omitempty" xml:"detail_order_id,omitempty"` }
AgreeRefundCheck 结构体
type AppBillQueryRequest ¶
type AppBillQueryRequest struct { // 账单时间 BizDate string `json:"biz_date,omitempty" xml:"biz_date,omitempty"` // 页号,从1开始 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` // 页大小,不得超过1000 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` }
AppBillQueryRequest 结构体
type AssembleOrder ¶
type AssembleOrder struct { // 合单订单列表,一个列表最多200 OrderList []OrderGroup `json:"order_list,omitempty" xml:"order_list>order_group,omitempty"` // 组合id,服务商内部的合单操作id,取消合单会根据group_id进行删除操作。 GroupId string `json:"group_id,omitempty" xml:"group_id,omitempty"` }
AssembleOrder 结构体
type BillDetailInfo ¶
type BillDetailInfo struct { // 店铺名称 ShopNick string `json:"shop_nick,omitempty" xml:"shop_nick,omitempty"` // 账单计费 Cost string `json:"cost,omitempty" xml:"cost,omitempty"` // 已弃用,查询账单详情请使用taobao.top.secret.bill.detail接口。 SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"` // 已弃用,查询账单详情请使用taobao.top.secret.bill.detail接口。 Start string `json:"start,omitempty" xml:"start,omitempty"` // 已弃用,查询账单详情请使用taobao.top.secret.bill.detail接口。 End string `json:"end,omitempty" xml:"end,omitempty"` // 商家昵称 SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` // 0-号租费,1-通话费 BillItem int64 `json:"bill_item,omitempty" xml:"bill_item,omitempty"` // 账单持续时间,号租费时单位为天,通话费单位为分钟 BillDuration int64 `json:"bill_duration,omitempty" xml:"bill_duration,omitempty"` // 订单号 OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` }
BillDetailInfo 结构体
type CombineConsignInfo ¶ added in v1.2.9
type CombineConsignInfo struct { // 套餐组合id CombId string `json:"comb_id,omitempty" xml:"comb_id,omitempty"` // 套餐内的商品id ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 套餐内商品的skuId SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 成分品的预计发货时间 ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"` // 成分品的预计发货时间 RenderConsignTime string `json:"render_consign_time,omitempty" xml:"render_consign_time,omitempty"` }
CombineConsignInfo 结构体
type CombineLogisticsDetail ¶ added in v1.2.9
type CombineLogisticsDetail struct { // 包裹详情(仅支持成分品) SendGoodsDetails []SendGoodsDetail `json:"send_goods_details,omitempty" xml:"send_goods_details>send_goods_detail,omitempty"` // 运单号 InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"` // 物流公司 LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"` // 子订单id SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"` }
CombineLogisticsDetail 结构体
type CombineSubItemDo ¶ added in v1.2.9
type CombineSubItemDo struct { // 商品名称 ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"` // 商家外部编码(可与商家外部系统对接)。 OuterIid string `json:"outer_iid,omitempty" xml:"outer_iid,omitempty"` // SKU标题 SkuTitle string `json:"sku_title,omitempty" xml:"sku_title,omitempty"` // 套餐购成分品预计承诺时效(如果为时间格式为yyyy-MM-dd 则为绝对时间,为数字则为相对时间,比如7天内发货) EstconTime string `json:"estcon_time,omitempty" xml:"estcon_time,omitempty"` // outer_sku_id OuterSkuId string `json:"outer_sku_id,omitempty" xml:"outer_sku_id,omitempty"` // 商品数字编号 ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` // 商品的最小库存单位Sku的id SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 数量 Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"` // 成分品原价 OriginFee int64 `json:"origin_fee,omitempty" xml:"origin_fee,omitempty"` // 成分品套餐原价 CombineSubItemFee int64 `json:"combine_sub_item_fee,omitempty" xml:"combine_sub_item_fee,omitempty"` // 教育优惠原价 EduOriginalFee int64 `json:"edu_original_fee,omitempty" xml:"edu_original_fee,omitempty"` // 套餐购是否商品主子成分品�� Ismain bool `json:"ismain,omitempty" xml:"ismain,omitempty"` }
CombineSubItemDo 结构体
type DeliveryPlan ¶
type DeliveryPlan struct { // 外部物流单号 OutLogisticsId string `json:"out_logistics_id,omitempty" xml:"out_logistics_id,omitempty"` // 备货期开始时间 PrepareTimeBegin string `json:"prepare_time_begin,omitempty" xml:"prepare_time_begin,omitempty"` // 计划发货时间 ShipTimeBegin string `json:"ship_time_begin,omitempty" xml:"ship_time_begin,omitempty"` // 实际发货时间 ActualShipTime string `json:"actual_ship_time,omitempty" xml:"actual_ship_time,omitempty"` // 收货人姓名 ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"` // 收货人手机号 ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"` // 收货人电话 ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"` // 收货详细地址 ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"` // aid Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 隐私号 PrivacyNum string `json:"privacy_num,omitempty" xml:"privacy_num,omitempty"` // 隐私号过期时间 PrivacyExpireTime string `json:"privacy_expire_time,omitempty" xml:"privacy_expire_time,omitempty"` // 收货地址 ReceiverTown string `json:"receiver_town,omitempty" xml:"receiver_town,omitempty"` // 收货地址 ReceiverDistrict string `json:"receiver_district,omitempty" xml:"receiver_district,omitempty"` // 收货地址 ReceiverCity string `json:"receiver_city,omitempty" xml:"receiver_city,omitempty"` // 收货地址 ReceiverState string `json:"receiver_state,omitempty" xml:"receiver_state,omitempty"` // 收货地址 ReceiverCountry string `json:"receiver_country,omitempty" xml:"receiver_country,omitempty"` // 计划id PlanId int64 `json:"plan_id,omitempty" xml:"plan_id,omitempty"` // 交易订单号 OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` // 发货期数 CurrPhase int64 `json:"curr_phase,omitempty" xml:"curr_phase,omitempty"` // 发货商品数量 GoodsNum int64 `json:"goods_num,omitempty" xml:"goods_num,omitempty"` // 计划状态 PlanStatus int64 `json:"plan_status,omitempty" xml:"plan_status,omitempty"` // 计划退款状态 PlanRefundStatus int64 `json:"plan_refund_status,omitempty" xml:"plan_refund_status,omitempty"` }
DeliveryPlan 结构体
type ExpandCardInfo ¶
type ExpandCardInfo struct { // 买卡订单本金 BasicPrice string `json:"basic_price,omitempty" xml:"basic_price,omitempty"` // 买卡订单权益金 ExpandPrice string `json:"expand_price,omitempty" xml:"expand_price,omitempty"` // 用卡订单使用的本金 BasicPriceUsed string `json:"basic_price_used,omitempty" xml:"basic_price_used,omitempty"` // 用卡订单使用的权益金 ExpandPriceUsed string `json:"expand_price_used,omitempty" xml:"expand_price_used,omitempty"` }
ExpandCardInfo 结构体
type IdentifyInfo ¶ added in v1.2.9
type IdentifyInfo struct { // 三方鉴定物流相关信息 IdentifyLogisticsInfos []IdentifyLogisticsInfo `json:"identify_logistics_infos,omitempty" xml:"identify_logistics_infos>identify_logistics_info,omitempty"` // 三方鉴定服务相关信息 IdentifyServiceInfos []IdentifyServiceInfo `json:"identify_service_infos,omitempty" xml:"identify_service_infos>identify_service_info,omitempty"` }
IdentifyInfo 结构体
type IdentifyLogisticsInfo ¶ added in v1.2.9
type IdentifyLogisticsInfo struct { // 物流公司 LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"` // 运单号 InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"` // 退款单号 RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"` // 子订单号 DetailOrderId int64 `json:"detail_order_id,omitempty" xml:"detail_order_id,omitempty"` // 阶段号 StageNo int64 `json:"stage_no,omitempty" xml:"stage_no,omitempty"` // 是否退货 Refund bool `json:"refund,omitempty" xml:"refund,omitempty"` }
IdentifyLogisticsInfo 结构体
type IdentifyServiceInfo ¶ added in v1.2.9
type IdentifyServiceInfo struct { // 标的物 UnitId string `json:"unit_id,omitempty" xml:"unit_id,omitempty"` // 服务单号 ServiceId string `json:"service_id,omitempty" xml:"service_id,omitempty"` // 子订单号 DetailOrderId int64 `json:"detail_order_id,omitempty" xml:"detail_order_id,omitempty"` }
IdentifyServiceInfo 结构体
type LogisticServiceTag ¶
type LogisticServiceTag struct { // 物流服务下的标签属性,多个标签之间有";"分隔 ServiceTag string `json:"service_tag,omitempty" xml:"service_tag,omitempty"` // 消费者选快递请直接判断service_tag是否包含companyCode。而不要判断service_type ServiceType string `json:"service_type,omitempty" xml:"service_type,omitempty"` }
LogisticServiceTag 结构体
type LogisticsAgreement ¶ added in v1.2.9
type LogisticsAgreement struct { // 服务承诺/异常文案 LogisticsServiceMsg string `json:"logistics_service_msg,omitempty" xml:"logistics_service_msg,omitempty"` // 物流服务业务身份 AsdpBizType string `json:"asdp_biz_type,omitempty" xml:"asdp_biz_type,omitempty"` // 物流信息,多个值时用英文逗号隔开 AsdpAds string `json:"asdp_ads,omitempty" xml:"asdp_ads,omitempty"` // 计划送达时间 SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"` // 承诺/最晚送达时间 PromiseSignTime string `json:"promise_sign_time,omitempty" xml:"promise_sign_time,omitempty"` // ERP应推单时间(主单) PushTime string `json:"push_time,omitempty" xml:"push_time,omitempty"` // 1:不支持子单部分发货 NoDetailPartConsign string `json:"no_detail_part_consign,omitempty" xml:"no_detail_part_consign,omitempty"` // 1:代表该订单是预售下沉订单类型为前置表达 SinkType string `json:"sink_type,omitempty" xml:"sink_type,omitempty"` }
LogisticsAgreement 结构体
type LogisticsConsignInfo ¶ added in v1.2.9
type LogisticsConsignInfo struct { // 成分品发货时效 CombineItem []CombineConsignInfo `json:"combine_item,omitempty" xml:"combine_item>combine_consign_info,omitempty"` // 时效关联的订单好 RelatedId string `json:"related_id,omitempty" xml:"related_id,omitempty"` // 商家的预计发货时间 ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"` // 商家的预计发货时间 RenderConsignTime string `json:"render_consign_time,omitempty" xml:"render_consign_time,omitempty"` }
LogisticsConsignInfo 结构体
type LogisticsInfo ¶
type LogisticsInfo struct { // 货品仓储id ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 货品仓储code ItemCode string `json:"item_code,omitempty" xml:"item_code,omitempty"` // 如是菜鸟仓,则将菜鸟仓的区域仓code进行填充,如是商家仓发货则填充SC StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"` // 子订单类型:标示该子交易单来源交易,还是BMS增加的,枚举值(00=交易,10=BMS绑定) Type string `json:"type,omitempty" xml:"type,omitempty"` // 商品的最小库存单位Sku的id SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 发货类型 CN=菜鸟发货,SC的商家仓发货 ConsignType string `json:"consign_type,omitempty" xml:"consign_type,omitempty"` // 组合货品ID CombineItemId string `json:"combine_item_id,omitempty" xml:"combine_item_id,omitempty"` // 组合货品Code CombineItemCode string `json:"combine_item_code,omitempty" xml:"combine_item_code,omitempty"` // 货品BarCode BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"` // 择配信息 DeliveryCps string `json:"delivery_cps,omitempty" xml:"delivery_cps,omitempty"` // 推荐配送erp编码 BizDeliveryCode string `json:"biz_delivery_code,omitempty" xml:"biz_delivery_code,omitempty"` // 仓商家编码 BizStoreCode string `json:"biz_store_code,omitempty" xml:"biz_store_code,omitempty"` // 仓配建议类型 BizSdType string `json:"biz_sd_type,omitempty" xml:"biz_sd_type,omitempty"` // 服务决策的发货地,国家 SendCountry string `json:"send_country,omitempty" xml:"send_country,omitempty"` // 服务决策的发货地,省份 SendState string `json:"send_state,omitempty" xml:"send_state,omitempty"` // 服务决策的发货地,城市 SendCity string `json:"send_city,omitempty" xml:"send_city,omitempty"` // 服务决策的发货地,地区 SendDistrict string `json:"send_district,omitempty" xml:"send_district,omitempty"` // 服务决策的发货地,街道地址 SendTown string `json:"send_town,omitempty" xml:"send_town,omitempty"` // 服务决策的发货地最小地址编码 SendDivisionCode string `json:"send_division_code,omitempty" xml:"send_division_code,omitempty"` // 服务决策的快递黑名单列表 BlackDeliveryCps string `json:"black_delivery_cps,omitempty" xml:"black_delivery_cps,omitempty"` // 服务决策的快递白名单列表 WhiteDeliveryCps string `json:"white_delivery_cps,omitempty" xml:"white_delivery_cps,omitempty"` // 未使用仓建议报错 UnusedWarehouseErrorMsg string `json:"unused_warehouse_error_msg,omitempty" xml:"unused_warehouse_error_msg,omitempty"` // 未使用配建议报错 UnusedDeliveryErrorMsg string `json:"unused_delivery_error_msg,omitempty" xml:"unused_delivery_error_msg,omitempty"` // 使用禁止配报错 UsedBlackDeliveryErrorMsg string `json:"used_black_delivery_error_msg,omitempty" xml:"used_black_delivery_error_msg,omitempty"` // 承诺/最晚出库时间 PromiseOutboundTime string `json:"promise_outbound_time,omitempty" xml:"promise_outbound_time,omitempty"` // 承诺/最晚揽收时间 PromiseCollectTime string `json:"promise_collect_time,omitempty" xml:"promise_collect_time,omitempty"` // 主交易号 TradeId int64 `json:"trade_id,omitempty" xml:"trade_id,omitempty"` // 子交易号 SubTradeId int64 `json:"sub_trade_id,omitempty" xml:"sub_trade_id,omitempty"` // 应发数量 NeedConsignNum int64 `json:"need_consign_num,omitempty" xml:"need_consign_num,omitempty"` // 商品数字编号 NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"` // 组合货品比例 ItemRatio int64 `json:"item_ratio,omitempty" xml:"item_ratio,omitempty"` // 订单推荐配送类型 * 0:子单无配建议;ERP按照自己的逻辑进行择配。 * 1:子单有推荐配list,erp可按需参考。 * 2:子单有推荐配list,erp必须在推荐配list中选择配品牌。 * 3:子单有禁用配list,erp需要过滤配品牌。 BizDeliveryType int64 `json:"biz_delivery_type,omitempty" xml:"biz_delivery_type,omitempty"` }
LogisticsInfo 结构体
type LogisticsModifyInfo ¶ added in v1.2.9
type LogisticsModifyInfo struct { // 修改关联的订单好 RelatedId string `json:"related_id,omitempty" xml:"related_id,omitempty"` // 修改后的发货时效 ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"` // 修改前的发货时效 OriginConsignTime string `json:"origin_consign_time,omitempty" xml:"origin_consign_time,omitempty"` // 修改时间 ModifyTime string `json:"modify_time,omitempty" xml:"modify_time,omitempty"` // 修改原因 ModifyReason string `json:"modify_reason,omitempty" xml:"modify_reason,omitempty"` // 成分品的商品id ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"` // 成分品的skuId SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 成分品的组合id CombId string `json:"comb_id,omitempty" xml:"comb_id,omitempty"` }
LogisticsModifyInfo 结构体
type LogisticsTag ¶
type LogisticsTag struct { // 服务标签 LogisticServiceTagList []LogisticServiceTag `json:"logistic_service_tag_list,omitempty" xml:"logistic_service_tag_list>logistic_service_tag,omitempty"` // 主订单或子订单的订单号 OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` }
LogisticsTag 结构体
type Order ¶
type Order struct { // 发货信息,目前只记录了发货方式 ShipInfo []ShipInfo `json:"ship_info,omitempty" xml:"ship_info>ship_info,omitempty"` // 组合品信息 CombineItemInfo []CombineSubItemDo `json:"combine_item_info,omitempty" xml:"combine_item_info>combine_sub_item_do,omitempty"` // 发货信息,目前只记录了发货方式 ShpInfo []ShipInfo `json:"shp_info,omitempty" xml:"shp_info>ship_info,omitempty"` // 商品标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // 商品图片的绝对路径 PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"` // 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分 Price string `json:"price,omitempty" xml:"price,omitempty"` // 商品的最小库存单位Sku的id.可以通过taobao.item.sku.get获取详细的Sku信息 SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 商家外部编码(可与商家外部系统对接)。外部商家自己定义的商品Item的id,可以通过taobao.items.custom.get获取商品的Item的信息 OuterIid string `json:"outer_iid,omitempty" xml:"outer_iid,omitempty"` // 外部网店自己定义的Sku编号 OuterSkuId string `json:"outer_sku_id,omitempty" xml:"outer_sku_id,omitempty"` // 退款状态。退款状态。可选值 WAIT_SELLER_AGREE(买家已经申请退款,等待卖家同意) WAIT_BUYER_RETURN_GOODS(卖家已经同意退款,等待买家退货) WAIT_SELLER_CONFIRM_GOODS(买家已经退货,等待卖家确认收货) SELLER_REFUSE_BUYER(卖家拒绝退款) CLOSED(退款关闭) SUCCESS(退款成功) RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"` // 订单状态(请关注此状态,如果为TRADE_CLOSED_BY_TAOBAO状态,则不要对此订单进行发货,切记啊!)。可选值: <ul><li>TRADE_NO_CREATE_PAY(没有创建支付宝交易) </li><li>WAIT_BUYER_PAY(等待买家付款) </li><li>WAIT_SELLER_SEND_GOODS(等待卖家发货,即:买家已付款) </li><li>WAIT_BUYER_CONFIRM_GOODS(等待买家确认收货,即:卖家已发货) </li><li>TRADE_BUYER_SIGNED(买家已签收,货到付款专用) </li><li>TRADE_FINISHED(交易成功) </li><li>TRADE_CLOSED(付款以后用户退款成功,交易自动关闭) </li><li>TRADE_CLOSED_BY_TAOBAO(付款以前,卖家或买家主动关闭交易)</li><li>PAY_PENDING(国际信用卡支付付款确认中)</li></ul> Status string `json:"status,omitempty" xml:"status,omitempty"` // 应付金额(商品价格 * 商品数量 + 手工调整金额 - 子订单级订单优惠金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分 TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"` // 子订单实付金额。精确到2位小数,单位:元。如:200.07,表示:200元7分。对于多子订单的交易,计算公式如下:payment = price * num + adjust_fee - discount_fee ;单子订单交易,payment与主订单的payment一致,对于退款成功的子订单,由于主订单的优惠分摊金额,会造成该字段可能不为0.00元。建议使用退款前的实付金额减去退款单中的实际退款金额计算。 Payment string `json:"payment,omitempty" xml:"payment,omitempty"` // 子订单级订单优惠金额。精确到2位小数;单位:元。如:200.07,表示:200元7分 DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"` // 手工调整金额.格式为:1.01;单位:元;精确到小数点后两位. AdjustFee string `json:"adjust_fee,omitempty" xml:"adjust_fee,omitempty"` // 分摊之后的实付金额 DivideOrderFee string `json:"divide_order_fee,omitempty" xml:"divide_order_fee,omitempty"` // 优惠分摊 PartMjzDiscount string `json:"part_mjz_discount,omitempty" xml:"part_mjz_discount,omitempty"` // SKU的值。如:机身颜色:黑色;手机套餐:官方标配 SkuPropertiesName string `json:"sku_properties_name,omitempty" xml:"sku_properties_name,omitempty"` // 套餐的值。如:M8原装电池:便携支架:M8专用座充:莫凡保护袋 ItemMealName string `json:"item_meal_name,omitempty" xml:"item_meal_name,omitempty"` // 订单快照URL SnapshotUrl string `json:"snapshot_url,omitempty" xml:"snapshot_url,omitempty"` // 订单超时到期时间。格式:yyyy-MM-dd HH:mm:ss TimeoutActionTime string `json:"timeout_action_time,omitempty" xml:"timeout_action_time,omitempty"` // 商品备注 ItemMemo string `json:"item_memo,omitempty" xml:"item_memo,omitempty"` // 最近退款ID RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"` // 卖家类型,可选值为:B(商城商家),C(普通卖家) SellerType string `json:"seller_type,omitempty" xml:"seller_type,omitempty"` // 子订单的交易结束时间说明:子订单有单独的结束时间,与主订单的结束时间可能有所不同,在有退款发起的时候或者是主订单分阶段付款的时候,子订单的结束时间会早于主订单的结束时间,所以开放这个字段便于订单结束状态的判断 EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 子订单来源,如jhs(聚划算)、taobao(淘宝)、wap(无线) OrderFrom string `json:"order_from,omitempty" xml:"order_from,omitempty"` // 子订单发货时间,当卖家对订单进行了多次发货,子订单的发货时间和主订单的发货时间可能不一样了,那么就需要以子订单的时间为准。(没有进行多次发货的订单,主订单的发货时间和子订单的发货时间都一样) ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"` // 子订单的运送方式(卖家对订单进行多次发货之后,一个主订单下的子订单的运送方式可能不同,用order.shipping_type来区分子订单的运送方式) ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"` // 子订单发货的快递公司名称 LogisticsCompany string `json:"logistics_company,omitempty" xml:"logistics_company,omitempty"` // 子订单所在包裹的运单号 InvoiceNo string `json:"invoice_no,omitempty" xml:"invoice_no,omitempty"` // 对应门票有效期的外部id TicketOuterId string `json:"ticket_outer_id,omitempty" xml:"ticket_outer_id,omitempty"` // 门票有效期的key TicketExpdateKey string `json:"ticket_expdate_key,omitempty" xml:"ticket_expdate_key,omitempty"` // 发货的仓库编码 StoreCode string `json:"store_code,omitempty" xml:"store_code,omitempty"` // 支持家装类物流的类型 TmserSpuCode string `json:"tmser_spu_code,omitempty" xml:"tmser_spu_code,omitempty"` // 天猫国际官网直供子订单关税税费 SubOrderTaxFee string `json:"sub_order_tax_fee,omitempty" xml:"sub_order_tax_fee,omitempty"` // 天猫国际官网直供子订单关税税率 SubOrderTaxRate string `json:"sub_order_tax_rate,omitempty" xml:"sub_order_tax_rate,omitempty"` // 天猫汽车服务预约时间 EtSerTime string `json:"et_ser_time,omitempty" xml:"et_ser_time,omitempty"` // 电子凭证预约门店地址 EtShopName string `json:"et_shop_name,omitempty" xml:"et_shop_name,omitempty"` // 电子凭证核销门店地址 EtVerifiedShopName string `json:"et_verified_shop_name,omitempty" xml:"et_verified_shop_name,omitempty"` // 车牌号码 EtPlateNumber string `json:"et_plate_number,omitempty" xml:"et_plate_number,omitempty"` // 子订单预计发货时间 EstimateConTime string `json:"estimate_con_time,omitempty" xml:"estimate_con_time,omitempty"` // bind_oid字段的升级,支持返回绑定的多个子订单,多个子订单以半角逗号分隔 BindOids string `json:"bind_oids,omitempty" xml:"bind_oids,omitempty"` // 征集预售订单征集状态:1(征集中),2(征集成功),3(征集失败) ZhengjiStatus string `json:"zhengji_status,omitempty" xml:"zhengji_status,omitempty"` // 免单资格属性 MdQualification string `json:"md_qualification,omitempty" xml:"md_qualification,omitempty"` // 免单金额 MdFee string `json:"md_fee,omitempty" xml:"md_fee,omitempty"` // 定制信息 Customization string `json:"customization,omitempty" xml:"customization,omitempty"` // 库存类型:6为在途 InvType string `json:"inv_type,omitempty" xml:"inv_type,omitempty"` // 仓储信息 Shipper string `json:"shipper,omitempty" xml:"shipper,omitempty"` // 订单履行类型,如喵鲜生极速达(jsd) FType string `json:"f_type,omitempty" xml:"f_type,omitempty"` // 订单履行状态,如喵鲜生极速达:分单完成 FStatus string `json:"f_status,omitempty" xml:"f_status,omitempty"` // 单履行内容,如喵鲜生极速达:storeId,phone FTerm string `json:"f_term,omitempty" xml:"f_term,omitempty"` // 天猫搭配宝 ComboId string `json:"combo_id,omitempty" xml:"combo_id,omitempty"` // 子订单扩展属性:<br/> is_free_down_payment:是否免首付:true:是,false:否,可选字段<br/> car_back_payment:返还免首付金额,单位:分,<br/> car_ref_activity_id:服务商传入活动ID,依赖外部服务商传入;<br/> OrderAttr string `json:"order_attr,omitempty" xml:"order_attr,omitempty"` // assemblyRela AssemblyRela string `json:"assembly_rela,omitempty" xml:"assembly_rela,omitempty"` // assemblyPrice AssemblyPrice string `json:"assembly_price,omitempty" xml:"assembly_price,omitempty"` // assemblyItem AssemblyItem string `json:"assembly_item,omitempty" xml:"assembly_item,omitempty"` // 天猫国际子订单计税优惠金额 SubOrderTaxPromotionFee string `json:"sub_order_tax_promotion_fee,omitempty" xml:"sub_order_tax_promotion_fee,omitempty"` // downPayment DownPayment string `json:"down_payment,omitempty" xml:"down_payment,omitempty"` // downPaymentRatio DownPaymentRatio string `json:"down_payment_ratio,omitempty" xml:"down_payment_ratio,omitempty"` // monthPayment MonthPayment string `json:"month_payment,omitempty" xml:"month_payment,omitempty"` // tailPayment TailPayment string `json:"tail_payment,omitempty" xml:"tail_payment,omitempty"` // installmentNum InstallmentNum string `json:"installment_num,omitempty" xml:"installment_num,omitempty"` // penalty Penalty string `json:"penalty,omitempty" xml:"penalty,omitempty"` // serviceFee ServiceFee string `json:"service_fee,omitempty" xml:"service_fee,omitempty"` // carTaker CarTaker string `json:"car_taker,omitempty" xml:"car_taker,omitempty"` // carTakerPhone CarTakerPhone string `json:"car_taker_phone,omitempty" xml:"car_taker_phone,omitempty"` // carTakerID CarTakerId string `json:"car_taker_id,omitempty" xml:"car_taker_id,omitempty"` // carStoreCode CarStoreCode string `json:"car_store_code,omitempty" xml:"car_store_code,omitempty"` // carStoreName CarStoreName string `json:"car_store_name,omitempty" xml:"car_store_name,omitempty"` // outUniqueId OutUniqueId string `json:"out_unique_id,omitempty" xml:"out_unique_id,omitempty"` // wsBankApplyNo WsBankApplyNo string `json:"ws_bank_apply_no,omitempty" xml:"ws_bank_apply_no,omitempty"` // oidStr OidStr string `json:"oid_str,omitempty" xml:"oid_str,omitempty"` // 天猫国际订单包税金额 TaxCouponDiscount string `json:"tax_coupon_discount,omitempty" xml:"tax_coupon_discount,omitempty"` // nrReduceInvFail NrReduceInvFail string `json:"nr_reduce_inv_fail,omitempty" xml:"nr_reduce_inv_fail,omitempty"` // 新零售商家端商品唯一编号 NrOuterIid string `json:"nr_outer_iid,omitempty" xml:"nr_outer_iid,omitempty"` // bind_oids字段的升级,在交易成功和交易关闭状态下也能获取到,支持返回绑定的多个子订单,多个子订单以半角逗号分隔 BindOidsAllStatus string `json:"bind_oids_all_status,omitempty" xml:"bind_oids_all_status,omitempty"` // 导购员Id O2oGuideId string `json:"o2o_guide_id,omitempty" xml:"o2o_guide_id,omitempty"` // 导购员名称 O2oGuideName string `json:"o2o_guide_name,omitempty" xml:"o2o_guide_name,omitempty"` // 门店Id O2oShopId string `json:"o2o_shop_id,omitempty" xml:"o2o_shop_id,omitempty"` // 门店名称 O2oShopName string `json:"o2o_shop_name,omitempty" xml:"o2o_shop_name,omitempty"` // 云店交易链路,为tmall.daogoubao.cloudstore时表示云店链路 BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` // 云店标记为1,且bizCode不为tmall.daogoubao.cloudstore时,为旗舰店订单 CloudStore string `json:"cloud_store,omitempty" xml:"cloud_store,omitempty"` // 云店是否扣拥 HjSettleNoCommission string `json:"hj_settle_no_commission,omitempty" xml:"hj_settle_no_commission,omitempty"` // 云店接单标记 OrderTaking string `json:"order_taking,omitempty" xml:"order_taking,omitempty"` // 云店改价用token CloudStoreToken string `json:"cloud_store_token,omitempty" xml:"cloud_store_token,omitempty"` // 云店pos单号 CloudStoreBindPos string `json:"cloud_store_bind_pos,omitempty" xml:"cloud_store_bind_pos,omitempty"` // 天猫未来店线下店铺 ID RetailStoreId string `json:"retail_store_id,omitempty" xml:"retail_store_id,omitempty"` // 天猫未来店外部 ERP 商品 ID OutItemId string `json:"out_item_id,omitempty" xml:"out_item_id,omitempty"` // 新零售全渠道订单:商家自有货品编码 RtOmniOuterScId string `json:"rt_omni_outer_sc_id,omitempty" xml:"rt_omni_outer_sc_id,omitempty"` // 新零售全渠道订单:后端货品ID RtOmniScId string `json:"rt_omni_sc_id,omitempty" xml:"rt_omni_sc_id,omitempty"` // 有值表示买家修改了地址;1表示付款后改地址;2表示付款前改地址 ModifyAddress string `json:"modify_address,omitempty" xml:"modify_address,omitempty"` // 买家修改地址时间 TiModifyAddressTime string `json:"ti_modify_address_time,omitempty" xml:"ti_modify_address_time,omitempty"` // 有值表示信用购订单;1表示信用购一期;2表示信用购二期;3表示信用购三期 CreditBuy string `json:"credit_buy,omitempty" xml:"credit_buy,omitempty"` // 子订单商家代缴税费 STariffFee string `json:"s_tariff_fee,omitempty" xml:"s_tariff_fee,omitempty"` // 时效服务身份,如tmallPromise代表天猫时效承诺 TimingPromise string `json:"timing_promise,omitempty" xml:"timing_promise,omitempty"` // 时效服务字段,服务字段,会有多个服务值,以英文半角逗号","切割 PromiseService string `json:"promise_service,omitempty" xml:"promise_service,omitempty"` // 预计送达时间 EsDate string `json:"es_date,omitempty" xml:"es_date,omitempty"` // 预计配送时间段 EsRange string `json:"es_range,omitempty" xml:"es_range,omitempty"` // 预约配送,用户预约时间 OsDate string `json:"os_date,omitempty" xml:"os_date,omitempty"` // 预约配送,用户预约时间段 OsRange string `json:"os_range,omitempty" xml:"os_range,omitempty"` // 物流截单时间,分钟 CutoffMinutes string `json:"cutoff_minutes,omitempty" xml:"cutoff_minutes,omitempty"` // 物流时效,相对时间,单位是天 EsTime string `json:"es_time,omitempty" xml:"es_time,omitempty"` // 最晚发货时间 DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"` // 最晚揽收时间 CollectTime string `json:"collect_time,omitempty" xml:"collect_time,omitempty"` // 最晚派送时间 DispatchTime string `json:"dispatch_time,omitempty" xml:"dispatch_time,omitempty"` // 最晚签收时间 SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"` // 信用购履约结束时间 PromiseEndTime string `json:"promise_end_time,omitempty" xml:"promise_end_time,omitempty"` // 前N有礼活动id OsActivityId string `json:"os_activity_id,omitempty" xml:"os_activity_id,omitempty"` // 前N有礼奖品的商品id OsFgItemId string `json:"os_fg_item_id,omitempty" xml:"os_fg_item_id,omitempty"` // 前N有礼获得奖品的数量 OsGiftCount string `json:"os_gift_count,omitempty" xml:"os_gift_count,omitempty"` // 前N有礼中奖名次,获得奖品的订单才会有该字段 OsSortNum string `json:"os_sort_num,omitempty" xml:"os_sort_num,omitempty"` // 使用淘金币的数量,以分为单位,和订单标propoint中间那一段一样 Propoint string `json:"propoint,omitempty" xml:"propoint,omitempty"` // 特殊的退款类型,比如直播返现、价保 SpecialRefundType string `json:"special_refund_type,omitempty" xml:"special_refund_type,omitempty"` // 透出的额外信息 ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` // 同城购渠道店id BrandLightShopStoreId string `json:"brand_light_shop_store_id,omitempty" xml:"brand_light_shop_store_id,omitempty"` // 同城购订单来源 BrandLightShopSource string `json:"brand_light_shop_source,omitempty" xml:"brand_light_shop_source,omitempty"` // 服务供应链-服务订单类型,1:主子挂载;2:双主挂载;3:单独售卖 ServiceOrderType string `json:"service_order_type,omitempty" xml:"service_order_type,omitempty"` // 服务供应链-服务商外部编码 ServiceOuterId string `json:"service_outer_id,omitempty" xml:"service_outer_id,omitempty"` // 购物金核销子订单权益金分摊金额(单位为元) ExpandCardExpandPriceUsedSuborder string `json:"expand_card_expand_price_used_suborder,omitempty" xml:"expand_card_expand_price_used_suborder,omitempty"` // 购物金核销子订单本金分摊金额(单位为元) ExpandCardBasicPriceUsedSuborder string `json:"expand_card_basic_price_used_suborder,omitempty" xml:"expand_card_basic_price_used_suborder,omitempty"` // 预售订单立减金额 Lijian string `json:"lijian,omitempty" xml:"lijian,omitempty"` // 优仓业务场景下 1(自动流转)/0(非自动流转) AutoFlow string `json:"auto_flow,omitempty" xml:"auto_flow,omitempty"` // 订单是有代发订单,为空表示该订单暂无代发单据,distribute-该子订单有已分配代发单据,cancel-订单的代发单据都已取消, DistributeStatus string `json:"distribute_status,omitempty" xml:"distribute_status,omitempty"` // 是否为闲鱼订单,1是,0否 IsIdle string `json:"is_idle,omitempty" xml:"is_idle,omitempty"` // 赠品关联的id,主品订单下此字段表示赠品订单id,赠品订单表示主品订单id GiftMids string `json:"gift_mids,omitempty" xml:"gift_mids,omitempty"` // 承诺/最晚揽收时间 PromiseCollectTime string `json:"promise_collect_time,omitempty" xml:"promise_collect_time,omitempty"` // 订单是否属于b2b代销 B2bDaixiao string `json:"b2b_daixiao,omitempty" xml:"b2b_daixiao,omitempty"` // 套餐购套餐ID BundleId string `json:"bundle_id,omitempty" xml:"bundle_id,omitempty"` // 套餐购套餐名称 BundleOutName string `json:"bundle_out_name,omitempty" xml:"bundle_out_name,omitempty"` // 主品关联的1元商品订单号 OneYuanReservationOrders string `json:"one_yuan_reservation_orders,omitempty" xml:"one_yuan_reservation_orders,omitempty"` // 鉴定编码 JewccNo string `json:"jewcc_no,omitempty" xml:"jewcc_no,omitempty"` // 订单修改时间,目前只有taobao.trade.ordersku.update会返回此字段。 Modified string `json:"modified,omitempty" xml:"modified,omitempty"` // 商品数字ID NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"` // 子订单编号 Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // 套餐ID ItemMealId int64 `json:"item_meal_id,omitempty" xml:"item_meal_id,omitempty"` // 购买数量。取值范围:大于零的整数 Num int64 `json:"num,omitempty" xml:"num,omitempty"` // 交易商品对应的类目ID Cid int64 `json:"cid,omitempty" xml:"cid,omitempty"` // 捆绑的子订单号,表示该子订单要和捆绑的子订单一起发货,用于卖家子订单捆绑发货 BindOid int64 `json:"bind_oid,omitempty" xml:"bind_oid,omitempty"` // 花呗分期期数 FqgNum int64 `json:"fqg_num,omitempty" xml:"fqg_num,omitempty"` // sortInfo SortInfo *SortInfo `json:"sort_info,omitempty" xml:"sort_info,omitempty"` // 订单履约类型 TradeFulfillmentType int64 `json:"trade_fulfillment_type,omitempty" xml:"trade_fulfillment_type,omitempty"` // 套餐购套餐类型标识 1营销套餐-PromoBundle 2人群套餐-CrowdBundle BundleType int64 `json:"bundle_type,omitempty" xml:"bundle_type,omitempty"` // 买家是否已评价。可选值:true(已评价),false(未评价) BuyerRate bool `json:"buyer_rate,omitempty" xml:"buyer_rate,omitempty"` // 卖家是否已评价。可选值:true(已评价),false(未评价) SellerRate bool `json:"seller_rate,omitempty" xml:"seller_rate,omitempty"` // 是否超卖 IsOversold bool `json:"is_oversold,omitempty" xml:"is_oversold,omitempty"` // 是否是服务订单,是返回true,否返回false。 IsServiceOrder bool `json:"is_service_order,omitempty" xml:"is_service_order,omitempty"` // 表示订单交易是否含有对应的代销采购单。如果该订单中存在一个对应的代销采购单,那么该值为true;反之,该值为false。 IsDaixiao bool `json:"is_daixiao,omitempty" xml:"is_daixiao,omitempty"` // 子订单是否是www订单 IsWww bool `json:"is_www,omitempty" xml:"is_www,omitempty"` // 是否发货 IsShShip bool `json:"is_sh_ship,omitempty" xml:"is_sh_ship,omitempty"` // 是否商家承担手续费 IsFqgSFee bool `json:"is_fqg_s_fee,omitempty" xml:"is_fqg_s_fee,omitempty"` // 天猫国际订单是否包税 TaxFree bool `json:"tax_free,omitempty" xml:"tax_free,omitempty"` // 是否是考拉商品订单 IsKaola bool `json:"is_kaola,omitempty" xml:"is_kaola,omitempty"` // 子订单优惠贬值 IsDevalueFee bool `json:"is_devalue_fee,omitempty" xml:"is_devalue_fee,omitempty"` // 是否是赠品订单 IsFreeGift bool `json:"is_free_gift,omitempty" xml:"is_free_gift,omitempty"` // 是否含有赠品 HasGift bool `json:"has_gift,omitempty" xml:"has_gift,omitempty"` // 表示该子订单会ascp会自动流转到菜鸟仓发货 IsForceDc bool `json:"is_force_dc,omitempty" xml:"is_force_dc,omitempty"` // 仅对赠品子单生效,退货时赠品是否需要随主品一起退回,字段缺失/true-需要退回,false-无需退回 NeedReturn bool `json:"need_return,omitempty" xml:"need_return,omitempty"` // 是否家装分销订单,入参fields中传入orders.is_jzfx时返回 IsJzfx bool `json:"is_jzfx,omitempty" xml:"is_jzfx,omitempty"` }
Order 结构体
type OrderAmount ¶
type OrderAmount struct { // 商品标题 Title string `json:"title,omitempty" xml:"title,omitempty"` // SKU的值。如:机身颜色:黑色;手机套餐:官方标配 SkuPropertiesName string `json:"sku_properties_name,omitempty" xml:"sku_properties_name,omitempty"` // 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分 Price string `json:"price,omitempty" xml:"price,omitempty"` // 子订单的系统优惠金额。精确到2位小数;单位:元。如:200.07,表示:200元7分 DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"` // 子订单的系统优惠的名称,对应于discount_fee的名称 PromotionName string `json:"promotion_name,omitempty" xml:"promotion_name,omitempty"` // 卖家手工调整的子订单的优惠金额.格式为:1.01;单位:元;精确到小数点后两位. AdjustFee string `json:"adjust_fee,omitempty" xml:"adjust_fee,omitempty"` // 分摊之后的实付金额 DivideOrderFee string `json:"divide_order_fee,omitempty" xml:"divide_order_fee,omitempty"` // 优惠分摊 PartMjzDiscount string `json:"part_mjz_discount,omitempty" xml:"part_mjz_discount,omitempty"` // 子订单实付金额。精确到2位小数,单位:元。如:200.07,表示:200元7分。计算公式如下:payment = price * num + adjust_fee - discount_fee + post_fee(邮费,单笔子订单时子订单实付金额包含邮费,多笔子订单时不包含邮费);对于退款成功的子订单,由于主订单的优惠分摊金额,会造成该字段可能不为0.00元。建议使用退款前的实付金额减去退款单中的实际退款金额计算。 Payment string `json:"payment,omitempty" xml:"payment,omitempty"` // 子交易订单编号 Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // 子订单对应的商品数字id NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"` // 子订单对应的商品的sku_id SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 子交易订单中购买商品的数量 Num int64 `json:"num,omitempty" xml:"num,omitempty"` }
OrderAmount 结构体
type OrderAssembleResponse ¶
type OrderAssembleResponse struct { // 回传结果List OrderGroupResponses []OrderGroupResponse `json:"order_group_responses,omitempty" xml:"order_group_responses>order_group_response,omitempty"` }
OrderAssembleResponse 结构体
type OrderGroup ¶
type OrderGroup struct { // 淘宝交易子订单id TaobaoSubOrderId string `json:"taobao_sub_order_id,omitempty" xml:"taobao_sub_order_id,omitempty"` // 淘宝单号可以是交易订单、换货单、补货单、代发单或分销单等,当 order_type=0时,order_id = taobao_parent_order_id。 OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` // erp系统内的订单id ErpOrderId string `json:"erp_order_id,omitempty" xml:"erp_order_id,omitempty"` // 淘宝交易主订单id TaobaoParentOrderId string `json:"taobao_parent_order_id,omitempty" xml:"taobao_parent_order_id,omitempty"` // order_id的类型,0:淘宝交易订单,1: 换货单,2:分销单,3:补货单,4:代发单 OrderType int64 `json:"order_type,omitempty" xml:"order_type,omitempty"` // 商品类型, 0:下单货品,1:赠品,2:其他 ItemType int64 `json:"item_type,omitempty" xml:"item_type,omitempty"` }
OrderGroup 结构体
type OrderGroupResponse ¶
type OrderGroupResponse struct { // 入参中的groupId GroupId string `json:"group_id,omitempty" xml:"group_id,omitempty"` // 错误码 ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"` // 错误信息描述 ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"` // 回传结果 Result bool `json:"result,omitempty" xml:"result,omitempty"` }
OrderGroupResponse 结构体
type OrderMerge ¶
type OrderMerge struct { // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 订单ID Tid string `json:"tid,omitempty" xml:"tid,omitempty"` }
OrderMerge 结构体
type OrderQuery ¶
type OrderQuery struct { // 收件人电话号码 ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"` // 收件人的手机号 ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"` // 收件人的姓名 ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"` // 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss EndCreated string `json:"end_created,omitempty" xml:"end_created,omitempty"` // 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss StartCreated string `json:"start_created,omitempty" xml:"start_created,omitempty"` }
OrderQuery 结构体
type PackageGoodsDetail ¶ added in v1.2.9
type PackageGoodsDetail struct { // 商品数字编号 ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"` // sku_id SkuId int64 `json:"sku_id,omitempty" xml:"sku_id,omitempty"` // 数量 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` }
PackageGoodsDetail 结构体
type PromotionDetail ¶
type PromotionDetail struct { // 优惠信息的名称 PromotionName string `json:"promotion_name,omitempty" xml:"promotion_name,omitempty"` // 优惠金额(免运费、限时打折时为空),单位:元 DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"` // 满就送商品时,所送商品的名称 GiftItemName string `json:"gift_item_name,omitempty" xml:"gift_item_name,omitempty"` // 赠品的宝贝id GiftItemId string `json:"gift_item_id,omitempty" xml:"gift_item_id,omitempty"` // 满就送礼物的礼物数量 GiftItemNum string `json:"gift_item_num,omitempty" xml:"gift_item_num,omitempty"` // 优惠活动的描述 PromotionDesc string `json:"promotion_desc,omitempty" xml:"promotion_desc,omitempty"` // 优惠id,(由营销工具id、优惠活动id和优惠详情id组成,结构为:营销工具id-优惠活动id_优惠详情id,如mjs-123024_211143) PromotionId string `json:"promotion_id,omitempty" xml:"promotion_id,omitempty"` // 分摊优惠金额(免运费、限时打折时为空),单位:元 KdDiscountFee string `json:"kd_discount_fee,omitempty" xml:"kd_discount_fee,omitempty"` // 若优惠项在主订单上,返回子订单的分摊信息 KdChildDiscountFee string `json:"kd_child_discount_fee,omitempty" xml:"kd_child_discount_fee,omitempty"` // 交易的主订单或子订单号 Id int64 `json:"id,omitempty" xml:"id,omitempty"` }
PromotionDetail 结构体
type Receiver ¶
type Receiver struct { // 交易编号 OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"` // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 收件人的详细地址 AddressDetail string `json:"address_detail,omitempty" xml:"address_detail,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"` // 收件人的电话号码 Phone string `json:"phone,omitempty" xml:"phone,omitempty"` // 收件人的手机号 Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"` // 收件人的姓名 Name string `json:"name,omitempty" xml:"name,omitempty"` // 隐私号过期时间 SecretNoExpireTime string `json:"secret_no_expire_time,omitempty" xml:"secret_no_expire_time,omitempty"` // 交易编号 Tid string `json:"tid,omitempty" xml:"tid,omitempty"` // oaid是否和tid当前的oaid匹配。true:匹配,false:不匹配。当不匹配时,建议通过taobao.trade.fullinfo.get获取最新的oaid。 Matched bool `json:"matched,omitempty" xml:"matched,omitempty"` // 标记订单是否为隐私保护订单,为true时,mobile为隐私号 PrivacyProtection bool `json:"privacy_protection,omitempty" xml:"privacy_protection,omitempty"` }
Receiver 结构体
type ReceiverQuery ¶
type ReceiverQuery struct { // 交易订单ID Tid string `json:"tid,omitempty" xml:"tid,omitempty"` // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 解密场景编号。不同场景,解密策略不同。请根据产品功能选择相应的场景编号。可选的场景:1001(顺丰电子面单发货)、1002(4通一达电子面单发货)、1003(EMS电子面单发货)、1004(其他电子面单发货)、1005(线下门店发货)、1006(手工单发货)、1007(代发货)、2001(客户售后服务)、2002(客户关怀),<a href="https://open.taobao.com/doc.htm?docId=120186&docType=1" target="_blank">详情点击</a> Scene string `json:"scene,omitempty" xml:"scene,omitempty"` // 隐私号绑定天数 SecretNoDays int64 `json:"secret_no_days,omitempty" xml:"secret_no_days,omitempty"` }
ReceiverQuery 结构体
type SecretNo ¶
type SecretNo struct { // 隐私号 SecretNo string `json:"secret_no,omitempty" xml:"secret_no,omitempty"` // 延期后隐私号的过期时间 ExpireTime string `json:"expire_time,omitempty" xml:"expire_time,omitempty"` }
SecretNo 结构体
type SecretNoExtendRequest ¶
type SecretNoExtendRequest struct { // 收件人ID (Open Addressee ID),长度在128个字符之内。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 解密场景编号。不同场景,解密策略不同。请根据产品功能选择相应的场景编号。可选的场景:1001(顺丰电子面单发货)、1002(4通一达电子面单发货)、1003(EMS电子面单发货)、1004(其他电子面单发货)、1005(线下门店发货)、1006(手工单发货)、1007(代发货)、2001(客户售后服务)、2002(客户关怀) Scene string `json:"scene,omitempty" xml:"scene,omitempty"` // 虚拟号有效期延长天数,发货场景只能填7、15、30 ExtendDays int64 `json:"extend_days,omitempty" xml:"extend_days,omitempty"` // 交易订单ID OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"` }
SecretNoExtendRequest 结构体
type SellerBillQueryRequest ¶
type SellerBillQueryRequest struct { // 账单时间 BizDate string `json:"biz_date,omitempty" xml:"biz_date,omitempty"` // 页号,从1开始 PageNo int64 `json:"page_no,omitempty" xml:"page_no,omitempty"` // 页大小,不得超过1000 PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"` }
SellerBillQueryRequest 结构体
type SendGoodsDetail ¶ added in v1.2.9
type SendGoodsDetail struct { // 包裹详情 GoodsDetails []PackageGoodsDetail `json:"goods_details,omitempty" xml:"goods_details>package_goods_detail,omitempty"` // 0普通1组合商品2组套商品3后置赠品4状态推进 Type int64 `json:"type,omitempty" xml:"type,omitempty"` // 0全部发货1部分发货 ConsignStatus int64 `json:"consign_status,omitempty" xml:"consign_status,omitempty"` // 数量 Amount int64 `json:"amount,omitempty" xml:"amount,omitempty"` }
SendGoodsDetail 结构体
type ServiceOrder ¶
type ServiceOrder struct { // 服务详情的URL地址 ServiceDetailUrl string `json:"service_detail_url,omitempty" xml:"service_detail_url,omitempty"` // 服务价格,精确到小数点后两位:单位:元 Price string `json:"price,omitempty" xml:"price,omitempty"` // 子订单实付金额。精确到2位小数,单位:元。如:200.07,表示:200元7分。 Payment string `json:"payment,omitempty" xml:"payment,omitempty"` // 商品名称 Title string `json:"title,omitempty" xml:"title,omitempty"` // 服务子订单总费用 TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"` // 买家昵称 BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` // 最近退款的id RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"` // 卖家昵称 SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` // 服务图片地址 PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"` // 支持家装类物流的类型 TmserSpuCode string `json:"tmser_spu_code,omitempty" xml:"tmser_spu_code,omitempty"` // 天猫汽车预约服务时间 EtSerTime string `json:"et_ser_time,omitempty" xml:"et_ser_time,omitempty"` // 电子凭证预约门店地址 EtShopName string `json:"et_shop_name,omitempty" xml:"et_shop_name,omitempty"` // 电子凭证核销门店地址 EtVerifiedShopName string `json:"et_verified_shop_name,omitempty" xml:"et_verified_shop_name,omitempty"` // 车牌号 EtPlateNumber string `json:"et_plate_number,omitempty" xml:"et_plate_number,omitempty"` // 虚拟服务子订单订单号(String类型) OidStr string `json:"oid_str,omitempty" xml:"oid_str,omitempty"` // appleCareEmail AppleCareEmail string `json:"apple_care_email,omitempty" xml:"apple_care_email,omitempty"` // appleCareMPN AppleCareMpn string `json:"apple_care_mpn,omitempty" xml:"apple_care_mpn,omitempty"` // 服务供应链-服务商外部编码标 ServiceOuterId string `json:"service_outer_id,omitempty" xml:"service_outer_id,omitempty"` // 服务供应链-服务订单类型,1:主子挂载;2:双主挂载;3:单独售卖 ServiceOrderType string `json:"service_order_type,omitempty" xml:"service_order_type,omitempty"` // 服务订单与实物订单关联关系 ExtServiceBizId string `json:"ext_service_biz_id,omitempty" xml:"ext_service_biz_id,omitempty"` // 套餐购服务原价� (单位分) CommAmountUnit string `json:"comm_amount_unit,omitempty" xml:"comm_amount_unit,omitempty"` // 虚拟服务子订单订单号 Oid int64 `json:"oid,omitempty" xml:"oid,omitempty"` // 服务所属的交易订单号。如果服务为一年包换,则item_oid这笔订单享受改服务的保护 ItemOid int64 `json:"item_oid,omitempty" xml:"item_oid,omitempty"` // 服务数字id ServiceId int64 `json:"service_id,omitempty" xml:"service_id,omitempty"` // 购买数量,取值范围为大于0的整数 Num int64 `json:"num,omitempty" xml:"num,omitempty"` // 套餐购对应的成分品id CombineSubItemId int64 `json:"combine_sub_item_id,omitempty" xml:"combine_sub_item_id,omitempty"` // 套餐购对应的成分品的skuId CombineSubItemSkuId int64 `json:"combine_sub_item_sku_id,omitempty" xml:"combine_sub_item_sku_id,omitempty"` }
ServiceOrder 结构体
type ShipInfo ¶
type ShipInfo struct { // 发货方式(小写) TransportType string `json:"transport_type,omitempty" xml:"transport_type,omitempty"` }
ShipInfo 结构体
type SortInfo ¶
type SortInfo struct { // daySortVal DaySortVal int64 `json:"day_sort_val,omitempty" xml:"day_sort_val,omitempty"` // hourSortVal HourSortVal int64 `json:"hour_sort_val,omitempty" xml:"hour_sort_val,omitempty"` }
SortInfo 结构体
type StepPayDetail ¶
type StepPayDetail struct { // 支付宝交易号 StepChannelNo string `json:"step_channel_no,omitempty" xml:"step_channel_no,omitempty"` // 支付方式 StepInstrumentCode string `json:"step_instrument_code,omitempty" xml:"step_instrument_code,omitempty"` // 支付金额 StepActualPayFee string `json:"step_actual_pay_fee,omitempty" xml:"step_actual_pay_fee,omitempty"` // 分阶段支付单Id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 支付状态 PayStatus int64 `json:"pay_status,omitempty" xml:"pay_status,omitempty"` // 支付顺序 StepNo int64 `json:"step_no,omitempty" xml:"step_no,omitempty"` }
StepPayDetail 结构体
type TaobaofulfillmentorderassembleAPIRequest ¶ added in v1.3.1
type TaobaofulfillmentorderassembleAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaofulfillmentorderassembleAPIRequest 拆合单结果回传接口 API请求 taobao.fulfillment.order.assemble
拆合单结果回传接口
func NewTaobaofulfillmentorderassembleRequest ¶ added in v1.3.1
func NewTaobaofulfillmentorderassembleRequest() *TaobaofulfillmentorderassembleAPIRequest
NewTaobaofulfillmentorderassembleRequest 初始化TaobaofulfillmentorderassembleAPIRequest对象
func (TaobaofulfillmentorderassembleAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaofulfillmentorderassembleAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaofulfillmentorderassembleAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaofulfillmentorderassembleAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaofulfillmentorderassembleAPIRequest) GetAssembleOrders ¶ added in v1.3.1
func (r TaobaofulfillmentorderassembleAPIRequest) GetAssembleOrders() *AssembleOrder
GetAssembleOrders AssembleOrders Getter
func (TaobaofulfillmentorderassembleAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaofulfillmentorderassembleAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaofulfillmentorderassembleAPIRequest) GetType ¶ added in v1.3.1
func (r TaobaofulfillmentorderassembleAPIRequest) GetType() string
GetType Type Getter
func (*TaobaofulfillmentorderassembleAPIRequest) SetAssembleOrders ¶ added in v1.3.1
func (r *TaobaofulfillmentorderassembleAPIRequest) SetAssembleOrders(_assembleOrders *AssembleOrder) error
SetAssembleOrders is AssembleOrders Setter 批量回传集合,一次接口最多40
func (*TaobaofulfillmentorderassembleAPIRequest) SetType ¶ added in v1.3.1
func (r *TaobaofulfillmentorderassembleAPIRequest) SetType(_type string) error
SetType is Type Setter 操作类型,支持参数为MERGE、CANCEL_MERGE。当进行CANCEL_MERGE操作时,只需要传入groupId即可,order_list可以为空
type TaobaofulfillmentorderassembleAPIResponse ¶ added in v1.3.1
type TaobaofulfillmentorderassembleAPIResponse struct { model.CommonResponse TaobaofulfillmentorderassembleAPIResponseModel }
TaobaofulfillmentorderassembleAPIResponse 拆合单结果回传接口 API返回值 taobao.fulfillment.order.assemble
拆合单结果回传接口
type TaobaofulfillmentorderassembleAPIResponseModel ¶ added in v1.3.1
type TaobaofulfillmentorderassembleAPIResponseModel struct { XMLName xml.Name `xml:"fulfillment_order_assemble_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 错误码 CallErrorCode string `json:"call_error_code,omitempty" xml:"call_error_code,omitempty"` // 错误信息描述 CallErrorMsg string `json:"call_error_msg,omitempty" xml:"call_error_msg,omitempty"` // 回传结果 Model *OrderAssembleResponse `json:"model,omitempty" xml:"model,omitempty"` // 调用结果 Result bool `json:"result,omitempty" xml:"result,omitempty"` }
TaobaofulfillmentorderassembleAPIResponseModel is 拆合单结果回传接口 成功返回结果
type TaobaotopoaidclientdecryptAPIRequest ¶ added in v1.3.1
type TaobaotopoaidclientdecryptAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotopoaidclientdecryptAPIRequest 端侧OAID解密 API请求 taobao.top.oaid.client.decrypt
解码OAID(Open Addressee ID),返回收件人信息。该接口用于客户端直接查看订单隐私数据,解密数据不经过ISV服务器,且包含风控等安全检测。
func NewTaobaotopoaidclientdecryptRequest ¶ added in v1.3.1
func NewTaobaotopoaidclientdecryptRequest() *TaobaotopoaidclientdecryptAPIRequest
NewTaobaotopoaidclientdecryptRequest 初始化TaobaotopoaidclientdecryptAPIRequest对象
func (TaobaotopoaidclientdecryptAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopoaidclientdecryptAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopoaidclientdecryptAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopoaidclientdecryptAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopoaidclientdecryptAPIRequest) GetQueryList ¶ added in v1.3.1
func (r TaobaotopoaidclientdecryptAPIRequest) GetQueryList() []ReceiverQuery
GetQueryList QueryList Getter
func (TaobaotopoaidclientdecryptAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopoaidclientdecryptAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotopoaidclientdecryptAPIRequest) GetSecOnceToken ¶ added in v1.3.1
func (r TaobaotopoaidclientdecryptAPIRequest) GetSecOnceToken() string
GetSecOnceToken SecOnceToken Getter
func (*TaobaotopoaidclientdecryptAPIRequest) SetQueryList ¶ added in v1.3.1
func (r *TaobaotopoaidclientdecryptAPIRequest) SetQueryList(_queryList []ReceiverQuery) error
SetQueryList is QueryList Setter 解密请求列表,长度不要超过1(只能单笔解密,不支持批量解密)。
func (*TaobaotopoaidclientdecryptAPIRequest) SetSecOnceToken ¶ added in v1.3.1
func (r *TaobaotopoaidclientdecryptAPIRequest) SetSecOnceToken(_secOnceToken string) error
SetSecOnceToken is SecOnceToken Setter 安全令牌
type TaobaotopoaidclientdecryptAPIResponse ¶ added in v1.3.1
type TaobaotopoaidclientdecryptAPIResponse struct { model.CommonResponse TaobaotopoaidclientdecryptAPIResponseModel }
TaobaotopoaidclientdecryptAPIResponse 端侧OAID解密 API返回值 taobao.top.oaid.client.decrypt
解码OAID(Open Addressee ID),返回收件人信息。该接口用于客户端直接查看订单隐私数据,解密数据不经过ISV服务器,且包含风控等安全检测。
type TaobaotopoaidclientdecryptAPIResponseModel ¶ added in v1.3.1
type TaobaotopoaidclientdecryptAPIResponseModel struct { XMLName xml.Name `xml:"top_oaid_client_decrypt_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 收件人列表 ReceiverList []Receiver `json:"receiver_list,omitempty" xml:"receiver_list>receiver,omitempty"` }
TaobaotopoaidclientdecryptAPIResponseModel is 端侧OAID解密 成功返回结果
type TaobaotopoaiddecryptAPIRequest ¶ added in v1.3.1
type TaobaotopoaiddecryptAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotopoaiddecryptAPIRequest OAID解密 API请求 taobao.top.oaid.decrypt
解码OAID(Open Addressee ID),返回收件人信息。
func NewTaobaotopoaiddecryptRequest ¶ added in v1.3.1
func NewTaobaotopoaiddecryptRequest() *TaobaotopoaiddecryptAPIRequest
NewTaobaotopoaiddecryptRequest 初始化TaobaotopoaiddecryptAPIRequest对象
func (TaobaotopoaiddecryptAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopoaiddecryptAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopoaiddecryptAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopoaiddecryptAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopoaiddecryptAPIRequest) GetQueryList ¶ added in v1.3.1
func (r TaobaotopoaiddecryptAPIRequest) GetQueryList() []ReceiverQuery
GetQueryList QueryList Getter
func (TaobaotopoaiddecryptAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopoaiddecryptAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaotopoaiddecryptAPIRequest) SetQueryList ¶ added in v1.3.1
func (r *TaobaotopoaiddecryptAPIRequest) SetQueryList(_queryList []ReceiverQuery) error
SetQueryList is QueryList Setter 解密请求列表,最多支持20个。
type TaobaotopoaiddecryptAPIResponse ¶ added in v1.3.1
type TaobaotopoaiddecryptAPIResponse struct { model.CommonResponse TaobaotopoaiddecryptAPIResponseModel }
TaobaotopoaiddecryptAPIResponse OAID解密 API返回值 taobao.top.oaid.decrypt
解码OAID(Open Addressee ID),返回收件人信息。
type TaobaotopoaiddecryptAPIResponseModel ¶ added in v1.3.1
type TaobaotopoaiddecryptAPIResponseModel 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"` }
TaobaotopoaiddecryptAPIResponseModel is OAID解密 成功返回结果
type TaobaotopoaidmergeAPIRequest ¶ added in v1.3.1
TaobaotopoaidmergeAPIRequest OAID订单合并 API请求 taobao.top.oaid.merge
基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。
func NewTaobaotopoaidmergeRequest ¶ added in v1.3.1
func NewTaobaotopoaidmergeRequest() *TaobaotopoaidmergeAPIRequest
NewTaobaotopoaidmergeRequest 初始化TaobaotopoaidmergeAPIRequest对象
func (TaobaotopoaidmergeAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopoaidmergeAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopoaidmergeAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopoaidmergeAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopoaidmergeAPIRequest) GetMergeList ¶ added in v1.3.1
func (r TaobaotopoaidmergeAPIRequest) GetMergeList() []OrderMerge
GetMergeList MergeList Getter
func (TaobaotopoaidmergeAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopoaidmergeAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaotopoaidmergeAPIRequest) SetMergeList ¶ added in v1.3.1
func (r *TaobaotopoaidmergeAPIRequest) SetMergeList(_mergeList []OrderMerge) error
SetMergeList is MergeList Setter 合单请求列表,最多支持100个。
type TaobaotopoaidmergeAPIResponse ¶ added in v1.3.1
type TaobaotopoaidmergeAPIResponse struct { model.CommonResponse TaobaotopoaidmergeAPIResponseModel }
TaobaotopoaidmergeAPIResponse OAID订单合并 API返回值 taobao.top.oaid.merge
基于OAID(收件人ID, Open Addressee ID)做订单合并,确保相同收件人信息的订单合并到相同组。
type TaobaotopoaidmergeAPIResponseModel ¶ added in v1.3.1
type TaobaotopoaidmergeAPIResponseModel struct { XMLName xml.Name `xml:"top_oaid_merge_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 合单结果。注意:一个字符串中的多笔订单可以合单,不同字符串间的订单不可合单!!!<br/> 比如,["1111,2222"]表示订单1111和订单2222可合单,["1111","2222"]表示订单1111和订单2222不可以合单。 TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` }
TaobaotopoaidmergeAPIResponseModel is OAID订单合并 成功返回结果
type TaobaotoponcetokengetAPIRequest ¶ added in v1.3.1
type TaobaotoponcetokengetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotoponcetokengetAPIRequest 网关一次性token获取 API请求 taobao.top.once.token.get
网关一次性token获取,对接文档:
func NewTaobaotoponcetokengetRequest ¶ added in v1.3.1
func NewTaobaotoponcetokengetRequest() *TaobaotoponcetokengetAPIRequest
NewTaobaotoponcetokengetRequest 初始化TaobaotoponcetokengetAPIRequest对象
func (TaobaotoponcetokengetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotoponcetokengetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotoponcetokengetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotoponcetokengetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotoponcetokengetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotoponcetokengetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotoponcetokengetAPIRequest) GetSecToken ¶ added in v1.3.1
func (r TaobaotoponcetokengetAPIRequest) GetSecToken() string
GetSecToken SecToken Getter
func (*TaobaotoponcetokengetAPIRequest) SetSecToken ¶ added in v1.3.1
func (r *TaobaotoponcetokengetAPIRequest) SetSecToken(_secToken string) error
SetSecToken is SecToken Setter sec_token
type TaobaotoponcetokengetAPIResponse ¶ added in v1.3.1
type TaobaotoponcetokengetAPIResponse struct { model.CommonResponse TaobaotoponcetokengetAPIResponseModel }
TaobaotoponcetokengetAPIResponse 网关一次性token获取 API返回值 taobao.top.once.token.get
网关一次性token获取,对接文档:
type TaobaotoponcetokengetAPIResponseModel ¶ added in v1.3.1
type TaobaotoponcetokengetAPIResponseModel struct { XMLName xml.Name `xml:"top_once_token_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 响应编码 ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"` // token Token string `json:"token,omitempty" xml:"token,omitempty"` // 失败详情 ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"` }
TaobaotoponcetokengetAPIResponseModel is 网关一次性token获取 成功返回结果
type TaobaotopsecretappkeybilldetailAPIRequest ¶ added in v1.3.1
type TaobaotopsecretappkeybilldetailAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotopsecretappkeybilldetailAPIRequest 服务商解密账单查询 API请求 taobao.top.secret.appkey.bill.detail
服务商解密账单查询,分页返回所有店铺的账单,每个店铺每天仅包含两条数据,当天产生的号租费 和 当天产生的通话费,仅对90天内的账单提供SLA保障。查询账单详情请使用taobao.top.secret.bill.detail接口。
func NewTaobaotopsecretappkeybilldetailRequest ¶ added in v1.3.1
func NewTaobaotopsecretappkeybilldetailRequest() *TaobaotopsecretappkeybilldetailAPIRequest
NewTaobaotopsecretappkeybilldetailRequest 初始化TaobaotopsecretappkeybilldetailAPIRequest对象
func (TaobaotopsecretappkeybilldetailAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopsecretappkeybilldetailAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopsecretappkeybilldetailAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopsecretappkeybilldetailAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopsecretappkeybilldetailAPIRequest) GetAppBillQueryRequest ¶ added in v1.3.1
func (r TaobaotopsecretappkeybilldetailAPIRequest) GetAppBillQueryRequest() *AppBillQueryRequest
GetAppBillQueryRequest AppBillQueryRequest Getter
func (TaobaotopsecretappkeybilldetailAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopsecretappkeybilldetailAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaotopsecretappkeybilldetailAPIRequest) SetAppBillQueryRequest ¶ added in v1.3.1
func (r *TaobaotopsecretappkeybilldetailAPIRequest) SetAppBillQueryRequest(_appBillQueryRequest *AppBillQueryRequest) error
SetAppBillQueryRequest is AppBillQueryRequest Setter 卖家账单查询
type TaobaotopsecretappkeybilldetailAPIResponse ¶ added in v1.3.1
type TaobaotopsecretappkeybilldetailAPIResponse struct { model.CommonResponse TaobaotopsecretappkeybilldetailAPIResponseModel }
TaobaotopsecretappkeybilldetailAPIResponse 服务商解密账单查询 API返回值 taobao.top.secret.appkey.bill.detail
服务商解密账单查询,分页返回所有店铺的账单,每个店铺每天仅包含两条数据,当天产生的号租费 和 当天产生的通话费,仅对90天内的账单提供SLA保障。查询账单详情请使用taobao.top.secret.bill.detail接口。
type TaobaotopsecretappkeybilldetailAPIResponseModel ¶ added in v1.3.1
type TaobaotopsecretappkeybilldetailAPIResponseModel struct { XMLName xml.Name `xml:"top_secret_appkey_bill_detail_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 账单明细 Data []BillDetailInfo `json:"data,omitempty" xml:"data>bill_detail_info,omitempty"` // 账单总个数 TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` }
TaobaotopsecretappkeybilldetailAPIResponseModel is 服务商解密账单查询 成功返回结果
type TaobaotopsecretbilldetailAPIRequest ¶ added in v1.3.1
type TaobaotopsecretbilldetailAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotopsecretbilldetailAPIRequest 服务商的商家解密账单详情查询 API请求 taobao.top.secret.bill.detail
服务商的商家解密账单详情查询,仅对90天内的账单提供SLA保障。
func NewTaobaotopsecretbilldetailRequest ¶ added in v1.3.1
func NewTaobaotopsecretbilldetailRequest() *TaobaotopsecretbilldetailAPIRequest
NewTaobaotopsecretbilldetailRequest 初始化TaobaotopsecretbilldetailAPIRequest对象
func (TaobaotopsecretbilldetailAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopsecretbilldetailAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopsecretbilldetailAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopsecretbilldetailAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopsecretbilldetailAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopsecretbilldetailAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotopsecretbilldetailAPIRequest) GetSellerBillQueryRequest ¶ added in v1.3.1
func (r TaobaotopsecretbilldetailAPIRequest) GetSellerBillQueryRequest() *SellerBillQueryRequest
GetSellerBillQueryRequest SellerBillQueryRequest Getter
func (*TaobaotopsecretbilldetailAPIRequest) SetSellerBillQueryRequest ¶ added in v1.3.1
func (r *TaobaotopsecretbilldetailAPIRequest) SetSellerBillQueryRequest(_sellerBillQueryRequest *SellerBillQueryRequest) error
SetSellerBillQueryRequest is SellerBillQueryRequest Setter 卖家账单查询
type TaobaotopsecretbilldetailAPIResponse ¶ added in v1.3.1
type TaobaotopsecretbilldetailAPIResponse struct { model.CommonResponse TaobaotopsecretbilldetailAPIResponseModel }
TaobaotopsecretbilldetailAPIResponse 服务商的商家解密账单详情查询 API返回值 taobao.top.secret.bill.detail
服务商的商家解密账单详情查询,仅对90天内的账单提供SLA保障。
type TaobaotopsecretbilldetailAPIResponseModel ¶ added in v1.3.1
type TaobaotopsecretbilldetailAPIResponseModel struct { XMLName xml.Name `xml:"top_secret_bill_detail_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 账单明细 Data []BillDetailInfo `json:"data,omitempty" xml:"data>bill_detail_info,omitempty"` // 账单总个数 TotalNum int64 `json:"total_num,omitempty" xml:"total_num,omitempty"` }
TaobaotopsecretbilldetailAPIResponseModel is 服务商的商家解密账单详情查询 成功返回结果
type TaobaotopsecretextendAPIRequest ¶ added in v1.3.1
type TaobaotopsecretextendAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotopsecretextendAPIRequest 虚拟号延期 API请求 taobao.top.secret.extend
虚拟号延期
func NewTaobaotopsecretextendRequest ¶ added in v1.3.1
func NewTaobaotopsecretextendRequest() *TaobaotopsecretextendAPIRequest
NewTaobaotopsecretextendRequest 初始化TaobaotopsecretextendAPIRequest对象
func (TaobaotopsecretextendAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotopsecretextendAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotopsecretextendAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotopsecretextendAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotopsecretextendAPIRequest) GetExtendRequest ¶ added in v1.3.1
func (r TaobaotopsecretextendAPIRequest) GetExtendRequest() *SecretNoExtendRequest
GetExtendRequest ExtendRequest Getter
func (TaobaotopsecretextendAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotopsecretextendAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*TaobaotopsecretextendAPIRequest) SetExtendRequest ¶ added in v1.3.1
func (r *TaobaotopsecretextendAPIRequest) SetExtendRequest(_extendRequest *SecretNoExtendRequest) error
SetExtendRequest is ExtendRequest Setter 虚拟号延期请求
type TaobaotopsecretextendAPIResponse ¶ added in v1.3.1
type TaobaotopsecretextendAPIResponse struct { model.CommonResponse TaobaotopsecretextendAPIResponseModel }
TaobaotopsecretextendAPIResponse 虚拟号延期 API返回值 taobao.top.secret.extend
虚拟号延期
type TaobaotopsecretextendAPIResponseModel ¶ added in v1.3.1
type TaobaotopsecretextendAPIResponseModel struct { XMLName xml.Name `xml:"top_secret_extend_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 隐私号延期返回结果 Result *SecretNo `json:"result,omitempty" xml:"result,omitempty"` }
TaobaotopsecretextendAPIResponseModel is 虚拟号延期 成功返回结果
type TaobaotradeamountgetAPIRequest ¶ added in v1.3.1
type TaobaotradeamountgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradeamountgetAPIRequest 交易帐务查询 API请求 taobao.trade.amount.get
卖家查询该笔交易的资金帐务相关的数据; 1. 只供卖家使用,买家不可使用 2. 可查询所有的状态的交易,但不同状态时交易的相关数据可能会有不同
func NewTaobaotradeamountgetRequest ¶ added in v1.3.1
func NewTaobaotradeamountgetRequest() *TaobaotradeamountgetAPIRequest
NewTaobaotradeamountgetRequest 初始化TaobaotradeamountgetAPIRequest对象
func (TaobaotradeamountgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradeamountgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradeamountgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradeamountgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradeamountgetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotradeamountgetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaotradeamountgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradeamountgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradeamountgetAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradeamountgetAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradeamountgetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotradeamountgetAPIRequest) SetFields(_fields string) error
SetFields is Fields Setter 订单帐务详情需要返回的字段信息,可选值如下:1. TradeAmount中可指定的fields:tid,alipay_no,created,pay_time,end_time,total_fee,payment,post_fee,cod_fee,commission_fee,buyer_obtain_point_fee2. OrderAmount中可指定的fields:order_amounts.oid,order_amounts.title,order_amounts.num_iid,order_amounts.sku_properties_name,order_amounts.sku_id,order_amounts.num,order_amounts.price,order_amounts.discount_fee,order_amounts.adjust_fee,order_amounts.payment,order_amounts.promotion_name3. order_amounts(返回OrderAmount的所有内容)4. promotion_details(指定该值会返回主订单的promotion_details中除id之外的所有字段)
func (*TaobaotradeamountgetAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradeamountgetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易编号
type TaobaotradeamountgetAPIResponse ¶ added in v1.3.1
type TaobaotradeamountgetAPIResponse struct { model.CommonResponse TaobaotradeamountgetAPIResponseModel }
TaobaotradeamountgetAPIResponse 交易帐务查询 API返回值 taobao.trade.amount.get
卖家查询该笔交易的资金帐务相关的数据; 1. 只供卖家使用,买家不可使用 2. 可查询所有的状态的交易,但不同状态时交易的相关数据可能会有不同
type TaobaotradeamountgetAPIResponseModel ¶ added in v1.3.1
type TaobaotradeamountgetAPIResponseModel struct { XMLName xml.Name `xml:"trade_amount_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 主订单的财务信息详情 TradeAmount *TradeAmount `json:"trade_amount,omitempty" xml:"trade_amount,omitempty"` }
TaobaotradeamountgetAPIResponseModel is 交易帐务查询 成功返回结果
type TaobaotradecloseAPIRequest ¶ added in v1.3.1
TaobaotradecloseAPIRequest 卖家关闭一笔交易 API请求 taobao.trade.close
关闭一笔订单,可以是主订单或子订单。当订单从创建到关闭时间小于10s的时候,会报“CLOSE_TRADE_TOO_FAST”错误。
func NewTaobaotradecloseRequest ¶ added in v1.3.1
func NewTaobaotradecloseRequest() *TaobaotradecloseAPIRequest
NewTaobaotradecloseRequest 初始化TaobaotradecloseAPIRequest对象
func (TaobaotradecloseAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradecloseAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradecloseAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradecloseAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradecloseAPIRequest) GetCloseReason ¶ added in v1.3.1
func (r TaobaotradecloseAPIRequest) GetCloseReason() string
GetCloseReason CloseReason Getter
func (TaobaotradecloseAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradecloseAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradecloseAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradecloseAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradecloseAPIRequest) SetCloseReason ¶ added in v1.3.1
func (r *TaobaotradecloseAPIRequest) SetCloseReason(_closeReason string) error
SetCloseReason is CloseReason Setter 交易关闭原因。可以选择的理由有:1.未及时付款2、买家不想买了3、买家信息填写错误,重新拍4、恶意买家/同行捣乱5、缺货6、买家拍错了7、同城见面交易
func (*TaobaotradecloseAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradecloseAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 主订单或子订单编号。
type TaobaotradecloseAPIResponse ¶ added in v1.3.1
type TaobaotradecloseAPIResponse struct { model.CommonResponse TaobaotradecloseAPIResponseModel }
TaobaotradecloseAPIResponse 卖家关闭一笔交易 API返回值 taobao.trade.close
关闭一笔订单,可以是主订单或子订单。当订单从创建到关闭时间小于10s的时候,会报“CLOSE_TRADE_TOO_FAST”错误。
type TaobaotradecloseAPIResponseModel ¶ added in v1.3.1
type TaobaotradecloseAPIResponseModel struct { XMLName xml.Name `xml:"trade_close_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 关闭交易时返回的Trade信息,可用字段有tid和modified Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradecloseAPIResponseModel is 卖家关闭一笔交易 成功返回结果
type TaobaotradeconfirmfeegetAPIRequest ¶ added in v1.3.1
type TaobaotradeconfirmfeegetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradeconfirmfeegetAPIRequest 获取交易确认收货费用 API请求 taobao.trade.confirmfee.get
获取交易确认收货费用,可以获取主订单或子订单的确认收货费用
func NewTaobaotradeconfirmfeegetRequest ¶ added in v1.3.1
func NewTaobaotradeconfirmfeegetRequest() *TaobaotradeconfirmfeegetAPIRequest
NewTaobaotradeconfirmfeegetRequest 初始化TaobaotradeconfirmfeegetAPIRequest对象
func (TaobaotradeconfirmfeegetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradeconfirmfeegetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradeconfirmfeegetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradeconfirmfeegetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradeconfirmfeegetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradeconfirmfeegetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradeconfirmfeegetAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradeconfirmfeegetAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradeconfirmfeegetAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradeconfirmfeegetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易主订单或子订单ID
type TaobaotradeconfirmfeegetAPIResponse ¶ added in v1.3.1
type TaobaotradeconfirmfeegetAPIResponse struct { model.CommonResponse TaobaotradeconfirmfeegetAPIResponseModel }
TaobaotradeconfirmfeegetAPIResponse 获取交易确认收货费用 API返回值 taobao.trade.confirmfee.get
获取交易确认收货费用,可以获取主订单或子订单的确认收货费用
type TaobaotradeconfirmfeegetAPIResponseModel ¶ added in v1.3.1
type TaobaotradeconfirmfeegetAPIResponseModel struct { XMLName xml.Name `xml:"trade_confirmfee_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 获取到的交易确认收货费用 TradeConfirmFee *TradeConfirmFee `json:"trade_confirm_fee,omitempty" xml:"trade_confirm_fee,omitempty"` }
TaobaotradeconfirmfeegetAPIResponseModel is 获取交易确认收货费用 成功返回结果
type TaobaotradefullinfogetAPIRequest ¶ added in v1.3.1
type TaobaotradefullinfogetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradefullinfogetAPIRequest 获取单笔交易的详细信息 API请求 taobao.trade.fullinfo.get
获取单笔交易的详细信息 <br/>1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 <br/>2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 <br/>3. 获取红包金额使用字段:tmall_coupon_fee(天猫商家订单使用的红包金额) <br/>4. 请按需获取字段,减少TOP系统的压力 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
func NewTaobaotradefullinfogetRequest ¶ added in v1.3.1
func NewTaobaotradefullinfogetRequest() *TaobaotradefullinfogetAPIRequest
NewTaobaotradefullinfogetRequest 初始化TaobaotradefullinfogetAPIRequest对象
func (TaobaotradefullinfogetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradefullinfogetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradefullinfogetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaotradefullinfogetAPIRequest) GetIncludeOaid ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetIncludeOaid() string
GetIncludeOaid IncludeOaid Getter
func (TaobaotradefullinfogetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradefullinfogetAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradefullinfogetAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradefullinfogetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotradefullinfogetAPIRequest) SetFields(_fields string) error
SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。
func (*TaobaotradefullinfogetAPIRequest) SetIncludeOaid ¶ added in v1.3.1
func (r *TaobaotradefullinfogetAPIRequest) SetIncludeOaid(_includeOaid string) error
SetIncludeOaid is IncludeOaid Setter include_oaid
func (*TaobaotradefullinfogetAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradefullinfogetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易编号
type TaobaotradefullinfogetAPIResponse ¶ added in v1.3.1
type TaobaotradefullinfogetAPIResponse struct { model.CommonResponse TaobaotradefullinfogetAPIResponseModel }
TaobaotradefullinfogetAPIResponse 获取单笔交易的详细信息 API返回值 taobao.trade.fullinfo.get
获取单笔交易的详细信息 <br/>1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 <br/>2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 <br/>3. 获取红包金额使用字段:tmall_coupon_fee(天猫商家订单使用的红包金额) <br/>4. 请按需获取字段,减少TOP系统的压力 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
type TaobaotradefullinfogetAPIResponseModel ¶ added in v1.3.1
type TaobaotradefullinfogetAPIResponseModel struct { XMLName xml.Name `xml:"trade_fullinfo_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 交易主订单信息 Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradefullinfogetAPIResponseModel is 获取单笔交易的详细信息 成功返回结果
type TaobaotradeinvoiceamountgetAPIRequest ¶ added in v1.3.1
type TaobaotradeinvoiceamountgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradeinvoiceamountgetAPIRequest 获取订单应开票金额 API请求 taobao.trade.invoice.amount.get
订单应开票金额计算
func NewTaobaotradeinvoiceamountgetRequest ¶ added in v1.3.1
func NewTaobaotradeinvoiceamountgetRequest() *TaobaotradeinvoiceamountgetAPIRequest
NewTaobaotradeinvoiceamountgetRequest 初始化TaobaotradeinvoiceamountgetAPIRequest对象
func (TaobaotradeinvoiceamountgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradeinvoiceamountgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradeinvoiceamountgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradeinvoiceamountgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradeinvoiceamountgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradeinvoiceamountgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradeinvoiceamountgetAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradeinvoiceamountgetAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradeinvoiceamountgetAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradeinvoiceamountgetAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 业务订单ID
type TaobaotradeinvoiceamountgetAPIResponse ¶ added in v1.3.1
type TaobaotradeinvoiceamountgetAPIResponse struct { model.CommonResponse TaobaotradeinvoiceamountgetAPIResponseModel }
TaobaotradeinvoiceamountgetAPIResponse 获取订单应开票金额 API返回值 taobao.trade.invoice.amount.get
订单应开票金额计算
type TaobaotradeinvoiceamountgetAPIResponseModel ¶ added in v1.3.1
type TaobaotradeinvoiceamountgetAPIResponseModel struct { XMLName xml.Name `xml:"trade_invoice_amount_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 应开票给消费者的金额,单位分 ConsumerInvoiceAmount string `json:"consumer_invoice_amount,omitempty" xml:"consumer_invoice_amount,omitempty"` // 应开票给平台的金额,单位分 PlatformInvoiceAmount string `json:"platform_invoice_amount,omitempty" xml:"platform_invoice_amount,omitempty"` }
TaobaotradeinvoiceamountgetAPIResponseModel is 获取订单应开票金额 成功返回结果
type TaobaotradememoaddAPIRequest ¶ added in v1.3.1
TaobaotradememoaddAPIRequest 对一笔交易添加备注 API请求 taobao.trade.memo.add
根据登录用户的身份(买家或卖家),自动添加相应的交易备注,不能重复调用些接口添加备注,需要更新备注请用taobao.trade.memo.update
func NewTaobaotradememoaddRequest ¶ added in v1.3.1
func NewTaobaotradememoaddRequest() *TaobaotradememoaddAPIRequest
NewTaobaotradememoaddRequest 初始化TaobaotradememoaddAPIRequest对象
func (TaobaotradememoaddAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradememoaddAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradememoaddAPIRequest) GetFlag ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetFlag() int64
GetFlag Flag Getter
func (TaobaotradememoaddAPIRequest) GetMemo ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetMemo() string
GetMemo Memo Getter
func (TaobaotradememoaddAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradememoaddAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradememoaddAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradememoaddAPIRequest) SetFlag ¶ added in v1.3.1
func (r *TaobaotradememoaddAPIRequest) SetFlag(_flag int64) error
SetFlag is Flag Setter 交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0
func (*TaobaotradememoaddAPIRequest) SetMemo ¶ added in v1.3.1
func (r *TaobaotradememoaddAPIRequest) SetMemo(_memo string) error
SetMemo is Memo Setter 交易备注。最大长度: 1000个字节
func (*TaobaotradememoaddAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradememoaddAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易编号
type TaobaotradememoaddAPIResponse ¶ added in v1.3.1
type TaobaotradememoaddAPIResponse struct { model.CommonResponse TaobaotradememoaddAPIResponseModel }
TaobaotradememoaddAPIResponse 对一笔交易添加备注 API返回值 taobao.trade.memo.add
根据登录用户的身份(买家或卖家),自动添加相应的交易备注,不能重复调用些接口添加备注,需要更新备注请用taobao.trade.memo.update
type TaobaotradememoaddAPIResponseModel ¶ added in v1.3.1
type TaobaotradememoaddAPIResponseModel struct { XMLName xml.Name `xml:"trade_memo_add_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 对一笔交易添加备注后返回其对应的Trade,Trade中可用的返回字段有tid和created Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradememoaddAPIResponseModel is 对一笔交易添加备注 成功返回结果
type TaobaotradememoupdateAPIRequest ¶ added in v1.3.1
type TaobaotradememoupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradememoupdateAPIRequest 修改交易备注 API请求 taobao.trade.memo.update
需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能
func NewTaobaotradememoupdateRequest ¶ added in v1.3.1
func NewTaobaotradememoupdateRequest() *TaobaotradememoupdateAPIRequest
NewTaobaotradememoupdateRequest 初始化TaobaotradememoupdateAPIRequest对象
func (TaobaotradememoupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradememoupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradememoupdateAPIRequest) GetFlag ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetFlag() int64
GetFlag Flag Getter
func (TaobaotradememoupdateAPIRequest) GetMemo ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetMemo() string
GetMemo Memo Getter
func (TaobaotradememoupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradememoupdateAPIRequest) GetReset ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetReset() bool
GetReset Reset Getter
func (TaobaotradememoupdateAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradememoupdateAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradememoupdateAPIRequest) SetFlag ¶ added in v1.3.1
func (r *TaobaotradememoupdateAPIRequest) SetFlag(_flag int64) error
SetFlag is Flag Setter 卖家交易备注旗帜,可选值为:0(灰色), 1(红色), 2(黄色), 3(绿色), 4(蓝色), 5(粉红色),默认值为0
func (*TaobaotradememoupdateAPIRequest) SetMemo ¶ added in v1.3.1
func (r *TaobaotradememoupdateAPIRequest) SetMemo(_memo string) error
SetMemo is Memo Setter 卖家交易备注。最大长度: 1000个字节
func (*TaobaotradememoupdateAPIRequest) SetReset ¶ added in v1.3.1
func (r *TaobaotradememoupdateAPIRequest) SetReset(_reset bool) error
SetReset is Reset Setter 是否对memo的值置空若为true,则不管传入的memo字段的值是否为空,都将会对已有的memo值清空,慎用;若用false,则会根据memo是否为空来修改memo的值:若memo为空则忽略对已有memo字段的修改,若memo非空,则使用新传入的memo覆盖已有的memo的值
func (*TaobaotradememoupdateAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradememoupdateAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易编号
type TaobaotradememoupdateAPIResponse ¶ added in v1.3.1
type TaobaotradememoupdateAPIResponse struct { model.CommonResponse TaobaotradememoupdateAPIResponseModel }
TaobaotradememoupdateAPIResponse 修改交易备注 API返回值 taobao.trade.memo.update
需要商家或以上权限才可调用此接口,可重复调用本接口更新交易备注,本接口同时具有添加备注的功能
type TaobaotradememoupdateAPIResponseModel ¶ added in v1.3.1
type TaobaotradememoupdateAPIResponseModel struct { XMLName xml.Name `xml:"trade_memo_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 更新交易的备注信息后返回的Trade,其中可用字段为tid和modified Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradememoupdateAPIResponseModel is 修改交易备注 成功返回结果
type TaobaotradeorderskuupdateAPIRequest ¶ added in v1.3.1
type TaobaotradeorderskuupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradeorderskuupdateAPIRequest 更新交易的销售属性 API请求 taobao.trade.ordersku.update
只能更新发货前子订单的销售属性 <br/>只能更新价格相同的销售属性。对于拍下减库存的交易会同步更新销售属性的库存量。对于旺店的交易,要使用商品扩展信息中的SKU价格来比较。 <br/>必须使用sku_id或sku_props中的一个参数来更新,如果两个都传的话,sku_id优先
func NewTaobaotradeorderskuupdateRequest ¶ added in v1.3.1
func NewTaobaotradeorderskuupdateRequest() *TaobaotradeorderskuupdateAPIRequest
NewTaobaotradeorderskuupdateRequest 初始化TaobaotradeorderskuupdateAPIRequest对象
func (TaobaotradeorderskuupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradeorderskuupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradeorderskuupdateAPIRequest) GetOid ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetOid() int64
GetOid Oid Getter
func (TaobaotradeorderskuupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradeorderskuupdateAPIRequest) GetSkuId ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetSkuId() int64
GetSkuId SkuId Getter
func (TaobaotradeorderskuupdateAPIRequest) GetSkuProps ¶ added in v1.3.1
func (r TaobaotradeorderskuupdateAPIRequest) GetSkuProps() string
GetSkuProps SkuProps Getter
func (*TaobaotradeorderskuupdateAPIRequest) SetOid ¶ added in v1.3.1
func (r *TaobaotradeorderskuupdateAPIRequest) SetOid(_oid int64) error
SetOid is Oid Setter 子订单编号(对于单笔订单的交易可以传交易编号)。
func (*TaobaotradeorderskuupdateAPIRequest) SetSkuId ¶ added in v1.3.1
func (r *TaobaotradeorderskuupdateAPIRequest) SetSkuId(_skuId int64) error
SetSkuId is SkuId Setter 销售属性编号,可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。
func (*TaobaotradeorderskuupdateAPIRequest) SetSkuProps ¶ added in v1.3.1
func (r *TaobaotradeorderskuupdateAPIRequest) SetSkuProps(_skuProps string) error
SetSkuProps is SkuProps Setter 销售属性组合串,格式:p1:v1;p2:v2,如:1627207:28329;20509:28314。可以通过taobao.item.skus.get获取订单对应的商品的所有销售属性。
type TaobaotradeorderskuupdateAPIResponse ¶ added in v1.3.1
type TaobaotradeorderskuupdateAPIResponse struct { model.CommonResponse TaobaotradeorderskuupdateAPIResponseModel }
TaobaotradeorderskuupdateAPIResponse 更新交易的销售属性 API返回值 taobao.trade.ordersku.update
只能更新发货前子订单的销售属性 <br/>只能更新价格相同的销售属性。对于拍下减库存的交易会同步更新销售属性的库存量。对于旺店的交易,要使用商品扩展信息中的SKU价格来比较。 <br/>必须使用sku_id或sku_props中的一个参数来更新,如果两个都传的话,sku_id优先
type TaobaotradeorderskuupdateAPIResponseModel ¶ added in v1.3.1
type TaobaotradeorderskuupdateAPIResponseModel struct { XMLName xml.Name `xml:"trade_ordersku_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 只返回oid和modified Order *Order `json:"order,omitempty" xml:"order,omitempty"` }
TaobaotradeorderskuupdateAPIResponseModel is 更新交易的销售属性 成功返回结果
type TaobaotradepostageupdateAPIRequest ¶ added in v1.3.1
type TaobaotradepostageupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradepostageupdateAPIRequest 修改交易邮费价格 API请求 taobao.trade.postage.update
修改订单邮费接口,通过传入订单编号和邮费价格,修改订单的邮费,返回修改时间modified,邮费post_fee,总费用total_fee。 <br/> <span style="color:red"> API取消加邮费功能通知:http://open.taobao.com/support/announcement_detail.htm?tid=24750</span>
func NewTaobaotradepostageupdateRequest ¶ added in v1.3.1
func NewTaobaotradepostageupdateRequest() *TaobaotradepostageupdateAPIRequest
NewTaobaotradepostageupdateRequest 初始化TaobaotradepostageupdateAPIRequest对象
func (TaobaotradepostageupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradepostageupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradepostageupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradepostageupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradepostageupdateAPIRequest) GetPostFee ¶ added in v1.3.1
func (r TaobaotradepostageupdateAPIRequest) GetPostFee() string
GetPostFee PostFee Getter
func (TaobaotradepostageupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradepostageupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradepostageupdateAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradepostageupdateAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradepostageupdateAPIRequest) SetPostFee ¶ added in v1.3.1
func (r *TaobaotradepostageupdateAPIRequest) SetPostFee(_postFee string) error
SetPostFee is PostFee Setter 邮费价格(邮费单位是元)
func (*TaobaotradepostageupdateAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradepostageupdateAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 主订单编号
type TaobaotradepostageupdateAPIResponse ¶ added in v1.3.1
type TaobaotradepostageupdateAPIResponse struct { model.CommonResponse TaobaotradepostageupdateAPIResponseModel }
TaobaotradepostageupdateAPIResponse 修改交易邮费价格 API返回值 taobao.trade.postage.update
修改订单邮费接口,通过传入订单编号和邮费价格,修改订单的邮费,返回修改时间modified,邮费post_fee,总费用total_fee。 <br/> <span style="color:red"> API取消加邮费功能通知:http://open.taobao.com/support/announcement_detail.htm?tid=24750</span>
type TaobaotradepostageupdateAPIResponseModel ¶ added in v1.3.1
type TaobaotradepostageupdateAPIResponseModel struct { XMLName xml.Name `xml:"trade_postage_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 返回trade类型,其中包含修改时间modified,修改邮费post_fee,修改后的总费用total_fee和买家实付款payment Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradepostageupdateAPIResponseModel is 修改交易邮费价格 成功返回结果
type TaobaotradereceivetimedelayAPIRequest ¶ added in v1.3.1
type TaobaotradereceivetimedelayAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradereceivetimedelayAPIRequest 延长交易收货时间 API请求 taobao.trade.receivetime.delay
延长交易收货时间
func NewTaobaotradereceivetimedelayRequest ¶ added in v1.3.1
func NewTaobaotradereceivetimedelayRequest() *TaobaotradereceivetimedelayAPIRequest
NewTaobaotradereceivetimedelayRequest 初始化TaobaotradereceivetimedelayAPIRequest对象
func (TaobaotradereceivetimedelayAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradereceivetimedelayAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradereceivetimedelayAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradereceivetimedelayAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradereceivetimedelayAPIRequest) GetDays ¶ added in v1.3.1
func (r TaobaotradereceivetimedelayAPIRequest) GetDays() int64
GetDays Days Getter
func (TaobaotradereceivetimedelayAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradereceivetimedelayAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradereceivetimedelayAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradereceivetimedelayAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradereceivetimedelayAPIRequest) SetDays ¶ added in v1.3.1
func (r *TaobaotradereceivetimedelayAPIRequest) SetDays(_days int64) error
SetDays is Days Setter 延长收货的天数,可选值为:3, 5, 7, 10。
func (*TaobaotradereceivetimedelayAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradereceivetimedelayAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 主订单号
type TaobaotradereceivetimedelayAPIResponse ¶ added in v1.3.1
type TaobaotradereceivetimedelayAPIResponse struct { model.CommonResponse TaobaotradereceivetimedelayAPIResponseModel }
TaobaotradereceivetimedelayAPIResponse 延长交易收货时间 API返回值 taobao.trade.receivetime.delay
延长交易收货时间
type TaobaotradereceivetimedelayAPIResponseModel ¶ added in v1.3.1
type TaobaotradereceivetimedelayAPIResponseModel struct { XMLName xml.Name `xml:"trade_receivetime_delay_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 更新后的交易数据,只包括tid和modified两个字段。 Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradereceivetimedelayAPIResponseModel is 延长交易收货时间 成功返回结果
type TaobaotradeshippingaddressupdateAPIRequest ¶ added in v1.3.1
type TaobaotradeshippingaddressupdateAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradeshippingaddressupdateAPIRequest 更改交易的收货地址 API请求 taobao.trade.shippingaddress.update
只能更新一笔交易里面的买家收货地址 <br/>只能更新发货前(即买家已付款,等待卖家发货状态)的交易的买家收货地址 <br/>更新后的发货地址可以通过taobao.trade.fullinfo.get查到 <br/>参数中所说的字节为GBK编码的(英文和数字占1字节,中文占2字节)
func NewTaobaotradeshippingaddressupdateRequest ¶ added in v1.3.1
func NewTaobaotradeshippingaddressupdateRequest() *TaobaotradeshippingaddressupdateAPIRequest
NewTaobaotradeshippingaddressupdateRequest 初始化TaobaotradeshippingaddressupdateAPIRequest对象
func (TaobaotradeshippingaddressupdateAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradeshippingaddressupdateAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradeshippingaddressupdateAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverAddress ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverAddress() string
GetReceiverAddress ReceiverAddress Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverCity ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverCity() string
GetReceiverCity ReceiverCity Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverDistrict ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverDistrict() string
GetReceiverDistrict ReceiverDistrict Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverMobile ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverMobile() string
GetReceiverMobile ReceiverMobile Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverName ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverName() string
GetReceiverName ReceiverName Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverPhone ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverPhone() string
GetReceiverPhone ReceiverPhone Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverState ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverState() string
GetReceiverState ReceiverState Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverTown ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverTown() string
GetReceiverTown ReceiverTown Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetReceiverZip ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetReceiverZip() string
GetReceiverZip ReceiverZip Getter
func (TaobaotradeshippingaddressupdateAPIRequest) GetTid ¶ added in v1.3.1
func (r TaobaotradeshippingaddressupdateAPIRequest) GetTid() int64
GetTid Tid Getter
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverAddress ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverAddress(_receiverAddress string) error
SetReceiverAddress is ReceiverAddress Setter 收货地址。最大长度为228个字节。
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverCity ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverCity(_receiverCity string) error
SetReceiverCity is ReceiverCity Setter 城市。最大长度为32个字节。如:杭州
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverDistrict ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverDistrict(_receiverDistrict string) error
SetReceiverDistrict is ReceiverDistrict Setter 区/县。最大长度为32个字节。如:西湖区
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverMobile ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverMobile(_receiverMobile string) error
SetReceiverMobile is ReceiverMobile Setter 移动电话。最大长度为11个字节。传-1表示删除
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverName ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverName(_receiverName string) error
SetReceiverName is ReceiverName Setter 收货人全名。最大长度为50个字节。
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverPhone ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverPhone(_receiverPhone string) error
SetReceiverPhone is ReceiverPhone Setter 座机号码。最大长度为30个字节。传-1表示删除
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverState ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverState(_receiverState string) error
SetReceiverState is ReceiverState Setter 省份。最大长度为32个字节。如:浙江
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverTown ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverTown(_receiverTown string) error
SetReceiverTown is ReceiverTown Setter 四级地址。最大长度为32个字节。如:五常街道
func (*TaobaotradeshippingaddressupdateAPIRequest) SetReceiverZip ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetReceiverZip(_receiverZip string) error
SetReceiverZip is ReceiverZip Setter 邮政编码。必须由6个数字组成。注:邮政编码根据地址信息自动填入,不可单独修改
func (*TaobaotradeshippingaddressupdateAPIRequest) SetTid ¶ added in v1.3.1
func (r *TaobaotradeshippingaddressupdateAPIRequest) SetTid(_tid int64) error
SetTid is Tid Setter 交易编号。
type TaobaotradeshippingaddressupdateAPIResponse ¶ added in v1.3.1
type TaobaotradeshippingaddressupdateAPIResponse struct { model.CommonResponse TaobaotradeshippingaddressupdateAPIResponseModel }
TaobaotradeshippingaddressupdateAPIResponse 更改交易的收货地址 API返回值 taobao.trade.shippingaddress.update
只能更新一笔交易里面的买家收货地址 <br/>只能更新发货前(即买家已付款,等待卖家发货状态)的交易的买家收货地址 <br/>更新后的发货地址可以通过taobao.trade.fullinfo.get查到 <br/>参数中所说的字节为GBK编码的(英文和数字占1字节,中文占2字节)
type TaobaotradeshippingaddressupdateAPIResponseModel ¶ added in v1.3.1
type TaobaotradeshippingaddressupdateAPIResponseModel struct { XMLName xml.Name `xml:"trade_shippingaddress_update_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 交易结构 Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"` }
TaobaotradeshippingaddressupdateAPIResponseModel is 更改交易的收货地址 成功返回结果
type TaobaotradessoldgetAPIRequest ¶ added in v1.3.1
type TaobaotradessoldgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradessoldgetAPIRequest 查询卖家已卖出的交易数据(根据创建时间) API请求 taobao.trades.sold.get
搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
func NewTaobaotradessoldgetRequest ¶ added in v1.3.1
func NewTaobaotradessoldgetRequest() *TaobaotradessoldgetAPIRequest
NewTaobaotradessoldgetRequest 初始化TaobaotradessoldgetAPIRequest对象
func (TaobaotradessoldgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradessoldgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradessoldgetAPIRequest) GetBuyerNick ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetBuyerNick() string
GetBuyerNick BuyerNick Getter
func (TaobaotradessoldgetAPIRequest) GetBuyerOpenId ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetBuyerOpenId() string
GetBuyerOpenId BuyerOpenId Getter
func (TaobaotradessoldgetAPIRequest) GetEndCreated ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetEndCreated() string
GetEndCreated EndCreated Getter
func (TaobaotradessoldgetAPIRequest) GetExtType ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetExtType() string
GetExtType ExtType Getter
func (TaobaotradessoldgetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaotradessoldgetAPIRequest) GetPageNo ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetPageNo() int64
GetPageNo PageNo Getter
func (TaobaotradessoldgetAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaotradessoldgetAPIRequest) GetRateStatus ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetRateStatus() string
GetRateStatus RateStatus Getter
func (TaobaotradessoldgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradessoldgetAPIRequest) GetStartCreated ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetStartCreated() string
GetStartCreated StartCreated Getter
func (TaobaotradessoldgetAPIRequest) GetStatus ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetStatus() string
GetStatus Status Getter
func (TaobaotradessoldgetAPIRequest) GetTag ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetTag() string
GetTag Tag Getter
func (TaobaotradessoldgetAPIRequest) GetType ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetType() string
GetType Type Getter
func (TaobaotradessoldgetAPIRequest) GetUseHasNext ¶ added in v1.3.1
func (r TaobaotradessoldgetAPIRequest) GetUseHasNext() bool
GetUseHasNext UseHasNext Getter
func (*TaobaotradessoldgetAPIRequest) SetBuyerNick ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetBuyerNick(_buyerNick string) error
SetBuyerNick is BuyerNick Setter 买家昵称
func (*TaobaotradessoldgetAPIRequest) SetBuyerOpenId ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error
SetBuyerOpenId is BuyerOpenId Setter 买家的openId
func (*TaobaotradessoldgetAPIRequest) SetEndCreated ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetEndCreated(_endCreated string) error
SetEndCreated is EndCreated Setter 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss
func (*TaobaotradessoldgetAPIRequest) SetExtType ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetExtType(_extType string) error
SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型
func (*TaobaotradessoldgetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetFields(_fields string) error
SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核
func (*TaobaotradessoldgetAPIRequest) SetPageNo ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetPageNo(_pageNo int64) error
SetPageNo is PageNo Setter 页码。默认值:1,可填整数,通过传入page_no来控制获取的页数,总页数=total_results÷page_size
func (*TaobaotradessoldgetAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 每页条数。 默认值:40;最大值:100,可填整数。通过page_no和page_size组合多次调用实现翻页获取全量数据。
func (*TaobaotradessoldgetAPIRequest) SetRateStatus ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetRateStatus(_rateStatus string) error
SetRateStatus is RateStatus Setter 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。<br>可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评)
func (*TaobaotradessoldgetAPIRequest) SetStartCreated ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetStartCreated(_startCreated string) error
SetStartCreated is StartCreated Setter 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss
func (*TaobaotradessoldgetAPIRequest) SetStatus ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetStatus(_status string) error
SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。
func (*TaobaotradessoldgetAPIRequest) SetTag ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetTag(_tag string) error
SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)
func (*TaobaotradessoldgetAPIRequest) SetType ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetType(_type string) error
SetType is Type Setter 交易类型列表,同时查询多种交易类型可用逗号分隔。<span style="color:red;font-weight: bold;">默认同时查询guarantee_trade,auto_delivery,ec,cod,step 这5 种的交易类型的数据;查询所有交易类型的数据,需要设置下面全部可选值。</span>可选值:fixed(一口价)auction(拍卖)guarantee_trade(一口价、拍卖)step(分阶段付款,万人团,阶梯团订单)independent_simple_trade(旺店入门版交易)independent_shop_trade(旺店标准版交易)auto_delivery(自动发货)ec(直冲)cod(货到付款)game_equipment(游戏装备)shopex_trade(ShopEX交易)netcn_trade(万网交易)external_trade(统一外部交易)instant_trade (即时到账)b2c_cod(大商家货到付款)hotel_trade(酒店类型交易)super_market_trade(商超交易)super_market_cod_trade(商超货到付款交易)taohua(淘花网交易类型)waimai(外卖交易类型)o2o_offlinetrade(O2O交易)nopaid(即时到帐/趣味猜交易类型)step (万人团) eticket(电子凭证) tmall_i18n(天猫国际);nopaid (无付款交易)insurance_plus(保险)finance(基金)注:guarantee_trade是一个组合查询条件,并不是一种交易类型,获取批量或单个订单中不会返回此种类型的订单。pre_auth_type(预授权0元购) lazada(获取lazada订单类型)
func (*TaobaotradessoldgetAPIRequest) SetUseHasNext ¶ added in v1.3.1
func (r *TaobaotradessoldgetAPIRequest) SetUseHasNext(_useHasNext bool) error
SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,通过此种方式获取增量交易,接口调用成功率在原有的基础上有所提升。
type TaobaotradessoldgetAPIResponse ¶ added in v1.3.1
type TaobaotradessoldgetAPIResponse struct { model.CommonResponse TaobaotradessoldgetAPIResponseModel }
TaobaotradessoldgetAPIResponse 查询卖家已卖出的交易数据(根据创建时间) API返回值 taobao.trades.sold.get
搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
type TaobaotradessoldgetAPIResponseModel ¶ added in v1.3.1
type TaobaotradessoldgetAPIResponseModel struct { XMLName xml.Name `xml:"trades_sold_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` // 搜索到的交易信息总数 TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` // 是否存在下一页 HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` }
TaobaotradessoldgetAPIResponseModel is 查询卖家已卖出的交易数据(根据创建时间) 成功返回结果
type TaobaotradessoldincrementgetAPIRequest ¶ added in v1.3.1
type TaobaotradessoldincrementgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradessoldincrementgetAPIRequest 查询卖家已卖出的增量交易数据(根据修改时间) API请求 taobao.trades.sold.increment.get
搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 <br/>2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
func NewTaobaotradessoldincrementgetRequest ¶ added in v1.3.1
func NewTaobaotradessoldincrementgetRequest() *TaobaotradessoldincrementgetAPIRequest
NewTaobaotradessoldincrementgetRequest 初始化TaobaotradessoldincrementgetAPIRequest对象
func (TaobaotradessoldincrementgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradessoldincrementgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradessoldincrementgetAPIRequest) GetBuyerNick ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetBuyerNick() string
GetBuyerNick BuyerNick Getter
func (TaobaotradessoldincrementgetAPIRequest) GetBuyerOpenUid ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetBuyerOpenUid() string
GetBuyerOpenUid BuyerOpenUid Getter
func (TaobaotradessoldincrementgetAPIRequest) GetEndModified ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetEndModified() string
GetEndModified EndModified Getter
func (TaobaotradessoldincrementgetAPIRequest) GetExtType ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetExtType() string
GetExtType ExtType Getter
func (TaobaotradessoldincrementgetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaotradessoldincrementgetAPIRequest) GetPageNo ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetPageNo() int64
GetPageNo PageNo Getter
func (TaobaotradessoldincrementgetAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaotradessoldincrementgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradessoldincrementgetAPIRequest) GetStartModified ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetStartModified() string
GetStartModified StartModified Getter
func (TaobaotradessoldincrementgetAPIRequest) GetStatus ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetStatus() string
GetStatus Status Getter
func (TaobaotradessoldincrementgetAPIRequest) GetTag ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetTag() string
GetTag Tag Getter
func (TaobaotradessoldincrementgetAPIRequest) GetType ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetType() string
GetType Type Getter
func (TaobaotradessoldincrementgetAPIRequest) GetUseHasNext ¶ added in v1.3.1
func (r TaobaotradessoldincrementgetAPIRequest) GetUseHasNext() bool
GetUseHasNext UseHasNext Getter
func (*TaobaotradessoldincrementgetAPIRequest) SetBuyerNick ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetBuyerNick(_buyerNick string) error
SetBuyerNick is BuyerNick Setter 买家昵称
func (*TaobaotradessoldincrementgetAPIRequest) SetBuyerOpenUid ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetBuyerOpenUid(_buyerOpenUid string) error
SetBuyerOpenUid is BuyerOpenUid Setter 买家openId
func (*TaobaotradessoldincrementgetAPIRequest) SetEndModified ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetEndModified(_endModified string) error
SetEndModified is EndModified Setter 查询修改结束时间,必须大于修改开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。<span style="color:red;font-weight: bold;">建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率</span>。
func (*TaobaotradessoldincrementgetAPIRequest) SetExtType ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetExtType(_extType string) error
SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型
func (*TaobaotradessoldincrementgetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetFields(_fields string) error
SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0为处方药未审核状态
func (*TaobaotradessoldincrementgetAPIRequest) SetPageNo ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetPageNo(_pageNo int64) error
SetPageNo is PageNo Setter 页码。取值范围:大于零的整数;默认值:1。<span style="color:red;font-weight: bold;">注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。</span>
func (*TaobaotradessoldincrementgetAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 每页条数。取值范围:1~100,默认值:40。<span style="color:red;font-weight: bold;">建议使用40~50,可以提高成功率,减少超时数量</span>。
func (*TaobaotradessoldincrementgetAPIRequest) SetStartModified ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetStartModified(_startModified string) error
SetStartModified is StartModified Setter 查询修改开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss
func (*TaobaotradessoldincrementgetAPIRequest) SetStatus ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetStatus(_status string) error
SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。
func (*TaobaotradessoldincrementgetAPIRequest) SetTag ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetTag(_tag string) error
SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)
func (*TaobaotradessoldincrementgetAPIRequest) SetType ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetType(_type string) error
SetType is Type Setter 交易类型列表(<a href="http://open.taobao.com/doc/detail.htm?id=102855" target="_blank">查看可选值</a>),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。
func (*TaobaotradessoldincrementgetAPIRequest) SetUseHasNext ¶ added in v1.3.1
func (r *TaobaotradessoldincrementgetAPIRequest) SetUseHasNext(_useHasNext bool) error
SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,<span style="color:red;font-weight: bold;">通过此种方式获取增量交易,效率在原有的基础上有80%的提升</span>。
type TaobaotradessoldincrementgetAPIResponse ¶ added in v1.3.1
type TaobaotradessoldincrementgetAPIResponse struct { model.CommonResponse TaobaotradessoldincrementgetAPIResponseModel }
TaobaotradessoldincrementgetAPIResponse 查询卖家已卖出的增量交易数据(根据修改时间) API返回值 taobao.trades.sold.increment.get
搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 <br/>2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
type TaobaotradessoldincrementgetAPIResponseModel ¶ added in v1.3.1
type TaobaotradessoldincrementgetAPIResponseModel struct { XMLName xml.Name `xml:"trades_sold_increment_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` // 搜索到的交易信息总数 TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` // 是否存在下一页 HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` }
TaobaotradessoldincrementgetAPIResponseModel is 查询卖家已卖出的增量交易数据(根据修改时间) 成功返回结果
type TaobaotradessoldincrementvgetAPIRequest ¶ added in v1.3.1
type TaobaotradessoldincrementvgetAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradessoldincrementvgetAPIRequest 查询卖家已卖出的增量交易数据(根据入库时间) API请求 taobao.trades.sold.incrementv.get
搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_create - start_create <= 1天。 <br/>2. 返回的数据结果是以订单入库时间的倒序排列的(该时间和订单修改时间不同),通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
func NewTaobaotradessoldincrementvgetRequest ¶ added in v1.3.1
func NewTaobaotradessoldincrementvgetRequest() *TaobaotradessoldincrementvgetAPIRequest
NewTaobaotradessoldincrementvgetRequest 初始化TaobaotradessoldincrementvgetAPIRequest对象
func (TaobaotradessoldincrementvgetAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradessoldincrementvgetAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradessoldincrementvgetAPIRequest) GetEndCreate ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetEndCreate() string
GetEndCreate EndCreate Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetExtType ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetExtType() string
GetExtType ExtType Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetFields ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetFields() string
GetFields Fields Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetPageNo ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetPageNo() int64
GetPageNo PageNo Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetPageSize ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetPageSize() int64
GetPageSize PageSize Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradessoldincrementvgetAPIRequest) GetStartCreate ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetStartCreate() string
GetStartCreate StartCreate Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetStatus ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetStatus() string
GetStatus Status Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetTag ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetTag() string
GetTag Tag Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetType ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetType() string
GetType Type Getter
func (TaobaotradessoldincrementvgetAPIRequest) GetUseHasNext ¶ added in v1.3.1
func (r TaobaotradessoldincrementvgetAPIRequest) GetUseHasNext() bool
GetUseHasNext UseHasNext Getter
func (*TaobaotradessoldincrementvgetAPIRequest) SetEndCreate ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetEndCreate(_endCreate string) error
SetEndCreate is EndCreate Setter 查询入库结束时间,必须大于入库开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。<span style="color:red;font-weight: bold;">建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率</span>。
func (*TaobaotradessoldincrementvgetAPIRequest) SetExtType ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetExtType(_extType string) error
SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型
func (*TaobaotradessoldincrementvgetAPIRequest) SetFields ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetFields(_fields string) error
SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。
func (*TaobaotradessoldincrementvgetAPIRequest) SetPageNo ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetPageNo(_pageNo int64) error
SetPageNo is PageNo Setter 页码。取值范围:大于零的整数;默认值:1。<span style="color:red;font-weight: bold;">注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。</span>
func (*TaobaotradessoldincrementvgetAPIRequest) SetPageSize ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetPageSize(_pageSize int64) error
SetPageSize is PageSize Setter 每页条数。取值范围:1~100,默认值:40。<span style="color:red;font-weight: bold;">建议使用40~50,可以提高成功率,减少超时数量</span>。
func (*TaobaotradessoldincrementvgetAPIRequest) SetStartCreate ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetStartCreate(_startCreate string) error
SetStartCreate is StartCreate Setter 查询入库开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss
func (*TaobaotradessoldincrementvgetAPIRequest) SetStatus ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetStatus(_status string) error
SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。
func (*TaobaotradessoldincrementvgetAPIRequest) SetTag ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetTag(_tag string) error
SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)
func (*TaobaotradessoldincrementvgetAPIRequest) SetType ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetType(_type string) error
SetType is Type Setter 交易类型列表(<a href="http://open.taobao.com/doc/detail.htm?id=102855" target="_blank">查看可选值</a>),一次查询多种类型可用半角逗号分隔,默认同时查询guarantee_trade,auto_delivery,ec,cod,step这5种类型的数据。
func (*TaobaotradessoldincrementvgetAPIRequest) SetUseHasNext ¶ added in v1.3.1
func (r *TaobaotradessoldincrementvgetAPIRequest) SetUseHasNext(_useHasNext bool) error
SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,<span style="color:red;font-weight: bold;">通过此种方式获取增量交易,效率在原有的基础上有80%的提升</span>。
type TaobaotradessoldincrementvgetAPIResponse ¶ added in v1.3.1
type TaobaotradessoldincrementvgetAPIResponse struct { model.CommonResponse TaobaotradessoldincrementvgetAPIResponseModel }
TaobaotradessoldincrementvgetAPIResponse 查询卖家已卖出的增量交易数据(根据入库时间) API返回值 taobao.trades.sold.incrementv.get
搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_create - start_create <= 1天。 <br/>2. 返回的数据结果是以订单入库时间的倒序排列的(该时间和订单修改时间不同),通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.fullinfo.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>
type TaobaotradessoldincrementvgetAPIResponseModel ¶ added in v1.3.1
type TaobaotradessoldincrementvgetAPIResponseModel struct { XMLName xml.Name `xml:"trades_sold_incrementv_get_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息 Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"` // 搜索到的交易信息总数 TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"` // 是否存在下一页 HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"` }
TaobaotradessoldincrementvgetAPIResponseModel is 查询卖家已卖出的增量交易数据(根据入库时间) 成功返回结果
type TaobaotradessoldqueryAPIRequest ¶ added in v1.3.1
type TaobaotradessoldqueryAPIRequest struct { model.Params // contains filtered or unexported fields }
TaobaotradessoldqueryAPIRequest 根据收件人信息查询交易单号 API请求 taobao.trades.sold.query
根据收件人信息查询交易单号。
func NewTaobaotradessoldqueryRequest ¶ added in v1.3.1
func NewTaobaotradessoldqueryRequest() *TaobaotradessoldqueryAPIRequest
NewTaobaotradessoldqueryRequest 初始化TaobaotradessoldqueryAPIRequest对象
func (TaobaotradessoldqueryAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (TaobaotradessoldqueryAPIRequest) GetApiParams ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (TaobaotradessoldqueryAPIRequest) GetOrderType ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetOrderType() string
GetOrderType OrderType Getter
func (TaobaotradessoldqueryAPIRequest) GetQueryList ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetQueryList() []OrderQuery
GetQueryList QueryList Getter
func (TaobaotradessoldqueryAPIRequest) GetRawParams ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (TaobaotradessoldqueryAPIRequest) GetScene ¶ added in v1.3.1
func (r TaobaotradessoldqueryAPIRequest) GetScene() string
GetScene Scene Getter
func (*TaobaotradessoldqueryAPIRequest) SetOrderType ¶ added in v1.3.1
func (r *TaobaotradessoldqueryAPIRequest) SetOrderType(_orderType string) error
SetOrderType is OrderType Setter 订单类型,默认值为1,可选值为:交易(1),分销(2),换货(3)
func (*TaobaotradessoldqueryAPIRequest) SetQueryList ¶ added in v1.3.1
func (r *TaobaotradessoldqueryAPIRequest) SetQueryList(_queryList []OrderQuery) error
SetQueryList is QueryList Setter 查询条件列表,多个条件之间是OR关系,最多支持20个。receiver_name、receiver_mobile、receiver_phone至少有一个值不为空。
func (*TaobaotradessoldqueryAPIRequest) SetScene ¶ added in v1.3.1
func (r *TaobaotradessoldqueryAPIRequest) SetScene(_scene string) error
SetScene is Scene Setter 业务场景编码。不同场景,策略不同。请根据产品功能选择相应的场景编号。可选的场景:1001(客服咨询)、1002(售后服务),<a href="https://open.taobao.com/doc.htm?docId=120186&docType=1" target="_blank">详情点击</a>
type TaobaotradessoldqueryAPIResponse ¶ added in v1.3.1
type TaobaotradessoldqueryAPIResponse struct { model.CommonResponse TaobaotradessoldqueryAPIResponseModel }
TaobaotradessoldqueryAPIResponse 根据收件人信息查询交易单号 API返回值 taobao.trades.sold.query
根据收件人信息查询交易单号。
type TaobaotradessoldqueryAPIResponseModel ¶ added in v1.3.1
type TaobaotradessoldqueryAPIResponseModel struct { XMLName xml.Name `xml:"trades_sold_query_response"` // 平台颁发的每次请求访问的唯一标识 RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"` // 订单ID列表。按照订单创建时间倒序,最多返回最近的100笔订单。 TidList []string `json:"tid_list,omitempty" xml:"tid_list>string,omitempty"` }
TaobaotradessoldqueryAPIResponseModel is 根据收件人信息查询交易单号 成功返回结果
type Trade ¶
type Trade struct { // 订单列表 Orders []Order `json:"orders,omitempty" xml:"orders>order,omitempty"` // 优惠详情 PromotionDetails []PromotionDetail `json:"promotion_details,omitempty" xml:"promotion_details>promotion_detail,omitempty"` // 物流标签 ServiceTags []LogisticsTag `json:"service_tags,omitempty" xml:"service_tags>logistics_tag,omitempty"` // 服务子订单列表 ServiceOrders []ServiceOrder `json:"service_orders,omitempty" xml:"service_orders>service_order,omitempty"` // 子单物流发货信息 LogisticsInfos []LogisticsInfo `json:"logistics_infos,omitempty" xml:"logistics_infos>logistics_info,omitempty"` // 分阶段支付详情 StepPayDetails []StepPayDetail `json:"step_pay_details,omitempty" xml:"step_pay_details>step_pay_detail,omitempty"` // 同意退款检查标识字段 AgreeRefundChecks []AgreeRefundCheck `json:"agree_refund_checks,omitempty" xml:"agree_refund_checks>agree_refund_check,omitempty"` // 阶段地址详情字段 AddressDetails []AddressDetail `json:"address_details,omitempty" xml:"address_details>address_detail,omitempty"` // 交付计划 DeliveryPlan []DeliveryPlan `json:"delivery_plan,omitempty" xml:"delivery_plan>delivery_plan,omitempty"` // 子订单组合品物流详情(仅支持拆单发货) CombineLogisticsDetails []CombineLogisticsDetail `json:"combine_logistics_details,omitempty" xml:"combine_logistics_details>combine_logistics_detail,omitempty"` // 物流时效信息 LogisticsConsignInfo []LogisticsConsignInfo `json:"logistics_consign_info,omitempty" xml:"logistics_consign_info>logistics_consign_info,omitempty"` // 发货时效修改记录 LogisticsModifyInfo []LogisticsModifyInfo `json:"logistics_modify_info,omitempty" xml:"logistics_modify_info>logistics_modify_info,omitempty"` // 补差关联订单号列表 ReceiptRelIds []string `json:"receipt_rel_ids,omitempty" xml:"receipt_rel_ids>string,omitempty"` // 交易修改时间(用户对订单的任何修改都会更新此字段)。格式:yyyy-MM-dd HH:mm:ss Modified string `json:"modified,omitempty" xml:"modified,omitempty"` // 买家OpenUid BuyerOpenUid string `json:"buyer_open_uid,omitempty" xml:"buyer_open_uid,omitempty"` // 交易标题,以店铺名作为此标题的值。注:taobao.trades.get接口返回的Trade中的title是商品名称 Title string `json:"title,omitempty" xml:"title,omitempty"` // 交易类型列表,同时查询多种交易类型可用逗号分隔。默认同时查询guarantee_trade, auto_delivery, ec, cod的4种交易类型的数据 可选值 fixed(一口价) auction(拍卖) guarantee_trade(一口价、拍卖) auto_delivery(自动发货) independent_simple_trade(旺店入门版交易) independent_shop_trade(旺店标准版交易) ec(直冲) cod(货到付款) fenxiao(分销) game_equipment(游戏装备) shopex_trade(ShopEX交易) netcn_trade(万网交易) external_trade(统一外部交易)o2o_offlinetrade(O2O交易)step (万人团)nopaid(无付款订单)pre_auth_type(预授权0元购机交易) Type string `json:"type,omitempty" xml:"type,omitempty"` // 交易创建时间。格式:yyyy-MM-dd HH:mm:ss Created string `json:"created,omitempty" xml:"created,omitempty"` // 交易编号 (父订单的交易编号) Sid string `json:"sid,omitempty" xml:"sid,omitempty"` AcookieId string `json:"acookie_id,omitempty" xml:"acookie_id,omitempty"` // 交易状态。可选值: * TRADE_NO_CREATE_PAY(没有创建支付宝交易) * WAIT_BUYER_PAY(等待买家付款) * SELLER_CONSIGNED_PART(卖家部分发货) * WAIT_SELLER_SEND_GOODS(等待卖家发货,即:买家已付款) * WAIT_BUYER_CONFIRM_GOODS(等待买家确认收货,即:卖家已发货) * TRADE_BUYER_SIGNED(买家已签收,货到付款专用) * TRADE_FINISHED(交易成功) * TRADE_CLOSED(付款以后用户退款成功,交易自动关闭) * TRADE_CLOSED_BY_TAOBAO(付款以前,卖家或买家主动关闭交易) * PAY_PENDING(国际信用卡支付付款确认中) * WAIT_PRE_AUTH_CONFIRM(0元购合约中) * PAID_FORBID_CONSIGN(拼团中订单或者发货强管控的订单,已付款但禁止发货) Status string `json:"status,omitempty" xml:"status,omitempty"` // 实付金额。精确到2位小数;单位:元。如:200.07,表示:200元7分 Payment string `json:"payment,omitempty" xml:"payment,omitempty"` // 建议使用trade.promotion_details查询系统优惠系统优惠金额(如打折,VIP,满就送等),精确到2位小数,单位:元。如:200.07,表示:200元7分 DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"` // 卖家手工调整金额,精确到2位小数,单位:元。如:200.07,表示:200元7分。来源于订单价格修改,如果有多笔子订单的时候,这个为0,单笔的话则跟[order].adjust_fee一样 AdjustFee string `json:"adjust_fee,omitempty" xml:"adjust_fee,omitempty"` // 邮费。精确到2位小数;单位:元。如:200.07,表示:200元7分 PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"` // 商品金额(商品价格乘以数量的总金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分 TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"` // 付款时间。格式:yyyy-MM-dd HH:mm:ss。订单的付款时间即为物流订单的创建时间。 PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` // 交易结束时间。交易成功时间(更新交易状态为成功的同时更新)/确认收货时间或者交易关闭时间 。格式:yyyy-MM-dd HH:mm:ss EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 卖家发货时间。格式:yyyy-MM-dd HH:mm:ss ConsignTime string `json:"consign_time,omitempty" xml:"consign_time,omitempty"` // 卖家实际收到的支付宝打款金额(由于子订单可以部分确认收货,这个金额会随着子订单的确认收货而不断增加,交易成功后等于买家实付款减去退款金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分 ReceivedPayment string `json:"received_payment,omitempty" xml:"received_payment,omitempty"` // 交易佣金。精确到2位小数;单位:元。如:200.07,表示:200元7分 CommissionFee string `json:"commission_fee,omitempty" xml:"commission_fee,omitempty"` // 买家备注(与淘宝网上订单的买家备注对应,只有买家才能查看该字段) BuyerMemo string `json:"buyer_memo,omitempty" xml:"buyer_memo,omitempty"` // 卖家备注(与淘宝网上订单的卖家备注对应,只有卖家才能查看该字段) SellerMemo string `json:"seller_memo,omitempty" xml:"seller_memo,omitempty"` // 买家下单的地区 BuyerArea string `json:"buyer_area,omitempty" xml:"buyer_area,omitempty"` // 支付宝交易号,如:2009112081173831 AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"` // 买家留言 BuyerMessage string `json:"buyer_message,omitempty" xml:"buyer_message,omitempty"` // 商品图片绝对途径 PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"` // 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分 Price string `json:"price,omitempty" xml:"price,omitempty"` // 货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分。 CodFee string `json:"cod_fee,omitempty" xml:"cod_fee,omitempty"` // 货到付款物流状态。初始状态 NEW_CREATED,接单成功 ACCEPTED_BY_COMPANY,接单失败 REJECTED_BY_COMPANY,接单超时 RECIEVE_TIMEOUT,揽收成功 TAKEN_IN_SUCCESS,揽收失败 TAKEN_IN_FAILED,揽收超时 TAKEN_TIMEOUT,签收成功 SIGN_IN,签收失败 REJECTED_BY_OTHER_SIDE,订单等待发送给物流公司 WAITING_TO_BE_SENT,用户取消物流订单 CANCELED CodStatus string `json:"cod_status,omitempty" xml:"cod_status,omitempty"` // 买家货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分 BuyerCodFee string `json:"buyer_cod_fee,omitempty" xml:"buyer_cod_fee,omitempty"` // 卖家货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分。卖家不承担服务费的订单:未发货的订单获取服务费为0,发货后就能获取到正确值。 SellerCodFee string `json:"seller_cod_fee,omitempty" xml:"seller_cod_fee,omitempty"` // 快递代收款。精确到2位小数;单位:元。如:212.07,表示:212元7分 ExpressAgencyFee string `json:"express_agency_fee,omitempty" xml:"express_agency_fee,omitempty"` // 创建交易时的物流方式(交易完成前,物流方式有可能改变,但系统里的这个字段一直不变)。可选值:free(卖家包邮),post(平邮),express(快递),ems(EMS),virtual(虚拟发货),25(次日必达),26(预约配送),seller(商家自配送),instant(即时配送)。 ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,omitempty"` // 买家支付宝账号 BuyerAlipayNo string `json:"buyer_alipay_no,omitempty" xml:"buyer_alipay_no,omitempty"` // 收货人的姓名(加密) ReceiverName string `json:"receiver_name,omitempty" xml:"receiver_name,omitempty"` // 收货人国籍 ReceiverCountry string `json:"receiver_country,omitempty" xml:"receiver_country,omitempty"` // 收货人的所在省份 ReceiverState string `json:"receiver_state,omitempty" xml:"receiver_state,omitempty"` // 收货人的所在城市<br/>注:因为国家对于城市和地区的划分的有:省直辖市和省直辖县级行政区(区级别的)划分的,淘宝这边根据这个差异保存在不同字段里面比如:广东广州:广州属于一个直辖市是放在的receiver_city的字段里面;而河南济源:济源属于省直辖县级行政区划分,是区级别的,放在了receiver_district里面<br/>建议:程序依赖于城市字段做物流等判断的操作,最好加一个判断逻辑:如果返回值里面只有receiver_district参数,该参数作为城市 ReceiverCity string `json:"receiver_city,omitempty" xml:"receiver_city,omitempty"` // 收货人的所在地区<br/>注:因为国家对于城市和地区的划分的有:省直辖市和省直辖县级行政区(区级别的)划分的,淘宝这边根据这个差异保存在不同字段里面比如:广东广州:广州属于一个直辖市是放在的receiver_city的字段里面;而河南济源:济源属于省直辖县级行政区划分,是区级别的,放在了receiver_district里面<br/>建议:程序依赖于城市字段做物流等判断的操作,最好加一个判断逻辑:如果返回值里面只有receiver_district参数,该参数作为城市 ReceiverDistrict string `json:"receiver_district,omitempty" xml:"receiver_district,omitempty"` // 收货人街道地址 ReceiverTown string `json:"receiver_town,omitempty" xml:"receiver_town,omitempty"` // 收货人的详细地址(加密) ReceiverAddress string `json:"receiver_address,omitempty" xml:"receiver_address,omitempty"` // 收货人的邮编 ReceiverZip string `json:"receiver_zip,omitempty" xml:"receiver_zip,omitempty"` // 收货人的手机号码(加密) ReceiverMobile string `json:"receiver_mobile,omitempty" xml:"receiver_mobile,omitempty"` // 收货人的电话号码(加密) ReceiverPhone string `json:"receiver_phone,omitempty" xml:"receiver_phone,omitempty"` // 买家邮件地址 BuyerEmail string `json:"buyer_email,omitempty" xml:"buyer_email,omitempty"` // 卖家支付宝账号 SellerAlipayNo string `json:"seller_alipay_no,omitempty" xml:"seller_alipay_no,omitempty"` // 卖家手机 SellerMobile string `json:"seller_mobile,omitempty" xml:"seller_mobile,omitempty"` // 卖家电话 SellerPhone string `json:"seller_phone,omitempty" xml:"seller_phone,omitempty"` // 卖家姓名 SellerName string `json:"seller_name,omitempty" xml:"seller_name,omitempty"` // 卖家邮件地址 SellerEmail string `json:"seller_email,omitempty" xml:"seller_email,omitempty"` // 交易中剩余的确认收货金额(这个金额会随着子订单确认收货而不断减少,交易成功后会变为零)。精确到2位小数;单位:元。如:200.07,表示:200 元7分 AvailableConfirmFee string `json:"available_confirm_fee,omitempty" xml:"available_confirm_fee,omitempty"` // 超时到期时间。格式:yyyy-MM-dd HH:mm:ss。业务规则:前提条件:只有在买家已付款,卖家已发货的情况下才有效如果申请了退款,那么超时会落在子订单上;比如说3笔ABC,A申请了,那么返回的是BC的列表, 主定单不存在如果没有申请过退款,那么超时会挂在主定单上;比如ABC,返回主定单,ABC的超时和主定单相同 TimeoutActionTime string `json:"timeout_action_time,omitempty" xml:"timeout_action_time,omitempty"` // 交易快照地址 SnapshotUrl string `json:"snapshot_url,omitempty" xml:"snapshot_url,omitempty"` // 交易备注。 TradeMemo string `json:"trade_memo,omitempty" xml:"trade_memo,omitempty"` // 交易促销详细信息 Promotion string `json:"promotion,omitempty" xml:"promotion,omitempty"` // 使用信用卡支付金额数 CreditCardFee string `json:"credit_card_fee,omitempty" xml:"credit_card_fee,omitempty"` // 分阶段付款的订单状态(例如万人团订单等),目前有四个返回状态FRONT_NOPAID_FINAL_NOPAID(定金未付尾款未付),FRONT_PAID_FINAL_NOPAID(定金已付尾款未付),FRONT_PAID_FINAL_PAID(定金和尾款都付),FRONT_PAID_FRONT_FORFEITED(预售定金罚没) StepTradeStatus string `json:"step_trade_status,omitempty" xml:"step_trade_status,omitempty"` // 分阶段付款的已付金额(万人团订单已付金额) StepPaidFee string `json:"step_paid_fee,omitempty" xml:"step_paid_fee,omitempty"` // 电子凭证的垂直信息 EticketExt string `json:"eticket_ext,omitempty" xml:"eticket_ext,omitempty"` // 订单出现异常问题的时候,给予用户的描述,没有异常的时候,此值为空 MarkDesc string `json:"mark_desc,omitempty" xml:"mark_desc,omitempty"` // 订单的运费险,单位为元 YfxFee string `json:"yfx_fee,omitempty" xml:"yfx_fee,omitempty"` // 运费险支付号 YfxId string `json:"yfx_id,omitempty" xml:"yfx_id,omitempty"` // 运费险类型 YfxType string `json:"yfx_type,omitempty" xml:"yfx_type,omitempty"` // 订单将在此时间前发出,主要用于预售订单 SendTime string `json:"send_time,omitempty" xml:"send_time,omitempty"` // 物流到货时效截单时间,格式 HH:mm ArriveCutTime string `json:"arrive_cut_time,omitempty" xml:"arrive_cut_time,omitempty"` // 导购宝=crm O2o string `json:"o2o,omitempty" xml:"o2o,omitempty"` // 导购员id O2oGuideId string `json:"o2o_guide_id,omitempty" xml:"o2o_guide_id,omitempty"` // 导购员名称 O2oGuideName string `json:"o2o_guide_name,omitempty" xml:"o2o_guide_name,omitempty"` // 导购员门店id O2oShopId string `json:"o2o_shop_id,omitempty" xml:"o2o_shop_id,omitempty"` // 导购门店名称 O2oShopName string `json:"o2o_shop_name,omitempty" xml:"o2o_shop_name,omitempty"` // 导购宝提货方式,inshop:店内提货,online:线上发货 O2oDelivery string `json:"o2o_delivery,omitempty" xml:"o2o_delivery,omitempty"` // 外部订单号 O2oOutTradeId string `json:"o2o_out_trade_id,omitempty" xml:"o2o_out_trade_id,omitempty"` // 线下自提门店编码 ShopCode string `json:"shop_code,omitempty" xml:"shop_code,omitempty"` // 拼音名 HkEnName string `json:"hk_en_name,omitempty" xml:"hk_en_name,omitempty"` // 航班号 HkFlightNo string `json:"hk_flight_no,omitempty" xml:"hk_flight_no,omitempty"` // 中文名 HkChinaName string `json:"hk_china_name,omitempty" xml:"hk_china_name,omitempty"` // 证件号码 HkCardCode string `json:"hk_card_code,omitempty" xml:"hk_card_code,omitempty"` // 证件类型001代表港澳通行证类型、002代表入台证003代表护照 HkCardType string `json:"hk_card_type,omitempty" xml:"hk_card_type,omitempty"` // 航班飞行时间 HkFlightDate string `json:"hk_flight_date,omitempty" xml:"hk_flight_date,omitempty"` // 性别M: 男性,F: 女性 HkGender string `json:"hk_gender,omitempty" xml:"hk_gender,omitempty"` // 出生日期 HkBirthday string `json:"hk_birthday,omitempty" xml:"hk_birthday,omitempty"` // 提货地点 HkPickup string `json:"hk_pickup,omitempty" xml:"hk_pickup,omitempty"` // 提货地点id HkPickupId string `json:"hk_pickup_id,omitempty" xml:"hk_pickup_id,omitempty"` // 商家的预计发货时间 EstConTime string `json:"est_con_time,omitempty" xml:"est_con_time,omitempty"` // 交易内部来源。WAP(手机);HITAO(嗨淘);TOP(TOP平台);TAOBAO(普通淘宝);JHS(聚划算)一笔订单可能同时有以上多个标记,则以逗号分隔 TradeFrom string `json:"trade_from,omitempty" xml:"trade_from,omitempty"` // 交易外部来源:ownshop(商家官网) TradeSource string `json:"trade_source,omitempty" xml:"trade_source,omitempty"` // 天猫国际官网直供主订单关税税费 OrderTaxFee string `json:"order_tax_fee,omitempty" xml:"order_tax_fee,omitempty"` // 天猫汽车服务预约时间 EtSerTime string `json:"et_ser_time,omitempty" xml:"et_ser_time,omitempty"` // 电子凭证预约门店地址 EtShopName string `json:"et_shop_name,omitempty" xml:"et_shop_name,omitempty"` // 电子凭证核销门店地址 EtVerifiedShopName string `json:"et_verified_shop_name,omitempty" xml:"et_verified_shop_name,omitempty"` // 车牌号码 EtPlateNumber string `json:"et_plate_number,omitempty" xml:"et_plate_number,omitempty"` // 抢单状态<br/>0,未处理待分发;1,抢单中;2,已抢单;3,已发货;-1,超时;-2,处理异常;-3,匹配失败;-4,取消抢单;-5,退款取消;-9,逻辑删除 O2oSnatchStatus string `json:"o2o_snatch_status,omitempty" xml:"o2o_snatch_status,omitempty"` // 天猫电子凭证家装 EticketServiceAddr string `json:"eticket_service_addr,omitempty" xml:"eticket_service_addr,omitempty"` // 电子凭证扫码购-扫码支付订单type EtType string `json:"et_type,omitempty" xml:"et_type,omitempty"` // 垂直市场 Market string `json:"market,omitempty" xml:"market,omitempty"` // 门店预约自提订单标 Obs string `json:"obs,omitempty" xml:"obs,omitempty"` // 满返红包的金额;如果没有满返红包,则值为 0.00 PaidCouponFee string `json:"paid_coupon_fee,omitempty" xml:"paid_coupon_fee,omitempty"` // 线下门店自提 ShopPick string `json:"shop_pick,omitempty" xml:"shop_pick,omitempty"` // 处方药审核状态 RxAuditStatus string `json:"rx_audit_status,omitempty" xml:"rx_audit_status,omitempty"` // yyyyMMdd EsDate string `json:"es_date,omitempty" xml:"es_date,omitempty"` // hh:mm-hh:mm EsRange string `json:"es_range,omitempty" xml:"es_range,omitempty"` // yyyyMMdd OsDate string `json:"os_date,omitempty" xml:"os_date,omitempty"` // hh:mm-hh:mm OsRange string `json:"os_range,omitempty" xml:"os_range,omitempty"` // 主订单扩展属性;payCurrency:HKD(港币)、TWD(台币) TradeAttr string `json:"trade_attr,omitempty" xml:"trade_attr,omitempty"` // 星盘标识字段 OmniAttr string `json:"omni_attr,omitempty" xml:"omni_attr,omitempty"` // 星盘业务字段 OmniParam string `json:"omni_param,omitempty" xml:"omni_param,omitempty"` // assembly Assembly string `json:"assembly,omitempty" xml:"assembly,omitempty"` // 采购订单标识 Identity string `json:"identity,omitempty" xml:"identity,omitempty"` // 组装O2O多阶段尾款订单的明细数据 总阶段数,当前阶数,阶段金额(单位:分),支付状态,例如 3_1_100_paid ; 3_2_2000_nopaid O2oStepTradeDetail string `json:"o2o_step_trade_detail,omitempty" xml:"o2o_step_trade_detail,omitempty"` // 特权定金订单的尾款订单ID O2oStepOrderId string `json:"o2o_step_order_id,omitempty" xml:"o2o_step_order_id,omitempty"` // 分阶段订单的特权定金订单ID O2oEtOrderId string `json:"o2o_et_order_id,omitempty" xml:"o2o_et_order_id,omitempty"` // 分阶段订单的特权定金抵扣金额,单位:分 O2oVoucherPrice string `json:"o2o_voucher_price,omitempty" xml:"o2o_voucher_price,omitempty"` // 天猫国际计税优惠金额 OrderTaxPromotionFee string `json:"order_tax_promotion_fee,omitempty" xml:"order_tax_promotion_fee,omitempty"` // tidStr TidStr string `json:"tid_str,omitempty" xml:"tid_str,omitempty"` // 包含的交易服务类型 ServiceType string `json:"service_type,omitempty" xml:"service_type,omitempty"` // o2oServiceMobile O2oServiceMobile string `json:"o2o_service_mobile,omitempty" xml:"o2o_service_mobile,omitempty"` // o2oServiceName O2oServiceName string `json:"o2o_service_name,omitempty" xml:"o2o_service_name,omitempty"` // o2oServiceState O2oServiceState string `json:"o2o_service_state,omitempty" xml:"o2o_service_state,omitempty"` // o2oServiceCity O2oServiceCity string `json:"o2o_service_city,omitempty" xml:"o2o_service_city,omitempty"` // o2oServiceDistrict O2oServiceDistrict string `json:"o2o_service_district,omitempty" xml:"o2o_service_district,omitempty"` // o2oServiceTown O2oServiceTown string `json:"o2o_service_town,omitempty" xml:"o2o_service_town,omitempty"` // o2oServiceAddress O2oServiceAddress string `json:"o2o_service_address,omitempty" xml:"o2o_service_address,omitempty"` // o2oStepTradeDetailNew O2oStepTradeDetailNew string `json:"o2o_step_trade_detail_new,omitempty" xml:"o2o_step_trade_detail_new,omitempty"` // o2oXiaopiao O2oXiaopiao string `json:"o2o_xiaopiao,omitempty" xml:"o2o_xiaopiao,omitempty"` // o2oContract O2oContract string `json:"o2o_contract,omitempty" xml:"o2o_contract,omitempty"` // rechargeFee RechargeFee string `json:"recharge_fee,omitempty" xml:"recharge_fee,omitempty"` // retailStoreCode RetailStoreCode string `json:"retail_store_code,omitempty" xml:"retail_store_code,omitempty"` // retailOutOrderId RetailOutOrderId string `json:"retail_out_order_id,omitempty" xml:"retail_out_order_id,omitempty"` // platformSubsidyFee PlatformSubsidyFee string `json:"platform_subsidy_fee,omitempty" xml:"platform_subsidy_fee,omitempty"` // nrOffline NrOffline string `json:"nr_offline,omitempty" xml:"nr_offline,omitempty"` // 网厅订单垂直表信息 WttParam string `json:"wtt_param,omitempty" xml:"wtt_param,omitempty"` // sellerNick SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"` // buyerNick BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"` // nrStoreOrderId NrStoreOrderId string `json:"nr_store_order_id,omitempty" xml:"nr_store_order_id,omitempty"` // 门店 ID NrShopId string `json:"nr_shop_id,omitempty" xml:"nr_shop_id,omitempty"` // 门店名称 NrShopName string `json:"nr_shop_name,omitempty" xml:"nr_shop_name,omitempty"` // 导购员ID NrShopGuideId string `json:"nr_shop_guide_id,omitempty" xml:"nr_shop_guide_id,omitempty"` // 导购员名称 NrShopGuideName string `json:"nr_shop_guide_name,omitempty" xml:"nr_shop_guide_name,omitempty"` // 一小时达不处理订单 NrNoHandle string `json:"nr_no_handle,omitempty" xml:"nr_no_handle,omitempty"` // 为tmall.daogoubao.cloudstore时表示云店链路 BizCode string `json:"biz_code,omitempty" xml:"biz_code,omitempty"` // 为1,且bizCode不为tmall.daogoubao.cloudstore时,为旗舰店订单 CloudStore string `json:"cloud_store,omitempty" xml:"cloud_store,omitempty"` // 暂不公开 DoneeNick string `json:"donee_nick,omitempty" xml:"donee_nick,omitempty"` // 暂不公开 DoneeOpenUid string `json:"donee_open_uid,omitempty" xml:"donee_open_uid,omitempty"` // 苏宁自提门店code SuningShopCode string `json:"suning_shop_code,omitempty" xml:"suning_shop_code,omitempty"` // 允许的appkey,逗号分隔 AllowAppkeys string `json:"allow_appkeys,omitempty" xml:"allow_appkeys,omitempty"` // 天猫未来店线下店铺 ID RetailStoreId string `json:"retail_store_id,omitempty" xml:"retail_store_id,omitempty"` // 区分istore订单来源 Ua string `json:"ua,omitempty" xml:"ua,omitempty"` // linkedmall透传参数 LinkedmallExtInfo string `json:"linkedmall_ext_info,omitempty" xml:"linkedmall_ext_info,omitempty"` // 支付渠道:0 用户主动支付 1 系统代扣 2 保险赔付 PayChannel string `json:"pay_channel,omitempty" xml:"pay_channel,omitempty"` // 新零售全渠道订单:订单类型,自提订单:pickUp,电商发货:tmall,门店发货(配送、骑手):storeSend RtOmniSendType string `json:"rt_omni_send_type,omitempty" xml:"rt_omni_send_type,omitempty"` // 新零售全渠道订单:发货门店ID RtOmniStoreId string `json:"rt_omni_store_id,omitempty" xml:"rt_omni_store_id,omitempty"` // 新零售全渠道订单:商家自有发货门店编码 RtOmniOuterStoreId string `json:"rt_omni_outer_store_id,omitempty" xml:"rt_omni_outer_store_id,omitempty"` // 同城预约配送开始时间 TcpsStart string `json:"tcps_start,omitempty" xml:"tcps_start,omitempty"` // 同城业务类型,com.tmall.dsd:定时送,storeDsd-fn-3-1:淘速达3公里蜂鸟配送 TcpsCode string `json:"tcps_code,omitempty" xml:"tcps_code,omitempty"` // 同城预约配送结束时间 TcpsEnd string `json:"tcps_end,omitempty" xml:"tcps_end,omitempty"` // 主订单商家代缴税费 MTariffFee string `json:"m_tariff_fee,omitempty" xml:"m_tariff_fee,omitempty"` // 时效服务身份,如tmallPromise代表天猫时效承诺 TimingPromise string `json:"timing_promise,omitempty" xml:"timing_promise,omitempty"` // 时效服务字段,服务字段,会有多个服务值,以英文半角逗号","切割 PromiseService string `json:"promise_service,omitempty" xml:"promise_service,omitempty"` // 物流截单时间,分钟 CutoffMinutes string `json:"cutoff_minutes,omitempty" xml:"cutoff_minutes,omitempty"` // 物流时效,相对时间,单位是天 EsTime string `json:"es_time,omitempty" xml:"es_time,omitempty"` // 最晚发货时间,日期 DeliveryTime string `json:"delivery_time,omitempty" xml:"delivery_time,omitempty"` // 最晚揽收时间,日期 CollectTime string `json:"collect_time,omitempty" xml:"collect_time,omitempty"` // 最晚派送时间,日期 DispatchTime string `json:"dispatch_time,omitempty" xml:"dispatch_time,omitempty"` // 最晚签收时间,日期 SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"` // 外部会员id OuterPartnerMemberId string `json:"outer_partner_member_id,omitempty" xml:"outer_partner_member_id,omitempty"` // 叶子分类 RootCat string `json:"root_cat,omitempty" xml:"root_cat,omitempty"` // 1-gifting订单 Gifting string `json:"gifting,omitempty" xml:"gifting,omitempty"` // 1-coffee gifting订单 GiftingTakeout string `json:"gifting_takeout,omitempty" xml:"gifting_takeout,omitempty"` // 预约安装时间 OiDate string `json:"oi_date,omitempty" xml:"oi_date,omitempty"` // 预约安装时间段 OiRange string `json:"oi_range,omitempty" xml:"oi_range,omitempty"` // 暂不安装 HoldInstall string `json:"hold_install,omitempty" xml:"hold_install,omitempty"` // 订单来源 AppName string `json:"app_name,omitempty" xml:"app_name,omitempty"` // 同城站类型 EasyHomeCityType string `json:"easy_home_city_type,omitempty" xml:"easy_home_city_type,omitempty"` // 同城站关联订单号 NrDepositOrderId string `json:"nr_deposit_order_id,omitempty" xml:"nr_deposit_order_id,omitempty"` // 摊位id NrStoreCode string `json:"nr_store_code,omitempty" xml:"nr_store_code,omitempty"` // 使用淘金币的数量,以分为单位,和订单标propoint中间那一段一样,没有返回null Propoint string `json:"propoint,omitempty" xml:"propoint,omitempty"` // 是否周期送订单 ZqsOrderTag string `json:"zqs_order_tag,omitempty" xml:"zqs_order_tag,omitempty"` // 天鲜配冰柜id TxpFreezerId string `json:"txp_freezer_id,omitempty" xml:"txp_freezer_id,omitempty"` // 天鲜配自提方式 TxpReceiveMethod string `json:"txp_receive_method,omitempty" xml:"txp_receive_method,omitempty"` // 透出的额外信息 ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"` // 收货地址有变更,返回"1" Lm string `json:"lm,omitempty" xml:"lm,omitempty"` // 同城购订单来源 BrandLightShopSource string `json:"brand_light_shop_source,omitempty" xml:"brand_light_shop_source,omitempty"` // 同城购渠道店id BrandLightShopStoreId string `json:"brand_light_shop_store_id,omitempty" xml:"brand_light_shop_store_id,omitempty"` // 标识完美履约订单 IsWmly string `json:"is_wmly,omitempty" xml:"is_wmly,omitempty"` // 全渠道包裹信息 OmniPackage string `json:"omni_package,omitempty" xml:"omni_package,omitempty"` // 新康众扩展数据 NczExtAttr string `json:"ncz_ext_attr,omitempty" xml:"ncz_ext_attr,omitempty"` // 苹果发票详情 InvoiceDetailPay string `json:"invoice_detail_pay,omitempty" xml:"invoice_detail_pay,omitempty"` // 苹果发票详情 InvoiceDetailMidRefund string `json:"invoice_detail_mid_refund,omitempty" xml:"invoice_detail_mid_refund,omitempty"` // 苹果发票详情 InvoiceDetailAfterRefund string `json:"invoice_detail_after_refund,omitempty" xml:"invoice_detail_after_refund,omitempty"` // 买卡订单本金 ExpandCardBasicPrice string `json:"expand_card_basic_price,omitempty" xml:"expand_card_basic_price,omitempty"` // 买卡订单权益金 ExpandCardExpandPrice string `json:"expand_card_expand_price,omitempty" xml:"expand_card_expand_price,omitempty"` // 用卡订单所用的本金 ExpandCardBasicPriceUsed string `json:"expand_card_basic_price_used,omitempty" xml:"expand_card_basic_price_used,omitempty"` // 用卡订单所用的权益金 ExpandCardExpandPriceUsed string `json:"expand_card_expand_price_used,omitempty" xml:"expand_card_expand_price_used,omitempty"` // 配送cp DeliveryCps string `json:"delivery_cps,omitempty" xml:"delivery_cps,omitempty"` // 业务身份 AsdpBizType string `json:"asdp_biz_type,omitempty" xml:"asdp_biz_type,omitempty"` // 关联下单订单 OrderFollowId string `json:"order_follow_id,omitempty" xml:"order_follow_id,omitempty"` // 送货上门标 AsdpAds string `json:"asdp_ads,omitempty" xml:"asdp_ads,omitempty"` // 消费者催发货标识,lg表示消费者做过催发货 ObTag string `json:"ob_tag,omitempty" xml:"ob_tag,omitempty"` // 是否疫情登记的订单。0=未登记,1=已登记 DrugRegister string `json:"drug_register,omitempty" xml:"drug_register,omitempty"` // 阶段收货地址标识字段 StageAddressType string `json:"stage_address_type,omitempty" xml:"stage_address_type,omitempty"` // 订单分组ID OgId string `json:"og_id,omitempty" xml:"og_id,omitempty"` // 承诺/最晚送达时间 PromiseSignTime string `json:"promise_sign_time,omitempty" xml:"promise_sign_time,omitempty"` // 全渠道订单相关字段 OmnichannelParam string `json:"omnichannel_param,omitempty" xml:"omnichannel_param,omitempty"` // 入参fields字段必须包含receiver_name、receiver_address、created、receiver_mobile、receiver_phone 5个字段,否则无法生成oaid。 Oaid string `json:"oaid,omitempty" xml:"oaid,omitempty"` // 淘鲜达生鲜半日达 ScenarioGroup string `json:"scenario_group,omitempty" xml:"scenario_group,omitempty"` // 拼团玩法垂直标 PlayType string `json:"play_type,omitempty" xml:"play_type,omitempty"` // 优先发货时间 PriorityConsignTime string `json:"priority_consign_time,omitempty" xml:"priority_consign_time,omitempty"` // 天猫国际实名认证状态,1:实名完成 0:实名未完成 RealNameAuthStatus string `json:"real_name_auth_status,omitempty" xml:"real_name_auth_status,omitempty"` // 天猫国际第三方报关标识,1:第三方报关 0:非第三方报关 ThirdPartyCustomsDeclaration string `json:"third_party_customs_declaration,omitempty" xml:"third_party_customs_declaration,omitempty"` // 补差类型,ITEM:商品补差 POSTAGE:邮费补差 OTHER:其他补差 ReceiptType string `json:"receipt_type,omitempty" xml:"receipt_type,omitempty"` // 同步到卖家库的时间,taobao.trades.sold.incrementv.get接口返回此字段 AsyncModified string `json:"async_modified,omitempty" xml:"async_modified,omitempty"` // 卡易售垂直表信息,去除下单ip之后的结果 NutFeature string `json:"nut_feature,omitempty" xml:"nut_feature,omitempty"` // 次日达,三日达等送达类型 LgAgingType string `json:"lg_aging_type,omitempty" xml:"lg_aging_type,omitempty"` // 次日达订单送达时间 LgAging string `json:"lg_aging,omitempty" xml:"lg_aging,omitempty"` // 天猫直送服务 CnService string `json:"cn_service,omitempty" xml:"cn_service,omitempty"` // 地址aid字段 Aid string `json:"aid,omitempty" xml:"aid,omitempty"` // 交易编号 (父订单的交易编号) Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` // 商品数字编号 NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"` // 商品购买数量。取值范围:大于零的整数,对于一个trade对应多个order的时候(一笔主订单,对应多笔子订单),num=0,num是一个跟商品关联的属性,一笔订单对应多比子订单的时候,主订单上的num无意义。 Num int64 `json:"num,omitempty" xml:"num,omitempty"` // 买家使用积分,下单时生成,且一直不变。格式:100;单位:个. PointFee int64 `json:"point_fee,omitempty" xml:"point_fee,omitempty"` // 买家实际使用积分(扣除部分退款使用的积分),交易完成后生成(交易成功或关闭),交易未完成时该字段值为0。格式:100;单位:个 RealPointFee int64 `json:"real_point_fee,omitempty" xml:"real_point_fee,omitempty"` // 买家获得积分,返点的积分。格式:100;单位:个。返点的积分要交易成功之后才能获得。 BuyerObtainPointFee int64 `json:"buyer_obtain_point_fee,omitempty" xml:"buyer_obtain_point_fee,omitempty"` // 买家备注旗帜(与淘宝网上订单的买家备注旗帜对应,只有买家才能查看该字段)红、黄、绿、蓝、紫 分别对应 1、2、3、4、5 BuyerFlag int64 `json:"buyer_flag,omitempty" xml:"buyer_flag,omitempty"` // 卖家备注旗帜(与淘宝网上订单的卖家备注旗帜对应,只有卖家才能查看该字段)红、黄、绿、蓝、紫 分别对应 1、2、3、4、5 SellerFlag int64 `json:"seller_flag,omitempty" xml:"seller_flag,omitempty"` // 物流到货时效,单位天 ArriveInterval int64 `json:"arrive_interval,omitempty" xml:"arrive_interval,omitempty"` // 物流发货时效,单位小时 ConsignInterval int64 `json:"consign_interval,omitempty" xml:"consign_interval,omitempty"` // 付款时使用的支付宝积分的额度,单位分,比如返回1,则为1分钱 AlipayPoint int64 `json:"alipay_point,omitempty" xml:"alipay_point,omitempty"` // 天猫点券卡实付款金额,单位分 PccAf int64 `json:"pcc_af,omitempty" xml:"pcc_af,omitempty"` // 交易扩展表信息 TradeExt *TradeExt `json:"trade_ext,omitempty" xml:"trade_ext,omitempty"` // 扫码购关联门店 EtShopId int64 `json:"et_shop_id,omitempty" xml:"et_shop_id,omitempty"` // 100 CouponFee int64 `json:"coupon_fee,omitempty" xml:"coupon_fee,omitempty"` // TOP拦截标识,0不拦截,1拦截 TopHold int64 `json:"top_hold,omitempty" xml:"top_hold,omitempty"` // 聚划算一起买字段 ForbidConsign int64 `json:"forbid_consign,omitempty" xml:"forbid_consign,omitempty"` // 天猫拼团拦截标示 TeamBuyHold int64 `json:"team_buy_hold,omitempty" xml:"team_buy_hold,omitempty"` ShareGroupHold int64 `json:"share_group_hold,omitempty" xml:"share_group_hold,omitempty"` // 天猫国际拦截 OfpHold int64 `json:"ofp_hold,omitempty" xml:"ofp_hold,omitempty"` // 聚划算火拼标记 DelayCreateDelivery int64 `json:"delay_create_delivery,omitempty" xml:"delay_create_delivery,omitempty"` // top定义订单类型 Toptype int64 `json:"toptype,omitempty" xml:"toptype,omitempty"` // sortInfo SortInfo *SortInfo `json:"sort_info,omitempty" xml:"sort_info,omitempty"` // 1已排序 2不排序 Sorted int64 `json:"sorted,omitempty" xml:"sorted,omitempty"` // 苏宁自提门店是否有效 SuningShopValid int64 `json:"suning_shop_valid,omitempty" xml:"suning_shop_valid,omitempty"` // 购物金信息输出 ExpandcardInfo *ExpandCardInfo `json:"expandcard_info,omitempty" xml:"expandcard_info,omitempty"` // 天猫商家使用,订单使用的红包信息 TmallCouponFee int64 `json:"tmall_coupon_fee,omitempty" xml:"tmall_coupon_fee,omitempty"` // 三方鉴定信息 IdentifyInfo *IdentifyInfo `json:"identify_info,omitempty" xml:"identify_info,omitempty"` // 物流服务 LogisticsAgreement *LogisticsAgreement `json:"logistics_agreement,omitempty" xml:"logistics_agreement,omitempty"` // 买家的支付宝id号,在UIC中有记录,买家支付宝的唯一标示,不因为买家更换Email账号而改变。 AlipayId int64 `json:"alipay_id,omitempty" xml:"alipay_id,omitempty"` // 卖家是否已评价。可选值:true(已评价),false(未评价) SellerRate bool `json:"seller_rate,omitempty" xml:"seller_rate,omitempty"` // 买家是否已评价。可选值:true(已评价),false(未评价)。如买家只评价未打分,此字段仍返回false BuyerRate bool `json:"buyer_rate,omitempty" xml:"buyer_rate,omitempty"` // 是否包含邮费。与available_confirm_fee同时使用。可选值:true(包含),false(不包含) HasPostFee bool `json:"has_post_fee,omitempty" xml:"has_post_fee,omitempty"` // 是否3D交易 Is3d bool `json:"is_3D,omitempty" xml:"is_3D,omitempty"` // 是否保障速递,如果为true,则为保障速递订单,使用线下联系发货接口发货,如果未false,则该订单非保障速递,根据卖家设置的订单流转规则可使用物流宝或者常规物流发货。 IsLgtype bool `json:"is_lgtype,omitempty" xml:"is_lgtype,omitempty"` // 表示是否是品牌特卖(常规特卖,不包括特卖惠和特实惠)订单,如果是返回true,如果不是返回false。当此字段与is_force_wlb均为true时,订单强制物流宝发货。 IsBrandSale bool `json:"is_brand_sale,omitempty" xml:"is_brand_sale,omitempty"` // 订单是否强制使用物流宝发货。当此字段与is_brand_sale均为true时,订单强制物流宝发货。此字段为false时,该订单根据流转规则设置可以使用物流宝或者常规方式发货 IsForceWlb bool `json:"is_force_wlb,omitempty" xml:"is_force_wlb,omitempty"` // 订单中是否包含运费险订单,如果包含运费险订单返回true,不包含运费险订单,返回false HasYfx bool `json:"has_yfx,omitempty" xml:"has_yfx,omitempty"` // 买家可以通过此字段查询是否当前交易可以评论,can_rate=true可以评价,false则不能评价。 CanRate bool `json:"can_rate,omitempty" xml:"can_rate,omitempty"` // 卖家是否可以对订单进行评价 SellerCanRate bool `json:"seller_can_rate,omitempty" xml:"seller_can_rate,omitempty"` // 是否是多次发货的订单如果卖家对订单进行多次发货,则为true否则为false IsPartConsign bool `json:"is_part_consign,omitempty" xml:"is_part_consign,omitempty"` // 表示订单交易是否含有对应的代销采购单。如果该订单中存在一个对应的代销采购单,那么该值为true;反之,该值为false。 IsDaixiao bool `json:"is_daixiao,omitempty" xml:"is_daixiao,omitempty"` // 表示订单交易是否网厅订单。 如果该订单是网厅订单,那么该值为true;反之,该值为false。 IsWt bool `json:"is_wt,omitempty" xml:"is_wt,omitempty"` // 在返回的trade对象上专门增加一个字段zero_purchase来区分,这个为true的就是0元购机预授权交易 ZeroPurchase bool `json:"zero_purchase,omitempty" xml:"zero_purchase,omitempty"` // 是否屏蔽发货 IsShShip bool `json:"is_sh_ship,omitempty" xml:"is_sh_ship,omitempty"` // 邮关订单 PostGateDeclare bool `json:"post_gate_declare,omitempty" xml:"post_gate_declare,omitempty"` // 跨境订单 CrossBondedDeclare bool `json:"cross_bonded_declare,omitempty" xml:"cross_bonded_declare,omitempty"` // 暂不公开 IsGift bool `json:"is_gift,omitempty" xml:"is_gift,omitempty"` // 是否预售 NewPresell bool `json:"new_presell,omitempty" xml:"new_presell,omitempty"` // 是否优享 YouXiang bool `json:"you_xiang,omitempty" xml:"you_xiang,omitempty"` // 区分istore订单和普通订单 IsIstore bool `json:"is_istore,omitempty" xml:"is_istore,omitempty"` // 是否是Openmall订单 IsOpenmall bool `json:"is_openmall,omitempty" xml:"is_openmall,omitempty"` // 是否是码上收订单 VLogisticsCreate bool `json:"v_logistics_create,omitempty" xml:"v_logistics_create,omitempty"` // 是否是非物流订单 QRPay bool `json:"q_r_pay,omitempty" xml:"q_r_pay,omitempty"` // 通用的是否预售,默认是false,需要传general_new_presell参数才能真正识别是否是预售订单 GeneralNewPresell bool `json:"general_new_presell,omitempty" xml:"general_new_presell,omitempty"` // 是否是周期购订单 IsCycleBuy bool `json:"is_cycle_buy,omitempty" xml:"is_cycle_buy,omitempty"` // ascp会自动流转到菜鸟仓发货 IsForceDc bool `json:"is_force_dc,omitempty" xml:"is_force_dc,omitempty"` // 判断订单是否有买家留言,有买家留言返回true,否则返回false HasBuyerMessage bool `json:"has_buyer_message,omitempty" xml:"has_buyer_message,omitempty"` // 是否是智慧门店订单,只有true,或者 null 两种情况 IsO2oPassport bool `json:"is_o2o_passport,omitempty" xml:"is_o2o_passport,omitempty"` // tmallDelivery TmallDelivery bool `json:"tmall_delivery,omitempty" xml:"tmall_delivery,omitempty"` // threeplTiming ThreeplTiming bool `json:"threepl_timing,omitempty" xml:"threepl_timing,omitempty"` // 无物流信息返回true,平台属性,业务不要依赖 NoShipping bool `json:"no_shipping,omitempty" xml:"no_shipping,omitempty"` }
Trade 结构体
type TradeAmount ¶
type TradeAmount struct { // 子订单的帐务金额详情列表 OrderAmounts []OrderAmount `json:"order_amounts,omitempty" xml:"order_amounts>order_amount,omitempty"` // 主交易订单的系统级优惠详情 PromotionDetails []PromotionDetail `json:"promotion_details,omitempty" xml:"promotion_details>promotion_detail,omitempty"` // 支付宝交易号,如:2009112081173831 AlipayNo string `json:"alipay_no,omitempty" xml:"alipay_no,omitempty"` // 交易创建时间 Created string `json:"created,omitempty" xml:"created,omitempty"` // 付款时间。格式:yyyy-MM-dd HH:mm:ss PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"` // 交易成功时间(更新交易状态为成功的同时更新)/确认收货时间。格式:yyyy-MM-dd HH:mm:ss EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"` // 主订单的商品金额(各子订单中商品price * num的和,不包括任何优惠信息)。精确到2位小数;单位:元。如:200.07,表示:200元7分 TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"` // 邮费。精确到2位小数;单位:元。如:200.07,表示:200元7分。目前只提供整笔交易的邮费,暂不提供各子订单的邮费 PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"` // 货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分 CodFee string `json:"cod_fee,omitempty" xml:"cod_fee,omitempty"` // 买家货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分 BuyerCodFee string `json:"buyer_cod_fee,omitempty" xml:"buyer_cod_fee,omitempty"` // 卖家货到付款服务费。精确到2位小数;单位:元。如:12.07,表示:12元7分 SellerCodFee string `json:"seller_cod_fee,omitempty" xml:"seller_cod_fee,omitempty"` // 快递代收款。精确到2位小数;单位:元。如:212.07,表示:212元7分 ExpressAgencyFee string `json:"express_agency_fee,omitempty" xml:"express_agency_fee,omitempty"` // 主订单实付金额。精确到2位小数;单位:元。如:200.07,表示:200元7分,计算公式如下:如果主订单只有一笔子订单 payment = 子订单的实付金额 + 货到付款服务费(如果是货到付款订单) - 主订单的系统级优惠;如果主订单有多笔子订单 payment = 各子订单的实付金额之和 + 货到付款服务费(如果是货到付款订单) + 邮费 - 主订单的系统级优惠 Payment string `json:"payment,omitempty" xml:"payment,omitempty"` // 交易佣金。精确到2位小数;单位:元。如:200.07,表示:200元7分 CommissionFee string `json:"commission_fee,omitempty" xml:"commission_fee,omitempty"` // 买家获得积分,返点的积分。格式:100;单位:个 BuyerObtainPointFee string `json:"buyer_obtain_point_fee,omitempty" xml:"buyer_obtain_point_fee,omitempty"` // 交易主订单编号 Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"` }
TradeAmount 结构体
type TradeConfirmFee ¶
type TradeConfirmFee struct { // 确认收货的金额(不包含邮费)。精确到2位小数;单位:元。如:200.07,表示:200元7分 ConfirmFee string `json:"confirm_fee,omitempty" xml:"confirm_fee,omitempty"` // 需确认收货的邮费,当不是最后一笔收货或者没有邮费时是0.00。精确到2位小数;单位:元。如:200.07,表示:200元7分 ConfirmPostFee string `json:"confirm_post_fee,omitempty" xml:"confirm_post_fee,omitempty"` // 是否是最后一笔订单(只对子订单有效,当其他子订单都是交易完成时,返回true,否则false) IsLastOrder bool `json:"is_last_order,omitempty" xml:"is_last_order,omitempty"` }
TradeConfirmFee 结构体
type TradeExt ¶
type TradeExt struct { // 第三方个性化数据 ExtraData string `json:"extra_data,omitempty" xml:"extra_data,omitempty"` // attributes标记 ExtAttributes string `json:"ext_attributes,omitempty" xml:"ext_attributes,omitempty"` // enable前扩展标识位 BeforeEnableFlag int64 `json:"before_enable_flag,omitempty" xml:"before_enable_flag,omitempty"` // 关闭订单前扩展标识位 BeforeCloseFlag int64 `json:"before_close_flag,omitempty" xml:"before_close_flag,omitempty"` // 付款前扩展标识位 BeforePayFlag int64 `json:"before_pay_flag,omitempty" xml:"before_pay_flag,omitempty"` // 发货前扩展标识位 BeforeShipFlag int64 `json:"before_ship_flag,omitempty" xml:"before_ship_flag,omitempty"` // 确认收货前扩展标识位 BeforeConfirmFlag int64 `json:"before_confirm_flag,omitempty" xml:"before_confirm_flag,omitempty"` // 评价前扩展标识位 BeforeRateFlag int64 `json:"before_rate_flag,omitempty" xml:"before_rate_flag,omitempty"` // 退款前扩展标识位 BeforeRefundFlag int64 `json:"before_refund_flag,omitempty" xml:"before_refund_flag,omitempty"` // 修改前扩展标识位 BeforeModifyFlag int64 `json:"before_modify_flag,omitempty" xml:"before_modify_flag,omitempty"` // 第三方状态,第三方自由定义 ThirdPartyStatus int64 `json:"third_party_status,omitempty" xml:"third_party_status,omitempty"` }
TradeExt 结构体
Source Files ¶
- AddressDetail.go
- AgreeRefundCheck.go
- AppBillQueryRequest.go
- AssembleOrder.go
- BillDetailInfo.go
- CombineConsignInfo.go
- CombineLogisticsDetail.go
- CombineSubItemDo.go
- DeliveryPlan.go
- ExpandCardInfo.go
- IdentifyInfo.go
- IdentifyLogisticsInfo.go
- IdentifyServiceInfo.go
- LogisticServiceTag.go
- LogisticsAgreement.go
- LogisticsConsignInfo.go
- LogisticsInfo.go
- LogisticsModifyInfo.go
- LogisticsTag.go
- Order.go
- OrderAmount.go
- OrderAssembleResponse.go
- OrderGroup.go
- OrderGroupResponse.go
- OrderMerge.go
- OrderQuery.go
- PackageGoodsDetail.go
- PromotionDetail.go
- Receiver.go
- ReceiverQuery.go
- SecretNo.go
- SecretNoExtendRequest.go
- SellerBillQueryRequest.go
- SendGoodsDetail.go
- ServiceOrder.go
- ShipInfo.go
- SortInfo.go
- StepPayDetail.go
- TaobaoFulfillmentOrderAssembleAPIRequest.go
- TaobaoFulfillmentOrderAssembleAPIResponse.go
- TaobaoTopOaidClientDecryptAPIRequest.go
- TaobaoTopOaidClientDecryptAPIResponse.go
- TaobaoTopOaidDecryptAPIRequest.go
- TaobaoTopOaidDecryptAPIResponse.go
- TaobaoTopOaidMergeAPIRequest.go
- TaobaoTopOaidMergeAPIResponse.go
- TaobaoTopOnceTokenGetAPIRequest.go
- TaobaoTopOnceTokenGetAPIResponse.go
- TaobaoTopSecretAppkeyBillDetailAPIRequest.go
- TaobaoTopSecretAppkeyBillDetailAPIResponse.go
- TaobaoTopSecretBillDetailAPIRequest.go
- TaobaoTopSecretBillDetailAPIResponse.go
- TaobaoTopSecretExtendAPIRequest.go
- TaobaoTopSecretExtendAPIResponse.go
- TaobaoTradeAmountGetAPIRequest.go
- TaobaoTradeAmountGetAPIResponse.go
- TaobaoTradeCloseAPIRequest.go
- TaobaoTradeCloseAPIResponse.go
- TaobaoTradeConfirmfeeGetAPIRequest.go
- TaobaoTradeConfirmfeeGetAPIResponse.go
- TaobaoTradeFullinfoGetAPIRequest.go
- TaobaoTradeFullinfoGetAPIResponse.go
- TaobaoTradeInvoiceAmountGetAPIRequest.go
- TaobaoTradeInvoiceAmountGetAPIResponse.go
- TaobaoTradeMemoAddAPIRequest.go
- TaobaoTradeMemoAddAPIResponse.go
- TaobaoTradeMemoUpdateAPIRequest.go
- TaobaoTradeMemoUpdateAPIResponse.go
- TaobaoTradeOrderskuUpdateAPIRequest.go
- TaobaoTradeOrderskuUpdateAPIResponse.go
- TaobaoTradePostageUpdateAPIRequest.go
- TaobaoTradePostageUpdateAPIResponse.go
- TaobaoTradeReceivetimeDelayAPIRequest.go
- TaobaoTradeReceivetimeDelayAPIResponse.go
- TaobaoTradeShippingaddressUpdateAPIRequest.go
- TaobaoTradeShippingaddressUpdateAPIResponse.go
- TaobaoTradesSoldGetAPIRequest.go
- TaobaoTradesSoldGetAPIResponse.go
- TaobaoTradesSoldIncrementGetAPIRequest.go
- TaobaoTradesSoldIncrementGetAPIResponse.go
- TaobaoTradesSoldIncrementvGetAPIRequest.go
- TaobaoTradesSoldIncrementvGetAPIResponse.go
- TaobaoTradesSoldQueryAPIRequest.go
- TaobaoTradesSoldQueryAPIResponse.go
- Trade.go
- TradeAmount.go
- TradeConfirmFee.go
- TradeExt.go
- doc.go