trade

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package trade 包含交易API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvertiseInfoDto added in v1.2.9

type AdvertiseInfoDto struct {
	// 信息流投放转换追踪标识
	ConversionTracking string `json:"conversion_tracking,omitempty" xml:"conversion_tracking,omitempty"`
	// 信息流投放广告账户id
	AdvertiserId string `json:"advertiser_id,omitempty" xml:"advertiser_id,omitempty"`
}

AdvertiseInfoDto 结构体

type AdvertiseInfoQuery added in v1.2.9

type AdvertiseInfoQuery struct {
	// 用户id
	OpenId string `json:"open_id,omitempty" xml:"open_id,omitempty"`
	// 订单id
	OrderId int64 `json:"order_id,omitempty" xml:"order_id,omitempty"`
}

AdvertiseInfoQuery 结构体

type AlibabaalicomtradeadvertiseinfogetAPIRequest added in v1.3.1

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

AlibabaalicomtradeadvertiseinfogetAPIRequest 获取订单上的在信息流投放信息 API请求 alibaba.alicom.trade.advertiseinfo.get

获取订单上的在信息流投放信息

func NewAlibabaalicomtradeadvertiseinfogetRequest added in v1.3.1

func NewAlibabaalicomtradeadvertiseinfogetRequest() *AlibabaalicomtradeadvertiseinfogetAPIRequest

NewAlibabaalicomtradeadvertiseinfogetRequest 初始化AlibabaalicomtradeadvertiseinfogetAPIRequest对象

func (AlibabaalicomtradeadvertiseinfogetAPIRequest) GetAdvertiseInfoQuery added in v1.3.1

GetAdvertiseInfoQuery AdvertiseInfoQuery Getter

func (AlibabaalicomtradeadvertiseinfogetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaalicomtradeadvertiseinfogetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaalicomtradeadvertiseinfogetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabaalicomtradeadvertiseinfogetAPIRequest) SetAdvertiseInfoQuery added in v1.3.1

func (r *AlibabaalicomtradeadvertiseinfogetAPIRequest) SetAdvertiseInfoQuery(_advertiseInfoQuery *AdvertiseInfoQuery) error

SetAdvertiseInfoQuery is AdvertiseInfoQuery Setter 入参

type AlibabaalicomtradeadvertiseinfogetAPIResponse added in v1.3.1

type AlibabaalicomtradeadvertiseinfogetAPIResponse struct {
	model.CommonResponse
	AlibabaalicomtradeadvertiseinfogetAPIResponseModel
}

AlibabaalicomtradeadvertiseinfogetAPIResponse 获取订单上的在信息流投放信息 API返回值 alibaba.alicom.trade.advertiseinfo.get

获取订单上的在信息流投放信息

type AlibabaalicomtradeadvertiseinfogetAPIResponseModel added in v1.3.1

type AlibabaalicomtradeadvertiseinfogetAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_alicom_trade_advertiseinfo_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 信息投放广告信息
	Module *AdvertiseInfoDto `json:"module,omitempty" xml:"module,omitempty"`
}

AlibabaalicomtradeadvertiseinfogetAPIResponseModel is 获取订单上的在信息流投放信息 成功返回结果

type AlibabajymfulfillmentcardcallbackAPIRequest added in v1.3.1

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

AlibabajymfulfillmentcardcallbackAPIRequest 外部商家卡密结果回调 API请求 alibaba.jym.fulfillment.card.callback

外部商家卡密结果回调

func NewAlibabajymfulfillmentcardcallbackRequest added in v1.3.1

func NewAlibabajymfulfillmentcardcallbackRequest() *AlibabajymfulfillmentcardcallbackAPIRequest

NewAlibabajymfulfillmentcardcallbackRequest 初始化AlibabajymfulfillmentcardcallbackAPIRequest对象

func (AlibabajymfulfillmentcardcallbackAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabajymfulfillmentcardcallbackAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabajymfulfillmentcardcallbackAPIRequest) GetCardChargeCallbackRequestDto added in v1.3.1

GetCardChargeCallbackRequestDto CardChargeCallbackRequestDto Getter

func (AlibabajymfulfillmentcardcallbackAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabajymfulfillmentcardcallbackAPIRequest) SetCardChargeCallbackRequestDto added in v1.3.1

func (r *AlibabajymfulfillmentcardcallbackAPIRequest) SetCardChargeCallbackRequestDto(_cardChargeCallbackRequestDto *CardChargeCallbackRequestDto) error

SetCardChargeCallbackRequestDto is CardChargeCallbackRequestDto Setter 卡密类结果回调请求

type AlibabajymfulfillmentcardcallbackAPIResponse added in v1.3.1

type AlibabajymfulfillmentcardcallbackAPIResponse struct {
	model.CommonResponse
	AlibabajymfulfillmentcardcallbackAPIResponseModel
}

AlibabajymfulfillmentcardcallbackAPIResponse 外部商家卡密结果回调 API返回值 alibaba.jym.fulfillment.card.callback

外部商家卡密结果回调

type AlibabajymfulfillmentcardcallbackAPIResponseModel added in v1.3.1

type AlibabajymfulfillmentcardcallbackAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_fulfillment_card_callback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 失败错误码
	FailedCode string `json:"failed_code,omitempty" xml:"failed_code,omitempty"`
	// 失败原因描述
	FailedReason string `json:"failed_reason,omitempty" xml:"failed_reason,omitempty"`
	// 交易猫订单是否成功,true-成功,false-失败
	JymOrderSuccess string `json:"jym_order_success,omitempty" xml:"jym_order_success,omitempty"`
}

AlibabajymfulfillmentcardcallbackAPIResponseModel is 外部商家卡密结果回调 成功返回结果

type AlibabajymfulfillmentioschargecallbackAPIRequest added in v1.3.1

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

AlibabajymfulfillmentioschargecallbackAPIRequest 代充充值回调 API请求 alibaba.jym.fulfillment.ioscharge.callback

代充充值回调

func NewAlibabajymfulfillmentioschargecallbackRequest added in v1.3.1

func NewAlibabajymfulfillmentioschargecallbackRequest() *AlibabajymfulfillmentioschargecallbackAPIRequest

NewAlibabajymfulfillmentioschargecallbackRequest 初始化AlibabajymfulfillmentioschargecallbackAPIRequest对象

func (AlibabajymfulfillmentioschargecallbackAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabajymfulfillmentioschargecallbackAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabajymfulfillmentioschargecallbackAPIRequest) GetIosChargeCallbackRequestDto added in v1.3.1

GetIosChargeCallbackRequestDto IosChargeCallbackRequestDto Getter

func (AlibabajymfulfillmentioschargecallbackAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabajymfulfillmentioschargecallbackAPIRequest) SetIosChargeCallbackRequestDto added in v1.3.1

func (r *AlibabajymfulfillmentioschargecallbackAPIRequest) SetIosChargeCallbackRequestDto(_iosChargeCallbackRequestDto *IoschargeCallbackRequestDto) error

SetIosChargeCallbackRequestDto is IosChargeCallbackRequestDto Setter 充值回调请求

type AlibabajymfulfillmentioschargecallbackAPIResponse added in v1.3.1

type AlibabajymfulfillmentioschargecallbackAPIResponse struct {
	model.CommonResponse
	AlibabajymfulfillmentioschargecallbackAPIResponseModel
}

AlibabajymfulfillmentioschargecallbackAPIResponse 代充充值回调 API返回值 alibaba.jym.fulfillment.ioscharge.callback

代充充值回调

type AlibabajymfulfillmentioschargecallbackAPIResponseModel added in v1.3.1

type AlibabajymfulfillmentioschargecallbackAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_jym_fulfillment_ioscharge_callback_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 失败错误码
	FailedCode string `json:"failed_code,omitempty" xml:"failed_code,omitempty"`
	// 交易猫订单是否成功,true-成功,false-失败
	JymOrderSuccess string `json:"jym_order_success,omitempty" xml:"jym_order_success,omitempty"`
	// 失败原因描述
	FailedReason string `json:"failed_reason,omitempty" xml:"failed_reason,omitempty"`
}

AlibabajymfulfillmentioschargecallbackAPIResponseModel is 代充充值回调 成功返回结果

type AlibabalstvastradeflowsaveAPIRequest added in v1.3.1

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

AlibabalstvastradeflowsaveAPIRequest 交易信息回流 API请求 alibaba.lst.vas.tradeflow.save

自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。

func NewAlibabalstvastradeflowsaveRequest added in v1.3.1

func NewAlibabalstvastradeflowsaveRequest() *AlibabalstvastradeflowsaveAPIRequest

NewAlibabalstvastradeflowsaveRequest 初始化AlibabalstvastradeflowsaveAPIRequest对象

func (AlibabalstvastradeflowsaveAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabalstvastradeflowsaveAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabalstvastradeflowsaveAPIRequest) GetApiParams added in v1.3.1

func (r AlibabalstvastradeflowsaveAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabalstvastradeflowsaveAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabalstvastradeflowsaveAPIRequest) GetTradeFlowModelList added in v1.3.1

func (r AlibabalstvastradeflowsaveAPIRequest) GetTradeFlowModelList() *TradeFlowModel

GetTradeFlowModelList TradeFlowModelList Getter

func (*AlibabalstvastradeflowsaveAPIRequest) SetTradeFlowModelList added in v1.3.1

func (r *AlibabalstvastradeflowsaveAPIRequest) SetTradeFlowModelList(_tradeFlowModelList *TradeFlowModel) error

SetTradeFlowModelList is TradeFlowModelList Setter 交易流水信息

type AlibabalstvastradeflowsaveAPIResponse added in v1.3.1

type AlibabalstvastradeflowsaveAPIResponse struct {
	model.CommonResponse
	AlibabalstvastradeflowsaveAPIResponseModel
}

AlibabalstvastradeflowsaveAPIResponse 交易信息回流 API返回值 alibaba.lst.vas.tradeflow.save

自动售货机交易信息同步接口,ISV通过此接口上传售货机交易信息。

type AlibabalstvastradeflowsaveAPIResponseModel added in v1.3.1

type AlibabalstvastradeflowsaveAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_lst_vas_tradeflow_save_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlibabalstvastradeflowsaveResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabalstvastradeflowsaveAPIResponseModel is 交易信息回流 成功返回结果

type AlibabalstvastradeflowsaveResult added in v1.3.1

type AlibabalstvastradeflowsaveResult struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// model
	Model bool `json:"model,omitempty" xml:"model,omitempty"`
}

AlibabalstvastradeflowsaveResult 结构体

type AlibabaomnisaasordercreateAPIRequest added in v1.3.1

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

AlibabaomnisaasordercreateAPIRequest 订单创建接口 API请求 alibaba.omni.saas.order.create

服务商利用现有的saas系统和阿里完成交易系统的对接

func NewAlibabaomnisaasordercreateRequest added in v1.3.1

func NewAlibabaomnisaasordercreateRequest() *AlibabaomnisaasordercreateAPIRequest

NewAlibabaomnisaasordercreateRequest 初始化AlibabaomnisaasordercreateAPIRequest对象

func (AlibabaomnisaasordercreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabaomnisaasordercreateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabaomnisaasordercreateAPIRequest) GetBuyerId added in v1.3.1

GetBuyerId BuyerId Getter

func (AlibabaomnisaasordercreateAPIRequest) GetBuyerIdType added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetBuyerIdType() string

GetBuyerIdType BuyerIdType Getter

func (AlibabaomnisaasordercreateAPIRequest) GetCouponInfos added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetCouponInfos() []CouponInfo

GetCouponInfos CouponInfos Getter

func (AlibabaomnisaasordercreateAPIRequest) GetDevice added in v1.3.1

GetDevice Device Getter

func (AlibabaomnisaasordercreateAPIRequest) GetDeviceNo added in v1.3.1

GetDeviceNo DeviceNo Getter

func (AlibabaomnisaasordercreateAPIRequest) GetGoodsDetails added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetGoodsDetails() []GoodsDetail

GetGoodsDetails GoodsDetails Getter

func (AlibabaomnisaasordercreateAPIRequest) GetOperatorId added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetOperatorId() string

GetOperatorId OperatorId Getter

func (AlibabaomnisaasordercreateAPIRequest) GetPayChannel added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetPayChannel() string

GetPayChannel PayChannel Getter

func (AlibabaomnisaasordercreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabaomnisaasordercreateAPIRequest) GetRequestNo added in v1.3.1

GetRequestNo RequestNo Getter

func (AlibabaomnisaasordercreateAPIRequest) GetStoreId added in v1.3.1

GetStoreId StoreId Getter

func (AlibabaomnisaasordercreateAPIRequest) GetStoreIdType added in v1.3.1

func (r AlibabaomnisaasordercreateAPIRequest) GetStoreIdType() string

GetStoreIdType StoreIdType Getter

func (*AlibabaomnisaasordercreateAPIRequest) SetBuyerId added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetBuyerId(_buyerId string) error

SetBuyerId is BuyerId Setter 买家标识,淘系用户或用户手机号。当支付渠道为支付宝时,此字段为淘宝会员码或支付宝付款码。(当前仅支持淘系用户,手机号下单稍后开放)

func (*AlibabaomnisaasordercreateAPIRequest) SetBuyerIdType added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetBuyerIdType(_buyerIdType string) error

SetBuyerIdType is BuyerIdType Setter ALIPAY:支付宝用户;TAOBAO:淘宝会员码;MOBILE:手机号

func (*AlibabaomnisaasordercreateAPIRequest) SetCouponInfos added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetCouponInfos(_couponInfos []CouponInfo) error

SetCouponInfos is CouponInfos Setter 商家自有优惠

func (*AlibabaomnisaasordercreateAPIRequest) SetDevice added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetDevice(_device string) error

SetDevice is Device Setter 收银设备类型

func (*AlibabaomnisaasordercreateAPIRequest) SetDeviceNo added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetDeviceNo(_deviceNo string) error

SetDeviceNo is DeviceNo Setter 收银设备号

func (*AlibabaomnisaasordercreateAPIRequest) SetGoodsDetails added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetGoodsDetails(_goodsDetails []GoodsDetail) error

SetGoodsDetails is GoodsDetails Setter 商品列表

func (*AlibabaomnisaasordercreateAPIRequest) SetOperatorId added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetOperatorId(_operatorId string) error

SetOperatorId is OperatorId Setter 收银员标识

func (*AlibabaomnisaasordercreateAPIRequest) SetPayChannel added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetPayChannel(_payChannel string) error

SetPayChannel is PayChannel Setter ALIPAY:支付宝付款;BANK_CARD:刷卡

func (*AlibabaomnisaasordercreateAPIRequest) SetRequestNo added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetRequestNo(_requestNo string) error

SetRequestNo is RequestNo Setter 请求号,用于标识一次请求

func (*AlibabaomnisaasordercreateAPIRequest) SetStoreId added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetStoreId(_storeId string) error

SetStoreId is StoreId Setter 门店ID

func (*AlibabaomnisaasordercreateAPIRequest) SetStoreIdType added in v1.3.1

func (r *AlibabaomnisaasordercreateAPIRequest) SetStoreIdType(_storeIdType string) error

SetStoreIdType is StoreIdType Setter PLACE:淘宝商户中心门店ID;CUSTOM:商户自有门店编码,需要维护到淘宝商户中心

type AlibabaomnisaasordercreateAPIResponse added in v1.3.1

type AlibabaomnisaasordercreateAPIResponse struct {
	model.CommonResponse
	AlibabaomnisaasordercreateAPIResponseModel
}

AlibabaomnisaasordercreateAPIResponse 订单创建接口 API返回值 alibaba.omni.saas.order.create

服务商利用现有的saas系统和阿里完成交易系统的对接

type AlibabaomnisaasordercreateAPIResponseModel added in v1.3.1

type AlibabaomnisaasordercreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_omni_saas_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// tradeNo
	TradeNo int64 `json:"trade_no,omitempty" xml:"trade_no,omitempty"`
	// totalAmount
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// actualPayFee
	ActualPayFee int64 `json:"actual_pay_fee,omitempty" xml:"actual_pay_fee,omitempty"`
}

AlibabaomnisaasordercreateAPIResponseModel is 订单创建接口 成功返回结果

type AlibabatradealiancecreateAPIRequest added in v1.3.1

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

AlibabatradealiancecreateAPIRequest 推客平台订单回流 API请求 alibaba.trade.aliance.create

推客平台订单回流

func NewAlibabatradealiancecreateRequest added in v1.3.1

func NewAlibabatradealiancecreateRequest() *AlibabatradealiancecreateAPIRequest

NewAlibabatradealiancecreateRequest 初始化AlibabatradealiancecreateAPIRequest对象

func (AlibabatradealiancecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabatradealiancecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabatradealiancecreateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabatradealiancecreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabatradealiancecreateAPIRequest) GetParamIsvCreateOrderParam added in v1.3.1

func (r AlibabatradealiancecreateAPIRequest) GetParamIsvCreateOrderParam() *IsvCreateOrderParam

GetParamIsvCreateOrderParam ParamIsvCreateOrderParam Getter

func (AlibabatradealiancecreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabatradealiancecreateAPIRequest) SetParamIsvCreateOrderParam added in v1.3.1

func (r *AlibabatradealiancecreateAPIRequest) SetParamIsvCreateOrderParam(_paramIsvCreateOrderParam *IsvCreateOrderParam) error

SetParamIsvCreateOrderParam is ParamIsvCreateOrderParam Setter 下单请求

type AlibabatradealiancecreateAPIResponse added in v1.3.1

type AlibabatradealiancecreateAPIResponse struct {
	model.CommonResponse
	AlibabatradealiancecreateAPIResponseModel
}

AlibabatradealiancecreateAPIResponse 推客平台订单回流 API返回值 alibaba.trade.aliance.create

推客平台订单回流

type AlibabatradealiancecreateAPIResponseModel added in v1.3.1

type AlibabatradealiancecreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_trade_aliance_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 订单创建结果
	Result *AlibabatradealiancecreateResultModel `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabatradealiancecreateAPIResponseModel is 推客平台订单回流 成功返回结果

type AlibabatradealiancecreateResultModel added in v1.3.1

type AlibabatradealiancecreateResultModel struct {
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 生成的订单号i
	MainOrderId string `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// totalAmount
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 是否创建成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlibabatradealiancecreateResultModel 结构体

type AlibabawdkpostradecloseAPIRequest added in v1.3.1

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

AlibabawdkpostradecloseAPIRequest 轻pos品牌营销关单接口 API请求 alibaba.wdk.pos.trade.close

轻pos品牌营销场景,提供关单接口给外部商家

func NewAlibabawdkpostradecloseRequest added in v1.3.1

func NewAlibabawdkpostradecloseRequest() *AlibabawdkpostradecloseAPIRequest

NewAlibabawdkpostradecloseRequest 初始化AlibabawdkpostradecloseAPIRequest对象

func (AlibabawdkpostradecloseAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkpostradecloseAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkpostradecloseAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdkpostradecloseAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkpostradecloseAPIRequest) GetCloseRequest added in v1.3.1

GetCloseRequest CloseRequest Getter

func (AlibabawdkpostradecloseAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdkpostradecloseAPIRequest) SetCloseRequest added in v1.3.1

func (r *AlibabawdkpostradecloseAPIRequest) SetCloseRequest(_closeRequest *FastBuyPosCloseRequest) error

SetCloseRequest is CloseRequest Setter 关单请求

type AlibabawdkpostradecloseAPIResponse added in v1.3.1

type AlibabawdkpostradecloseAPIResponse struct {
	model.CommonResponse
	AlibabawdkpostradecloseAPIResponseModel
}

AlibabawdkpostradecloseAPIResponse 轻pos品牌营销关单接口 API返回值 alibaba.wdk.pos.trade.close

轻pos品牌营销场景,提供关单接口给外部商家

type AlibabawdkpostradecloseAPIResponseModel added in v1.3.1

type AlibabawdkpostradecloseAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_pos_trade_close_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 关单结果
	Result *FastBuyPosCloseResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdkpostradecloseAPIResponseModel is 轻pos品牌营销关单接口 成功返回结果

type AlibabawdkpostradecreateAPIRequest added in v1.3.1

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

AlibabawdkpostradecreateAPIRequest 轻pos品牌营销下单接口 API请求 alibaba.wdk.pos.trade.create

提供给石基进行轻pos品牌营销下单

func NewAlibabawdkpostradecreateRequest added in v1.3.1

func NewAlibabawdkpostradecreateRequest() *AlibabawdkpostradecreateAPIRequest

NewAlibabawdkpostradecreateRequest 初始化AlibabawdkpostradecreateAPIRequest对象

func (AlibabawdkpostradecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkpostradecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkpostradecreateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdkpostradecreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkpostradecreateAPIRequest) GetCreateRequest added in v1.3.1

GetCreateRequest CreateRequest Getter

func (AlibabawdkpostradecreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdkpostradecreateAPIRequest) SetCreateRequest added in v1.3.1

func (r *AlibabawdkpostradecreateAPIRequest) SetCreateRequest(_createRequest *FastBuyPosCreateRequest) error

SetCreateRequest is CreateRequest Setter 下单请求

type AlibabawdkpostradecreateAPIResponse added in v1.3.1

type AlibabawdkpostradecreateAPIResponse struct {
	model.CommonResponse
	AlibabawdkpostradecreateAPIResponseModel
}

AlibabawdkpostradecreateAPIResponse 轻pos品牌营销下单接口 API返回值 alibaba.wdk.pos.trade.create

提供给石基进行轻pos品牌营销下单

type AlibabawdkpostradecreateAPIResponseModel added in v1.3.1

type AlibabawdkpostradecreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_pos_trade_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 创单结果
	Result *FastBuyPosCreateResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdkpostradecreateAPIResponseModel is 轻pos品牌营销下单接口 成功返回结果

type AlibabawdkpostradepayAPIRequest added in v1.3.1

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

AlibabawdkpostradepayAPIRequest 轻pos品牌营销支付接口 API请求 alibaba.wdk.pos.trade.pay

轻pos场景,外部商家支付后调用开放平台把支付信息回传给五道口交易

func NewAlibabawdkpostradepayRequest added in v1.3.1

func NewAlibabawdkpostradepayRequest() *AlibabawdkpostradepayAPIRequest

NewAlibabawdkpostradepayRequest 初始化AlibabawdkpostradepayAPIRequest对象

func (AlibabawdkpostradepayAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkpostradepayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkpostradepayAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdkpostradepayAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkpostradepayAPIRequest) GetPayRequest added in v1.3.1

GetPayRequest PayRequest Getter

func (AlibabawdkpostradepayAPIRequest) GetRawParams added in v1.3.1

func (r AlibabawdkpostradepayAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdkpostradepayAPIRequest) SetPayRequest added in v1.3.1

func (r *AlibabawdkpostradepayAPIRequest) SetPayRequest(_payRequest *FastBuyPosPayRequest) error

SetPayRequest is PayRequest Setter 支付请求

type AlibabawdkpostradepayAPIResponse added in v1.3.1

type AlibabawdkpostradepayAPIResponse struct {
	model.CommonResponse
	AlibabawdkpostradepayAPIResponseModel
}

AlibabawdkpostradepayAPIResponse 轻pos品牌营销支付接口 API返回值 alibaba.wdk.pos.trade.pay

轻pos场景,外部商家支付后调用开放平台把支付信息回传给五道口交易

type AlibabawdkpostradepayAPIResponseModel added in v1.3.1

type AlibabawdkpostradepayAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_pos_trade_pay_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 支付结果
	Result *FastBuyPosPayResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdkpostradepayAPIResponseModel is 轻pos品牌营销支付接口 成功返回结果

type AlibabawdkpostradequeryAPIRequest added in v1.3.1

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

AlibabawdkpostradequeryAPIRequest 轻pos品牌营销查询接口 API请求 alibaba.wdk.pos.trade.query

轻pos品牌营销场景,外部商家查询营销信息

func NewAlibabawdkpostradequeryRequest added in v1.3.1

func NewAlibabawdkpostradequeryRequest() *AlibabawdkpostradequeryAPIRequest

NewAlibabawdkpostradequeryRequest 初始化AlibabawdkpostradequeryAPIRequest对象

func (AlibabawdkpostradequeryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkpostradequeryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkpostradequeryAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdkpostradequeryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkpostradequeryAPIRequest) GetQueryRequest added in v1.3.1

GetQueryRequest QueryRequest Getter

func (AlibabawdkpostradequeryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdkpostradequeryAPIRequest) SetQueryRequest added in v1.3.1

func (r *AlibabawdkpostradequeryAPIRequest) SetQueryRequest(_queryRequest *FastBuyPosQueryRequest) error

SetQueryRequest is QueryRequest Setter 查询请求

type AlibabawdkpostradequeryAPIResponse added in v1.3.1

type AlibabawdkpostradequeryAPIResponse struct {
	model.CommonResponse
	AlibabawdkpostradequeryAPIResponseModel
}

AlibabawdkpostradequeryAPIResponse 轻pos品牌营销查询接口 API返回值 alibaba.wdk.pos.trade.query

轻pos品牌营销场景,外部商家查询营销信息

type AlibabawdkpostradequeryAPIResponseModel added in v1.3.1

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

AlibabawdkpostradequeryAPIResponseModel is 轻pos品牌营销查询接口 成功返回结果

type AlibabawdkpostradereverseAPIRequest added in v1.3.1

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

AlibabawdkpostradereverseAPIRequest 轻pos品牌营销退款接口 API请求 alibaba.wdk.pos.trade.reverse

轻pos品牌营销场景,商家调用退款接口

func NewAlibabawdkpostradereverseRequest added in v1.3.1

func NewAlibabawdkpostradereverseRequest() *AlibabawdkpostradereverseAPIRequest

NewAlibabawdkpostradereverseRequest 初始化AlibabawdkpostradereverseAPIRequest对象

func (AlibabawdkpostradereverseAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdkpostradereverseAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdkpostradereverseAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdkpostradereverseAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdkpostradereverseAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabawdkpostradereverseAPIRequest) GetReverseRequest added in v1.3.1

GetReverseRequest ReverseRequest Getter

func (*AlibabawdkpostradereverseAPIRequest) SetReverseRequest added in v1.3.1

func (r *AlibabawdkpostradereverseAPIRequest) SetReverseRequest(_reverseRequest *FastBuyPosReverseRequest) error

SetReverseRequest is ReverseRequest Setter 退款请求

type AlibabawdkpostradereverseAPIResponse added in v1.3.1

type AlibabawdkpostradereverseAPIResponse struct {
	model.CommonResponse
	AlibabawdkpostradereverseAPIResponseModel
}

AlibabawdkpostradereverseAPIResponse 轻pos品牌营销退款接口 API返回值 alibaba.wdk.pos.trade.reverse

轻pos品牌营销场景,商家调用退款接口

type AlibabawdkpostradereverseAPIResponseModel added in v1.3.1

type AlibabawdkpostradereverseAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_pos_trade_reverse_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 退款结果
	Result *FastBuyPosReverseResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdkpostradereverseAPIResponseModel is 轻pos品牌营销退款接口 成功返回结果

type AlibabawdktradediscountbillgetAPIRequest added in v1.3.1

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

AlibabawdktradediscountbillgetAPIRequest 订单优惠账单查询 API请求 alibaba.wdk.trade.discount.bill.get

商家查询订单优惠账单

func NewAlibabawdktradediscountbillgetRequest added in v1.3.1

func NewAlibabawdktradediscountbillgetRequest() *AlibabawdktradediscountbillgetAPIRequest

NewAlibabawdktradediscountbillgetRequest 初始化AlibabawdktradediscountbillgetAPIRequest对象

func (AlibabawdktradediscountbillgetAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktradediscountbillgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktradediscountbillgetAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktradediscountbillgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktradediscountbillgetAPIRequest) GetParam0 added in v1.3.1

GetParam0 Param0 Getter

func (AlibabawdktradediscountbillgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdktradediscountbillgetAPIRequest) SetParam0 added in v1.3.1

SetParam0 is Param0 Setter 请求参数

type AlibabawdktradediscountbillgetAPIResponse added in v1.3.1

type AlibabawdktradediscountbillgetAPIResponse struct {
	model.CommonResponse
	AlibabawdktradediscountbillgetAPIResponseModel
}

AlibabawdktradediscountbillgetAPIResponse 订单优惠账单查询 API返回值 alibaba.wdk.trade.discount.bill.get

商家查询订单优惠账单

type AlibabawdktradediscountbillgetAPIResponseModel added in v1.3.1

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

AlibabawdktradediscountbillgetAPIResponseModel is 订单优惠账单查询 成功返回结果

type AlibabawdktradeordercancelAPIRequest added in v1.3.1

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

AlibabawdktradeordercancelAPIRequest 外部交易订单取消接口 API请求 alibaba.wdk.trade.order.cancel

通过该接口可以再盒马取消交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

func NewAlibabawdktradeordercancelRequest added in v1.3.1

func NewAlibabawdktradeordercancelRequest() *AlibabawdktradeordercancelAPIRequest

NewAlibabawdktradeordercancelRequest 初始化AlibabawdktradeordercancelAPIRequest对象

func (AlibabawdktradeordercancelAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktradeordercancelAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktradeordercancelAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktradeordercancelAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktradeordercancelAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabawdktradeordercancelAPIRequest) GetTrade added in v1.3.1

GetTrade Trade Getter

func (*AlibabawdktradeordercancelAPIRequest) SetTrade added in v1.3.1

SetTrade is Trade Setter 待取消的订单

type AlibabawdktradeordercancelAPIResponse added in v1.3.1

type AlibabawdktradeordercancelAPIResponse struct {
	model.CommonResponse
	AlibabawdktradeordercancelAPIResponseModel
}

AlibabawdktradeordercancelAPIResponse 外部交易订单取消接口 API返回值 alibaba.wdk.trade.order.cancel

通过该接口可以再盒马取消交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

type AlibabawdktradeordercancelAPIResponseModel added in v1.3.1

type AlibabawdktradeordercancelAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_trade_order_cancel_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 执行结果
	Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdktradeordercancelAPIResponseModel is 外部交易订单取消接口 成功返回结果

type AlibabawdktradeordercreateAPIRequest added in v1.3.1

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

AlibabawdktradeordercreateAPIRequest 外部交易订单创单接口 API请求 alibaba.wdk.trade.order.create

通过该接口可以再盒马创建交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

func NewAlibabawdktradeordercreateRequest added in v1.3.1

func NewAlibabawdktradeordercreateRequest() *AlibabawdktradeordercreateAPIRequest

NewAlibabawdktradeordercreateRequest 初始化AlibabawdktradeordercreateAPIRequest对象

func (AlibabawdktradeordercreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktradeordercreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktradeordercreateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktradeordercreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktradeordercreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabawdktradeordercreateAPIRequest) GetTrade added in v1.3.1

GetTrade Trade Getter

func (*AlibabawdktradeordercreateAPIRequest) SetTrade added in v1.3.1

SetTrade is Trade Setter 待创建的订单

type AlibabawdktradeordercreateAPIResponse added in v1.3.1

type AlibabawdktradeordercreateAPIResponse struct {
	model.CommonResponse
	AlibabawdktradeordercreateAPIResponseModel
}

AlibabawdktradeordercreateAPIResponse 外部交易订单创单接口 API返回值 alibaba.wdk.trade.order.create

通过该接口可以再盒马创建交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

type AlibabawdktradeordercreateAPIResponseModel added in v1.3.1

type AlibabawdktradeordercreateAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_trade_order_create_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 执行结果
	Result *OrderResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdktradeordercreateAPIResponseModel is 外部交易订单创单接口 成功返回结果

type AlibabawdktradeorderqueryAPIRequest added in v1.3.1

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

AlibabawdktradeorderqueryAPIRequest 查询外部交易订单接口 API请求 alibaba.wdk.trade.order.query

通过该接口可以在盒马查询交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

func NewAlibabawdktradeorderqueryRequest added in v1.3.1

func NewAlibabawdktradeorderqueryRequest() *AlibabawdktradeorderqueryAPIRequest

NewAlibabawdktradeorderqueryRequest 初始化AlibabawdktradeorderqueryAPIRequest对象

func (AlibabawdktradeorderqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktradeorderqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktradeorderqueryAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktradeorderqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktradeorderqueryAPIRequest) GetQuery added in v1.3.1

GetQuery Query Getter

func (AlibabawdktradeorderqueryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdktradeorderqueryAPIRequest) SetQuery added in v1.3.1

SetQuery is Query Setter 订单查询

type AlibabawdktradeorderqueryAPIResponse added in v1.3.1

type AlibabawdktradeorderqueryAPIResponse struct {
	model.CommonResponse
	AlibabawdktradeorderqueryAPIResponseModel
}

AlibabawdktradeorderqueryAPIResponse 查询外部交易订单接口 API返回值 alibaba.wdk.trade.order.query

通过该接口可以在盒马查询交易订单,并处理相关业务流程。主要用于和外部商户的订单进行同步和融合业务流程处理

type AlibabawdktradeorderqueryAPIResponseModel added in v1.3.1

type AlibabawdktradeorderqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_trade_order_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果
	Result *TradeOrderQueryResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlibabawdktradeorderqueryAPIResponseModel is 查询外部交易订单接口 成功返回结果

type AlibabawdktraderefundcreateAPIRequest added in v1.3.1

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

AlibabawdktraderefundcreateAPIRequest 外部渠道逆向订单创建 API请求 alibaba.wdk.trade.refund.create

该接口是创建退货订单的服务。当外部渠道发起退款后,调用此接口可以完成五道口底层交易、履约、配送等一系列流程进行退货。

func NewAlibabawdktraderefundcreateRequest added in v1.3.1

func NewAlibabawdktraderefundcreateRequest() *AlibabawdktraderefundcreateAPIRequest

NewAlibabawdktraderefundcreateRequest 初始化AlibabawdktraderefundcreateAPIRequest对象

func (AlibabawdktraderefundcreateAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktraderefundcreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktraderefundcreateAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktraderefundcreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktraderefundcreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabawdktraderefundcreateAPIRequest) GetRefundGoodsCreateRequest added in v1.3.1

func (r AlibabawdktraderefundcreateAPIRequest) GetRefundGoodsCreateRequest() *RefundGoodsCreateRequest

GetRefundGoodsCreateRequest RefundGoodsCreateRequest Getter

func (*AlibabawdktraderefundcreateAPIRequest) SetRefundGoodsCreateRequest added in v1.3.1

func (r *AlibabawdktraderefundcreateAPIRequest) SetRefundGoodsCreateRequest(_refundGoodsCreateRequest *RefundGoodsCreateRequest) error

SetRefundGoodsCreateRequest is RefundGoodsCreateRequest Setter 退货请求

type AlibabawdktraderefundcreateAPIResponse added in v1.3.1

type AlibabawdktraderefundcreateAPIResponse struct {
	model.CommonResponse
	AlibabawdktraderefundcreateAPIResponseModel
}

AlibabawdktraderefundcreateAPIResponse 外部渠道逆向订单创建 API返回值 alibaba.wdk.trade.refund.create

该接口是创建退货订单的服务。当外部渠道发起退款后,调用此接口可以完成五道口底层交易、履约、配送等一系列流程进行退货。

type AlibabawdktraderefundcreateAPIResponseModel added in v1.3.1

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

AlibabawdktraderefundcreateAPIResponseModel is 外部渠道逆向订单创建 成功返回结果

type AlibabawdktraderefundinformAPIRequest added in v1.3.1

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

AlibabawdktraderefundinformAPIRequest 外部渠道通知淘鲜达退款成功接口 API请求 alibaba.wdk.trade.refund.inform

该接口用于外部渠道退款成功后,通知淘鲜达底层履约完成退款流程。

func NewAlibabawdktraderefundinformRequest added in v1.3.1

func NewAlibabawdktraderefundinformRequest() *AlibabawdktraderefundinformAPIRequest

NewAlibabawdktraderefundinformRequest 初始化AlibabawdktraderefundinformAPIRequest对象

func (AlibabawdktraderefundinformAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktraderefundinformAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktraderefundinformAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktraderefundinformAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktraderefundinformAPIRequest) GetInformRefundSuccessRequest added in v1.3.1

func (r AlibabawdktraderefundinformAPIRequest) GetInformRefundSuccessRequest() *InformRefundSuccessRequest

GetInformRefundSuccessRequest InformRefundSuccessRequest Getter

func (AlibabawdktraderefundinformAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlibabawdktraderefundinformAPIRequest) SetInformRefundSuccessRequest added in v1.3.1

func (r *AlibabawdktraderefundinformAPIRequest) SetInformRefundSuccessRequest(_informRefundSuccessRequest *InformRefundSuccessRequest) error

SetInformRefundSuccessRequest is InformRefundSuccessRequest Setter 通知退款成功请求

type AlibabawdktraderefundinformAPIResponse added in v1.3.1

type AlibabawdktraderefundinformAPIResponse struct {
	model.CommonResponse
	AlibabawdktraderefundinformAPIResponseModel
}

AlibabawdktraderefundinformAPIResponse 外部渠道通知淘鲜达退款成功接口 API返回值 alibaba.wdk.trade.refund.inform

该接口用于外部渠道退款成功后,通知淘鲜达底层履约完成退款流程。

type AlibabawdktraderefundinformAPIResponseModel added in v1.3.1

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

AlibabawdktraderefundinformAPIResponseModel is 外部渠道通知淘鲜达退款成功接口 成功返回结果

type AlibabawdktraderefundqueryAPIRequest added in v1.3.1

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

AlibabawdktraderefundqueryAPIRequest 外部渠道查询退货订单详情接口 API请求 alibaba.wdk.trade.refund.query

该接口提供给外部渠道商家,比如欧尚外卖等查询退货订单详情,里面包含退货进度等信息。

func NewAlibabawdktraderefundqueryRequest added in v1.3.1

func NewAlibabawdktraderefundqueryRequest() *AlibabawdktraderefundqueryAPIRequest

NewAlibabawdktraderefundqueryRequest 初始化AlibabawdktraderefundqueryAPIRequest对象

func (AlibabawdktraderefundqueryAPIRequest) GetApiMethodName added in v1.3.1

func (r AlibabawdktraderefundqueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlibabawdktraderefundqueryAPIRequest) GetApiParams added in v1.3.1

func (r AlibabawdktraderefundqueryAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlibabawdktraderefundqueryAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlibabawdktraderefundqueryAPIRequest) GetRefundGoodsQueryRequest added in v1.3.1

func (r AlibabawdktraderefundqueryAPIRequest) GetRefundGoodsQueryRequest() *RefundGoodsQueryRequest

GetRefundGoodsQueryRequest RefundGoodsQueryRequest Getter

func (*AlibabawdktraderefundqueryAPIRequest) SetRefundGoodsQueryRequest added in v1.3.1

func (r *AlibabawdktraderefundqueryAPIRequest) SetRefundGoodsQueryRequest(_refundGoodsQueryRequest *RefundGoodsQueryRequest) error

SetRefundGoodsQueryRequest is RefundGoodsQueryRequest Setter 查询请求

type AlibabawdktraderefundqueryAPIResponse added in v1.3.1

type AlibabawdktraderefundqueryAPIResponse struct {
	model.CommonResponse
	AlibabawdktraderefundqueryAPIResponseModel
}

AlibabawdktraderefundqueryAPIResponse 外部渠道查询退货订单详情接口 API返回值 alibaba.wdk.trade.refund.query

该接口提供给外部渠道商家,比如欧尚外卖等查询退货订单详情,里面包含退货进度等信息。

type AlibabawdktraderefundqueryAPIResponseModel added in v1.3.1

type AlibabawdktraderefundqueryAPIResponseModel struct {
	XMLName xml.Name `xml:"alibaba_wdk_trade_refund_query_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果
	RefundGoodsQueryResult *RefundGoodsQueryResult `json:"refund_goods_query_result,omitempty" xml:"refund_goods_query_result,omitempty"`
}

AlibabawdktraderefundqueryAPIResponseModel is 外部渠道查询退货订单详情接口 成功返回结果

type AliexpresspaymentexchangegetAPIRequest added in v1.3.1

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

AliexpresspaymentexchangegetAPIRequest getExchange API请求 aliexpress.payment.exchange.get

提供国际汇率服务

func NewAliexpresspaymentexchangegetRequest added in v1.3.1

func NewAliexpresspaymentexchangegetRequest() *AliexpresspaymentexchangegetAPIRequest

NewAliexpresspaymentexchangegetRequest 初始化AliexpresspaymentexchangegetAPIRequest对象

func (AliexpresspaymentexchangegetAPIRequest) GetApiMethodName added in v1.3.1

func (r AliexpresspaymentexchangegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AliexpresspaymentexchangegetAPIRequest) GetApiParams added in v1.3.1

func (r AliexpresspaymentexchangegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AliexpresspaymentexchangegetAPIRequest) GetCheckoutExchangeRequest added in v1.3.1

func (r AliexpresspaymentexchangegetAPIRequest) GetCheckoutExchangeRequest() *CheckoutExchangeRequest

GetCheckoutExchangeRequest CheckoutExchangeRequest Getter

func (AliexpresspaymentexchangegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AliexpresspaymentexchangegetAPIRequest) SetCheckoutExchangeRequest added in v1.3.1

func (r *AliexpresspaymentexchangegetAPIRequest) SetCheckoutExchangeRequest(_checkoutExchangeRequest *CheckoutExchangeRequest) error

SetCheckoutExchangeRequest is CheckoutExchangeRequest Setter 系统自动生成

type AliexpresspaymentexchangegetAPIResponse added in v1.3.1

type AliexpresspaymentexchangegetAPIResponse struct {
	model.CommonResponse
	AliexpresspaymentexchangegetAPIResponseModel
}

AliexpresspaymentexchangegetAPIResponse getExchange API返回值 aliexpress.payment.exchange.get

提供国际汇率服务

type AliexpresspaymentexchangegetAPIResponseModel added in v1.3.1

type AliexpresspaymentexchangegetAPIResponseModel struct {
	XMLName xml.Name `xml:"aliexpress_payment_exchange_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AliexpresspaymentexchangegetResult `json:"result,omitempty" xml:"result,omitempty"`
}

AliexpresspaymentexchangegetAPIResponseModel is getExchange 成功返回结果

type AliexpresspaymentexchangegetModule added in v1.3.1

type AliexpresspaymentexchangegetModule struct {
	// 报价币种
	QuoteCurrency string `json:"quote_currency,omitempty" xml:"quote_currency,omitempty"`
	// 外部机构汇率号
	InstExchangeRateNo string `json:"inst_exchange_rate_no,omitempty" xml:"inst_exchange_rate_no,omitempty"`
	// 过期时间
	ExpireTime string `json:"expire_time,omitempty" xml:"expire_time,omitempty"`
	// 缓冲时间
	ThresholdTime string `json:"threshold_time,omitempty" xml:"threshold_time,omitempty"`
	// 汇率
	Rate string `json:"rate,omitempty" xml:"rate,omitempty"`
	// 有效时间
	ValidTime string `json:"valid_time,omitempty" xml:"valid_time,omitempty"`
	// 基准币种
	BaseCurrency string `json:"base_currency,omitempty" xml:"base_currency,omitempty"`
	// 汇率号
	ExchangeRateNo string `json:"exchange_rate_no,omitempty" xml:"exchange_rate_no,omitempty"`
	// 是否可交易
	Tradable bool `json:"tradable,omitempty" xml:"tradable,omitempty"`
}

AliexpresspaymentexchangegetModule 结构体

type AliexpresspaymentexchangegetResult added in v1.3.1

type AliexpresspaymentexchangegetResult struct {
	// 返汇率相关数据
	Module *AliexpresspaymentexchangegetModule `json:"module,omitempty" xml:"module,omitempty"`
	// 错误信息
	ErrorCode *ErrorCode `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 是否不成功
	NotSuccess bool `json:"not_success,omitempty" xml:"not_success,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 是否重复重复
	Repeated bool `json:"repeated,omitempty" xml:"repeated,omitempty"`
	// 是否重试
	Retry bool `json:"retry,omitempty" xml:"retry,omitempty"`
}

AliexpresspaymentexchangegetResult 结构体

type AlitriprailtraderefundAPIRequest added in v1.3.1

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

AlitriprailtraderefundAPIRequest 退票接口 API请求 alitrip.rail.trade.refund

退票接口

func NewAlitriprailtraderefundRequest added in v1.3.1

func NewAlitriprailtraderefundRequest() *AlitriprailtraderefundAPIRequest

NewAlitriprailtraderefundRequest 初始化AlitriprailtraderefundAPIRequest对象

func (AlitriprailtraderefundAPIRequest) GetApiMethodName added in v1.3.1

func (r AlitriprailtraderefundAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitriprailtraderefundAPIRequest) GetApiParams added in v1.3.1

func (r AlitriprailtraderefundAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitriprailtraderefundAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlitriprailtraderefundAPIRequest) GetRefundParam added in v1.3.1

func (r AlitriprailtraderefundAPIRequest) GetRefundParam() *RefundReq

GetRefundParam RefundParam Getter

func (*AlitriprailtraderefundAPIRequest) SetRefundParam added in v1.3.1

func (r *AlitriprailtraderefundAPIRequest) SetRefundParam(_refundParam *RefundReq) error

SetRefundParam is RefundParam Setter 入参

type AlitriprailtraderefundAPIResponse added in v1.3.1

type AlitriprailtraderefundAPIResponse struct {
	model.CommonResponse
	AlitriprailtraderefundAPIResponseModel
}

AlitriprailtraderefundAPIResponse 退票接口 API返回值 alitrip.rail.trade.refund

退票接口

type AlitriprailtraderefundAPIResponseModel added in v1.3.1

type AlitriprailtraderefundAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_trade_refund_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回对象
	Result *AlitriprailtraderefundResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

AlitriprailtraderefundAPIResponseModel is 退票接口 成功返回结果

type AlitriprailtraderefundResultSet added in v1.3.1

type AlitriprailtraderefundResultSet struct {
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 接口成功/失败
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

AlitriprailtraderefundResultSet 结构体

type CainiaocntecsupplierorderserviceAPIRequest added in v1.3.1

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

CainiaocntecsupplierorderserviceAPIRequest 供货商查询订单数据接口 API请求 cainiao.cntec.supplier.order.service

提供给供货商查询订单信息的接口,返回给供货商的订单数据已经是脱敏精简后的,比如订单ID用户ID已经用md5加密,用户昵称已经脱敏,商品信息本身是供货商提供的。 数据查询的范围只和供货商的身份有关系,比如大润发的用户只能查询大润发的订单,而且会校验身份和颁发的appkey之间的关系,并且目前对接的只有一个供货商

func NewCainiaocntecsupplierorderserviceRequest added in v1.3.1

func NewCainiaocntecsupplierorderserviceRequest() *CainiaocntecsupplierorderserviceAPIRequest

NewCainiaocntecsupplierorderserviceRequest 初始化CainiaocntecsupplierorderserviceAPIRequest对象

func (CainiaocntecsupplierorderserviceAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaocntecsupplierorderserviceAPIRequest) GetApiParams added in v1.3.1

func (r CainiaocntecsupplierorderserviceAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaocntecsupplierorderserviceAPIRequest) GetQueryConditioin added in v1.3.1

GetQueryConditioin QueryConditioin Getter

func (CainiaocntecsupplierorderserviceAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*CainiaocntecsupplierorderserviceAPIRequest) SetQueryConditioin added in v1.3.1

func (r *CainiaocntecsupplierorderserviceAPIRequest) SetQueryConditioin(_queryConditioin *SupplierOrderQueryDto) error

SetQueryConditioin is QueryConditioin Setter 系统自动生成

type CainiaocntecsupplierorderserviceAPIResponse added in v1.3.1

type CainiaocntecsupplierorderserviceAPIResponse struct {
	model.CommonResponse
	CainiaocntecsupplierorderserviceAPIResponseModel
}

CainiaocntecsupplierorderserviceAPIResponse 供货商查询订单数据接口 API返回值 cainiao.cntec.supplier.order.service

提供给供货商查询订单信息的接口,返回给供货商的订单数据已经是脱敏精简后的,比如订单ID用户ID已经用md5加密,用户昵称已经脱敏,商品信息本身是供货商提供的。 数据查询的范围只和供货商的身份有关系,比如大润发的用户只能查询大润发的订单,而且会校验身份和颁发的appkey之间的关系,并且目前对接的只有一个供货商

type CainiaocntecsupplierorderserviceAPIResponseModel added in v1.3.1

type CainiaocntecsupplierorderserviceAPIResponseModel struct {
	XMLName xml.Name `xml:"cainiao_cntec_supplier_order_service_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *CainiaocntecsupplierorderserviceResult `json:"result,omitempty" xml:"result,omitempty"`
}

CainiaocntecsupplierorderserviceAPIResponseModel is 供货商查询订单数据接口 成功返回结果

type CainiaocntecsupplierorderserviceResult added in v1.3.1

type CainiaocntecsupplierorderserviceResult struct {
	// 订单列表
	OrderList []SupplierOrder `json:"order_list,omitempty" xml:"order_list>supplier_order,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 总条数
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 分页游标
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 是否有下一页
	HasNextPage bool `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CainiaocntecsupplierorderserviceResult 结构体

type CainiaorefundrefundactionsdisplayAPIRequest added in v1.3.1

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

CainiaorefundrefundactionsdisplayAPIRequest 退货退款操作的展示信息(展现给买家) API请求 cainiao.refund.refundactions.display

退货退款操作的展示信息(展现给买家)

func NewCainiaorefundrefundactionsdisplayRequest added in v1.3.1

func NewCainiaorefundrefundactionsdisplayRequest() *CainiaorefundrefundactionsdisplayAPIRequest

NewCainiaorefundrefundactionsdisplayRequest 初始化CainiaorefundrefundactionsdisplayAPIRequest对象

func (CainiaorefundrefundactionsdisplayAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaorefundrefundactionsdisplayAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaorefundrefundactionsdisplayAPIRequest) GetParam0 added in v1.3.1

GetParam0 Param0 Getter

func (CainiaorefundrefundactionsdisplayAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*CainiaorefundrefundactionsdisplayAPIRequest) SetParam0 added in v1.3.1

SetParam0 is Param0 Setter 请求入参

type CainiaorefundrefundactionsdisplayAPIResponse added in v1.3.1

type CainiaorefundrefundactionsdisplayAPIResponse struct {
	model.CommonResponse
	CainiaorefundrefundactionsdisplayAPIResponseModel
}

CainiaorefundrefundactionsdisplayAPIResponse 退货退款操作的展示信息(展现给买家) API返回值 cainiao.refund.refundactions.display

退货退款操作的展示信息(展现给买家)

type CainiaorefundrefundactionsdisplayAPIResponseModel added in v1.3.1

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

CainiaorefundrefundactionsdisplayAPIResponseModel is 退货退款操作的展示信息(展现给买家) 成功返回结果

type CainiaorefundrefundactionsdisplayBizResult added in v1.3.1

type CainiaorefundrefundactionsdisplayBizResult struct {
	// 调用时错误码
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 买家操作时需要的展示信息
	Data string `json:"data,omitempty" xml:"data,omitempty"`
	// 调用时错误描述
	StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"`
	// true表示成功,false表示失败
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CainiaorefundrefundactionsdisplayBizResult 结构体

type CainiaorefundrefundactionsgetAPIRequest added in v1.3.1

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

CainiaorefundrefundactionsgetAPIRequest 判断该订单能执行的逆向操作集合列表 API请求 cainiao.refund.refundactions.get

判断该订单能执行的逆向操作集合列表

func NewCainiaorefundrefundactionsgetRequest added in v1.3.1

func NewCainiaorefundrefundactionsgetRequest() *CainiaorefundrefundactionsgetAPIRequest

NewCainiaorefundrefundactionsgetRequest 初始化CainiaorefundrefundactionsgetAPIRequest对象

func (CainiaorefundrefundactionsgetAPIRequest) GetApiMethodName added in v1.3.1

func (r CainiaorefundrefundactionsgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaorefundrefundactionsgetAPIRequest) GetApiParams added in v1.3.1

func (r CainiaorefundrefundactionsgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaorefundrefundactionsgetAPIRequest) GetOrderId added in v1.3.1

GetOrderId OrderId Getter

func (CainiaorefundrefundactionsgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*CainiaorefundrefundactionsgetAPIRequest) SetOrderId added in v1.3.1

func (r *CainiaorefundrefundactionsgetAPIRequest) SetOrderId(_orderId string) error

SetOrderId is OrderId Setter 子订单ID

type CainiaorefundrefundactionsgetAPIResponse added in v1.3.1

type CainiaorefundrefundactionsgetAPIResponse struct {
	model.CommonResponse
	CainiaorefundrefundactionsgetAPIResponseModel
}

CainiaorefundrefundactionsgetAPIResponse 判断该订单能执行的逆向操作集合列表 API返回值 cainiao.refund.refundactions.get

判断该订单能执行的逆向操作集合列表

type CainiaorefundrefundactionsgetAPIResponseModel added in v1.3.1

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

CainiaorefundrefundactionsgetAPIResponseModel is 判断该订单能执行的逆向操作集合列表 成功返回结果

type CainiaorefundrefundactionsgetBizResult added in v1.3.1

type CainiaorefundrefundactionsgetBizResult struct {
	// 调用错误时,错误code
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 调用错误时,错误描述
	StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"`
	// 该订单支持的退款退货操作的集合
	Data *OrderRefundActionResponse `json:"data,omitempty" xml:"data,omitempty"`
	// true表示成功,false表示失败
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CainiaorefundrefundactionsgetBizResult 结构体

type CainiaorefundrefundactionsjudgementAPIRequest added in v1.3.1

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

CainiaorefundrefundactionsjudgementAPIRequest 判断当前用户是否能对订单执行一些逆向操作,比如退货操作 API请求 cainiao.refund.refundactions.judgement

判断当前用户是否能对订单执行一些逆向操作,比如退货操作

func NewCainiaorefundrefundactionsjudgementRequest added in v1.3.1

func NewCainiaorefundrefundactionsjudgementRequest() *CainiaorefundrefundactionsjudgementAPIRequest

NewCainiaorefundrefundactionsjudgementRequest 初始化CainiaorefundrefundactionsjudgementAPIRequest对象

func (CainiaorefundrefundactionsjudgementAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (CainiaorefundrefundactionsjudgementAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (CainiaorefundrefundactionsjudgementAPIRequest) GetParam0 added in v1.3.1

GetParam0 Param0 Getter

func (CainiaorefundrefundactionsjudgementAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*CainiaorefundrefundactionsjudgementAPIRequest) SetParam0 added in v1.3.1

SetParam0 is Param0 Setter 操作请求

type CainiaorefundrefundactionsjudgementAPIResponse added in v1.3.1

type CainiaorefundrefundactionsjudgementAPIResponse struct {
	model.CommonResponse
	CainiaorefundrefundactionsjudgementAPIResponseModel
}

CainiaorefundrefundactionsjudgementAPIResponse 判断当前用户是否能对订单执行一些逆向操作,比如退货操作 API返回值 cainiao.refund.refundactions.judgement

判断当前用户是否能对订单执行一些逆向操作,比如退货操作

type CainiaorefundrefundactionsjudgementAPIResponseModel added in v1.3.1

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

CainiaorefundrefundactionsjudgementAPIResponseModel is 判断当前用户是否能对订单执行一些逆向操作,比如退货操作 成功返回结果

type CainiaorefundrefundactionsjudgementBizResult added in v1.3.1

type CainiaorefundrefundactionsjudgementBizResult struct {
	// 调用时错误码
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 调用时错误描述
	StatusMessage string `json:"status_message,omitempty" xml:"status_message,omitempty"`
	// 是否能对某一个订单进行退货退款操作的返回值
	Data *OrderRefundOperationResponse `json:"data,omitempty" xml:"data,omitempty"`
	// true表示成功,false表示失败
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

CainiaorefundrefundactionsjudgementBizResult 结构体

type CardChargeCallbackRequestDto added in v1.2.9

type CardChargeCallbackRequestDto struct {
	// 卡密组(注意:卡密是密文)
	CardInfos string `json:"card_infos,omitempty" xml:"card_infos,omitempty"`
	// 失败错误码
	FailedCode string `json:"failed_code,omitempty" xml:"failed_code,omitempty"`
	// 失败原因
	FailedReason string `json:"failed_reason,omitempty" xml:"failed_reason,omitempty"`
	// 交易猫订单号
	JymOrderNo string `json:"jym_order_no,omitempty" xml:"jym_order_no,omitempty"`
	// 订单类型,回填
	JymOrderType string `json:"jym_order_type,omitempty" xml:"jym_order_type,omitempty"`
	// 商家id
	VendorId string `json:"vendor_id,omitempty" xml:"vendor_id,omitempty"`
	// 商家订单号
	VendorOrderNo string `json:"vendor_order_no,omitempty" xml:"vendor_order_no,omitempty"`
	// 商家商品快照
	VendorOrderSnap string `json:"vendor_order_snap,omitempty" xml:"vendor_order_snap,omitempty"`
	// 商家订单状态
	VendorOrderStatus string `json:"vendor_order_status,omitempty" xml:"vendor_order_status,omitempty"`
	// 商家订单充值成功时间
	VendorOrderSuccessTime string `json:"vendor_order_success_time,omitempty" xml:"vendor_order_success_time,omitempty"`
	// 版本号
	Version string `json:"version,omitempty" xml:"version,omitempty"`
}

CardChargeCallbackRequestDto 结构体

type ChannelOrderItem

type ChannelOrderItem struct {
	// 条形码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// skuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 商品id(商品id和货号必填一个)
	ItemId string `json:"item_id,omitempty" xml:"item_id,omitempty"`
	// 货号(商品id和货号必填一个)
	InventoryNo string `json:"inventory_no,omitempty" xml:"inventory_no,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 分销价格(分)
	DistributionPrice int64 `json:"distribution_price,omitempty" xml:"distribution_price,omitempty"`
	// 数量
	Quantity int64 `json:"quantity,omitempty" xml:"quantity,omitempty"`
}

ChannelOrderItem 结构体

type ChannelOrderOption

type ChannelOrderOption struct {
	// 是否允许供应商修改
	IsAllowUpperModify bool `json:"is_allow_upper_modify,omitempty" xml:"is_allow_upper_modify,omitempty"`
}

ChannelOrderOption 结构体

type CheckoutExchangeRequest

type CheckoutExchangeRequest struct {
	// 基准币种(卖家设置的)
	BaseCurrency string `json:"base_currency,omitempty" xml:"base_currency,omitempty"`
	// 报价币种(买家看到的)
	QuoteCurrency string `json:"quote_currency,omitempty" xml:"quote_currency,omitempty"`
}

CheckoutExchangeRequest 结构体

type CommonKeyValue added in v1.2.5

type CommonKeyValue struct {
	// 扩展key。例如:.cpCode(物流品牌)。详以接入文档中描述的场景对接
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 扩展value。例如:传运单号。详以接入文档中描述的场景对接
	Value string `json:"value,omitempty" xml:"value,omitempty"`
}

CommonKeyValue 结构体

type CouponInfo

type CouponInfo struct {
	// 优惠名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 优惠标识,编号
	OptionId string `json:"option_id,omitempty" xml:"option_id,omitempty"`
	// 优惠金额,单位人民币:分
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
}

CouponInfo 结构体

type CreateChannelOrderRequest

type CreateChannelOrderRequest struct {
	// 子订单信息
	ItemList []ChannelOrderItem `json:"item_list,omitempty" xml:"item_list>channel_order_item,omitempty"`
	// 备注
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 请求单号
	RequestNo string `json:"request_no,omitempty" xml:"request_no,omitempty"`
	// 外部订单号
	OutOrderNo string `json:"out_order_no,omitempty" xml:"out_order_no,omitempty"`
	// sourceLbx
	SourceLbx string `json:"source_lbx,omitempty" xml:"source_lbx,omitempty"`
	// 属性
	Properties string `json:"properties,omitempty" xml:"properties,omitempty"`
	// 自营实体标示
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 物流信息
	ReceiverLogistics *ReceiverLogistics `json:"receiver_logistics,omitempty" xml:"receiver_logistics,omitempty"`
	// 渠道
	Channel int64 `json:"channel,omitempty" xml:"channel,omitempty"`
	// 选项
	Option *ChannelOrderOption `json:"option,omitempty" xml:"option,omitempty"`
	// 交易类型(1——代销;2——经销)
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
}

CreateChannelOrderRequest 结构体

type ErrorCode

type ErrorCode struct {
	// 错误展示信息
	DisplayMessage string `json:"display_message,omitempty" xml:"display_message,omitempty"`
	// 错误码key
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 错误详情
	LogMessage string `json:"log_message,omitempty" xml:"log_message,omitempty"`
}

ErrorCode 结构体

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 FastBuyPosCloseRequest

type FastBuyPosCloseRequest struct {
	// 外部唯一订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
}

FastBuyPosCloseRequest 结构体

type FastBuyPosCloseResult

type FastBuyPosCloseResult struct {
	// 错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 错误信息
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 关单结果状态: 1为成功,2为失败
	ResultResult int64 `json:"result_result,omitempty" xml:"result_result,omitempty"`
	// 接口调用是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

FastBuyPosCloseResult 结构体

type FastBuyPosCreateRequest

type FastBuyPosCreateRequest struct {
	// 购买商品信息
	Items []FastBuyPosItemBo `json:"items,omitempty" xml:"items>fast_buy_pos_item_bo,omitempty"`
	// 收银员工号
	CashierNum string `json:"cashier_num,omitempty" xml:"cashier_num,omitempty"`
	// pos机id
	MachineId string `json:"machine_id,omitempty" xml:"machine_id,omitempty"`
	// 外部唯一订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 付款码
	PayCode string `json:"pay_code,omitempty" xml:"pay_code,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
	// 扩展属性
	ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"`
	// 支付宝支付金额
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
	// 外部优惠券支付金额
	OutCouponPayFee int64 `json:"out_coupon_pay_fee,omitempty" xml:"out_coupon_pay_fee,omitempty"`
	// 外部优惠金额
	OutPromotionFee int64 `json:"out_promotion_fee,omitempty" xml:"out_promotion_fee,omitempty"`
}

FastBuyPosCreateRequest 结构体

type FastBuyPosCreateResult

type FastBuyPosCreateResult struct {
	// 返回错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 返回错误信息
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 盒马订单号
	BizOrderId int64 `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 优惠券优惠金额
	CouponFee int64 `json:"coupon_fee,omitempty" xml:"coupon_fee,omitempty"`
	// 优惠活动优惠金额
	PromotionFee int64 `json:"promotion_fee,omitempty" xml:"promotion_fee,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

FastBuyPosCreateResult 结构体

type FastBuyPosItemBo

type FastBuyPosItemBo struct {
	// 购买库存数量
	InvQuantity string `json:"inv_quantity,omitempty" xml:"inv_quantity,omitempty"`
	// 商品条码
	BarCode string `json:"bar_code,omitempty" xml:"bar_code,omitempty"`
	// 商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 商家商品编码
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 扩展属性
	ExtendInfo string `json:"extend_info,omitempty" xml:"extend_info,omitempty"`
	// 商品单价
	UnitPrice int64 `json:"unit_price,omitempty" xml:"unit_price,omitempty"`
	// 商品行号,单次下单自增
	LineId int64 `json:"line_id,omitempty" xml:"line_id,omitempty"`
	// 一阶段优惠金额(商品实际优惠金额):单价*数量-商家优惠
	PromotionFee int64 `json:"promotion_fee,omitempty" xml:"promotion_fee,omitempty"`
}

FastBuyPosItemBo 结构体

type FastBuyPosPayRequest

type FastBuyPosPayRequest struct {
	// 外部支付宝交易号
	AlipayTradeId string `json:"alipay_trade_id,omitempty" xml:"alipay_trade_id,omitempty"`
	// 外部唯一订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
	// 实际支付金额
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
}

FastBuyPosPayRequest 结构体

type FastBuyPosPayResult

type FastBuyPosPayResult struct {
	// 返回的错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 错误描述
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

FastBuyPosPayResult 结构体

type FastBuyPosQueryRequest

type FastBuyPosQueryRequest struct {
	// pos机id
	MachineId string `json:"machine_id,omitempty" xml:"machine_id,omitempty"`
	// 外部订单id
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
}

FastBuyPosQueryRequest 结构体

type FastBuyPosQueryResult

type FastBuyPosQueryResult struct {
	// 五道口订单id
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 返回的错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 错误信息
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 商品分摊优惠
	ItemPromotions string `json:"item_promotions,omitempty" xml:"item_promotions,omitempty"`
	// 优惠券优惠金额
	CouponFee int64 `json:"coupon_fee,omitempty" xml:"coupon_fee,omitempty"`
	// 订单状态:1为已下单,未支付;2为交易完成;3为已退款;4为已关单
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 优惠活动优惠金额
	PromotionFee int64 `json:"promotion_fee,omitempty" xml:"promotion_fee,omitempty"`
	// 是否调用成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

FastBuyPosQueryResult 结构体

type FastBuyPosReverseRequest

type FastBuyPosReverseRequest struct {
	// 外部唯一订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 外部退款单号
	OutRefundId string `json:"out_refund_id,omitempty" xml:"out_refund_id,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 退款操作员工工号
	OperatorNum string `json:"operator_num,omitempty" xml:"operator_num,omitempty"`
	// 逆向支付宝交易号,对账使用
	RefundAlipayTradeId string `json:"refund_alipay_trade_id,omitempty" xml:"refund_alipay_trade_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
}

FastBuyPosReverseRequest 结构体

type FastBuyPosReverseResult

type FastBuyPosReverseResult struct {
	// 返回的错误码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 返回的错误信息
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 退款状态: 1为成功,2为失败
	ResultStatus int64 `json:"result_status,omitempty" xml:"result_status,omitempty"`
	// 调用接口是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

FastBuyPosReverseResult 结构体

type File

type File struct {
	// 返回的是绝对路径如:http://img07.taobaocdn.com/imgextra/i7/22670458/T2dD0kXb4cXXXXXXXX_!!22670458.jpg
	FilePath string `json:"file_path,omitempty" xml:"file_path,omitempty"`
	// 图片状态,unfroze代表没有被冻结,froze代表被冻结,pass代表排查通过
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 文件是否删除
	Deleted string `json:"deleted,omitempty" xml:"deleted,omitempty"`
	// 图片像素,如果非图片,该值为空
	PicturePix string `json:"picture_pix,omitempty" xml:"picture_pix,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 文件的大小
	Size int64 `json:"size,omitempty" xml:"size,omitempty"`
}

File 结构体

type GoodsDetail

type GoodsDetail struct {
	// 商品标识
	GoodsId string `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 商品单价,人民币:分
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 商品数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 商品ID类型。CUSTOM:外部编码;ITEM_SKU:淘系商品itemId_skuId组合形式。无SKU则为itemId_0
	IdType string `json:"id_type,omitempty" xml:"id_type,omitempty"`
}

GoodsDetail 结构体

type InformRefundSuccessRequest

type InformRefundSuccessRequest struct {
	// 退货成功履约子单
	RefundFulfillSubOrders []RefundSuccessSubOrderRequest `json:"refund_fulfill_sub_orders,omitempty" xml:"refund_fulfill_sub_orders>refund_success_sub_order_request,omitempty"`
	// 门店编码
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
}

InformRefundSuccessRequest 结构体

type InformRefundSuccessResult

type InformRefundSuccessResult struct {
	// 错误编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

InformRefundSuccessResult 结构体

type IoschargeCallbackRequestDto added in v1.3.1

type IoschargeCallbackRequestDto struct {
	// 商家订单号
	VendorOrderNo string `json:"vendor_order_no,omitempty" xml:"vendor_order_no,omitempty"`
	// 失败的错误码
	FailedCode string `json:"failed_code,omitempty" xml:"failed_code,omitempty"`
	// 交易猫订单号
	JymOrderNo string `json:"jym_order_no,omitempty" xml:"jym_order_no,omitempty"`
	// 商家id
	VendorId string `json:"vendor_id,omitempty" xml:"vendor_id,omitempty"`
	// 商家订单状态
	VendorOrderStatus string `json:"vendor_order_status,omitempty" xml:"vendor_order_status,omitempty"`
	// 商家订单快照
	VendorOrderSnap string `json:"vendor_order_snap,omitempty" xml:"vendor_order_snap,omitempty"`
	// 版本号
	Version string `json:"version,omitempty" xml:"version,omitempty"`
	// 商家订单充值成功时间,格式yyyyMMddHHmmss
	VendorOrderSuccessTime string `json:"vendor_order_success_time,omitempty" xml:"vendor_order_success_time,omitempty"`
	// 失败原因
	FailedReason string `json:"failed_reason,omitempty" xml:"failed_reason,omitempty"`
}

IoschargeCallbackRequestDto 结构体

type IsvCreateOrderParam

type IsvCreateOrderParam struct {
	// 订单行详情
	SubOrderInfoList []IsvSimpleSubOrderModel `json:"sub_order_info_list,omitempty" xml:"sub_order_info_list>isv_simple_sub_order_model,omitempty"`
	// 买家备注
	BuyerRemarks string `json:"buyer_remarks,omitempty" xml:"buyer_remarks,omitempty"`
	// 外部订单ID,仅仅做追踪使用
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 收货地址信息
	SmAddrModel *SmAddrModel `json:"sm_addr_model,omitempty" xml:"sm_addr_model,omitempty"`
}

IsvCreateOrderParam 结构体

type IsvSimpleSubOrderModel

type IsvSimpleSubOrderModel struct {
	// 商品的类目(Key),可不填写
	CargoKey string `json:"cargo_key,omitempty" xml:"cargo_key,omitempty"`
	// 1688的商品ID(offerId)
	OfferId string `json:"offer_id,omitempty" xml:"offer_id,omitempty"`
	// 购买数量
	Quantity string `json:"quantity,omitempty" xml:"quantity,omitempty"`
	// 1688的单品货号ID(skuId),如果有的话,必须填写
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
}

IsvSimpleSubOrderModel 结构体

type ItemDigestDto

type ItemDigestDto struct {
	// 图片url
	ImgUrl string `json:"img_url,omitempty" xml:"img_url,omitempty"`
	// 商品名称
	ItemName string `json:"item_name,omitempty" xml:"item_name,omitempty"`
	// 商品数量
	ItemQuantity string `json:"item_quantity,omitempty" xml:"item_quantity,omitempty"`
	// 商品金额
	ItemPrice string `json:"item_price,omitempty" xml:"item_price,omitempty"`
	// 商品订单状态描述
	ItemOrderStatusDesc string `json:"item_order_status_desc,omitempty" xml:"item_order_status_desc,omitempty"`
}

ItemDigestDto 结构体

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 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 OfnSelfRecycleAuthDto added in v1.2.9

type OfnSelfRecycleAuthDto struct {
	// 是否鉴权通过
	AuthPass bool `json:"auth_pass,omitempty" xml:"auth_pass,omitempty"`
}

OfnSelfRecycleAuthDto 结构体

type Order

type Order struct {
	// 商品价格。精确到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"`
	// 订单状态(请关注此状态,如果为TRADE_CLOSED_BY_TAOBAO状态,则不要对此订单进行发货,切记啊!)。可选值: <ul><li>TRADE_NO_CREATE_PAY(没有创建支付宝交易) <li>WAIT_BUYER_PAY(等待买家付款) <li>WAIT_SELLER_SEND_GOODS(等待卖家发货,即:买家已付款) <li>WAIT_BUYER_CONFIRM_GOODS(等待买家确认收货,即:卖家已发货) <li>TRADE_BUYER_SIGNED(买家已签收,货到付款专用) <li>TRADE_FINISHED(交易成功) <li>TRADE_CLOSED(付款以后用户退款成功,交易自动关闭) <li>TRADE_CLOSED_BY_TAOBAO(付款以前,卖家或买家主动关闭交易)<li>PAY_PENDING(国际信用卡支付付款确认中)
	Status string `json:"status,omitempty" xml:"status,omitempty"`
	// 子订单编号
	Oid string `json:"oid,omitempty" xml:"oid,omitempty"`
	// 应付金额(商品价格 * 商品数量 + 手工调整金额 - 子订单级订单优惠金额)。精确到2位小数;单位:元。如:200.07,表示:200元7分
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 外部网店自己定义的Sku编号
	OuterSkuId string `json:"outer_sku_id,omitempty" xml:"outer_sku_id,omitempty"`
	// 商家外部编码(可与商家外部系统对接)。外部商家自己定义的商品Item的id,可以通过taobao.items.custom.get获取商品的Item的信息
	OuterIid string `json:"outer_iid,omitempty" xml:"outer_iid,omitempty"`
	// 商品图片的绝对路径
	PicPath string `json:"pic_path,omitempty" xml:"pic_path,omitempty"`
	// 商品标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 定制信息
	Customization string `json:"customization,omitempty" xml:"customization,omitempty"`
	// 子订单实付金额。精确到2位小数,单位:元。如:200.07,表示:200元7分。
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
	// 子订单级订单优惠金额。精确到2位小数;单位:元。如:200.07,表示:200元7分
	DiscountFee string `json:"discount_fee,omitempty" xml:"discount_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"`
	// 退款状态。退款状态。可选值 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"`
	// 手工调整金额.格式为:1.01;单位:元;精确到小数点后两位.
	AdjustFee string `json:"adjust_fee,omitempty" xml:"adjust_fee,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"`
	// 卖家类型,可选值为:B(商城商家),C(普通卖家)
	SellerType string `json:"seller_type,omitempty" xml:"seller_type,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"`
	// 天猫汽车服务预约时间
	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"`
	// 天猫国际子订单关税税费
	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"`
	// 征集预售订单征集状态:1(征集中),2(征集成功),3(征集失败)
	ZhengjiStatus string `json:"zhengji_status,omitempty" xml:"zhengji_status,omitempty"`
	// 天猫国际子订单计税优惠金额
	SubOrderTaxPromotionFee string `json:"sub_order_tax_promotion_fee,omitempty" xml:"sub_order_tax_promotion_fee,omitempty"`
	// 天猫国际子订单包税金额
	TaxCouponDiscount string `json:"tax_coupon_discount,omitempty" xml:"tax_coupon_discount,omitempty"`
	// 特殊退款状态
	SpecialRefundType string `json:"special_refund_type,omitempty" xml:"special_refund_type,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"`
	// 子订单的交易结束时间说明:子订单有单独的结束时间,与主订单的结束时间可能有所不同,在有退款发起的时候或者是主订单分阶段付款的时候,子订单的结束时间会早于主订单的结束时间,所以开放这个字段便于订单结束状态的判断
	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"`
	// bind_oid字段的升级,支持返回绑定的多个子订单,多个子订单以半角逗号分隔
	BindOids string `json:"bind_oids,omitempty" xml:"bind_oids,omitempty"`
	// 套餐ID
	ItemMealId string `json:"item_meal_id,omitempty" xml:"item_meal_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"`
	// 是否为闲鱼订单 1是0否
	IsIdle string `json:"is_idle,omitempty" xml:"is_idle,omitempty"`
	// 商品数字ID
	NumIid int64 `json:"num_iid,omitempty" xml:"num_iid,omitempty"`
	// 购买数量。取值范围:大于零的整数
	Num int64 `json:"num,omitempty" xml:"num,omitempty"`
	// 最近退款的id
	RefundId int64 `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 交易商品对应的类目ID
	Cid int64 `json:"cid,omitempty" xml:"cid,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"`
	// 表示订单交易是否含有对应的代销采购单。如果该订单中存在一个对应的代销采购单,那么该值为true;反之,该值为false。
	IsDaixiao bool `json:"is_daixiao,omitempty" xml:"is_daixiao,omitempty"`
	// 子订单是否是www订单
	IsWww bool `json:"is_www,omitempty" xml:"is_www,omitempty"`
	// 天猫国际子订单是否包税
	TaxFree bool `json:"tax_free,omitempty" xml:"tax_free,omitempty"`
	// 子订单是否优惠贬值
	IsDevalueFee bool `json:"is_devalue_fee,omitempty" xml:"is_devalue_fee,omitempty"`
	// 是否超卖
	IsOversold bool `json:"is_oversold,omitempty" xml:"is_oversold,omitempty"`
}

Order 结构体

type OrderDeliverer

type OrderDeliverer struct {
	// 配送人员编码
	DelivererCode string `json:"deliverer_code,omitempty" xml:"deliverer_code,omitempty"`
	// 配送人员电话
	DelivererPhone string `json:"deliverer_phone,omitempty" xml:"deliverer_phone,omitempty"`
	// 配送人员姓名
	DelivererName string `json:"deliverer_name,omitempty" xml:"deliverer_name,omitempty"`
	// 拣货结束时间
	PickupEndTime string `json:"pickup_end_time,omitempty" xml:"pickup_end_time,omitempty"`
	// 拣货开始时间
	PickupStartTime string `json:"pickup_start_time,omitempty" xml:"pickup_start_time,omitempty"`
	// 批次结束时间
	BatchEndTime string `json:"batch_end_time,omitempty" xml:"batch_end_time,omitempty"`
	// 批次开始时间
	BatchStartTime string `json:"batch_start_time,omitempty" xml:"batch_start_time,omitempty"`
	// 签收时间
	SignTime string `json:"sign_time,omitempty" xml:"sign_time,omitempty"`
	// 配送结束时间
	DispatchEndTime string `json:"dispatch_end_time,omitempty" xml:"dispatch_end_time,omitempty"`
	// 配送开始时间
	DispatchStartTime string `json:"dispatch_start_time,omitempty" xml:"dispatch_start_time,omitempty"`
	// 打包结束时间
	PackageEndTime string `json:"package_end_time,omitempty" xml:"package_end_time,omitempty"`
	// 打包开始时间
	PackageStartTime string `json:"package_start_time,omitempty" xml:"package_start_time,omitempty"`
	// 签收备注
	SignMemo string `json:"sign_memo,omitempty" xml:"sign_memo,omitempty"`
	// 收货开始时间
	DeliveryStartTime string `json:"delivery_start_time,omitempty" xml:"delivery_start_time,omitempty"`
	// 收货人
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 收货结束时间
	DeliveryEndTime string `json:"delivery_end_time,omitempty" xml:"delivery_end_time,omitempty"`
	// 配送坐标
	DeliveryGeo string `json:"delivery_geo,omitempty" xml:"delivery_geo,omitempty"`
	// 配送地址
	DeliveryAddress string `json:"delivery_address,omitempty" xml:"delivery_address,omitempty"`
	// 收货人电话
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// 运费
	DeliveryFee int64 `json:"delivery_fee,omitempty" xml:"delivery_fee,omitempty"`
	// 是否隐私号 0:非隐私号  1:隐私号
	PrivacyPhoneFlag int64 `json:"privacy_phone_flag,omitempty" xml:"privacy_phone_flag,omitempty"`
}

OrderDeliverer 结构体

type OrderDelivery

type OrderDelivery struct {
	// 配送开始时间
	DeliveryStartTime string `json:"delivery_start_time,omitempty" xml:"delivery_start_time,omitempty"`
	// 收货人姓名
	ConsigneeName string `json:"consignee_name,omitempty" xml:"consignee_name,omitempty"`
	// 配送结束时间
	DeliveryEndTime string `json:"delivery_end_time,omitempty" xml:"delivery_end_time,omitempty"`
	// 配送坐标
	DeliveryGeo string `json:"delivery_geo,omitempty" xml:"delivery_geo,omitempty"`
	// 配送地址
	DeliveryAddress string `json:"delivery_address,omitempty" xml:"delivery_address,omitempty"`
	// 收货人电话
	ConsigneePhone string `json:"consignee_phone,omitempty" xml:"consignee_phone,omitempty"`
	// 配送员编码
	DelivererCode string `json:"deliverer_code,omitempty" xml:"deliverer_code,omitempty"`
	// 配送员电话
	DelivererPhone string `json:"deliverer_phone,omitempty" xml:"deliverer_phone,omitempty"`
	// 配送员姓名
	DelivererName string `json:"deliverer_name,omitempty" xml:"deliverer_name,omitempty"`
	// 配送费用金额
	DeliveryFee int64 `json:"delivery_fee,omitempty" xml:"delivery_fee,omitempty"`
	// 是否隐私号 0:非隐私号  1:隐私号
	PrivacyPhoneFlag int64 `json:"privacy_phone_flag,omitempty" xml:"privacy_phone_flag,omitempty"`
}

OrderDelivery 结构体

type OrderDiscountBillBo

type OrderDiscountBillBo struct {
	// 活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 主订单号
	MainOrderId string `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 商家编码
	MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"`
	// 外部订单号
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 商品编码
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 商品名称
	SkuName string `json:"sku_name,omitempty" xml:"sku_name,omitempty"`
	// 经营店id
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 子单号
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 业务时间
	BizTime string `json:"biz_time,omitempty" xml:"biz_time,omitempty"`
	// 活动ID
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 活动类型 1:活动 2:券
	ActivityType int64 `json:"activity_type,omitempty" xml:"activity_type,omitempty"`
	// 购买数量
	BuyQuantity int64 `json:"buy_quantity,omitempty" xml:"buy_quantity,omitempty"`
	// 优惠金额
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 优惠件数
	DiscountQuantity int64 `json:"discount_quantity,omitempty" xml:"discount_quantity,omitempty"`
	// 补差类型
	DiscountType int64 `json:"discount_type,omitempty" xml:"discount_type,omitempty"`
	// 主键id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 商家优惠补差金额
	MerchantDiscountFee int64 `json:"merchant_discount_fee,omitempty" xml:"merchant_discount_fee,omitempty"`
	// 交易状态
	OrderStatus int64 `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 淘鲜达优惠金额
	TxdDiscountFee int64 `json:"txd_discount_fee,omitempty" xml:"txd_discount_fee,omitempty"`
	// 订单渠道
	OrderChannel int64 `json:"order_channel,omitempty" xml:"order_channel,omitempty"`
	// 出资方 1表示平台出资  0表示品牌商出资
	Investor int64 `json:"investor,omitempty" xml:"investor,omitempty"`
}

OrderDiscountBillBo 结构体

type OrderDiscountBillQueryRequest

type OrderDiscountBillQueryRequest struct {
	// 查询结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 查询开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 经营店id,store_id和out_shop_code不能同时为空
	StoreId string `json:"store_id,omitempty" xml:"store_id,omitempty"`
	// 外部门店编码
	OutShopCode string `json:"out_shop_code,omitempty" xml:"out_shop_code,omitempty"`
	// 传入上一次查询结果的next_id,第一次查询时传0
	NextId int64 `json:"next_id,omitempty" xml:"next_id,omitempty"`
	// 每页数量
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 订单渠道 1代表"轻POS",2代表"淘鲜达",默认为 1
	OrderChannel int64 `json:"order_channel,omitempty" xml:"order_channel,omitempty"`
}

OrderDiscountBillQueryRequest 结构体

type OrderDiscountBillQueryResult

type OrderDiscountBillQueryResult struct {
	// 账单列表
	DiscountBills []OrderDiscountBillBo `json:"discount_bills,omitempty" xml:"discount_bills>order_discount_bill_bo,omitempty"`
	// 结果码
	ReturnCode string `json:"return_code,omitempty" xml:"return_code,omitempty"`
	// 结果文案
	ReturnMsg string `json:"return_msg,omitempty" xml:"return_msg,omitempty"`
	// 下一页查询的入参,当为-1时表示没有更多数据
	NextId int64 `json:"next_id,omitempty" xml:"next_id,omitempty"`
	// 总数量,只在查询第一页时返回
	TotalNumber int64 `json:"total_number,omitempty" xml:"total_number,omitempty"`
	// 业务请求成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

OrderDiscountBillQueryResult 结构体

type OrderInfoDto

type OrderInfoDto struct {
	// 商品摘要
	ItemDigests []ItemDigestDto `json:"item_digests,omitempty" xml:"item_digests>item_digest_dto,omitempty"`
	// 订单状态描述
	OrderStatusDesc string `json:"order_status_desc,omitempty" xml:"order_status_desc,omitempty"`
	// 店铺名称
	ShopName string `json:"shop_name,omitempty" xml:"shop_name,omitempty"`
	// 店铺url
	ShopUrl string `json:"shop_url,omitempty" xml:"shop_url,omitempty"`
	// 订单标题
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 订单总数
	TotalCount string `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 订单总数说明
	TotalCountDesc string `json:"total_count_desc,omitempty" xml:"total_count_desc,omitempty"`
	// 支付金额
	PayAmount string `json:"pay_amount,omitempty" xml:"pay_amount,omitempty"`
	// 订单详情url
	OrderDetailUrl string `json:"order_detail_url,omitempty" xml:"order_detail_url,omitempty"`
	// 支付金额描述
	PayInfo string `json:"pay_info,omitempty" xml:"pay_info,omitempty"`
}

OrderInfoDto 结构体

type OrderInfoResultDto

type OrderInfoResultDto struct {
	// 订单信息list
	OrderInfoList []OrderInfoDto `json:"order_info_list,omitempty" xml:"order_info_list>order_info_dto,omitempty"`
	// 当前页
	CurPageNo int64 `json:"cur_page_no,omitempty" xml:"cur_page_no,omitempty"`
	// 每页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 是否下一页
	HasNextPage bool `json:"has_next_page,omitempty" xml:"has_next_page,omitempty"`
}

OrderInfoResultDto 结构体

type OrderObject

type OrderObject struct {
	// 子订单
	SubOrders []Suborders `json:"sub_orders,omitempty" xml:"sub_orders>suborders,omitempty"`
	// 用户昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 订单状态	PAID_DONE 已付款  	ACCEPT_ORDER 已接单  	PICK_ORDER 已拣货  	SHIPPED 已发货  	TRADE_SUCCESS 交易成功  	TRADE_CLOSE 交易关闭
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 用户备注
	UserMem string `json:"user_mem,omitempty" xml:"user_mem,omitempty"`
	// 订单履约状态	ACCEPTED 接单  	REJECTED 拒单  	CANCELED 取消订单  	SHIPPING 揽收(配送中)  	REFUSED 用户拒收  	SHIPPED  	TIMEOUTSHIPPED 超时签收  	RESHIPPED 二次妥投  	OUTOFSTOCK 缺货出  	FOODPROCESSDONE 加工完成  	PACKAGED 打包完成  	REFUNDED 逆向终态(已取货入站&退款完成)
	OrderFulfillStatus string `json:"order_fulfill_status,omitempty" xml:"order_fulfill_status,omitempty"`
	// 门店标识
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 买家标识
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 业务订单标识
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 商家编码
	MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"`
	// 业务订单标识
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 优惠金额
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 订单原金额
	OriginFee int64 `json:"origin_fee,omitempty" xml:"origin_fee,omitempty"`
	// 配送人员信息
	Deliverer *OrderDeliverer `json:"deliverer,omitempty" xml:"deliverer,omitempty"`
	// 实际支付金额
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
	// 收货人信息
	Delivery *OrderDelivery `json:"delivery,omitempty" xml:"delivery,omitempty"`
}

OrderObject 结构体

type OrderRefundActionResponse

type OrderRefundActionResponse struct {
	// 该订单支持的退款退货操作的集合
	SupportRefundActions []Supportrefundactions `json:"support_refund_actions,omitempty" xml:"support_refund_actions>supportrefundactions,omitempty"`
	// 操作用户ID
	OperationUserId string `json:"operation_user_id,omitempty" xml:"operation_user_id,omitempty"`
	// 子订单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
}

OrderRefundActionResponse 结构体

type OrderRefundOperationJudgementReq

type OrderRefundOperationJudgementReq struct {
	// 退款退货操作的Code,由系统定义,目前支持的方式有:refundFeeOnly(仅退款),refundFeeWithGoods(退货退款),swithGoods(换货)
	RefundOrderActionType string `json:"refund_order_action_type,omitempty" xml:"refund_order_action_type,omitempty"`
	// 订单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
}

OrderRefundOperationJudgementReq 结构体

type OrderRefundOperationReq

type OrderRefundOperationReq struct {
	// 退款退货操作的Code,由系统定义,目前支持的方式有:refundFeeOnly(仅退款),refundFeeWithGoods(退货退款),swithGoods(换货)
	RefundOrderActionType string `json:"refund_order_action_type,omitempty" xml:"refund_order_action_type,omitempty"`
	// 订单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
}

OrderRefundOperationReq 结构体

type OrderRefundOperationResponse

type OrderRefundOperationResponse struct {
	// 不能对某一个订单进行操作时的原因描述
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 不能对某一个订单进行操作时的错误Code
	OperationResultCode string `json:"operation_result_code,omitempty" xml:"operation_result_code,omitempty"`
	// 退款退货操作的Code,由系统定义,目前支持的方式有:refundFeeOnly(仅退款),refundFeeWithGoods(退货退款),swithGoods(换货)
	OrderRefundActionType string `json:"order_refund_action_type,omitempty" xml:"order_refund_action_type,omitempty"`
	// 操作的用户ID
	OperationUserId string `json:"operation_user_id,omitempty" xml:"operation_user_id,omitempty"`
	// 订单ID
	OrderId string `json:"order_id,omitempty" xml:"order_id,omitempty"`
	// 是否能对某一个订单进行操作
	CanOperate bool `json:"can_operate,omitempty" xml:"can_operate,omitempty"`
}

OrderRefundOperationResponse 结构体

type OrderResult

type OrderResult struct {
	// 错误编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误消息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 取消的订单
	Result *OrderObject `json:"result,omitempty" xml:"result,omitempty"`
	// 创建的订单
	Trade *TradeOrder `json:"trade,omitempty" xml:"trade,omitempty"`
	// 是否取消成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

OrderResult 结构体

type PromotionDetail

type PromotionDetail struct {
	// 优惠id,(由营销工具id、优惠活动id和优惠详情id组成,结构为:营销工具id-优惠活动id_优惠详情id,如mjs-123024_211143)
	PromotionId string `json:"promotion_id,omitempty" xml:"promotion_id,omitempty"`
	// 优惠活动的描述
	PromotionDesc string `json:"promotion_desc,omitempty" xml:"promotion_desc,omitempty"`
	// 满就送礼物的礼物数量
	GiftItemNum string `json:"gift_item_num,omitempty" xml:"gift_item_num,omitempty"`
	// 赠品的宝贝id
	GiftItemId string `json:"gift_item_id,omitempty" xml:"gift_item_id,omitempty"`
	// 满就送商品时,所送商品的名称
	GiftItemName string `json:"gift_item_name,omitempty" xml:"gift_item_name,omitempty"`
	// 优惠金额(免运费、限时打折时为空),单位:元
	DiscountFee string `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 优惠信息的名称
	PromotionName string `json:"promotion_name,omitempty" xml:"promotion_name,omitempty"`
	// 交易的主订单或子订单号
	Id string `json:"id,omitempty" xml:"id,omitempty"`
}

PromotionDetail 结构体

type PromotionDetails added in v1.2.5

type PromotionDetails 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"`
	// 交易的主订单或子订单号
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

PromotionDetails 结构体

type ReceiverLogistics

type ReceiverLogistics struct {
	// 手机号码
	MobilePhone string `json:"mobile_phone,omitempty" xml:"mobile_phone,omitempty"`
	// 地区名
	AreaName string `json:"area_name,omitempty" xml:"area_name,omitempty"`
	// 城市名
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 收货人
	ReceiverFullName string `json:"receiver_full_name,omitempty" xml:"receiver_full_name,omitempty"`
	// 省份名
	ProvinceName string `json:"province_name,omitempty" xml:"province_name,omitempty"`
	// (忽略)
	WholeAddress string `json:"whole_address,omitempty" xml:"whole_address,omitempty"`
	// 收货地址
	DetailAddress string `json:"detail_address,omitempty" xml:"detail_address,omitempty"`
	// 地区码
	AreaCode int64 `json:"area_code,omitempty" xml:"area_code,omitempty"`
	// divisionId
	DivisionId int64 `json:"division_id,omitempty" xml:"division_id,omitempty"`
	// 省份码
	ProvinceCode int64 `json:"province_code,omitempty" xml:"province_code,omitempty"`
	// 城市码
	CityCode int64 `json:"city_code,omitempty" xml:"city_code,omitempty"`
}

ReceiverLogistics 结构体

type RefundGoodsCreateRequest

type RefundGoodsCreateRequest struct {
	// 退货商品列表
	RefundGoodsSubOrders []RefundGoodsSubOrder `json:"refund_goods_sub_orders,omitempty" xml:"refund_goods_sub_orders>refund_goods_sub_order,omitempty"`
	// 子订单号,默认传商品列表的第一个子订单号
	SubBizOrderId string `json:"sub_biz_order_id,omitempty" xml:"sub_biz_order_id,omitempty"`
	// 门店标识
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 取货类型("FETCH_HOME":上门;"ON_SHOP":到店;"NONE":无需取)
	RefundFetchType string `json:"refund_fetch_type,omitempty" xml:"refund_fetch_type,omitempty"`
	// 主订单号
	MainBizOrderId string `json:"main_biz_order_id,omitempty" xml:"main_biz_order_id,omitempty"`
	// 买家标识
	BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
	// 买家姓名
	BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"`
	// 买家联系方式
	BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"`
	// 买家地址
	BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"`
	// 操作人
	Operator string `json:"operator,omitempty" xml:"operator,omitempty"`
	// 小二备注
	OperatorMemo string `json:"operator_memo,omitempty" xml:"operator_memo,omitempty"`
	// 渠道来源,欧尚外卖默认是19
	InitFrom int64 `json:"init_from,omitempty" xml:"init_from,omitempty"`
}

RefundGoodsCreateRequest 结构体

type RefundGoodsCreateResult

type RefundGoodsCreateResult struct {
	// 退货单id
	RefundGoodsId string `json:"refund_goods_id,omitempty" xml:"refund_goods_id,omitempty"`
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 是否创建成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

RefundGoodsCreateResult 结构体

type RefundGoodsQueryRequest

type RefundGoodsQueryRequest struct {
	// 退货单id
	RefundGoodsId string `json:"refund_goods_id,omitempty" xml:"refund_goods_id,omitempty"`
	// 门店id
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
}

RefundGoodsQueryRequest 结构体

type RefundGoodsQueryResult

type RefundGoodsQueryResult struct {
	// 退货子订单详情
	RefundGoodsSubOrderDetailList []RefundGoodsSubOrderDetail `` /* 132-byte string literal not displayed */
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 取货类型("FETCH_HOME":上门;"ON_SHOP":到店;"NONE":无需取)
	RefundFetchType string `json:"refund_fetch_type,omitempty" xml:"refund_fetch_type,omitempty"`
	// 买家id
	BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
	// 买家姓名
	BuyerName string `json:"buyer_name,omitempty" xml:"buyer_name,omitempty"`
	// 买家电话
	BuyerPhone string `json:"buyer_phone,omitempty" xml:"buyer_phone,omitempty"`
	// 买家地址
	BuyerAddress string `json:"buyer_address,omitempty" xml:"buyer_address,omitempty"`
	// 发起人
	InitOperator string `json:"init_operator,omitempty" xml:"init_operator,omitempty"`
	// 发起退货备注
	InitMemo string `json:"init_memo,omitempty" xml:"init_memo,omitempty"`
	// 发起退货来源
	InitFrom int64 `json:"init_from,omitempty" xml:"init_from,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

RefundGoodsQueryResult 结构体

type RefundGoodsSubOrder

type RefundGoodsSubOrder struct {
	// 退货商品子订单号
	SubBizOrderId string `json:"sub_biz_order_id,omitempty" xml:"sub_biz_order_id,omitempty"`
	// 退货件数
	GoodsAmount string `json:"goods_amount,omitempty" xml:"goods_amount,omitempty"`
	// 取货件数
	FulfillAmount string `json:"fulfill_amount,omitempty" xml:"fulfill_amount,omitempty"`
	// 商品skucode
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 期待取货结束时间
	FulfillEndTime string `json:"fulfill_end_time,omitempty" xml:"fulfill_end_time,omitempty"`
	// 期待取货开始时间
	FulfillStartTime string `json:"fulfill_start_time,omitempty" xml:"fulfill_start_time,omitempty"`
	// 退款单id
	RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 退款金额
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 是否称重
	WeightItem bool `json:"weight_item,omitempty" xml:"weight_item,omitempty"`
	// 是否赠品
	Gift bool `json:"gift,omitempty" xml:"gift,omitempty"`
	// 是否离开货架
	LeftWarehouse bool `json:"left_warehouse,omitempty" xml:"left_warehouse,omitempty"`
}

RefundGoodsSubOrder 结构体

type RefundGoodsSubOrderDetail

type RefundGoodsSubOrderDetail struct {
	// 子订单号
	SubBizOrderId string `json:"sub_biz_order_id,omitempty" xml:"sub_biz_order_id,omitempty"`
	// 履约单号
	FulfillId string `json:"fulfill_id,omitempty" xml:"fulfill_id,omitempty"`
	// 退货单号
	RefundGoodsId string `json:"refund_goods_id,omitempty" xml:"refund_goods_id,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 更新时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 期望取货开始时间
	ExpectFulfilStartTime string `json:"expect_fulfil_start_time,omitempty" xml:"expect_fulfil_start_time,omitempty"`
	// 期望取货结束时间
	ExpectFulfilEndTime string `json:"expect_fulfil_end_time,omitempty" xml:"expect_fulfil_end_time,omitempty"`
	// 期望退货件数
	ExpectRefundAmount string `json:"expect_refund_amount,omitempty" xml:"expect_refund_amount,omitempty"`
	// 实际退货件数
	ActualRefundAmount string `json:"actual_refund_amount,omitempty" xml:"actual_refund_amount,omitempty"`
	// 履约取货件数
	FulfilRefundAmount string `json:"fulfil_refund_amount,omitempty" xml:"fulfil_refund_amount,omitempty"`
	// 同意退货件数
	AgreeRefundAmount string `json:"agree_refund_amount,omitempty" xml:"agree_refund_amount,omitempty"`
	// 退货商品skuId
	SkuId string `json:"sku_id,omitempty" xml:"sku_id,omitempty"`
	// 商品名称
	AuctionTitle string `json:"auction_title,omitempty" xml:"auction_title,omitempty"`
	// 商品主计价单位
	ItemIu string `json:"item_iu,omitempty" xml:"item_iu,omitempty"`
	// 商品销售单位
	ItemBu string `json:"item_bu,omitempty" xml:"item_bu,omitempty"`
	// 退货类型(1:"闪退";2: "标准")
	RefundSpeedType int64 `json:"refund_speed_type,omitempty" xml:"refund_speed_type,omitempty"`
	// 是否称重商品 1:是,0:否
	WeightItem int64 `json:"weight_item,omitempty" xml:"weight_item,omitempty"`
	// Create(10, "已发起退货"),SellerAgree(20, "卖家已同意"),OperatorAccept(30, "配送员已接单"),OperatorReceive(40, "配送员已取货"),Finish(50, "退货结束");
	RefundStatus int64 `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// Init(0,"初始状态"),NoTakeGoods(1, "无需取货"),FailTakeGoods(2, "取货失败"),Timeout(3, "超时关闭"),EnterDock(4, "已入站");
	FinishType int64 `json:"finish_type,omitempty" xml:"finish_type,omitempty"`
}

RefundGoodsSubOrderDetail 结构体

type RefundReq

type RefundReq struct {
	// 代理商订单号
	AgentOrderId string `json:"agent_order_id,omitempty" xml:"agent_order_id,omitempty"`
	// 退票失败码
	FailCode string `json:"fail_code,omitempty" xml:"fail_code,omitempty"`
	// 退票失败原因
	FailReason string `json:"fail_reason,omitempty" xml:"fail_reason,omitempty"`
	// 代理商id
	AgentId int64 `json:"agent_id,omitempty" xml:"agent_id,omitempty"`
	// 退票申请单号
	ApplyId int64 `json:"apply_id,omitempty" xml:"apply_id,omitempty"`
	// 手续费(单位分)
	ChargeFee int64 `json:"charge_fee,omitempty" xml:"charge_fee,omitempty"`
	// 应退额(单位分)
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 平台订单号
	TpOrderId int64 `json:"tp_order_id,omitempty" xml:"tp_order_id,omitempty"`
	// 退票成功标志
	Status bool `json:"status,omitempty" xml:"status,omitempty"`
}

RefundReq 结构体

type RefundSuccessSubOrderRequest

type RefundSuccessSubOrderRequest struct {
	// 子订单id
	SubBizOrderId string `json:"sub_biz_order_id,omitempty" xml:"sub_biz_order_id,omitempty"`
	// 退货单id
	RefundGoodsId string `json:"refund_goods_id,omitempty" xml:"refund_goods_id,omitempty"`
	// 履约单id
	FulfillId string `json:"fulfill_id,omitempty" xml:"fulfill_id,omitempty"`
	// 退款单id
	RefundId string `json:"refund_id,omitempty" xml:"refund_id,omitempty"`
	// 商品编码
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 实际退货数量
	ActualRefundQuantity string `json:"actual_refund_quantity,omitempty" xml:"actual_refund_quantity,omitempty"`
	// 实际退款金额
	RefundAmount string `json:"refund_amount,omitempty" xml:"refund_amount,omitempty"`
	// 期望取货销售数量
	ExpectFetchSaleQuantity string `json:"expect_fetch_sale_quantity,omitempty" xml:"expect_fetch_sale_quantity,omitempty"`
	// 退货状态(1:退货退款;0:仅退款)
	RefundType int64 `json:"refund_type,omitempty" xml:"refund_type,omitempty"`
}

RefundSuccessSubOrderRequest 结构体

type RetryResult added in v1.2.5

type RetryResult struct {
	// 扩展参数
	ExtInfo string `json:"ext_info,omitempty" xml:"ext_info,omitempty"`
	// 错误信息
	Error *TribeError `json:"error,omitempty" xml:"error,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
	// 是否可重试
	Retry bool `json:"retry,omitempty" xml:"retry,omitempty"`
}

RetryResult 结构体

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"`
	// 最近退款的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"`
	// 虚拟服务子订单订单号
	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"`
}

ServiceOrder 结构体

type ServiceOrders added in v1.2.5

type ServiceOrders 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"`
	// 最近退款的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"`
	// 虚拟服务子订单订单号
	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"`
}

ServiceOrders 结构体

type SmAddrModel

type SmAddrModel struct {
	// 详细地址,如果地区Code没有填写,API会根据address反向解析地区Code
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 地区Code
	AreaCode string `json:"area_code,omitempty" xml:"area_code,omitempty"`
	// 地区名
	AreaName string `json:"area_name,omitempty" xml:"area_name,omitempty"`
	// 城市Code
	CityCode string `json:"city_code,omitempty" xml:"city_code,omitempty"`
	// 城市名
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 收货人姓名
	FullName string `json:"full_name,omitempty" xml:"full_name,omitempty"`
	// 收货人手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 收货人电话
	Phone string `json:"phone,omitempty" xml:"phone,omitempty"`
	// 邮编
	PostCode string `json:"post_code,omitempty" xml:"post_code,omitempty"`
	// 省份名
	PrivinceName string `json:"privince_name,omitempty" xml:"privince_name,omitempty"`
	// 省份Code
	ProvinceCode string `json:"province_code,omitempty" xml:"province_code,omitempty"`
}

SmAddrModel 结构体

type Suborders

type Suborders struct {
	// 销售单位(非标品)
	SaleUnit string `json:"sale_unit,omitempty" xml:"sale_unit,omitempty"`
	// 订单履约状态
	OrderFulfillStatus string `json:"order_fulfill_status,omitempty" xml:"order_fulfill_status,omitempty"`
	// sku名称
	SkuName string `json:"sku_name,omitempty" xml:"sku_name,omitempty"`
	// 业务订单标识
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 订单状态
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 商家编码
	MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"`
	// sku编码
	SkuCode string `json:"sku_code,omitempty" xml:"sku_code,omitempty"`
	// 加工方式
	HandlingType string `json:"handling_type,omitempty" xml:"handling_type,omitempty"`
	// 外部关联订单标识
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 取消时的作业节点:WAREHOUSE和DELIVERY_DOCK
	CancelNodeType string `json:"cancel_node_type,omitempty" xml:"cancel_node_type,omitempty"`
	// 取消结果: SUCCESS-已拦截,FAILURE-未拦截,SYSTEM_ERROR-系统异常,PARAM_ERROR-参数错误,BUSINESS_ERROR-业务异常
	CancelResultCode string `json:"cancel_result_code,omitempty" xml:"cancel_result_code,omitempty"`
	// 销售实物库存数量
	SaleStockQuantity string `json:"sale_stock_quantity,omitempty" xml:"sale_stock_quantity,omitempty"`
	// 实物库存单位
	StockUnit string `json:"stock_unit,omitempty" xml:"stock_unit,omitempty"`
	// 门店编码
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 拣货实物库存数量
	PickSaleStockQuantity string `json:"pick_sale_stock_quantity,omitempty" xml:"pick_sale_stock_quantity,omitempty"`
	// 销售数量
	SaleQuantity int64 `json:"sale_quantity,omitempty" xml:"sale_quantity,omitempty"`
	// 销售单价
	SalePrice int64 `json:"sale_price,omitempty" xml:"sale_price,omitempty"`
	// 订单金额
	OriginFee int64 `json:"origin_fee,omitempty" xml:"origin_fee,omitempty"`
	// 子商品优惠金额(可以为0)
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 子商品实际支付金额(=商品原总-优惠金额价)
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
	// 拣货数量
	PickSaleQuantity int64 `json:"pick_sale_quantity,omitempty" xml:"pick_sale_quantity,omitempty"`
	// 拣货金额
	PickStockFee int64 `json:"pick_stock_fee,omitempty" xml:"pick_stock_fee,omitempty"`
	// 是否加工
	Handling bool `json:"handling,omitempty" xml:"handling,omitempty"`
}

Suborders 结构体

type SupplierOrder

type SupplierOrder struct {
	// 外部门店ID
	OuterStoreId string `json:"outer_store_id,omitempty" xml:"outer_store_id,omitempty"`
	// 买家账号
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 商品名称
	ItemTitle string `json:"item_title,omitempty" xml:"item_title,omitempty"`
	// 城市
	City string `json:"city,omitempty" xml:"city,omitempty"`
	// 退款状态,有两种状态,已退款和未退款
	RefundStatus string `json:"refund_status,omitempty" xml:"refund_status,omitempty"`
	// 交易完成时间
	TradeEndTime string `json:"trade_end_time,omitempty" xml:"trade_end_time,omitempty"`
	// 买家ID
	BuyerId string `json:"buyer_id,omitempty" xml:"buyer_id,omitempty"`
	// 交易创建时间
	TradeCreateTime string `json:"trade_create_time,omitempty" xml:"trade_create_time,omitempty"`
	// 子订单ID
	SubOrderId string `json:"sub_order_id,omitempty" xml:"sub_order_id,omitempty"`
	// 外部商品ID,对RT来说就是货号
	OuterItemId string `json:"outer_item_id,omitempty" xml:"outer_item_id,omitempty"`
	// 交易状态
	TradeStatus string `json:"trade_status,omitempty" xml:"trade_status,omitempty"`
	// 供货商身份标识
	Supplier string `json:"supplier,omitempty" xml:"supplier,omitempty"`
	// 退款完成时间
	RefundEndTime string `json:"refund_end_time,omitempty" xml:"refund_end_time,omitempty"`
	// 驿站名称
	StationName string `json:"station_name,omitempty" xml:"station_name,omitempty"`
	// 门店名称
	StoreName string `json:"store_name,omitempty" xml:"store_name,omitempty"`
	// 主订单ID
	MainOrderId string `json:"main_order_id,omitempty" xml:"main_order_id,omitempty"`
	// 营销活动开始时间
	ActivityStartTime string `json:"activity_start_time,omitempty" xml:"activity_start_time,omitempty"`
	// 营销活动扩展属性,可能包含到货时间
	ActivityAttributes string `json:"activity_attributes,omitempty" xml:"activity_attributes,omitempty"`
	// 营销活动类型
	ActivityType string `json:"activity_type,omitempty" xml:"activity_type,omitempty"`
	// 营销活动名称
	ActivityName string `json:"activity_name,omitempty" xml:"activity_name,omitempty"`
	// 营销活动结束时间
	ActivityEndTime string `json:"activity_end_time,omitempty" xml:"activity_end_time,omitempty"`
	// 更新时间
	ModifiedTime string `json:"modified_time,omitempty" xml:"modified_time,omitempty"`
	// 退款金额
	RefundFee int64 `json:"refund_fee,omitempty" xml:"refund_fee,omitempty"`
	// 商品总价,单位为分
	ItemTotalPrice int64 `json:"item_total_price,omitempty" xml:"item_total_price,omitempty"`
	// 购买数量
	BuyAmount int64 `json:"buy_amount,omitempty" xml:"buy_amount,omitempty"`
	// 商品价格,单位为分
	ItemPrice int64 `json:"item_price,omitempty" xml:"item_price,omitempty"`
	// 驿站ID
	StationId int64 `json:"station_id,omitempty" xml:"station_id,omitempty"`
	// 营销活动id
	ActivityId int64 `json:"activity_id,omitempty" xml:"activity_id,omitempty"`
	// 实付金额,单位为分
	ActualTotalFee int64 `json:"actual_total_fee,omitempty" xml:"actual_total_fee,omitempty"`
}

SupplierOrder 结构体

type SupplierOrderQueryDto

type SupplierOrderQueryDto struct {
	// 外部门店ID
	OuterStoreId string `json:"outer_store_id,omitempty" xml:"outer_store_id,omitempty"`
	// 查询交易创建时间在2020-06-03的订单,只接受yyyy-MM-dd格式的字符串
	TradeCreateDate string `json:"trade_create_date,omitempty" xml:"trade_create_date,omitempty"`
	// 供货商身份标识,比如大润发就传DRF
	Supplier string `json:"supplier,omitempty" xml:"supplier,omitempty"`
	// 分页游标
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 分页参数,页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
}

SupplierOrderQueryDto 结构体

type Supportrefundactions

type Supportrefundactions struct {
	// 退款退货操作的描述
	Desc string `json:"desc,omitempty" xml:"desc,omitempty"`
	// 退款退货操作按钮的建议描述,仅仅是一个建议,ISV可以自己定义
	DefaultLabel string `json:"default_label,omitempty" xml:"default_label,omitempty"`
	// 退款退货操作的Code,由系统定义,目前支持的方式有:refundFeeOnly(仅退款),refundFeeWithGoods(退货退款),swithGoods(换货)
	Key string `json:"key,omitempty" xml:"key,omitempty"`
	// 一个纠纷单可能已经在处理流程中,比如退款退货操作,买家已经提交申请,卖家正在审核中,则该字段是true
	InProcess string `json:"in_process,omitempty" xml:"in_process,omitempty"`
}

Supportrefundactions 结构体

type TaobaokoubeitribeopenorderpageAPIRequest added in v1.3.1

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

TaobaokoubeitribeopenorderpageAPIRequest 口碑综合体订单列表信息查询 API请求 taobao.koubei.tribe.open.order.page

查询口碑商圈用户的订单列表信息

func NewTaobaokoubeitribeopenorderpageRequest added in v1.3.1

func NewTaobaokoubeitribeopenorderpageRequest() *TaobaokoubeitribeopenorderpageAPIRequest

NewTaobaokoubeitribeopenorderpageRequest 初始化TaobaokoubeitribeopenorderpageAPIRequest对象

func (TaobaokoubeitribeopenorderpageAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaokoubeitribeopenorderpageAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaokoubeitribeopenorderpageAPIRequest) GetApiParams added in v1.3.1

func (r TaobaokoubeitribeopenorderpageAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaokoubeitribeopenorderpageAPIRequest) GetDataSetId added in v1.3.1

GetDataSetId DataSetId Getter

func (TaobaokoubeitribeopenorderpageAPIRequest) GetOpenId added in v1.3.1

GetOpenId OpenId Getter

func (TaobaokoubeitribeopenorderpageAPIRequest) GetOrderStatus added in v1.3.1

GetOrderStatus OrderStatus Getter

func (TaobaokoubeitribeopenorderpageAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaokoubeitribeopenorderpageAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaokoubeitribeopenorderpageAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaokoubeitribeopenorderpageAPIRequest) SetDataSetId added in v1.3.1

func (r *TaobaokoubeitribeopenorderpageAPIRequest) SetDataSetId(_dataSetId string) error

SetDataSetId is DataSetId Setter 数据集Id

func (*TaobaokoubeitribeopenorderpageAPIRequest) SetOpenId added in v1.3.1

SetOpenId is OpenId Setter 用户openId

func (*TaobaokoubeitribeopenorderpageAPIRequest) SetOrderStatus added in v1.3.1

func (r *TaobaokoubeitribeopenorderpageAPIRequest) SetOrderStatus(_orderStatus string) error

SetOrderStatus is OrderStatus Setter 订单状态;ALL(全部),WAIT_PAY(代付款),WAIT_CONSUME(代消费)

func (*TaobaokoubeitribeopenorderpageAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 起始页

func (*TaobaokoubeitribeopenorderpageAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页大小

type TaobaokoubeitribeopenorderpageAPIResponse added in v1.3.1

type TaobaokoubeitribeopenorderpageAPIResponse struct {
	model.CommonResponse
	TaobaokoubeitribeopenorderpageAPIResponseModel
}

TaobaokoubeitribeopenorderpageAPIResponse 口碑综合体订单列表信息查询 API返回值 taobao.koubei.tribe.open.order.page

查询口碑商圈用户的订单列表信息

type TaobaokoubeitribeopenorderpageAPIResponseModel added in v1.3.1

type TaobaokoubeitribeopenorderpageAPIResponseModel struct {
	XMLName xml.Name `xml:"koubei_tribe_open_order_page_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaokoubeitribeopenorderpageResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaokoubeitribeopenorderpageAPIResponseModel is 口碑综合体订单列表信息查询 成功返回结果

type TaobaokoubeitribeopenorderpageResult added in v1.3.1

type TaobaokoubeitribeopenorderpageResult struct {
	// request唯一ID
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误提示
	Error string `json:"error,omitempty" xml:"error,omitempty"`
	// 订单信息结果
	Data *OrderInfoResultDto `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaokoubeitribeopenorderpageResult 结构体

type TaobaolifereservationitemorderchangeAPIRequest added in v1.3.1

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

TaobaolifereservationitemorderchangeAPIRequest 生服购后预约单外部发起变更 API请求 taobao.life.reservation.item.order.change

生服购后预约单外部发起变更,例如改期、取消。目前体检场景,用户会直接联系ISV改期/取消,因此开放给ISV这块的能力

func NewTaobaolifereservationitemorderchangeRequest added in v1.3.1

func NewTaobaolifereservationitemorderchangeRequest() *TaobaolifereservationitemorderchangeAPIRequest

NewTaobaolifereservationitemorderchangeRequest 初始化TaobaolifereservationitemorderchangeAPIRequest对象

func (TaobaolifereservationitemorderchangeAPIRequest) GetAction added in v1.3.1

GetAction Action Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaolifereservationitemorderchangeAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaolifereservationitemorderchangeAPIRequest) GetExtInfo added in v1.3.1

GetExtInfo ExtInfo Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaolifereservationitemorderchangeAPIRequest) GetReservationOrderId added in v1.3.1

func (r TaobaolifereservationitemorderchangeAPIRequest) GetReservationOrderId() string

GetReservationOrderId ReservationOrderId Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetReserveEndTime added in v1.3.1

GetReserveEndTime ReserveEndTime Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetReserveStartTime added in v1.3.1

GetReserveStartTime ReserveStartTime Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetTargetFulfillmentStatus added in v1.3.1

func (r TaobaolifereservationitemorderchangeAPIRequest) GetTargetFulfillmentStatus() string

GetTargetFulfillmentStatus TargetFulfillmentStatus Getter

func (TaobaolifereservationitemorderchangeAPIRequest) GetTicketId added in v1.3.1

GetTicketId TicketId Getter

func (*TaobaolifereservationitemorderchangeAPIRequest) SetAction added in v1.3.1

SetAction is Action Setter 改期:MODIFY ;取消:CANCEL;推进履约:PUSH_FULFILLMENT

func (*TaobaolifereservationitemorderchangeAPIRequest) SetExtInfo added in v1.3.1

SetExtInfo is ExtInfo Setter 扩展信息

func (*TaobaolifereservationitemorderchangeAPIRequest) SetReservationOrderId added in v1.3.1

func (r *TaobaolifereservationitemorderchangeAPIRequest) SetReservationOrderId(_reservationOrderId string) error

SetReservationOrderId is ReservationOrderId Setter 预约单号。与凭证ID二选一,优先级高

func (*TaobaolifereservationitemorderchangeAPIRequest) SetReserveEndTime added in v1.3.1

func (r *TaobaolifereservationitemorderchangeAPIRequest) SetReserveEndTime(_reserveEndTime string) error

SetReserveEndTime is ReserveEndTime Setter 改期必填,格式:yyyy-MM-dd HH:mm。时分固定23:59

func (*TaobaolifereservationitemorderchangeAPIRequest) SetReserveStartTime added in v1.3.1

func (r *TaobaolifereservationitemorderchangeAPIRequest) SetReserveStartTime(_reserveStartTime string) error

SetReserveStartTime is ReserveStartTime Setter 改期必填,格式:yyyy-MM-dd HH:mm。时分固定00:00

func (*TaobaolifereservationitemorderchangeAPIRequest) SetTargetFulfillmentStatus added in v1.3.1

func (r *TaobaolifereservationitemorderchangeAPIRequest) SetTargetFulfillmentStatus(_targetFulfillmentStatus string) error

SetTargetFulfillmentStatus is TargetFulfillmentStatus Setter 目标履约状态。 枚举值:PREPARING,PREPARED,PROCESSING,PROCESSED,DELIVERING,FINISHED。详以接入文档中描述的场景对接

func (*TaobaolifereservationitemorderchangeAPIRequest) SetTicketId added in v1.3.1

SetTicketId is TicketId Setter 凭证ID。与预约单号二选一,优先级低

type TaobaolifereservationitemorderchangeAPIResponse added in v1.3.1

type TaobaolifereservationitemorderchangeAPIResponse struct {
	model.CommonResponse
	TaobaolifereservationitemorderchangeAPIResponseModel
}

TaobaolifereservationitemorderchangeAPIResponse 生服购后预约单外部发起变更 API返回值 taobao.life.reservation.item.order.change

生服购后预约单外部发起变更,例如改期、取消。目前体检场景,用户会直接联系ISV改期/取消,因此开放给ISV这块的能力

type TaobaolifereservationitemorderchangeAPIResponseModel added in v1.3.1

type TaobaolifereservationitemorderchangeAPIResponseModel struct {
	XMLName xml.Name `xml:"life_reservation_item_order_change_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaolifereservationitemorderchangeResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaolifereservationitemorderchangeAPIResponseModel is 生服购后预约单外部发起变更 成功返回结果

type TaobaolifereservationitemorderchangeResult added in v1.3.1

type TaobaolifereservationitemorderchangeResult struct {
	// 内部trace 用于排查问题
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误
	Error *TribeError `json:"error,omitempty" xml:"error,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaolifereservationitemorderchangeResult 结构体

type TaobaolifereservationitemorderconfirmAPIRequest added in v1.3.1

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

TaobaolifereservationitemorderconfirmAPIRequest 生服购后预约单外部确认 API请求 taobao.life.reservation.item.order.confirm

生服团购下单预约后,用户改期/取消,外调ISV。ISV人工确认后调接口同意或驳回

func NewTaobaolifereservationitemorderconfirmRequest added in v1.3.1

func NewTaobaolifereservationitemorderconfirmRequest() *TaobaolifereservationitemorderconfirmAPIRequest

NewTaobaolifereservationitemorderconfirmRequest 初始化TaobaolifereservationitemorderconfirmAPIRequest对象

func (TaobaolifereservationitemorderconfirmAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaolifereservationitemorderconfirmAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaolifereservationitemorderconfirmAPIRequest) GetOptType added in v1.3.1

GetOptType OptType Getter

func (TaobaolifereservationitemorderconfirmAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaolifereservationitemorderconfirmAPIRequest) GetReservationOrderId added in v1.3.1

func (r TaobaolifereservationitemorderconfirmAPIRequest) GetReservationOrderId() string

GetReservationOrderId ReservationOrderId Getter

func (TaobaolifereservationitemorderconfirmAPIRequest) GetTicketId added in v1.3.1

GetTicketId TicketId Getter

func (*TaobaolifereservationitemorderconfirmAPIRequest) SetOptType added in v1.3.1

SetOptType is OptType Setter 审核结果。PASS:通过;REJECT:驳回

func (*TaobaolifereservationitemorderconfirmAPIRequest) SetReservationOrderId added in v1.3.1

func (r *TaobaolifereservationitemorderconfirmAPIRequest) SetReservationOrderId(_reservationOrderId string) error

SetReservationOrderId is ReservationOrderId Setter 预约单号。与凭证ID二选一,优先级高

func (*TaobaolifereservationitemorderconfirmAPIRequest) SetTicketId added in v1.3.1

SetTicketId is TicketId Setter 凭证ID。与预约单号二选一,优先级低

type TaobaolifereservationitemorderconfirmAPIResponse added in v1.3.1

type TaobaolifereservationitemorderconfirmAPIResponse struct {
	model.CommonResponse
	TaobaolifereservationitemorderconfirmAPIResponseModel
}

TaobaolifereservationitemorderconfirmAPIResponse 生服购后预约单外部确认 API返回值 taobao.life.reservation.item.order.confirm

生服团购下单预约后,用户改期/取消,外调ISV。ISV人工确认后调接口同意或驳回

type TaobaolifereservationitemorderconfirmAPIResponseModel added in v1.3.1

type TaobaolifereservationitemorderconfirmAPIResponseModel struct {
	XMLName xml.Name `xml:"life_reservation_item_order_confirm_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaolifereservationitemorderconfirmResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaolifereservationitemorderconfirmAPIResponseModel is 生服购后预约单外部确认 成功返回结果

type TaobaolifereservationitemorderconfirmResult added in v1.3.1

type TaobaolifereservationitemorderconfirmResult struct {
	// 内部trace 用于排查问题
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误
	Error *TribeError `json:"error,omitempty" xml:"error,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaolifereservationitemorderconfirmResult 结构体

type TaobaolifereservationtradeconsumenoticeAPIRequest added in v1.3.1

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

TaobaolifereservationtradeconsumenoticeAPIRequest 生服购后预约外部核销 API请求 taobao.life.reservation.trade.consume.notice

生服团购商品,购后预约。外部ISV进行核销

func NewTaobaolifereservationtradeconsumenoticeRequest added in v1.3.1

func NewTaobaolifereservationtradeconsumenoticeRequest() *TaobaolifereservationtradeconsumenoticeAPIRequest

NewTaobaolifereservationtradeconsumenoticeRequest 初始化TaobaolifereservationtradeconsumenoticeAPIRequest对象

func (TaobaolifereservationtradeconsumenoticeAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaolifereservationtradeconsumenoticeAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaolifereservationtradeconsumenoticeAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaolifereservationtradeconsumenoticeAPIRequest) GetTicketId added in v1.3.1

GetTicketId TicketId Getter

func (TaobaolifereservationtradeconsumenoticeAPIRequest) GetTradeNo added in v1.3.1

GetTradeNo TradeNo Getter

func (*TaobaolifereservationtradeconsumenoticeAPIRequest) SetTicketId added in v1.3.1

SetTicketId is TicketId Setter 凭证ID

func (*TaobaolifereservationtradeconsumenoticeAPIRequest) SetTradeNo added in v1.3.1

SetTradeNo is TradeNo Setter 淘宝主单号

type TaobaolifereservationtradeconsumenoticeAPIResponse added in v1.3.1

type TaobaolifereservationtradeconsumenoticeAPIResponse struct {
	model.CommonResponse
	TaobaolifereservationtradeconsumenoticeAPIResponseModel
}

TaobaolifereservationtradeconsumenoticeAPIResponse 生服购后预约外部核销 API返回值 taobao.life.reservation.trade.consume.notice

生服团购商品,购后预约。外部ISV进行核销

type TaobaolifereservationtradeconsumenoticeAPIResponseModel added in v1.3.1

type TaobaolifereservationtradeconsumenoticeAPIResponseModel struct {
	XMLName xml.Name `xml:"life_reservation_trade_consume_notice_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *TaobaolifereservationtradeconsumenoticeResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaolifereservationtradeconsumenoticeAPIResponseModel is 生服购后预约外部核销 成功返回结果

type TaobaolifereservationtradeconsumenoticeResult added in v1.3.1

type TaobaolifereservationtradeconsumenoticeResult struct {
	// traceId
	TraceId string `json:"trace_id,omitempty" xml:"trace_id,omitempty"`
	// 错误
	Error *TribeError `json:"error,omitempty" xml:"error,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaolifereservationtradeconsumenoticeResult 结构体

type TaobaoofnselfrecycleauthAPIRequest added in v1.3.1

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

TaobaoofnselfrecycleauthAPIRequest 自助回收鉴权 API请求 taobao.ofn.self.recycle.auth

自助回收鉴权

func NewTaobaoofnselfrecycleauthRequest added in v1.3.1

func NewTaobaoofnselfrecycleauthRequest() *TaobaoofnselfrecycleauthAPIRequest

NewTaobaoofnselfrecycleauthRequest 初始化TaobaoofnselfrecycleauthAPIRequest对象

func (TaobaoofnselfrecycleauthAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoofnselfrecycleauthAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoofnselfrecycleauthAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoofnselfrecycleauthAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoofnselfrecycleauthAPIRequest) GetOpenUid added in v1.3.1

GetOpenUid OpenUid Getter

func (TaobaoofnselfrecycleauthAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoofnselfrecycleauthAPIRequest) GetRecycleOrderId added in v1.3.1

func (r TaobaoofnselfrecycleauthAPIRequest) GetRecycleOrderId() string

GetRecycleOrderId RecycleOrderId Getter

func (*TaobaoofnselfrecycleauthAPIRequest) SetOpenUid added in v1.3.1

func (r *TaobaoofnselfrecycleauthAPIRequest) SetOpenUid(_openUid string) error

SetOpenUid is OpenUid Setter 开放小程序ID

func (*TaobaoofnselfrecycleauthAPIRequest) SetRecycleOrderId added in v1.3.1

func (r *TaobaoofnselfrecycleauthAPIRequest) SetRecycleOrderId(_recycleOrderId string) error

SetRecycleOrderId is RecycleOrderId Setter 回收单ID

type TaobaoofnselfrecycleauthAPIResponse added in v1.3.1

type TaobaoofnselfrecycleauthAPIResponse struct {
	model.CommonResponse
	TaobaoofnselfrecycleauthAPIResponseModel
}

TaobaoofnselfrecycleauthAPIResponse 自助回收鉴权 API返回值 taobao.ofn.self.recycle.auth

自助回收鉴权

type TaobaoofnselfrecycleauthAPIResponseModel added in v1.3.1

type TaobaoofnselfrecycleauthAPIResponseModel struct {
	XMLName xml.Name `xml:"ofn_self_recycle_auth_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 鉴权结果
	Data *OfnSelfRecycleAuthDto `json:"data,omitempty" xml:"data,omitempty"`
}

TaobaoofnselfrecycleauthAPIResponseModel is 自助回收鉴权 成功返回结果

type TaobaoopentradecustomizationrefundenableAPIRequest added in v1.3.1

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

TaobaoopentradecustomizationrefundenableAPIRequest 定制订单设置允许仅退款 API请求 taobao.opentrade.customization.refund.enable

定制订单设置允许仅退款

func NewTaobaoopentradecustomizationrefundenableRequest added in v1.3.1

func NewTaobaoopentradecustomizationrefundenableRequest() *TaobaoopentradecustomizationrefundenableAPIRequest

NewTaobaoopentradecustomizationrefundenableRequest 初始化TaobaoopentradecustomizationrefundenableAPIRequest对象

func (TaobaoopentradecustomizationrefundenableAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopentradecustomizationrefundenableAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopentradecustomizationrefundenableAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoopentradecustomizationrefundenableAPIRequest) GetTradeId added in v1.3.1

GetTradeId TradeId Getter

func (*TaobaoopentradecustomizationrefundenableAPIRequest) SetTradeId added in v1.3.1

SetTradeId is TradeId Setter 主订单ID

type TaobaoopentradecustomizationrefundenableAPIResponse added in v1.3.1

type TaobaoopentradecustomizationrefundenableAPIResponse struct {
	model.CommonResponse
	TaobaoopentradecustomizationrefundenableAPIResponseModel
}

TaobaoopentradecustomizationrefundenableAPIResponse 定制订单设置允许仅退款 API返回值 taobao.opentrade.customization.refund.enable

定制订单设置允许仅退款

type TaobaoopentradecustomizationrefundenableAPIResponseModel added in v1.3.1

type TaobaoopentradecustomizationrefundenableAPIResponseModel struct {
	XMLName xml.Name `xml:"opentrade_customization_refund_enable_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 是否设置成功
	Result bool `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoopentradecustomizationrefundenableAPIResponseModel is 定制订单设置允许仅退款 成功返回结果

type TaobaoopentradegetAPIRequest added in v1.3.1

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

TaobaoopentradegetAPIRequest 获取单笔交易的部分信息(商家应用使用) API请求 taobao.open.trade.get

获取单笔交易的部分信息</br> 1.入参fields中传入buyer_nick ,才能返回buyer_open_id

func NewTaobaoopentradegetRequest added in v1.3.1

func NewTaobaoopentradegetRequest() *TaobaoopentradegetAPIRequest

NewTaobaoopentradegetRequest 初始化TaobaoopentradegetAPIRequest对象

func (TaobaoopentradegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopentradegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopentradegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoopentradegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopentradegetAPIRequest) GetFields added in v1.3.1

func (r TaobaoopentradegetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaoopentradegetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaoopentradegetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoopentradegetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaoopentradegetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoopentradegetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。

func (*TaobaoopentradegetAPIRequest) SetTid added in v1.3.1

func (r *TaobaoopentradegetAPIRequest) SetTid(_tid int64) error

SetTid is Tid Setter 交易编号

type TaobaoopentradegetAPIResponse added in v1.3.1

type TaobaoopentradegetAPIResponse struct {
	model.CommonResponse
	TaobaoopentradegetAPIResponseModel
}

TaobaoopentradegetAPIResponse 获取单笔交易的部分信息(商家应用使用) API返回值 taobao.open.trade.get

获取单笔交易的部分信息</br> 1.入参fields中传入buyer_nick ,才能返回buyer_open_id

type TaobaoopentradegetAPIResponseModel added in v1.3.1

type TaobaoopentradegetAPIResponseModel struct {
	XMLName xml.Name `xml:"open_trade_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息
	Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"`
}

TaobaoopentradegetAPIResponseModel is 获取单笔交易的部分信息(商家应用使用) 成功返回结果

type TaobaoopentradessoldgetAPIRequest added in v1.3.1

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

TaobaoopentradessoldgetAPIRequest 查询卖家已卖出的交易数据(商家应用使用) API请求 taobao.open.trades.sold.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)<br/> 1. 返回的数据结果是以订单的创建时间倒序排列的。<br/> 注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,通常都是这个原因造成。解决办法就是type加上订单类型就可正常返回了。<br/> 2.入参fields中传入buyer_nick ,才能返回buyer_open_id

func NewTaobaoopentradessoldgetRequest added in v1.3.1

func NewTaobaoopentradessoldgetRequest() *TaobaoopentradessoldgetAPIRequest

NewTaobaoopentradessoldgetRequest 初始化TaobaoopentradessoldgetAPIRequest对象

func (TaobaoopentradessoldgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoopentradessoldgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoopentradessoldgetAPIRequest) GetBuyerOpenId added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetBuyerOpenId() string

GetBuyerOpenId BuyerOpenId Getter

func (TaobaoopentradessoldgetAPIRequest) GetEndCreated added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaoopentradessoldgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaoopentradessoldgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaoopentradessoldgetAPIRequest) GetPageSize added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (TaobaoopentradessoldgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoopentradessoldgetAPIRequest) GetStartCreated added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaoopentradessoldgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaoopentradessoldgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaoopentradessoldgetAPIRequest) GetUseHasNext added in v1.3.1

func (r TaobaoopentradessoldgetAPIRequest) GetUseHasNext() bool

GetUseHasNext UseHasNext Getter

func (*TaobaoopentradessoldgetAPIRequest) SetBuyerOpenId added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error

SetBuyerOpenId is BuyerOpenId Setter 买家的openId

func (*TaobaoopentradessoldgetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetEndCreated(_endCreated string) error

SetEndCreated is EndCreated Setter 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaoopentradessoldgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核

func (*TaobaoopentradessoldgetAPIRequest) SetPageNo added in v1.3.1

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

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

func (*TaobaoopentradessoldgetAPIRequest) SetPageSize added in v1.3.1

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

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

func (*TaobaoopentradessoldgetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetStartCreated(_startCreated string) error

SetStartCreated is StartCreated Setter 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaoopentradessoldgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。

func (*TaobaoopentradessoldgetAPIRequest) SetType added in v1.3.1

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 (*TaobaoopentradessoldgetAPIRequest) SetUseHasNext added in v1.3.1

func (r *TaobaoopentradessoldgetAPIRequest) SetUseHasNext(_useHasNext bool) error

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

type TaobaoopentradessoldgetAPIResponse added in v1.3.1

type TaobaoopentradessoldgetAPIResponse struct {
	model.CommonResponse
	TaobaoopentradessoldgetAPIResponseModel
}

TaobaoopentradessoldgetAPIResponse 查询卖家已卖出的交易数据(商家应用使用) API返回值 taobao.open.trades.sold.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息)<br/> 1. 返回的数据结果是以订单的创建时间倒序排列的。<br/> 注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,通常都是这个原因造成。解决办法就是type加上订单类型就可正常返回了。<br/> 2.入参fields中传入buyer_nick ,才能返回buyer_open_id

type TaobaoopentradessoldgetAPIResponseModel added in v1.3.1

type TaobaoopentradessoldgetAPIResponseModel struct {
	XMLName xml.Name `xml:"open_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"`
}

TaobaoopentradessoldgetAPIResponseModel is 查询卖家已卖出的交易数据(商家应用使用) 成功返回结果

type TaobaordcaligeniusordermsgupdateAPIRequest added in v1.3.1

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

TaobaordcaligeniusordermsgupdateAPIRequest 订单消息状态回传 API请求 taobao.rdc.aligenius.ordermsg.update

用于订单消息处理状态回传

func NewTaobaordcaligeniusordermsgupdateRequest added in v1.3.1

func NewTaobaordcaligeniusordermsgupdateRequest() *TaobaordcaligeniusordermsgupdateAPIRequest

NewTaobaordcaligeniusordermsgupdateRequest 初始化TaobaordcaligeniusordermsgupdateAPIRequest对象

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetApiParams added in v1.3.1

func (r TaobaordcaligeniusordermsgupdateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetOid added in v1.3.1

GetOid Oid Getter

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaordcaligeniusordermsgupdateAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaordcaligeniusordermsgupdateAPIRequest) SetOid added in v1.3.1

SetOid is Oid Setter 子订单(消息中传的子订单)

func (*TaobaordcaligeniusordermsgupdateAPIRequest) SetStatus added in v1.3.1

SetStatus is Status Setter 处理状态,1=成功,2=处理失败

func (*TaobaordcaligeniusordermsgupdateAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 主订单(消息中传的主订单)

type TaobaordcaligeniusordermsgupdateAPIResponse added in v1.3.1

type TaobaordcaligeniusordermsgupdateAPIResponse struct {
	model.CommonResponse
	TaobaordcaligeniusordermsgupdateAPIResponseModel
}

TaobaordcaligeniusordermsgupdateAPIResponse 订单消息状态回传 API返回值 taobao.rdc.aligenius.ordermsg.update

用于订单消息处理状态回传

type TaobaordcaligeniusordermsgupdateAPIResponseModel added in v1.3.1

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

TaobaordcaligeniusordermsgupdateAPIResponseModel is 订单消息状态回传 成功返回结果

type TaobaordcaligeniusordermsgupdateResult added in v1.3.1

type TaobaordcaligeniusordermsgupdateResult struct {
	// resultData
	ResultData string `json:"result_data,omitempty" xml:"result_data,omitempty"`
	// errorInfo
	ErrorInfo string `json:"error_info,omitempty" xml:"error_info,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TaobaordcaligeniusordermsgupdateResult 结构体

type TaobaoservindustryfinancegeexorderloanAPIRequest added in v1.3.1

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

TaobaoservindustryfinancegeexorderloanAPIRequest 即科放款信息回调api API请求 taobao.servindustry.finance.geex.order.loan

即科放款信息api

func NewTaobaoservindustryfinancegeexorderloanRequest added in v1.3.1

func NewTaobaoservindustryfinancegeexorderloanRequest() *TaobaoservindustryfinancegeexorderloanAPIRequest

NewTaobaoservindustryfinancegeexorderloanRequest 初始化TaobaoservindustryfinancegeexorderloanAPIRequest对象

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetAlscOrderId added in v1.3.1

GetAlscOrderId AlscOrderId Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetLoanFlowId added in v1.3.1

GetLoanFlowId LoanFlowId Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetLoanPrice added in v1.3.1

GetLoanPrice LoanPrice Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetLoanStatus added in v1.3.1

GetLoanStatus LoanStatus Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetLoanTime added in v1.3.1

GetLoanTime LoanTime Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetPriceUnit added in v1.3.1

GetPriceUnit PriceUnit Getter

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoservindustryfinancegeexorderloanAPIRequest) GetUpdateTime added in v1.3.1

GetUpdateTime UpdateTime Getter

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetAlscOrderId added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderloanAPIRequest) SetAlscOrderId(_alscOrderId string) error

SetAlscOrderId is AlscOrderId Setter 本地订单号

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanFlowId added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanFlowId(_loanFlowId string) error

SetLoanFlowId is LoanFlowId Setter 放款流水

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanPrice added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanPrice(_loanPrice int64) error

SetLoanPrice is LoanPrice Setter 放款金额

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanStatus added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanStatus(_loanStatus string) error

SetLoanStatus is LoanStatus Setter 放款状态

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetLoanTime added in v1.3.1

SetLoanTime is LoanTime Setter 放款时间

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetPriceUnit added in v1.3.1

SetPriceUnit is PriceUnit Setter 金额单位

func (*TaobaoservindustryfinancegeexorderloanAPIRequest) SetUpdateTime added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderloanAPIRequest) SetUpdateTime(_updateTime int64) error

SetUpdateTime is UpdateTime Setter 更新时间

type TaobaoservindustryfinancegeexorderloanAPIResponse added in v1.3.1

type TaobaoservindustryfinancegeexorderloanAPIResponse struct {
	model.CommonResponse
	TaobaoservindustryfinancegeexorderloanAPIResponseModel
}

TaobaoservindustryfinancegeexorderloanAPIResponse 即科放款信息回调api API返回值 taobao.servindustry.finance.geex.order.loan

即科放款信息api

type TaobaoservindustryfinancegeexorderloanAPIResponseModel added in v1.3.1

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

TaobaoservindustryfinancegeexorderloanAPIResponseModel is 即科放款信息回调api 成功返回结果

type TaobaoservindustryfinancegeexorderupdateAPIRequest added in v1.3.1

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

TaobaoservindustryfinancegeexorderupdateAPIRequest 即科订单结果更新回调 API请求 taobao.servindustry.finance.geex.order.update

即科订单结果更新回调本地接口

func NewTaobaoservindustryfinancegeexorderupdateRequest added in v1.3.1

func NewTaobaoservindustryfinancegeexorderupdateRequest() *TaobaoservindustryfinancegeexorderupdateAPIRequest

NewTaobaoservindustryfinancegeexorderupdateRequest 初始化TaobaoservindustryfinancegeexorderupdateAPIRequest对象

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetAlscOrderId added in v1.3.1

GetAlscOrderId AlscOrderId Getter

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetApplyStatus added in v1.3.1

GetApplyStatus ApplyStatus Getter

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoservindustryfinancegeexorderupdateAPIRequest) GetReason added in v1.3.1

GetReason Reason Getter

func (*TaobaoservindustryfinancegeexorderupdateAPIRequest) SetAlscOrderId added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderupdateAPIRequest) SetAlscOrderId(_alscOrderId string) error

SetAlscOrderId is AlscOrderId Setter 订单号

func (*TaobaoservindustryfinancegeexorderupdateAPIRequest) SetApplyStatus added in v1.3.1

func (r *TaobaoservindustryfinancegeexorderupdateAPIRequest) SetApplyStatus(_applyStatus string) error

SetApplyStatus is ApplyStatus Setter 状态

func (*TaobaoservindustryfinancegeexorderupdateAPIRequest) SetReason added in v1.3.1

SetReason is Reason Setter 原因

type TaobaoservindustryfinancegeexorderupdateAPIResponse added in v1.3.1

type TaobaoservindustryfinancegeexorderupdateAPIResponse struct {
	model.CommonResponse
	TaobaoservindustryfinancegeexorderupdateAPIResponseModel
}

TaobaoservindustryfinancegeexorderupdateAPIResponse 即科订单结果更新回调 API返回值 taobao.servindustry.finance.geex.order.update

即科订单结果更新回调本地接口

type TaobaoservindustryfinancegeexorderupdateAPIResponseModel added in v1.3.1

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

TaobaoservindustryfinancegeexorderupdateAPIResponseModel is 即科订单结果更新回调 成功返回结果

type TaobaoservindustryfinanceinsuranceagreementsignAPIRequest added in v1.3.1

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

TaobaoservindustryfinanceinsuranceagreementsignAPIRequest 保司合同签约后回调接口 API请求 taobao.servindustry.finance.insurance.agreement.sign

保司合同签约后回调接口

func NewTaobaoservindustryfinanceinsuranceagreementsignRequest added in v1.3.1

func NewTaobaoservindustryfinanceinsuranceagreementsignRequest() *TaobaoservindustryfinanceinsuranceagreementsignAPIRequest

NewTaobaoservindustryfinanceinsuranceagreementsignRequest 初始化TaobaoservindustryfinanceinsuranceagreementsignAPIRequest对象

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetInnerAgreementId added in v1.3.1

GetInnerAgreementId InnerAgreementId Getter

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetOutAgreementId added in v1.3.1

GetOutAgreementId OutAgreementId Getter

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) GetUniqueCode added in v1.3.1

GetUniqueCode UniqueCode Getter

func (*TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) SetInnerAgreementId added in v1.3.1

func (r *TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) SetInnerAgreementId(_innerAgreementId string) error

SetInnerAgreementId is InnerAgreementId Setter 内部模板id

func (*TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) SetOutAgreementId added in v1.3.1

func (r *TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) SetOutAgreementId(_outAgreementId string) error

SetOutAgreementId is OutAgreementId Setter 保司模板id

func (*TaobaoservindustryfinanceinsuranceagreementsignAPIRequest) SetUniqueCode added in v1.3.1

SetUniqueCode is UniqueCode Setter 唯一码

type TaobaoservindustryfinanceinsuranceagreementsignAPIResponse added in v1.3.1

type TaobaoservindustryfinanceinsuranceagreementsignAPIResponse struct {
	model.CommonResponse
	TaobaoservindustryfinanceinsuranceagreementsignAPIResponseModel
}

TaobaoservindustryfinanceinsuranceagreementsignAPIResponse 保司合同签约后回调接口 API返回值 taobao.servindustry.finance.insurance.agreement.sign

保司合同签约后回调接口

type TaobaoservindustryfinanceinsuranceagreementsignAPIResponseModel added in v1.3.1

type TaobaoservindustryfinanceinsuranceagreementsignAPIResponseModel struct {
	XMLName xml.Name `xml:"servindustry_finance_insurance_agreement_sign_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回参数
	Result *RetryResult `json:"result,omitempty" xml:"result,omitempty"`
}

TaobaoservindustryfinanceinsuranceagreementsignAPIResponseModel is 保司合同签约后回调接口 成功返回结果

type TaobaotradegetAPIRequest added in v1.3.1

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

TaobaotradegetAPIRequest 获取单笔交易的部分信息(性能高) API请求 taobao.trade.get

获取单笔交易的部分信息 <br/><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a>

func NewTaobaotradegetRequest added in v1.3.1

func NewTaobaotradegetRequest() *TaobaotradegetAPIRequest

NewTaobaotradegetRequest 初始化TaobaotradegetAPIRequest对象

func (TaobaotradegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradegetAPIRequest) GetFields added in v1.3.1

func (r TaobaotradegetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaotradegetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotradegetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradegetAPIRequest) GetTid added in v1.3.1

func (r TaobaotradegetAPIRequest) GetTid() int64

GetTid Tid Getter

func (*TaobaotradegetAPIRequest) SetFields added in v1.3.1

func (r *TaobaotradegetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。

func (*TaobaotradegetAPIRequest) SetTid added in v1.3.1

func (r *TaobaotradegetAPIRequest) SetTid(_tid int64) error

SetTid is Tid Setter 交易编号

type TaobaotradegetAPIResponse added in v1.3.1

type TaobaotradegetAPIResponse struct {
	model.CommonResponse
	TaobaotradegetAPIResponseModel
}

TaobaotradegetAPIResponse 获取单笔交易的部分信息(性能高) API返回值 taobao.trade.get

获取单笔交易的部分信息 <br/><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a>

type TaobaotradegetAPIResponseModel added in v1.3.1

type TaobaotradegetAPIResponseModel struct {
	XMLName xml.Name `xml:"trade_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息
	Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"`
}

TaobaotradegetAPIResponseModel is 获取单笔交易的部分信息(性能高) 成功返回结果

type TaobaotradesimplegetAPIRequest added in v1.3.1

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

TaobaotradesimplegetAPIRequest 获取交易订单的简易信息 API请求 taobao.trade.simple.get

获取CRM单表交易的详情 <br/>1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 <br/>2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 <br/>3. 获取红包优惠金额可以使用字段 coupon_fee <br/>4. 请按需获取字段,减少TOP系统的压力 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

func NewTaobaotradesimplegetRequest added in v1.3.1

func NewTaobaotradesimplegetRequest() *TaobaotradesimplegetAPIRequest

NewTaobaotradesimplegetRequest 初始化TaobaotradesimplegetAPIRequest对象

func (TaobaotradesimplegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradesimplegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradesimplegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradesimplegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradesimplegetAPIRequest) GetFields added in v1.3.1

func (r TaobaotradesimplegetAPIRequest) GetFields() string

GetFields Fields Getter

func (TaobaotradesimplegetAPIRequest) GetRawParams added in v1.3.1

func (r TaobaotradesimplegetAPIRequest) GetRawParams() model.Params

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradesimplegetAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaotradesimplegetAPIRequest) SetFields added in v1.3.1

func (r *TaobaotradesimplegetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。

func (*TaobaotradesimplegetAPIRequest) SetTid added in v1.3.1

func (r *TaobaotradesimplegetAPIRequest) SetTid(_tid int64) error

SetTid is Tid Setter 交易编号

type TaobaotradesimplegetAPIResponse added in v1.3.1

type TaobaotradesimplegetAPIResponse struct {
	model.CommonResponse
	TaobaotradesimplegetAPIResponseModel
}

TaobaotradesimplegetAPIResponse 获取交易订单的简易信息 API返回值 taobao.trade.simple.get

获取CRM单表交易的详情 <br/>1. 只有单笔订单的情况下Trade数据结构中才包含商品相关的信息 <br/>2. 获取到的Order中的payment字段在单笔子订单时包含物流费用,多笔子订单时不包含物流费用 <br/>3. 获取红包优惠金额可以使用字段 coupon_fee <br/>4. 请按需获取字段,减少TOP系统的压力 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

type TaobaotradesimplegetAPIResponseModel added in v1.3.1

type TaobaotradesimplegetAPIResponseModel struct {
	XMLName xml.Name `xml:"trade_simple_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 交易主订单信息
	Trade *Trade `json:"trade,omitempty" xml:"trade,omitempty"`
}

TaobaotradesimplegetAPIResponseModel is 获取交易订单的简易信息 成功返回结果

type TaobaotradessimplesoldgetAPIRequest added in v1.3.1

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

TaobaotradessimplesoldgetAPIRequest 查询卖家已卖出的交易简易数据 API请求 taobao.trades.simple.sold.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单信息。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

func NewTaobaotradessimplesoldgetRequest added in v1.3.1

func NewTaobaotradessimplesoldgetRequest() *TaobaotradessimplesoldgetAPIRequest

NewTaobaotradessimplesoldgetRequest 初始化TaobaotradessimplesoldgetAPIRequest对象

func (TaobaotradessimplesoldgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradessimplesoldgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradessimplesoldgetAPIRequest) GetBuyerNick added in v1.3.1

GetBuyerNick BuyerNick Getter

func (TaobaotradessimplesoldgetAPIRequest) GetBuyerOpenId added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetBuyerOpenId() string

GetBuyerOpenId BuyerOpenId Getter

func (TaobaotradessimplesoldgetAPIRequest) GetEndCreated added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaotradessimplesoldgetAPIRequest) GetExtType added in v1.3.1

GetExtType ExtType Getter

func (TaobaotradessimplesoldgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaotradessimplesoldgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaotradessimplesoldgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaotradessimplesoldgetAPIRequest) GetRateStatus added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetRateStatus() string

GetRateStatus RateStatus Getter

func (TaobaotradessimplesoldgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradessimplesoldgetAPIRequest) GetStartCreated added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaotradessimplesoldgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaotradessimplesoldgetAPIRequest) GetTag added in v1.3.1

GetTag Tag Getter

func (TaobaotradessimplesoldgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaotradessimplesoldgetAPIRequest) GetUseHasNext added in v1.3.1

func (r TaobaotradessimplesoldgetAPIRequest) GetUseHasNext() bool

GetUseHasNext UseHasNext Getter

func (*TaobaotradessimplesoldgetAPIRequest) SetBuyerNick added in v1.3.1

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

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaotradessimplesoldgetAPIRequest) SetBuyerOpenId added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetBuyerOpenId(_buyerOpenId string) error

SetBuyerOpenId is BuyerOpenId Setter 买家的openId

func (*TaobaotradessimplesoldgetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetEndCreated(_endCreated string) error

SetEndCreated is EndCreated Setter 查询交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaotradessimplesoldgetAPIRequest) SetExtType added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetExtType(_extType string) error

SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型

func (*TaobaotradessimplesoldgetAPIRequest) SetFields added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核

func (*TaobaotradessimplesoldgetAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 页码。默认值:1,可填整数,通过传入page_no来控制获取的页数,总页数=total_results÷page_size

func (*TaobaotradessimplesoldgetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页条数。 默认值:40;最大值:100,可填整数。通过page_no和page_size组合多次调用实现翻页获取全量数据。

func (*TaobaotradessimplesoldgetAPIRequest) SetRateStatus added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetRateStatus(_rateStatus string) error

SetRateStatus is RateStatus Setter 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。<br>可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评)

func (*TaobaotradessimplesoldgetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetStartCreated(_startCreated string) error

SetStartCreated is StartCreated Setter 查询三个月内交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaotradessimplesoldgetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。

func (*TaobaotradessimplesoldgetAPIRequest) SetTag added in v1.3.1

SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)

func (*TaobaotradessimplesoldgetAPIRequest) SetType added in v1.3.1

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 (*TaobaotradessimplesoldgetAPIRequest) SetUseHasNext added in v1.3.1

func (r *TaobaotradessimplesoldgetAPIRequest) SetUseHasNext(_useHasNext bool) error

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

type TaobaotradessimplesoldgetAPIResponse added in v1.3.1

type TaobaotradessimplesoldgetAPIResponse struct {
	model.CommonResponse
	TaobaotradessimplesoldgetAPIResponseModel
}

TaobaotradessimplesoldgetAPIResponse 查询卖家已卖出的交易简易数据 API返回值 taobao.trades.simple.sold.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单信息。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

type TaobaotradessimplesoldgetAPIResponseModel added in v1.3.1

type TaobaotradessimplesoldgetAPIResponseModel struct {
	XMLName xml.Name `xml:"trades_simple_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"`
}

TaobaotradessimplesoldgetAPIResponseModel is 查询卖家已卖出的交易简易数据 成功返回结果

type TaobaotradessimplesoldincrementgetAPIRequest added in v1.3.1

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

TaobaotradessimplesoldincrementgetAPIRequest 查询卖家已卖出的增量交易简易数据(根据修改时间) API请求 taobao.trades.simple.sold.increment.get

搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 <br/>2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

func NewTaobaotradessimplesoldincrementgetRequest added in v1.3.1

func NewTaobaotradessimplesoldincrementgetRequest() *TaobaotradessimplesoldincrementgetAPIRequest

NewTaobaotradessimplesoldincrementgetRequest 初始化TaobaotradessimplesoldincrementgetAPIRequest对象

func (TaobaotradessimplesoldincrementgetAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradessimplesoldincrementgetAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradessimplesoldincrementgetAPIRequest) GetBuyerNick added in v1.3.1

GetBuyerNick BuyerNick Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetBuyerOpenUid added in v1.3.1

GetBuyerOpenUid BuyerOpenUid Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetEndModified added in v1.3.1

GetEndModified EndModified Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetExtType added in v1.3.1

GetExtType ExtType Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetRateStatus added in v1.3.1

GetRateStatus RateStatus Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradessimplesoldincrementgetAPIRequest) GetStartModified added in v1.3.1

GetStartModified StartModified Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetTag added in v1.3.1

GetTag Tag Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaotradessimplesoldincrementgetAPIRequest) GetUseHasNext added in v1.3.1

GetUseHasNext UseHasNext Getter

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetBuyerNick added in v1.3.1

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

SetBuyerNick is BuyerNick Setter 买家昵称

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetBuyerOpenUid added in v1.3.1

func (r *TaobaotradessimplesoldincrementgetAPIRequest) SetBuyerOpenUid(_buyerOpenUid string) error

SetBuyerOpenUid is BuyerOpenUid Setter 用户openId

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetEndModified added in v1.3.1

func (r *TaobaotradessimplesoldincrementgetAPIRequest) SetEndModified(_endModified string) error

SetEndModified is EndModified Setter 查询修改结束时间,必须大于修改开始时间(修改时间跨度不能大于一天),格式:yyyy-MM-dd HH:mm:ss。<span style="color:red;font-weight: bold;">建议使用30分钟以内的时间跨度,能大大提高响应速度和成功率</span>。

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetExtType added in v1.3.1

SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetFields added in v1.3.1

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0为处方药未审核状态

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetPageNo added in v1.3.1

SetPageNo is PageNo Setter 页码。取值范围:大于零的整数;默认值:1。<span style="color:red;font-weight: bold;">注:必须采用倒序的分页方式(从最后一页往回取)才能避免漏单问题。</span>

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页条数。取值范围:1~100,默认值:40。<span style="color:red;font-weight: bold;">建议使用40~50,可以提高成功率,减少超时数量</span>。

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetRateStatus added in v1.3.1

func (r *TaobaotradessimplesoldincrementgetAPIRequest) SetRateStatus(_rateStatus string) error

SetRateStatus is RateStatus Setter 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。<br>可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评)

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetStartModified added in v1.3.1

func (r *TaobaotradessimplesoldincrementgetAPIRequest) SetStartModified(_startModified string) error

SetStartModified is StartModified Setter 查询修改开始时间(修改时间跨度不能大于一天)。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetStatus added in v1.3.1

SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetTag added in v1.3.1

SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)

func (*TaobaotradessimplesoldincrementgetAPIRequest) SetType added in v1.3.1

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 (*TaobaotradessimplesoldincrementgetAPIRequest) SetUseHasNext added in v1.3.1

func (r *TaobaotradessimplesoldincrementgetAPIRequest) SetUseHasNext(_useHasNext bool) error

SetUseHasNext is UseHasNext Setter 是否启用has_next的分页方式,如果指定true,则返回的结果中不包含总记录数,但是会新增一个是否存在下一页的的字段,<span style="color:red;font-weight: bold;">通过此种方式获取增量交易,效率在原有的基础上有80%的提升</span>。

type TaobaotradessimplesoldincrementgetAPIResponse added in v1.3.1

type TaobaotradessimplesoldincrementgetAPIResponse struct {
	model.CommonResponse
	TaobaotradessimplesoldincrementgetAPIResponseModel
}

TaobaotradessimplesoldincrementgetAPIResponse 查询卖家已卖出的增量交易简易数据(根据修改时间) API返回值 taobao.trades.simple.sold.increment.get

搜索当前会话用户作为卖家已卖出的增量交易数据(只能获取到三个月以内的交易信息) <br/>1. 一次请求只能查询时间跨度为一天的增量交易记录,即end_modified - start_modified <= 1天。 <br/>2. 返回的数据结果是以订单的修改时间倒序排列的,通过从后往前翻页的方式可以避免漏单问题。 <br/>3. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单详情。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

type TaobaotradessimplesoldincrementgetAPIResponseModel added in v1.3.1

type TaobaotradessimplesoldincrementgetAPIResponseModel struct {
	XMLName xml.Name `xml:"trades_simple_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"`
}

TaobaotradessimplesoldincrementgetAPIResponseModel is 查询卖家已卖出的增量交易简易数据(根据修改时间) 成功返回结果

type TaobaotradessoldhistorygetAPIRequest added in v1.3.1

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

TaobaotradessoldhistorygetAPIRequest 卖家历史库订单查询 API请求 taobao.trades.sold.history.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以上两年以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单信息。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

func NewTaobaotradessoldhistorygetRequest added in v1.3.1

func NewTaobaotradessoldhistorygetRequest() *TaobaotradessoldhistorygetAPIRequest

NewTaobaotradessoldhistorygetRequest 初始化TaobaotradessoldhistorygetAPIRequest对象

func (TaobaotradessoldhistorygetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradessoldhistorygetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradessoldhistorygetAPIRequest) GetEndCreated added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetEndCreated() string

GetEndCreated EndCreated Getter

func (TaobaotradessoldhistorygetAPIRequest) GetExtType added in v1.3.1

GetExtType ExtType Getter

func (TaobaotradessoldhistorygetAPIRequest) GetFields added in v1.3.1

GetFields Fields Getter

func (TaobaotradessoldhistorygetAPIRequest) GetOuid added in v1.3.1

GetOuid Ouid Getter

func (TaobaotradessoldhistorygetAPIRequest) GetPageNo added in v1.3.1

GetPageNo PageNo Getter

func (TaobaotradessoldhistorygetAPIRequest) GetPageSize added in v1.3.1

GetPageSize PageSize Getter

func (TaobaotradessoldhistorygetAPIRequest) GetRateStatus added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetRateStatus() string

GetRateStatus RateStatus Getter

func (TaobaotradessoldhistorygetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradessoldhistorygetAPIRequest) GetStartCreated added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetStartCreated() string

GetStartCreated StartCreated Getter

func (TaobaotradessoldhistorygetAPIRequest) GetStatus added in v1.3.1

GetStatus Status Getter

func (TaobaotradessoldhistorygetAPIRequest) GetTag added in v1.3.1

GetTag Tag Getter

func (TaobaotradessoldhistorygetAPIRequest) GetType added in v1.3.1

GetType Type Getter

func (TaobaotradessoldhistorygetAPIRequest) GetUseHasNext added in v1.3.1

func (r TaobaotradessoldhistorygetAPIRequest) GetUseHasNext() bool

GetUseHasNext UseHasNext Getter

func (*TaobaotradessoldhistorygetAPIRequest) SetEndCreated added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetEndCreated(_endCreated string) error

SetEndCreated is EndCreated Setter 查询三个月之前交易创建时间结束。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaotradessoldhistorygetAPIRequest) SetExtType added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetExtType(_extType string) error

SetExtType is ExtType Setter 可选值有ershou(二手市场的订单),service(商城服务子订单)mark(双十一大促活动异常订单)作为扩展类型筛选只能做单个ext_type查询,不能全部查询所有的ext_type类型

func (*TaobaotradessoldhistorygetAPIRequest) SetFields added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetFields(_fields string) error

SetFields is Fields Setter 需要返回的字段列表,多个字段用半角逗号分隔,可选值为返回示例中能看到的所有字段。rx_audit_status=0,处方药未审核

func (*TaobaotradessoldhistorygetAPIRequest) SetOuid added in v1.3.1

SetOuid is Ouid Setter crm ouid

func (*TaobaotradessoldhistorygetAPIRequest) SetPageNo added in v1.3.1

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

SetPageNo is PageNo Setter 页码。默认值:1,可填整数,通过传入page_no来控制获取的页数,总页数=total_results÷page_size

func (*TaobaotradessoldhistorygetAPIRequest) SetPageSize added in v1.3.1

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

SetPageSize is PageSize Setter 每页条数。 默认值:40;最大值:50,可填整数。通过page_no和page_size组合多次调用实现翻页获取全量数据。

func (*TaobaotradessoldhistorygetAPIRequest) SetRateStatus added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetRateStatus(_rateStatus string) error

SetRateStatus is RateStatus Setter 评价状态,默认查询所有评价状态的数据,除了默认值外每次只能查询一种状态。<br>可选值:RATE_UNBUYER(买家未评)RATE_UNSELLER(卖家未评)RATE_BUYER_UNSELLER(买家已评,卖家未评)RATE_UNBUYER_SELLER(买家未评,卖家已评)RATE_BUYER_SELLER(买家已评,卖家已评)

func (*TaobaotradessoldhistorygetAPIRequest) SetStartCreated added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetStartCreated(_startCreated string) error

SetStartCreated is StartCreated Setter 查询三个月之前交易创建时间开始。格式:yyyy-MM-dd HH:mm:ss

func (*TaobaotradessoldhistorygetAPIRequest) SetStatus added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetStatus(_status string) error

SetStatus is Status Setter 交易状态(<a href="http://open.taobao.com/doc/detail.htm?id=102856" target="_blank">查看可选值</a>),默认查询所有交易状态的数据,除了默认值外每次只能查询一种状态。

func (*TaobaotradessoldhistorygetAPIRequest) SetTag added in v1.3.1

SetTag is Tag Setter 卖家对交易的自定义分组标签,目前可选值为:time_card(点卡软件代充),fee_card(话费软件代充)

func (*TaobaotradessoldhistorygetAPIRequest) SetType added in v1.3.1

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 (*TaobaotradessoldhistorygetAPIRequest) SetUseHasNext added in v1.3.1

func (r *TaobaotradessoldhistorygetAPIRequest) SetUseHasNext(_useHasNext bool) error

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

type TaobaotradessoldhistorygetAPIResponse added in v1.3.1

type TaobaotradessoldhistorygetAPIResponse struct {
	model.CommonResponse
	TaobaotradessoldhistorygetAPIResponseModel
}

TaobaotradessoldhistorygetAPIResponse 卖家历史库订单查询 API返回值 taobao.trades.sold.history.get

搜索当前会话用户作为卖家已卖出的交易数据(只能获取到三个月以上两年以内的交易信息) <br/>1. 返回的数据结果是以订单的创建时间倒序排列的。 <br/>2. 返回的数据结果只包含了订单的部分数据,可通过taobao.trade.simple.get获取订单信息。 <br/>注意:type字段的说明,如果该字段不传,接口默认只查4种类型订单,非默认查询的订单是不返回。遇到订单查不到的情况的,解决办法就是type加上订单类型就可正常返回了。 <br/><strong><a href="https://console.open.taobao.com/dingWeb.htm?from=tradeapi" target="_blank">点击查看更多交易API说明</a></strong>

type TaobaotradessoldhistorygetAPIResponseModel added in v1.3.1

type TaobaotradessoldhistorygetAPIResponseModel struct {
	XMLName xml.Name `xml:"trades_sold_history_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 搜索到的交易信息列表,返回的Trade和Order中包含的具体信息为入参fields请求的字段信息
	Trades []Trade `json:"trades,omitempty" xml:"trades>trade,omitempty"`
	// 是否存在下一页
	HasNext bool `json:"has_next,omitempty" xml:"has_next,omitempty"`
}

TaobaotradessoldhistorygetAPIResponseModel is 卖家历史库订单查询 成功返回结果

type TaobaotradevoucheruploadAPIRequest added in v1.3.1

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

TaobaotradevoucheruploadAPIRequest 淘宝交易凭证上传 API请求 taobao.trade.voucher.upload

定制化交易流程中,涉及到 买家自定义 图片、声音、视频 等多富媒体文件,且该商品或服务的附属sku,通过此接口上传作为交易凭证。

func NewTaobaotradevoucheruploadRequest added in v1.3.1

func NewTaobaotradevoucheruploadRequest() *TaobaotradevoucheruploadAPIRequest

NewTaobaotradevoucheruploadRequest 初始化TaobaotradevoucheruploadAPIRequest对象

func (TaobaotradevoucheruploadAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradevoucheruploadAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradevoucheruploadAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradevoucheruploadAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradevoucheruploadAPIRequest) GetBuyerNick added in v1.3.1

func (r TaobaotradevoucheruploadAPIRequest) GetBuyerNick() string

GetBuyerNick BuyerNick Getter

func (TaobaotradevoucheruploadAPIRequest) GetFileData added in v1.3.1

GetFileData FileData Getter

func (TaobaotradevoucheruploadAPIRequest) GetFileName added in v1.3.1

GetFileName FileName Getter

func (TaobaotradevoucheruploadAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradevoucheruploadAPIRequest) GetSellerNick added in v1.3.1

func (r TaobaotradevoucheruploadAPIRequest) GetSellerNick() string

GetSellerNick SellerNick Getter

func (*TaobaotradevoucheruploadAPIRequest) SetBuyerNick added in v1.3.1

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

SetBuyerNick is BuyerNick Setter 该笔订单的买家Nick(混淆nick)

func (*TaobaotradevoucheruploadAPIRequest) SetFileData added in v1.3.1

func (r *TaobaotradevoucheruploadAPIRequest) SetFileData(_fileData *model.File) error

SetFileData is FileData Setter 文件

func (*TaobaotradevoucheruploadAPIRequest) SetFileName added in v1.3.1

func (r *TaobaotradevoucheruploadAPIRequest) SetFileName(_fileName string) error

SetFileName is FileName Setter 上传文件的名称

func (*TaobaotradevoucheruploadAPIRequest) SetSellerNick added in v1.3.1

func (r *TaobaotradevoucheruploadAPIRequest) SetSellerNick(_sellerNick string) error

SetSellerNick is SellerNick Setter 该笔订单的卖家Nick

type TaobaotradevoucheruploadAPIResponse added in v1.3.1

type TaobaotradevoucheruploadAPIResponse struct {
	model.CommonResponse
	TaobaotradevoucheruploadAPIResponseModel
}

TaobaotradevoucheruploadAPIResponse 淘宝交易凭证上传 API返回值 taobao.trade.voucher.upload

定制化交易流程中,涉及到 买家自定义 图片、声音、视频 等多富媒体文件,且该商品或服务的附属sku,通过此接口上传作为交易凭证。

type TaobaotradevoucheruploadAPIResponseModel added in v1.3.1

type TaobaotradevoucheruploadAPIResponseModel struct {
	XMLName xml.Name `xml:"trade_voucher_upload_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 上传到多媒体平台的文件
	File *File `json:"file,omitempty" xml:"file,omitempty"`
}

TaobaotradevoucheruploadAPIResponseModel is 淘宝交易凭证上传 成功返回结果

type TaobaotradewtverticalgetAPIRequest added in v1.3.1

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

TaobaotradewtverticalgetAPIRequest 网厅垂直信息查询接口 API请求 taobao.trade.wtvertical.get

网厅订单垂直信息的查询

func NewTaobaotradewtverticalgetRequest added in v1.3.1

func NewTaobaotradewtverticalgetRequest() *TaobaotradewtverticalgetAPIRequest

NewTaobaotradewtverticalgetRequest 初始化TaobaotradewtverticalgetAPIRequest对象

func (TaobaotradewtverticalgetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaotradewtverticalgetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaotradewtverticalgetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaotradewtverticalgetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaotradewtverticalgetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaotradewtverticalgetAPIRequest) GetTids added in v1.3.1

GetTids Tids Getter

func (*TaobaotradewtverticalgetAPIRequest) SetTids added in v1.3.1

func (r *TaobaotradewtverticalgetAPIRequest) SetTids(_tids []string) error

SetTids is Tids Setter 主订单列表,用“,”分隔tid的字符串,最大列表长度为15

type TaobaotradewtverticalgetAPIResponse added in v1.3.1

type TaobaotradewtverticalgetAPIResponse struct {
	model.CommonResponse
	TaobaotradewtverticalgetAPIResponseModel
}

TaobaotradewtverticalgetAPIResponse 网厅垂直信息查询接口 API返回值 taobao.trade.wtvertical.get

网厅订单垂直信息的查询

type TaobaotradewtverticalgetAPIResponseModel added in v1.3.1

type TaobaotradewtverticalgetAPIResponseModel struct {
	XMLName xml.Name `xml:"trade_wtvertical_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回交易垂直信息的数据结构
	WtextResults []WtExtResult `json:"wtext_results,omitempty" xml:"wtext_results>wt_ext_result,omitempty"`
	// 返回查询记录的条数
	TotalResults int64 `json:"total_results,omitempty" xml:"total_results,omitempty"`
}

TaobaotradewtverticalgetAPIResponseModel is 网厅垂直信息查询接口 成功返回结果

type TaobaowtttradeservicegetAPIRequest added in v1.3.1

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

TaobaowtttradeservicegetAPIRequest 获取网厅号卡垂直标信息 API请求 taobao.wtt.trade.service.get

查询网厅订单信息

func NewTaobaowtttradeservicegetRequest added in v1.3.1

func NewTaobaowtttradeservicegetRequest() *TaobaowtttradeservicegetAPIRequest

NewTaobaowtttradeservicegetRequest 初始化TaobaowtttradeservicegetAPIRequest对象

func (TaobaowtttradeservicegetAPIRequest) GetApiMethodName added in v1.3.1

func (r TaobaowtttradeservicegetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaowtttradeservicegetAPIRequest) GetApiParams added in v1.3.1

func (r TaobaowtttradeservicegetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaowtttradeservicegetAPIRequest) GetBizOrder added in v1.3.1

func (r TaobaowtttradeservicegetAPIRequest) GetBizOrder() int64

GetBizOrder BizOrder Getter

func (TaobaowtttradeservicegetAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TaobaowtttradeservicegetAPIRequest) SetBizOrder added in v1.3.1

func (r *TaobaowtttradeservicegetAPIRequest) SetBizOrder(_bizOrder int64) error

SetBizOrder is BizOrder Setter 订单ID

type TaobaowtttradeservicegetAPIResponse added in v1.3.1

type TaobaowtttradeservicegetAPIResponse struct {
	model.CommonResponse
	TaobaowtttradeservicegetAPIResponseModel
}

TaobaowtttradeservicegetAPIResponse 获取网厅号卡垂直标信息 API返回值 taobao.wtt.trade.service.get

查询网厅订单信息

type TaobaowtttradeservicegetAPIResponseModel added in v1.3.1

type TaobaowtttradeservicegetAPIResponseModel struct {
	XMLName xml.Name `xml:"wtt_trade_service_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回实例
	Modules *WtverticalDto `json:"modules,omitempty" xml:"modules,omitempty"`
}

TaobaowtttradeservicegetAPIResponseModel is 获取网厅号卡垂直标信息 成功返回结果

type TaobaoxhoteldistributionorderdetailsearchAPIRequest added in v1.3.1

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

TaobaoxhoteldistributionorderdetailsearchAPIRequest 分销渠道订单详情查询 API请求 taobao.xhotel.distribution.order.detail.search

该接口用于提供酒店分销渠道的订单详情查询

func NewTaobaoxhoteldistributionorderdetailsearchRequest added in v1.3.1

func NewTaobaoxhoteldistributionorderdetailsearchRequest() *TaobaoxhoteldistributionorderdetailsearchAPIRequest

NewTaobaoxhoteldistributionorderdetailsearchRequest 初始化TaobaoxhoteldistributionorderdetailsearchAPIRequest对象

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetApiMethodName added in v1.3.1

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetApiParams added in v1.3.1

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetDistributionOid added in v1.3.1

GetDistributionOid DistributionOid Getter

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetOpenId added in v1.3.1

GetOpenId OpenId Getter

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (TaobaoxhoteldistributionorderdetailsearchAPIRequest) GetTid added in v1.3.1

GetTid Tid Getter

func (*TaobaoxhoteldistributionorderdetailsearchAPIRequest) SetDistributionOid added in v1.3.1

func (r *TaobaoxhoteldistributionorderdetailsearchAPIRequest) SetDistributionOid(_distributionOid string) error

SetDistributionOid is DistributionOid Setter 外部分销渠道的订单号(与tid必填其一)

func (*TaobaoxhoteldistributionorderdetailsearchAPIRequest) SetOpenId added in v1.3.1

SetOpenId is OpenId Setter 传入用户对应的openId

func (*TaobaoxhoteldistributionorderdetailsearchAPIRequest) SetTid added in v1.3.1

SetTid is Tid Setter 飞猪的订单号(与distribution_oid必填其一)

type TaobaoxhoteldistributionorderdetailsearchAPIResponse added in v1.3.1

type TaobaoxhoteldistributionorderdetailsearchAPIResponse struct {
	model.CommonResponse
	TaobaoxhoteldistributionorderdetailsearchAPIResponseModel
}

TaobaoxhoteldistributionorderdetailsearchAPIResponse 分销渠道订单详情查询 API返回值 taobao.xhotel.distribution.order.detail.search

该接口用于提供酒店分销渠道的订单详情查询

type TaobaoxhoteldistributionorderdetailsearchAPIResponseModel added in v1.3.1

type TaobaoxhoteldistributionorderdetailsearchAPIResponseModel struct {
	XMLName xml.Name `xml:"xhotel_distribution_order_detail_search_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	Error string `json:"error,omitempty" xml:"error,omitempty"`
	// 错误描述
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 订单详情对象
	TopDistributionOrderDetail *TopDistributionOrderDetail `json:"top_distribution_order_detail,omitempty" xml:"top_distribution_order_detail,omitempty"`
}

TaobaoxhoteldistributionorderdetailsearchAPIResponseModel is 分销渠道订单详情查询 成功返回结果

type TmallascporderssalecreateAPIRequest added in v1.3.1

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

TmallascporderssalecreateAPIRequest ASCP渠道中心销售单创建接口 API请求 tmall.ascp.orders.sale.create

ASCP渠道中心销售单创建接口

func NewTmallascporderssalecreateRequest added in v1.3.1

func NewTmallascporderssalecreateRequest() *TmallascporderssalecreateAPIRequest

NewTmallascporderssalecreateRequest 初始化TmallascporderssalecreateAPIRequest对象

func (TmallascporderssalecreateAPIRequest) GetApiMethodName added in v1.3.1

func (r TmallascporderssalecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TmallascporderssalecreateAPIRequest) GetApiParams added in v1.3.1

func (r TmallascporderssalecreateAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (TmallascporderssalecreateAPIRequest) GetChannelOrderRequest added in v1.3.1

GetChannelOrderRequest ChannelOrderRequest Getter

func (TmallascporderssalecreateAPIRequest) GetRawParams added in v1.3.1

GetRawParams IRequest interface 方法, 获取API原始参数

func (*TmallascporderssalecreateAPIRequest) SetChannelOrderRequest added in v1.3.1

func (r *TmallascporderssalecreateAPIRequest) SetChannelOrderRequest(_channelOrderRequest *CreateChannelOrderRequest) error

SetChannelOrderRequest is ChannelOrderRequest Setter 请求对象

type TmallascporderssalecreateAPIResponse added in v1.3.1

type TmallascporderssalecreateAPIResponse struct {
	model.CommonResponse
	TmallascporderssalecreateAPIResponseModel
}

TmallascporderssalecreateAPIResponse ASCP渠道中心销售单创建接口 API返回值 tmall.ascp.orders.sale.create

ASCP渠道中心销售单创建接口

type TmallascporderssalecreateAPIResponseModel added in v1.3.1

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

TmallascporderssalecreateAPIResponseModel is ASCP渠道中心销售单创建接口 成功返回结果

type TmallascporderssalecreateResultDo added in v1.3.1

type TmallascporderssalecreateResultDo struct {
	// errorMessage
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// module
	Module string `json:"module,omitempty" xml:"module,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// totalCount
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// success
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TmallascporderssalecreateResultDo 结构体

type TopDistributionOrderDetail

type TopDistributionOrderDetail struct {
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 订单状态
	OrderStatusDesc string `json:"order_status_desc,omitempty" xml:"order_status_desc,omitempty"`
	// 房型名称
	RoomTypeName string `json:"room_type_name,omitempty" xml:"room_type_name,omitempty"`
	// 离店日期
	CheckoutDate string `json:"checkout_date,omitempty" xml:"checkout_date,omitempty"`
	// rp名称
	RpName string `json:"rp_name,omitempty" xml:"rp_name,omitempty"`
	// 订单更新时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 订单类型名称
	TypeName string `json:"type_name,omitempty" xml:"type_name,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 酒店名称
	HotelName string `json:"hotel_name,omitempty" xml:"hotel_name,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 入住时间
	CheckinDate string `json:"checkin_date,omitempty" xml:"checkin_date,omitempty"`
	// 买家姓名
	ContactName string `json:"contact_name,omitempty" xml:"contact_name,omitempty"`
	// 订单创建时间
	Created string `json:"created,omitempty" xml:"created,omitempty"`
	// 分销渠道外部订单号
	DisOid string `json:"dis_oid,omitempty" xml:"dis_oid,omitempty"`
	// 飞猪拆单订单(当一次下单定多间房的时候会出现这种情况)
	MultiTids string `json:"multi_tids,omitempty" xml:"multi_tids,omitempty"`
	// 房型id
	Rid int64 `json:"rid,omitempty" xml:"rid,omitempty"`
	// 订单类型id
	Type int64 `json:"type,omitempty" xml:"type,omitempty"`
	// 付款金额
	Payment int64 `json:"payment,omitempty" xml:"payment,omitempty"`
	// 总房费
	TotalRoomPrice int64 `json:"total_room_price,omitempty" xml:"total_room_price,omitempty"`
	// 订单状态Code
	OrderStatusCode int64 `json:"order_status_code,omitempty" xml:"order_status_code,omitempty"`
	// 酒店hid
	Hid int64 `json:"hid,omitempty" xml:"hid,omitempty"`
	// 飞猪订单号
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 房间数
	RoomNumber int64 `json:"room_number,omitempty" xml:"room_number,omitempty"`
	// 价格计划ID
	Rpid int64 `json:"rpid,omitempty" xml:"rpid,omitempty"`
	// 间夜
	Nights int64 `json:"nights,omitempty" xml:"nights,omitempty"`
	// 商品id
	ItemId int64 `json:"item_id,omitempty" xml:"item_id,omitempty"`
}

TopDistributionOrderDetail 结构体

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 []ServiceOrders `json:"service_orders,omitempty" xml:"service_orders>service_orders,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"`
	// 交易编号 (父订单的交易编号)
	Tid string `json:"tid,omitempty" xml:"tid,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分
	TotalFee string `json:"total_fee,omitempty" xml:"total_fee,omitempty"`
	// 商品价格。精确到2位小数;单位:元。如:200.07,表示:200元7分
	Price string `json:"price,omitempty" xml:"price,omitempty"`
	// 付款时间。格式:yyyy-MM-dd HH:mm:ss。订单的付款时间即为物流订单的创建时间。
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 卖家备注(与淘宝网上订单的卖家备注对应,只有卖家才能查看该字段)
	SellerMemo string `json:"seller_memo,omitempty" xml:"seller_memo,omitempty"`
	// 买家备注(与淘宝网上订单的买家备注对应,只有买家才能查看该字段)
	BuyerMemo string `json:"buyer_memo,omitempty" xml:"buyer_memo,omitempty"`
	// 邮费。精确到2位小数;单位:元。如:200.07,表示:200元7分
	PostFee string `json:"post_fee,omitempty" xml:"post_fee,omitempty"`
	// 分阶段付款的订单状态(例如万人团订单等),目前有三返回状态FRONT_NOPAID_FINAL_NOPAID(定金未付尾款未付),FRONT_PAID_FINAL_NOPAID(定金已付尾款未付),FRONT_PAID_FINAL_PAID(定金和尾款都付)
	StepTradeStatus string `json:"step_trade_status,omitempty" xml:"step_trade_status,omitempty"`
	// 分阶段付款的已付金额(万人团订单已付金额)
	StepPaidFee string `json:"step_paid_fee,omitempty" xml:"step_paid_fee,omitempty"`
	// 卖家昵称
	SellerNick string `json:"seller_nick,omitempty" xml:"seller_nick,omitempty"`
	// 实付金额。精确到2位小数;单位:元。如:200.07,表示:200元7分
	Payment string `json:"payment,omitempty" xml:"payment,omitempty"`
	// 交易修改时间(用户对订单的任何修改都会更新此字段)。格式:yyyy-MM-dd HH:mm:ss
	Modified string `json:"modified,omitempty" xml:"modified,omitempty"`
	// 买家的openuid,入参fields中传入buyer_nick ,才能返回
	BuyerOpenUid string `json:"buyer_open_uid,omitempty" xml:"buyer_open_uid,omitempty"`
	// 买家昵称
	BuyerNick string `json:"buyer_nick,omitempty" xml:"buyer_nick,omitempty"`
	// 交易标题,以店铺名作为此标题的值。注:taobao.trades.get接口返回的Trade中的title是商品名称
	Title string `json:"title,omitempty" xml:"title,omitempty"`
	// 物流运单号
	Sid string `json:"sid,omitempty" xml:"sid,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"`
	// 交易结束时间。交易成功时间(更新交易状态为成功的同时更新)/确认收货时间或者交易关闭时间 。格式: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"`
	// 支付宝交易号,如: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位小数;单位:元。如: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"`
	// 创建交易时的物流方式(交易完成前,物流方式有可能改变,但系统里的这个字段一直不变)。可选值:free(卖家包邮),post(平邮),express(快递),ems(EMS),virtual(虚拟发货),25(次日必达),26(预约配送)。
	ShippingType string `json:"shipping_type,omitempty" xml:"shipping_type,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"`
	// 天猫汽车服务预约时间
	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"`
	// 天猫国际官网直供主订单关税税费
	OrderTaxFee string `json:"order_tax_fee,omitempty" xml:"order_tax_fee,omitempty"`
	// 电子凭证服务上门服务的安装地址
	EticketServiceAddr string `json:"eticket_service_addr,omitempty" xml:"eticket_service_addr,omitempty"`
	// 分阶段交易的特权定金订单ID
	O2oEtOrderId string `json:"o2o_et_order_id,omitempty" xml:"o2o_et_order_id,omitempty"`
	// 天猫国际计税优惠金额
	OrderTaxPromotionFee string `json:"order_tax_promotion_fee,omitempty" xml:"order_tax_promotion_fee,omitempty"`
	// 透出前置营销工具
	Pmtp string `json:"pmtp,omitempty" xml:"pmtp,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"`
	// 交易中剩余的确认收货金额(这个金额会随着子订单确认收货而不断减少,交易成功后会变为零)。精确到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"`
	// 交易内部来源。WAP(手机);HITAO(嗨淘);TOP(TOP平台);TAOBAO(普通淘宝);JHS(聚划算)一笔订单可能同时有以上多个标记,则以逗号分隔
	TradeFrom string `json:"trade_from,omitempty" xml:"trade_from,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"`
	// 处方药审核状态
	RxAuditStatus string `json:"rx_audit_status,omitempty" xml:"rx_audit_status,omitempty"`
	// CRM系统中特有的ouid
	Ouid string `json:"ouid,omitempty" xml:"ouid,omitempty"`
	// 同步到卖家库的时间,taobao.trades.sold.incrementv.get接口返回此字段
	AsyncModified string `json:"async_modified,omitempty" xml:"async_modified,omitempty"`
	// 买家下单的地区
	BuyerArea string `json:"buyer_area,omitempty" xml:"buyer_area,omitempty"`
	// 交易外部来源:ownshop(商家官网)
	TradeSource string `json:"trade_source,omitempty" xml:"trade_source,omitempty"`
	// 订单将在此时间前发出,主要用于预售订单
	SendTime string `json:"send_time,omitempty" xml:"send_time,omitempty"`
	// 订单出现异常问题的时候,给予用户的描述,没有异常的时候,此值为空
	MarkDesc string `json:"mark_desc,omitempty" xml:"mark_desc,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"`
	// 物流到货时效,单位天
	ArriveInterval int64 `json:"arrive_interval,omitempty" xml:"arrive_interval,omitempty"`
	// 物流发货时效,单位小时
	ConsignInterval int64 `json:"consign_interval,omitempty" xml:"consign_interval,omitempty"`
	// 购物金信息输出
	ExpandcardInfo *ExpandCardInfo `json:"expandcard_info,omitempty" xml:"expandcard_info,omitempty"`
	// 使用红包付款金额
	CouponFee int64 `json:"coupon_fee,omitempty" xml:"coupon_fee,omitempty"`
	// 卖家备注旗帜(与淘宝网上订单的卖家备注旗帜对应,只有卖家才能查看该字段)红、黄、绿、蓝、紫 分别对应 1、2、3、4、5
	SellerFlag int64 `json:"seller_flag,omitempty" xml:"seller_flag,omitempty"`
	// 是否包含邮费。与available_confirm_fee同时使用。可选值:true(包含),false(不包含)
	HasPostFee bool `json:"has_post_fee,omitempty" xml:"has_post_fee,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"`
	// 表示订单交易是否含有对应的代销采购单。如果该订单中存在一个对应的代销采购单,那么该值为true;反之,该值为false。
	IsDaixiao bool `json:"is_daixiao,omitempty" xml:"is_daixiao,omitempty"`
	// 表示订单交易是否网厅订单。 如果该订单是网厅订单,那么该值为true;反之,该值为false。
	IsWt bool `json:"is_wt,omitempty" xml:"is_wt,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
	HasBuyerMessage bool `json:"has_buyer_message,omitempty" xml:"has_buyer_message,omitempty"`
}

Trade 结构体

type TradeFlowGoodsDetailModel

type TradeFlowGoodsDetailModel struct {
	// 商品最小销售单位,如:包、盒、袋
	Unit string `json:"unit,omitempty" xml:"unit,omitempty"`
	// 外部系统商品ID
	ExternalGoodsId string `json:"external_goods_id,omitempty" xml:"external_goods_id,omitempty"`
	// 商品标题
	GoodsTitle string `json:"goods_title,omitempty" xml:"goods_title,omitempty"`
	// 商品分类
	Category string `json:"category,omitempty" xml:"category,omitempty"`
	// 商品条码
	Barcode string `json:"barcode,omitempty" xml:"barcode,omitempty"`
	// 货道剩余商品数量
	RemainingQuantity int64 `json:"remaining_quantity,omitempty" xml:"remaining_quantity,omitempty"`
	// 货道业务类型:1普通;2推广实付金额
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 实付金额(单位:分)
	ActualAmount int64 `json:"actual_amount,omitempty" xml:"actual_amount,omitempty"`
	// 商品数量
	Count int64 `json:"count,omitempty" xml:"count,omitempty"`
	// 货架编码,方向:从上到下,编码:从1开始
	ShelfNo int64 `json:"shelf_no,omitempty" xml:"shelf_no,omitempty"`
	// 交易总额(单位:分)
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 商品单价(单位:分)
	Price int64 `json:"price,omitempty" xml:"price,omitempty"`
	// 货道编码,方向:从左到右,编码:从1开始
	CargoRoadNo int64 `json:"cargo_road_no,omitempty" xml:"cargo_road_no,omitempty"`
}

TradeFlowGoodsDetailModel 结构体

type TradeFlowModel

type TradeFlowModel struct {
	// 交易流水信息-商品详情
	TradeFlowGoodsDetailModelList []TradeFlowGoodsDetailModel `` /* 132-byte string literal not displayed */
	// 支付信息
	TradeFlowPaymentModelList []TradeFlowPaymentModel `json:"trade_flow_payment_model_list,omitempty" xml:"trade_flow_payment_model_list>trade_flow_payment_model,omitempty"`
	// 修改时间
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 厂商设备唯一编码
	EquipmentCode string `json:"equipment_code,omitempty" xml:"equipment_code,omitempty"`
	// 外部系统正向交易流水号
	PaymentTradeFlowNo string `json:"payment_trade_flow_no,omitempty" xml:"payment_trade_flow_no,omitempty"`
	// 创建时间
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 设备类型
	EquipmentType string `json:"equipment_type,omitempty" xml:"equipment_type,omitempty"`
	// 经营者userId
	OperatorUserId string `json:"operator_user_id,omitempty" xml:"operator_user_id,omitempty"`
	// 经营者名字userId
	OperatorUserName string `json:"operator_user_name,omitempty" xml:"operator_user_name,omitempty"`
	// 外部系统交易流水号
	TradeFlowNo string `json:"trade_flow_no,omitempty" xml:"trade_flow_no,omitempty"`
	// 设备名称
	EquipmentName string `json:"equipment_name,omitempty" xml:"equipment_name,omitempty"`
	// 实付金额(单位:分)
	ActualAmount int64 `json:"actual_amount,omitempty" xml:"actual_amount,omitempty"`
	// 折扣
	Discount int64 `json:"discount,omitempty" xml:"discount,omitempty"`
	// 交易总额(单位:分)
	TotalAmount int64 `json:"total_amount,omitempty" xml:"total_amount,omitempty"`
	// 佣金金额(单位:分)
	Commission int64 `json:"commission,omitempty" xml:"commission,omitempty"`
	// 交易类型:1购买,2退款
	TradeType int64 `json:"trade_type,omitempty" xml:"trade_type,omitempty"`
}

TradeFlowModel 结构体

type TradeFlowPaymentModel

type TradeFlowPaymentModel struct {
	// 外部系统支付用户ID,比如:支付宝PID
	PaymentUserId string `json:"payment_user_id,omitempty" xml:"payment_user_id,omitempty"`
	// 外部系统支付流水号
	PaymentFlowNo string `json:"payment_flow_no,omitempty" xml:"payment_flow_no,omitempty"`
	// 支付创建时间(如果不传将和订单时间相同)
	GmtCreate string `json:"gmt_create,omitempty" xml:"gmt_create,omitempty"`
	// 支付修改时间(如果不传将和订单时间相同)
	GmtModified string `json:"gmt_modified,omitempty" xml:"gmt_modified,omitempty"`
	// 支付金额
	PayAmount int64 `json:"pay_amount,omitempty" xml:"pay_amount,omitempty"`
	// 支付类型:1扣款,2退款
	PayType int64 `json:"pay_type,omitempty" xml:"pay_type,omitempty"`
	// 分佣佣金(单位:分)
	Commission int64 `json:"commission,omitempty" xml:"commission,omitempty"`
	// 支付通道:1现金,2支付宝,3微信,255其他
	PayChannel int64 `json:"pay_channel,omitempty" xml:"pay_channel,omitempty"`
	// 支付状态:1待付款,2已付款
	Status int64 `json:"status,omitempty" xml:"status,omitempty"`
}

TradeFlowPaymentModel 结构体

type TradeOrder

type TradeOrder struct {
	// 业务子订单标识(允许为null)
	SubBizOrderIds []string `json:"sub_biz_order_ids,omitempty" xml:"sub_biz_order_ids>string,omitempty"`
	// 子订单
	SubOrders []Suborders `json:"sub_orders,omitempty" xml:"sub_orders>suborders,omitempty"`
	// 门店标识
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 业务订单标识
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 用户昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 用户备注
	UserMem string `json:"user_mem,omitempty" xml:"user_mem,omitempty"`
	// 买家标识
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 外部关联标识
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 渠道业务, 如大润发优鲜=CHANNEL_HALFDAY
	BizType string `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
	// 订单状态
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 订单履约状态
	OrderFulfillStatus string `json:"order_fulfill_status,omitempty" xml:"order_fulfill_status,omitempty"`
	// 商家编码
	MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"`
	// 优惠金额
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 订单原金额
	OriginFee int64 `json:"origin_fee,omitempty" xml:"origin_fee,omitempty"`
	// 支付金额(=整单原价-整单优惠金额+运费)
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
	// 收货人信息
	Delivery *OrderDelivery `json:"delivery,omitempty" xml:"delivery,omitempty"`
	// 配送员信息
	Deliverer *OrderDelivery `json:"deliverer,omitempty" xml:"deliverer,omitempty"`
}

TradeOrder 结构体

type TradeOrderQuery

type TradeOrderQuery struct {
	// 业务订单标识
	BizOrderIds []string `json:"biz_order_ids,omitempty" xml:"biz_order_ids>string,omitempty"`
	// 查询变动结束时间
	EndTime string `json:"end_time,omitempty" xml:"end_time,omitempty"`
	// 查询变动开始时间
	StartTime string `json:"start_time,omitempty" xml:"start_time,omitempty"`
	// 门店标识
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 买家标识
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 分页页码
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 分页大小(不大于20)
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
}

TradeOrderQuery 结构体

type TradeOrderQueryResult

type TradeOrderQueryResult struct {
	// 订单查询结果
	TradeList []Tradeorders `json:"trade_list,omitempty" xml:"trade_list>tradeorders,omitempty"`
	// 错误编码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误信息
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// 分页大小
	PageSize int64 `json:"page_size,omitempty" xml:"page_size,omitempty"`
	// 分页页码
	PageIndex int64 `json:"page_index,omitempty" xml:"page_index,omitempty"`
	// 页码数量
	PageCount int64 `json:"page_count,omitempty" xml:"page_count,omitempty"`
	// 数据数量
	TotalCount int64 `json:"total_count,omitempty" xml:"total_count,omitempty"`
	// 查询是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TradeOrderQueryResult 结构体

type Tradeorders

type Tradeorders struct {
	// 子订单
	SubOrders []Suborders `json:"sub_orders,omitempty" xml:"sub_orders>suborders,omitempty"`
	// 买家昵称
	UserNick string `json:"user_nick,omitempty" xml:"user_nick,omitempty"`
	// 订单状态
	OrderStatus string `json:"order_status,omitempty" xml:"order_status,omitempty"`
	// 支付时间
	PayTime string `json:"pay_time,omitempty" xml:"pay_time,omitempty"`
	// 买家留言
	UserMem string `json:"user_mem,omitempty" xml:"user_mem,omitempty"`
	// 订单履约状态
	OrderFulfillStatus string `json:"order_fulfill_status,omitempty" xml:"order_fulfill_status,omitempty"`
	// 门店编码
	ShopId string `json:"shop_id,omitempty" xml:"shop_id,omitempty"`
	// 买家标识
	UserId string `json:"user_id,omitempty" xml:"user_id,omitempty"`
	// 业务订单标识
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 商家编码
	MerchantCode string `json:"merchant_code,omitempty" xml:"merchant_code,omitempty"`
	// 外部关联订单标识
	OutOrderId string `json:"out_order_id,omitempty" xml:"out_order_id,omitempty"`
	// 折扣金额
	DiscountFee int64 `json:"discount_fee,omitempty" xml:"discount_fee,omitempty"`
	// 原金额
	OriginFee int64 `json:"origin_fee,omitempty" xml:"origin_fee,omitempty"`
	// 订单配送信息
	Deliverer *OrderDeliverer `json:"deliverer,omitempty" xml:"deliverer,omitempty"`
	// 支付金额
	PayFee int64 `json:"pay_fee,omitempty" xml:"pay_fee,omitempty"`
	// 收货人信息
	Delivery *OrderDelivery `json:"delivery,omitempty" xml:"delivery,omitempty"`
}

Tradeorders 结构体

type TribeError

type TribeError struct {
	// 错误可读性描述
	View string `json:"view,omitempty" xml:"view,omitempty"`
	// 错误码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
}

TribeError 结构体

type WtExtResult

type WtExtResult struct {
	// 用户手机号码
	PhoneNum string `json:"phone_num,omitempty" xml:"phone_num,omitempty"`
	// 手机号码所在城市的区位码
	PhoneCityCode string `json:"phone_city_code,omitempty" xml:"phone_city_code,omitempty"`
	// 手机号码所在省份的区位码
	PhoneProvinceCode string `json:"phone_province_code,omitempty" xml:"phone_province_code,omitempty"`
	// 套餐名称
	PlanTitle string `json:"plan_title,omitempty" xml:"plan_title,omitempty"`
	// 套餐商家编码
	OutPlanId string `json:"out_plan_id,omitempty" xml:"out_plan_id,omitempty"`
	// 合约计划商家编码
	OutPackageId string `json:"out_package_id,omitempty" xml:"out_package_id,omitempty"`
	// 机主姓名
	PhoneOwnerName string `json:"phone_owner_name,omitempty" xml:"phone_owner_name,omitempty"`
	// 证件号
	CertCardNum string `json:"cert_card_num,omitempty" xml:"cert_card_num,omitempty"`
	// 实人认证方式,如:V1,V2,默认V1
	AuthType string `json:"auth_type,omitempty" xml:"auth_type,omitempty"`
	// 预留属性字符串
	Attr string `json:"attr,omitempty" xml:"attr,omitempty"`
	// 安装地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 联系人
	OwnerName string `json:"owner_name,omitempty" xml:"owner_name,omitempty"`
	// 宽带账号
	Account string `json:"account,omitempty" xml:"account,omitempty"`
	// 描述信息
	PromotionDesc string `json:"promotion_desc,omitempty" xml:"promotion_desc,omitempty"`
	// 活体流水id
	BiometricSeq string `json:"biometric_seq,omitempty" xml:"biometric_seq,omitempty"`
	// 交易id
	Tid int64 `json:"tid,omitempty" xml:"tid,omitempty"`
	// 套餐开通规则
	EffectRule int64 `json:"effect_rule,omitempty" xml:"effect_rule,omitempty"`
	// 协议商家编码
	AgreementId int64 `json:"agreement_id,omitempty" xml:"agreement_id,omitempty"`
	// 证件类型
	CertType int64 `json:"cert_type,omitempty" xml:"cert_type,omitempty"`
	// 号码预存款(单位是分)
	PhoneDeposit int64 `json:"phone_deposit,omitempty" xml:"phone_deposit,omitempty"`
	// 减免 号码预存款(单位是分)
	PhoneFreeDeposit int64 `json:"phone_free_deposit,omitempty" xml:"phone_free_deposit,omitempty"`
	// 合约用户类型,0=老用户合约机,1=新用户合约机,2=新用户合约号卡,99=其它(默认)
	UserType int64 `json:"user_type,omitempty" xml:"user_type,omitempty"`
	// 合约类型,合约类目, 0=机卡合约,1001=购物送,1002=阿里通信号卡合约,1003=信用购,1007=话费充值卡,1005=游戏点卡,1006=QQ点卡,99=未知(默认)
	ContractType int64 `json:"contract_type,omitempty" xml:"contract_type,omitempty"`
}

WtExtResult 结构体

type WtverticalDto

type WtverticalDto struct {
	// 手机号码
	PhoneNo string `json:"phone_no,omitempty" xml:"phone_no,omitempty"`
	// 订单号
	BizOrderId string `json:"biz_order_id,omitempty" xml:"biz_order_id,omitempty"`
	// 城市区号
	PhoneCityCode string `json:"phone_city_code,omitempty" xml:"phone_city_code,omitempty"`
	// 省区号
	PhoneProvinceCode string `json:"phone_province_code,omitempty" xml:"phone_province_code,omitempty"`
	// 属性
	Attr string `json:"attr,omitempty" xml:"attr,omitempty"`
	// 号码归属地城市
	PhoneCityName string `json:"phone_city_name,omitempty" xml:"phone_city_name,omitempty"`
	// 号码归属地省
	PhoneProvinceName string `json:"phone_province_name,omitempty" xml:"phone_province_name,omitempty"`
	// 套餐名称
	PlanTitle string `json:"plan_title,omitempty" xml:"plan_title,omitempty"`
	// 套餐商家编码
	OutPlanId string `json:"out_plan_id,omitempty" xml:"out_plan_id,omitempty"`
	// 套餐开通规则
	EffectRule string `json:"effect_rule,omitempty" xml:"effect_rule,omitempty"`
	// 协议商家编码
	AgreementId string `json:"agreement_id,omitempty" xml:"agreement_id,omitempty"`
}

WtverticalDto 结构体

Source Files

Jump to

Keyboard shortcuts

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