Documentation ¶
Overview ¶
Package grpc provides an gRPC interface for the MpesaOverlay API.
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AccountBalanceReq
- func (*AccountBalanceReq) Descriptor() ([]byte, []int)deprecated
- func (x *AccountBalanceReq) GetCommandID() string
- func (x *AccountBalanceReq) GetIdentifierType() uint32
- func (x *AccountBalanceReq) GetInitiatorName() string
- func (x *AccountBalanceReq) GetInitiatorPassword() string
- func (x *AccountBalanceReq) GetPartyA() uint64
- func (x *AccountBalanceReq) GetQueueTimeOutURL() string
- func (x *AccountBalanceReq) GetRemarks() string
- func (x *AccountBalanceReq) GetResultURL() string
- func (x *AccountBalanceReq) GetSecurityCredential() string
- func (*AccountBalanceReq) ProtoMessage()
- func (x *AccountBalanceReq) ProtoReflect() protoreflect.Message
- func (x *AccountBalanceReq) Reset()
- func (x *AccountBalanceReq) String() string
- type AccountBalanceResp
- func (*AccountBalanceResp) Descriptor() ([]byte, []int)deprecated
- func (x *AccountBalanceResp) GetValidResp() *ValidResp
- func (*AccountBalanceResp) ProtoMessage()
- func (x *AccountBalanceResp) ProtoReflect() protoreflect.Message
- func (x *AccountBalanceResp) Reset()
- func (x *AccountBalanceResp) String() string
- type B2CPaymentReq
- func (*B2CPaymentReq) Descriptor() ([]byte, []int)deprecated
- func (x *B2CPaymentReq) GetAmount() uint64
- func (x *B2CPaymentReq) GetCommandID() string
- func (x *B2CPaymentReq) GetInitiatorName() string
- func (x *B2CPaymentReq) GetInitiatorPassword() string
- func (x *B2CPaymentReq) GetOccasion() string
- func (x *B2CPaymentReq) GetOriginatorConversationID() string
- func (x *B2CPaymentReq) GetPartyA() uint64
- func (x *B2CPaymentReq) GetPartyB() uint64
- func (x *B2CPaymentReq) GetQueueTimeOutURL() string
- func (x *B2CPaymentReq) GetRemarks() string
- func (x *B2CPaymentReq) GetResultURL() string
- func (x *B2CPaymentReq) GetSecurityCredential() string
- func (x *B2CPaymentReq) GetTransactionID() string
- func (*B2CPaymentReq) ProtoMessage()
- func (x *B2CPaymentReq) ProtoReflect() protoreflect.Message
- func (x *B2CPaymentReq) Reset()
- func (x *B2CPaymentReq) String() string
- type B2CPaymentResp
- type C2BRegisterURLReq
- func (*C2BRegisterURLReq) Descriptor() ([]byte, []int)deprecated
- func (x *C2BRegisterURLReq) GetConfirmationURL() string
- func (x *C2BRegisterURLReq) GetResponseType() string
- func (x *C2BRegisterURLReq) GetShortCode() uint64
- func (x *C2BRegisterURLReq) GetValidationURL() string
- func (*C2BRegisterURLReq) ProtoMessage()
- func (x *C2BRegisterURLReq) ProtoReflect() protoreflect.Message
- func (x *C2BRegisterURLReq) Reset()
- func (x *C2BRegisterURLReq) String() string
- type C2BRegisterURLResp
- func (*C2BRegisterURLResp) Descriptor() ([]byte, []int)deprecated
- func (x *C2BRegisterURLResp) GetValidResp() *ValidResp
- func (*C2BRegisterURLResp) ProtoMessage()
- func (x *C2BRegisterURLResp) ProtoReflect() protoreflect.Message
- func (x *C2BRegisterURLResp) Reset()
- func (x *C2BRegisterURLResp) String() string
- type C2BSimulateReq
- func (*C2BSimulateReq) Descriptor() ([]byte, []int)deprecated
- func (x *C2BSimulateReq) GetAmount() uint64
- func (x *C2BSimulateReq) GetBillRefNumber() string
- func (x *C2BSimulateReq) GetCommandID() string
- func (x *C2BSimulateReq) GetMsisdn() string
- func (x *C2BSimulateReq) GetShortCode() uint64
- func (*C2BSimulateReq) ProtoMessage()
- func (x *C2BSimulateReq) ProtoReflect() protoreflect.Message
- func (x *C2BSimulateReq) Reset()
- func (x *C2BSimulateReq) String() string
- type C2BSimulateResp
- type Empty
- type ExpressQueryReq
- func (*ExpressQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressQueryReq) GetBusinessShortCode() uint64
- func (x *ExpressQueryReq) GetCheckoutRequestID() string
- func (x *ExpressQueryReq) GetPassKey() string
- func (x *ExpressQueryReq) GetPassword() string
- func (x *ExpressQueryReq) GetTimestamp() string
- func (*ExpressQueryReq) ProtoMessage()
- func (x *ExpressQueryReq) ProtoReflect() protoreflect.Message
- func (x *ExpressQueryReq) Reset()
- func (x *ExpressQueryReq) String() string
- type ExpressQueryResp
- func (*ExpressQueryResp) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressQueryResp) GetCheckoutRequestID() string
- func (x *ExpressQueryResp) GetCustomerMessage() string
- func (x *ExpressQueryResp) GetMerchantRequestID() string
- func (x *ExpressQueryResp) GetResponseCode() string
- func (x *ExpressQueryResp) GetResponseDescription() string
- func (x *ExpressQueryResp) GetResultCode() string
- func (x *ExpressQueryResp) GetResultDesc() string
- func (*ExpressQueryResp) ProtoMessage()
- func (x *ExpressQueryResp) ProtoReflect() protoreflect.Message
- func (x *ExpressQueryResp) Reset()
- func (x *ExpressQueryResp) String() string
- type ExpressSimulateReq
- func (*ExpressSimulateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressSimulateReq) GetAccountReference() string
- func (x *ExpressSimulateReq) GetAmount() uint64
- func (x *ExpressSimulateReq) GetBusinessShortCode() uint64
- func (x *ExpressSimulateReq) GetCallBackURL() string
- func (x *ExpressSimulateReq) GetPartyA() uint64
- func (x *ExpressSimulateReq) GetPartyB() uint64
- func (x *ExpressSimulateReq) GetPassKey() string
- func (x *ExpressSimulateReq) GetPassword() string
- func (x *ExpressSimulateReq) GetPhoneNumber() uint64
- func (x *ExpressSimulateReq) GetTimestamp() string
- func (x *ExpressSimulateReq) GetTransactionDesc() string
- func (x *ExpressSimulateReq) GetTransactionType() string
- func (*ExpressSimulateReq) ProtoMessage()
- func (x *ExpressSimulateReq) ProtoReflect() protoreflect.Message
- func (x *ExpressSimulateReq) Reset()
- func (x *ExpressSimulateReq) String() string
- type ExpressSimulateResp
- func (*ExpressSimulateResp) Descriptor() ([]byte, []int)deprecated
- func (x *ExpressSimulateResp) GetCheckoutRequestID() string
- func (x *ExpressSimulateResp) GetCustomerMessage() string
- func (x *ExpressSimulateResp) GetMerchantRequestID() string
- func (x *ExpressSimulateResp) GetResponseCode() string
- func (x *ExpressSimulateResp) GetResponseDescription() string
- func (*ExpressSimulateResp) ProtoMessage()
- func (x *ExpressSimulateResp) ProtoReflect() protoreflect.Message
- func (x *ExpressSimulateResp) Reset()
- func (x *ExpressSimulateResp) String() string
- type GenerateQRReq
- func (*GenerateQRReq) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateQRReq) GetAmount() uint64
- func (x *GenerateQRReq) GetCPI() string
- func (x *GenerateQRReq) GetMerchantName() string
- func (x *GenerateQRReq) GetRefNo() string
- func (x *GenerateQRReq) GetSize() string
- func (x *GenerateQRReq) GetTrxCode() string
- func (*GenerateQRReq) ProtoMessage()
- func (x *GenerateQRReq) ProtoReflect() protoreflect.Message
- func (x *GenerateQRReq) Reset()
- func (x *GenerateQRReq) String() string
- type GenerateQRResp
- func (*GenerateQRResp) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateQRResp) GetQRCode() string
- func (x *GenerateQRResp) GetRequestID() string
- func (x *GenerateQRResp) GetResponseCode() string
- func (x *GenerateQRResp) GetResponseDescription() string
- func (*GenerateQRResp) ProtoMessage()
- func (x *GenerateQRResp) ProtoReflect() protoreflect.Message
- func (x *GenerateQRResp) Reset()
- func (x *GenerateQRResp) String() string
- type RemitTaxReq
- func (*RemitTaxReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemitTaxReq) GetAccountReference() string
- func (x *RemitTaxReq) GetAmount() uint64
- func (x *RemitTaxReq) GetCommandID() string
- func (x *RemitTaxReq) GetInitiatorName() string
- func (x *RemitTaxReq) GetInitiatorPassword() string
- func (x *RemitTaxReq) GetPartyA() uint64
- func (x *RemitTaxReq) GetPartyB() uint64
- func (x *RemitTaxReq) GetQueueTimeOutURL() string
- func (x *RemitTaxReq) GetRecieverIdentifierType() uint32
- func (x *RemitTaxReq) GetRemarks() string
- func (x *RemitTaxReq) GetResultURL() string
- func (x *RemitTaxReq) GetSecurityCredential() string
- func (x *RemitTaxReq) GetSenderIdentifierType() uint32
- func (*RemitTaxReq) ProtoMessage()
- func (x *RemitTaxReq) ProtoReflect() protoreflect.Message
- func (x *RemitTaxReq) Reset()
- func (x *RemitTaxReq) String() string
- type RemitTaxResp
- type RespError
- func (*RespError) Descriptor() ([]byte, []int)deprecated
- func (x *RespError) GetCode() string
- func (x *RespError) GetMessage() string
- func (x *RespError) GetRequestID() string
- func (*RespError) ProtoMessage()
- func (x *RespError) ProtoReflect() protoreflect.Message
- func (x *RespError) Reset()
- func (x *RespError) String() string
- type ReverseReq
- func (*ReverseReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReverseReq) GetAmount() uint64
- func (x *ReverseReq) GetCommandID() string
- func (x *ReverseReq) GetInitiatorName() string
- func (x *ReverseReq) GetInitiatorPassword() string
- func (x *ReverseReq) GetOccasion() string
- func (x *ReverseReq) GetQueueTimeOutURL() string
- func (x *ReverseReq) GetReceiverParty() uint64
- func (x *ReverseReq) GetRecieverIdentifierType() uint32
- func (x *ReverseReq) GetRemarks() string
- func (x *ReverseReq) GetResultURL() string
- func (x *ReverseReq) GetSecurityCredential() string
- func (x *ReverseReq) GetTransactionID() string
- func (*ReverseReq) ProtoMessage()
- func (x *ReverseReq) ProtoReflect() protoreflect.Message
- func (x *ReverseReq) Reset()
- func (x *ReverseReq) String() string
- type ReverseResp
- type Service
- type ServiceClient
- type ServiceServer
- type TokenResp
- type TransactionStatusReq
- func (*TransactionStatusReq) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionStatusReq) GetCommandID() string
- func (x *TransactionStatusReq) GetIdentifierType() uint32
- func (x *TransactionStatusReq) GetInitiatorName() string
- func (x *TransactionStatusReq) GetInitiatorPassword() string
- func (x *TransactionStatusReq) GetOccasion() string
- func (x *TransactionStatusReq) GetPartyA() uint64
- func (x *TransactionStatusReq) GetQueueTimeOutURL() string
- func (x *TransactionStatusReq) GetRemarks() string
- func (x *TransactionStatusReq) GetResultURL() string
- func (x *TransactionStatusReq) GetSecurityCredential() string
- func (x *TransactionStatusReq) GetTransactionID() string
- func (*TransactionStatusReq) ProtoMessage()
- func (x *TransactionStatusReq) ProtoReflect() protoreflect.Message
- func (x *TransactionStatusReq) Reset()
- func (x *TransactionStatusReq) String() string
- type TransactionStatusResp
- func (*TransactionStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *TransactionStatusResp) GetValidResp() *ValidResp
- func (*TransactionStatusResp) ProtoMessage()
- func (x *TransactionStatusResp) ProtoReflect() protoreflect.Message
- func (x *TransactionStatusResp) Reset()
- func (x *TransactionStatusResp) String() string
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AccountBalance(context.Context, *AccountBalanceReq) (*AccountBalanceResp, error)
- func (UnimplementedServiceServer) B2CPayment(context.Context, *B2CPaymentReq) (*B2CPaymentResp, error)
- func (UnimplementedServiceServer) C2BRegisterURL(context.Context, *C2BRegisterURLReq) (*C2BRegisterURLResp, error)
- func (UnimplementedServiceServer) C2BSimulate(context.Context, *C2BSimulateReq) (*C2BSimulateResp, error)
- func (UnimplementedServiceServer) ExpressQuery(context.Context, *ExpressQueryReq) (*ExpressQueryResp, error)
- func (UnimplementedServiceServer) ExpressSimulate(context.Context, *ExpressSimulateReq) (*ExpressSimulateResp, error)
- func (UnimplementedServiceServer) GenerateQR(context.Context, *GenerateQRReq) (*GenerateQRResp, error)
- func (UnimplementedServiceServer) RemitTax(context.Context, *RemitTaxReq) (*RemitTaxResp, error)
- func (UnimplementedServiceServer) Reverse(context.Context, *ReverseReq) (*ReverseResp, error)
- func (UnimplementedServiceServer) Token(context.Context, *Empty) (*TokenResp, error)
- func (UnimplementedServiceServer) TransactionStatus(context.Context, *TransactionStatusReq) (*TransactionStatusResp, error)
- type UnsafeServiceServer
- type ValidResp
- func (*ValidResp) Descriptor() ([]byte, []int)deprecated
- func (x *ValidResp) GetConversationID() string
- func (x *ValidResp) GetOriginatorConversationID() string
- func (x *ValidResp) GetResponseCode() string
- func (x *ValidResp) GetResponseDescription() string
- func (*ValidResp) ProtoMessage()
- func (x *ValidResp) ProtoReflect() protoreflect.Message
- func (x *ValidResp) Reset()
- func (x *ValidResp) String() string
Constants ¶
const ( Service_Token_FullMethodName = "/mpesaoverlay.grpc.Service/Token" Service_ExpressQuery_FullMethodName = "/mpesaoverlay.grpc.Service/ExpressQuery" Service_ExpressSimulate_FullMethodName = "/mpesaoverlay.grpc.Service/ExpressSimulate" Service_B2CPayment_FullMethodName = "/mpesaoverlay.grpc.Service/B2CPayment" Service_AccountBalance_FullMethodName = "/mpesaoverlay.grpc.Service/AccountBalance" Service_C2BRegisterURL_FullMethodName = "/mpesaoverlay.grpc.Service/C2BRegisterURL" Service_C2BSimulate_FullMethodName = "/mpesaoverlay.grpc.Service/C2BSimulate" Service_GenerateQR_FullMethodName = "/mpesaoverlay.grpc.Service/GenerateQR" Service_Reverse_FullMethodName = "/mpesaoverlay.grpc.Service/Reverse" Service_TransactionStatus_FullMethodName = "/mpesaoverlay.grpc.Service/TransactionStatus" Service_RemitTax_FullMethodName = "/mpesaoverlay.grpc.Service/RemitTax" )
Variables ¶
var File_grpc_overlay_proto protoreflect.FileDescriptor
var File_grpc_requests_proto protoreflect.FileDescriptor
var File_grpc_responses_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mpesaoverlay.grpc.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Token", Handler: _Service_Token_Handler, }, { MethodName: "ExpressQuery", Handler: _Service_ExpressQuery_Handler, }, { MethodName: "ExpressSimulate", Handler: _Service_ExpressSimulate_Handler, }, { MethodName: "B2CPayment", Handler: _Service_B2CPayment_Handler, }, { MethodName: "AccountBalance", Handler: _Service_AccountBalance_Handler, }, { MethodName: "C2BRegisterURL", Handler: _Service_C2BRegisterURL_Handler, }, { MethodName: "C2BSimulate", Handler: _Service_C2BSimulate_Handler, }, { MethodName: "GenerateQR", Handler: _Service_GenerateQR_Handler, }, { MethodName: "Reverse", Handler: _Service_Reverse_Handler, }, { MethodName: "TransactionStatus", Handler: _Service_TransactionStatus_Handler, }, { MethodName: "RemitTax", Handler: _Service_RemitTax_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc/overlay.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AccountBalanceReq ¶
type AccountBalanceReq struct { CommandID string `protobuf:"bytes,1,opt,name=commandID,proto3" json:"commandID,omitempty"` PartyA uint64 `protobuf:"varint,2,opt,name=partyA,proto3" json:"partyA,omitempty"` IdentifierType uint32 `protobuf:"varint,3,opt,name=identifierType,proto3" json:"identifierType,omitempty"` Remarks string `protobuf:"bytes,4,opt,name=remarks,proto3" json:"remarks,omitempty"` InitiatorName string `protobuf:"bytes,5,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"` InitiatorPassword string `protobuf:"bytes,6,opt,name=initiatorPassword,proto3" json:"initiatorPassword,omitempty"` SecurityCredential string `protobuf:"bytes,7,opt,name=securityCredential,proto3" json:"securityCredential,omitempty"` QueueTimeOutURL string `protobuf:"bytes,8,opt,name=queueTimeOutURL,proto3" json:"queueTimeOutURL,omitempty"` ResultURL string `protobuf:"bytes,9,opt,name=resultURL,proto3" json:"resultURL,omitempty"` // contains filtered or unexported fields }
func (*AccountBalanceReq) Descriptor
deprecated
func (*AccountBalanceReq) Descriptor() ([]byte, []int)
Deprecated: Use AccountBalanceReq.ProtoReflect.Descriptor instead.
func (*AccountBalanceReq) GetCommandID ¶
func (x *AccountBalanceReq) GetCommandID() string
func (*AccountBalanceReq) GetIdentifierType ¶
func (x *AccountBalanceReq) GetIdentifierType() uint32
func (*AccountBalanceReq) GetInitiatorName ¶
func (x *AccountBalanceReq) GetInitiatorName() string
func (*AccountBalanceReq) GetInitiatorPassword ¶
func (x *AccountBalanceReq) GetInitiatorPassword() string
func (*AccountBalanceReq) GetPartyA ¶
func (x *AccountBalanceReq) GetPartyA() uint64
func (*AccountBalanceReq) GetQueueTimeOutURL ¶
func (x *AccountBalanceReq) GetQueueTimeOutURL() string
func (*AccountBalanceReq) GetRemarks ¶
func (x *AccountBalanceReq) GetRemarks() string
func (*AccountBalanceReq) GetResultURL ¶
func (x *AccountBalanceReq) GetResultURL() string
func (*AccountBalanceReq) GetSecurityCredential ¶
func (x *AccountBalanceReq) GetSecurityCredential() string
func (*AccountBalanceReq) ProtoMessage ¶
func (*AccountBalanceReq) ProtoMessage()
func (*AccountBalanceReq) ProtoReflect ¶
func (x *AccountBalanceReq) ProtoReflect() protoreflect.Message
func (*AccountBalanceReq) Reset ¶
func (x *AccountBalanceReq) Reset()
func (*AccountBalanceReq) String ¶
func (x *AccountBalanceReq) String() string
type AccountBalanceResp ¶
type AccountBalanceResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*AccountBalanceResp) Descriptor
deprecated
func (*AccountBalanceResp) Descriptor() ([]byte, []int)
Deprecated: Use AccountBalanceResp.ProtoReflect.Descriptor instead.
func (*AccountBalanceResp) GetValidResp ¶
func (x *AccountBalanceResp) GetValidResp() *ValidResp
func (*AccountBalanceResp) ProtoMessage ¶
func (*AccountBalanceResp) ProtoMessage()
func (*AccountBalanceResp) ProtoReflect ¶
func (x *AccountBalanceResp) ProtoReflect() protoreflect.Message
func (*AccountBalanceResp) Reset ¶
func (x *AccountBalanceResp) Reset()
func (*AccountBalanceResp) String ¶
func (x *AccountBalanceResp) String() string
type B2CPaymentReq ¶
type B2CPaymentReq struct { OriginatorConversationID string `protobuf:"bytes,1,opt,name=originatorConversationID,proto3" json:"originatorConversationID,omitempty"` CommandID string `protobuf:"bytes,2,opt,name=commandID,proto3" json:"commandID,omitempty"` PartyA uint64 `protobuf:"varint,3,opt,name=partyA,proto3" json:"partyA,omitempty"` PartyB uint64 `protobuf:"varint,4,opt,name=partyB,proto3" json:"partyB,omitempty"` Remarks string `protobuf:"bytes,5,opt,name=remarks,proto3" json:"remarks,omitempty"` InitiatorName string `protobuf:"bytes,6,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"` InitiatorPassword string `protobuf:"bytes,7,opt,name=initiatorPassword,proto3" json:"initiatorPassword,omitempty"` SecurityCredential string `protobuf:"bytes,8,opt,name=securityCredential,proto3" json:"securityCredential,omitempty"` QueueTimeOutURL string `protobuf:"bytes,9,opt,name=queueTimeOutURL,proto3" json:"queueTimeOutURL,omitempty"` ResultURL string `protobuf:"bytes,10,opt,name=resultURL,proto3" json:"resultURL,omitempty"` TransactionID string `protobuf:"bytes,11,opt,name=transactionID,proto3" json:"transactionID,omitempty"` Occasion string `protobuf:"bytes,12,opt,name=occasion,proto3" json:"occasion,omitempty"` Amount uint64 `protobuf:"varint,13,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*B2CPaymentReq) Descriptor
deprecated
func (*B2CPaymentReq) Descriptor() ([]byte, []int)
Deprecated: Use B2CPaymentReq.ProtoReflect.Descriptor instead.
func (*B2CPaymentReq) GetAmount ¶
func (x *B2CPaymentReq) GetAmount() uint64
func (*B2CPaymentReq) GetCommandID ¶
func (x *B2CPaymentReq) GetCommandID() string
func (*B2CPaymentReq) GetInitiatorName ¶
func (x *B2CPaymentReq) GetInitiatorName() string
func (*B2CPaymentReq) GetInitiatorPassword ¶
func (x *B2CPaymentReq) GetInitiatorPassword() string
func (*B2CPaymentReq) GetOccasion ¶
func (x *B2CPaymentReq) GetOccasion() string
func (*B2CPaymentReq) GetOriginatorConversationID ¶
func (x *B2CPaymentReq) GetOriginatorConversationID() string
func (*B2CPaymentReq) GetPartyA ¶
func (x *B2CPaymentReq) GetPartyA() uint64
func (*B2CPaymentReq) GetPartyB ¶
func (x *B2CPaymentReq) GetPartyB() uint64
func (*B2CPaymentReq) GetQueueTimeOutURL ¶
func (x *B2CPaymentReq) GetQueueTimeOutURL() string
func (*B2CPaymentReq) GetRemarks ¶
func (x *B2CPaymentReq) GetRemarks() string
func (*B2CPaymentReq) GetResultURL ¶
func (x *B2CPaymentReq) GetResultURL() string
func (*B2CPaymentReq) GetSecurityCredential ¶
func (x *B2CPaymentReq) GetSecurityCredential() string
func (*B2CPaymentReq) GetTransactionID ¶
func (x *B2CPaymentReq) GetTransactionID() string
func (*B2CPaymentReq) ProtoMessage ¶
func (*B2CPaymentReq) ProtoMessage()
func (*B2CPaymentReq) ProtoReflect ¶
func (x *B2CPaymentReq) ProtoReflect() protoreflect.Message
func (*B2CPaymentReq) Reset ¶
func (x *B2CPaymentReq) Reset()
func (*B2CPaymentReq) String ¶
func (x *B2CPaymentReq) String() string
type B2CPaymentResp ¶
type B2CPaymentResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*B2CPaymentResp) Descriptor
deprecated
func (*B2CPaymentResp) Descriptor() ([]byte, []int)
Deprecated: Use B2CPaymentResp.ProtoReflect.Descriptor instead.
func (*B2CPaymentResp) GetValidResp ¶
func (x *B2CPaymentResp) GetValidResp() *ValidResp
func (*B2CPaymentResp) ProtoMessage ¶
func (*B2CPaymentResp) ProtoMessage()
func (*B2CPaymentResp) ProtoReflect ¶
func (x *B2CPaymentResp) ProtoReflect() protoreflect.Message
func (*B2CPaymentResp) Reset ¶
func (x *B2CPaymentResp) Reset()
func (*B2CPaymentResp) String ¶
func (x *B2CPaymentResp) String() string
type C2BRegisterURLReq ¶
type C2BRegisterURLReq struct { ValidationURL string `protobuf:"bytes,1,opt,name=validationURL,proto3" json:"validationURL,omitempty"` ConfirmationURL string `protobuf:"bytes,2,opt,name=confirmationURL,proto3" json:"confirmationURL,omitempty"` ShortCode uint64 `protobuf:"varint,3,opt,name=shortCode,proto3" json:"shortCode,omitempty"` ResponseType string `protobuf:"bytes,4,opt,name=responseType,proto3" json:"responseType,omitempty"` // contains filtered or unexported fields }
func (*C2BRegisterURLReq) Descriptor
deprecated
func (*C2BRegisterURLReq) Descriptor() ([]byte, []int)
Deprecated: Use C2BRegisterURLReq.ProtoReflect.Descriptor instead.
func (*C2BRegisterURLReq) GetConfirmationURL ¶
func (x *C2BRegisterURLReq) GetConfirmationURL() string
func (*C2BRegisterURLReq) GetResponseType ¶
func (x *C2BRegisterURLReq) GetResponseType() string
func (*C2BRegisterURLReq) GetShortCode ¶
func (x *C2BRegisterURLReq) GetShortCode() uint64
func (*C2BRegisterURLReq) GetValidationURL ¶
func (x *C2BRegisterURLReq) GetValidationURL() string
func (*C2BRegisterURLReq) ProtoMessage ¶
func (*C2BRegisterURLReq) ProtoMessage()
func (*C2BRegisterURLReq) ProtoReflect ¶
func (x *C2BRegisterURLReq) ProtoReflect() protoreflect.Message
func (*C2BRegisterURLReq) Reset ¶
func (x *C2BRegisterURLReq) Reset()
func (*C2BRegisterURLReq) String ¶
func (x *C2BRegisterURLReq) String() string
type C2BRegisterURLResp ¶
type C2BRegisterURLResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*C2BRegisterURLResp) Descriptor
deprecated
func (*C2BRegisterURLResp) Descriptor() ([]byte, []int)
Deprecated: Use C2BRegisterURLResp.ProtoReflect.Descriptor instead.
func (*C2BRegisterURLResp) GetValidResp ¶
func (x *C2BRegisterURLResp) GetValidResp() *ValidResp
func (*C2BRegisterURLResp) ProtoMessage ¶
func (*C2BRegisterURLResp) ProtoMessage()
func (*C2BRegisterURLResp) ProtoReflect ¶
func (x *C2BRegisterURLResp) ProtoReflect() protoreflect.Message
func (*C2BRegisterURLResp) Reset ¶
func (x *C2BRegisterURLResp) Reset()
func (*C2BRegisterURLResp) String ¶
func (x *C2BRegisterURLResp) String() string
type C2BSimulateReq ¶
type C2BSimulateReq struct { CommandID string `protobuf:"bytes,1,opt,name=commandID,proto3" json:"commandID,omitempty"` Msisdn string `protobuf:"bytes,2,opt,name=msisdn,proto3" json:"msisdn,omitempty"` BillRefNumber string `protobuf:"bytes,3,opt,name=billRefNumber,proto3" json:"billRefNumber,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` ShortCode uint64 `protobuf:"varint,5,opt,name=shortCode,proto3" json:"shortCode,omitempty"` // contains filtered or unexported fields }
func (*C2BSimulateReq) Descriptor
deprecated
func (*C2BSimulateReq) Descriptor() ([]byte, []int)
Deprecated: Use C2BSimulateReq.ProtoReflect.Descriptor instead.
func (*C2BSimulateReq) GetAmount ¶
func (x *C2BSimulateReq) GetAmount() uint64
func (*C2BSimulateReq) GetBillRefNumber ¶
func (x *C2BSimulateReq) GetBillRefNumber() string
func (*C2BSimulateReq) GetCommandID ¶
func (x *C2BSimulateReq) GetCommandID() string
func (*C2BSimulateReq) GetMsisdn ¶
func (x *C2BSimulateReq) GetMsisdn() string
func (*C2BSimulateReq) GetShortCode ¶
func (x *C2BSimulateReq) GetShortCode() uint64
func (*C2BSimulateReq) ProtoMessage ¶
func (*C2BSimulateReq) ProtoMessage()
func (*C2BSimulateReq) ProtoReflect ¶
func (x *C2BSimulateReq) ProtoReflect() protoreflect.Message
func (*C2BSimulateReq) Reset ¶
func (x *C2BSimulateReq) Reset()
func (*C2BSimulateReq) String ¶
func (x *C2BSimulateReq) String() string
type C2BSimulateResp ¶
type C2BSimulateResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*C2BSimulateResp) Descriptor
deprecated
func (*C2BSimulateResp) Descriptor() ([]byte, []int)
Deprecated: Use C2BSimulateResp.ProtoReflect.Descriptor instead.
func (*C2BSimulateResp) GetValidResp ¶
func (x *C2BSimulateResp) GetValidResp() *ValidResp
func (*C2BSimulateResp) ProtoMessage ¶
func (*C2BSimulateResp) ProtoMessage()
func (*C2BSimulateResp) ProtoReflect ¶
func (x *C2BSimulateResp) ProtoReflect() protoreflect.Message
func (*C2BSimulateResp) Reset ¶
func (x *C2BSimulateResp) Reset()
func (*C2BSimulateResp) String ¶
func (x *C2BSimulateResp) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ExpressQueryReq ¶
type ExpressQueryReq struct { PassKey string `protobuf:"bytes,1,opt,name=passKey,proto3" json:"passKey,omitempty"` BusinessShortCode uint64 `protobuf:"varint,2,opt,name=businessShortCode,proto3" json:"businessShortCode,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` CheckoutRequestID string `protobuf:"bytes,5,opt,name=checkoutRequestID,proto3" json:"checkoutRequestID,omitempty"` // contains filtered or unexported fields }
func (*ExpressQueryReq) Descriptor
deprecated
func (*ExpressQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use ExpressQueryReq.ProtoReflect.Descriptor instead.
func (*ExpressQueryReq) GetBusinessShortCode ¶
func (x *ExpressQueryReq) GetBusinessShortCode() uint64
func (*ExpressQueryReq) GetCheckoutRequestID ¶
func (x *ExpressQueryReq) GetCheckoutRequestID() string
func (*ExpressQueryReq) GetPassKey ¶
func (x *ExpressQueryReq) GetPassKey() string
func (*ExpressQueryReq) GetPassword ¶
func (x *ExpressQueryReq) GetPassword() string
func (*ExpressQueryReq) GetTimestamp ¶
func (x *ExpressQueryReq) GetTimestamp() string
func (*ExpressQueryReq) ProtoMessage ¶
func (*ExpressQueryReq) ProtoMessage()
func (*ExpressQueryReq) ProtoReflect ¶
func (x *ExpressQueryReq) ProtoReflect() protoreflect.Message
func (*ExpressQueryReq) Reset ¶
func (x *ExpressQueryReq) Reset()
func (*ExpressQueryReq) String ¶
func (x *ExpressQueryReq) String() string
type ExpressQueryResp ¶
type ExpressQueryResp struct { ResponseDescription string `protobuf:"bytes,1,opt,name=responseDescription,proto3" json:"responseDescription,omitempty"` ResponseCode string `protobuf:"bytes,2,opt,name=responseCode,proto3" json:"responseCode,omitempty"` MerchantRequestID string `protobuf:"bytes,3,opt,name=merchantRequestID,proto3" json:"merchantRequestID,omitempty"` CheckoutRequestID string `protobuf:"bytes,4,opt,name=checkoutRequestID,proto3" json:"checkoutRequestID,omitempty"` CustomerMessage string `protobuf:"bytes,5,opt,name=customerMessage,proto3" json:"customerMessage,omitempty"` ResultCode string `protobuf:"bytes,6,opt,name=resultCode,proto3" json:"resultCode,omitempty"` ResultDesc string `protobuf:"bytes,7,opt,name=resultDesc,proto3" json:"resultDesc,omitempty"` // contains filtered or unexported fields }
func (*ExpressQueryResp) Descriptor
deprecated
func (*ExpressQueryResp) Descriptor() ([]byte, []int)
Deprecated: Use ExpressQueryResp.ProtoReflect.Descriptor instead.
func (*ExpressQueryResp) GetCheckoutRequestID ¶
func (x *ExpressQueryResp) GetCheckoutRequestID() string
func (*ExpressQueryResp) GetCustomerMessage ¶
func (x *ExpressQueryResp) GetCustomerMessage() string
func (*ExpressQueryResp) GetMerchantRequestID ¶
func (x *ExpressQueryResp) GetMerchantRequestID() string
func (*ExpressQueryResp) GetResponseCode ¶
func (x *ExpressQueryResp) GetResponseCode() string
func (*ExpressQueryResp) GetResponseDescription ¶
func (x *ExpressQueryResp) GetResponseDescription() string
func (*ExpressQueryResp) GetResultCode ¶
func (x *ExpressQueryResp) GetResultCode() string
func (*ExpressQueryResp) GetResultDesc ¶
func (x *ExpressQueryResp) GetResultDesc() string
func (*ExpressQueryResp) ProtoMessage ¶
func (*ExpressQueryResp) ProtoMessage()
func (*ExpressQueryResp) ProtoReflect ¶
func (x *ExpressQueryResp) ProtoReflect() protoreflect.Message
func (*ExpressQueryResp) Reset ¶
func (x *ExpressQueryResp) Reset()
func (*ExpressQueryResp) String ¶
func (x *ExpressQueryResp) String() string
type ExpressSimulateReq ¶
type ExpressSimulateReq struct { PassKey string `protobuf:"bytes,1,opt,name=passKey,proto3" json:"passKey,omitempty"` BusinessShortCode uint64 `protobuf:"varint,2,opt,name=businessShortCode,proto3" json:"businessShortCode,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TransactionType string `protobuf:"bytes,5,opt,name=transactionType,proto3" json:"transactionType,omitempty"` PhoneNumber uint64 `protobuf:"varint,6,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Amount uint64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"` PartyA uint64 `protobuf:"varint,8,opt,name=partyA,proto3" json:"partyA,omitempty"` PartyB uint64 `protobuf:"varint,9,opt,name=partyB,proto3" json:"partyB,omitempty"` CallBackURL string `protobuf:"bytes,10,opt,name=callBackURL,proto3" json:"callBackURL,omitempty"` AccountReference string `protobuf:"bytes,11,opt,name=accountReference,proto3" json:"accountReference,omitempty"` TransactionDesc string `protobuf:"bytes,12,opt,name=transactionDesc,proto3" json:"transactionDesc,omitempty"` // contains filtered or unexported fields }
func (*ExpressSimulateReq) Descriptor
deprecated
func (*ExpressSimulateReq) Descriptor() ([]byte, []int)
Deprecated: Use ExpressSimulateReq.ProtoReflect.Descriptor instead.
func (*ExpressSimulateReq) GetAccountReference ¶
func (x *ExpressSimulateReq) GetAccountReference() string
func (*ExpressSimulateReq) GetAmount ¶
func (x *ExpressSimulateReq) GetAmount() uint64
func (*ExpressSimulateReq) GetBusinessShortCode ¶
func (x *ExpressSimulateReq) GetBusinessShortCode() uint64
func (*ExpressSimulateReq) GetCallBackURL ¶
func (x *ExpressSimulateReq) GetCallBackURL() string
func (*ExpressSimulateReq) GetPartyA ¶
func (x *ExpressSimulateReq) GetPartyA() uint64
func (*ExpressSimulateReq) GetPartyB ¶
func (x *ExpressSimulateReq) GetPartyB() uint64
func (*ExpressSimulateReq) GetPassKey ¶
func (x *ExpressSimulateReq) GetPassKey() string
func (*ExpressSimulateReq) GetPassword ¶
func (x *ExpressSimulateReq) GetPassword() string
func (*ExpressSimulateReq) GetPhoneNumber ¶
func (x *ExpressSimulateReq) GetPhoneNumber() uint64
func (*ExpressSimulateReq) GetTimestamp ¶
func (x *ExpressSimulateReq) GetTimestamp() string
func (*ExpressSimulateReq) GetTransactionDesc ¶
func (x *ExpressSimulateReq) GetTransactionDesc() string
func (*ExpressSimulateReq) GetTransactionType ¶
func (x *ExpressSimulateReq) GetTransactionType() string
func (*ExpressSimulateReq) ProtoMessage ¶
func (*ExpressSimulateReq) ProtoMessage()
func (*ExpressSimulateReq) ProtoReflect ¶
func (x *ExpressSimulateReq) ProtoReflect() protoreflect.Message
func (*ExpressSimulateReq) Reset ¶
func (x *ExpressSimulateReq) Reset()
func (*ExpressSimulateReq) String ¶
func (x *ExpressSimulateReq) String() string
type ExpressSimulateResp ¶
type ExpressSimulateResp struct { ResponseDescription string `protobuf:"bytes,1,opt,name=responseDescription,proto3" json:"responseDescription,omitempty"` ResponseCode string `protobuf:"bytes,2,opt,name=responseCode,proto3" json:"responseCode,omitempty"` MerchantRequestID string `protobuf:"bytes,3,opt,name=merchantRequestID,proto3" json:"merchantRequestID,omitempty"` CheckoutRequestID string `protobuf:"bytes,4,opt,name=checkoutRequestID,proto3" json:"checkoutRequestID,omitempty"` CustomerMessage string `protobuf:"bytes,5,opt,name=customerMessage,proto3" json:"customerMessage,omitempty"` // contains filtered or unexported fields }
func (*ExpressSimulateResp) Descriptor
deprecated
func (*ExpressSimulateResp) Descriptor() ([]byte, []int)
Deprecated: Use ExpressSimulateResp.ProtoReflect.Descriptor instead.
func (*ExpressSimulateResp) GetCheckoutRequestID ¶
func (x *ExpressSimulateResp) GetCheckoutRequestID() string
func (*ExpressSimulateResp) GetCustomerMessage ¶
func (x *ExpressSimulateResp) GetCustomerMessage() string
func (*ExpressSimulateResp) GetMerchantRequestID ¶
func (x *ExpressSimulateResp) GetMerchantRequestID() string
func (*ExpressSimulateResp) GetResponseCode ¶
func (x *ExpressSimulateResp) GetResponseCode() string
func (*ExpressSimulateResp) GetResponseDescription ¶
func (x *ExpressSimulateResp) GetResponseDescription() string
func (*ExpressSimulateResp) ProtoMessage ¶
func (*ExpressSimulateResp) ProtoMessage()
func (*ExpressSimulateResp) ProtoReflect ¶
func (x *ExpressSimulateResp) ProtoReflect() protoreflect.Message
func (*ExpressSimulateResp) Reset ¶
func (x *ExpressSimulateResp) Reset()
func (*ExpressSimulateResp) String ¶
func (x *ExpressSimulateResp) String() string
type GenerateQRReq ¶
type GenerateQRReq struct { MerchantName string `protobuf:"bytes,1,opt,name=merchantName,proto3" json:"merchantName,omitempty"` RefNo string `protobuf:"bytes,2,opt,name=refNo,proto3" json:"refNo,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` TrxCode string `protobuf:"bytes,4,opt,name=trxCode,proto3" json:"trxCode,omitempty"` CPI string `protobuf:"bytes,5,opt,name=cPI,proto3" json:"cPI,omitempty"` Size string `protobuf:"bytes,6,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*GenerateQRReq) Descriptor
deprecated
func (*GenerateQRReq) Descriptor() ([]byte, []int)
Deprecated: Use GenerateQRReq.ProtoReflect.Descriptor instead.
func (*GenerateQRReq) GetAmount ¶
func (x *GenerateQRReq) GetAmount() uint64
func (*GenerateQRReq) GetCPI ¶
func (x *GenerateQRReq) GetCPI() string
func (*GenerateQRReq) GetMerchantName ¶
func (x *GenerateQRReq) GetMerchantName() string
func (*GenerateQRReq) GetRefNo ¶
func (x *GenerateQRReq) GetRefNo() string
func (*GenerateQRReq) GetSize ¶
func (x *GenerateQRReq) GetSize() string
func (*GenerateQRReq) GetTrxCode ¶
func (x *GenerateQRReq) GetTrxCode() string
func (*GenerateQRReq) ProtoMessage ¶
func (*GenerateQRReq) ProtoMessage()
func (*GenerateQRReq) ProtoReflect ¶
func (x *GenerateQRReq) ProtoReflect() protoreflect.Message
func (*GenerateQRReq) Reset ¶
func (x *GenerateQRReq) Reset()
func (*GenerateQRReq) String ¶
func (x *GenerateQRReq) String() string
type GenerateQRResp ¶
type GenerateQRResp struct { ResponseDescription string `protobuf:"bytes,1,opt,name=responseDescription,proto3" json:"responseDescription,omitempty"` ResponseCode string `protobuf:"bytes,2,opt,name=responseCode,proto3" json:"responseCode,omitempty"` RequestID string `protobuf:"bytes,3,opt,name=requestID,proto3" json:"requestID,omitempty"` QRCode string `protobuf:"bytes,4,opt,name=qRCode,proto3" json:"qRCode,omitempty"` // contains filtered or unexported fields }
func (*GenerateQRResp) Descriptor
deprecated
func (*GenerateQRResp) Descriptor() ([]byte, []int)
Deprecated: Use GenerateQRResp.ProtoReflect.Descriptor instead.
func (*GenerateQRResp) GetQRCode ¶
func (x *GenerateQRResp) GetQRCode() string
func (*GenerateQRResp) GetRequestID ¶
func (x *GenerateQRResp) GetRequestID() string
func (*GenerateQRResp) GetResponseCode ¶
func (x *GenerateQRResp) GetResponseCode() string
func (*GenerateQRResp) GetResponseDescription ¶
func (x *GenerateQRResp) GetResponseDescription() string
func (*GenerateQRResp) ProtoMessage ¶
func (*GenerateQRResp) ProtoMessage()
func (*GenerateQRResp) ProtoReflect ¶
func (x *GenerateQRResp) ProtoReflect() protoreflect.Message
func (*GenerateQRResp) Reset ¶
func (x *GenerateQRResp) Reset()
func (*GenerateQRResp) String ¶
func (x *GenerateQRResp) String() string
type RemitTaxReq ¶
type RemitTaxReq struct { InitiatorName string `protobuf:"bytes,1,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"` InitiatorPassword string `protobuf:"bytes,2,opt,name=initiatorPassword,proto3" json:"initiatorPassword,omitempty"` SecurityCredential string `protobuf:"bytes,3,opt,name=securityCredential,proto3" json:"securityCredential,omitempty"` CommandID string `protobuf:"bytes,4,opt,name=commandID,proto3" json:"commandID,omitempty"` SenderIdentifierType uint32 `protobuf:"varint,5,opt,name=senderIdentifierType,proto3" json:"senderIdentifierType,omitempty"` RecieverIdentifierType uint32 `protobuf:"varint,6,opt,name=recieverIdentifierType,proto3" json:"recieverIdentifierType,omitempty"` Amount uint64 `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"` PartyA uint64 `protobuf:"varint,8,opt,name=partyA,proto3" json:"partyA,omitempty"` PartyB uint64 `protobuf:"varint,9,opt,name=partyB,proto3" json:"partyB,omitempty"` AccountReference string `protobuf:"bytes,10,opt,name=accountReference,proto3" json:"accountReference,omitempty"` QueueTimeOutURL string `protobuf:"bytes,11,opt,name=queueTimeOutURL,proto3" json:"queueTimeOutURL,omitempty"` ResultURL string `protobuf:"bytes,12,opt,name=resultURL,proto3" json:"resultURL,omitempty"` Remarks string `protobuf:"bytes,13,opt,name=remarks,proto3" json:"remarks,omitempty"` // contains filtered or unexported fields }
func (*RemitTaxReq) Descriptor
deprecated
func (*RemitTaxReq) Descriptor() ([]byte, []int)
Deprecated: Use RemitTaxReq.ProtoReflect.Descriptor instead.
func (*RemitTaxReq) GetAccountReference ¶
func (x *RemitTaxReq) GetAccountReference() string
func (*RemitTaxReq) GetAmount ¶
func (x *RemitTaxReq) GetAmount() uint64
func (*RemitTaxReq) GetCommandID ¶
func (x *RemitTaxReq) GetCommandID() string
func (*RemitTaxReq) GetInitiatorName ¶
func (x *RemitTaxReq) GetInitiatorName() string
func (*RemitTaxReq) GetInitiatorPassword ¶
func (x *RemitTaxReq) GetInitiatorPassword() string
func (*RemitTaxReq) GetPartyA ¶
func (x *RemitTaxReq) GetPartyA() uint64
func (*RemitTaxReq) GetPartyB ¶
func (x *RemitTaxReq) GetPartyB() uint64
func (*RemitTaxReq) GetQueueTimeOutURL ¶
func (x *RemitTaxReq) GetQueueTimeOutURL() string
func (*RemitTaxReq) GetRecieverIdentifierType ¶
func (x *RemitTaxReq) GetRecieverIdentifierType() uint32
func (*RemitTaxReq) GetRemarks ¶
func (x *RemitTaxReq) GetRemarks() string
func (*RemitTaxReq) GetResultURL ¶
func (x *RemitTaxReq) GetResultURL() string
func (*RemitTaxReq) GetSecurityCredential ¶
func (x *RemitTaxReq) GetSecurityCredential() string
func (*RemitTaxReq) GetSenderIdentifierType ¶
func (x *RemitTaxReq) GetSenderIdentifierType() uint32
func (*RemitTaxReq) ProtoMessage ¶
func (*RemitTaxReq) ProtoMessage()
func (*RemitTaxReq) ProtoReflect ¶
func (x *RemitTaxReq) ProtoReflect() protoreflect.Message
func (*RemitTaxReq) Reset ¶
func (x *RemitTaxReq) Reset()
func (*RemitTaxReq) String ¶
func (x *RemitTaxReq) String() string
type RemitTaxResp ¶
type RemitTaxResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*RemitTaxResp) Descriptor
deprecated
func (*RemitTaxResp) Descriptor() ([]byte, []int)
Deprecated: Use RemitTaxResp.ProtoReflect.Descriptor instead.
func (*RemitTaxResp) GetValidResp ¶
func (x *RemitTaxResp) GetValidResp() *ValidResp
func (*RemitTaxResp) ProtoMessage ¶
func (*RemitTaxResp) ProtoMessage()
func (*RemitTaxResp) ProtoReflect ¶
func (x *RemitTaxResp) ProtoReflect() protoreflect.Message
func (*RemitTaxResp) Reset ¶
func (x *RemitTaxResp) Reset()
func (*RemitTaxResp) String ¶
func (x *RemitTaxResp) String() string
type RespError ¶
type RespError struct { RequestID string `protobuf:"bytes,1,opt,name=requestID,proto3" json:"requestID,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RespError) Descriptor
deprecated
func (*RespError) GetMessage ¶
func (*RespError) GetRequestID ¶
func (*RespError) ProtoMessage ¶
func (*RespError) ProtoMessage()
func (*RespError) ProtoReflect ¶
func (x *RespError) ProtoReflect() protoreflect.Message
type ReverseReq ¶
type ReverseReq struct { CommandID string `protobuf:"bytes,1,opt,name=commandID,proto3" json:"commandID,omitempty"` ReceiverParty uint64 `protobuf:"varint,2,opt,name=receiverParty,proto3" json:"receiverParty,omitempty"` RecieverIdentifierType uint32 `protobuf:"varint,3,opt,name=recieverIdentifierType,proto3" json:"recieverIdentifierType,omitempty"` Remarks string `protobuf:"bytes,4,opt,name=remarks,proto3" json:"remarks,omitempty"` InitiatorName string `protobuf:"bytes,5,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"` InitiatorPassword string `protobuf:"bytes,6,opt,name=initiatorPassword,proto3" json:"initiatorPassword,omitempty"` SecurityCredential string `protobuf:"bytes,7,opt,name=securityCredential,proto3" json:"securityCredential,omitempty"` QueueTimeOutURL string `protobuf:"bytes,8,opt,name=queueTimeOutURL,proto3" json:"queueTimeOutURL,omitempty"` ResultURL string `protobuf:"bytes,9,opt,name=resultURL,proto3" json:"resultURL,omitempty"` Occasion string `protobuf:"bytes,10,opt,name=occasion,proto3" json:"occasion,omitempty"` Amount uint64 `protobuf:"varint,11,opt,name=amount,proto3" json:"amount,omitempty"` TransactionID string `protobuf:"bytes,12,opt,name=transactionID,proto3" json:"transactionID,omitempty"` // contains filtered or unexported fields }
func (*ReverseReq) Descriptor
deprecated
func (*ReverseReq) Descriptor() ([]byte, []int)
Deprecated: Use ReverseReq.ProtoReflect.Descriptor instead.
func (*ReverseReq) GetAmount ¶
func (x *ReverseReq) GetAmount() uint64
func (*ReverseReq) GetCommandID ¶
func (x *ReverseReq) GetCommandID() string
func (*ReverseReq) GetInitiatorName ¶
func (x *ReverseReq) GetInitiatorName() string
func (*ReverseReq) GetInitiatorPassword ¶
func (x *ReverseReq) GetInitiatorPassword() string
func (*ReverseReq) GetOccasion ¶
func (x *ReverseReq) GetOccasion() string
func (*ReverseReq) GetQueueTimeOutURL ¶
func (x *ReverseReq) GetQueueTimeOutURL() string
func (*ReverseReq) GetReceiverParty ¶
func (x *ReverseReq) GetReceiverParty() uint64
func (*ReverseReq) GetRecieverIdentifierType ¶
func (x *ReverseReq) GetRecieverIdentifierType() uint32
func (*ReverseReq) GetRemarks ¶
func (x *ReverseReq) GetRemarks() string
func (*ReverseReq) GetResultURL ¶
func (x *ReverseReq) GetResultURL() string
func (*ReverseReq) GetSecurityCredential ¶
func (x *ReverseReq) GetSecurityCredential() string
func (*ReverseReq) GetTransactionID ¶
func (x *ReverseReq) GetTransactionID() string
func (*ReverseReq) ProtoMessage ¶
func (*ReverseReq) ProtoMessage()
func (*ReverseReq) ProtoReflect ¶
func (x *ReverseReq) ProtoReflect() protoreflect.Message
func (*ReverseReq) Reset ¶
func (x *ReverseReq) Reset()
func (*ReverseReq) String ¶
func (x *ReverseReq) String() string
type ReverseResp ¶
type ReverseResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*ReverseResp) Descriptor
deprecated
func (*ReverseResp) Descriptor() ([]byte, []int)
Deprecated: Use ReverseResp.ProtoReflect.Descriptor instead.
func (*ReverseResp) GetValidResp ¶
func (x *ReverseResp) GetValidResp() *ValidResp
func (*ReverseResp) ProtoMessage ¶
func (*ReverseResp) ProtoMessage()
func (*ReverseResp) ProtoReflect ¶
func (x *ReverseResp) ProtoReflect() protoreflect.Message
func (*ReverseResp) Reset ¶
func (x *ReverseResp) Reset()
func (*ReverseResp) String ¶
func (x *ReverseResp) String() string
type Service ¶
type Service interface { Token() (mpesa.TokenResp, error) ExpressQuery(eqReq mpesa.ExpressQueryReq) (mpesa.ExpressQueryResp, error) ExpressSimulate(eReq mpesa.ExpressSimulateReq) (mpesa.ExpressSimulateResp, error) B2CPayment(b2cReq mpesa.B2CPaymentReq) (mpesa.B2CPaymentResp, error) AccountBalance(abReq mpesa.AccountBalanceReq) (mpesa.AccountBalanceResp, error) C2BRegisterURL(c2bReq mpesa.C2BRegisterURLReq) (mpesa.C2BRegisterURLResp, error) C2BSimulate(c2bReq mpesa.C2BSimulateReq) (mpesa.C2BSimulateResp, error) GenerateQR(qReq mpesa.GenerateQRReq) (mpesa.GenerateQRResp, error) Reverse(rReq mpesa.ReverseReq) (mpesa.ReverseResp, error) TransactionStatus(tReq mpesa.TransactionStatusReq) (mpesa.TransactionStatusResp, error) RemitTax(rReq mpesa.RemitTaxReq) (mpesa.RemitTaxResp, error) }
Service is the interface that provides methods for the MpesaOverlay SDK.
type ServiceClient ¶
type ServiceClient interface { Token(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TokenResp, error) ExpressQuery(ctx context.Context, in *ExpressQueryReq, opts ...grpc.CallOption) (*ExpressQueryResp, error) ExpressSimulate(ctx context.Context, in *ExpressSimulateReq, opts ...grpc.CallOption) (*ExpressSimulateResp, error) B2CPayment(ctx context.Context, in *B2CPaymentReq, opts ...grpc.CallOption) (*B2CPaymentResp, error) AccountBalance(ctx context.Context, in *AccountBalanceReq, opts ...grpc.CallOption) (*AccountBalanceResp, error) C2BRegisterURL(ctx context.Context, in *C2BRegisterURLReq, opts ...grpc.CallOption) (*C2BRegisterURLResp, error) C2BSimulate(ctx context.Context, in *C2BSimulateReq, opts ...grpc.CallOption) (*C2BSimulateResp, error) GenerateQR(ctx context.Context, in *GenerateQRReq, opts ...grpc.CallOption) (*GenerateQRResp, error) Reverse(ctx context.Context, in *ReverseReq, opts ...grpc.CallOption) (*ReverseResp, error) TransactionStatus(ctx context.Context, in *TransactionStatusReq, opts ...grpc.CallOption) (*TransactionStatusResp, error) RemitTax(ctx context.Context, in *RemitTaxReq, opts ...grpc.CallOption) (*RemitTaxResp, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Token(context.Context, *Empty) (*TokenResp, error) ExpressQuery(context.Context, *ExpressQueryReq) (*ExpressQueryResp, error) ExpressSimulate(context.Context, *ExpressSimulateReq) (*ExpressSimulateResp, error) B2CPayment(context.Context, *B2CPaymentReq) (*B2CPaymentResp, error) AccountBalance(context.Context, *AccountBalanceReq) (*AccountBalanceResp, error) C2BRegisterURL(context.Context, *C2BRegisterURLReq) (*C2BRegisterURLResp, error) C2BSimulate(context.Context, *C2BSimulateReq) (*C2BSimulateResp, error) GenerateQR(context.Context, *GenerateQRReq) (*GenerateQRResp, error) Reverse(context.Context, *ReverseReq) (*ReverseResp, error) TransactionStatus(context.Context, *TransactionStatusReq) (*TransactionStatusResp, error) RemitTax(context.Context, *RemitTaxReq) (*RemitTaxResp, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type TokenResp ¶
type TokenResp struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` Expiry string `protobuf:"bytes,2,opt,name=expiry,proto3" json:"expiry,omitempty"` // contains filtered or unexported fields }
func (*TokenResp) Descriptor
deprecated
func (*TokenResp) GetAccessToken ¶
func (*TokenResp) ProtoMessage ¶
func (*TokenResp) ProtoMessage()
func (*TokenResp) ProtoReflect ¶
func (x *TokenResp) ProtoReflect() protoreflect.Message
type TransactionStatusReq ¶
type TransactionStatusReq struct { CommandID string `protobuf:"bytes,1,opt,name=commandID,proto3" json:"commandID,omitempty"` PartyA uint64 `protobuf:"varint,2,opt,name=partyA,proto3" json:"partyA,omitempty"` IdentifierType uint32 `protobuf:"varint,3,opt,name=identifierType,proto3" json:"identifierType,omitempty"` Remarks string `protobuf:"bytes,4,opt,name=remarks,proto3" json:"remarks,omitempty"` InitiatorName string `protobuf:"bytes,5,opt,name=initiatorName,proto3" json:"initiatorName,omitempty"` InitiatorPassword string `protobuf:"bytes,6,opt,name=initiatorPassword,proto3" json:"initiatorPassword,omitempty"` SecurityCredential string `protobuf:"bytes,7,opt,name=securityCredential,proto3" json:"securityCredential,omitempty"` QueueTimeOutURL string `protobuf:"bytes,8,opt,name=queueTimeOutURL,proto3" json:"queueTimeOutURL,omitempty"` ResultURL string `protobuf:"bytes,9,opt,name=resultURL,proto3" json:"resultURL,omitempty"` TransactionID string `protobuf:"bytes,10,opt,name=transactionID,proto3" json:"transactionID,omitempty"` Occasion string `protobuf:"bytes,11,opt,name=occasion,proto3" json:"occasion,omitempty"` // contains filtered or unexported fields }
func (*TransactionStatusReq) Descriptor
deprecated
func (*TransactionStatusReq) Descriptor() ([]byte, []int)
Deprecated: Use TransactionStatusReq.ProtoReflect.Descriptor instead.
func (*TransactionStatusReq) GetCommandID ¶
func (x *TransactionStatusReq) GetCommandID() string
func (*TransactionStatusReq) GetIdentifierType ¶
func (x *TransactionStatusReq) GetIdentifierType() uint32
func (*TransactionStatusReq) GetInitiatorName ¶
func (x *TransactionStatusReq) GetInitiatorName() string
func (*TransactionStatusReq) GetInitiatorPassword ¶
func (x *TransactionStatusReq) GetInitiatorPassword() string
func (*TransactionStatusReq) GetOccasion ¶
func (x *TransactionStatusReq) GetOccasion() string
func (*TransactionStatusReq) GetPartyA ¶
func (x *TransactionStatusReq) GetPartyA() uint64
func (*TransactionStatusReq) GetQueueTimeOutURL ¶
func (x *TransactionStatusReq) GetQueueTimeOutURL() string
func (*TransactionStatusReq) GetRemarks ¶
func (x *TransactionStatusReq) GetRemarks() string
func (*TransactionStatusReq) GetResultURL ¶
func (x *TransactionStatusReq) GetResultURL() string
func (*TransactionStatusReq) GetSecurityCredential ¶
func (x *TransactionStatusReq) GetSecurityCredential() string
func (*TransactionStatusReq) GetTransactionID ¶
func (x *TransactionStatusReq) GetTransactionID() string
func (*TransactionStatusReq) ProtoMessage ¶
func (*TransactionStatusReq) ProtoMessage()
func (*TransactionStatusReq) ProtoReflect ¶
func (x *TransactionStatusReq) ProtoReflect() protoreflect.Message
func (*TransactionStatusReq) Reset ¶
func (x *TransactionStatusReq) Reset()
func (*TransactionStatusReq) String ¶
func (x *TransactionStatusReq) String() string
type TransactionStatusResp ¶
type TransactionStatusResp struct { ValidResp *ValidResp `protobuf:"bytes,1,opt,name=validResp,proto3" json:"validResp,omitempty"` // contains filtered or unexported fields }
func (*TransactionStatusResp) Descriptor
deprecated
func (*TransactionStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use TransactionStatusResp.ProtoReflect.Descriptor instead.
func (*TransactionStatusResp) GetValidResp ¶
func (x *TransactionStatusResp) GetValidResp() *ValidResp
func (*TransactionStatusResp) ProtoMessage ¶
func (*TransactionStatusResp) ProtoMessage()
func (*TransactionStatusResp) ProtoReflect ¶
func (x *TransactionStatusResp) ProtoReflect() protoreflect.Message
func (*TransactionStatusResp) Reset ¶
func (x *TransactionStatusResp) Reset()
func (*TransactionStatusResp) String ¶
func (x *TransactionStatusResp) String() string
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AccountBalance ¶
func (UnimplementedServiceServer) AccountBalance(context.Context, *AccountBalanceReq) (*AccountBalanceResp, error)
func (UnimplementedServiceServer) B2CPayment ¶
func (UnimplementedServiceServer) B2CPayment(context.Context, *B2CPaymentReq) (*B2CPaymentResp, error)
func (UnimplementedServiceServer) C2BRegisterURL ¶
func (UnimplementedServiceServer) C2BRegisterURL(context.Context, *C2BRegisterURLReq) (*C2BRegisterURLResp, error)
func (UnimplementedServiceServer) C2BSimulate ¶
func (UnimplementedServiceServer) C2BSimulate(context.Context, *C2BSimulateReq) (*C2BSimulateResp, error)
func (UnimplementedServiceServer) ExpressQuery ¶
func (UnimplementedServiceServer) ExpressQuery(context.Context, *ExpressQueryReq) (*ExpressQueryResp, error)
func (UnimplementedServiceServer) ExpressSimulate ¶
func (UnimplementedServiceServer) ExpressSimulate(context.Context, *ExpressSimulateReq) (*ExpressSimulateResp, error)
func (UnimplementedServiceServer) GenerateQR ¶
func (UnimplementedServiceServer) GenerateQR(context.Context, *GenerateQRReq) (*GenerateQRResp, error)
func (UnimplementedServiceServer) RemitTax ¶
func (UnimplementedServiceServer) RemitTax(context.Context, *RemitTaxReq) (*RemitTaxResp, error)
func (UnimplementedServiceServer) Reverse ¶
func (UnimplementedServiceServer) Reverse(context.Context, *ReverseReq) (*ReverseResp, error)
func (UnimplementedServiceServer) TransactionStatus ¶
func (UnimplementedServiceServer) TransactionStatus(context.Context, *TransactionStatusReq) (*TransactionStatusResp, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type ValidResp ¶
type ValidResp struct { OriginatorConversationID string `protobuf:"bytes,1,opt,name=originatorConversationID,proto3" json:"originatorConversationID,omitempty"` ConversationID string `protobuf:"bytes,2,opt,name=conversationID,proto3" json:"conversationID,omitempty"` ResponseDescription string `protobuf:"bytes,3,opt,name=responseDescription,proto3" json:"responseDescription,omitempty"` ResponseCode string `protobuf:"bytes,4,opt,name=responseCode,proto3" json:"responseCode,omitempty"` // contains filtered or unexported fields }
func (*ValidResp) Descriptor
deprecated
func (*ValidResp) GetConversationID ¶
func (*ValidResp) GetOriginatorConversationID ¶
func (*ValidResp) GetResponseCode ¶
func (*ValidResp) GetResponseDescription ¶
func (*ValidResp) ProtoMessage ¶
func (*ValidResp) ProtoMessage()
func (*ValidResp) ProtoReflect ¶
func (x *ValidResp) ProtoReflect() protoreflect.Message