v2

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package v2 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	CommandId_name = map[int32]string{
		0: "COMMANDID_UNSPECIFIED",
		1: "SALARY_PAYMENT",
		2: "BUSINESS_PAYMENT",
		3: "PROMOTION_PAYMENT",
	}
	CommandId_value = map[string]int32{
		"COMMANDID_UNSPECIFIED": 0,
		"SALARY_PAYMENT":        1,
		"BUSINESS_PAYMENT":      2,
		"PROMOTION_PAYMENT":     3,
	}
)

Enum value maps for CommandId.

View Source
var (
	B2CStatus_name = map[int32]string{
		0: "B2C_STATUS_UNKNOWN",
		1: "B2C_REQUEST_FAILED",
		3: "B2C_REQUEST_SUBMITED",
		5: "B2C_SUCCESS",
		6: "B2C_FAILED",
	}
	B2CStatus_value = map[string]int32{
		"B2C_STATUS_UNKNOWN":   0,
		"B2C_REQUEST_FAILED":   1,
		"B2C_REQUEST_SUBMITED": 3,
		"B2C_SUCCESS":          5,
		"B2C_FAILED":           6,
	}
)

Enum value maps for B2CStatus.

View Source
var (
	B2COrderField_name = map[int32]string{
		0: "B2C_ORDER_FIELD_UNSPECIFIED",
		1: "B2C_PAYMENT_ID",
		2: "B2C_TRANSACTION_TIMESTAMP",
	}
	B2COrderField_value = map[string]int32{
		"B2C_ORDER_FIELD_UNSPECIFIED": 0,
		"B2C_PAYMENT_ID":              1,
		"B2C_TRANSACTION_TIMESTAMP":   2,
	}
)

Enum value maps for B2COrderField.

View Source
var (
	B2CProcessedState_name = map[int32]string{
		0: "B2C_PROCESS_STATE_UNSPECIFIED",
		1: "B2C_PROCESSED",
		2: "B2C_NOT_PROCESSED",
	}
	B2CProcessedState_value = map[string]int32{
		"B2C_PROCESS_STATE_UNSPECIFIED": 0,
		"B2C_PROCESSED":                 1,
		"B2C_NOT_PROCESSED":             2,
	}
)

Enum value maps for B2CProcessedState.

View Source
var (
	QueryTransactionStatusRequest_IdentifierType_name = map[int32]string{
		0: "QUERY_TRANSACTION_UNSPECIFIED",
		1: "MSISDN",
		2: "TILL_NUMBER",
		3: "ORGANIZATION_SHORT_CODE",
	}
	QueryTransactionStatusRequest_IdentifierType_value = map[string]int32{
		"QUERY_TRANSACTION_UNSPECIFIED": 0,
		"MSISDN":                        1,
		"TILL_NUMBER":                   2,
		"ORGANIZATION_SHORT_CODE":       3,
	}
)

Enum value maps for QueryTransactionStatusRequest_IdentifierType.

View Source
var (
	QueryAccountBalanceRequest_IdentifierType_name = map[int32]string{
		0: "QUERY_ACCOUNT_UNSPECIFIED",
		1: "MSISDN",
		2: "TILL_NUMBER",
		4: "ORGANIZATION_SHORT_CODE",
	}
	QueryAccountBalanceRequest_IdentifierType_value = map[string]int32{
		"QUERY_ACCOUNT_UNSPECIFIED": 0,
		"MSISDN":                    1,
		"TILL_NUMBER":               2,
		"ORGANIZATION_SHORT_CODE":   4,
	}
)

Enum value maps for QueryAccountBalanceRequest_IdentifierType.

View Source
var File_b2c_v2_proto protoreflect.FileDescriptor

Functions

func RegisterB2CV2Handler

func RegisterB2CV2Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterB2CV2Handler registers the http handlers for service B2CV2 to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterB2CV2HandlerClient

func RegisterB2CV2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client B2CV2Client) error

RegisterB2CV2HandlerClient registers the http handlers for service B2CV2 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "B2CV2Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "B2CV2Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "B2CV2Client" to call the correct interceptors.

func RegisterB2CV2HandlerFromEndpoint

func RegisterB2CV2HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterB2CV2HandlerFromEndpoint is same as RegisterB2CV2Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterB2CV2HandlerServer

func RegisterB2CV2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server B2CV2Server) error

RegisterB2CV2HandlerServer registers the http handlers for service B2CV2 to "mux". UnaryRPC :call B2CV2Server directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterB2CV2HandlerFromEndpoint instead.

func RegisterB2CV2Server

func RegisterB2CV2Server(s grpc.ServiceRegistrar, srv B2CV2Server)

Types

type B2COrderField

type B2COrderField int32
const (
	B2COrderField_B2C_ORDER_FIELD_UNSPECIFIED B2COrderField = 0
	B2COrderField_B2C_PAYMENT_ID              B2COrderField = 1
	B2COrderField_B2C_TRANSACTION_TIMESTAMP   B2COrderField = 2
)

func (B2COrderField) Descriptor

func (B2COrderField) Enum

func (x B2COrderField) Enum() *B2COrderField

func (B2COrderField) EnumDescriptor deprecated

func (B2COrderField) EnumDescriptor() ([]byte, []int)

Deprecated: Use B2COrderField.Descriptor instead.

func (B2COrderField) Number

func (B2COrderField) String

func (x B2COrderField) String() string

func (B2COrderField) Type

type B2CPayment

type B2CPayment struct {
	InitiatorId                   string    `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	TransactionId                 string    `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	InitiatorTransactionReference string    `` /* 150-byte string literal not displayed */
	InitiatorCustomerReference    string    `` /* 141-byte string literal not displayed */
	InitiatorCustomerNames        string    `` /* 129-byte string literal not displayed */
	OrgShortCode                  string    `protobuf:"bytes,6,opt,name=org_short_code,json=orgShortCode,proto3" json:"org_short_code,omitempty"`
	CommandId                     CommandId `protobuf:"varint,7,opt,name=command_id,json=commandId,proto3,enum=gidyon.mpesa.b2c.CommandId" json:"command_id,omitempty"`
	Msisdn                        string    `protobuf:"bytes,8,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	Amount                        float32   `protobuf:"fixed32,9,opt,name=amount,proto3" json:"amount,omitempty"`
	ConversationId                string    `protobuf:"bytes,10,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	OriginalConversationId        string    `` /* 130-byte string literal not displayed */
	B2CResponseDescription        string    `` /* 130-byte string literal not displayed */
	B2CResponseCode               string    `protobuf:"bytes,13,opt,name=b2c_response_code,json=b2cResponseCode,proto3" json:"b2c_response_code,omitempty"`
	B2CResultDescription          string    `protobuf:"bytes,15,opt,name=b2c_result_description,json=b2cResultDescription,proto3" json:"b2c_result_description,omitempty"`
	B2CResultCode                 string    `protobuf:"bytes,16,opt,name=b2c_result_code,json=b2cResultCode,proto3" json:"b2c_result_code,omitempty"`
	ReceiverPartyPublicName       string    `` /* 135-byte string literal not displayed */
	MpesaReceiptId                string    `protobuf:"bytes,18,opt,name=mpesa_receipt_id,json=mpesaReceiptId,proto3" json:"mpesa_receipt_id,omitempty"`
	WorkingAccountFunds           float32   `protobuf:"fixed32,19,opt,name=working_account_funds,json=workingAccountFunds,proto3" json:"working_account_funds,omitempty"`
	UtilityAccountFunds           float32   `protobuf:"fixed32,20,opt,name=utility_account_funds,json=utilityAccountFunds,proto3" json:"utility_account_funds,omitempty"`
	MpesaCharges                  float32   `protobuf:"fixed32,21,opt,name=mpesa_charges,json=mpesaCharges,proto3" json:"mpesa_charges,omitempty"`
	OnfonCharges                  float32   `protobuf:"fixed32,22,opt,name=onfon_charges,json=onfonCharges,proto3" json:"onfon_charges,omitempty"`
	RecipientRegistered           bool      `protobuf:"varint,23,opt,name=recipient_registered,json=recipientRegistered,proto3" json:"recipient_registered,omitempty"`
	B2CStatus                     B2CStatus `protobuf:"varint,24,opt,name=b2c_status,json=b2cStatus,proto3,enum=gidyon.mpesa.b2c.B2CStatus" json:"b2c_status,omitempty"`
	Source                        string    `protobuf:"bytes,25,opt,name=source,proto3" json:"source,omitempty"`
	Tag                           string    `protobuf:"bytes,26,opt,name=tag,proto3" json:"tag,omitempty"`
	Succeeded                     bool      `protobuf:"varint,27,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
	Processed                     bool      `protobuf:"varint,28,opt,name=processed,proto3" json:"processed,omitempty"`
	TransactionTimestamp          int64     `protobuf:"varint,29,opt,name=transaction_timestamp,json=transactionTimestamp,proto3" json:"transaction_timestamp,omitempty"`
	CreateDate                    string    `protobuf:"bytes,30,opt,name=create_date,json=createDate,proto3" json:"create_date,omitempty"`
	// contains filtered or unexported fields
}

func (*B2CPayment) Descriptor deprecated

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

Deprecated: Use B2CPayment.ProtoReflect.Descriptor instead.

func (*B2CPayment) GetAmount

func (x *B2CPayment) GetAmount() float32

func (*B2CPayment) GetB2CResponseCode

func (x *B2CPayment) GetB2CResponseCode() string

func (*B2CPayment) GetB2CResponseDescription

func (x *B2CPayment) GetB2CResponseDescription() string

func (*B2CPayment) GetB2CResultCode

func (x *B2CPayment) GetB2CResultCode() string

func (*B2CPayment) GetB2CResultDescription

func (x *B2CPayment) GetB2CResultDescription() string

func (*B2CPayment) GetB2CStatus

func (x *B2CPayment) GetB2CStatus() B2CStatus

func (*B2CPayment) GetCommandId

func (x *B2CPayment) GetCommandId() CommandId

func (*B2CPayment) GetConversationId

func (x *B2CPayment) GetConversationId() string

func (*B2CPayment) GetCreateDate

func (x *B2CPayment) GetCreateDate() string

func (*B2CPayment) GetInitiatorCustomerNames

func (x *B2CPayment) GetInitiatorCustomerNames() string

func (*B2CPayment) GetInitiatorCustomerReference

func (x *B2CPayment) GetInitiatorCustomerReference() string

func (*B2CPayment) GetInitiatorId

func (x *B2CPayment) GetInitiatorId() string

func (*B2CPayment) GetInitiatorTransactionReference

func (x *B2CPayment) GetInitiatorTransactionReference() string

func (*B2CPayment) GetMpesaCharges

func (x *B2CPayment) GetMpesaCharges() float32

func (*B2CPayment) GetMpesaReceiptId

func (x *B2CPayment) GetMpesaReceiptId() string

func (*B2CPayment) GetMsisdn

func (x *B2CPayment) GetMsisdn() string

func (*B2CPayment) GetOnfonCharges

func (x *B2CPayment) GetOnfonCharges() float32

func (*B2CPayment) GetOrgShortCode

func (x *B2CPayment) GetOrgShortCode() string

func (*B2CPayment) GetOriginalConversationId

func (x *B2CPayment) GetOriginalConversationId() string

func (*B2CPayment) GetProcessed

func (x *B2CPayment) GetProcessed() bool

func (*B2CPayment) GetReceiverPartyPublicName

func (x *B2CPayment) GetReceiverPartyPublicName() string

func (*B2CPayment) GetRecipientRegistered

func (x *B2CPayment) GetRecipientRegistered() bool

func (*B2CPayment) GetSource

func (x *B2CPayment) GetSource() string

func (*B2CPayment) GetSucceeded

func (x *B2CPayment) GetSucceeded() bool

func (*B2CPayment) GetTag

func (x *B2CPayment) GetTag() string

func (*B2CPayment) GetTransactionId

func (x *B2CPayment) GetTransactionId() string

func (*B2CPayment) GetTransactionTimestamp added in v1.2.7

func (x *B2CPayment) GetTransactionTimestamp() int64

func (*B2CPayment) GetUtilityAccountFunds

func (x *B2CPayment) GetUtilityAccountFunds() float32

func (*B2CPayment) GetWorkingAccountFunds

func (x *B2CPayment) GetWorkingAccountFunds() float32

func (*B2CPayment) ProtoMessage

func (*B2CPayment) ProtoMessage()

func (*B2CPayment) ProtoReflect

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

func (*B2CPayment) Reset

func (x *B2CPayment) Reset()

func (*B2CPayment) String

func (x *B2CPayment) String() string

type B2CProcessedState

type B2CProcessedState int32
const (
	B2CProcessedState_B2C_PROCESS_STATE_UNSPECIFIED B2CProcessedState = 0
	B2CProcessedState_B2C_PROCESSED                 B2CProcessedState = 1
	B2CProcessedState_B2C_NOT_PROCESSED             B2CProcessedState = 2
)

func (B2CProcessedState) Descriptor

func (B2CProcessedState) Enum

func (B2CProcessedState) EnumDescriptor deprecated

func (B2CProcessedState) EnumDescriptor() ([]byte, []int)

Deprecated: Use B2CProcessedState.Descriptor instead.

func (B2CProcessedState) Number

func (B2CProcessedState) String

func (x B2CProcessedState) String() string

func (B2CProcessedState) Type

type B2CStatus

type B2CStatus int32
const (
	B2CStatus_B2C_STATUS_UNKNOWN   B2CStatus = 0
	B2CStatus_B2C_REQUEST_FAILED   B2CStatus = 1
	B2CStatus_B2C_REQUEST_SUBMITED B2CStatus = 3
	B2CStatus_B2C_SUCCESS          B2CStatus = 5
	B2CStatus_B2C_FAILED           B2CStatus = 6
)

func (B2CStatus) Descriptor

func (B2CStatus) Descriptor() protoreflect.EnumDescriptor

func (B2CStatus) Enum

func (x B2CStatus) Enum() *B2CStatus

func (B2CStatus) EnumDescriptor deprecated

func (B2CStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use B2CStatus.Descriptor instead.

func (B2CStatus) Number

func (x B2CStatus) Number() protoreflect.EnumNumber

func (B2CStatus) String

func (x B2CStatus) String() string

func (B2CStatus) Type

type B2CV2Client

type B2CV2Client interface {
	// Transfer funds from business to customer or another business
	TransferFunds(ctx context.Context, in *TransferFundsRequest, opts ...grpc.CallOption) (*TransferFundsResponse, error)
	// Retrieves a single b2c payment
	GetB2CPayment(ctx context.Context, in *GetB2CPaymentRequest, opts ...grpc.CallOption) (*B2CPayment, error)
	// Retrieves a collection of b2c payments
	ListB2CPayments(ctx context.Context, in *ListB2CPaymentsRequest, opts ...grpc.CallOption) (*ListB2CPaymentsResponse, error)
	// Processes b2c payment updating its status
	ProcessB2CPayment(ctx context.Context, in *ProcessB2CPaymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Publishes b2c payment to consumers
	PublishB2CPayment(ctx context.Context, in *PublishB2CPaymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Retrieves a collection of statistics
	ListDailyStats(ctx context.Context, in *ListDailyStatsRequest, opts ...grpc.CallOption) (*StatsResponse, error)
	// Queries for query transaction
	QueryTransactionStatus(ctx context.Context, in *QueryTransactionStatusRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	// Queries for account balance
	QueryAccountBalance(ctx context.Context, in *QueryAccountBalanceRequest, opts ...grpc.CallOption) (*QueryAccountBalanceResponse, error)
	// Reverses an mpesa transaction
	ReverseTransaction(ctx context.Context, in *ReverseTransactionRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

B2CV2Client is the client API for B2CV2 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 NewB2CV2Client

func NewB2CV2Client(cc grpc.ClientConnInterface) B2CV2Client

type B2CV2Server

type B2CV2Server interface {
	// Transfer funds from business to customer or another business
	TransferFunds(context.Context, *TransferFundsRequest) (*TransferFundsResponse, error)
	// Retrieves a single b2c payment
	GetB2CPayment(context.Context, *GetB2CPaymentRequest) (*B2CPayment, error)
	// Retrieves a collection of b2c payments
	ListB2CPayments(context.Context, *ListB2CPaymentsRequest) (*ListB2CPaymentsResponse, error)
	// Processes b2c payment updating its status
	ProcessB2CPayment(context.Context, *ProcessB2CPaymentRequest) (*emptypb.Empty, error)
	// Publishes b2c payment to consumers
	PublishB2CPayment(context.Context, *PublishB2CPaymentRequest) (*emptypb.Empty, error)
	// Retrieves a collection of statistics
	ListDailyStats(context.Context, *ListDailyStatsRequest) (*StatsResponse, error)
	// Queries for query transaction
	QueryTransactionStatus(context.Context, *QueryTransactionStatusRequest) (*QueryResponse, error)
	// Queries for account balance
	QueryAccountBalance(context.Context, *QueryAccountBalanceRequest) (*QueryAccountBalanceResponse, error)
	// Reverses an mpesa transaction
	ReverseTransaction(context.Context, *ReverseTransactionRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

B2CV2Server is the server API for B2CV2 service. All implementations must embed UnimplementedB2CV2Server for forward compatibility

type CommandId

type CommandId int32
const (
	CommandId_COMMANDID_UNSPECIFIED CommandId = 0
	CommandId_SALARY_PAYMENT        CommandId = 1
	CommandId_BUSINESS_PAYMENT      CommandId = 2
	CommandId_PROMOTION_PAYMENT     CommandId = 3
)

func (CommandId) Descriptor

func (CommandId) Descriptor() protoreflect.EnumDescriptor

func (CommandId) Enum

func (x CommandId) Enum() *CommandId

func (CommandId) EnumDescriptor deprecated

func (CommandId) EnumDescriptor() ([]byte, []int)

Deprecated: Use CommandId.Descriptor instead.

func (CommandId) Number

func (x CommandId) Number() protoreflect.EnumNumber

func (CommandId) String

func (x CommandId) String() string

func (CommandId) Type

type DailyStat

type DailyStat struct {
	StatId                 string  `protobuf:"bytes,1,opt,name=stat_id,json=statId,proto3" json:"stat_id,omitempty"`
	Date                   string  `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	OrgShortCode           string  `protobuf:"bytes,3,opt,name=org_short_code,json=orgShortCode,proto3" json:"org_short_code,omitempty"`
	TotalTransactions      int32   `protobuf:"varint,4,opt,name=total_transactions,json=totalTransactions,proto3" json:"total_transactions,omitempty"`
	SuccessfulTransactions int64   `` /* 128-byte string literal not displayed */
	FailedTransactions     int64   `protobuf:"varint,6,opt,name=failed_transactions,json=failedTransactions,proto3" json:"failed_transactions,omitempty"`
	TotalAmountTransacted  float32 `` /* 128-byte string literal not displayed */
	TotalCharges           float32 `protobuf:"fixed32,8,opt,name=total_charges,json=totalCharges,proto3" json:"total_charges,omitempty"`
	CreateTimeSeconds      int64   `protobuf:"varint,9,opt,name=create_time_seconds,json=createTimeSeconds,proto3" json:"create_time_seconds,omitempty"`
	UpdateTimeSeconds      int64   `protobuf:"varint,10,opt,name=update_time_seconds,json=updateTimeSeconds,proto3" json:"update_time_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*DailyStat) Descriptor deprecated

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

Deprecated: Use DailyStat.ProtoReflect.Descriptor instead.

func (*DailyStat) GetCreateTimeSeconds

func (x *DailyStat) GetCreateTimeSeconds() int64

func (*DailyStat) GetDate

func (x *DailyStat) GetDate() string

func (*DailyStat) GetFailedTransactions

func (x *DailyStat) GetFailedTransactions() int64

func (*DailyStat) GetOrgShortCode

func (x *DailyStat) GetOrgShortCode() string

func (*DailyStat) GetStatId

func (x *DailyStat) GetStatId() string

func (*DailyStat) GetSuccessfulTransactions

func (x *DailyStat) GetSuccessfulTransactions() int64

func (*DailyStat) GetTotalAmountTransacted

func (x *DailyStat) GetTotalAmountTransacted() float32

func (*DailyStat) GetTotalCharges

func (x *DailyStat) GetTotalCharges() float32

func (*DailyStat) GetTotalTransactions

func (x *DailyStat) GetTotalTransactions() int32

func (*DailyStat) GetUpdateTimeSeconds

func (x *DailyStat) GetUpdateTimeSeconds() int64

func (*DailyStat) ProtoMessage

func (*DailyStat) ProtoMessage()

func (*DailyStat) ProtoReflect

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

func (*DailyStat) Reset

func (x *DailyStat) Reset()

func (*DailyStat) String

func (x *DailyStat) String() string

type GetB2CPaymentRequest

type GetB2CPaymentRequest struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	IsMpesaId bool   `protobuf:"varint,2,opt,name=is_mpesa_id,json=isMpesaId,proto3" json:"is_mpesa_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetB2CPaymentRequest) Descriptor deprecated

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

Deprecated: Use GetB2CPaymentRequest.ProtoReflect.Descriptor instead.

func (*GetB2CPaymentRequest) GetIsMpesaId

func (x *GetB2CPaymentRequest) GetIsMpesaId() bool

func (*GetB2CPaymentRequest) GetPaymentId

func (x *GetB2CPaymentRequest) GetPaymentId() string

func (*GetB2CPaymentRequest) ProtoMessage

func (*GetB2CPaymentRequest) ProtoMessage()

func (*GetB2CPaymentRequest) ProtoReflect

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

func (*GetB2CPaymentRequest) Reset

func (x *GetB2CPaymentRequest) Reset()

func (*GetB2CPaymentRequest) String

func (x *GetB2CPaymentRequest) String() string

type ListB2CPaymentFilter

type ListB2CPaymentFilter struct {
	TxDate                         string            `protobuf:"bytes,1,opt,name=tx_date,json=txDate,proto3" json:"tx_date,omitempty"`
	Msisdns                        []string          `protobuf:"bytes,2,rep,name=msisdns,proto3" json:"msisdns,omitempty"`
	MpesaReceipts                  []string          `protobuf:"bytes,3,rep,name=mpesa_receipts,json=mpesaReceipts,proto3" json:"mpesa_receipts,omitempty"`
	InitiatorIds                   []string          `protobuf:"bytes,4,rep,name=initiator_ids,json=initiatorIds,proto3" json:"initiator_ids,omitempty"`
	InitiatorCustomerReferences    []string          `` /* 144-byte string literal not displayed */
	InitiatorTransactionReferences []string          `` /* 153-byte string literal not displayed */
	ShortCodes                     []string          `protobuf:"bytes,7,rep,name=short_codes,json=shortCodes,proto3" json:"short_codes,omitempty"`
	B2CStatuses                    []B2CStatus       `` /* 134-byte string literal not displayed */
	ProcessState                   B2CProcessedState `` /* 138-byte string literal not displayed */
	StartTimestamp                 int64             `protobuf:"varint,10,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp                   int64             `protobuf:"varint,11,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	OrderField                     B2COrderField     `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ListB2CPaymentFilter) Descriptor deprecated

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

Deprecated: Use ListB2CPaymentFilter.ProtoReflect.Descriptor instead.

func (*ListB2CPaymentFilter) GetB2CStatuses

func (x *ListB2CPaymentFilter) GetB2CStatuses() []B2CStatus

func (*ListB2CPaymentFilter) GetEndTimestamp

func (x *ListB2CPaymentFilter) GetEndTimestamp() int64

func (*ListB2CPaymentFilter) GetInitiatorCustomerReferences

func (x *ListB2CPaymentFilter) GetInitiatorCustomerReferences() []string

func (*ListB2CPaymentFilter) GetInitiatorIds

func (x *ListB2CPaymentFilter) GetInitiatorIds() []string

func (*ListB2CPaymentFilter) GetInitiatorTransactionReferences

func (x *ListB2CPaymentFilter) GetInitiatorTransactionReferences() []string

func (*ListB2CPaymentFilter) GetMpesaReceipts

func (x *ListB2CPaymentFilter) GetMpesaReceipts() []string

func (*ListB2CPaymentFilter) GetMsisdns

func (x *ListB2CPaymentFilter) GetMsisdns() []string

func (*ListB2CPaymentFilter) GetOrderField

func (x *ListB2CPaymentFilter) GetOrderField() B2COrderField

func (*ListB2CPaymentFilter) GetProcessState

func (x *ListB2CPaymentFilter) GetProcessState() B2CProcessedState

func (*ListB2CPaymentFilter) GetShortCodes

func (x *ListB2CPaymentFilter) GetShortCodes() []string

func (*ListB2CPaymentFilter) GetStartTimestamp

func (x *ListB2CPaymentFilter) GetStartTimestamp() int64

func (*ListB2CPaymentFilter) GetTxDate

func (x *ListB2CPaymentFilter) GetTxDate() string

func (*ListB2CPaymentFilter) ProtoMessage

func (*ListB2CPaymentFilter) ProtoMessage()

func (*ListB2CPaymentFilter) ProtoReflect

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

func (*ListB2CPaymentFilter) Reset

func (x *ListB2CPaymentFilter) Reset()

func (*ListB2CPaymentFilter) String

func (x *ListB2CPaymentFilter) String() string

type ListB2CPaymentsRequest

type ListB2CPaymentsRequest struct {
	PageToken string                `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	PageSize  int32                 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Filter    *ListB2CPaymentFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListB2CPaymentsRequest) Descriptor deprecated

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

Deprecated: Use ListB2CPaymentsRequest.ProtoReflect.Descriptor instead.

func (*ListB2CPaymentsRequest) GetFilter

func (*ListB2CPaymentsRequest) GetPageSize

func (x *ListB2CPaymentsRequest) GetPageSize() int32

func (*ListB2CPaymentsRequest) GetPageToken

func (x *ListB2CPaymentsRequest) GetPageToken() string

func (*ListB2CPaymentsRequest) ProtoMessage

func (*ListB2CPaymentsRequest) ProtoMessage()

func (*ListB2CPaymentsRequest) ProtoReflect

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

func (*ListB2CPaymentsRequest) Reset

func (x *ListB2CPaymentsRequest) Reset()

func (*ListB2CPaymentsRequest) String

func (x *ListB2CPaymentsRequest) String() string

type ListB2CPaymentsResponse

type ListB2CPaymentsResponse struct {
	NextPageToken   string        `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	B2CPayments     []*B2CPayment `protobuf:"bytes,2,rep,name=b2c_payments,json=b2cPayments,proto3" json:"b2c_payments,omitempty"`
	CollectionCount int64         `protobuf:"varint,3,opt,name=collection_count,json=collectionCount,proto3" json:"collection_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListB2CPaymentsResponse) Descriptor deprecated

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

Deprecated: Use ListB2CPaymentsResponse.ProtoReflect.Descriptor instead.

func (*ListB2CPaymentsResponse) GetB2CPayments

func (x *ListB2CPaymentsResponse) GetB2CPayments() []*B2CPayment

func (*ListB2CPaymentsResponse) GetCollectionCount

func (x *ListB2CPaymentsResponse) GetCollectionCount() int64

func (*ListB2CPaymentsResponse) GetNextPageToken

func (x *ListB2CPaymentsResponse) GetNextPageToken() string

func (*ListB2CPaymentsResponse) ProtoMessage

func (*ListB2CPaymentsResponse) ProtoMessage()

func (*ListB2CPaymentsResponse) ProtoReflect

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

func (*ListB2CPaymentsResponse) Reset

func (x *ListB2CPaymentsResponse) Reset()

func (*ListB2CPaymentsResponse) String

func (x *ListB2CPaymentsResponse) String() string

type ListDailyStatsRequest

type ListDailyStatsRequest struct {
	PageToken string           `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	PageSize  int32            `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Filter    *ListStatsFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDailyStatsRequest) Descriptor deprecated

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

Deprecated: Use ListDailyStatsRequest.ProtoReflect.Descriptor instead.

func (*ListDailyStatsRequest) GetFilter

func (x *ListDailyStatsRequest) GetFilter() *ListStatsFilter

func (*ListDailyStatsRequest) GetPageSize

func (x *ListDailyStatsRequest) GetPageSize() int32

func (*ListDailyStatsRequest) GetPageToken

func (x *ListDailyStatsRequest) GetPageToken() string

func (*ListDailyStatsRequest) ProtoMessage

func (*ListDailyStatsRequest) ProtoMessage()

func (*ListDailyStatsRequest) ProtoReflect

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

func (*ListDailyStatsRequest) Reset

func (x *ListDailyStatsRequest) Reset()

func (*ListDailyStatsRequest) String

func (x *ListDailyStatsRequest) String() string

type ListStatsFilter

type ListStatsFilter struct {
	OrganizationShortCodes []string `` /* 129-byte string literal not displayed */
	StartTimeSeconds       int64    `protobuf:"varint,2,opt,name=start_time_seconds,json=startTimeSeconds,proto3" json:"start_time_seconds,omitempty"`
	EndTimeSeconds         int64    `protobuf:"varint,3,opt,name=end_time_seconds,json=endTimeSeconds,proto3" json:"end_time_seconds,omitempty"`
	TxDates                []string `protobuf:"bytes,4,rep,name=tx_dates,json=txDates,proto3" json:"tx_dates,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStatsFilter) Descriptor deprecated

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

Deprecated: Use ListStatsFilter.ProtoReflect.Descriptor instead.

func (*ListStatsFilter) GetEndTimeSeconds

func (x *ListStatsFilter) GetEndTimeSeconds() int64

func (*ListStatsFilter) GetOrganizationShortCodes

func (x *ListStatsFilter) GetOrganizationShortCodes() []string

func (*ListStatsFilter) GetStartTimeSeconds

func (x *ListStatsFilter) GetStartTimeSeconds() int64

func (*ListStatsFilter) GetTxDates

func (x *ListStatsFilter) GetTxDates() []string

func (*ListStatsFilter) ProtoMessage

func (*ListStatsFilter) ProtoMessage()

func (*ListStatsFilter) ProtoReflect

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

func (*ListStatsFilter) Reset

func (x *ListStatsFilter) Reset()

func (*ListStatsFilter) String

func (x *ListStatsFilter) String() string

type ProcessB2CPaymentRequest

type ProcessB2CPaymentRequest struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	Processed bool   `protobuf:"varint,2,opt,name=processed,proto3" json:"processed,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessB2CPaymentRequest) Descriptor deprecated

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

Deprecated: Use ProcessB2CPaymentRequest.ProtoReflect.Descriptor instead.

func (*ProcessB2CPaymentRequest) GetPaymentId

func (x *ProcessB2CPaymentRequest) GetPaymentId() string

func (*ProcessB2CPaymentRequest) GetProcessed

func (x *ProcessB2CPaymentRequest) GetProcessed() bool

func (*ProcessB2CPaymentRequest) ProtoMessage

func (*ProcessB2CPaymentRequest) ProtoMessage()

func (*ProcessB2CPaymentRequest) ProtoReflect

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

func (*ProcessB2CPaymentRequest) Reset

func (x *ProcessB2CPaymentRequest) Reset()

func (*ProcessB2CPaymentRequest) String

func (x *ProcessB2CPaymentRequest) String() string

type PublishB2CPaymentRequest

type PublishB2CPaymentRequest struct {
	PublishMessage *PublishMessage   `protobuf:"bytes,1,opt,name=publish_message,json=publishMessage,proto3" json:"publish_message,omitempty"`
	ProcessedState B2CProcessedState `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PublishB2CPaymentRequest) Descriptor deprecated

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

Deprecated: Use PublishB2CPaymentRequest.ProtoReflect.Descriptor instead.

func (*PublishB2CPaymentRequest) GetProcessedState

func (x *PublishB2CPaymentRequest) GetProcessedState() B2CProcessedState

func (*PublishB2CPaymentRequest) GetPublishMessage

func (x *PublishB2CPaymentRequest) GetPublishMessage() *PublishMessage

func (*PublishB2CPaymentRequest) ProtoMessage

func (*PublishB2CPaymentRequest) ProtoMessage()

func (*PublishB2CPaymentRequest) ProtoReflect

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

func (*PublishB2CPaymentRequest) Reset

func (x *PublishB2CPaymentRequest) Reset()

func (*PublishB2CPaymentRequest) String

func (x *PublishB2CPaymentRequest) String() string

type PublishInfo

type PublishInfo struct {
	OnlyOnSuccess bool              `protobuf:"varint,1,opt,name=only_on_success,json=onlyOnSuccess,proto3" json:"only_on_success,omitempty"`
	ChannelName   string            `protobuf:"bytes,2,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
	Payload       map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PublishInfo) Descriptor deprecated

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

Deprecated: Use PublishInfo.ProtoReflect.Descriptor instead.

func (*PublishInfo) GetChannelName

func (x *PublishInfo) GetChannelName() string

func (*PublishInfo) GetOnlyOnSuccess

func (x *PublishInfo) GetOnlyOnSuccess() bool

func (*PublishInfo) GetPayload

func (x *PublishInfo) GetPayload() map[string]string

func (*PublishInfo) ProtoMessage

func (*PublishInfo) ProtoMessage()

func (*PublishInfo) ProtoReflect

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

func (*PublishInfo) Reset

func (x *PublishInfo) Reset()

func (*PublishInfo) String

func (x *PublishInfo) String() string

type PublishMessage

type PublishMessage struct {
	InitiatorId    string       `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	TransactionId  string       `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	MpesaReceiptId string       `protobuf:"bytes,3,opt,name=mpesa_receipt_id,json=mpesaReceiptId,proto3" json:"mpesa_receipt_id,omitempty"`
	Msisdn         string       `protobuf:"bytes,4,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	PublishInfo    *PublishInfo `protobuf:"bytes,5,opt,name=publish_info,json=publishInfo,proto3" json:"publish_info,omitempty"`
	Payment        *B2CPayment  `protobuf:"bytes,6,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishMessage) Descriptor deprecated

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

Deprecated: Use PublishMessage.ProtoReflect.Descriptor instead.

func (*PublishMessage) GetInitiatorId

func (x *PublishMessage) GetInitiatorId() string

func (*PublishMessage) GetMpesaReceiptId

func (x *PublishMessage) GetMpesaReceiptId() string

func (*PublishMessage) GetMsisdn

func (x *PublishMessage) GetMsisdn() string

func (*PublishMessage) GetPayment

func (x *PublishMessage) GetPayment() *B2CPayment

func (*PublishMessage) GetPublishInfo

func (x *PublishMessage) GetPublishInfo() *PublishInfo

func (*PublishMessage) GetTransactionId added in v1.2.8

func (x *PublishMessage) GetTransactionId() string

func (*PublishMessage) ProtoMessage

func (*PublishMessage) ProtoMessage()

func (*PublishMessage) ProtoReflect

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

func (*PublishMessage) Reset

func (x *PublishMessage) Reset()

func (*PublishMessage) String

func (x *PublishMessage) String() string

type QueryAccountBalanceRequest

type QueryAccountBalanceRequest struct {
	IdentifierType QueryAccountBalanceRequest_IdentifierType `` /* 168-byte string literal not displayed */
	PartyA         int64                                     `protobuf:"varint,2,opt,name=party_a,json=partyA,proto3" json:"party_a,omitempty"`
	Remarks        string                                    `protobuf:"bytes,3,opt,name=remarks,proto3" json:"remarks,omitempty"`
	InitiatorId    string                                    `protobuf:"bytes,4,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	RequestId      string                                    `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Synchronous    bool                                      `protobuf:"varint,6,opt,name=synchronous,proto3" json:"synchronous,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAccountBalanceRequest) Descriptor deprecated

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

Deprecated: Use QueryAccountBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryAccountBalanceRequest) GetIdentifierType

func (*QueryAccountBalanceRequest) GetInitiatorId

func (x *QueryAccountBalanceRequest) GetInitiatorId() string

func (*QueryAccountBalanceRequest) GetPartyA

func (x *QueryAccountBalanceRequest) GetPartyA() int64

func (*QueryAccountBalanceRequest) GetRemarks

func (x *QueryAccountBalanceRequest) GetRemarks() string

func (*QueryAccountBalanceRequest) GetRequestId

func (x *QueryAccountBalanceRequest) GetRequestId() string

func (*QueryAccountBalanceRequest) GetSynchronous

func (x *QueryAccountBalanceRequest) GetSynchronous() bool

func (*QueryAccountBalanceRequest) ProtoMessage

func (*QueryAccountBalanceRequest) ProtoMessage()

func (*QueryAccountBalanceRequest) ProtoReflect

func (*QueryAccountBalanceRequest) Reset

func (x *QueryAccountBalanceRequest) Reset()

func (*QueryAccountBalanceRequest) String

func (x *QueryAccountBalanceRequest) String() string

type QueryAccountBalanceRequest_IdentifierType

type QueryAccountBalanceRequest_IdentifierType int32
const (
	QueryAccountBalanceRequest_QUERY_ACCOUNT_UNSPECIFIED QueryAccountBalanceRequest_IdentifierType = 0
	QueryAccountBalanceRequest_MSISDN                    QueryAccountBalanceRequest_IdentifierType = 1
	QueryAccountBalanceRequest_TILL_NUMBER               QueryAccountBalanceRequest_IdentifierType = 2
	QueryAccountBalanceRequest_ORGANIZATION_SHORT_CODE   QueryAccountBalanceRequest_IdentifierType = 4
)

func (QueryAccountBalanceRequest_IdentifierType) Descriptor

func (QueryAccountBalanceRequest_IdentifierType) Enum

func (QueryAccountBalanceRequest_IdentifierType) EnumDescriptor deprecated

func (QueryAccountBalanceRequest_IdentifierType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryAccountBalanceRequest_IdentifierType.Descriptor instead.

func (QueryAccountBalanceRequest_IdentifierType) Number

func (QueryAccountBalanceRequest_IdentifierType) String

func (QueryAccountBalanceRequest_IdentifierType) Type

type QueryAccountBalanceResponse

type QueryAccountBalanceResponse struct {
	Party               int64   `protobuf:"varint,1,opt,name=party,proto3" json:"party,omitempty"`
	WorkingAccountFunds float32 `protobuf:"fixed32,2,opt,name=working_account_funds,json=workingAccountFunds,proto3" json:"working_account_funds,omitempty"`
	UtilityAccountFunds float32 `protobuf:"fixed32,3,opt,name=utility_account_funds,json=utilityAccountFunds,proto3" json:"utility_account_funds,omitempty"`
	ChargesPaidFunds    float32 `protobuf:"fixed32,4,opt,name=charges_paid_funds,json=chargesPaidFunds,proto3" json:"charges_paid_funds,omitempty"`
	RequestId           string  `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	InitiatorId         string  `protobuf:"bytes,6,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	Completed           bool    `protobuf:"varint,7,opt,name=completed,proto3" json:"completed,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAccountBalanceResponse) Descriptor deprecated

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

Deprecated: Use QueryAccountBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryAccountBalanceResponse) GetChargesPaidFunds

func (x *QueryAccountBalanceResponse) GetChargesPaidFunds() float32

func (*QueryAccountBalanceResponse) GetCompleted

func (x *QueryAccountBalanceResponse) GetCompleted() bool

func (*QueryAccountBalanceResponse) GetInitiatorId

func (x *QueryAccountBalanceResponse) GetInitiatorId() string

func (*QueryAccountBalanceResponse) GetParty

func (x *QueryAccountBalanceResponse) GetParty() int64

func (*QueryAccountBalanceResponse) GetRequestId

func (x *QueryAccountBalanceResponse) GetRequestId() string

func (*QueryAccountBalanceResponse) GetUtilityAccountFunds

func (x *QueryAccountBalanceResponse) GetUtilityAccountFunds() float32

func (*QueryAccountBalanceResponse) GetWorkingAccountFunds

func (x *QueryAccountBalanceResponse) GetWorkingAccountFunds() float32

func (*QueryAccountBalanceResponse) ProtoMessage

func (*QueryAccountBalanceResponse) ProtoMessage()

func (*QueryAccountBalanceResponse) ProtoReflect

func (*QueryAccountBalanceResponse) Reset

func (x *QueryAccountBalanceResponse) Reset()

func (*QueryAccountBalanceResponse) String

func (x *QueryAccountBalanceResponse) String() string

type QueryResponse

type QueryResponse struct {
	OriginatorConversionId string `` /* 129-byte string literal not displayed */
	ConversionId           string `protobuf:"bytes,2,opt,name=conversion_id,json=conversionId,proto3" json:"conversion_id,omitempty"`
	ResponseDescription    string `protobuf:"bytes,3,opt,name=response_description,json=responseDescription,proto3" json:"response_description,omitempty"`
	Success                bool   `protobuf:"varint,4,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetConversionId

func (x *QueryResponse) GetConversionId() string

func (*QueryResponse) GetOriginatorConversionId

func (x *QueryResponse) GetOriginatorConversionId() string

func (*QueryResponse) GetResponseDescription

func (x *QueryResponse) GetResponseDescription() string

func (*QueryResponse) GetSuccess

func (x *QueryResponse) GetSuccess() bool

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type QueryTransactionStatusRequest

type QueryTransactionStatusRequest struct {
	IdentifierType     QueryTransactionStatusRequest_IdentifierType `` /* 171-byte string literal not displayed */
	PartyA             int64                                        `protobuf:"varint,3,opt,name=party_a,json=partyA,proto3" json:"party_a,omitempty"`
	Remarks            string                                       `protobuf:"bytes,4,opt,name=remarks,proto3" json:"remarks,omitempty"`
	Initiator          string                                       `protobuf:"bytes,5,opt,name=initiator,proto3" json:"initiator,omitempty"`
	SecurityCredential string                                       `protobuf:"bytes,6,opt,name=security_credential,json=securityCredential,proto3" json:"security_credential,omitempty"`
	QueueTimeoutUrl    string                                       `protobuf:"bytes,7,opt,name=queue_timeout_url,json=queueTimeoutUrl,proto3" json:"queue_timeout_url,omitempty"`
	ResultUrl          string                                       `protobuf:"bytes,8,opt,name=result_url,json=resultUrl,proto3" json:"result_url,omitempty"`
	TransactionId      string                                       `protobuf:"bytes,9,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	Occassion          string                                       `protobuf:"bytes,10,opt,name=occassion,proto3" json:"occassion,omitempty"`
	Synchronous        bool                                         `protobuf:"varint,11,opt,name=synchronous,proto3" json:"synchronous,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTransactionStatusRequest) Descriptor deprecated

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

Deprecated: Use QueryTransactionStatusRequest.ProtoReflect.Descriptor instead.

func (*QueryTransactionStatusRequest) GetIdentifierType

func (*QueryTransactionStatusRequest) GetInitiator

func (x *QueryTransactionStatusRequest) GetInitiator() string

func (*QueryTransactionStatusRequest) GetOccassion

func (x *QueryTransactionStatusRequest) GetOccassion() string

func (*QueryTransactionStatusRequest) GetPartyA

func (x *QueryTransactionStatusRequest) GetPartyA() int64

func (*QueryTransactionStatusRequest) GetQueueTimeoutUrl

func (x *QueryTransactionStatusRequest) GetQueueTimeoutUrl() string

func (*QueryTransactionStatusRequest) GetRemarks

func (x *QueryTransactionStatusRequest) GetRemarks() string

func (*QueryTransactionStatusRequest) GetResultUrl

func (x *QueryTransactionStatusRequest) GetResultUrl() string

func (*QueryTransactionStatusRequest) GetSecurityCredential

func (x *QueryTransactionStatusRequest) GetSecurityCredential() string

func (*QueryTransactionStatusRequest) GetSynchronous

func (x *QueryTransactionStatusRequest) GetSynchronous() bool

func (*QueryTransactionStatusRequest) GetTransactionId

func (x *QueryTransactionStatusRequest) GetTransactionId() string

func (*QueryTransactionStatusRequest) ProtoMessage

func (*QueryTransactionStatusRequest) ProtoMessage()

func (*QueryTransactionStatusRequest) ProtoReflect

func (*QueryTransactionStatusRequest) Reset

func (x *QueryTransactionStatusRequest) Reset()

func (*QueryTransactionStatusRequest) String

type QueryTransactionStatusRequest_IdentifierType

type QueryTransactionStatusRequest_IdentifierType int32
const (
	QueryTransactionStatusRequest_QUERY_TRANSACTION_UNSPECIFIED QueryTransactionStatusRequest_IdentifierType = 0
	QueryTransactionStatusRequest_MSISDN                        QueryTransactionStatusRequest_IdentifierType = 1
	QueryTransactionStatusRequest_TILL_NUMBER                   QueryTransactionStatusRequest_IdentifierType = 2
	QueryTransactionStatusRequest_ORGANIZATION_SHORT_CODE       QueryTransactionStatusRequest_IdentifierType = 3
)

func (QueryTransactionStatusRequest_IdentifierType) Descriptor

func (QueryTransactionStatusRequest_IdentifierType) Enum

func (QueryTransactionStatusRequest_IdentifierType) EnumDescriptor deprecated

func (QueryTransactionStatusRequest_IdentifierType) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryTransactionStatusRequest_IdentifierType.Descriptor instead.

func (QueryTransactionStatusRequest_IdentifierType) Number

func (QueryTransactionStatusRequest_IdentifierType) String

func (QueryTransactionStatusRequest_IdentifierType) Type

type ReverseTransactionRequest

type ReverseTransactionRequest struct {
	ReceiverType  int64  `protobuf:"varint,1,opt,name=receiver_type,json=receiverType,proto3" json:"receiver_type,omitempty"`
	ShortCode     int32  `protobuf:"varint,2,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	Remarks       string `protobuf:"bytes,3,opt,name=remarks,proto3" json:"remarks,omitempty"`
	TransactionId string `protobuf:"bytes,4,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	Occassion     string `protobuf:"bytes,5,opt,name=occassion,proto3" json:"occassion,omitempty"`
	RequestId     string `protobuf:"bytes,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	InitiatorId   string `protobuf:"bytes,7,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	Synchronous   bool   `protobuf:"varint,8,opt,name=synchronous,proto3" json:"synchronous,omitempty"`
	// contains filtered or unexported fields
}

func (*ReverseTransactionRequest) Descriptor deprecated

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

Deprecated: Use ReverseTransactionRequest.ProtoReflect.Descriptor instead.

func (*ReverseTransactionRequest) GetInitiatorId

func (x *ReverseTransactionRequest) GetInitiatorId() string

func (*ReverseTransactionRequest) GetOccassion

func (x *ReverseTransactionRequest) GetOccassion() string

func (*ReverseTransactionRequest) GetReceiverType

func (x *ReverseTransactionRequest) GetReceiverType() int64

func (*ReverseTransactionRequest) GetRemarks

func (x *ReverseTransactionRequest) GetRemarks() string

func (*ReverseTransactionRequest) GetRequestId

func (x *ReverseTransactionRequest) GetRequestId() string

func (*ReverseTransactionRequest) GetShortCode

func (x *ReverseTransactionRequest) GetShortCode() int32

func (*ReverseTransactionRequest) GetSynchronous

func (x *ReverseTransactionRequest) GetSynchronous() bool

func (*ReverseTransactionRequest) GetTransactionId

func (x *ReverseTransactionRequest) GetTransactionId() string

func (*ReverseTransactionRequest) ProtoMessage

func (*ReverseTransactionRequest) ProtoMessage()

func (*ReverseTransactionRequest) ProtoReflect

func (*ReverseTransactionRequest) Reset

func (x *ReverseTransactionRequest) Reset()

func (*ReverseTransactionRequest) String

func (x *ReverseTransactionRequest) String() string

type StatsResponse

type StatsResponse struct {
	Stats         []*DailyStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
	NextPageToken string       `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*StatsResponse) Descriptor deprecated

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

Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.

func (*StatsResponse) GetNextPageToken

func (x *StatsResponse) GetNextPageToken() string

func (*StatsResponse) GetStats

func (x *StatsResponse) GetStats() []*DailyStat

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) ProtoReflect

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

func (*StatsResponse) Reset

func (x *StatsResponse) Reset()

func (*StatsResponse) String

func (x *StatsResponse) String() string

type TransferFundsRequest

type TransferFundsRequest struct {
	InitiatorId                   string       `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	InitiatorTransactionReference string       `` /* 150-byte string literal not displayed */
	InitiatorCustomerReference    string       `` /* 141-byte string literal not displayed */
	InitiatorCustomerNames        string       `` /* 129-byte string literal not displayed */
	Msisdn                        string       `protobuf:"bytes,5,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	Amount                        float64      `protobuf:"fixed64,6,opt,name=amount,proto3" json:"amount,omitempty"`
	ShortCode                     string       `protobuf:"bytes,7,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	Remarks                       string       `protobuf:"bytes,8,opt,name=remarks,proto3" json:"remarks,omitempty"`
	Occassion                     string       `protobuf:"bytes,9,opt,name=occassion,proto3" json:"occassion,omitempty"`
	CommandId                     CommandId    `protobuf:"varint,11,opt,name=command_id,json=commandId,proto3,enum=gidyon.mpesa.b2c.CommandId" json:"command_id,omitempty"`
	Publish                       bool         `protobuf:"varint,12,opt,name=publish,proto3" json:"publish,omitempty"`
	PublishMessage                *PublishInfo `protobuf:"bytes,13,opt,name=publish_message,json=publishMessage,proto3" json:"publish_message,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferFundsRequest) Descriptor deprecated

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

Deprecated: Use TransferFundsRequest.ProtoReflect.Descriptor instead.

func (*TransferFundsRequest) GetAmount

func (x *TransferFundsRequest) GetAmount() float64

func (*TransferFundsRequest) GetCommandId

func (x *TransferFundsRequest) GetCommandId() CommandId

func (*TransferFundsRequest) GetInitiatorCustomerNames

func (x *TransferFundsRequest) GetInitiatorCustomerNames() string

func (*TransferFundsRequest) GetInitiatorCustomerReference

func (x *TransferFundsRequest) GetInitiatorCustomerReference() string

func (*TransferFundsRequest) GetInitiatorId

func (x *TransferFundsRequest) GetInitiatorId() string

func (*TransferFundsRequest) GetInitiatorTransactionReference

func (x *TransferFundsRequest) GetInitiatorTransactionReference() string

func (*TransferFundsRequest) GetMsisdn

func (x *TransferFundsRequest) GetMsisdn() string

func (*TransferFundsRequest) GetOccassion

func (x *TransferFundsRequest) GetOccassion() string

func (*TransferFundsRequest) GetPublish

func (x *TransferFundsRequest) GetPublish() bool

func (*TransferFundsRequest) GetPublishMessage

func (x *TransferFundsRequest) GetPublishMessage() *PublishInfo

func (*TransferFundsRequest) GetRemarks

func (x *TransferFundsRequest) GetRemarks() string

func (*TransferFundsRequest) GetShortCode

func (x *TransferFundsRequest) GetShortCode() string

func (*TransferFundsRequest) ProtoMessage

func (*TransferFundsRequest) ProtoMessage()

func (*TransferFundsRequest) ProtoReflect

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

func (*TransferFundsRequest) Reset

func (x *TransferFundsRequest) Reset()

func (*TransferFundsRequest) String

func (x *TransferFundsRequest) String() string

type TransferFundsResponse

type TransferFundsResponse struct {
	Progress bool   `protobuf:"varint,1,opt,name=progress,proto3" json:"progress,omitempty"`
	Message  string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*TransferFundsResponse) Descriptor deprecated

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

Deprecated: Use TransferFundsResponse.ProtoReflect.Descriptor instead.

func (*TransferFundsResponse) GetMessage

func (x *TransferFundsResponse) GetMessage() string

func (*TransferFundsResponse) GetProgress

func (x *TransferFundsResponse) GetProgress() bool

func (*TransferFundsResponse) ProtoMessage

func (*TransferFundsResponse) ProtoMessage()

func (*TransferFundsResponse) ProtoReflect

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

func (*TransferFundsResponse) Reset

func (x *TransferFundsResponse) Reset()

func (*TransferFundsResponse) String

func (x *TransferFundsResponse) String() string

type UnimplementedB2CV2Server

type UnimplementedB2CV2Server struct {
}

UnimplementedB2CV2Server must be embedded to have forward compatible implementations.

func (UnimplementedB2CV2Server) GetB2CPayment

func (UnimplementedB2CV2Server) ListB2CPayments

func (UnimplementedB2CV2Server) ListDailyStats

func (UnimplementedB2CV2Server) ProcessB2CPayment

func (UnimplementedB2CV2Server) PublishB2CPayment

func (UnimplementedB2CV2Server) QueryTransactionStatus

func (UnimplementedB2CV2Server) ReverseTransaction

func (UnimplementedB2CV2Server) TransferFunds

type UnsafeB2CV2Server

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

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

Jump to

Keyboard shortcuts

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