v1

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 v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ProcessedState_name = map[int32]string{
		0: "PROCESS_STATE_UNSPECIFIED",
		1: "PROCESSED",
		2: "NOT_PROCESSED",
	}
	ProcessedState_value = map[string]int32{
		"PROCESS_STATE_UNSPECIFIED": 0,
		"PROCESSED":                 1,
		"NOT_PROCESSED":             2,
	}
)

Enum value maps for ProcessedState.

View Source
var File_c2b_v1_proto protoreflect.FileDescriptor

Functions

func RegisterLipaNaMPESAHandler

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

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

func RegisterLipaNaMPESAHandlerClient

func RegisterLipaNaMPESAHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LipaNaMPESAClient) error

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

func RegisterLipaNaMPESAHandlerFromEndpoint

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

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

func RegisterLipaNaMPESAHandlerServer

func RegisterLipaNaMPESAHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LipaNaMPESAServer) error

RegisterLipaNaMPESAHandlerServer registers the http handlers for service LipaNaMPESA to "mux". UnaryRPC :call LipaNaMPESAServer 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 RegisterLipaNaMPESAHandlerFromEndpoint instead.

func RegisterLipaNaMPESAServer

func RegisterLipaNaMPESAServer(s grpc.ServiceRegistrar, srv LipaNaMPESAServer)

Types

type ArchiveTransactionsRequest

type ArchiveTransactionsRequest struct {
	FromTimeSeconds int64    `protobuf:"varint,1,opt,name=from_time_seconds,json=fromTimeSeconds,proto3" json:"from_time_seconds,omitempty"`
	ToTimeSeconds   int64    `protobuf:"varint,2,opt,name=to_time_seconds,json=toTimeSeconds,proto3" json:"to_time_seconds,omitempty"`
	RefNumbers      []string `protobuf:"bytes,3,rep,name=ref_numbers,json=refNumbers,proto3" json:"ref_numbers,omitempty"`
	ArchiveName     string   `protobuf:"bytes,4,opt,name=archive_name,json=archiveName,proto3" json:"archive_name,omitempty"`
	GenerateStat    bool     `protobuf:"varint,5,opt,name=generate_stat,json=generateStat,proto3" json:"generate_stat,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchiveTransactionsRequest) Descriptor deprecated

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

Deprecated: Use ArchiveTransactionsRequest.ProtoReflect.Descriptor instead.

func (*ArchiveTransactionsRequest) GetArchiveName

func (x *ArchiveTransactionsRequest) GetArchiveName() string

func (*ArchiveTransactionsRequest) GetFromTimeSeconds

func (x *ArchiveTransactionsRequest) GetFromTimeSeconds() int64

func (*ArchiveTransactionsRequest) GetGenerateStat

func (x *ArchiveTransactionsRequest) GetGenerateStat() bool

func (*ArchiveTransactionsRequest) GetRefNumbers

func (x *ArchiveTransactionsRequest) GetRefNumbers() []string

func (*ArchiveTransactionsRequest) GetToTimeSeconds

func (x *ArchiveTransactionsRequest) GetToTimeSeconds() int64

func (*ArchiveTransactionsRequest) ProtoMessage

func (*ArchiveTransactionsRequest) ProtoMessage()

func (*ArchiveTransactionsRequest) ProtoReflect

func (*ArchiveTransactionsRequest) Reset

func (x *ArchiveTransactionsRequest) Reset()

func (*ArchiveTransactionsRequest) String

func (x *ArchiveTransactionsRequest) String() string

type BlastFile

type BlastFile struct {
	FileId            string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	ReferenceName     string `protobuf:"bytes,2,opt,name=reference_name,json=referenceName,proto3" json:"reference_name,omitempty"`
	FileName          string `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	UploaderNames     string `protobuf:"bytes,4,opt,name=uploader_names,json=uploaderNames,proto3" json:"uploader_names,omitempty"`
	UploadTimeSeconds int64  `protobuf:"varint,5,opt,name=upload_time_seconds,json=uploadTimeSeconds,proto3" json:"upload_time_seconds,omitempty"`
	TotalMsisdn       int32  `protobuf:"varint,6,opt,name=total_msisdn,json=totalMsisdn,proto3" json:"total_msisdn,omitempty"`
	// contains filtered or unexported fields
}

func (*BlastFile) Descriptor deprecated

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

Deprecated: Use BlastFile.ProtoReflect.Descriptor instead.

func (*BlastFile) GetFileId

func (x *BlastFile) GetFileId() string

func (*BlastFile) GetFileName

func (x *BlastFile) GetFileName() string

func (*BlastFile) GetReferenceName

func (x *BlastFile) GetReferenceName() string

func (*BlastFile) GetTotalMsisdn

func (x *BlastFile) GetTotalMsisdn() int32

func (*BlastFile) GetUploadTimeSeconds

func (x *BlastFile) GetUploadTimeSeconds() int64

func (*BlastFile) GetUploaderNames

func (x *BlastFile) GetUploaderNames() string

func (*BlastFile) ProtoMessage

func (*BlastFile) ProtoMessage()

func (*BlastFile) ProtoReflect

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

func (*BlastFile) Reset

func (x *BlastFile) Reset()

func (*BlastFile) String

func (x *BlastFile) String() string

type BlastPhonesFromFileRequest

type BlastPhonesFromFileRequest struct {
	Comment      string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Originator   string `protobuf:"bytes,3,opt,name=originator,proto3" json:"originator,omitempty"`
	OriginatorId string `protobuf:"bytes,4,opt,name=originator_id,json=originatorId,proto3" json:"originator_id,omitempty"`
	FileId       string `protobuf:"bytes,5,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	StartIndex   int32  `protobuf:"varint,6,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
	EndIndex     int32  `protobuf:"varint,7,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"`
	// contains filtered or unexported fields
}

func (*BlastPhonesFromFileRequest) Descriptor deprecated

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

Deprecated: Use BlastPhonesFromFileRequest.ProtoReflect.Descriptor instead.

func (*BlastPhonesFromFileRequest) GetComment

func (x *BlastPhonesFromFileRequest) GetComment() string

func (*BlastPhonesFromFileRequest) GetEndIndex

func (x *BlastPhonesFromFileRequest) GetEndIndex() int32

func (*BlastPhonesFromFileRequest) GetFileId

func (x *BlastPhonesFromFileRequest) GetFileId() string

func (*BlastPhonesFromFileRequest) GetOriginator

func (x *BlastPhonesFromFileRequest) GetOriginator() string

func (*BlastPhonesFromFileRequest) GetOriginatorId

func (x *BlastPhonesFromFileRequest) GetOriginatorId() string

func (*BlastPhonesFromFileRequest) GetStartIndex

func (x *BlastPhonesFromFileRequest) GetStartIndex() int32

func (*BlastPhonesFromFileRequest) ProtoMessage

func (*BlastPhonesFromFileRequest) ProtoMessage()

func (*BlastPhonesFromFileRequest) ProtoReflect

func (*BlastPhonesFromFileRequest) Reset

func (x *BlastPhonesFromFileRequest) Reset()

func (*BlastPhonesFromFileRequest) String

func (x *BlastPhonesFromFileRequest) String() string

type BlastPhonesRequest

type BlastPhonesRequest struct {
	ExportFilter *ListC2BPaymentsFilter `protobuf:"bytes,1,opt,name=export_filter,json=exportFilter,proto3" json:"export_filter,omitempty"`
	Comment      string                 `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Originator   string                 `protobuf:"bytes,3,opt,name=originator,proto3" json:"originator,omitempty"`
	OriginatorId string                 `protobuf:"bytes,4,opt,name=originator_id,json=originatorId,proto3" json:"originator_id,omitempty"`
	// contains filtered or unexported fields
}

func (*BlastPhonesRequest) Descriptor deprecated

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

Deprecated: Use BlastPhonesRequest.ProtoReflect.Descriptor instead.

func (*BlastPhonesRequest) GetComment

func (x *BlastPhonesRequest) GetComment() string

func (*BlastPhonesRequest) GetExportFilter

func (x *BlastPhonesRequest) GetExportFilter() *ListC2BPaymentsFilter

func (*BlastPhonesRequest) GetOriginator

func (x *BlastPhonesRequest) GetOriginator() string

func (*BlastPhonesRequest) GetOriginatorId

func (x *BlastPhonesRequest) GetOriginatorId() string

func (*BlastPhonesRequest) ProtoMessage

func (*BlastPhonesRequest) ProtoMessage()

func (*BlastPhonesRequest) ProtoReflect

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

func (*BlastPhonesRequest) Reset

func (x *BlastPhonesRequest) Reset()

func (*BlastPhonesRequest) String

func (x *BlastPhonesRequest) String() string

type BlastReport

type BlastReport struct {
	ReportId          string                 `protobuf:"bytes,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"`
	Comment           string                 `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	Initiator         string                 `protobuf:"bytes,3,opt,name=initiator,proto3" json:"initiator,omitempty"`
	Originator        string                 `protobuf:"bytes,4,opt,name=originator,proto3" json:"originator,omitempty"`
	Source            string                 `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"`
	BlastFile         string                 `protobuf:"bytes,6,opt,name=blast_file,json=blastFile,proto3" json:"blast_file,omitempty"`
	BlastFileId       string                 `protobuf:"bytes,7,opt,name=blast_file_id,json=blastFileId,proto3" json:"blast_file_id,omitempty"`
	TotalExported     int32                  `protobuf:"varint,9,opt,name=total_exported,json=totalExported,proto3" json:"total_exported,omitempty"`
	CreateDateSeconds int64                  `protobuf:"varint,10,opt,name=create_date_seconds,json=createDateSeconds,proto3" json:"create_date_seconds,omitempty"`
	ExportFilter      *ListC2BPaymentsFilter `protobuf:"bytes,11,opt,name=export_filter,json=exportFilter,proto3" json:"export_filter,omitempty"`
	// contains filtered or unexported fields
}

func (*BlastReport) Descriptor deprecated

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

Deprecated: Use BlastReport.ProtoReflect.Descriptor instead.

func (*BlastReport) GetBlastFile

func (x *BlastReport) GetBlastFile() string

func (*BlastReport) GetBlastFileId

func (x *BlastReport) GetBlastFileId() string

func (*BlastReport) GetComment

func (x *BlastReport) GetComment() string

func (*BlastReport) GetCreateDateSeconds

func (x *BlastReport) GetCreateDateSeconds() int64

func (*BlastReport) GetExportFilter

func (x *BlastReport) GetExportFilter() *ListC2BPaymentsFilter

func (*BlastReport) GetInitiator

func (x *BlastReport) GetInitiator() string

func (*BlastReport) GetOriginator

func (x *BlastReport) GetOriginator() string

func (*BlastReport) GetReportId

func (x *BlastReport) GetReportId() string

func (*BlastReport) GetSource

func (x *BlastReport) GetSource() string

func (*BlastReport) GetTotalExported

func (x *BlastReport) GetTotalExported() int32

func (*BlastReport) ProtoMessage

func (*BlastReport) ProtoMessage()

func (*BlastReport) ProtoReflect

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

func (*BlastReport) Reset

func (x *BlastReport) Reset()

func (*BlastReport) String

func (x *BlastReport) String() string

type C2BPayment

type C2BPayment struct {
	PaymentId              string  `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	TransactionType        string  `protobuf:"bytes,2,opt,name=transaction_type,json=transactionType,proto3" json:"transaction_type,omitempty"`
	TransactionId          string  `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	Msisdn                 string  `protobuf:"bytes,4,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	Names                  string  `protobuf:"bytes,5,opt,name=names,proto3" json:"names,omitempty"`
	RefNumber              string  `protobuf:"bytes,6,opt,name=ref_number,json=refNumber,proto3" json:"ref_number,omitempty"`
	TransactionTimeSeconds int64   `` /* 130-byte string literal not displayed */
	CreateTimeSeconds      int64   `protobuf:"varint,8,opt,name=create_time_seconds,json=createTimeSeconds,proto3" json:"create_time_seconds,omitempty"`
	Amount                 float32 `protobuf:"fixed32,9,opt,name=amount,proto3" json:"amount,omitempty"`
	OrgBalance             float32 `protobuf:"fixed32,10,opt,name=org_balance,json=orgBalance,proto3" json:"org_balance,omitempty"`
	BusinessShortCode      int32   `protobuf:"varint,11,opt,name=business_short_code,json=businessShortCode,proto3" json:"business_short_code,omitempty"`
	Processed              bool    `protobuf:"varint,12,opt,name=processed,proto3" json:"processed,omitempty"`
	// contains filtered or unexported fields
}

func (*C2BPayment) Descriptor deprecated

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

Deprecated: Use C2BPayment.ProtoReflect.Descriptor instead.

func (*C2BPayment) GetAmount

func (x *C2BPayment) GetAmount() float32

func (*C2BPayment) GetBusinessShortCode

func (x *C2BPayment) GetBusinessShortCode() int32

func (*C2BPayment) GetCreateTimeSeconds

func (x *C2BPayment) GetCreateTimeSeconds() int64

func (*C2BPayment) GetMsisdn

func (x *C2BPayment) GetMsisdn() string

func (*C2BPayment) GetNames

func (x *C2BPayment) GetNames() string

func (*C2BPayment) GetOrgBalance

func (x *C2BPayment) GetOrgBalance() float32

func (*C2BPayment) GetPaymentId

func (x *C2BPayment) GetPaymentId() string

func (*C2BPayment) GetProcessed

func (x *C2BPayment) GetProcessed() bool

func (*C2BPayment) GetRefNumber

func (x *C2BPayment) GetRefNumber() string

func (*C2BPayment) GetTransactionId

func (x *C2BPayment) GetTransactionId() string

func (*C2BPayment) GetTransactionTimeSeconds

func (x *C2BPayment) GetTransactionTimeSeconds() int64

func (*C2BPayment) GetTransactionType

func (x *C2BPayment) GetTransactionType() string

func (*C2BPayment) ProtoMessage

func (*C2BPayment) ProtoMessage()

func (*C2BPayment) ProtoReflect

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

func (*C2BPayment) Reset

func (x *C2BPayment) Reset()

func (*C2BPayment) String

func (x *C2BPayment) String() string

type CreateC2BPaymentRequest

type CreateC2BPaymentRequest struct {
	MpesaPayment *C2BPayment `protobuf:"bytes,1,opt,name=mpesa_payment,json=mpesaPayment,proto3" json:"mpesa_payment,omitempty"`
	Publish      bool        `protobuf:"varint,2,opt,name=publish,proto3" json:"publish,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateC2BPaymentRequest) Descriptor deprecated

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

Deprecated: Use CreateC2BPaymentRequest.ProtoReflect.Descriptor instead.

func (*CreateC2BPaymentRequest) GetMpesaPayment

func (x *CreateC2BPaymentRequest) GetMpesaPayment() *C2BPayment

func (*CreateC2BPaymentRequest) GetPublish

func (x *CreateC2BPaymentRequest) GetPublish() bool

func (*CreateC2BPaymentRequest) ProtoMessage

func (*CreateC2BPaymentRequest) ProtoMessage()

func (*CreateC2BPaymentRequest) ProtoReflect

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

func (*CreateC2BPaymentRequest) Reset

func (x *CreateC2BPaymentRequest) Reset()

func (*CreateC2BPaymentRequest) String

func (x *CreateC2BPaymentRequest) String() string

type CreateC2BPaymentResponse

type CreateC2BPaymentResponse struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateC2BPaymentResponse) Descriptor deprecated

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

Deprecated: Use CreateC2BPaymentResponse.ProtoReflect.Descriptor instead.

func (*CreateC2BPaymentResponse) GetPaymentId

func (x *CreateC2BPaymentResponse) GetPaymentId() string

func (*CreateC2BPaymentResponse) ProtoMessage

func (*CreateC2BPaymentResponse) ProtoMessage()

func (*CreateC2BPaymentResponse) ProtoReflect

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

func (*CreateC2BPaymentResponse) Reset

func (x *CreateC2BPaymentResponse) Reset()

func (*CreateC2BPaymentResponse) String

func (x *CreateC2BPaymentResponse) String() string

type ExistC2BPaymentRequest

type ExistC2BPaymentRequest struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ExistC2BPaymentRequest) Descriptor deprecated

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

Deprecated: Use ExistC2BPaymentRequest.ProtoReflect.Descriptor instead.

func (*ExistC2BPaymentRequest) GetPaymentId

func (x *ExistC2BPaymentRequest) GetPaymentId() string

func (*ExistC2BPaymentRequest) ProtoMessage

func (*ExistC2BPaymentRequest) ProtoMessage()

func (*ExistC2BPaymentRequest) ProtoReflect

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

func (*ExistC2BPaymentRequest) Reset

func (x *ExistC2BPaymentRequest) Reset()

func (*ExistC2BPaymentRequest) String

func (x *ExistC2BPaymentRequest) String() string

type ExistC2BPaymentResponse

type ExistC2BPaymentResponse struct {
	Exists bool    `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	Amount float32 `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ExistC2BPaymentResponse) Descriptor deprecated

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

Deprecated: Use ExistC2BPaymentResponse.ProtoReflect.Descriptor instead.

func (*ExistC2BPaymentResponse) GetAmount

func (x *ExistC2BPaymentResponse) GetAmount() float32

func (*ExistC2BPaymentResponse) GetExists

func (x *ExistC2BPaymentResponse) GetExists() bool

func (*ExistC2BPaymentResponse) ProtoMessage

func (*ExistC2BPaymentResponse) ProtoMessage()

func (*ExistC2BPaymentResponse) ProtoReflect

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

func (*ExistC2BPaymentResponse) Reset

func (x *ExistC2BPaymentResponse) Reset()

func (*ExistC2BPaymentResponse) String

func (x *ExistC2BPaymentResponse) String() string

type GetC2BPaymentRequest

type GetC2BPaymentRequest struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetC2BPaymentRequest) Descriptor deprecated

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

Deprecated: Use GetC2BPaymentRequest.ProtoReflect.Descriptor instead.

func (*GetC2BPaymentRequest) GetPaymentId

func (x *GetC2BPaymentRequest) GetPaymentId() string

func (*GetC2BPaymentRequest) ProtoMessage

func (*GetC2BPaymentRequest) ProtoMessage()

func (*GetC2BPaymentRequest) ProtoReflect

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

func (*GetC2BPaymentRequest) Reset

func (x *GetC2BPaymentRequest) Reset()

func (*GetC2BPaymentRequest) String

func (x *GetC2BPaymentRequest) String() string

type GetRandomTransactionRequest

type GetRandomTransactionRequest struct {
	AccountsNumber   []string `protobuf:"bytes,1,rep,name=accounts_number,json=accountsNumber,proto3" json:"accounts_number,omitempty"`
	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"`
	Amount           float32  `protobuf:"fixed32,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRandomTransactionRequest) Descriptor deprecated

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

Deprecated: Use GetRandomTransactionRequest.ProtoReflect.Descriptor instead.

func (*GetRandomTransactionRequest) GetAccountsNumber

func (x *GetRandomTransactionRequest) GetAccountsNumber() []string

func (*GetRandomTransactionRequest) GetAmount

func (x *GetRandomTransactionRequest) GetAmount() float32

func (*GetRandomTransactionRequest) GetEndTimeSeconds

func (x *GetRandomTransactionRequest) GetEndTimeSeconds() int64

func (*GetRandomTransactionRequest) GetStartTimeSeconds

func (x *GetRandomTransactionRequest) GetStartTimeSeconds() int64

func (*GetRandomTransactionRequest) ProtoMessage

func (*GetRandomTransactionRequest) ProtoMessage()

func (*GetRandomTransactionRequest) ProtoReflect

func (*GetRandomTransactionRequest) Reset

func (x *GetRandomTransactionRequest) Reset()

func (*GetRandomTransactionRequest) String

func (x *GetRandomTransactionRequest) String() string

type GetScopesRequest

type GetScopesRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScopesRequest) Descriptor deprecated

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

Deprecated: Use GetScopesRequest.ProtoReflect.Descriptor instead.

func (*GetScopesRequest) GetUserId

func (x *GetScopesRequest) GetUserId() string

func (*GetScopesRequest) ProtoMessage

func (*GetScopesRequest) ProtoMessage()

func (*GetScopesRequest) ProtoReflect

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

func (*GetScopesRequest) Reset

func (x *GetScopesRequest) Reset()

func (*GetScopesRequest) String

func (x *GetScopesRequest) String() string

type GetScopesResponse

type GetScopesResponse struct {
	Scopes *Scopes `protobuf:"bytes,1,opt,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetScopesResponse) Descriptor deprecated

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

Deprecated: Use GetScopesResponse.ProtoReflect.Descriptor instead.

func (*GetScopesResponse) GetScopes

func (x *GetScopesResponse) GetScopes() *Scopes

func (*GetScopesResponse) ProtoMessage

func (*GetScopesResponse) ProtoMessage()

func (*GetScopesResponse) ProtoReflect

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

func (*GetScopesResponse) Reset

func (x *GetScopesResponse) Reset()

func (*GetScopesResponse) String

func (x *GetScopesResponse) String() string

type GetStatsRequest

type GetStatsRequest struct {
	Dates       []string `protobuf:"bytes,1,rep,name=dates,proto3" json:"dates,omitempty"`
	ShortCode   string   `protobuf:"bytes,2,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	AccountName string   `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatsRequest) Descriptor deprecated

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

Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.

func (*GetStatsRequest) GetAccountName

func (x *GetStatsRequest) GetAccountName() string

func (*GetStatsRequest) GetDates

func (x *GetStatsRequest) GetDates() []string

func (*GetStatsRequest) GetShortCode

func (x *GetStatsRequest) GetShortCode() string

func (*GetStatsRequest) ProtoMessage

func (*GetStatsRequest) ProtoMessage()

func (*GetStatsRequest) ProtoReflect

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

func (*GetStatsRequest) Reset

func (x *GetStatsRequest) Reset()

func (*GetStatsRequest) String

func (x *GetStatsRequest) String() string

type GetTransactionsCountRequest

type GetTransactionsCountRequest struct {
	AccountsNumber   []string  `protobuf:"bytes,1,rep,name=accounts_number,json=accountsNumber,proto3" json:"accounts_number,omitempty"`
	ShortCodes       []string  `protobuf:"bytes,2,rep,name=short_codes,json=shortCodes,proto3" json:"short_codes,omitempty"`
	Msisdns          []string  `protobuf:"bytes,3,rep,name=msisdns,proto3" json:"msisdns,omitempty"`
	Amounts          []float32 `protobuf:"fixed32,4,rep,packed,name=amounts,proto3" json:"amounts,omitempty"`
	StartTimeSeconds int64     `protobuf:"varint,5,opt,name=start_time_seconds,json=startTimeSeconds,proto3" json:"start_time_seconds,omitempty"`
	EndTimeSeconds   int64     `protobuf:"varint,6,opt,name=end_time_seconds,json=endTimeSeconds,proto3" json:"end_time_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTransactionsCountRequest) Descriptor deprecated

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

Deprecated: Use GetTransactionsCountRequest.ProtoReflect.Descriptor instead.

func (*GetTransactionsCountRequest) GetAccountsNumber

func (x *GetTransactionsCountRequest) GetAccountsNumber() []string

func (*GetTransactionsCountRequest) GetAmounts

func (x *GetTransactionsCountRequest) GetAmounts() []float32

func (*GetTransactionsCountRequest) GetEndTimeSeconds

func (x *GetTransactionsCountRequest) GetEndTimeSeconds() int64

func (*GetTransactionsCountRequest) GetMsisdns

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

func (*GetTransactionsCountRequest) GetShortCodes

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

func (*GetTransactionsCountRequest) GetStartTimeSeconds

func (x *GetTransactionsCountRequest) GetStartTimeSeconds() int64

func (*GetTransactionsCountRequest) ProtoMessage

func (*GetTransactionsCountRequest) ProtoMessage()

func (*GetTransactionsCountRequest) ProtoReflect

func (*GetTransactionsCountRequest) Reset

func (x *GetTransactionsCountRequest) Reset()

func (*GetTransactionsCountRequest) String

func (x *GetTransactionsCountRequest) String() string

type LipaNaMPESAClient

type LipaNaMPESAClient interface {
	// Creates a record of mpesa payment.
	CreateC2BPayment(ctx context.Context, in *CreateC2BPaymentRequest, opts ...grpc.CallOption) (*CreateC2BPaymentResponse, error)
	// Retrieves MPESA payment.
	GetC2BPayment(ctx context.Context, in *GetC2BPaymentRequest, opts ...grpc.CallOption) (*C2BPayment, error)
	// Checks whether c2b payment exists
	ExistC2BPayment(ctx context.Context, in *ExistC2BPaymentRequest, opts ...grpc.CallOption) (*ExistC2BPaymentResponse, error)
	// Retrieves a collection of MPESA payments.
	ListC2BPayments(ctx context.Context, in *ListC2BPaymentsRequest, opts ...grpc.CallOption) (*ListC2BPaymentsResponse, error)
	// Saves scopes for a user.
	SaveScopes(ctx context.Context, in *SaveScopesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Retrieves scopes for a user.
	GetScopes(ctx context.Context, in *GetScopesRequest, opts ...grpc.CallOption) (*GetScopesResponse, error)
	// Updates Mpesa transaction processed state to either true or false.
	ProcessC2BPayment(ctx context.Context, in *ProcessC2BPaymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Publishes Mpesa statement for listeners to process. Safe to be called many
	// times.
	PublishC2BPayment(ctx context.Context, in *PublishC2BPaymentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Publish all failed Mpesa transaction for listeners to process.
	PublishAllC2BPayments(ctx context.Context, in *PublishAllC2BPaymentsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get transactions count summary
	GetTransactionsCount(ctx context.Context, in *GetTransactionsCountRequest, opts ...grpc.CallOption) (*TransactionsSummary, error)
	// Retrives a random transaction using RM=NG algorithm
	GetRandomTransaction(ctx context.Context, in *GetRandomTransactionRequest, opts ...grpc.CallOption) (*C2BPayment, error)
	// Archives transactions in a separate table`
	ArchiveTransactions(ctx context.Context, in *ArchiveTransactionsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get statistics for transactions
	GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*StatsResponse, error)
	// Retrieves a collection of statistics
	ListStats(ctx context.Context, in *ListStatsRequest, opts ...grpc.CallOption) (*StatsResponse, error)
	// Sends SMS to filtered msisdn
	BlastPhones(ctx context.Context, in *BlastPhonesRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Sends SMS using contents of file
	BlastPhonesFromFile(ctx context.Context, in *BlastPhonesFromFileRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Fetches a collection of export reports
	ListBlastReports(ctx context.Context, in *ListBlastReportsRequest, opts ...grpc.CallOption) (*ListBlastReportsResponse, error)
	// Retrieves list of blas
	ListBlastFiles(ctx context.Context, in *ListBlastFilesRequest, opts ...grpc.CallOption) (*ListBlastFilesResponse, error)
}

LipaNaMPESAClient is the client API for LipaNaMPESA 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.

type LipaNaMPESAServer

type LipaNaMPESAServer interface {
	// Creates a record of mpesa payment.
	CreateC2BPayment(context.Context, *CreateC2BPaymentRequest) (*CreateC2BPaymentResponse, error)
	// Retrieves MPESA payment.
	GetC2BPayment(context.Context, *GetC2BPaymentRequest) (*C2BPayment, error)
	// Checks whether c2b payment exists
	ExistC2BPayment(context.Context, *ExistC2BPaymentRequest) (*ExistC2BPaymentResponse, error)
	// Retrieves a collection of MPESA payments.
	ListC2BPayments(context.Context, *ListC2BPaymentsRequest) (*ListC2BPaymentsResponse, error)
	// Saves scopes for a user.
	SaveScopes(context.Context, *SaveScopesRequest) (*emptypb.Empty, error)
	// Retrieves scopes for a user.
	GetScopes(context.Context, *GetScopesRequest) (*GetScopesResponse, error)
	// Updates Mpesa transaction processed state to either true or false.
	ProcessC2BPayment(context.Context, *ProcessC2BPaymentRequest) (*emptypb.Empty, error)
	// Publishes Mpesa statement for listeners to process. Safe to be called many
	// times.
	PublishC2BPayment(context.Context, *PublishC2BPaymentRequest) (*emptypb.Empty, error)
	// Publish all failed Mpesa transaction for listeners to process.
	PublishAllC2BPayments(context.Context, *PublishAllC2BPaymentsRequest) (*emptypb.Empty, error)
	// Get transactions count summary
	GetTransactionsCount(context.Context, *GetTransactionsCountRequest) (*TransactionsSummary, error)
	// Retrives a random transaction using RM=NG algorithm
	GetRandomTransaction(context.Context, *GetRandomTransactionRequest) (*C2BPayment, error)
	// Archives transactions in a separate table`
	ArchiveTransactions(context.Context, *ArchiveTransactionsRequest) (*emptypb.Empty, error)
	// Get statistics for transactions
	GetStats(context.Context, *GetStatsRequest) (*StatsResponse, error)
	// Retrieves a collection of statistics
	ListStats(context.Context, *ListStatsRequest) (*StatsResponse, error)
	// Sends SMS to filtered msisdn
	BlastPhones(context.Context, *BlastPhonesRequest) (*emptypb.Empty, error)
	// Sends SMS using contents of file
	BlastPhonesFromFile(context.Context, *BlastPhonesFromFileRequest) (*emptypb.Empty, error)
	// Fetches a collection of export reports
	ListBlastReports(context.Context, *ListBlastReportsRequest) (*ListBlastReportsResponse, error)
	// Retrieves list of blas
	ListBlastFiles(context.Context, *ListBlastFilesRequest) (*ListBlastFilesResponse, error)
	// contains filtered or unexported methods
}

LipaNaMPESAServer is the server API for LipaNaMPESA service. All implementations must embed UnimplementedLipaNaMPESAServer for forward compatibility

type ListBlastFilesRequest

type ListBlastFilesRequest 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"`
	// contains filtered or unexported fields
}

func (*ListBlastFilesRequest) Descriptor deprecated

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

Deprecated: Use ListBlastFilesRequest.ProtoReflect.Descriptor instead.

func (*ListBlastFilesRequest) GetPageSize

func (x *ListBlastFilesRequest) GetPageSize() int32

func (*ListBlastFilesRequest) GetPageToken

func (x *ListBlastFilesRequest) GetPageToken() string

func (*ListBlastFilesRequest) ProtoMessage

func (*ListBlastFilesRequest) ProtoMessage()

func (*ListBlastFilesRequest) ProtoReflect

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

func (*ListBlastFilesRequest) Reset

func (x *ListBlastFilesRequest) Reset()

func (*ListBlastFilesRequest) String

func (x *ListBlastFilesRequest) String() string

type ListBlastFilesResponse

type ListBlastFilesResponse struct {
	BlastFiles    []*BlastFile `protobuf:"bytes,1,rep,name=blast_files,json=blastFiles,proto3" json:"blast_files,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 (*ListBlastFilesResponse) Descriptor deprecated

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

Deprecated: Use ListBlastFilesResponse.ProtoReflect.Descriptor instead.

func (*ListBlastFilesResponse) GetBlastFiles

func (x *ListBlastFilesResponse) GetBlastFiles() []*BlastFile

func (*ListBlastFilesResponse) GetNextPageToken

func (x *ListBlastFilesResponse) GetNextPageToken() string

func (*ListBlastFilesResponse) ProtoMessage

func (*ListBlastFilesResponse) ProtoMessage()

func (*ListBlastFilesResponse) ProtoReflect

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

func (*ListBlastFilesResponse) Reset

func (x *ListBlastFilesResponse) Reset()

func (*ListBlastFilesResponse) String

func (x *ListBlastFilesResponse) String() string

type ListBlastReportsRequest

type ListBlastReportsRequest 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"`
	// contains filtered or unexported fields
}

func (*ListBlastReportsRequest) Descriptor deprecated

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

Deprecated: Use ListBlastReportsRequest.ProtoReflect.Descriptor instead.

func (*ListBlastReportsRequest) GetPageSize

func (x *ListBlastReportsRequest) GetPageSize() int32

func (*ListBlastReportsRequest) GetPageToken

func (x *ListBlastReportsRequest) GetPageToken() string

func (*ListBlastReportsRequest) ProtoMessage

func (*ListBlastReportsRequest) ProtoMessage()

func (*ListBlastReportsRequest) ProtoReflect

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

func (*ListBlastReportsRequest) Reset

func (x *ListBlastReportsRequest) Reset()

func (*ListBlastReportsRequest) String

func (x *ListBlastReportsRequest) String() string

type ListBlastReportsResponse

type ListBlastReportsResponse struct {
	BlastReports  []*BlastReport `protobuf:"bytes,1,rep,name=blast_reports,json=blastReports,proto3" json:"blast_reports,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 (*ListBlastReportsResponse) Descriptor deprecated

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

Deprecated: Use ListBlastReportsResponse.ProtoReflect.Descriptor instead.

func (*ListBlastReportsResponse) GetBlastReports

func (x *ListBlastReportsResponse) GetBlastReports() []*BlastReport

func (*ListBlastReportsResponse) GetNextPageToken

func (x *ListBlastReportsResponse) GetNextPageToken() string

func (*ListBlastReportsResponse) ProtoMessage

func (*ListBlastReportsResponse) ProtoMessage()

func (*ListBlastReportsResponse) ProtoReflect

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

func (*ListBlastReportsResponse) Reset

func (x *ListBlastReportsResponse) Reset()

func (*ListBlastReportsResponse) String

func (x *ListBlastReportsResponse) String() string

type ListC2BPaymentsFilter

type ListC2BPaymentsFilter 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"`
	AccountsNumber   []string       `protobuf:"bytes,3,rep,name=accounts_number,json=accountsNumber,proto3" json:"accounts_number,omitempty"`
	ShortCodes       []string       `protobuf:"bytes,4,rep,name=short_codes,json=shortCodes,proto3" json:"short_codes,omitempty"`
	Amounts          []float32      `protobuf:"fixed32,5,rep,packed,name=amounts,proto3" json:"amounts,omitempty"`
	ProcessState     ProcessedState `` /* 131-byte string literal not displayed */
	StartTimeSeconds int64          `protobuf:"varint,7,opt,name=start_time_seconds,json=startTimeSeconds,proto3" json:"start_time_seconds,omitempty"`
	EndTimeSeconds   int64          `protobuf:"varint,8,opt,name=end_time_seconds,json=endTimeSeconds,proto3" json:"end_time_seconds,omitempty"`
	OnlyUnique       bool           `protobuf:"varint,9,opt,name=only_unique,json=onlyUnique,proto3" json:"only_unique,omitempty"`
	// contains filtered or unexported fields
}

func (*ListC2BPaymentsFilter) Descriptor deprecated

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

Deprecated: Use ListC2BPaymentsFilter.ProtoReflect.Descriptor instead.

func (*ListC2BPaymentsFilter) GetAccountsNumber

func (x *ListC2BPaymentsFilter) GetAccountsNumber() []string

func (*ListC2BPaymentsFilter) GetAmounts

func (x *ListC2BPaymentsFilter) GetAmounts() []float32

func (*ListC2BPaymentsFilter) GetEndTimeSeconds

func (x *ListC2BPaymentsFilter) GetEndTimeSeconds() int64

func (*ListC2BPaymentsFilter) GetMsisdns

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

func (*ListC2BPaymentsFilter) GetOnlyUnique

func (x *ListC2BPaymentsFilter) GetOnlyUnique() bool

func (*ListC2BPaymentsFilter) GetProcessState

func (x *ListC2BPaymentsFilter) GetProcessState() ProcessedState

func (*ListC2BPaymentsFilter) GetShortCodes

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

func (*ListC2BPaymentsFilter) GetStartTimeSeconds

func (x *ListC2BPaymentsFilter) GetStartTimeSeconds() int64

func (*ListC2BPaymentsFilter) GetTxDate

func (x *ListC2BPaymentsFilter) GetTxDate() string

func (*ListC2BPaymentsFilter) ProtoMessage

func (*ListC2BPaymentsFilter) ProtoMessage()

func (*ListC2BPaymentsFilter) ProtoReflect

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

func (*ListC2BPaymentsFilter) Reset

func (x *ListC2BPaymentsFilter) Reset()

func (*ListC2BPaymentsFilter) String

func (x *ListC2BPaymentsFilter) String() string

type ListC2BPaymentsRequest

type ListC2BPaymentsRequest 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    *ListC2BPaymentsFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListC2BPaymentsRequest) Descriptor deprecated

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

Deprecated: Use ListC2BPaymentsRequest.ProtoReflect.Descriptor instead.

func (*ListC2BPaymentsRequest) GetFilter

func (*ListC2BPaymentsRequest) GetPageSize

func (x *ListC2BPaymentsRequest) GetPageSize() int32

func (*ListC2BPaymentsRequest) GetPageToken

func (x *ListC2BPaymentsRequest) GetPageToken() string

func (*ListC2BPaymentsRequest) ProtoMessage

func (*ListC2BPaymentsRequest) ProtoMessage()

func (*ListC2BPaymentsRequest) ProtoReflect

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

func (*ListC2BPaymentsRequest) Reset

func (x *ListC2BPaymentsRequest) Reset()

func (*ListC2BPaymentsRequest) String

func (x *ListC2BPaymentsRequest) String() string

type ListC2BPaymentsResponse

type ListC2BPaymentsResponse struct {
	NextPageToken string        `protobuf:"bytes,1,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	MpesaPayments []*C2BPayment `protobuf:"bytes,2,rep,name=mpesa_payments,json=mpesaPayments,proto3" json:"mpesa_payments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListC2BPaymentsResponse) Descriptor deprecated

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

Deprecated: Use ListC2BPaymentsResponse.ProtoReflect.Descriptor instead.

func (*ListC2BPaymentsResponse) GetMpesaPayments

func (x *ListC2BPaymentsResponse) GetMpesaPayments() []*C2BPayment

func (*ListC2BPaymentsResponse) GetNextPageToken

func (x *ListC2BPaymentsResponse) GetNextPageToken() string

func (*ListC2BPaymentsResponse) ProtoMessage

func (*ListC2BPaymentsResponse) ProtoMessage()

func (*ListC2BPaymentsResponse) ProtoReflect

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

func (*ListC2BPaymentsResponse) Reset

func (x *ListC2BPaymentsResponse) Reset()

func (*ListC2BPaymentsResponse) String

func (x *ListC2BPaymentsResponse) String() string

type ListStatsFilter

type ListStatsFilter struct {
	ShortCodes       []string `protobuf:"bytes,1,rep,name=short_codes,json=shortCodes,proto3" json:"short_codes,omitempty"`
	AccountsNumber   []string `protobuf:"bytes,2,rep,name=accounts_number,json=accountsNumber,proto3" json:"accounts_number,omitempty"`
	StartTimeSeconds int64    `protobuf:"varint,3,opt,name=start_time_seconds,json=startTimeSeconds,proto3" json:"start_time_seconds,omitempty"`
	EndTimeSeconds   int64    `protobuf:"varint,4,opt,name=end_time_seconds,json=endTimeSeconds,proto3" json:"end_time_seconds,omitempty"`
	TxDate           string   `protobuf:"bytes,5,opt,name=tx_date,json=txDate,proto3" json:"tx_date,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStatsFilter) Descriptor deprecated

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

Deprecated: Use ListStatsFilter.ProtoReflect.Descriptor instead.

func (*ListStatsFilter) GetAccountsNumber

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

func (*ListStatsFilter) GetEndTimeSeconds

func (x *ListStatsFilter) GetEndTimeSeconds() int64

func (*ListStatsFilter) GetShortCodes

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

func (*ListStatsFilter) GetStartTimeSeconds

func (x *ListStatsFilter) GetStartTimeSeconds() int64

func (*ListStatsFilter) GetTxDate

func (x *ListStatsFilter) GetTxDate() 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 ListStatsRequest

type ListStatsRequest 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 (*ListStatsRequest) Descriptor deprecated

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

Deprecated: Use ListStatsRequest.ProtoReflect.Descriptor instead.

func (*ListStatsRequest) GetFilter

func (x *ListStatsRequest) GetFilter() *ListStatsFilter

func (*ListStatsRequest) GetPageSize

func (x *ListStatsRequest) GetPageSize() int32

func (*ListStatsRequest) GetPageToken

func (x *ListStatsRequest) GetPageToken() string

func (*ListStatsRequest) ProtoMessage

func (*ListStatsRequest) ProtoMessage()

func (*ListStatsRequest) ProtoReflect

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

func (*ListStatsRequest) Reset

func (x *ListStatsRequest) Reset()

func (*ListStatsRequest) String

func (x *ListStatsRequest) String() string

type ProcessC2BPaymentRequest

type ProcessC2BPaymentRequest struct {
	PaymentId string `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	State     bool   `protobuf:"varint,2,opt,name=state,proto3" json:"state,omitempty"`
	Retry     bool   `protobuf:"varint,3,opt,name=retry,proto3" json:"retry,omitempty"`
	// contains filtered or unexported fields
}

func (*ProcessC2BPaymentRequest) Descriptor deprecated

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

Deprecated: Use ProcessC2BPaymentRequest.ProtoReflect.Descriptor instead.

func (*ProcessC2BPaymentRequest) GetPaymentId

func (x *ProcessC2BPaymentRequest) GetPaymentId() string

func (*ProcessC2BPaymentRequest) GetRetry

func (x *ProcessC2BPaymentRequest) GetRetry() bool

func (*ProcessC2BPaymentRequest) GetState

func (x *ProcessC2BPaymentRequest) GetState() bool

func (*ProcessC2BPaymentRequest) ProtoMessage

func (*ProcessC2BPaymentRequest) ProtoMessage()

func (*ProcessC2BPaymentRequest) ProtoReflect

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

func (*ProcessC2BPaymentRequest) Reset

func (x *ProcessC2BPaymentRequest) Reset()

func (*ProcessC2BPaymentRequest) String

func (x *ProcessC2BPaymentRequest) String() string

type ProcessedState

type ProcessedState int32
const (
	ProcessedState_PROCESS_STATE_UNSPECIFIED ProcessedState = 0
	ProcessedState_PROCESSED                 ProcessedState = 1
	ProcessedState_NOT_PROCESSED             ProcessedState = 2
)

func (ProcessedState) Descriptor

func (ProcessedState) Enum

func (x ProcessedState) Enum() *ProcessedState

func (ProcessedState) EnumDescriptor deprecated

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

Deprecated: Use ProcessedState.Descriptor instead.

func (ProcessedState) Number

func (ProcessedState) String

func (x ProcessedState) String() string

func (ProcessedState) Type

type PublishAllC2BPaymentsRequest

type PublishAllC2BPaymentsRequest struct {
	ProcessedState   ProcessedState `` /* 137-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"`
	// contains filtered or unexported fields
}

func (*PublishAllC2BPaymentsRequest) Descriptor deprecated

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

Deprecated: Use PublishAllC2BPaymentsRequest.ProtoReflect.Descriptor instead.

func (*PublishAllC2BPaymentsRequest) GetEndTimeSeconds

func (x *PublishAllC2BPaymentsRequest) GetEndTimeSeconds() int64

func (*PublishAllC2BPaymentsRequest) GetProcessedState

func (x *PublishAllC2BPaymentsRequest) GetProcessedState() ProcessedState

func (*PublishAllC2BPaymentsRequest) GetStartTimeSeconds

func (x *PublishAllC2BPaymentsRequest) GetStartTimeSeconds() int64

func (*PublishAllC2BPaymentsRequest) ProtoMessage

func (*PublishAllC2BPaymentsRequest) ProtoMessage()

func (*PublishAllC2BPaymentsRequest) ProtoReflect

func (*PublishAllC2BPaymentsRequest) Reset

func (x *PublishAllC2BPaymentsRequest) Reset()

func (*PublishAllC2BPaymentsRequest) String

type PublishC2BPaymentRequest

type PublishC2BPaymentRequest struct {
	PaymentId      string         `protobuf:"bytes,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	InitiatorId    string         `protobuf:"bytes,2,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	ProcessedState ProcessedState `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PublishC2BPaymentRequest) Descriptor deprecated

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

Deprecated: Use PublishC2BPaymentRequest.ProtoReflect.Descriptor instead.

func (*PublishC2BPaymentRequest) GetInitiatorId

func (x *PublishC2BPaymentRequest) GetInitiatorId() string

func (*PublishC2BPaymentRequest) GetPaymentId

func (x *PublishC2BPaymentRequest) GetPaymentId() string

func (*PublishC2BPaymentRequest) GetProcessedState

func (x *PublishC2BPaymentRequest) GetProcessedState() ProcessedState

func (*PublishC2BPaymentRequest) ProtoMessage

func (*PublishC2BPaymentRequest) ProtoMessage()

func (*PublishC2BPaymentRequest) ProtoReflect

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

func (*PublishC2BPaymentRequest) Reset

func (x *PublishC2BPaymentRequest) Reset()

func (*PublishC2BPaymentRequest) String

func (x *PublishC2BPaymentRequest) String() string

type SaveScopesRequest

type SaveScopesRequest struct {
	UserId string  `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Scopes *Scopes `protobuf:"bytes,2,opt,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveScopesRequest) Descriptor deprecated

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

Deprecated: Use SaveScopesRequest.ProtoReflect.Descriptor instead.

func (*SaveScopesRequest) GetScopes

func (x *SaveScopesRequest) GetScopes() *Scopes

func (*SaveScopesRequest) GetUserId

func (x *SaveScopesRequest) GetUserId() string

func (*SaveScopesRequest) ProtoMessage

func (*SaveScopesRequest) ProtoMessage()

func (*SaveScopesRequest) ProtoReflect

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

func (*SaveScopesRequest) Reset

func (x *SaveScopesRequest) Reset()

func (*SaveScopesRequest) String

func (x *SaveScopesRequest) String() string

type SaveScopesResponse

type SaveScopesResponse struct {
	Scopes *Scopes `protobuf:"bytes,1,opt,name=scopes,proto3" json:"scopes,omitempty"`
	// contains filtered or unexported fields
}

func (*SaveScopesResponse) Descriptor deprecated

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

Deprecated: Use SaveScopesResponse.ProtoReflect.Descriptor instead.

func (*SaveScopesResponse) GetScopes

func (x *SaveScopesResponse) GetScopes() *Scopes

func (*SaveScopesResponse) ProtoMessage

func (*SaveScopesResponse) ProtoMessage()

func (*SaveScopesResponse) ProtoReflect

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

func (*SaveScopesResponse) Reset

func (x *SaveScopesResponse) Reset()

func (*SaveScopesResponse) String

func (x *SaveScopesResponse) String() string

type Scopes

type Scopes struct {
	AllowedShortCodes []string  `protobuf:"bytes,1,rep,name=allowed_short_codes,json=allowedShortCodes,proto3" json:"allowed_short_codes,omitempty"`
	AllowedPhones     []string  `protobuf:"bytes,2,rep,name=allowed_phones,json=allowedPhones,proto3" json:"allowed_phones,omitempty"`
	AllowedAccNumber  []string  `protobuf:"bytes,3,rep,name=allowed_acc_number,json=allowedAccNumber,proto3" json:"allowed_acc_number,omitempty"`
	AllowedAmounts    []float32 `protobuf:"fixed32,4,rep,packed,name=allowed_amounts,json=allowedAmounts,proto3" json:"allowed_amounts,omitempty"`
	Percentage        float32   `protobuf:"fixed32,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// contains filtered or unexported fields
}

func (*Scopes) Descriptor deprecated

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

Deprecated: Use Scopes.ProtoReflect.Descriptor instead.

func (*Scopes) GetAllowedAccNumber

func (x *Scopes) GetAllowedAccNumber() []string

func (*Scopes) GetAllowedAmounts

func (x *Scopes) GetAllowedAmounts() []float32

func (*Scopes) GetAllowedPhones

func (x *Scopes) GetAllowedPhones() []string

func (*Scopes) GetAllowedShortCodes

func (x *Scopes) GetAllowedShortCodes() []string

func (*Scopes) GetPercentage

func (x *Scopes) GetPercentage() float32

func (*Scopes) ProtoMessage

func (*Scopes) ProtoMessage()

func (*Scopes) ProtoReflect

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

func (*Scopes) Reset

func (x *Scopes) Reset()

func (*Scopes) String

func (x *Scopes) String() string

type Stat

type Stat 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"`
	ShortCode         string  `protobuf:"bytes,3,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	AccountName       string  `protobuf:"bytes,4,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
	TotalTransactions int32   `protobuf:"varint,5,opt,name=total_transactions,json=totalTransactions,proto3" json:"total_transactions,omitempty"`
	TotalAmount       float32 `protobuf:"fixed32,6,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	CreateDateSeconds int64   `protobuf:"varint,7,opt,name=create_date_seconds,json=createDateSeconds,proto3" json:"create_date_seconds,omitempty"`
	UpdateTimeSeconds int64   `protobuf:"varint,8,opt,name=update_time_seconds,json=updateTimeSeconds,proto3" json:"update_time_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*Stat) Descriptor deprecated

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

Deprecated: Use Stat.ProtoReflect.Descriptor instead.

func (*Stat) GetAccountName

func (x *Stat) GetAccountName() string

func (*Stat) GetCreateDateSeconds

func (x *Stat) GetCreateDateSeconds() int64

func (*Stat) GetDate

func (x *Stat) GetDate() string

func (*Stat) GetShortCode

func (x *Stat) GetShortCode() string

func (*Stat) GetStatId

func (x *Stat) GetStatId() string

func (*Stat) GetTotalAmount

func (x *Stat) GetTotalAmount() float32

func (*Stat) GetTotalTransactions

func (x *Stat) GetTotalTransactions() int32

func (*Stat) GetUpdateTimeSeconds

func (x *Stat) GetUpdateTimeSeconds() int64

func (*Stat) ProtoMessage

func (*Stat) ProtoMessage()

func (*Stat) ProtoReflect

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

func (*Stat) Reset

func (x *Stat) Reset()

func (*Stat) String

func (x *Stat) String() string

type StatsResponse

type StatsResponse struct {
	Stats         []*Stat `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() []*Stat

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 TransactionsSummary

type TransactionsSummary struct {
	TotalAmount       float32 `protobuf:"fixed32,1,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	TransactionsCount int32   `protobuf:"varint,2,opt,name=transactions_count,json=transactionsCount,proto3" json:"transactions_count,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionsSummary) Descriptor deprecated

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

Deprecated: Use TransactionsSummary.ProtoReflect.Descriptor instead.

func (*TransactionsSummary) GetTotalAmount

func (x *TransactionsSummary) GetTotalAmount() float32

func (*TransactionsSummary) GetTransactionsCount

func (x *TransactionsSummary) GetTransactionsCount() int32

func (*TransactionsSummary) ProtoMessage

func (*TransactionsSummary) ProtoMessage()

func (*TransactionsSummary) ProtoReflect

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

func (*TransactionsSummary) Reset

func (x *TransactionsSummary) Reset()

func (*TransactionsSummary) String

func (x *TransactionsSummary) String() string

type UnimplementedLipaNaMPESAServer

type UnimplementedLipaNaMPESAServer struct {
}

UnimplementedLipaNaMPESAServer must be embedded to have forward compatible implementations.

func (UnimplementedLipaNaMPESAServer) ArchiveTransactions

func (UnimplementedLipaNaMPESAServer) BlastPhones

func (UnimplementedLipaNaMPESAServer) BlastPhonesFromFile

func (UnimplementedLipaNaMPESAServer) CreateC2BPayment

func (UnimplementedLipaNaMPESAServer) ExistC2BPayment

func (UnimplementedLipaNaMPESAServer) GetC2BPayment

func (UnimplementedLipaNaMPESAServer) GetRandomTransaction

func (UnimplementedLipaNaMPESAServer) GetScopes

func (UnimplementedLipaNaMPESAServer) GetStats

func (UnimplementedLipaNaMPESAServer) GetTransactionsCount

func (UnimplementedLipaNaMPESAServer) ListBlastFiles

func (UnimplementedLipaNaMPESAServer) ListBlastReports

func (UnimplementedLipaNaMPESAServer) ListC2BPayments

func (UnimplementedLipaNaMPESAServer) ListStats

func (UnimplementedLipaNaMPESAServer) ProcessC2BPayment

func (UnimplementedLipaNaMPESAServer) PublishAllC2BPayments

func (UnimplementedLipaNaMPESAServer) PublishC2BPayment

func (UnimplementedLipaNaMPESAServer) SaveScopes

type UnsafeLipaNaMPESAServer

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

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

Jump to

Keyboard shortcuts

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