Documentation ¶
Index ¶
- Variables
- func RegisterWgpayServer(s grpc.ServiceRegistrar, srv WgpayServer)
- type AppPayRet
- func (*AppPayRet) Descriptor() ([]byte, []int)deprecated
- func (x *AppPayRet) GetAppid() string
- func (x *AppPayRet) GetNoncestr() string
- func (x *AppPayRet) GetPackage() string
- func (x *AppPayRet) GetPartnerid() string
- func (x *AppPayRet) GetPrepayId() string
- func (x *AppPayRet) GetSign() string
- func (x *AppPayRet) GetTimestamp() string
- func (x *AppPayRet) GetTradeNo() string
- func (*AppPayRet) ProtoMessage()
- func (x *AppPayRet) ProtoReflect() protoreflect.Message
- func (x *AppPayRet) Reset()
- func (x *AppPayRet) String() string
- type CombineNode
- func (*CombineNode) Descriptor() ([]byte, []int)deprecated
- func (x *CombineNode) GetCashier() string
- func (x *CombineNode) GetExpire() string
- func (x *CombineNode) GetSubOrder() []*TradeNode
- func (*CombineNode) ProtoMessage()
- func (x *CombineNode) ProtoReflect() protoreflect.Message
- func (x *CombineNode) Reset()
- func (x *CombineNode) String() string
- type DiviNode
- func (*DiviNode) Descriptor() ([]byte, []int)deprecated
- func (x *DiviNode) GetCashier() string
- func (x *DiviNode) GetCommission() int64
- func (x *DiviNode) GetDesc() string
- func (x *DiviNode) GetIsfinsh() bool
- func (x *DiviNode) GetSmid() string
- func (x *DiviNode) GetTransactionId() string
- func (*DiviNode) ProtoMessage()
- func (x *DiviNode) ProtoReflect() protoreflect.Message
- func (x *DiviNode) Reset()
- func (x *DiviNode) String() string
- type JSPayRet
- func (*JSPayRet) Descriptor() ([]byte, []int)deprecated
- func (x *JSPayRet) GetAppid() string
- func (x *JSPayRet) GetNoncestr() string
- func (x *JSPayRet) GetPackage() string
- func (x *JSPayRet) GetPaysign() string
- func (x *JSPayRet) GetSigntype() string
- func (x *JSPayRet) GetTimestamp() string
- func (x *JSPayRet) GetTradeNo() string
- func (*JSPayRet) ProtoMessage()
- func (x *JSPayRet) ProtoReflect() protoreflect.Message
- func (x *JSPayRet) Reset()
- func (x *JSPayRet) String() string
- type No
- type NoAment
- type PEmpty
- type PayInfo
- func (*PayInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PayInfo) GetAlpayinfo() string
- func (x *PayInfo) GetPayway() string
- func (x *PayInfo) GetStatus() string
- func (x *PayInfo) GetWxpayinfo() string
- func (*PayInfo) ProtoMessage()
- func (x *PayInfo) ProtoReflect() protoreflect.Message
- func (x *PayInfo) Reset()
- func (x *PayInfo) String() string
- type QueryRef
- func (*QueryRef) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRef) GetChannel() string
- func (x *QueryRef) GetCreateTime() string
- func (x *QueryRef) GetOutRefundNo() string
- func (x *QueryRef) GetOutTradeNo() string
- func (x *QueryRef) GetRefundId() string
- func (x *QueryRef) GetStatus() string
- func (x *QueryRef) GetSuccessTime() string
- func (x *QueryRef) GetTransactionId() string
- func (x *QueryRef) GetUserReceivedAccount() string
- func (*QueryRef) ProtoMessage()
- func (x *QueryRef) ProtoReflect() protoreflect.Message
- func (x *QueryRef) Reset()
- func (x *QueryRef) String() string
- type QueryRet
- func (*QueryRet) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRet) GetOutTradeNo() string
- func (x *QueryRet) GetSuccessTime() string
- func (x *QueryRet) GetTradeState() string
- func (x *QueryRet) GetTradeStateDesc() string
- func (x *QueryRet) GetTradeType() string
- func (x *QueryRet) GetTransactionId() string
- func (*QueryRet) ProtoMessage()
- func (x *QueryRet) ProtoReflect() protoreflect.Message
- func (x *QueryRet) Reset()
- func (x *QueryRet) String() string
- type RefundNo
- type RefundNode
- func (*RefundNode) Descriptor() ([]byte, []int)deprecated
- func (x *RefundNode) GetAmount() int64
- func (x *RefundNode) GetCashier() string
- func (x *RefundNode) GetDesc() string
- func (x *RefundNode) GetNtfurl() string
- func (x *RefundNode) GetPayee() string
- func (x *RefundNode) GetPayer() string
- func (x *RefundNode) GetRefundId() string
- func (x *RefundNode) GetSmid() string
- func (x *RefundNode) GetStatus() string
- func (x *RefundNode) GetTradeNo() string
- func (*RefundNode) ProtoMessage()
- func (x *RefundNode) ProtoReflect() protoreflect.Message
- func (x *RefundNode) Reset()
- func (x *RefundNode) String() string
- type RefundRet
- type TradeNo
- type TradeNode
- func (*TradeNode) Descriptor() ([]byte, []int)deprecated
- func (x *TradeNode) GetAmount() int64
- func (x *TradeNode) GetCashier() string
- func (x *TradeNode) GetDesc() string
- func (x *TradeNode) GetExpire() string
- func (x *TradeNode) GetIsfrozen() bool
- func (x *TradeNode) GetNtfurl() string
- func (x *TradeNode) GetPayee() string
- func (x *TradeNode) GetPayer() string
- func (x *TradeNode) GetPayway() string
- func (x *TradeNode) GetSmid() string
- func (x *TradeNode) GetStatus() string
- func (x *TradeNode) GetTradeNo() string
- func (*TradeNode) ProtoMessage()
- func (x *TradeNode) ProtoReflect() protoreflect.Message
- func (x *TradeNode) Reset()
- func (x *TradeNode) String() string
- type TradeUID
- type UnimplementedWgpayServer
- func (UnimplementedWgpayServer) AppPay(context.Context, *TradeNo) (*AppPayRet, error)
- func (UnimplementedWgpayServer) ChangeRAmount(context.Context, *NoAment) (*PEmpty, error)
- func (UnimplementedWgpayServer) ChangeTAmount(context.Context, *NoAment) (*PEmpty, error)
- func (UnimplementedWgpayServer) CombineJS(context.Context, *TradeUID) (*JSPayRet, error)
- func (UnimplementedWgpayServer) CombineTicket(context.Context, *No) (*CombineNode, error)
- func (UnimplementedWgpayServer) DiviTicket(context.Context, *No) (*DiviNode, error)
- func (UnimplementedWgpayServer) GenCard(context.Context, *TradeNode) (*No, error)
- func (UnimplementedWgpayServer) GenCombine(context.Context, *CombineNode) (*No, error)
- func (UnimplementedWgpayServer) GenRefund(context.Context, *RefundNode) (*No, error)
- func (UnimplementedWgpayServer) GenTrade(context.Context, *TradeNode) (*No, error)
- func (UnimplementedWgpayServer) JSPay(context.Context, *TradeUID) (*JSPayRet, error)
- func (UnimplementedWgpayServer) QueryRefund(context.Context, *No) (*QueryRef, error)
- func (UnimplementedWgpayServer) QueryTrade(context.Context, *No) (*QueryRet, error)
- func (UnimplementedWgpayServer) RefundTicket(context.Context, *No) (*RefundNode, error)
- func (UnimplementedWgpayServer) RevokeRefund(context.Context, *No) (*PEmpty, error)
- func (UnimplementedWgpayServer) RevokeTrade(context.Context, *No) (*PEmpty, error)
- func (UnimplementedWgpayServer) TradeRefund(context.Context, *RefundNo) (*RefundRet, error)
- func (UnimplementedWgpayServer) TradeTicket(context.Context, *No) (*TradeNode, error)
- func (UnimplementedWgpayServer) UpdateRefund(context.Context, *UpRefund) (*PEmpty, error)
- func (UnimplementedWgpayServer) UpdateTrade(context.Context, *UpTrade) (*PEmpty, error)
- type UnsafeWgpayServer
- type UpRefund
- type UpTrade
- type WgpayClient
- type WgpayServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_wgpay_proto protoreflect.FileDescriptor
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) GetNoncestr ¶
func (*AppPayRet) GetPackage ¶
func (*AppPayRet) GetPartnerid ¶
func (*AppPayRet) GetPrepayId ¶
func (*AppPayRet) GetTimestamp ¶
func (*AppPayRet) GetTradeNo ¶
func (*AppPayRet) ProtoMessage ¶
func (*AppPayRet) ProtoMessage()
func (*AppPayRet) ProtoReflect ¶
func (x *AppPayRet) ProtoReflect() protoreflect.Message
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) GetCashier ¶
func (*DiviNode) GetCommission ¶
func (*DiviNode) GetIsfinsh ¶
func (*DiviNode) GetTransactionId ¶
func (*DiviNode) ProtoMessage ¶
func (*DiviNode) ProtoMessage()
func (*DiviNode) ProtoReflect ¶
func (x *DiviNode) ProtoReflect() protoreflect.Message
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) GetNoncestr ¶
func (*JSPayRet) GetPackage ¶
func (*JSPayRet) GetPaysign ¶
func (*JSPayRet) GetSigntype ¶
func (*JSPayRet) GetTimestamp ¶
func (*JSPayRet) GetTradeNo ¶
func (*JSPayRet) ProtoMessage ¶
func (*JSPayRet) ProtoMessage()
func (*JSPayRet) ProtoReflect ¶
func (x *JSPayRet) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*No) ProtoMessage()
func (*No) ProtoReflect ¶
func (x *No) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*NoAment) ProtoMessage()
func (*NoAment) ProtoReflect ¶
func (x *NoAment) ProtoReflect() protoreflect.Message
type PEmpty ¶
type PEmpty struct {
// contains filtered or unexported fields
}
Empty response for WGPay
func (*PEmpty) Descriptor
deprecated
func (*PEmpty) ProtoMessage ¶
func (*PEmpty) ProtoMessage()
func (*PEmpty) ProtoReflect ¶
func (x *PEmpty) ProtoReflect() protoreflect.Message
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) GetAlpayinfo ¶
func (*PayInfo) GetWxpayinfo ¶
func (*PayInfo) ProtoMessage ¶
func (*PayInfo) ProtoMessage()
func (*PayInfo) ProtoReflect ¶
func (x *PayInfo) ProtoReflect() protoreflect.Message
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) GetChannel ¶
func (*QueryRef) GetCreateTime ¶
func (*QueryRef) GetOutRefundNo ¶
func (*QueryRef) GetOutTradeNo ¶
func (*QueryRef) GetRefundId ¶
func (*QueryRef) GetSuccessTime ¶
func (*QueryRef) GetTransactionId ¶
func (*QueryRef) GetUserReceivedAccount ¶
func (*QueryRef) ProtoMessage ¶
func (*QueryRef) ProtoMessage()
func (*QueryRef) ProtoReflect ¶
func (x *QueryRef) ProtoReflect() protoreflect.Message
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) GetOutTradeNo ¶
func (*QueryRet) GetSuccessTime ¶
func (*QueryRet) GetTradeState ¶
func (*QueryRet) GetTradeStateDesc ¶
func (*QueryRet) GetTradeType ¶
func (*QueryRet) GetTransactionId ¶
func (*QueryRet) ProtoMessage ¶
func (*QueryRet) ProtoMessage()
func (*QueryRet) ProtoReflect ¶
func (x *QueryRet) ProtoReflect() protoreflect.Message
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) GetRefundNo ¶
func (*RefundNo) GetTradeNo ¶
func (*RefundNo) ProtoMessage ¶
func (*RefundNo) ProtoMessage()
func (*RefundNo) ProtoReflect ¶
func (x *RefundNo) ProtoReflect() protoreflect.Message
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) GetCreateTime ¶
func (*RefundRet) ProtoMessage ¶
func (*RefundRet) ProtoMessage()
func (*RefundRet) ProtoReflect ¶
func (x *RefundRet) ProtoReflect() protoreflect.Message
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) GetTradeNo ¶
func (*TradeNo) ProtoMessage ¶
func (*TradeNo) ProtoMessage()
func (*TradeNo) ProtoReflect ¶
func (x *TradeNo) ProtoReflect() protoreflect.Message
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) GetCashier ¶
func (*TradeNode) GetIsfrozen ¶
func (*TradeNode) GetTradeNo ¶
func (*TradeNode) ProtoMessage ¶
func (*TradeNode) ProtoMessage()
func (*TradeNode) ProtoReflect ¶
func (x *TradeNode) ProtoReflect() protoreflect.Message
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) GetTradeNo ¶
func (*TradeUID) ProtoMessage ¶
func (*TradeUID) ProtoMessage()
func (*TradeUID) ProtoReflect ¶
func (x *TradeUID) ProtoReflect() protoreflect.Message
type UnimplementedWgpayServer ¶
type UnimplementedWgpayServer struct { }
UnimplementedWgpayServer must be embedded to have forward compatible implementations.
func (UnimplementedWgpayServer) ChangeRAmount ¶
func (UnimplementedWgpayServer) ChangeTAmount ¶
func (UnimplementedWgpayServer) CombineTicket ¶
func (UnimplementedWgpayServer) CombineTicket(context.Context, *No) (*CombineNode, error)
func (UnimplementedWgpayServer) DiviTicket ¶
func (UnimplementedWgpayServer) GenCombine ¶
func (UnimplementedWgpayServer) GenCombine(context.Context, *CombineNode) (*No, error)
func (UnimplementedWgpayServer) GenRefund ¶
func (UnimplementedWgpayServer) GenRefund(context.Context, *RefundNode) (*No, error)
func (UnimplementedWgpayServer) QueryRefund ¶
func (UnimplementedWgpayServer) QueryTrade ¶
func (UnimplementedWgpayServer) RefundTicket ¶
func (UnimplementedWgpayServer) RefundTicket(context.Context, *No) (*RefundNode, error)
func (UnimplementedWgpayServer) RevokeRefund ¶
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) GetTicket ¶
func (x *UpRefund) GetTicket() *RefundNode
func (*UpRefund) ProtoMessage ¶
func (*UpRefund) ProtoMessage()
func (*UpRefund) ProtoReflect ¶
func (x *UpRefund) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*UpTrade) ProtoMessage()
func (*UpTrade) ProtoReflect ¶
func (x *UpTrade) ProtoReflect() protoreflect.Message
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