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: 19 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 (
	OrderField_name = map[int32]string{
		0: "PAYMENT_ID",
		1: "TRANSACTION_TIMESTAMP",
	}
	OrderField_value = map[string]int32{
		"PAYMENT_ID":            0,
		"TRANSACTION_TIMESTAMP": 1,
	}
)

Enum value maps for OrderField.

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 (
	TransferFundsRequest_CommandId_name = map[int32]string{
		0: "COMMANDID_UNSPECIFIED",
		1: "SALARY_PAYMENT",
		2: "BUSINESS_PAYMENT",
		3: "PROMOTION_PAYMENT",
	}
	TransferFundsRequest_CommandId_value = map[string]int32{
		"COMMANDID_UNSPECIFIED": 0,
		"SALARY_PAYMENT":        1,
		"BUSINESS_PAYMENT":      2,
		"PROMOTION_PAYMENT":     3,
	}
)

Enum value maps for TransferFundsRequest_CommandId.

View Source
var File_b2c_v1_proto protoreflect.FileDescriptor

Functions

func RegisterB2CAPIHandler

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

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

func RegisterB2CAPIHandlerClient

func RegisterB2CAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client B2CAPIClient) error

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

func RegisterB2CAPIHandlerFromEndpoint

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

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

func RegisterB2CAPIHandlerServer

func RegisterB2CAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server B2CAPIServer) error

RegisterB2CAPIHandlerServer registers the http handlers for service B2CAPI to "mux". UnaryRPC :call B2CAPIServer 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 RegisterB2CAPIHandlerFromEndpoint instead.

func RegisterB2CAPIServer

func RegisterB2CAPIServer(s grpc.ServiceRegistrar, srv B2CAPIServer)

Types

type B2CAPIClient

type B2CAPIClient interface {
	// Transfer funds from business to customer or another business
	TransferFunds(ctx context.Context, in *TransferFundsRequest, opts ...grpc.CallOption) (*TransferFundsResponse, 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)
	// Creates a record of b2c payment
	CreateB2CPayment(ctx context.Context, in *CreateB2CPaymentRequest, opts ...grpc.CallOption) (*B2CPayment, 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)
}

B2CAPIClient is the client API for B2CAPI 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 NewB2CAPIClient

func NewB2CAPIClient(cc grpc.ClientConnInterface) B2CAPIClient

type B2CAPIServer

type B2CAPIServer interface {
	// Transfer funds from business to customer or another business
	TransferFunds(context.Context, *TransferFundsRequest) (*TransferFundsResponse, 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)
	// Creates a record of b2c payment
	CreateB2CPayment(context.Context, *CreateB2CPaymentRequest) (*B2CPayment, 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)
	// contains filtered or unexported methods
}

B2CAPIServer is the server API for B2CAPI service. All implementations must embed UnimplementedB2CAPIServer for forward compatibility

type B2CPayment

type B2CPayment 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"`
	OrgShortCode             string  `protobuf:"bytes,3,opt,name=org_short_code,json=orgShortCode,proto3" json:"org_short_code,omitempty"`
	Msisdn                   string  `protobuf:"bytes,4,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	TransactionReference     string  `protobuf:"bytes,5,opt,name=transaction_reference,json=transactionReference,proto3" json:"transaction_reference,omitempty"`
	CustomerReference        string  `protobuf:"bytes,6,opt,name=customer_reference,json=customerReference,proto3" json:"customer_reference,omitempty"`
	CustomerNames            string  `protobuf:"bytes,7,opt,name=customer_names,json=customerNames,proto3" json:"customer_names,omitempty"`
	ReceiverPartyPublicName  string  `` /* 134-byte string literal not displayed */
	TransactionType          string  `protobuf:"bytes,9,opt,name=transaction_type,json=transactionType,proto3" json:"transaction_type,omitempty"`
	TransactionId            string  `protobuf:"bytes,10,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	ConversationId           string  `protobuf:"bytes,11,opt,name=conversation_id,json=conversationId,proto3" json:"conversation_id,omitempty"`
	OriginatorConversationId string  `` /* 136-byte string literal not displayed */
	ResultCode               string  `protobuf:"bytes,13,opt,name=result_code,json=resultCode,proto3" json:"result_code,omitempty"`
	ResultDescription        string  `protobuf:"bytes,14,opt,name=result_description,json=resultDescription,proto3" json:"result_description,omitempty"`
	TransactionTimestamp     int64   `protobuf:"varint,15,opt,name=transaction_timestamp,json=transactionTimestamp,proto3" json:"transaction_timestamp,omitempty"`
	Amount                   float32 `protobuf:"fixed32,16,opt,name=amount,proto3" json:"amount,omitempty"`
	WorkingAccountFunds      float32 `protobuf:"fixed32,17,opt,name=working_account_funds,json=workingAccountFunds,proto3" json:"working_account_funds,omitempty"`
	UtilityAccountFunds      float32 `protobuf:"fixed32,18,opt,name=utility_account_funds,json=utilityAccountFunds,proto3" json:"utility_account_funds,omitempty"`
	MpesaCharges             float32 `protobuf:"fixed32,19,opt,name=mpesa_charges,json=mpesaCharges,proto3" json:"mpesa_charges,omitempty"`
	OnfonCharges             float32 `protobuf:"fixed32,20,opt,name=onfon_charges,json=onfonCharges,proto3" json:"onfon_charges,omitempty"`
	RecipientRegistered      bool    `protobuf:"varint,21,opt,name=recipient_registered,json=recipientRegistered,proto3" json:"recipient_registered,omitempty"`
	Succeeded                bool    `protobuf:"varint,22,opt,name=succeeded,proto3" json:"succeeded,omitempty"`
	Processed                bool    `protobuf:"varint,23,opt,name=processed,proto3" json:"processed,omitempty"`
	CreateDate               string  `protobuf:"bytes,24,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) GetConversationId

func (x *B2CPayment) GetConversationId() string

func (*B2CPayment) GetCreateDate added in v1.2.3

func (x *B2CPayment) GetCreateDate() string

func (*B2CPayment) GetCustomerNames added in v1.2.4

func (x *B2CPayment) GetCustomerNames() string

func (*B2CPayment) GetCustomerReference added in v1.2.4

func (x *B2CPayment) GetCustomerReference() string

func (*B2CPayment) GetInitiatorId

func (x *B2CPayment) GetInitiatorId() string

func (*B2CPayment) GetMpesaCharges

func (x *B2CPayment) GetMpesaCharges() float32

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) GetOriginatorConversationId

func (x *B2CPayment) GetOriginatorConversationId() string

func (*B2CPayment) GetPaymentId

func (x *B2CPayment) GetPaymentId() 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) GetResultCode

func (x *B2CPayment) GetResultCode() string

func (*B2CPayment) GetResultDescription

func (x *B2CPayment) GetResultDescription() string

func (*B2CPayment) GetSucceeded

func (x *B2CPayment) GetSucceeded() bool

func (*B2CPayment) GetTransactionId

func (x *B2CPayment) GetTransactionId() string

func (*B2CPayment) GetTransactionReference added in v1.2.4

func (x *B2CPayment) GetTransactionReference() string

func (*B2CPayment) GetTransactionTimestamp

func (x *B2CPayment) GetTransactionTimestamp() int64

func (*B2CPayment) GetTransactionType

func (x *B2CPayment) GetTransactionType() string

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 CreateB2CPaymentRequest

type CreateB2CPaymentRequest struct {
	Payment *B2CPayment `protobuf:"bytes,1,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateB2CPaymentRequest) Descriptor deprecated

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

Deprecated: Use CreateB2CPaymentRequest.ProtoReflect.Descriptor instead.

func (*CreateB2CPaymentRequest) GetPayment

func (x *CreateB2CPaymentRequest) GetPayment() *B2CPayment

func (*CreateB2CPaymentRequest) ProtoMessage

func (*CreateB2CPaymentRequest) ProtoMessage()

func (*CreateB2CPaymentRequest) ProtoReflect

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

func (*CreateB2CPaymentRequest) Reset

func (x *CreateB2CPaymentRequest) Reset()

func (*CreateB2CPaymentRequest) String

func (x *CreateB2CPaymentRequest) String() string

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"`
	IsTransactionId bool   `protobuf:"varint,2,opt,name=is_transaction_id,json=isTransactionId,proto3" json:"is_transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetB2CPaymentRequest) Descriptor deprecated

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

Deprecated: Use GetB2CPaymentRequest.ProtoReflect.Descriptor instead.

func (*GetB2CPaymentRequest) GetIsTransactionId added in v1.2.5

func (x *GetB2CPaymentRequest) GetIsTransactionId() 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 InitiatorPayload

type InitiatorPayload struct {
	InitiatorId     string `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	RequestId       string `protobuf:"bytes,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Msisdn          string `protobuf:"bytes,3,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	ShortCode       string `protobuf:"bytes,4,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	TransactionType string `protobuf:"bytes,5,opt,name=transaction_type,json=transactionType,proto3" json:"transaction_type,omitempty"`
	Source          string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
	Publish         bool   `protobuf:"varint,7,opt,name=publish,proto3" json:"publish,omitempty"`
	// contains filtered or unexported fields
}

func (*InitiatorPayload) Descriptor deprecated

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

Deprecated: Use InitiatorPayload.ProtoReflect.Descriptor instead.

func (*InitiatorPayload) GetInitiatorId

func (x *InitiatorPayload) GetInitiatorId() string

func (*InitiatorPayload) GetMsisdn

func (x *InitiatorPayload) GetMsisdn() string

func (*InitiatorPayload) GetPublish added in v1.2.3

func (x *InitiatorPayload) GetPublish() bool

func (*InitiatorPayload) GetRequestId

func (x *InitiatorPayload) GetRequestId() string

func (*InitiatorPayload) GetShortCode

func (x *InitiatorPayload) GetShortCode() string

func (*InitiatorPayload) GetSource

func (x *InitiatorPayload) GetSource() string

func (*InitiatorPayload) GetTransactionType

func (x *InitiatorPayload) GetTransactionType() string

func (*InitiatorPayload) ProtoMessage

func (*InitiatorPayload) ProtoMessage()

func (*InitiatorPayload) ProtoReflect

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

func (*InitiatorPayload) Reset

func (x *InitiatorPayload) Reset()

func (*InitiatorPayload) String

func (x *InitiatorPayload) String() string

type ListB2CPaymentFilter

type ListB2CPaymentFilter struct {
	InitiatorId       string            `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	TxDate            string            `protobuf:"bytes,2,opt,name=tx_date,json=txDate,proto3" json:"tx_date,omitempty"`
	Msisdns           []string          `protobuf:"bytes,3,rep,name=msisdns,proto3" json:"msisdns,omitempty"`
	ProcessState      v1.ProcessedState `` /* 131-byte string literal not displayed */
	StartTimestamp    int64             `protobuf:"varint,5,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
	EndTimestamp      int64             `protobuf:"varint,6,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"`
	UseLikeInitiator  bool              `protobuf:"varint,7,opt,name=use_like_initiator,json=useLikeInitiator,proto3" json:"use_like_initiator,omitempty"`
	OrderField        OrderField        `protobuf:"varint,8,opt,name=order_field,json=orderField,proto3,enum=gidyon.mpesa.b2c.OrderField" json:"order_field,omitempty"`
	CustomerReference string            `protobuf:"bytes,9,opt,name=customer_reference,json=customerReference,proto3" json:"customer_reference,omitempty"`
	// contains filtered or unexported fields
}

func (*ListB2CPaymentFilter) Descriptor deprecated

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

Deprecated: Use ListB2CPaymentFilter.ProtoReflect.Descriptor instead.

func (*ListB2CPaymentFilter) GetCustomerReference added in v1.2.5

func (x *ListB2CPaymentFilter) GetCustomerReference() string

func (*ListB2CPaymentFilter) GetEndTimestamp

func (x *ListB2CPaymentFilter) GetEndTimestamp() int64

func (*ListB2CPaymentFilter) GetInitiatorId

func (x *ListB2CPaymentFilter) GetInitiatorId() string

func (*ListB2CPaymentFilter) GetMsisdns

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

func (*ListB2CPaymentFilter) GetOrderField added in v1.2.3

func (x *ListB2CPaymentFilter) GetOrderField() OrderField

func (*ListB2CPaymentFilter) GetProcessState

func (x *ListB2CPaymentFilter) GetProcessState() v1.ProcessedState

func (*ListB2CPaymentFilter) GetStartTimestamp

func (x *ListB2CPaymentFilter) GetStartTimestamp() int64

func (*ListB2CPaymentFilter) GetTxDate

func (x *ListB2CPaymentFilter) GetTxDate() string

func (*ListB2CPaymentFilter) GetUseLikeInitiator

func (x *ListB2CPaymentFilter) GetUseLikeInitiator() bool

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 added in v1.2.3

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 OrderField added in v1.2.3

type OrderField int32
const (
	OrderField_PAYMENT_ID            OrderField = 0
	OrderField_TRANSACTION_TIMESTAMP OrderField = 1
)

func (OrderField) Descriptor added in v1.2.3

func (OrderField) Descriptor() protoreflect.EnumDescriptor

func (OrderField) Enum added in v1.2.3

func (x OrderField) Enum() *OrderField

func (OrderField) EnumDescriptor deprecated added in v1.2.3

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

Deprecated: Use OrderField.Descriptor instead.

func (OrderField) Number added in v1.2.3

func (x OrderField) Number() protoreflect.EnumNumber

func (OrderField) String added in v1.2.3

func (x OrderField) String() string

func (OrderField) Type added in v1.2.3

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 v1.ProcessedState `` /* 137-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() v1.ProcessedState

func (*PublishB2CPaymentRequest) GetPublishMessage added in v1.2.3

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 added in v1.2.3

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 added in v1.2.3

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

Deprecated: Use PublishInfo.ProtoReflect.Descriptor instead.

func (*PublishInfo) GetChannelName added in v1.2.3

func (x *PublishInfo) GetChannelName() string

func (*PublishInfo) GetOnlyOnSuccess added in v1.2.3

func (x *PublishInfo) GetOnlyOnSuccess() bool

func (*PublishInfo) GetPayload added in v1.2.3

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

func (*PublishInfo) ProtoMessage added in v1.2.3

func (*PublishInfo) ProtoMessage()

func (*PublishInfo) ProtoReflect added in v1.2.3

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

func (*PublishInfo) Reset added in v1.2.3

func (x *PublishInfo) Reset()

func (*PublishInfo) String added in v1.2.3

func (x *PublishInfo) String() string

type PublishMessage added in v1.2.3

type PublishMessage struct {
	InitiatorId    string       `protobuf:"bytes,1,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	PaymentId      string       `protobuf:"bytes,2,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
	MpesaReceiptId string       `protobuf:"bytes,3,opt,name=mpesa_receipt_id,json=mpesaReceiptId,proto3" json:"mpesa_receipt_id,omitempty"`
	PhoneNumber    string       `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,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 added in v1.2.3

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

Deprecated: Use PublishMessage.ProtoReflect.Descriptor instead.

func (*PublishMessage) GetInitiatorId added in v1.2.3

func (x *PublishMessage) GetInitiatorId() string

func (*PublishMessage) GetMpesaReceiptId added in v1.2.3

func (x *PublishMessage) GetMpesaReceiptId() string

func (*PublishMessage) GetPayment added in v1.2.3

func (x *PublishMessage) GetPayment() *B2CPayment

func (*PublishMessage) GetPaymentId added in v1.2.3

func (x *PublishMessage) GetPaymentId() string

func (*PublishMessage) GetPhoneNumber added in v1.2.3

func (x *PublishMessage) GetPhoneNumber() string

func (*PublishMessage) GetPublishInfo added in v1.2.3

func (x *PublishMessage) GetPublishInfo() *PublishInfo

func (*PublishMessage) ProtoMessage added in v1.2.3

func (*PublishMessage) ProtoMessage()

func (*PublishMessage) ProtoReflect added in v1.2.3

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

func (*PublishMessage) Reset added in v1.2.3

func (x *PublishMessage) Reset()

func (*PublishMessage) String added in v1.2.3

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 {
	Amount               float32                        `protobuf:"fixed32,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Msisdn               int64                          `protobuf:"varint,2,opt,name=msisdn,proto3" json:"msisdn,omitempty"`
	TransactionReference string                         `protobuf:"bytes,3,opt,name=transaction_reference,json=transactionReference,proto3" json:"transaction_reference,omitempty"`
	CustomerReference    string                         `protobuf:"bytes,4,opt,name=customer_reference,json=customerReference,proto3" json:"customer_reference,omitempty"`
	CustomerNames        string                         `protobuf:"bytes,5,opt,name=customer_names,json=customerNames,proto3" json:"customer_names,omitempty"`
	ShortCode            int32                          `protobuf:"varint,6,opt,name=short_code,json=shortCode,proto3" json:"short_code,omitempty"`
	Remarks              string                         `protobuf:"bytes,7,opt,name=remarks,proto3" json:"remarks,omitempty"`
	Occassion            string                         `protobuf:"bytes,8,opt,name=occassion,proto3" json:"occassion,omitempty"`
	CommandId            TransferFundsRequest_CommandId `` /* 142-byte string literal not displayed */
	InitiatorId          string                         `protobuf:"bytes,10,opt,name=initiator_id,json=initiatorId,proto3" json:"initiator_id,omitempty"`
	Publish              bool                           `protobuf:"varint,11,opt,name=publish,proto3" json:"publish,omitempty"`
	PublishMessage       *PublishInfo                   `protobuf:"bytes,12,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() float32

func (*TransferFundsRequest) GetCommandId

func (*TransferFundsRequest) GetCustomerNames added in v1.2.4

func (x *TransferFundsRequest) GetCustomerNames() string

func (*TransferFundsRequest) GetCustomerReference added in v1.2.4

func (x *TransferFundsRequest) GetCustomerReference() string

func (*TransferFundsRequest) GetInitiatorId

func (x *TransferFundsRequest) GetInitiatorId() string

func (*TransferFundsRequest) GetMsisdn

func (x *TransferFundsRequest) GetMsisdn() int64

func (*TransferFundsRequest) GetOccassion

func (x *TransferFundsRequest) GetOccassion() string

func (*TransferFundsRequest) GetPublish added in v1.2.3

func (x *TransferFundsRequest) GetPublish() bool

func (*TransferFundsRequest) GetPublishMessage added in v1.2.3

func (x *TransferFundsRequest) GetPublishMessage() *PublishInfo

func (*TransferFundsRequest) GetRemarks

func (x *TransferFundsRequest) GetRemarks() string

func (*TransferFundsRequest) GetShortCode

func (x *TransferFundsRequest) GetShortCode() int32

func (*TransferFundsRequest) GetTransactionReference added in v1.2.4

func (x *TransferFundsRequest) GetTransactionReference() 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 TransferFundsRequest_CommandId

type TransferFundsRequest_CommandId int32
const (
	TransferFundsRequest_COMMANDID_UNSPECIFIED TransferFundsRequest_CommandId = 0
	TransferFundsRequest_SALARY_PAYMENT        TransferFundsRequest_CommandId = 1
	TransferFundsRequest_BUSINESS_PAYMENT      TransferFundsRequest_CommandId = 2
	TransferFundsRequest_PROMOTION_PAYMENT     TransferFundsRequest_CommandId = 3
)

func (TransferFundsRequest_CommandId) Descriptor

func (TransferFundsRequest_CommandId) Enum

func (TransferFundsRequest_CommandId) EnumDescriptor deprecated

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

Deprecated: Use TransferFundsRequest_CommandId.Descriptor instead.

func (TransferFundsRequest_CommandId) Number

func (TransferFundsRequest_CommandId) String

func (TransferFundsRequest_CommandId) Type

type TransferFundsResponse added in v1.2.3

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 added in v1.2.3

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

Deprecated: Use TransferFundsResponse.ProtoReflect.Descriptor instead.

func (*TransferFundsResponse) GetMessage added in v1.2.3

func (x *TransferFundsResponse) GetMessage() string

func (*TransferFundsResponse) GetProgress added in v1.2.3

func (x *TransferFundsResponse) GetProgress() bool

func (*TransferFundsResponse) ProtoMessage added in v1.2.3

func (*TransferFundsResponse) ProtoMessage()

func (*TransferFundsResponse) ProtoReflect added in v1.2.3

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

func (*TransferFundsResponse) Reset added in v1.2.3

func (x *TransferFundsResponse) Reset()

func (*TransferFundsResponse) String added in v1.2.3

func (x *TransferFundsResponse) String() string

type UnimplementedB2CAPIServer

type UnimplementedB2CAPIServer struct {
}

UnimplementedB2CAPIServer must be embedded to have forward compatible implementations.

func (UnimplementedB2CAPIServer) CreateB2CPayment

func (UnimplementedB2CAPIServer) GetB2CPayment

func (UnimplementedB2CAPIServer) ListB2CPayments

func (UnimplementedB2CAPIServer) ListDailyStats

func (UnimplementedB2CAPIServer) ProcessB2CPayment

func (UnimplementedB2CAPIServer) PublishB2CPayment

func (UnimplementedB2CAPIServer) QueryTransactionStatus

func (UnimplementedB2CAPIServer) ReverseTransaction

func (UnimplementedB2CAPIServer) TransferFunds

type UnsafeB2CAPIServer

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

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

Jump to

Keyboard shortcuts

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