proto

package
v0.0.0-...-6058dde Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_wgpay_proto protoreflect.FileDescriptor
View Source
var Wgpay_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Wgpay",
	HandlerType: (*WgpayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenCard",
			Handler:    _Wgpay_GenCard_Handler,
		},
		{
			MethodName: "GenTrade",
			Handler:    _Wgpay_GenTrade_Handler,
		},
		{
			MethodName: "GenCombine",
			Handler:    _Wgpay_GenCombine_Handler,
		},
		{
			MethodName: "GenRefund",
			Handler:    _Wgpay_GenRefund_Handler,
		},
		{
			MethodName: "ChangeTAmount",
			Handler:    _Wgpay_ChangeTAmount_Handler,
		},
		{
			MethodName: "ChangeRAmount",
			Handler:    _Wgpay_ChangeRAmount_Handler,
		},
		{
			MethodName: "RevokeTrade",
			Handler:    _Wgpay_RevokeTrade_Handler,
		},
		{
			MethodName: "RevokeRefund",
			Handler:    _Wgpay_RevokeRefund_Handler,
		},
		{
			MethodName: "UpdateTrade",
			Handler:    _Wgpay_UpdateTrade_Handler,
		},
		{
			MethodName: "UpdateRefund",
			Handler:    _Wgpay_UpdateRefund_Handler,
		},
		{
			MethodName: "TradeTicket",
			Handler:    _Wgpay_TradeTicket_Handler,
		},
		{
			MethodName: "CombineTicket",
			Handler:    _Wgpay_CombineTicket_Handler,
		},
		{
			MethodName: "DiviTicket",
			Handler:    _Wgpay_DiviTicket_Handler,
		},
		{
			MethodName: "RefundTicket",
			Handler:    _Wgpay_RefundTicket_Handler,
		},
		{
			MethodName: "JSPay",
			Handler:    _Wgpay_JSPay_Handler,
		},
		{
			MethodName: "CombineJS",
			Handler:    _Wgpay_CombineJS_Handler,
		},
		{
			MethodName: "QueryTrade",
			Handler:    _Wgpay_QueryTrade_Handler,
		},
		{
			MethodName: "TradeRefund",
			Handler:    _Wgpay_TradeRefund_Handler,
		},
		{
			MethodName: "AppPay",
			Handler:    _Wgpay_AppPay_Handler,
		},
		{
			MethodName: "QueryRefund",
			Handler:    _Wgpay_QueryRefund_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/wgpay.proto",
}

Wgpay_ServiceDesc is the grpc.ServiceDesc for Wgpay service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWgpayServer

func RegisterWgpayServer(s grpc.ServiceRegistrar, srv WgpayServer)

Types

type AppPayRet

type AppPayRet struct {
	TradeNo   string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Appid     string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"`
	Partnerid string `protobuf:"bytes,3,opt,name=partnerid,proto3" json:"partnerid,omitempty"`
	PrepayId  string `protobuf:"bytes,4,opt,name=prepay_id,json=prepayId,proto3" json:"prepay_id,omitempty"`
	Package   string `protobuf:"bytes,5,opt,name=package,proto3" json:"package,omitempty"`
	Noncestr  string `protobuf:"bytes,6,opt,name=noncestr,proto3" json:"noncestr,omitempty"`
	Timestamp string `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Sign      string `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"`
	// contains filtered or unexported fields
}

func (*AppPayRet) Descriptor deprecated

func (*AppPayRet) Descriptor() ([]byte, []int)

Deprecated: Use AppPayRet.ProtoReflect.Descriptor instead.

func (*AppPayRet) GetAppid

func (x *AppPayRet) GetAppid() string

func (*AppPayRet) GetNoncestr

func (x *AppPayRet) GetNoncestr() string

func (*AppPayRet) GetPackage

func (x *AppPayRet) GetPackage() string

func (*AppPayRet) GetPartnerid

func (x *AppPayRet) GetPartnerid() string

func (*AppPayRet) GetPrepayId

func (x *AppPayRet) GetPrepayId() string

func (*AppPayRet) GetSign

func (x *AppPayRet) GetSign() string

func (*AppPayRet) GetTimestamp

func (x *AppPayRet) GetTimestamp() string

func (*AppPayRet) GetTradeNo

func (x *AppPayRet) GetTradeNo() string

func (*AppPayRet) ProtoMessage

func (*AppPayRet) ProtoMessage()

func (*AppPayRet) ProtoReflect

func (x *AppPayRet) ProtoReflect() protoreflect.Message

func (*AppPayRet) Reset

func (x *AppPayRet) Reset()

func (*AppPayRet) String

func (x *AppPayRet) String() string

type CombineNode

type CombineNode struct {
	Cashier  string       `protobuf:"bytes,1,opt,name=cashier,proto3" json:"cashier,omitempty"`
	Expire   string       `protobuf:"bytes,2,opt,name=expire,proto3" json:"expire,omitempty"`
	SubOrder []*TradeNode `protobuf:"bytes,3,rep,name=sub_order,json=subOrder,proto3" json:"sub_order,omitempty"`
	// contains filtered or unexported fields
}

func (*CombineNode) Descriptor deprecated

func (*CombineNode) Descriptor() ([]byte, []int)

Deprecated: Use CombineNode.ProtoReflect.Descriptor instead.

func (*CombineNode) GetCashier

func (x *CombineNode) GetCashier() string

func (*CombineNode) GetExpire

func (x *CombineNode) GetExpire() string

func (*CombineNode) GetSubOrder

func (x *CombineNode) GetSubOrder() []*TradeNode

func (*CombineNode) ProtoMessage

func (*CombineNode) ProtoMessage()

func (*CombineNode) ProtoReflect

func (x *CombineNode) ProtoReflect() protoreflect.Message

func (*CombineNode) Reset

func (x *CombineNode) Reset()

func (*CombineNode) String

func (x *CombineNode) String() string

type DiviNode

type DiviNode struct {
	Cashier       string `protobuf:"bytes,1,opt,name=cashier,proto3" json:"cashier,omitempty"`
	Smid          string `protobuf:"bytes,2,opt,name=smid,proto3" json:"smid,omitempty"`
	TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	Commission    int64  `protobuf:"varint,4,opt,name=commission,proto3" json:"commission,omitempty"`
	Desc          string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"`
	Isfinsh       bool   `protobuf:"varint,6,opt,name=isfinsh,proto3" json:"isfinsh,omitempty"`
	// contains filtered or unexported fields
}

func (*DiviNode) Descriptor deprecated

func (*DiviNode) Descriptor() ([]byte, []int)

Deprecated: Use DiviNode.ProtoReflect.Descriptor instead.

func (*DiviNode) GetCashier

func (x *DiviNode) GetCashier() string

func (*DiviNode) GetCommission

func (x *DiviNode) GetCommission() int64

func (*DiviNode) GetDesc

func (x *DiviNode) GetDesc() string

func (*DiviNode) GetIsfinsh

func (x *DiviNode) GetIsfinsh() bool

func (*DiviNode) GetSmid

func (x *DiviNode) GetSmid() string

func (*DiviNode) GetTransactionId

func (x *DiviNode) GetTransactionId() string

func (*DiviNode) ProtoMessage

func (*DiviNode) ProtoMessage()

func (*DiviNode) ProtoReflect

func (x *DiviNode) ProtoReflect() protoreflect.Message

func (*DiviNode) Reset

func (x *DiviNode) Reset()

func (*DiviNode) String

func (x *DiviNode) String() string

type JSPayRet

type JSPayRet struct {
	TradeNo   string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Appid     string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"`
	Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Noncestr  string `protobuf:"bytes,4,opt,name=noncestr,proto3" json:"noncestr,omitempty"`
	Package   string `protobuf:"bytes,5,opt,name=package,proto3" json:"package,omitempty"`
	Signtype  string `protobuf:"bytes,6,opt,name=signtype,proto3" json:"signtype,omitempty"`
	Paysign   string `protobuf:"bytes,7,opt,name=paysign,proto3" json:"paysign,omitempty"`
	// contains filtered or unexported fields
}

func (*JSPayRet) Descriptor deprecated

func (*JSPayRet) Descriptor() ([]byte, []int)

Deprecated: Use JSPayRet.ProtoReflect.Descriptor instead.

func (*JSPayRet) GetAppid

func (x *JSPayRet) GetAppid() string

func (*JSPayRet) GetNoncestr

func (x *JSPayRet) GetNoncestr() string

func (*JSPayRet) GetPackage

func (x *JSPayRet) GetPackage() string

func (*JSPayRet) GetPaysign

func (x *JSPayRet) GetPaysign() string

func (*JSPayRet) GetSigntype

func (x *JSPayRet) GetSigntype() string

func (*JSPayRet) GetTimestamp

func (x *JSPayRet) GetTimestamp() string

func (*JSPayRet) GetTradeNo

func (x *JSPayRet) GetTradeNo() string

func (*JSPayRet) ProtoMessage

func (*JSPayRet) ProtoMessage()

func (*JSPayRet) ProtoReflect

func (x *JSPayRet) ProtoReflect() protoreflect.Message

func (*JSPayRet) Reset

func (x *JSPayRet) Reset()

func (*JSPayRet) String

func (x *JSPayRet) String() string

type No

type No struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*No) Descriptor deprecated

func (*No) Descriptor() ([]byte, []int)

Deprecated: Use No.ProtoReflect.Descriptor instead.

func (*No) GetNumber

func (x *No) GetNumber() string

func (*No) ProtoMessage

func (*No) ProtoMessage()

func (*No) ProtoReflect

func (x *No) ProtoReflect() protoreflect.Message

func (*No) Reset

func (x *No) Reset()

func (*No) String

func (x *No) String() string

type NoAment

type NoAment struct {
	Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Amount int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*NoAment) Descriptor deprecated

func (*NoAment) Descriptor() ([]byte, []int)

Deprecated: Use NoAment.ProtoReflect.Descriptor instead.

func (*NoAment) GetAmount

func (x *NoAment) GetAmount() int64

func (*NoAment) GetNumber

func (x *NoAment) GetNumber() string

func (*NoAment) ProtoMessage

func (*NoAment) ProtoMessage()

func (*NoAment) ProtoReflect

func (x *NoAment) ProtoReflect() protoreflect.Message

func (*NoAment) Reset

func (x *NoAment) Reset()

func (*NoAment) String

func (x *NoAment) String() string

type PEmpty

type PEmpty struct {
	// contains filtered or unexported fields
}

Empty response for WGPay

func (*PEmpty) Descriptor deprecated

func (*PEmpty) Descriptor() ([]byte, []int)

Deprecated: Use PEmpty.ProtoReflect.Descriptor instead.

func (*PEmpty) ProtoMessage

func (*PEmpty) ProtoMessage()

func (*PEmpty) ProtoReflect

func (x *PEmpty) ProtoReflect() protoreflect.Message

func (*PEmpty) Reset

func (x *PEmpty) Reset()

func (*PEmpty) String

func (x *PEmpty) String() string

type PayInfo

type PayInfo struct {
	Payway    string `protobuf:"bytes,1,opt,name=payway,proto3" json:"payway,omitempty"`
	Status    string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Wxpayinfo string `protobuf:"bytes,3,opt,name=wxpayinfo,proto3" json:"wxpayinfo,omitempty"`
	Alpayinfo string `protobuf:"bytes,4,opt,name=alpayinfo,proto3" json:"alpayinfo,omitempty"`
	// contains filtered or unexported fields
}

func (*PayInfo) Descriptor deprecated

func (*PayInfo) Descriptor() ([]byte, []int)

Deprecated: Use PayInfo.ProtoReflect.Descriptor instead.

func (*PayInfo) GetAlpayinfo

func (x *PayInfo) GetAlpayinfo() string

func (*PayInfo) GetPayway

func (x *PayInfo) GetPayway() string

func (*PayInfo) GetStatus

func (x *PayInfo) GetStatus() string

func (*PayInfo) GetWxpayinfo

func (x *PayInfo) GetWxpayinfo() string

func (*PayInfo) ProtoMessage

func (*PayInfo) ProtoMessage()

func (*PayInfo) ProtoReflect

func (x *PayInfo) ProtoReflect() protoreflect.Message

func (*PayInfo) Reset

func (x *PayInfo) Reset()

func (*PayInfo) String

func (x *PayInfo) String() string

type QueryRef

type QueryRef struct {
	RefundId            string `protobuf:"bytes,1,opt,name=refund_id,json=refundId,proto3" json:"refund_id,omitempty"`
	OutRefundNo         string `protobuf:"bytes,2,opt,name=out_refund_no,json=outRefundNo,proto3" json:"out_refund_no,omitempty"`
	TransactionId       string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	OutTradeNo          string `protobuf:"bytes,4,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"`
	Channel             string `protobuf:"bytes,5,opt,name=channel,proto3" json:"channel,omitempty"`
	UserReceivedAccount string `protobuf:"bytes,6,opt,name=user_received_account,json=userReceivedAccount,proto3" json:"user_received_account,omitempty"`
	SuccessTime         string `protobuf:"bytes,7,opt,name=success_time,json=successTime,proto3" json:"success_time,omitempty"`
	CreateTime          string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	Status              string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRef) Descriptor deprecated

func (*QueryRef) Descriptor() ([]byte, []int)

Deprecated: Use QueryRef.ProtoReflect.Descriptor instead.

func (*QueryRef) GetChannel

func (x *QueryRef) GetChannel() string

func (*QueryRef) GetCreateTime

func (x *QueryRef) GetCreateTime() string

func (*QueryRef) GetOutRefundNo

func (x *QueryRef) GetOutRefundNo() string

func (*QueryRef) GetOutTradeNo

func (x *QueryRef) GetOutTradeNo() string

func (*QueryRef) GetRefundId

func (x *QueryRef) GetRefundId() string

func (*QueryRef) GetStatus

func (x *QueryRef) GetStatus() string

func (*QueryRef) GetSuccessTime

func (x *QueryRef) GetSuccessTime() string

func (*QueryRef) GetTransactionId

func (x *QueryRef) GetTransactionId() string

func (*QueryRef) GetUserReceivedAccount

func (x *QueryRef) GetUserReceivedAccount() string

func (*QueryRef) ProtoMessage

func (*QueryRef) ProtoMessage()

func (*QueryRef) ProtoReflect

func (x *QueryRef) ProtoReflect() protoreflect.Message

func (*QueryRef) Reset

func (x *QueryRef) Reset()

func (*QueryRef) String

func (x *QueryRef) String() string

type QueryRet

type QueryRet struct {
	OutTradeNo     string `protobuf:"bytes,1,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"`
	TransactionId  string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	TradeType      string `protobuf:"bytes,3,opt,name=trade_type,json=tradeType,proto3" json:"trade_type,omitempty"`
	TradeState     string `protobuf:"bytes,4,opt,name=trade_state,json=tradeState,proto3" json:"trade_state,omitempty"`
	TradeStateDesc string `protobuf:"bytes,5,opt,name=trade_state_desc,json=tradeStateDesc,proto3" json:"trade_state_desc,omitempty"`
	SuccessTime    string `protobuf:"bytes,6,opt,name=success_time,json=successTime,proto3" json:"success_time,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRet) Descriptor deprecated

func (*QueryRet) Descriptor() ([]byte, []int)

Deprecated: Use QueryRet.ProtoReflect.Descriptor instead.

func (*QueryRet) GetOutTradeNo

func (x *QueryRet) GetOutTradeNo() string

func (*QueryRet) GetSuccessTime

func (x *QueryRet) GetSuccessTime() string

func (*QueryRet) GetTradeState

func (x *QueryRet) GetTradeState() string

func (*QueryRet) GetTradeStateDesc

func (x *QueryRet) GetTradeStateDesc() string

func (*QueryRet) GetTradeType

func (x *QueryRet) GetTradeType() string

func (*QueryRet) GetTransactionId

func (x *QueryRet) GetTransactionId() string

func (*QueryRet) ProtoMessage

func (*QueryRet) ProtoMessage()

func (*QueryRet) ProtoReflect

func (x *QueryRet) ProtoReflect() protoreflect.Message

func (*QueryRet) Reset

func (x *QueryRet) Reset()

func (*QueryRet) String

func (x *QueryRet) String() string

type RefundNo

type RefundNo struct {
	TradeNo  string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	RefundNo string `protobuf:"bytes,2,opt,name=refund_no,json=refundNo,proto3" json:"refund_no,omitempty"`
	// contains filtered or unexported fields
}

func (*RefundNo) Descriptor deprecated

func (*RefundNo) Descriptor() ([]byte, []int)

Deprecated: Use RefundNo.ProtoReflect.Descriptor instead.

func (*RefundNo) GetRefundNo

func (x *RefundNo) GetRefundNo() string

func (*RefundNo) GetTradeNo

func (x *RefundNo) GetTradeNo() string

func (*RefundNo) ProtoMessage

func (*RefundNo) ProtoMessage()

func (*RefundNo) ProtoReflect

func (x *RefundNo) ProtoReflect() protoreflect.Message

func (*RefundNo) Reset

func (x *RefundNo) Reset()

func (*RefundNo) String

func (x *RefundNo) String() string

type RefundNode

type RefundNode struct {
	Cashier  string `protobuf:"bytes,1,opt,name=cashier,proto3" json:"cashier,omitempty"`
	TradeNo  string `protobuf:"bytes,2,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Payer    string `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"`
	Payee    string `protobuf:"bytes,4,opt,name=payee,proto3" json:"payee,omitempty"`
	Smid     string `protobuf:"bytes,5,opt,name=smid,proto3" json:"smid,omitempty"`
	RefundId string `protobuf:"bytes,6,opt,name=refund_id,json=refundId,proto3" json:"refund_id,omitempty"`
	Amount   int64  `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
	Desc     string `protobuf:"bytes,8,opt,name=desc,proto3" json:"desc,omitempty"`
	Status   string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
	Ntfurl   string `protobuf:"bytes,10,opt,name=ntfurl,proto3" json:"ntfurl,omitempty"`
	// contains filtered or unexported fields
}

func (*RefundNode) Descriptor deprecated

func (*RefundNode) Descriptor() ([]byte, []int)

Deprecated: Use RefundNode.ProtoReflect.Descriptor instead.

func (*RefundNode) GetAmount

func (x *RefundNode) GetAmount() int64

func (*RefundNode) GetCashier

func (x *RefundNode) GetCashier() string

func (*RefundNode) GetDesc

func (x *RefundNode) GetDesc() string

func (*RefundNode) GetNtfurl

func (x *RefundNode) GetNtfurl() string

func (*RefundNode) GetPayee

func (x *RefundNode) GetPayee() string

func (*RefundNode) GetPayer

func (x *RefundNode) GetPayer() string

func (*RefundNode) GetRefundId

func (x *RefundNode) GetRefundId() string

func (*RefundNode) GetSmid

func (x *RefundNode) GetSmid() string

func (*RefundNode) GetStatus

func (x *RefundNode) GetStatus() string

func (*RefundNode) GetTradeNo

func (x *RefundNode) GetTradeNo() string

func (*RefundNode) ProtoMessage

func (*RefundNode) ProtoMessage()

func (*RefundNode) ProtoReflect

func (x *RefundNode) ProtoReflect() protoreflect.Message

func (*RefundNode) Reset

func (x *RefundNode) Reset()

func (*RefundNode) String

func (x *RefundNode) String() string

type RefundRet

type RefundRet struct {
	CreateTime string `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	Status     string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*RefundRet) Descriptor deprecated

func (*RefundRet) Descriptor() ([]byte, []int)

Deprecated: Use RefundRet.ProtoReflect.Descriptor instead.

func (*RefundRet) GetCreateTime

func (x *RefundRet) GetCreateTime() string

func (*RefundRet) GetStatus

func (x *RefundRet) GetStatus() string

func (*RefundRet) ProtoMessage

func (*RefundRet) ProtoMessage()

func (*RefundRet) ProtoReflect

func (x *RefundRet) ProtoReflect() protoreflect.Message

func (*RefundRet) Reset

func (x *RefundRet) Reset()

func (*RefundRet) String

func (x *RefundRet) String() string

type TradeNo

type TradeNo struct {
	TradeNo string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeNo) Descriptor deprecated

func (*TradeNo) Descriptor() ([]byte, []int)

Deprecated: Use TradeNo.ProtoReflect.Descriptor instead.

func (*TradeNo) GetTradeNo

func (x *TradeNo) GetTradeNo() string

func (*TradeNo) ProtoMessage

func (*TradeNo) ProtoMessage()

func (*TradeNo) ProtoReflect

func (x *TradeNo) ProtoReflect() protoreflect.Message

func (*TradeNo) Reset

func (x *TradeNo) Reset()

func (*TradeNo) String

func (x *TradeNo) String() string

type TradeNode

type TradeNode struct {
	TradeNo  string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Cashier  string `protobuf:"bytes,2,opt,name=cashier,proto3" json:"cashier,omitempty"`
	Payer    string `protobuf:"bytes,3,opt,name=payer,proto3" json:"payer,omitempty"`
	Payee    string `protobuf:"bytes,4,opt,name=payee,proto3" json:"payee,omitempty"`
	Smid     string `protobuf:"bytes,5,opt,name=smid,proto3" json:"smid,omitempty"`
	Amount   int64  `protobuf:"varint,6,opt,name=amount,proto3" json:"amount,omitempty"`
	Desc     string `protobuf:"bytes,7,opt,name=desc,proto3" json:"desc,omitempty"`
	Ntfurl   string `protobuf:"bytes,8,opt,name=ntfurl,proto3" json:"ntfurl,omitempty"`
	Payway   string `protobuf:"bytes,9,opt,name=payway,proto3" json:"payway,omitempty"`
	Isfrozen bool   `protobuf:"varint,10,opt,name=isfrozen,proto3" json:"isfrozen,omitempty"`
	Status   string `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
	Expire   string `protobuf:"bytes,12,opt,name=expire,proto3" json:"expire,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeNode) Descriptor deprecated

func (*TradeNode) Descriptor() ([]byte, []int)

Deprecated: Use TradeNode.ProtoReflect.Descriptor instead.

func (*TradeNode) GetAmount

func (x *TradeNode) GetAmount() int64

func (*TradeNode) GetCashier

func (x *TradeNode) GetCashier() string

func (*TradeNode) GetDesc

func (x *TradeNode) GetDesc() string

func (*TradeNode) GetExpire

func (x *TradeNode) GetExpire() string

func (*TradeNode) GetIsfrozen

func (x *TradeNode) GetIsfrozen() bool

func (*TradeNode) GetNtfurl

func (x *TradeNode) GetNtfurl() string

func (*TradeNode) GetPayee

func (x *TradeNode) GetPayee() string

func (*TradeNode) GetPayer

func (x *TradeNode) GetPayer() string

func (*TradeNode) GetPayway

func (x *TradeNode) GetPayway() string

func (*TradeNode) GetSmid

func (x *TradeNode) GetSmid() string

func (*TradeNode) GetStatus

func (x *TradeNode) GetStatus() string

func (*TradeNode) GetTradeNo

func (x *TradeNode) GetTradeNo() string

func (*TradeNode) ProtoMessage

func (*TradeNode) ProtoMessage()

func (*TradeNode) ProtoReflect

func (x *TradeNode) ProtoReflect() protoreflect.Message

func (*TradeNode) Reset

func (x *TradeNode) Reset()

func (*TradeNode) String

func (x *TradeNode) String() string

type TradeUID

type TradeUID struct {
	TradeNo string `protobuf:"bytes,1,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Openid  string `protobuf:"bytes,2,opt,name=openid,proto3" json:"openid,omitempty"`
	// contains filtered or unexported fields
}

func (*TradeUID) Descriptor deprecated

func (*TradeUID) Descriptor() ([]byte, []int)

Deprecated: Use TradeUID.ProtoReflect.Descriptor instead.

func (*TradeUID) GetOpenid

func (x *TradeUID) GetOpenid() string

func (*TradeUID) GetTradeNo

func (x *TradeUID) GetTradeNo() string

func (*TradeUID) ProtoMessage

func (*TradeUID) ProtoMessage()

func (*TradeUID) ProtoReflect

func (x *TradeUID) ProtoReflect() protoreflect.Message

func (*TradeUID) Reset

func (x *TradeUID) Reset()

func (*TradeUID) String

func (x *TradeUID) String() string

type UnimplementedWgpayServer

type UnimplementedWgpayServer struct {
}

UnimplementedWgpayServer must be embedded to have forward compatible implementations.

func (UnimplementedWgpayServer) AppPay

func (UnimplementedWgpayServer) ChangeRAmount

func (UnimplementedWgpayServer) ChangeTAmount

func (UnimplementedWgpayServer) CombineJS

func (UnimplementedWgpayServer) CombineTicket

func (UnimplementedWgpayServer) DiviTicket

func (UnimplementedWgpayServer) GenCard

func (UnimplementedWgpayServer) GenCombine

func (UnimplementedWgpayServer) GenRefund

func (UnimplementedWgpayServer) GenTrade

func (UnimplementedWgpayServer) JSPay

func (UnimplementedWgpayServer) QueryRefund

func (UnimplementedWgpayServer) QueryTrade

func (UnimplementedWgpayServer) RefundTicket

func (UnimplementedWgpayServer) RevokeRefund

func (UnimplementedWgpayServer) RevokeRefund(context.Context, *No) (*PEmpty, error)

func (UnimplementedWgpayServer) RevokeTrade

func (UnimplementedWgpayServer) TradeRefund

func (UnimplementedWgpayServer) TradeTicket

func (UnimplementedWgpayServer) UpdateRefund

func (UnimplementedWgpayServer) UpdateTrade

type UnsafeWgpayServer

type UnsafeWgpayServer interface {
	// contains filtered or unexported methods
}

UnsafeWgpayServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WgpayServer will result in compilation errors.

type UpRefund

type UpRefund struct {
	Number string      `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Ticket *RefundNode `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*UpRefund) Descriptor deprecated

func (*UpRefund) Descriptor() ([]byte, []int)

Deprecated: Use UpRefund.ProtoReflect.Descriptor instead.

func (*UpRefund) GetNumber

func (x *UpRefund) GetNumber() string

func (*UpRefund) GetTicket

func (x *UpRefund) GetTicket() *RefundNode

func (*UpRefund) ProtoMessage

func (*UpRefund) ProtoMessage()

func (*UpRefund) ProtoReflect

func (x *UpRefund) ProtoReflect() protoreflect.Message

func (*UpRefund) Reset

func (x *UpRefund) Reset()

func (*UpRefund) String

func (x *UpRefund) String() string

type UpTrade

type UpTrade struct {
	Number string     `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Ticket *TradeNode `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*UpTrade) Descriptor deprecated

func (*UpTrade) Descriptor() ([]byte, []int)

Deprecated: Use UpTrade.ProtoReflect.Descriptor instead.

func (*UpTrade) GetNumber

func (x *UpTrade) GetNumber() string

func (*UpTrade) GetTicket

func (x *UpTrade) GetTicket() *TradeNode

func (*UpTrade) ProtoMessage

func (*UpTrade) ProtoMessage()

func (*UpTrade) ProtoReflect

func (x *UpTrade) ProtoReflect() protoreflect.Message

func (*UpTrade) Reset

func (x *UpTrade) Reset()

func (*UpTrade) String

func (x *UpTrade) String() string

type WgpayClient

type WgpayClient interface {
	// Generate ticket
	GenCard(ctx context.Context, in *TradeNode, opts ...grpc.CallOption) (*No, error)
	GenTrade(ctx context.Context, in *TradeNode, opts ...grpc.CallOption) (*No, error)
	GenCombine(ctx context.Context, in *CombineNode, opts ...grpc.CallOption) (*No, error)
	GenRefund(ctx context.Context, in *RefundNode, opts ...grpc.CallOption) (*No, error)
	// Update amount
	ChangeTAmount(ctx context.Context, in *NoAment, opts ...grpc.CallOption) (*PEmpty, error)
	ChangeRAmount(ctx context.Context, in *NoAment, opts ...grpc.CallOption) (*PEmpty, error)
	// Revoke transaction
	RevokeTrade(ctx context.Context, in *No, opts ...grpc.CallOption) (*PEmpty, error)
	RevokeRefund(ctx context.Context, in *No, opts ...grpc.CallOption) (*PEmpty, error)
	// Update transaction
	UpdateTrade(ctx context.Context, in *UpTrade, opts ...grpc.CallOption) (*PEmpty, error)
	UpdateRefund(ctx context.Context, in *UpRefund, opts ...grpc.CallOption) (*PEmpty, error)
	// Get trade ticket
	TradeTicket(ctx context.Context, in *No, opts ...grpc.CallOption) (*TradeNode, error)
	CombineTicket(ctx context.Context, in *No, opts ...grpc.CallOption) (*CombineNode, error)
	DiviTicket(ctx context.Context, in *No, opts ...grpc.CallOption) (*DiviNode, error)
	RefundTicket(ctx context.Context, in *No, opts ...grpc.CallOption) (*RefundNode, error)
	// Pay method
	JSPay(ctx context.Context, in *TradeUID, opts ...grpc.CallOption) (*JSPayRet, error)
	CombineJS(ctx context.Context, in *TradeUID, opts ...grpc.CallOption) (*JSPayRet, error)
	QueryTrade(ctx context.Context, in *No, opts ...grpc.CallOption) (*QueryRet, error)
	TradeRefund(ctx context.Context, in *RefundNo, opts ...grpc.CallOption) (*RefundRet, error)
	AppPay(ctx context.Context, in *TradeNo, opts ...grpc.CallOption) (*AppPayRet, error)
	QueryRefund(ctx context.Context, in *No, opts ...grpc.CallOption) (*QueryRef, error)
}

WgpayClient is the client API for Wgpay service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewWgpayClient

func NewWgpayClient(cc grpc.ClientConnInterface) WgpayClient

type WgpayServer

type WgpayServer interface {
	// Generate ticket
	GenCard(context.Context, *TradeNode) (*No, error)
	GenTrade(context.Context, *TradeNode) (*No, error)
	GenCombine(context.Context, *CombineNode) (*No, error)
	GenRefund(context.Context, *RefundNode) (*No, error)
	// Update amount
	ChangeTAmount(context.Context, *NoAment) (*PEmpty, error)
	ChangeRAmount(context.Context, *NoAment) (*PEmpty, error)
	// Revoke transaction
	RevokeTrade(context.Context, *No) (*PEmpty, error)
	RevokeRefund(context.Context, *No) (*PEmpty, error)
	// Update transaction
	UpdateTrade(context.Context, *UpTrade) (*PEmpty, error)
	UpdateRefund(context.Context, *UpRefund) (*PEmpty, error)
	// Get trade ticket
	TradeTicket(context.Context, *No) (*TradeNode, error)
	CombineTicket(context.Context, *No) (*CombineNode, error)
	DiviTicket(context.Context, *No) (*DiviNode, error)
	RefundTicket(context.Context, *No) (*RefundNode, error)
	// Pay method
	JSPay(context.Context, *TradeUID) (*JSPayRet, error)
	CombineJS(context.Context, *TradeUID) (*JSPayRet, error)
	QueryTrade(context.Context, *No) (*QueryRet, error)
	TradeRefund(context.Context, *RefundNo) (*RefundRet, error)
	AppPay(context.Context, *TradeNo) (*AppPayRet, error)
	QueryRefund(context.Context, *No) (*QueryRef, error)
	// contains filtered or unexported methods
}

WgpayServer is the server API for Wgpay service. All implementations must embed UnimplementedWgpayServer for forward compatibility

Jump to

Keyboard shortcuts

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