game

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

淘宝游戏API model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleCardCancelDto

type AppleCardCancelDto struct {
	// 单卡取消激活结果描述
	StatusDesc string `json:"status_desc,omitempty" xml:"status_desc,omitempty"`
	// 单卡取消激活结果码
	StatusCode string `json:"status_code,omitempty" xml:"status_code,omitempty"`
	// 面值
	FacePrice string `json:"face_price,omitempty" xml:"face_price,omitempty"`
	// 卡号
	CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
	// 产品编码
	ZhxGoodsId string `json:"zhx_goods_id,omitempty" xml:"zhx_goods_id,omitempty"`
}

AppleCardCancelDto

type AppleCardDto

type AppleCardDto struct {
	// 面值
	FacePrice string `json:"face_price,omitempty" xml:"face_price,omitempty"`
	// 有效期
	Expire string `json:"expire,omitempty" xml:"expire,omitempty"`
	// 卡密
	CardPass string `json:"card_pass,omitempty" xml:"card_pass,omitempty"`
	// 卡号
	CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
	// 产品编码
	ZhxGoodsId string `json:"zhx_goods_id,omitempty" xml:"zhx_goods_id,omitempty"`
}

AppleCardDto

type AppleTopActivateNotifyDo

type AppleTopActivateNotifyDo struct {
	// 电子卡卡号
	CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
	// 商品编号
	GoodsId string `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 商户唯一订单号
	OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
	// 附加信息,后续可以扩展
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 商户上送UCI
	Uci string `json:"uci,omitempty" xml:"uci,omitempty"`
	// 面值,单位分
	FacePrice string `json:"face_price,omitempty" xml:"face_price,omitempty"`
	// 网关订单号
	GatewayOrderNo string `json:"gateway_order_no,omitempty" xml:"gateway_order_no,omitempty"`
	// 电子卡密码
	CardPass string `json:"card_pass,omitempty" xml:"card_pass,omitempty"`
}

AppleTopActivateNotifyDo

type AppleTopNewSignNotifyDo

type AppleTopNewSignNotifyDo struct {
	// 电子卡卡号
	CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
	// TopUpTocken
	Tut string `json:"tut,omitempty" xml:"tut,omitempty"`
	// 商户订单号
	OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
	// 附加信息,后续可以扩展
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 商户上送的用户Id
	UserNo string `json:"user_no,omitempty" xml:"user_no,omitempty"`
	// 商户上送UCI
	Uci string `json:"uci,omitempty" xml:"uci,omitempty"`
	// Mask id
	Mai string `json:"mai,omitempty" xml:"mai,omitempty"`
	// 网关请求流水号,每次请求唯一
	QueryId string `json:"query_id,omitempty" xml:"query_id,omitempty"`
	// 商户上送tUCI
	Tuci string `json:"tuci,omitempty" xml:"tuci,omitempty"`
}

AppleTopNewSignNotifyDo

type AppleTopOldSignNotifyDo

type AppleTopOldSignNotifyDo struct {
	// 电子卡卡号
	CardNo string `json:"card_no,omitempty" xml:"card_no,omitempty"`
	// 商品编号
	GoodsId string `json:"goods_id,omitempty" xml:"goods_id,omitempty"`
	// 商户订单号
	OrderNo string `json:"order_no,omitempty" xml:"order_no,omitempty"`
	// 附加信息,后续可以扩展
	Memo string `json:"memo,omitempty" xml:"memo,omitempty"`
	// 面值,单位分
	FacePrice string `json:"face_price,omitempty" xml:"face_price,omitempty"`
	// 网关订单号
	GatewayOrderNo string `json:"gateway_order_no,omitempty" xml:"gateway_order_no,omitempty"`
}

AppleTopOldSignNotifyDo

type TaobaoAppleCardActiveApplyNotifyAPIResponse

type TaobaoAppleCardActiveApplyNotifyAPIResponse struct {
	model.CommonResponse
	TaobaoAppleCardActiveApplyNotifyResponse
}

苹果卡密申请激活回调接口 API返回值 taobao.apple.card.active.apply.notify

苹果卡密申请激活回调接口

type TaobaoAppleCardActiveApplyNotifyRequest

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

苹果卡密申请激活回调接口 API请求 taobao.apple.card.active.apply.notify

苹果卡密申请激活回调接口

func NewTaobaoAppleCardActiveApplyNotifyRequest

func NewTaobaoAppleCardActiveApplyNotifyRequest() *TaobaoAppleCardActiveApplyNotifyRequest

初始化TaobaoAppleCardActiveApplyNotifyRequest对象

func (TaobaoAppleCardActiveApplyNotifyRequest) GetApiMethodName

func (r TaobaoAppleCardActiveApplyNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAppleCardActiveApplyNotifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleCardActiveApplyNotifyRequest) GetAppleCards

AppleCards Getter

func (TaobaoAppleCardActiveApplyNotifyRequest) GetGatewayOrderNo

func (r TaobaoAppleCardActiveApplyNotifyRequest) GetGatewayOrderNo() string

GatewayOrderNo Getter

func (TaobaoAppleCardActiveApplyNotifyRequest) GetOrderNo

OrderNo Getter

func (TaobaoAppleCardActiveApplyNotifyRequest) GetResultCode

ResultCode Getter

func (TaobaoAppleCardActiveApplyNotifyRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleCardActiveApplyNotifyRequest) SetAppleCards

func (r *TaobaoAppleCardActiveApplyNotifyRequest) SetAppleCards(appleCards []AppleCardDto) error

AppleCards Setter 卡列表

func (*TaobaoAppleCardActiveApplyNotifyRequest) SetGatewayOrderNo

func (r *TaobaoAppleCardActiveApplyNotifyRequest) SetGatewayOrderNo(gatewayOrderNo string) error

GatewayOrderNo Setter 网关订单号

func (*TaobaoAppleCardActiveApplyNotifyRequest) SetOrderNo

func (r *TaobaoAppleCardActiveApplyNotifyRequest) SetOrderNo(orderNo string) error

OrderNo Setter 商户唯一订单号

func (*TaobaoAppleCardActiveApplyNotifyRequest) SetResultCode

func (r *TaobaoAppleCardActiveApplyNotifyRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果,000:成功,其他皆为错误 04: 订单处理失败(商户可退款,其他不可退款)

func (*TaobaoAppleCardActiveApplyNotifyRequest) SetResultMsg

func (r *TaobaoAppleCardActiveApplyNotifyRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 描述

type TaobaoAppleCardActiveApplyNotifyResponse

type TaobaoAppleCardActiveApplyNotifyResponse struct {
	XMLName xml.Name `xml:"apple_card_active_apply_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

苹果卡密申请激活回调接口 成功返回结果

type TaobaoAppleCardActiveCancelNotifyAPIResponse

type TaobaoAppleCardActiveCancelNotifyAPIResponse struct {
	model.CommonResponse
	TaobaoAppleCardActiveCancelNotifyResponse
}

苹果卡密取消激活回调接口 API返回值 taobao.apple.card.active.cancel.notify

苹果卡密取消激活回调接口

type TaobaoAppleCardActiveCancelNotifyRequest

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

苹果卡密取消激活回调接口 API请求 taobao.apple.card.active.cancel.notify

苹果卡密取消激活回调接口

func NewTaobaoAppleCardActiveCancelNotifyRequest

func NewTaobaoAppleCardActiveCancelNotifyRequest() *TaobaoAppleCardActiveCancelNotifyRequest

初始化TaobaoAppleCardActiveCancelNotifyRequest对象

func (TaobaoAppleCardActiveCancelNotifyRequest) GetApiMethodName

func (r TaobaoAppleCardActiveCancelNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAppleCardActiveCancelNotifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleCardActiveCancelNotifyRequest) GetAppleCardCancels

AppleCardCancels Getter

func (TaobaoAppleCardActiveCancelNotifyRequest) GetGatewayOrderNo

func (r TaobaoAppleCardActiveCancelNotifyRequest) GetGatewayOrderNo() string

GatewayOrderNo Getter

func (TaobaoAppleCardActiveCancelNotifyRequest) GetOrderNo

OrderNo Getter

func (TaobaoAppleCardActiveCancelNotifyRequest) GetResultCode

ResultCode Getter

func (TaobaoAppleCardActiveCancelNotifyRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleCardActiveCancelNotifyRequest) SetAppleCardCancels

func (r *TaobaoAppleCardActiveCancelNotifyRequest) SetAppleCardCancels(appleCardCancels []AppleCardCancelDto) error

AppleCardCancels Setter 卡信息

func (*TaobaoAppleCardActiveCancelNotifyRequest) SetGatewayOrderNo

func (r *TaobaoAppleCardActiveCancelNotifyRequest) SetGatewayOrderNo(gatewayOrderNo string) error

GatewayOrderNo Setter 网关订单号

func (*TaobaoAppleCardActiveCancelNotifyRequest) SetOrderNo

func (r *TaobaoAppleCardActiveCancelNotifyRequest) SetOrderNo(orderNo string) error

OrderNo Setter 原商户申请激活时的订单号

func (*TaobaoAppleCardActiveCancelNotifyRequest) SetResultCode

func (r *TaobaoAppleCardActiveCancelNotifyRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果,000:整单取消激活成功 04: 取消激活失败(包括全部失败和部分失败,此时需以detail为准)

func (*TaobaoAppleCardActiveCancelNotifyRequest) SetResultMsg

func (r *TaobaoAppleCardActiveCancelNotifyRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 描述

type TaobaoAppleCardActiveCancelNotifyResponse

type TaobaoAppleCardActiveCancelNotifyResponse struct {
	XMLName xml.Name `xml:"apple_card_active_cancel_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 错误码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 描述
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
}

苹果卡密取消激活回调接口 成功返回结果

type TaobaoAppleNewuserActivateNotifyAPIResponse

type TaobaoAppleNewuserActivateNotifyAPIResponse struct {
	model.CommonResponse
	TaobaoAppleNewuserActivateNotifyResponse
}

新用户激活通知接口 API返回值 taobao.apple.newuser.activate.notify

资和信主动通知激活结果

type TaobaoAppleNewuserActivateNotifyRequest

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

新用户激活通知接口 API请求 taobao.apple.newuser.activate.notify

资和信主动通知激活结果

func NewTaobaoAppleNewuserActivateNotifyRequest

func NewTaobaoAppleNewuserActivateNotifyRequest() *TaobaoAppleNewuserActivateNotifyRequest

初始化TaobaoAppleNewuserActivateNotifyRequest对象

func (TaobaoAppleNewuserActivateNotifyRequest) GetApiMethodName

func (r TaobaoAppleNewuserActivateNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAppleNewuserActivateNotifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleNewuserActivateNotifyRequest) GetMainData

MainData Getter

func (TaobaoAppleNewuserActivateNotifyRequest) GetResultCode

ResultCode Getter

func (TaobaoAppleNewuserActivateNotifyRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleNewuserActivateNotifyRequest) SetMainData

MainData Setter 主业务参数

func (*TaobaoAppleNewuserActivateNotifyRequest) SetResultCode

func (r *TaobaoAppleNewuserActivateNotifyRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果对应值,00位成功,其他为失败

func (*TaobaoAppleNewuserActivateNotifyRequest) SetResultMsg

func (r *TaobaoAppleNewuserActivateNotifyRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 处理结果中文描述

type TaobaoAppleNewuserActivateNotifyResponse

type TaobaoAppleNewuserActivateNotifyResponse struct {
	XMLName xml.Name `xml:"apple_newuser_activate_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 处理结果说明
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 处理结果码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

新用户激活通知接口 成功返回结果

type TaobaoAppleNewuserSignNotifyAPIResponse

type TaobaoAppleNewuserSignNotifyAPIResponse struct {
	model.CommonResponse
	TaobaoAppleNewuserSignNotifyResponse
}

新用户签约通知接口 API返回值 taobao.apple.newuser.sign.notify

用户付款成功后,资和信主动通知签约结果

type TaobaoAppleNewuserSignNotifyNewversionAPIResponse

type TaobaoAppleNewuserSignNotifyNewversionAPIResponse struct {
	model.CommonResponse
	TaobaoAppleNewuserSignNotifyNewversionResponse
}

新用户签约结果通知接口v2 API返回值 taobao.apple.newuser.sign.notify.newversion

资和信主动通知签约结果

type TaobaoAppleNewuserSignNotifyNewversionRequest

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

新用户签约结果通知接口v2 API请求 taobao.apple.newuser.sign.notify.newversion

资和信主动通知签约结果

func NewTaobaoAppleNewuserSignNotifyNewversionRequest

func NewTaobaoAppleNewuserSignNotifyNewversionRequest() *TaobaoAppleNewuserSignNotifyNewversionRequest

初始化TaobaoAppleNewuserSignNotifyNewversionRequest对象

func (TaobaoAppleNewuserSignNotifyNewversionRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (TaobaoAppleNewuserSignNotifyNewversionRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleNewuserSignNotifyNewversionRequest) GetMainData

MainData Getter

func (TaobaoAppleNewuserSignNotifyNewversionRequest) GetResultCode

ResultCode Getter

func (TaobaoAppleNewuserSignNotifyNewversionRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleNewuserSignNotifyNewversionRequest) SetMainData

MainData Setter 业务参数

func (*TaobaoAppleNewuserSignNotifyNewversionRequest) SetResultCode

func (r *TaobaoAppleNewuserSignNotifyNewversionRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果code

func (*TaobaoAppleNewuserSignNotifyNewversionRequest) SetResultMsg

func (r *TaobaoAppleNewuserSignNotifyNewversionRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 结果信息说明

type TaobaoAppleNewuserSignNotifyNewversionResponse

type TaobaoAppleNewuserSignNotifyNewversionResponse struct {
	XMLName xml.Name `xml:"apple_newuser_sign_notify_newversion_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 处理结果说明
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 处理结果码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

新用户签约结果通知接口v2 成功返回结果

type TaobaoAppleNewuserSignNotifyRequest

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

新用户签约通知接口 API请求 taobao.apple.newuser.sign.notify

用户付款成功后,资和信主动通知签约结果

func NewTaobaoAppleNewuserSignNotifyRequest

func NewTaobaoAppleNewuserSignNotifyRequest() *TaobaoAppleNewuserSignNotifyRequest

初始化TaobaoAppleNewuserSignNotifyRequest对象

func (TaobaoAppleNewuserSignNotifyRequest) GetApiMethodName

func (r TaobaoAppleNewuserSignNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAppleNewuserSignNotifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleNewuserSignNotifyRequest) GetMainData

MainData Getter

func (TaobaoAppleNewuserSignNotifyRequest) GetResultCode

func (r TaobaoAppleNewuserSignNotifyRequest) GetResultCode() string

ResultCode Getter

func (TaobaoAppleNewuserSignNotifyRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleNewuserSignNotifyRequest) SetMainData

MainData Setter 业务参数

func (*TaobaoAppleNewuserSignNotifyRequest) SetResultCode

func (r *TaobaoAppleNewuserSignNotifyRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果code

func (*TaobaoAppleNewuserSignNotifyRequest) SetResultMsg

func (r *TaobaoAppleNewuserSignNotifyRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 结果信息说明

type TaobaoAppleNewuserSignNotifyResponse

type TaobaoAppleNewuserSignNotifyResponse struct {
	XMLName xml.Name `xml:"apple_newuser_sign_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 处理结果说明
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 处理结果码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

新用户签约通知接口 成功返回结果

type TaobaoAppleOlduserChargeNotifyAPIResponse

type TaobaoAppleOlduserChargeNotifyAPIResponse struct {
	model.CommonResponse
	TaobaoAppleOlduserChargeNotifyResponse
}

老用户激活并兑换通知接口 API返回值 taobao.apple.olduser.charge.notify

老用户激活并兑换通知接口

type TaobaoAppleOlduserChargeNotifyRequest

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

老用户激活并兑换通知接口 API请求 taobao.apple.olduser.charge.notify

老用户激活并兑换通知接口

func NewTaobaoAppleOlduserChargeNotifyRequest

func NewTaobaoAppleOlduserChargeNotifyRequest() *TaobaoAppleOlduserChargeNotifyRequest

初始化TaobaoAppleOlduserChargeNotifyRequest对象

func (TaobaoAppleOlduserChargeNotifyRequest) GetApiMethodName

func (r TaobaoAppleOlduserChargeNotifyRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (TaobaoAppleOlduserChargeNotifyRequest) GetApiParams

IRequest interface 方法, 获取API参数

func (TaobaoAppleOlduserChargeNotifyRequest) GetMainData

MainData Getter

func (TaobaoAppleOlduserChargeNotifyRequest) GetResultCode

ResultCode Getter

func (TaobaoAppleOlduserChargeNotifyRequest) GetResultMsg

ResultMsg Getter

func (*TaobaoAppleOlduserChargeNotifyRequest) SetMainData

MainData Setter 业务参数

func (*TaobaoAppleOlduserChargeNotifyRequest) SetResultCode

func (r *TaobaoAppleOlduserChargeNotifyRequest) SetResultCode(resultCode string) error

ResultCode Setter 结果code

func (*TaobaoAppleOlduserChargeNotifyRequest) SetResultMsg

func (r *TaobaoAppleOlduserChargeNotifyRequest) SetResultMsg(resultMsg string) error

ResultMsg Setter 结果信息说明

type TaobaoAppleOlduserChargeNotifyResponse

type TaobaoAppleOlduserChargeNotifyResponse struct {
	XMLName xml.Name `xml:"apple_olduser_charge_notify_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 处理结果说明
	ResultMsg string `json:"result_msg,omitempty" xml:"result_msg,omitempty"`
	// 处理结果码
	ResultCode string `json:"result_code,omitempty" xml:"result_code,omitempty"`
}

老用户激活并兑换通知接口 成功返回结果

Jump to

Keyboard shortcuts

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