tvpay

package
v1.2.9 Latest Latest
Warning

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

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

Documentation

Overview

Package tvpay 包含tv支付相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyAuthResultDo

type ApplyAuthResultDo struct {
	// 授权方式
	AuthMode string `json:"auth_mode,omitempty" xml:"auth_mode,omitempty"`
	// 手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// qrcode
	QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"`
	// 二维码地址
	QrCodeUrl string `json:"qr_code_url,omitempty" xml:"qr_code_url,omitempty"`
}

ApplyAuthResultDo 结构体

type GetAppInfoResultDo

type GetAppInfoResultDo struct {
	// 包名
	PackageName string `json:"package_name,omitempty" xml:"package_name,omitempty"`
	// 应用配置
	AppConfig *SdkAppConfigDo `json:"app_config,omitempty" xml:"app_config,omitempty"`
	// 全局配置
	GlobalConfig *SdkGlobalConfigDo `json:"global_config,omitempty" xml:"global_config,omitempty"`
	// 商户id
	PartnerId int64 `json:"partner_id,omitempty" xml:"partner_id,omitempty"`
}

GetAppInfoResultDo 结构体

type GetLoginInfoByOrderResultDo

type GetLoginInfoByOrderResultDo struct {
	// 登陆信息,json
	AccessData string `json:"access_data,omitempty" xml:"access_data,omitempty"`
	// 是否有登陆信息
	HasLoginInfo bool `json:"has_login_info,omitempty" xml:"has_login_info,omitempty"`
}

GetLoginInfoByOrderResultDo 结构体

type GetPartnerPayResultResultDo

type GetPartnerPayResultResultDo struct {
	// 加密串,订单详情
	Data string `json:"data,omitempty" xml:"data,omitempty"`
}

GetPartnerPayResultResultDo 结构体

type GetPromotionInfoResultDo

type GetPromotionInfoResultDo struct {
	// 描述
	Hint string `json:"hint,omitempty" xml:"hint,omitempty"`
	// 是否有抽奖活动
	HasPromotionEvent bool `json:"has_promotion_event,omitempty" xml:"has_promotion_event,omitempty"`
}

GetPromotionInfoResultDo 结构体

type PartnerPayResultDo

type PartnerPayResultDo struct {
	// 金额
	FundMoney string `json:"fund_money,omitempty" xml:"fund_money,omitempty"`
	// 金额构成
	FundMoneyCode string `json:"fund_money_code,omitempty" xml:"fund_money_code,omitempty"`
	// 手机号
	Mobile string `json:"mobile,omitempty" xml:"mobile,omitempty"`
	// 订单号
	OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
	// 支付结果码
	PayCode string `json:"pay_code,omitempty" xml:"pay_code,omitempty"`
	// 支付模式码
	PayMode string `json:"pay_mode,omitempty" xml:"pay_mode,omitempty"`
}

PartnerPayResultDo 结构体

type PreCreateResultDo

type PreCreateResultDo struct {
	// 外部订单号
	OutOrderNo string `json:"out_order_no,omitempty" xml:"out_order_no,omitempty"`
	// 二维码
	QrCode string `json:"qr_code,omitempty" xml:"qr_code,omitempty"`
}

PreCreateResultDo 结构体

type QueryPayResultResultDo

type QueryPayResultResultDo struct {
	// 支付资金组成情况
	FundMoney string `json:"fund_money,omitempty" xml:"fund_money,omitempty"`
	// 支付资金组成情况
	FundMoneyCode string `json:"fund_money_code,omitempty" xml:"fund_money_code,omitempty"`
	// 订单状态
	Status string `json:"status,omitempty" xml:"status,omitempty"`
}

QueryPayResultResultDo 结构体

type SdkAppConfigDo

type SdkAppConfigDo struct {
	// 自定义属性
	ConfigProps string `json:"config_props,omitempty" xml:"config_props,omitempty"`
	// 是否上传日志
	EnableUploadLog bool `json:"enable_upload_log,omitempty" xml:"enable_upload_log,omitempty"`
	// 是否开启友盟
	EnableYoument bool `json:"enable_youment,omitempty" xml:"enable_youment,omitempty"`
	// 是否自动登入
	EnableAutoLogin bool `json:"enable_auto_login,omitempty" xml:"enable_auto_login,omitempty"`
}

SdkAppConfigDo 结构体

type SdkGlobalConfigDo

type SdkGlobalConfigDo struct {
	// h5路由属性
	H5ProxyUrl string `json:"h5_proxy_url,omitempty" xml:"h5_proxy_url,omitempty"`
	// 询问对话框样式
	AutoLoginDialogPattern int64 `json:"auto_login_dialog_pattern,omitempty" xml:"auto_login_dialog_pattern,omitempty"`
	// 是否询问用户要自动登录
	AskBeforeAutoLogin bool `json:"ask_before_auto_login,omitempty" xml:"ask_before_auto_login,omitempty"`
	// 如果询问,是否默认选中自动登录
	AutoLoginChecked bool `json:"auto_login_checked,omitempty" xml:"auto_login_checked,omitempty"`
	// 是否默认展示授权二维码
	ShowAuthCodeByDefault bool `json:"show_auth_code_by_default,omitempty" xml:"show_auth_code_by_default,omitempty"`
}

SdkGlobalConfigDo 结构体

type TaobaoTvpayAccessDataGetAPIRequest added in v1.2.0

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

TaobaoTvpayAccessDataGetAPIRequest tv支付 API请求 taobao.tvpay.access.data.get

在匿名用户支付后尝试为其登陆绑定的淘宝账号

func NewTaobaoTvpayAccessDataGetRequest

func NewTaobaoTvpayAccessDataGetRequest() *TaobaoTvpayAccessDataGetAPIRequest

NewTaobaoTvpayAccessDataGetRequest 初始化TaobaoTvpayAccessDataGetAPIRequest对象

func (TaobaoTvpayAccessDataGetAPIRequest) GetAccountClientVersion added in v1.2.0

func (r TaobaoTvpayAccessDataGetAPIRequest) GetAccountClientVersion() string

GetAccountClientVersion AccountClientVersion Getter

func (TaobaoTvpayAccessDataGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayAccessDataGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayAccessDataGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayAccessDataGetAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (TaobaoTvpayAccessDataGetAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayAccessDataGetAPIRequest) GetOutOrderNo added in v1.2.0

func (r TaobaoTvpayAccessDataGetAPIRequest) GetOutOrderNo() string

GetOutOrderNo OutOrderNo Getter

func (TaobaoTvpayAccessDataGetAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTvpayAccessDataGetAPIRequest) SetAccountClientVersion added in v1.2.0

func (r *TaobaoTvpayAccessDataGetAPIRequest) SetAccountClientVersion(_accountClientVersion string) error

SetAccountClientVersion is AccountClientVersion Setter 账号客户端版本

func (*TaobaoTvpayAccessDataGetAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayAccessDataGetAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayAccessDataGetAPIRequest) SetFrom added in v1.2.0

SetFrom is From Setter 来源

func (*TaobaoTvpayAccessDataGetAPIRequest) SetOutOrderNo added in v1.2.0

func (r *TaobaoTvpayAccessDataGetAPIRequest) SetOutOrderNo(_outOrderNo string) error

SetOutOrderNo is OutOrderNo Setter 订单id

type TaobaoTvpayAccessDataGetAPIResponse

type TaobaoTvpayAccessDataGetAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayAccessDataGetAPIResponseModel
}

TaobaoTvpayAccessDataGetAPIResponse tv支付 API返回值 taobao.tvpay.access.data.get

在匿名用户支付后尝试为其登陆绑定的淘宝账号

type TaobaoTvpayAccessDataGetAPIResponseModel added in v1.2.0

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

TaobaoTvpayAccessDataGetAPIResponseModel is tv支付 成功返回结果

type TaobaoTvpayAppinfoGetAPIRequest added in v1.2.0

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

TaobaoTvpayAppinfoGetAPIRequest tv支付获取应用信息 API请求 taobao.tvpay.appinfo.get

tv支付获取应用信息

func NewTaobaoTvpayAppinfoGetRequest

func NewTaobaoTvpayAppinfoGetRequest() *TaobaoTvpayAppinfoGetAPIRequest

NewTaobaoTvpayAppinfoGetRequest 初始化TaobaoTvpayAppinfoGetAPIRequest对象

func (TaobaoTvpayAppinfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayAppinfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayAppinfoGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayAppinfoGetAPIRequest) GetClientVersion added in v1.2.0

func (r TaobaoTvpayAppinfoGetAPIRequest) GetClientVersion() string

GetClientVersion ClientVersion Getter

func (TaobaoTvpayAppinfoGetAPIRequest) GetDeviceId added in v1.2.0

func (r TaobaoTvpayAppinfoGetAPIRequest) GetDeviceId() string

GetDeviceId DeviceId Getter

func (TaobaoTvpayAppinfoGetAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayAppinfoGetAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTvpayAppinfoGetAPIRequest) GetRawParams() model.Params

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

func (*TaobaoTvpayAppinfoGetAPIRequest) SetClientVersion added in v1.2.0

func (r *TaobaoTvpayAppinfoGetAPIRequest) SetClientVersion(_clientVersion string) error

SetClientVersion is ClientVersion Setter 客户端版本号

func (*TaobaoTvpayAppinfoGetAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayAppinfoGetAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayAppinfoGetAPIRequest) SetFrom added in v1.2.0

func (r *TaobaoTvpayAppinfoGetAPIRequest) SetFrom(_from string) error

SetFrom is From Setter 来源

type TaobaoTvpayAppinfoGetAPIResponse

type TaobaoTvpayAppinfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayAppinfoGetAPIResponseModel
}

TaobaoTvpayAppinfoGetAPIResponse tv支付获取应用信息 API返回值 taobao.tvpay.appinfo.get

tv支付获取应用信息

type TaobaoTvpayAppinfoGetAPIResponseModel added in v1.2.0

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

TaobaoTvpayAppinfoGetAPIResponseModel is tv支付获取应用信息 成功返回结果

type TaobaoTvpayAuthApplyAPIRequest added in v1.2.0

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

TaobaoTvpayAuthApplyAPIRequest tv支付申请设备授权 API请求 taobao.tvpay.auth.apply

为用户在指定设备上申请支付授权

func NewTaobaoTvpayAuthApplyRequest

func NewTaobaoTvpayAuthApplyRequest() *TaobaoTvpayAuthApplyAPIRequest

NewTaobaoTvpayAuthApplyRequest 初始化TaobaoTvpayAuthApplyAPIRequest对象

func (TaobaoTvpayAuthApplyAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayAuthApplyAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayAuthApplyAPIRequest) GetBizScene added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetBizScene() string

GetBizScene BizScene Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetDeviceId added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetDeviceId() string

GetDeviceId DeviceId Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetItemName added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetItemName() string

GetItemName ItemName Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetOperateType added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetOperateType() string

GetOperateType OperateType Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetOutApproveId added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetOutApproveId() string

GetOutApproveId OutApproveId Getter

func (TaobaoTvpayAuthApplyAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTvpayAuthApplyAPIRequest) GetRawParams() model.Params

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

func (TaobaoTvpayAuthApplyAPIRequest) GetTotalFee added in v1.2.0

func (r TaobaoTvpayAuthApplyAPIRequest) GetTotalFee() string

GetTotalFee TotalFee Getter

func (*TaobaoTvpayAuthApplyAPIRequest) SetBizScene added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetBizScene(_bizScene string) error

SetBizScene is BizScene Setter 场景

func (*TaobaoTvpayAuthApplyAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayAuthApplyAPIRequest) SetFrom added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetFrom(_from string) error

SetFrom is From Setter 请求来源

func (*TaobaoTvpayAuthApplyAPIRequest) SetItemName added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetItemName(_itemName string) error

SetItemName is ItemName Setter 商品名称

func (*TaobaoTvpayAuthApplyAPIRequest) SetOperateType added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetOperateType(_operateType string) error

SetOperateType is OperateType Setter 授权类型

func (*TaobaoTvpayAuthApplyAPIRequest) SetOutApproveId added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetOutApproveId(_outApproveId string) error

SetOutApproveId is OutApproveId Setter 外部订单号

func (*TaobaoTvpayAuthApplyAPIRequest) SetTotalFee added in v1.2.0

func (r *TaobaoTvpayAuthApplyAPIRequest) SetTotalFee(_totalFee string) error

SetTotalFee is TotalFee Setter 金额

type TaobaoTvpayAuthApplyAPIResponse

type TaobaoTvpayAuthApplyAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayAuthApplyAPIResponseModel
}

TaobaoTvpayAuthApplyAPIResponse tv支付申请设备授权 API返回值 taobao.tvpay.auth.apply

为用户在指定设备上申请支付授权

type TaobaoTvpayAuthApplyAPIResponseModel added in v1.2.0

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

TaobaoTvpayAuthApplyAPIResponseModel is tv支付申请设备授权 成功返回结果

type TaobaoTvpayOrderPartnerpayAPIRequest added in v1.2.0

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

TaobaoTvpayOrderPartnerpayAPIRequest tv支付第三方支付订单 API请求 taobao.tvpay.order.partnerpay

tv支付第三方发起并支付订单(使用设备授权)

func NewTaobaoTvpayOrderPartnerpayRequest

func NewTaobaoTvpayOrderPartnerpayRequest() *TaobaoTvpayOrderPartnerpayAPIRequest

NewTaobaoTvpayOrderPartnerpayRequest 初始化TaobaoTvpayOrderPartnerpayAPIRequest对象

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayOrderPartnerpayAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetData added in v1.2.0

GetData Data Getter

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetLicense added in v1.2.0

GetLicense License Getter

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetPayType added in v1.2.0

GetPayType PayType Getter

func (TaobaoTvpayOrderPartnerpayAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTvpayOrderPartnerpayAPIRequest) SetData added in v1.2.0

SetData is Data Setter 订单信息

func (*TaobaoTvpayOrderPartnerpayAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayOrderPartnerpayAPIRequest) SetFrom added in v1.2.0

SetFrom is From Setter 来源

func (*TaobaoTvpayOrderPartnerpayAPIRequest) SetLicense added in v1.2.0

func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetLicense(_license string) error

SetLicense is License Setter 牌照方

func (*TaobaoTvpayOrderPartnerpayAPIRequest) SetPayType added in v1.2.0

func (r *TaobaoTvpayOrderPartnerpayAPIRequest) SetPayType(_payType string) error

SetPayType is PayType Setter 支付方式

type TaobaoTvpayOrderPartnerpayAPIResponse

type TaobaoTvpayOrderPartnerpayAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayOrderPartnerpayAPIResponseModel
}

TaobaoTvpayOrderPartnerpayAPIResponse tv支付第三方支付订单 API返回值 taobao.tvpay.order.partnerpay

tv支付第三方发起并支付订单(使用设备授权)

type TaobaoTvpayOrderPartnerpayAPIResponseModel added in v1.2.0

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

TaobaoTvpayOrderPartnerpayAPIResponseModel is tv支付第三方支付订单 成功返回结果

type TaobaoTvpayOrderPrecreateAPIRequest added in v1.2.0

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

TaobaoTvpayOrderPrecreateAPIRequest tv支付预下单 API请求 taobao.tvpay.order.precreate

tv支付预下单

func NewTaobaoTvpayOrderPrecreateRequest

func NewTaobaoTvpayOrderPrecreateRequest() *TaobaoTvpayOrderPrecreateAPIRequest

NewTaobaoTvpayOrderPrecreateRequest 初始化TaobaoTvpayOrderPrecreateAPIRequest对象

func (TaobaoTvpayOrderPrecreateAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayOrderPrecreateAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayOrderPrecreateAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayOrderPrecreateAPIRequest) GetData added in v1.2.0

GetData Data Getter

func (TaobaoTvpayOrderPrecreateAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (TaobaoTvpayOrderPrecreateAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayOrderPrecreateAPIRequest) GetLicense added in v1.2.0

GetLicense License Getter

func (TaobaoTvpayOrderPrecreateAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTvpayOrderPrecreateAPIRequest) SetData added in v1.2.0

SetData is Data Setter 订单详情

func (*TaobaoTvpayOrderPrecreateAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayOrderPrecreateAPIRequest) SetFrom added in v1.2.0

SetFrom is From Setter 来源

func (*TaobaoTvpayOrderPrecreateAPIRequest) SetLicense added in v1.2.0

func (r *TaobaoTvpayOrderPrecreateAPIRequest) SetLicense(_license string) error

SetLicense is License Setter 牌照方

type TaobaoTvpayOrderPrecreateAPIResponse

type TaobaoTvpayOrderPrecreateAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayOrderPrecreateAPIResponseModel
}

TaobaoTvpayOrderPrecreateAPIResponse tv支付预下单 API返回值 taobao.tvpay.order.precreate

tv支付预下单

type TaobaoTvpayOrderPrecreateAPIResponseModel added in v1.2.0

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

TaobaoTvpayOrderPrecreateAPIResponseModel is tv支付预下单 成功返回结果

type TaobaoTvpayOrderQueryAPIRequest added in v1.2.0

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

TaobaoTvpayOrderQueryAPIRequest tv支付查询订单状态 API请求 taobao.tvpay.order.query

tv支付查询订单状态

func NewTaobaoTvpayOrderQueryRequest

func NewTaobaoTvpayOrderQueryRequest() *TaobaoTvpayOrderQueryAPIRequest

NewTaobaoTvpayOrderQueryRequest 初始化TaobaoTvpayOrderQueryAPIRequest对象

func (TaobaoTvpayOrderQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayOrderQueryAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayOrderQueryAPIRequest) GetBizOrderId added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetBizOrderId() string

GetBizOrderId BizOrderId Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetDeviceId added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetDeviceId() string

GetDeviceId DeviceId Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetIsTao added in v1.2.0

GetIsTao IsTao Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetLicense added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetLicense() string

GetLicense License Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetOrderNo added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetOrderNo() string

GetOrderNo OrderNo Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetOrderType added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetOrderType() string

GetOrderType OrderType Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetOutOrderNo added in v1.2.0

func (r TaobaoTvpayOrderQueryAPIRequest) GetOutOrderNo() string

GetOutOrderNo OutOrderNo Getter

func (TaobaoTvpayOrderQueryAPIRequest) GetRawParams added in v1.2.8

func (r TaobaoTvpayOrderQueryAPIRequest) GetRawParams() model.Params

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

func (*TaobaoTvpayOrderQueryAPIRequest) SetBizOrderId added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetBizOrderId(_bizOrderId string) error

SetBizOrderId is BizOrderId Setter 业务订单号

func (*TaobaoTvpayOrderQueryAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayOrderQueryAPIRequest) SetFrom added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetFrom(_from string) error

SetFrom is From Setter 来源

func (*TaobaoTvpayOrderQueryAPIRequest) SetIsTao added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetIsTao(_isTao bool) error

SetIsTao is IsTao Setter 是否淘系

func (*TaobaoTvpayOrderQueryAPIRequest) SetLicense added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetLicense(_license string) error

SetLicense is License Setter 牌照方

func (*TaobaoTvpayOrderQueryAPIRequest) SetOrderNo added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetOrderNo(_orderNo string) error

SetOrderNo is OrderNo Setter 支付宝订单号

func (*TaobaoTvpayOrderQueryAPIRequest) SetOrderType added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetOrderType(_orderType string) error

SetOrderType is OrderType Setter 订单类型

func (*TaobaoTvpayOrderQueryAPIRequest) SetOutOrderNo added in v1.2.0

func (r *TaobaoTvpayOrderQueryAPIRequest) SetOutOrderNo(_outOrderNo string) error

SetOutOrderNo is OutOrderNo Setter 外部订单号

type TaobaoTvpayOrderQueryAPIResponse

type TaobaoTvpayOrderQueryAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayOrderQueryAPIResponseModel
}

TaobaoTvpayOrderQueryAPIResponse tv支付查询订单状态 API返回值 taobao.tvpay.order.query

tv支付查询订单状态

type TaobaoTvpayOrderQueryAPIResponseModel added in v1.2.0

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

TaobaoTvpayOrderQueryAPIResponseModel is tv支付查询订单状态 成功返回结果

type TaobaoTvpayPartnerOrderQueryAPIRequest added in v1.2.0

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

TaobaoTvpayPartnerOrderQueryAPIRequest 商户查询订单 API请求 taobao.tvpay.partner.order.query

给商户提供的查询订单状态的API

func NewTaobaoTvpayPartnerOrderQueryRequest

func NewTaobaoTvpayPartnerOrderQueryRequest() *TaobaoTvpayPartnerOrderQueryAPIRequest

NewTaobaoTvpayPartnerOrderQueryRequest 初始化TaobaoTvpayPartnerOrderQueryAPIRequest对象

func (TaobaoTvpayPartnerOrderQueryAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayPartnerOrderQueryAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayPartnerOrderQueryAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayPartnerOrderQueryAPIRequest) GetOrderNo added in v1.2.0

GetOrderNo OrderNo Getter

func (TaobaoTvpayPartnerOrderQueryAPIRequest) GetRawParams added in v1.2.8

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

func (*TaobaoTvpayPartnerOrderQueryAPIRequest) SetOrderNo added in v1.2.0

func (r *TaobaoTvpayPartnerOrderQueryAPIRequest) SetOrderNo(_orderNo string) error

SetOrderNo is OrderNo Setter 商户订单号

type TaobaoTvpayPartnerOrderQueryAPIResponse

type TaobaoTvpayPartnerOrderQueryAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayPartnerOrderQueryAPIResponseModel
}

TaobaoTvpayPartnerOrderQueryAPIResponse 商户查询订单 API返回值 taobao.tvpay.partner.order.query

给商户提供的查询订单状态的API

type TaobaoTvpayPartnerOrderQueryAPIResponseModel added in v1.2.0

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

TaobaoTvpayPartnerOrderQueryAPIResponseModel is 商户查询订单 成功返回结果

type TaobaoTvpayPromotionInfoGetAPIRequest added in v1.2.0

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

TaobaoTvpayPromotionInfoGetAPIRequest tv支付查询消费抽奖配置 API请求 taobao.tvpay.promotion.info.get

查询消费抽奖配置

func NewTaobaoTvpayPromotionInfoGetRequest

func NewTaobaoTvpayPromotionInfoGetRequest() *TaobaoTvpayPromotionInfoGetAPIRequest

NewTaobaoTvpayPromotionInfoGetRequest 初始化TaobaoTvpayPromotionInfoGetAPIRequest对象

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetApiMethodName added in v1.2.0

func (r TaobaoTvpayPromotionInfoGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetApiParams added in v1.2.0

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

GetApiParams IRequest interface 方法, 获取API参数

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetDeviceId added in v1.2.0

GetDeviceId DeviceId Getter

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetExtOrderId added in v1.2.0

GetExtOrderId ExtOrderId Getter

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetFrom added in v1.2.0

GetFrom From Getter

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetIsTao added in v1.2.0

GetIsTao IsTao Getter

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetRawParams added in v1.2.8

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

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetSubject added in v1.2.0

GetSubject Subject Getter

func (TaobaoTvpayPromotionInfoGetAPIRequest) GetSubjectId added in v1.2.0

GetSubjectId SubjectId Getter

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetDeviceId added in v1.2.0

func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetDeviceId(_deviceId string) error

SetDeviceId is DeviceId Setter 设备id

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetExtOrderId added in v1.2.0

func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetExtOrderId(_extOrderId string) error

SetExtOrderId is ExtOrderId Setter 淘系订单号

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetFrom added in v1.2.0

SetFrom is From Setter 来源

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetIsTao added in v1.2.0

func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetIsTao(_isTao bool) error

SetIsTao is IsTao Setter 是否淘系

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetSubject added in v1.2.0

func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubject(_subject string) error

SetSubject is Subject Setter 标题

func (*TaobaoTvpayPromotionInfoGetAPIRequest) SetSubjectId added in v1.2.0

func (r *TaobaoTvpayPromotionInfoGetAPIRequest) SetSubjectId(_subjectId string) error

SetSubjectId is SubjectId Setter 商品id

type TaobaoTvpayPromotionInfoGetAPIResponse

type TaobaoTvpayPromotionInfoGetAPIResponse struct {
	model.CommonResponse
	TaobaoTvpayPromotionInfoGetAPIResponseModel
}

TaobaoTvpayPromotionInfoGetAPIResponse tv支付查询消费抽奖配置 API返回值 taobao.tvpay.promotion.info.get

查询消费抽奖配置

type TaobaoTvpayPromotionInfoGetAPIResponseModel added in v1.2.0

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

TaobaoTvpayPromotionInfoGetAPIResponseModel is tv支付查询消费抽奖配置 成功返回结果

type TopResultDo

type TopResultDo struct {
	// 状态码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 消息
	Message string `json:"message,omitempty" xml:"message,omitempty"`
	// 结构体
	Data *GetLoginInfoByOrderResultDo `json:"data,omitempty" xml:"data,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

TopResultDo 结构体

Jump to

Keyboard shortcuts

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