Documentation ¶
Overview ¶
Package pay is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pay is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pay is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package pay is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterPayChannelHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPayChannelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayChannelClient) error
- func RegisterPayChannelHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPayChannelServer(s *grpc.Server, srv PayChannelServer)
- func RegisterPayDatabaseServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPayDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayDatabaseServiceClient) error
- func RegisterPayDatabaseServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPayDatabaseServiceServer(s *grpc.Server, srv PayDatabaseServiceServer)
- func RegisterPayGatewayHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterPayGatewayHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayGatewayClient) error
- func RegisterPayGatewayHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterPayGatewayServer(s *grpc.Server, srv PayGatewayServer)
- func RegisterSettlementGatewayHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSettlementGatewayHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SettlementGatewayClient) error
- func RegisterSettlementGatewayHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSettlementGatewayServer(s *grpc.Server, srv SettlementGatewayServer)
- type BasePayOrder
- func (*BasePayOrder) Descriptor() ([]byte, []int)
- func (m *BasePayOrder) GetAppId() string
- func (m *BasePayOrder) GetCallbackJson() string
- func (m *BasePayOrder) GetChannelAccount() string
- func (m *BasePayOrder) GetChannelId() string
- func (m *BasePayOrder) GetChannelOrderId() string
- func (m *BasePayOrder) GetChannelResponseJson() string
- func (m *BasePayOrder) GetCreateDate() string
- func (m *BasePayOrder) GetCurrency() string
- func (m *BasePayOrder) GetErrorMessage() string
- func (m *BasePayOrder) GetExtJson() string
- func (m *BasePayOrder) GetGatewayOrderId() string
- func (m *BasePayOrder) GetMethod() string
- func (m *BasePayOrder) GetNotifyUrl() string
- func (m *BasePayOrder) GetOrderTime() string
- func (m *BasePayOrder) GetOutTradeNo() string
- func (m *BasePayOrder) GetPayAmount() uint32
- func (m *BasePayOrder) GetPayerAccount() string
- func (m *BasePayOrder) GetProductDescribe() string
- func (m *BasePayOrder) GetProductId() string
- func (m *BasePayOrder) GetProductName() string
- func (m *BasePayOrder) GetRemark() string
- func (m *BasePayOrder) GetRequestTime() string
- func (m *BasePayOrder) GetReturnUrl() string
- func (m *BasePayOrder) GetSignType() string
- func (m *BasePayOrder) GetUserId() string
- func (m *BasePayOrder) GetUserIp() string
- func (m *BasePayOrder) GetVersion() string
- func (*BasePayOrder) ProtoMessage()
- func (m *BasePayOrder) Reset()
- func (m *BasePayOrder) String() string
- func (this *BasePayOrder) Validate() error
- func (m *BasePayOrder) XXX_DiscardUnknown()
- func (m *BasePayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BasePayOrder) XXX_Merge(src proto.Message)
- func (m *BasePayOrder) XXX_Size() int
- func (m *BasePayOrder) XXX_Unmarshal(b []byte) error
- type ChannelPayRequest
- func (*ChannelPayRequest) Descriptor() ([]byte, []int)
- func (m *ChannelPayRequest) GetChannelAccount() string
- func (m *ChannelPayRequest) GetGatewayOrderId() string
- func (m *ChannelPayRequest) GetMeta() map[string]string
- func (m *ChannelPayRequest) GetMethod() string
- func (m *ChannelPayRequest) GetNotifyUrl() string
- func (m *ChannelPayRequest) GetPayAmount() uint32
- func (m *ChannelPayRequest) GetProduct() *Product
- func (m *ChannelPayRequest) GetReturnUrl() string
- func (m *ChannelPayRequest) GetUserIp() string
- func (*ChannelPayRequest) ProtoMessage()
- func (m *ChannelPayRequest) Reset()
- func (m *ChannelPayRequest) String() string
- func (this *ChannelPayRequest) Validate() error
- func (m *ChannelPayRequest) XXX_DiscardUnknown()
- func (m *ChannelPayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelPayRequest) XXX_Merge(src proto.Message)
- func (m *ChannelPayRequest) XXX_Size() int
- func (m *ChannelPayRequest) XXX_Unmarshal(b []byte) error
- type ChannelPayResponse
- func (*ChannelPayResponse) Descriptor() ([]byte, []int)
- func (m *ChannelPayResponse) GetChannelOrderId() string
- func (m *ChannelPayResponse) GetData() map[string]string
- func (*ChannelPayResponse) ProtoMessage()
- func (m *ChannelPayResponse) Reset()
- func (m *ChannelPayResponse) String() string
- func (this *ChannelPayResponse) Validate() error
- func (m *ChannelPayResponse) XXX_DiscardUnknown()
- func (m *ChannelPayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelPayResponse) XXX_Merge(src proto.Message)
- func (m *ChannelPayResponse) XXX_Size() int
- func (m *ChannelPayResponse) XXX_Unmarshal(b []byte) error
- type HTTPRequest
- func (*HTTPRequest) Descriptor() ([]byte, []int)
- func (m *HTTPRequest) GetBody() []byte
- func (m *HTTPRequest) GetHeader() map[string]string
- func (m *HTTPRequest) GetMethod() HTTPRequest_HttpMehod
- func (m *HTTPRequest) GetUrl() string
- func (*HTTPRequest) ProtoMessage()
- func (m *HTTPRequest) Reset()
- func (m *HTTPRequest) String() string
- func (this *HTTPRequest) Validate() error
- func (m *HTTPRequest) XXX_DiscardUnknown()
- func (m *HTTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HTTPRequest) XXX_Merge(src proto.Message)
- func (m *HTTPRequest) XXX_Size() int
- func (m *HTTPRequest) XXX_Unmarshal(b []byte) error
- type HTTPRequest_HttpMehod
- type HTTPResponse
- func (*HTTPResponse) Descriptor() ([]byte, []int)
- func (m *HTTPResponse) GetBody() []byte
- func (m *HTTPResponse) GetHeader() map[string]string
- func (m *HTTPResponse) GetStatus() int32
- func (*HTTPResponse) ProtoMessage()
- func (m *HTTPResponse) Reset()
- func (m *HTTPResponse) String() string
- func (this *HTTPResponse) Validate() error
- func (m *HTTPResponse) XXX_DiscardUnknown()
- func (m *HTTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HTTPResponse) XXX_Merge(src proto.Message)
- func (m *HTTPResponse) XXX_Size() int
- func (m *HTTPResponse) XXX_Unmarshal(b []byte) error
- type Method
- type NotifyRequest
- func (*NotifyRequest) Descriptor() ([]byte, []int)
- func (m *NotifyRequest) GetMethod() string
- func (m *NotifyRequest) GetPaymentAccount() string
- func (m *NotifyRequest) GetRequest() *HTTPRequest
- func (m *NotifyRequest) GetType() PayType
- func (*NotifyRequest) ProtoMessage()
- func (m *NotifyRequest) Reset()
- func (m *NotifyRequest) String() string
- func (this *NotifyRequest) Validate() error
- func (m *NotifyRequest) XXX_DiscardUnknown()
- func (m *NotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyRequest) XXX_Merge(src proto.Message)
- func (m *NotifyRequest) XXX_Size() int
- func (m *NotifyRequest) XXX_Unmarshal(b []byte) error
- type NotifyResponse
- func (*NotifyResponse) Descriptor() ([]byte, []int)
- func (m *NotifyResponse) GetResponse() *HTTPResponse
- func (m *NotifyResponse) GetStatus() PayStatus
- func (*NotifyResponse) ProtoMessage()
- func (m *NotifyResponse) Reset()
- func (m *NotifyResponse) String() string
- func (this *NotifyResponse) Validate() error
- func (m *NotifyResponse) XXX_DiscardUnknown()
- func (m *NotifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyResponse) XXX_Merge(src proto.Message)
- func (m *NotifyResponse) XXX_Size() int
- func (m *NotifyResponse) XXX_Unmarshal(b []byte) error
- type PayChannelClient
- type PayChannelServer
- type PayDatabaseServiceClient
- type PayDatabaseServiceServer
- type PayGatewayClient
- type PayGatewayServer
- type PayNotice
- func (*PayNotice) Descriptor() ([]byte, []int)
- func (m *PayNotice) GetCreateDate() string
- func (m *PayNotice) GetErrorMessage() string
- func (m *PayNotice) GetFailTimes() uint32
- func (m *PayNotice) GetGatewayOrderId() string
- func (m *PayNotice) GetNextNotifyTime() string
- func (m *PayNotice) GetNoticeTime() string
- func (m *PayNotice) GetStatus() string
- func (*PayNotice) ProtoMessage()
- func (m *PayNotice) Reset()
- func (m *PayNotice) String() string
- func (this *PayNotice) Validate() error
- func (m *PayNotice) XXX_DiscardUnknown()
- func (m *PayNotice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayNotice) XXX_Merge(src proto.Message)
- func (m *PayNotice) XXX_Size() int
- func (m *PayNotice) XXX_Unmarshal(b []byte) error
- type PayNoticeOk
- func (*PayNoticeOk) Descriptor() ([]byte, []int)
- func (m *PayNoticeOk) GetCreateDate() string
- func (m *PayNoticeOk) GetFailTimes() uint32
- func (m *PayNoticeOk) GetGatewayOrderId() string
- func (m *PayNoticeOk) GetNoticeTime() string
- func (*PayNoticeOk) ProtoMessage()
- func (m *PayNoticeOk) Reset()
- func (m *PayNoticeOk) String() string
- func (this *PayNoticeOk) Validate() error
- func (m *PayNoticeOk) XXX_DiscardUnknown()
- func (m *PayNoticeOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayNoticeOk) XXX_Merge(src proto.Message)
- func (m *PayNoticeOk) XXX_Size() int
- func (m *PayNoticeOk) XXX_Unmarshal(b []byte) error
- type PayNoticeOkResponse
- func (*PayNoticeOkResponse) Descriptor() ([]byte, []int)
- func (m *PayNoticeOkResponse) GetPayNoticeOks() []*PayNoticeOk
- func (*PayNoticeOkResponse) ProtoMessage()
- func (m *PayNoticeOkResponse) Reset()
- func (m *PayNoticeOkResponse) String() string
- func (this *PayNoticeOkResponse) Validate() error
- func (m *PayNoticeOkResponse) XXX_DiscardUnknown()
- func (m *PayNoticeOkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayNoticeOkResponse) XXX_Merge(src proto.Message)
- func (m *PayNoticeOkResponse) XXX_Size() int
- func (m *PayNoticeOkResponse) XXX_Unmarshal(b []byte) error
- type PayNoticeResponse
- func (*PayNoticeResponse) Descriptor() ([]byte, []int)
- func (m *PayNoticeResponse) GetPayNotices() []*PayNotice
- func (*PayNoticeResponse) ProtoMessage()
- func (m *PayNoticeResponse) Reset()
- func (m *PayNoticeResponse) String() string
- func (this *PayNoticeResponse) Validate() error
- func (m *PayNoticeResponse) XXX_DiscardUnknown()
- func (m *PayNoticeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayNoticeResponse) XXX_Merge(src proto.Message)
- func (m *PayNoticeResponse) XXX_Size() int
- func (m *PayNoticeResponse) XXX_Unmarshal(b []byte) error
- type PayOrder
- func (*PayOrder) Descriptor() ([]byte, []int)
- func (m *PayOrder) GetBasePayOrder() *BasePayOrder
- func (m *PayOrder) GetOrderStatus() string
- func (*PayOrder) ProtoMessage()
- func (m *PayOrder) Reset()
- func (m *PayOrder) String() string
- func (this *PayOrder) Validate() error
- func (m *PayOrder) XXX_DiscardUnknown()
- func (m *PayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayOrder) XXX_Merge(src proto.Message)
- func (m *PayOrder) XXX_Size() int
- func (m *PayOrder) XXX_Unmarshal(b []byte) error
- type PayOrderOk
- func (*PayOrderOk) Descriptor() ([]byte, []int)
- func (m *PayOrderOk) GetBalanceDate() string
- func (m *PayOrderOk) GetBasePayOrder() *BasePayOrder
- func (m *PayOrderOk) GetFactAmt() uint32
- func (m *PayOrderOk) GetFareAmt() uint32
- func (m *PayOrderOk) GetSendNoticeStats() string
- func (m *PayOrderOk) GetSuccessTime() string
- func (*PayOrderOk) ProtoMessage()
- func (m *PayOrderOk) Reset()
- func (m *PayOrderOk) String() string
- func (this *PayOrderOk) Validate() error
- func (m *PayOrderOk) XXX_DiscardUnknown()
- func (m *PayOrderOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayOrderOk) XXX_Merge(src proto.Message)
- func (m *PayOrderOk) XXX_Size() int
- func (m *PayOrderOk) XXX_Unmarshal(b []byte) error
- type PayOrderOkResponse
- func (*PayOrderOkResponse) Descriptor() ([]byte, []int)
- func (m *PayOrderOkResponse) GetPayOrderOks() []*PayOrderOk
- func (*PayOrderOkResponse) ProtoMessage()
- func (m *PayOrderOkResponse) Reset()
- func (m *PayOrderOkResponse) String() string
- func (this *PayOrderOkResponse) Validate() error
- func (m *PayOrderOkResponse) XXX_DiscardUnknown()
- func (m *PayOrderOkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayOrderOkResponse) XXX_Merge(src proto.Message)
- func (m *PayOrderOkResponse) XXX_Size() int
- func (m *PayOrderOkResponse) XXX_Unmarshal(b []byte) error
- type PayOrderResponse
- func (*PayOrderResponse) Descriptor() ([]byte, []int)
- func (m *PayOrderResponse) GetPayOrders() []*PayOrder
- func (*PayOrderResponse) ProtoMessage()
- func (m *PayOrderResponse) Reset()
- func (m *PayOrderResponse) String() string
- func (this *PayOrderResponse) Validate() error
- func (m *PayOrderResponse) XXX_DiscardUnknown()
- func (m *PayOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayOrderResponse) XXX_Merge(src proto.Message)
- func (m *PayOrderResponse) XXX_Size() int
- func (m *PayOrderResponse) XXX_Unmarshal(b []byte) error
- type PayRequest
- func (*PayRequest) Descriptor() ([]byte, []int)
- func (m *PayRequest) GetAppId() string
- func (m *PayRequest) GetCallbackJson() string
- func (m *PayRequest) GetChannelId() string
- func (m *PayRequest) GetCharset() string
- func (m *PayRequest) GetCurrency() string
- func (m *PayRequest) GetExtJson() string
- func (m *PayRequest) GetMethod() string
- func (m *PayRequest) GetNotifyUrl() string
- func (m *PayRequest) GetOrderTime() string
- func (m *PayRequest) GetOutTradeNo() string
- func (m *PayRequest) GetPayAmount() uint32
- func (m *PayRequest) GetPayerAccount() string
- func (m *PayRequest) GetProductDescribe() string
- func (m *PayRequest) GetProductId() string
- func (m *PayRequest) GetProductName() string
- func (m *PayRequest) GetReturnUrl() string
- func (m *PayRequest) GetSign() string
- func (m *PayRequest) GetSignType() string
- func (m *PayRequest) GetUserId() string
- func (m *PayRequest) GetUserIp() string
- func (m *PayRequest) GetVersion() string
- func (*PayRequest) ProtoMessage()
- func (m *PayRequest) Reset()
- func (m *PayRequest) String() string
- func (this *PayRequest) Validate() error
- func (m *PayRequest) XXX_DiscardUnknown()
- func (m *PayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayRequest) XXX_Merge(src proto.Message)
- func (m *PayRequest) XXX_Size() int
- func (m *PayRequest) XXX_Unmarshal(b []byte) error
- type PayResponse
- func (*PayResponse) Descriptor() ([]byte, []int)
- func (m *PayResponse) GetData() map[string]string
- func (m *PayResponse) GetGatewayOrderId() string
- func (m *PayResponse) GetResult() *ReturnResult
- func (*PayResponse) ProtoMessage()
- func (m *PayResponse) Reset()
- func (m *PayResponse) String() string
- func (this *PayResponse) Validate() error
- func (m *PayResponse) XXX_DiscardUnknown()
- func (m *PayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayResponse) XXX_Merge(src proto.Message)
- func (m *PayResponse) XXX_Size() int
- func (m *PayResponse) XXX_Unmarshal(b []byte) error
- type PayStatus
- type PayType
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetDescription() string
- func (m *Product) GetId() string
- func (m *Product) GetName() string
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) String() string
- func (this *Product) Validate() error
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type ReturnResult
- func (*ReturnResult) Descriptor() ([]byte, []int)
- func (m *ReturnResult) GetCode() ReturnResultCode
- func (m *ReturnResult) GetDescribe() string
- func (m *ReturnResult) GetMessage() string
- func (*ReturnResult) ProtoMessage()
- func (m *ReturnResult) Reset()
- func (m *ReturnResult) String() string
- func (this *ReturnResult) Validate() error
- func (m *ReturnResult) XXX_DiscardUnknown()
- func (m *ReturnResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReturnResult) XXX_Merge(src proto.Message)
- func (m *ReturnResult) XXX_Size() int
- func (m *ReturnResult) XXX_Unmarshal(b []byte) error
- type ReturnResultCode
- type SettlementGatewayClient
- type SettlementGatewayServer
- type SettlementPayOrder
- func (*SettlementPayOrder) Descriptor() ([]byte, []int)
- func (m *SettlementPayOrder) GetOrder() *PayOrder
- func (m *SettlementPayOrder) GetVersion() string
- func (*SettlementPayOrder) ProtoMessage()
- func (m *SettlementPayOrder) Reset()
- func (m *SettlementPayOrder) String() string
- func (this *SettlementPayOrder) Validate() error
- func (m *SettlementPayOrder) XXX_DiscardUnknown()
- func (m *SettlementPayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SettlementPayOrder) XXX_Merge(src proto.Message)
- func (m *SettlementPayOrder) XXX_Size() int
- func (m *SettlementPayOrder) XXX_Unmarshal(b []byte) error
- type SettlementRequest
- func (*SettlementRequest) Descriptor() ([]byte, []int)
- func (m *SettlementRequest) GetGatewayOrderId() string
- func (m *SettlementRequest) GetVersion() string
- func (*SettlementRequest) ProtoMessage()
- func (m *SettlementRequest) Reset()
- func (m *SettlementRequest) String() string
- func (this *SettlementRequest) Validate() error
- func (m *SettlementRequest) XXX_DiscardUnknown()
- func (m *SettlementRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SettlementRequest) XXX_Merge(src proto.Message)
- func (m *SettlementRequest) XXX_Size() int
- func (m *SettlementRequest) XXX_Unmarshal(b []byte) error
- type SettlementResponse
- func (*SettlementResponse) Descriptor() ([]byte, []int)
- func (m *SettlementResponse) GetResult() *ReturnResult
- func (*SettlementResponse) ProtoMessage()
- func (m *SettlementResponse) Reset()
- func (m *SettlementResponse) String() string
- func (this *SettlementResponse) Validate() error
- func (m *SettlementResponse) XXX_DiscardUnknown()
- func (m *SettlementResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SettlementResponse) XXX_Merge(src proto.Message)
- func (m *SettlementResponse) XXX_Size() int
- func (m *SettlementResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var HTTPRequest_HttpMehod_name = map[int32]string{
0: "GET",
1: "POST",
}
var HTTPRequest_HttpMehod_value = map[string]int32{
"GET": 0,
"POST": 1,
}
var Method_name = map[int32]string{
0: "WEB",
1: "WAP",
2: "APP",
3: "SDK",
5: "QR_CODE",
4: "SERVER",
}
var Method_value = map[string]int32{
"WEB": 0,
"WAP": 1,
"APP": 2,
"SDK": 3,
"QR_CODE": 5,
"SERVER": 4,
}
var PayStatus_name = map[int32]string{
0: "SUCCESS",
1: "DEALING",
2: "FAIL",
}
var PayStatus_value = map[string]int32{
"SUCCESS": 0,
"DEALING": 1,
"FAIL": 2,
}
var PayType_name = map[int32]string{
0: "PAY",
1: "SIGN_PAY",
2: "REFUND",
3: "UNSIGN",
4: "TRANSFER",
}
var PayType_value = map[string]int32{
"PAY": 0,
"SIGN_PAY": 1,
"REFUND": 2,
"UNSIGN": 3,
"TRANSFER": 4,
}
var ReturnResultCode_name = map[int32]string{
0: "CODE_SUCCESS",
100: "CODE_PARAMS_ERROR",
101: "CODE_CHECK_SIGN_ERROR",
999: "CODE_SYSTEM_ERROR",
}
var ReturnResultCode_value = map[string]int32{
"CODE_SUCCESS": 0,
"CODE_PARAMS_ERROR": 100,
"CODE_CHECK_SIGN_ERROR": 101,
"CODE_SYSTEM_ERROR": 999,
}
Functions ¶
func RegisterPayChannelHandler ¶
func RegisterPayChannelHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPayChannelHandler registers the http handlers for service PayChannel to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPayChannelHandlerClient ¶
func RegisterPayChannelHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayChannelClient) error
RegisterPayChannelHandlerClient registers the http handlers for service PayChannel to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PayChannelClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PayChannelClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PayChannelClient" to call the correct interceptors.
func RegisterPayChannelHandlerFromEndpoint ¶
func RegisterPayChannelHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPayChannelHandlerFromEndpoint is same as RegisterPayChannelHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPayChannelServer ¶
func RegisterPayChannelServer(s *grpc.Server, srv PayChannelServer)
func RegisterPayDatabaseServiceHandler ¶
func RegisterPayDatabaseServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPayDatabaseServiceHandler registers the http handlers for service PayDatabaseService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPayDatabaseServiceHandlerClient ¶
func RegisterPayDatabaseServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayDatabaseServiceClient) error
RegisterPayDatabaseServiceHandlerClient registers the http handlers for service PayDatabaseService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PayDatabaseServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PayDatabaseServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PayDatabaseServiceClient" to call the correct interceptors.
func RegisterPayDatabaseServiceHandlerFromEndpoint ¶
func RegisterPayDatabaseServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPayDatabaseServiceHandlerFromEndpoint is same as RegisterPayDatabaseServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPayDatabaseServiceServer ¶
func RegisterPayDatabaseServiceServer(s *grpc.Server, srv PayDatabaseServiceServer)
func RegisterPayGatewayHandler ¶
func RegisterPayGatewayHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterPayGatewayHandler registers the http handlers for service PayGateway to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterPayGatewayHandlerClient ¶
func RegisterPayGatewayHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayGatewayClient) error
RegisterPayGatewayHandlerClient registers the http handlers for service PayGateway to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PayGatewayClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PayGatewayClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PayGatewayClient" to call the correct interceptors.
func RegisterPayGatewayHandlerFromEndpoint ¶
func RegisterPayGatewayHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterPayGatewayHandlerFromEndpoint is same as RegisterPayGatewayHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterPayGatewayServer ¶
func RegisterPayGatewayServer(s *grpc.Server, srv PayGatewayServer)
func RegisterSettlementGatewayHandler ¶
func RegisterSettlementGatewayHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSettlementGatewayHandler registers the http handlers for service SettlementGateway to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSettlementGatewayHandlerClient ¶
func RegisterSettlementGatewayHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SettlementGatewayClient) error
RegisterSettlementGatewayHandlerClient registers the http handlers for service SettlementGateway to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SettlementGatewayClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SettlementGatewayClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SettlementGatewayClient" to call the correct interceptors.
func RegisterSettlementGatewayHandlerFromEndpoint ¶
func RegisterSettlementGatewayHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSettlementGatewayHandlerFromEndpoint is same as RegisterSettlementGatewayHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSettlementGatewayServer ¶
func RegisterSettlementGatewayServer(s *grpc.Server, srv SettlementGatewayServer)
Types ¶
type BasePayOrder ¶
type BasePayOrder struct { Version string `protobuf:"bytes,100,opt,name=version,proto3" json:"version,omitempty"` // 业务订单号 OutTradeNo string `protobuf:"bytes,1,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"` // 渠道账号 ChannelAccount string `protobuf:"bytes,2,opt,name=channel_account,json=channelAccount,proto3" json:"channel_account,omitempty"` // 渠道订单号 ChannelOrderId string `protobuf:"bytes,21,opt,name=channel_order_id,json=channelOrderId,proto3" json:"channel_order_id,omitempty"` // 网关订单号 GatewayOrderId string `protobuf:"bytes,22,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` // 支付金额(分) PayAmount uint32 `protobuf:"varint,3,opt,name=pay_amount,json=payAmount,proto3" json:"pay_amount,omitempty"` // 币种 Currency string `protobuf:"bytes,25,opt,name=currency,proto3" json:"currency,omitempty"` // 接收通知的地址,不能带参数(即:不能包含问号) NotifyUrl string `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"` // 支付后跳转的前端地址 ReturnUrl string `protobuf:"bytes,5,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"` // 系统给商户分配的app_id AppId string `protobuf:"bytes,6,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // 加密方法,rsa和md5,默认rsa SignType string `protobuf:"bytes,7,opt,name=sign_type,json=signType,proto3" json:"sign_type,omitempty"` // 下单时间 OrderTime string `protobuf:"bytes,8,opt,name=order_time,json=orderTime,proto3" json:"order_time,omitempty"` // 请求到网关的时间 RequestTime string `protobuf:"bytes,20,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` // 订单创建日期 CreateDate string `protobuf:"bytes,23,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` // 发起支付的用户ip UserIp string `protobuf:"bytes,9,opt,name=user_ip,json=userIp,proto3" json:"user_ip,omitempty"` // 用户在业务系统的id UserId string `protobuf:"bytes,18,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 支付者账号,可选 PayerAccount string `protobuf:"bytes,10,opt,name=payer_account,json=payerAccount,proto3" json:"payer_account,omitempty"` // 产品id ProductId string `protobuf:"bytes,11,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // 商品名称 ProductName string `protobuf:"bytes,12,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` // 商品描述 ProductDescribe string `protobuf:"bytes,13,opt,name=product_describe,json=productDescribe,proto3" json:"product_describe,omitempty"` // 回调业务系统时需要带上的字符串 CallbackJson string `protobuf:"bytes,16,opt,name=callback_json,json=callbackJson,proto3" json:"callback_json,omitempty"` // 扩展json ExtJson string `protobuf:"bytes,17,opt,name=ext_json,json=extJson,proto3" json:"ext_json,omitempty"` // 渠道返回的json ChannelResponseJson string `protobuf:"bytes,26,opt,name=channel_response_json,json=channelResponseJson,proto3" json:"channel_response_json,omitempty"` // 下单错误信息 ErrorMessage string `protobuf:"bytes,27,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` // 渠道id(非必须),如果未指定method,系统会根据method来找到可用的channel_id ChannelId string `protobuf:"bytes,19,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Method string `protobuf:"bytes,98,opt,name=method,proto3" json:"method,omitempty"` Remark string `protobuf:"bytes,24,opt,name=remark,proto3" json:"remark,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BasePayOrder) Descriptor ¶
func (*BasePayOrder) Descriptor() ([]byte, []int)
func (*BasePayOrder) GetAppId ¶
func (m *BasePayOrder) GetAppId() string
func (*BasePayOrder) GetCallbackJson ¶
func (m *BasePayOrder) GetCallbackJson() string
func (*BasePayOrder) GetChannelAccount ¶
func (m *BasePayOrder) GetChannelAccount() string
func (*BasePayOrder) GetChannelId ¶
func (m *BasePayOrder) GetChannelId() string
func (*BasePayOrder) GetChannelOrderId ¶
func (m *BasePayOrder) GetChannelOrderId() string
func (*BasePayOrder) GetChannelResponseJson ¶
func (m *BasePayOrder) GetChannelResponseJson() string
func (*BasePayOrder) GetCreateDate ¶
func (m *BasePayOrder) GetCreateDate() string
func (*BasePayOrder) GetCurrency ¶
func (m *BasePayOrder) GetCurrency() string
func (*BasePayOrder) GetErrorMessage ¶
func (m *BasePayOrder) GetErrorMessage() string
func (*BasePayOrder) GetExtJson ¶
func (m *BasePayOrder) GetExtJson() string
func (*BasePayOrder) GetGatewayOrderId ¶
func (m *BasePayOrder) GetGatewayOrderId() string
func (*BasePayOrder) GetMethod ¶
func (m *BasePayOrder) GetMethod() string
func (*BasePayOrder) GetNotifyUrl ¶
func (m *BasePayOrder) GetNotifyUrl() string
func (*BasePayOrder) GetOrderTime ¶
func (m *BasePayOrder) GetOrderTime() string
func (*BasePayOrder) GetOutTradeNo ¶
func (m *BasePayOrder) GetOutTradeNo() string
func (*BasePayOrder) GetPayAmount ¶
func (m *BasePayOrder) GetPayAmount() uint32
func (*BasePayOrder) GetPayerAccount ¶
func (m *BasePayOrder) GetPayerAccount() string
func (*BasePayOrder) GetProductDescribe ¶
func (m *BasePayOrder) GetProductDescribe() string
func (*BasePayOrder) GetProductId ¶
func (m *BasePayOrder) GetProductId() string
func (*BasePayOrder) GetProductName ¶
func (m *BasePayOrder) GetProductName() string
func (*BasePayOrder) GetRemark ¶
func (m *BasePayOrder) GetRemark() string
func (*BasePayOrder) GetRequestTime ¶
func (m *BasePayOrder) GetRequestTime() string
func (*BasePayOrder) GetReturnUrl ¶
func (m *BasePayOrder) GetReturnUrl() string
func (*BasePayOrder) GetSignType ¶
func (m *BasePayOrder) GetSignType() string
func (*BasePayOrder) GetUserId ¶
func (m *BasePayOrder) GetUserId() string
func (*BasePayOrder) GetUserIp ¶
func (m *BasePayOrder) GetUserIp() string
func (*BasePayOrder) GetVersion ¶
func (m *BasePayOrder) GetVersion() string
func (*BasePayOrder) ProtoMessage ¶
func (*BasePayOrder) ProtoMessage()
func (*BasePayOrder) Reset ¶
func (m *BasePayOrder) Reset()
func (*BasePayOrder) String ¶
func (m *BasePayOrder) String() string
func (*BasePayOrder) Validate ¶
func (this *BasePayOrder) Validate() error
func (*BasePayOrder) XXX_DiscardUnknown ¶
func (m *BasePayOrder) XXX_DiscardUnknown()
func (*BasePayOrder) XXX_Marshal ¶
func (m *BasePayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BasePayOrder) XXX_Merge ¶
func (m *BasePayOrder) XXX_Merge(src proto.Message)
func (*BasePayOrder) XXX_Size ¶
func (m *BasePayOrder) XXX_Size() int
func (*BasePayOrder) XXX_Unmarshal ¶
func (m *BasePayOrder) XXX_Unmarshal(b []byte) error
type ChannelPayRequest ¶
type ChannelPayRequest struct { GatewayOrderId string `protobuf:"bytes,1,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` ChannelAccount string `protobuf:"bytes,2,opt,name=channel_account,json=channelAccount,proto3" json:"channel_account,omitempty"` PayAmount uint32 `protobuf:"varint,3,opt,name=pay_amount,json=payAmount,proto3" json:"pay_amount,omitempty"` Product *Product `protobuf:"bytes,4,opt,name=product,proto3" json:"product,omitempty"` NotifyUrl string `protobuf:"bytes,5,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"` ReturnUrl string `protobuf:"bytes,6,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"` UserIp string `protobuf:"bytes,7,opt,name=user_ip,json=userIp,proto3" json:"user_ip,omitempty"` Method string `protobuf:"bytes,98,opt,name=method,proto3" json:"method,omitempty"` Meta map[string]string `` /* 150-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelPayRequest) Descriptor ¶
func (*ChannelPayRequest) Descriptor() ([]byte, []int)
func (*ChannelPayRequest) GetChannelAccount ¶
func (m *ChannelPayRequest) GetChannelAccount() string
func (*ChannelPayRequest) GetGatewayOrderId ¶
func (m *ChannelPayRequest) GetGatewayOrderId() string
func (*ChannelPayRequest) GetMeta ¶
func (m *ChannelPayRequest) GetMeta() map[string]string
func (*ChannelPayRequest) GetMethod ¶
func (m *ChannelPayRequest) GetMethod() string
func (*ChannelPayRequest) GetNotifyUrl ¶
func (m *ChannelPayRequest) GetNotifyUrl() string
func (*ChannelPayRequest) GetPayAmount ¶
func (m *ChannelPayRequest) GetPayAmount() uint32
func (*ChannelPayRequest) GetProduct ¶
func (m *ChannelPayRequest) GetProduct() *Product
func (*ChannelPayRequest) GetReturnUrl ¶
func (m *ChannelPayRequest) GetReturnUrl() string
func (*ChannelPayRequest) GetUserIp ¶
func (m *ChannelPayRequest) GetUserIp() string
func (*ChannelPayRequest) ProtoMessage ¶
func (*ChannelPayRequest) ProtoMessage()
func (*ChannelPayRequest) Reset ¶
func (m *ChannelPayRequest) Reset()
func (*ChannelPayRequest) String ¶
func (m *ChannelPayRequest) String() string
func (*ChannelPayRequest) Validate ¶
func (this *ChannelPayRequest) Validate() error
func (*ChannelPayRequest) XXX_DiscardUnknown ¶
func (m *ChannelPayRequest) XXX_DiscardUnknown()
func (*ChannelPayRequest) XXX_Marshal ¶
func (m *ChannelPayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelPayRequest) XXX_Merge ¶
func (m *ChannelPayRequest) XXX_Merge(src proto.Message)
func (*ChannelPayRequest) XXX_Size ¶
func (m *ChannelPayRequest) XXX_Size() int
func (*ChannelPayRequest) XXX_Unmarshal ¶
func (m *ChannelPayRequest) XXX_Unmarshal(b []byte) error
type ChannelPayResponse ¶
type ChannelPayResponse struct { ChannelOrderId string `protobuf:"bytes,4,opt,name=channel_order_id,json=channelOrderId,proto3" json:"channel_order_id,omitempty"` Data map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelPayResponse) Descriptor ¶
func (*ChannelPayResponse) Descriptor() ([]byte, []int)
func (*ChannelPayResponse) GetChannelOrderId ¶
func (m *ChannelPayResponse) GetChannelOrderId() string
func (*ChannelPayResponse) GetData ¶
func (m *ChannelPayResponse) GetData() map[string]string
func (*ChannelPayResponse) ProtoMessage ¶
func (*ChannelPayResponse) ProtoMessage()
func (*ChannelPayResponse) Reset ¶
func (m *ChannelPayResponse) Reset()
func (*ChannelPayResponse) String ¶
func (m *ChannelPayResponse) String() string
func (*ChannelPayResponse) Validate ¶
func (this *ChannelPayResponse) Validate() error
func (*ChannelPayResponse) XXX_DiscardUnknown ¶
func (m *ChannelPayResponse) XXX_DiscardUnknown()
func (*ChannelPayResponse) XXX_Marshal ¶
func (m *ChannelPayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelPayResponse) XXX_Merge ¶
func (m *ChannelPayResponse) XXX_Merge(src proto.Message)
func (*ChannelPayResponse) XXX_Size ¶
func (m *ChannelPayResponse) XXX_Size() int
func (*ChannelPayResponse) XXX_Unmarshal ¶
func (m *ChannelPayResponse) XXX_Unmarshal(b []byte) error
type HTTPRequest ¶
type HTTPRequest struct { // 请求方法: GET or POST Method HTTPRequest_HttpMehod `protobuf:"varint,1,opt,name=method,proto3,enum=pay.HTTPRequest_HttpMehod" json:"method,omitempty"` // 其他附加信息,可选返回商户返回的meta信息 Header map[string]string `` /* 153-byte string literal not displayed */ // 请求的第三方的url,包含 /some?a=b&c=d, 也可以简化为:?a=b&c=d,不填写具体URL PATH Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // 请求二进制,可能是:xml或json Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
来自第三方的请求body
func (*HTTPRequest) Descriptor ¶
func (*HTTPRequest) Descriptor() ([]byte, []int)
func (*HTTPRequest) GetBody ¶
func (m *HTTPRequest) GetBody() []byte
func (*HTTPRequest) GetHeader ¶
func (m *HTTPRequest) GetHeader() map[string]string
func (*HTTPRequest) GetMethod ¶
func (m *HTTPRequest) GetMethod() HTTPRequest_HttpMehod
func (*HTTPRequest) GetUrl ¶
func (m *HTTPRequest) GetUrl() string
func (*HTTPRequest) ProtoMessage ¶
func (*HTTPRequest) ProtoMessage()
func (*HTTPRequest) Reset ¶
func (m *HTTPRequest) Reset()
func (*HTTPRequest) String ¶
func (m *HTTPRequest) String() string
func (*HTTPRequest) Validate ¶
func (this *HTTPRequest) Validate() error
func (*HTTPRequest) XXX_DiscardUnknown ¶
func (m *HTTPRequest) XXX_DiscardUnknown()
func (*HTTPRequest) XXX_Marshal ¶
func (m *HTTPRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HTTPRequest) XXX_Merge ¶
func (m *HTTPRequest) XXX_Merge(src proto.Message)
func (*HTTPRequest) XXX_Size ¶
func (m *HTTPRequest) XXX_Size() int
func (*HTTPRequest) XXX_Unmarshal ¶
func (m *HTTPRequest) XXX_Unmarshal(b []byte) error
type HTTPRequest_HttpMehod ¶
type HTTPRequest_HttpMehod int32
const ( HTTPRequest_GET HTTPRequest_HttpMehod = 0 HTTPRequest_POST HTTPRequest_HttpMehod = 1 )
func (HTTPRequest_HttpMehod) EnumDescriptor ¶
func (HTTPRequest_HttpMehod) EnumDescriptor() ([]byte, []int)
func (HTTPRequest_HttpMehod) String ¶
func (x HTTPRequest_HttpMehod) String() string
type HTTPResponse ¶
type HTTPResponse struct { // 其他附加信息,可选返回商户返回的meta信息 Header map[string]string `` /* 153-byte string literal not displayed */ // 请求二进制,可能是:xml或json Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // 请求响应状态码,默认200 Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
向第三方响应的Response
func (*HTTPResponse) Descriptor ¶
func (*HTTPResponse) Descriptor() ([]byte, []int)
func (*HTTPResponse) GetBody ¶
func (m *HTTPResponse) GetBody() []byte
func (*HTTPResponse) GetHeader ¶
func (m *HTTPResponse) GetHeader() map[string]string
func (*HTTPResponse) GetStatus ¶
func (m *HTTPResponse) GetStatus() int32
func (*HTTPResponse) ProtoMessage ¶
func (*HTTPResponse) ProtoMessage()
func (*HTTPResponse) Reset ¶
func (m *HTTPResponse) Reset()
func (*HTTPResponse) String ¶
func (m *HTTPResponse) String() string
func (*HTTPResponse) Validate ¶
func (this *HTTPResponse) Validate() error
func (*HTTPResponse) XXX_DiscardUnknown ¶
func (m *HTTPResponse) XXX_DiscardUnknown()
func (*HTTPResponse) XXX_Marshal ¶
func (m *HTTPResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HTTPResponse) XXX_Merge ¶
func (m *HTTPResponse) XXX_Merge(src proto.Message)
func (*HTTPResponse) XXX_Size ¶
func (m *HTTPResponse) XXX_Size() int
func (*HTTPResponse) XXX_Unmarshal ¶
func (m *HTTPResponse) XXX_Unmarshal(b []byte) error
type NotifyRequest ¶
type NotifyRequest struct { // 支付账户(可选), 允许用户配置多个支付宝账户, 如果为空,则默认选择第一个配置文件 PaymentAccount string `protobuf:"bytes,1,opt,name=payment_account,json=paymentAccount,proto3" json:"payment_account,omitempty"` // 支付类型: pay(付款相关通知),sign_pay(签约), 根据具体通知配置而定。 Type PayType `protobuf:"varint,2,opt,name=type,proto3,enum=pay.PayType" json:"type,omitempty"` // 请求的HTTP详情 Request *HTTPRequest `protobuf:"bytes,3,opt,name=request,proto3" json:"request,omitempty"` // 可选,支付方式, 可用于统一网关层 Method string `protobuf:"bytes,99,opt,name=method,proto3" json:"method,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
来自第三方的请求的Notify
func (*NotifyRequest) Descriptor ¶
func (*NotifyRequest) Descriptor() ([]byte, []int)
func (*NotifyRequest) GetMethod ¶
func (m *NotifyRequest) GetMethod() string
func (*NotifyRequest) GetPaymentAccount ¶
func (m *NotifyRequest) GetPaymentAccount() string
func (*NotifyRequest) GetRequest ¶
func (m *NotifyRequest) GetRequest() *HTTPRequest
func (*NotifyRequest) GetType ¶
func (m *NotifyRequest) GetType() PayType
func (*NotifyRequest) ProtoMessage ¶
func (*NotifyRequest) ProtoMessage()
func (*NotifyRequest) Reset ¶
func (m *NotifyRequest) Reset()
func (*NotifyRequest) String ¶
func (m *NotifyRequest) String() string
func (*NotifyRequest) Validate ¶
func (this *NotifyRequest) Validate() error
func (*NotifyRequest) XXX_DiscardUnknown ¶
func (m *NotifyRequest) XXX_DiscardUnknown()
func (*NotifyRequest) XXX_Marshal ¶
func (m *NotifyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotifyRequest) XXX_Merge ¶
func (m *NotifyRequest) XXX_Merge(src proto.Message)
func (*NotifyRequest) XXX_Size ¶
func (m *NotifyRequest) XXX_Size() int
func (*NotifyRequest) XXX_Unmarshal ¶
func (m *NotifyRequest) XXX_Unmarshal(b []byte) error
type NotifyResponse ¶
type NotifyResponse struct { // 付款状态 Status PayStatus `protobuf:"varint,1,opt,name=status,proto3,enum=pay.PayStatus" json:"status,omitempty"` // 同步返回的数据 Response *HTTPResponse `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
来自第三方的请求的Notify
func (*NotifyResponse) Descriptor ¶
func (*NotifyResponse) Descriptor() ([]byte, []int)
func (*NotifyResponse) GetResponse ¶
func (m *NotifyResponse) GetResponse() *HTTPResponse
func (*NotifyResponse) GetStatus ¶
func (m *NotifyResponse) GetStatus() PayStatus
func (*NotifyResponse) ProtoMessage ¶
func (*NotifyResponse) ProtoMessage()
func (*NotifyResponse) Reset ¶
func (m *NotifyResponse) Reset()
func (*NotifyResponse) String ¶
func (m *NotifyResponse) String() string
func (*NotifyResponse) Validate ¶
func (this *NotifyResponse) Validate() error
func (*NotifyResponse) XXX_DiscardUnknown ¶
func (m *NotifyResponse) XXX_DiscardUnknown()
func (*NotifyResponse) XXX_Marshal ¶
func (m *NotifyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NotifyResponse) XXX_Merge ¶
func (m *NotifyResponse) XXX_Merge(src proto.Message)
func (*NotifyResponse) XXX_Size ¶
func (m *NotifyResponse) XXX_Size() int
func (*NotifyResponse) XXX_Unmarshal ¶
func (m *NotifyResponse) XXX_Unmarshal(b []byte) error
type PayChannelClient ¶
type PayChannelClient interface { Pay(ctx context.Context, in *ChannelPayRequest, opts ...grpc.CallOption) (*ChannelPayResponse, error) Notify(ctx context.Context, in *NotifyRequest, opts ...grpc.CallOption) (*NotifyResponse, error) }
PayChannelClient is the client API for PayChannel service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPayChannelClient ¶
func NewPayChannelClient(cc *grpc.ClientConn) PayChannelClient
type PayChannelServer ¶
type PayChannelServer interface { Pay(context.Context, *ChannelPayRequest) (*ChannelPayResponse, error) Notify(context.Context, *NotifyRequest) (*NotifyResponse, error) }
PayChannelServer is the server API for PayChannel service.
type PayDatabaseServiceClient ¶
type PayDatabaseServiceClient interface { SavePayOrder(ctx context.Context, in *PayOrder, opts ...grpc.CallOption) (*ReturnResult, error) UpdatePayOrder(ctx context.Context, in *PayOrder, opts ...grpc.CallOption) (*ReturnResult, error) FindPayOrder(ctx context.Context, in *PayOrder, opts ...grpc.CallOption) (*PayOrderResponse, error) SavePayOrderOk(ctx context.Context, in *PayOrderOk, opts ...grpc.CallOption) (*ReturnResult, error) UpdatePayOrderOk(ctx context.Context, in *PayOrderOk, opts ...grpc.CallOption) (*ReturnResult, error) FindPayOrderOk(ctx context.Context, in *PayOrderOk, opts ...grpc.CallOption) (*PayOrderOkResponse, error) SavePayNotice(ctx context.Context, in *PayNotice, opts ...grpc.CallOption) (*ReturnResult, error) UpdatePayNotice(ctx context.Context, in *PayNotice, opts ...grpc.CallOption) (*ReturnResult, error) FindPayNotice(ctx context.Context, in *PayNotice, opts ...grpc.CallOption) (*PayNoticeResponse, error) FindPayNoticeLessThenTime(ctx context.Context, in *PayNotice, opts ...grpc.CallOption) (*PayNoticeResponse, error) SavePayNotifyOk(ctx context.Context, in *PayNoticeOk, opts ...grpc.CallOption) (*ReturnResult, error) FindPayNotifyOk(ctx context.Context, in *PayNoticeOk, opts ...grpc.CallOption) (*PayNoticeOkResponse, error) UpdatePayNoticeOk(ctx context.Context, in *PayNoticeOk, opts ...grpc.CallOption) (*ReturnResult, error) }
PayDatabaseServiceClient is the client API for PayDatabaseService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPayDatabaseServiceClient ¶
func NewPayDatabaseServiceClient(cc *grpc.ClientConn) PayDatabaseServiceClient
type PayDatabaseServiceServer ¶
type PayDatabaseServiceServer interface { SavePayOrder(context.Context, *PayOrder) (*ReturnResult, error) UpdatePayOrder(context.Context, *PayOrder) (*ReturnResult, error) FindPayOrder(context.Context, *PayOrder) (*PayOrderResponse, error) SavePayOrderOk(context.Context, *PayOrderOk) (*ReturnResult, error) UpdatePayOrderOk(context.Context, *PayOrderOk) (*ReturnResult, error) FindPayOrderOk(context.Context, *PayOrderOk) (*PayOrderOkResponse, error) SavePayNotice(context.Context, *PayNotice) (*ReturnResult, error) UpdatePayNotice(context.Context, *PayNotice) (*ReturnResult, error) FindPayNotice(context.Context, *PayNotice) (*PayNoticeResponse, error) FindPayNoticeLessThenTime(context.Context, *PayNotice) (*PayNoticeResponse, error) SavePayNotifyOk(context.Context, *PayNoticeOk) (*ReturnResult, error) FindPayNotifyOk(context.Context, *PayNoticeOk) (*PayNoticeOkResponse, error) UpdatePayNoticeOk(context.Context, *PayNoticeOk) (*ReturnResult, error) }
PayDatabaseServiceServer is the server API for PayDatabaseService service.
type PayGatewayClient ¶
type PayGatewayClient interface {
Pay(ctx context.Context, in *PayRequest, opts ...grpc.CallOption) (*PayResponse, error)
}
PayGatewayClient is the client API for PayGateway service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPayGatewayClient ¶
func NewPayGatewayClient(cc *grpc.ClientConn) PayGatewayClient
type PayGatewayServer ¶
type PayGatewayServer interface {
Pay(context.Context, *PayRequest) (*PayResponse, error)
}
PayGatewayServer is the server API for PayGateway service.
type PayNotice ¶
type PayNotice struct { GatewayOrderId string `protobuf:"bytes,1,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` CreateDate string `protobuf:"bytes,2,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` FailTimes uint32 `protobuf:"varint,3,opt,name=fail_times,json=failTimes,proto3" json:"fail_times,omitempty"` NoticeTime string `protobuf:"bytes,4,opt,name=notice_time,json=noticeTime,proto3" json:"notice_time,omitempty"` Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"` NextNotifyTime string `protobuf:"bytes,7,opt,name=next_notify_time,json=nextNotifyTime,proto3" json:"next_notify_time,omitempty"` ErrorMessage string `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayNotice) Descriptor ¶
func (*PayNotice) GetCreateDate ¶
func (*PayNotice) GetErrorMessage ¶
func (*PayNotice) GetFailTimes ¶
func (*PayNotice) GetGatewayOrderId ¶
func (*PayNotice) GetNextNotifyTime ¶
func (*PayNotice) GetNoticeTime ¶
func (*PayNotice) ProtoMessage ¶
func (*PayNotice) ProtoMessage()
func (*PayNotice) XXX_DiscardUnknown ¶
func (m *PayNotice) XXX_DiscardUnknown()
func (*PayNotice) XXX_Marshal ¶
func (*PayNotice) XXX_Unmarshal ¶
type PayNoticeOk ¶
type PayNoticeOk struct { GatewayOrderId string `protobuf:"bytes,1,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` CreateDate string `protobuf:"bytes,2,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"` FailTimes uint32 `protobuf:"varint,3,opt,name=fail_times,json=failTimes,proto3" json:"fail_times,omitempty"` NoticeTime string `protobuf:"bytes,4,opt,name=notice_time,json=noticeTime,proto3" json:"notice_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayNoticeOk) Descriptor ¶
func (*PayNoticeOk) Descriptor() ([]byte, []int)
func (*PayNoticeOk) GetCreateDate ¶
func (m *PayNoticeOk) GetCreateDate() string
func (*PayNoticeOk) GetFailTimes ¶
func (m *PayNoticeOk) GetFailTimes() uint32
func (*PayNoticeOk) GetGatewayOrderId ¶
func (m *PayNoticeOk) GetGatewayOrderId() string
func (*PayNoticeOk) GetNoticeTime ¶
func (m *PayNoticeOk) GetNoticeTime() string
func (*PayNoticeOk) ProtoMessage ¶
func (*PayNoticeOk) ProtoMessage()
func (*PayNoticeOk) Reset ¶
func (m *PayNoticeOk) Reset()
func (*PayNoticeOk) String ¶
func (m *PayNoticeOk) String() string
func (*PayNoticeOk) Validate ¶
func (this *PayNoticeOk) Validate() error
func (*PayNoticeOk) XXX_DiscardUnknown ¶
func (m *PayNoticeOk) XXX_DiscardUnknown()
func (*PayNoticeOk) XXX_Marshal ¶
func (m *PayNoticeOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayNoticeOk) XXX_Merge ¶
func (m *PayNoticeOk) XXX_Merge(src proto.Message)
func (*PayNoticeOk) XXX_Size ¶
func (m *PayNoticeOk) XXX_Size() int
func (*PayNoticeOk) XXX_Unmarshal ¶
func (m *PayNoticeOk) XXX_Unmarshal(b []byte) error
type PayNoticeOkResponse ¶
type PayNoticeOkResponse struct { PayNoticeOks []*PayNoticeOk `protobuf:"bytes,1,rep,name=payNoticeOks,proto3" json:"payNoticeOks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayNoticeOkResponse) Descriptor ¶
func (*PayNoticeOkResponse) Descriptor() ([]byte, []int)
func (*PayNoticeOkResponse) GetPayNoticeOks ¶
func (m *PayNoticeOkResponse) GetPayNoticeOks() []*PayNoticeOk
func (*PayNoticeOkResponse) ProtoMessage ¶
func (*PayNoticeOkResponse) ProtoMessage()
func (*PayNoticeOkResponse) Reset ¶
func (m *PayNoticeOkResponse) Reset()
func (*PayNoticeOkResponse) String ¶
func (m *PayNoticeOkResponse) String() string
func (*PayNoticeOkResponse) Validate ¶
func (this *PayNoticeOkResponse) Validate() error
func (*PayNoticeOkResponse) XXX_DiscardUnknown ¶
func (m *PayNoticeOkResponse) XXX_DiscardUnknown()
func (*PayNoticeOkResponse) XXX_Marshal ¶
func (m *PayNoticeOkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayNoticeOkResponse) XXX_Merge ¶
func (m *PayNoticeOkResponse) XXX_Merge(src proto.Message)
func (*PayNoticeOkResponse) XXX_Size ¶
func (m *PayNoticeOkResponse) XXX_Size() int
func (*PayNoticeOkResponse) XXX_Unmarshal ¶
func (m *PayNoticeOkResponse) XXX_Unmarshal(b []byte) error
type PayNoticeResponse ¶
type PayNoticeResponse struct { PayNotices []*PayNotice `protobuf:"bytes,1,rep,name=payNotices,proto3" json:"payNotices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayNoticeResponse) Descriptor ¶
func (*PayNoticeResponse) Descriptor() ([]byte, []int)
func (*PayNoticeResponse) GetPayNotices ¶
func (m *PayNoticeResponse) GetPayNotices() []*PayNotice
func (*PayNoticeResponse) ProtoMessage ¶
func (*PayNoticeResponse) ProtoMessage()
func (*PayNoticeResponse) Reset ¶
func (m *PayNoticeResponse) Reset()
func (*PayNoticeResponse) String ¶
func (m *PayNoticeResponse) String() string
func (*PayNoticeResponse) Validate ¶
func (this *PayNoticeResponse) Validate() error
func (*PayNoticeResponse) XXX_DiscardUnknown ¶
func (m *PayNoticeResponse) XXX_DiscardUnknown()
func (*PayNoticeResponse) XXX_Marshal ¶
func (m *PayNoticeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayNoticeResponse) XXX_Merge ¶
func (m *PayNoticeResponse) XXX_Merge(src proto.Message)
func (*PayNoticeResponse) XXX_Size ¶
func (m *PayNoticeResponse) XXX_Size() int
func (*PayNoticeResponse) XXX_Unmarshal ¶
func (m *PayNoticeResponse) XXX_Unmarshal(b []byte) error
type PayOrder ¶
type PayOrder struct { BasePayOrder *BasePayOrder `protobuf:"bytes,1,opt,name=base_pay_order,json=basePayOrder,proto3" json:"base_pay_order,omitempty"` OrderStatus string `protobuf:"bytes,2,opt,name=order_status,json=orderStatus,proto3" json:"order_status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayOrder) Descriptor ¶
func (*PayOrder) GetBasePayOrder ¶
func (m *PayOrder) GetBasePayOrder() *BasePayOrder
func (*PayOrder) GetOrderStatus ¶
func (*PayOrder) ProtoMessage ¶
func (*PayOrder) ProtoMessage()
func (*PayOrder) XXX_DiscardUnknown ¶
func (m *PayOrder) XXX_DiscardUnknown()
func (*PayOrder) XXX_Marshal ¶
func (*PayOrder) XXX_Unmarshal ¶
type PayOrderOk ¶
type PayOrderOk struct { BasePayOrder *BasePayOrder `protobuf:"bytes,1,opt,name=base_pay_order,json=basePayOrder,proto3" json:"base_pay_order,omitempty"` SuccessTime string `protobuf:"bytes,2,opt,name=success_time,json=successTime,proto3" json:"success_time,omitempty"` BalanceDate string `protobuf:"bytes,3,opt,name=balance_date,json=balanceDate,proto3" json:"balance_date,omitempty"` FareAmt uint32 `protobuf:"varint,4,opt,name=fare_amt,json=fareAmt,proto3" json:"fare_amt,omitempty"` FactAmt uint32 `protobuf:"varint,5,opt,name=fact_amt,json=factAmt,proto3" json:"fact_amt,omitempty"` SendNoticeStats string `protobuf:"bytes,6,opt,name=send_notice_stats,json=sendNoticeStats,proto3" json:"send_notice_stats,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayOrderOk) Descriptor ¶
func (*PayOrderOk) Descriptor() ([]byte, []int)
func (*PayOrderOk) GetBalanceDate ¶
func (m *PayOrderOk) GetBalanceDate() string
func (*PayOrderOk) GetBasePayOrder ¶
func (m *PayOrderOk) GetBasePayOrder() *BasePayOrder
func (*PayOrderOk) GetFactAmt ¶
func (m *PayOrderOk) GetFactAmt() uint32
func (*PayOrderOk) GetFareAmt ¶
func (m *PayOrderOk) GetFareAmt() uint32
func (*PayOrderOk) GetSendNoticeStats ¶
func (m *PayOrderOk) GetSendNoticeStats() string
func (*PayOrderOk) GetSuccessTime ¶
func (m *PayOrderOk) GetSuccessTime() string
func (*PayOrderOk) ProtoMessage ¶
func (*PayOrderOk) ProtoMessage()
func (*PayOrderOk) Reset ¶
func (m *PayOrderOk) Reset()
func (*PayOrderOk) String ¶
func (m *PayOrderOk) String() string
func (*PayOrderOk) Validate ¶
func (this *PayOrderOk) Validate() error
func (*PayOrderOk) XXX_DiscardUnknown ¶
func (m *PayOrderOk) XXX_DiscardUnknown()
func (*PayOrderOk) XXX_Marshal ¶
func (m *PayOrderOk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayOrderOk) XXX_Merge ¶
func (m *PayOrderOk) XXX_Merge(src proto.Message)
func (*PayOrderOk) XXX_Size ¶
func (m *PayOrderOk) XXX_Size() int
func (*PayOrderOk) XXX_Unmarshal ¶
func (m *PayOrderOk) XXX_Unmarshal(b []byte) error
type PayOrderOkResponse ¶
type PayOrderOkResponse struct { PayOrderOks []*PayOrderOk `protobuf:"bytes,1,rep,name=payOrderOks,proto3" json:"payOrderOks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayOrderOkResponse) Descriptor ¶
func (*PayOrderOkResponse) Descriptor() ([]byte, []int)
func (*PayOrderOkResponse) GetPayOrderOks ¶
func (m *PayOrderOkResponse) GetPayOrderOks() []*PayOrderOk
func (*PayOrderOkResponse) ProtoMessage ¶
func (*PayOrderOkResponse) ProtoMessage()
func (*PayOrderOkResponse) Reset ¶
func (m *PayOrderOkResponse) Reset()
func (*PayOrderOkResponse) String ¶
func (m *PayOrderOkResponse) String() string
func (*PayOrderOkResponse) Validate ¶
func (this *PayOrderOkResponse) Validate() error
func (*PayOrderOkResponse) XXX_DiscardUnknown ¶
func (m *PayOrderOkResponse) XXX_DiscardUnknown()
func (*PayOrderOkResponse) XXX_Marshal ¶
func (m *PayOrderOkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayOrderOkResponse) XXX_Merge ¶
func (m *PayOrderOkResponse) XXX_Merge(src proto.Message)
func (*PayOrderOkResponse) XXX_Size ¶
func (m *PayOrderOkResponse) XXX_Size() int
func (*PayOrderOkResponse) XXX_Unmarshal ¶
func (m *PayOrderOkResponse) XXX_Unmarshal(b []byte) error
type PayOrderResponse ¶
type PayOrderResponse struct { PayOrders []*PayOrder `protobuf:"bytes,1,rep,name=payOrders,proto3" json:"payOrders,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayOrderResponse) Descriptor ¶
func (*PayOrderResponse) Descriptor() ([]byte, []int)
func (*PayOrderResponse) GetPayOrders ¶
func (m *PayOrderResponse) GetPayOrders() []*PayOrder
func (*PayOrderResponse) ProtoMessage ¶
func (*PayOrderResponse) ProtoMessage()
func (*PayOrderResponse) Reset ¶
func (m *PayOrderResponse) Reset()
func (*PayOrderResponse) String ¶
func (m *PayOrderResponse) String() string
func (*PayOrderResponse) Validate ¶
func (this *PayOrderResponse) Validate() error
func (*PayOrderResponse) XXX_DiscardUnknown ¶
func (m *PayOrderResponse) XXX_DiscardUnknown()
func (*PayOrderResponse) XXX_Marshal ¶
func (m *PayOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayOrderResponse) XXX_Merge ¶
func (m *PayOrderResponse) XXX_Merge(src proto.Message)
func (*PayOrderResponse) XXX_Size ¶
func (m *PayOrderResponse) XXX_Size() int
func (*PayOrderResponse) XXX_Unmarshal ¶
func (m *PayOrderResponse) XXX_Unmarshal(b []byte) error
type PayRequest ¶
type PayRequest struct { Version string `protobuf:"bytes,100,opt,name=version,proto3" json:"version,omitempty"` // 业务订单号 OutTradeNo string `protobuf:"bytes,1,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"` // 支付金额(分) PayAmount uint32 `protobuf:"varint,3,opt,name=pay_amount,json=payAmount,proto3" json:"pay_amount,omitempty"` // 币种 Currency string `protobuf:"bytes,20,opt,name=currency,proto3" json:"currency,omitempty"` // 接收通知的地址,不能带参数(即:不能包含问号) NotifyUrl string `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"` // 支付后跳转的前端地址 ReturnUrl string `protobuf:"bytes,5,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"` // 系统给商户分配的app_id AppId string `protobuf:"bytes,6,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` // 加密方法,RSA和MD5,默认RSA SignType string `protobuf:"bytes,7,opt,name=sign_type,json=signType,proto3" json:"sign_type,omitempty"` // 签名 Sign string `protobuf:"bytes,14,opt,name=sign,proto3" json:"sign,omitempty"` // 业务方下单时间,时间格式: 年年年年-月月-日日 时时:分分:秒秒,例如: 2006-01-02 15:04:05 OrderTime string `protobuf:"bytes,8,opt,name=order_time,json=orderTime,proto3" json:"order_time,omitempty"` // 发起支付的用户ip UserIp string `protobuf:"bytes,9,opt,name=user_ip,json=userIp,proto3" json:"user_ip,omitempty"` // 用户在业务系统的id UserId string `protobuf:"bytes,18,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 支付者账号,可选 PayerAccount string `protobuf:"bytes,10,opt,name=payer_account,json=payerAccount,proto3" json:"payer_account,omitempty"` // 业务系统的产品id ProductId string `protobuf:"bytes,11,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` // 商品名称 ProductName string `protobuf:"bytes,12,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` // 商品描述 ProductDescribe string `protobuf:"bytes,13,opt,name=product_describe,json=productDescribe,proto3" json:"product_describe,omitempty"` // 参数编码,只允许utf-8编码;签名时一定要使用该编码获取字节然后再进行签名 Charset string `protobuf:"bytes,15,opt,name=charset,proto3" json:"charset,omitempty"` // 回调业务系统时需要带上的字符串 CallbackJson string `protobuf:"bytes,16,opt,name=callback_json,json=callbackJson,proto3" json:"callback_json,omitempty"` // 扩展json ExtJson string `protobuf:"bytes,17,opt,name=ext_json,json=extJson,proto3" json:"ext_json,omitempty"` // 渠道id(非必须),如果未指定method,系统会根据method来找到可用的channel_id ChannelId string `protobuf:"bytes,19,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // 例如:二维码支付,银联支付等。 Method string `protobuf:"bytes,98,opt,name=method,proto3" json:"method,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayRequest) Descriptor ¶
func (*PayRequest) Descriptor() ([]byte, []int)
func (*PayRequest) GetAppId ¶
func (m *PayRequest) GetAppId() string
func (*PayRequest) GetCallbackJson ¶
func (m *PayRequest) GetCallbackJson() string
func (*PayRequest) GetChannelId ¶
func (m *PayRequest) GetChannelId() string
func (*PayRequest) GetCharset ¶
func (m *PayRequest) GetCharset() string
func (*PayRequest) GetCurrency ¶
func (m *PayRequest) GetCurrency() string
func (*PayRequest) GetExtJson ¶
func (m *PayRequest) GetExtJson() string
func (*PayRequest) GetMethod ¶
func (m *PayRequest) GetMethod() string
func (*PayRequest) GetNotifyUrl ¶
func (m *PayRequest) GetNotifyUrl() string
func (*PayRequest) GetOrderTime ¶
func (m *PayRequest) GetOrderTime() string
func (*PayRequest) GetOutTradeNo ¶
func (m *PayRequest) GetOutTradeNo() string
func (*PayRequest) GetPayAmount ¶
func (m *PayRequest) GetPayAmount() uint32
func (*PayRequest) GetPayerAccount ¶
func (m *PayRequest) GetPayerAccount() string
func (*PayRequest) GetProductDescribe ¶
func (m *PayRequest) GetProductDescribe() string
func (*PayRequest) GetProductId ¶
func (m *PayRequest) GetProductId() string
func (*PayRequest) GetProductName ¶
func (m *PayRequest) GetProductName() string
func (*PayRequest) GetReturnUrl ¶
func (m *PayRequest) GetReturnUrl() string
func (*PayRequest) GetSign ¶
func (m *PayRequest) GetSign() string
func (*PayRequest) GetSignType ¶
func (m *PayRequest) GetSignType() string
func (*PayRequest) GetUserId ¶
func (m *PayRequest) GetUserId() string
func (*PayRequest) GetUserIp ¶
func (m *PayRequest) GetUserIp() string
func (*PayRequest) GetVersion ¶
func (m *PayRequest) GetVersion() string
func (*PayRequest) ProtoMessage ¶
func (*PayRequest) ProtoMessage()
func (*PayRequest) Reset ¶
func (m *PayRequest) Reset()
func (*PayRequest) String ¶
func (m *PayRequest) String() string
func (*PayRequest) Validate ¶
func (this *PayRequest) Validate() error
func (*PayRequest) XXX_DiscardUnknown ¶
func (m *PayRequest) XXX_DiscardUnknown()
func (*PayRequest) XXX_Marshal ¶
func (m *PayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayRequest) XXX_Merge ¶
func (m *PayRequest) XXX_Merge(src proto.Message)
func (*PayRequest) XXX_Size ¶
func (m *PayRequest) XXX_Size() int
func (*PayRequest) XXX_Unmarshal ¶
func (m *PayRequest) XXX_Unmarshal(b []byte) error
type PayResponse ¶
type PayResponse struct { Result *ReturnResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` GatewayOrderId string `protobuf:"bytes,2,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` Data map[string]string `` /* 149-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayResponse) Descriptor ¶
func (*PayResponse) Descriptor() ([]byte, []int)
func (*PayResponse) GetData ¶
func (m *PayResponse) GetData() map[string]string
func (*PayResponse) GetGatewayOrderId ¶
func (m *PayResponse) GetGatewayOrderId() string
func (*PayResponse) GetResult ¶
func (m *PayResponse) GetResult() *ReturnResult
func (*PayResponse) ProtoMessage ¶
func (*PayResponse) ProtoMessage()
func (*PayResponse) Reset ¶
func (m *PayResponse) Reset()
func (*PayResponse) String ¶
func (m *PayResponse) String() string
func (*PayResponse) Validate ¶
func (this *PayResponse) Validate() error
func (*PayResponse) XXX_DiscardUnknown ¶
func (m *PayResponse) XXX_DiscardUnknown()
func (*PayResponse) XXX_Marshal ¶
func (m *PayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayResponse) XXX_Merge ¶
func (m *PayResponse) XXX_Merge(src proto.Message)
func (*PayResponse) XXX_Size ¶
func (m *PayResponse) XXX_Size() int
func (*PayResponse) XXX_Unmarshal ¶
func (m *PayResponse) XXX_Unmarshal(b []byte) error
type Product ¶
type Product struct { // 产品ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 产品名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 描述 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Product) Descriptor ¶
func (*Product) GetDescription ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type ReturnResult ¶
type ReturnResult struct { Code ReturnResultCode `protobuf:"varint,1,opt,name=code,proto3,enum=pay.ReturnResultCode" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Describe string `protobuf:"bytes,3,opt,name=describe,proto3" json:"describe,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReturnResult) Descriptor ¶
func (*ReturnResult) Descriptor() ([]byte, []int)
func (*ReturnResult) GetCode ¶
func (m *ReturnResult) GetCode() ReturnResultCode
func (*ReturnResult) GetDescribe ¶
func (m *ReturnResult) GetDescribe() string
func (*ReturnResult) GetMessage ¶
func (m *ReturnResult) GetMessage() string
func (*ReturnResult) ProtoMessage ¶
func (*ReturnResult) ProtoMessage()
func (*ReturnResult) Reset ¶
func (m *ReturnResult) Reset()
func (*ReturnResult) String ¶
func (m *ReturnResult) String() string
func (*ReturnResult) Validate ¶
func (this *ReturnResult) Validate() error
func (*ReturnResult) XXX_DiscardUnknown ¶
func (m *ReturnResult) XXX_DiscardUnknown()
func (*ReturnResult) XXX_Marshal ¶
func (m *ReturnResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReturnResult) XXX_Merge ¶
func (m *ReturnResult) XXX_Merge(src proto.Message)
func (*ReturnResult) XXX_Size ¶
func (m *ReturnResult) XXX_Size() int
func (*ReturnResult) XXX_Unmarshal ¶
func (m *ReturnResult) XXX_Unmarshal(b []byte) error
type ReturnResultCode ¶
type ReturnResultCode int32
const ( ReturnResultCode_CODE_SUCCESS ReturnResultCode = 0 // Params error start-------------------------------- // Params validate error ReturnResultCode_CODE_PARAMS_ERROR ReturnResultCode = 100 // Check sign error ReturnResultCode_CODE_CHECK_SIGN_ERROR ReturnResultCode = 101 // -------------------------------- ReturnResultCode_CODE_SYSTEM_ERROR ReturnResultCode = 999 )
func (ReturnResultCode) EnumDescriptor ¶
func (ReturnResultCode) EnumDescriptor() ([]byte, []int)
func (ReturnResultCode) String ¶
func (x ReturnResultCode) String() string
type SettlementGatewayClient ¶
type SettlementGatewayClient interface { ProcessSuccess(ctx context.Context, in *SettlementRequest, opts ...grpc.CallOption) (*SettlementResponse, error) ProcessOrderSuccess(ctx context.Context, in *SettlementPayOrder, opts ...grpc.CallOption) (*SettlementResponse, error) NotifyOrder(ctx context.Context, in *SettlementPayOrder, opts ...grpc.CallOption) (*SettlementResponse, error) }
SettlementGatewayClient is the client API for SettlementGateway service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSettlementGatewayClient ¶
func NewSettlementGatewayClient(cc *grpc.ClientConn) SettlementGatewayClient
type SettlementGatewayServer ¶
type SettlementGatewayServer interface { ProcessSuccess(context.Context, *SettlementRequest) (*SettlementResponse, error) ProcessOrderSuccess(context.Context, *SettlementPayOrder) (*SettlementResponse, error) NotifyOrder(context.Context, *SettlementPayOrder) (*SettlementResponse, error) }
SettlementGatewayServer is the server API for SettlementGateway service.
type SettlementPayOrder ¶
type SettlementPayOrder struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Order *PayOrder `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SettlementPayOrder) Descriptor ¶
func (*SettlementPayOrder) Descriptor() ([]byte, []int)
func (*SettlementPayOrder) GetOrder ¶
func (m *SettlementPayOrder) GetOrder() *PayOrder
func (*SettlementPayOrder) GetVersion ¶
func (m *SettlementPayOrder) GetVersion() string
func (*SettlementPayOrder) ProtoMessage ¶
func (*SettlementPayOrder) ProtoMessage()
func (*SettlementPayOrder) Reset ¶
func (m *SettlementPayOrder) Reset()
func (*SettlementPayOrder) String ¶
func (m *SettlementPayOrder) String() string
func (*SettlementPayOrder) Validate ¶
func (this *SettlementPayOrder) Validate() error
func (*SettlementPayOrder) XXX_DiscardUnknown ¶
func (m *SettlementPayOrder) XXX_DiscardUnknown()
func (*SettlementPayOrder) XXX_Marshal ¶
func (m *SettlementPayOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SettlementPayOrder) XXX_Merge ¶
func (m *SettlementPayOrder) XXX_Merge(src proto.Message)
func (*SettlementPayOrder) XXX_Size ¶
func (m *SettlementPayOrder) XXX_Size() int
func (*SettlementPayOrder) XXX_Unmarshal ¶
func (m *SettlementPayOrder) XXX_Unmarshal(b []byte) error
type SettlementRequest ¶
type SettlementRequest struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` GatewayOrderId string `protobuf:"bytes,2,opt,name=gateway_order_id,json=gatewayOrderId,proto3" json:"gateway_order_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SettlementRequest) Descriptor ¶
func (*SettlementRequest) Descriptor() ([]byte, []int)
func (*SettlementRequest) GetGatewayOrderId ¶
func (m *SettlementRequest) GetGatewayOrderId() string
func (*SettlementRequest) GetVersion ¶
func (m *SettlementRequest) GetVersion() string
func (*SettlementRequest) ProtoMessage ¶
func (*SettlementRequest) ProtoMessage()
func (*SettlementRequest) Reset ¶
func (m *SettlementRequest) Reset()
func (*SettlementRequest) String ¶
func (m *SettlementRequest) String() string
func (*SettlementRequest) Validate ¶
func (this *SettlementRequest) Validate() error
func (*SettlementRequest) XXX_DiscardUnknown ¶
func (m *SettlementRequest) XXX_DiscardUnknown()
func (*SettlementRequest) XXX_Marshal ¶
func (m *SettlementRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SettlementRequest) XXX_Merge ¶
func (m *SettlementRequest) XXX_Merge(src proto.Message)
func (*SettlementRequest) XXX_Size ¶
func (m *SettlementRequest) XXX_Size() int
func (*SettlementRequest) XXX_Unmarshal ¶
func (m *SettlementRequest) XXX_Unmarshal(b []byte) error
type SettlementResponse ¶
type SettlementResponse struct { Result *ReturnResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SettlementResponse) Descriptor ¶
func (*SettlementResponse) Descriptor() ([]byte, []int)
func (*SettlementResponse) GetResult ¶
func (m *SettlementResponse) GetResult() *ReturnResult
func (*SettlementResponse) ProtoMessage ¶
func (*SettlementResponse) ProtoMessage()
func (*SettlementResponse) Reset ¶
func (m *SettlementResponse) Reset()
func (*SettlementResponse) String ¶
func (m *SettlementResponse) String() string
func (*SettlementResponse) Validate ¶
func (this *SettlementResponse) Validate() error
func (*SettlementResponse) XXX_DiscardUnknown ¶
func (m *SettlementResponse) XXX_DiscardUnknown()
func (*SettlementResponse) XXX_Marshal ¶
func (m *SettlementResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SettlementResponse) XXX_Merge ¶
func (m *SettlementResponse) XXX_Merge(src proto.Message)
func (*SettlementResponse) XXX_Size ¶
func (m *SettlementResponse) XXX_Size() int
func (*SettlementResponse) XXX_Unmarshal ¶
func (m *SettlementResponse) XXX_Unmarshal(b []byte) error
Source Files ¶
- common.pb.go
- common.validator.pb.go
- pay_channel.pb.go
- pay_channel.pb.gw.go
- pay_channel.validator.pb.go
- pay_db_service.pb.go
- pay_db_service.pb.gw.go
- pay_db_service.validator.pb.go
- pay_gateway.pb.go
- pay_gateway.pb.gw.go
- pay_gateway.validator.pb.go
- pay_settlement.pb.go
- pay_settlement.pb.gw.go
- pay_settlement.validator.pb.go
- refund_channel.pb.go
- refund_channel.validator.pb.go