model

package
v0.0.0-...-01c5a3f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	TimeStamp       string `json:"timeStamp"`       //时间,yyyy-MM-dd HH:mm:ss
	ServiceName     string `json:"serviceName"`     //服务名称
	MessageIdentity string `json:"messageIdentity"` //认证串,MD5(timestamp + agentCode + 代售点分配唯一 key)
	AgentCode       string `json:"agentCode"`       //代售点编码
}

type CheckPayRequest

type CheckPayRequest struct {
	Authentication Authentication `json:"authentication"`
	BodyInfo       string         `json:"bodyInfo"` // bodyInfo 数据体是加密的字符串,原始报文是个 json 格式字符串
}

校验支付请求

type CheckPayRequestBodyInfo

type CheckPayRequestBodyInfo struct {
	RequestBodyInfo
	PartnerOrderId string `json:"partnerOrderId"` //订单号
}

校验支付请求BodyInfo

type CheckPayResponse

type CheckPayResponse struct {
	Response
	BodyInfo string `json:"bodyInfo"` // bodyInfo 数据体是加密的字符串,原始报文是个 json 格式字符串
}

校验支付响应

type CheckPayResponseBodyInfo

type CheckPayResponseBodyInfo struct {
	PartnerOrderId string `json:"partnerOrderId"` //订单号
	DeductResult   int    `json:"deductResult"`   //1 支付成功,0 未支付
}

校验支付响应BodyInfo

type LaterOrderRequest

type LaterOrderRequest struct {
	Authentication Authentication `json:"authentication"`
	BodyInfo       string         `json:"bodyInfo"` // bodyInfo 数据体是加密的字符串,原始报文是个 json 格式字符串
}

延时订单请求

type LaterOrderRequestBodyInfo

type LaterOrderRequestBodyInfo struct {
	RequestBodyInfo
	PartnerOrderId string `json:"partnerOrderId"` //订单号
}

延时订单请求BodyInfo

type RequestBodyInfo

type RequestBodyInfo struct {
	AgentCode string `json:"agentCode"` //代售点编码
}

type Response

type Response struct {
	RetCode int    `json:"retCode"` //响应状态码 0 成功,其它失败
	Message string `json:"message"` //响应说明
}

Jump to

Keyboard shortcuts

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