pb

package
v0.0.0-...-9f74dc9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransactionType_name = map[int32]string{
		0: "UNKNOWN_STATUS_TYPE",
		1: "CASHOUT",
		2: "CASHIN",
		3: "P2P",
	}
	TransactionType_value = map[string]int32{
		"UNKNOWN_STATUS_TYPE": 0,
		"CASHOUT":             1,
		"CASHIN":              2,
		"P2P":                 3,
	}
)

Enum value maps for TransactionType.

View Source
var File_pb_transaction_proto protoreflect.FileDescriptor

Functions

func RegisterTransactionServer

func RegisterTransactionServer(s *grpc.Server, srv TransactionServer)

Types

type CreateTransactionRequest

type CreateTransactionRequest struct {
	Notes             string             `protobuf:"bytes,1,opt,name=notes,proto3" json:"notes,omitempty"`
	AccountId         string             `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	TrackingId        string             `protobuf:"bytes,3,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"`
	TransactionValue  *TransactionValue  `protobuf:"bytes,4,opt,name=transaction_value,json=transactionValue,proto3" json:"transaction_value,omitempty"`
	TransactionType   TransactionType    `` /* 131-byte string literal not displayed */
	DestinationHolder *DestinationHolder `protobuf:"bytes,6,opt,name=destination_holder,json=destinationHolder,proto3" json:"destination_holder,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTransactionRequest) Descriptor deprecated

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

Deprecated: Use CreateTransactionRequest.ProtoReflect.Descriptor instead.

func (*CreateTransactionRequest) GetAccountId

func (x *CreateTransactionRequest) GetAccountId() string

func (*CreateTransactionRequest) GetDestinationHolder

func (x *CreateTransactionRequest) GetDestinationHolder() *DestinationHolder

func (*CreateTransactionRequest) GetNotes

func (x *CreateTransactionRequest) GetNotes() string

func (*CreateTransactionRequest) GetTrackingId

func (x *CreateTransactionRequest) GetTrackingId() string

func (*CreateTransactionRequest) GetTransactionType

func (x *CreateTransactionRequest) GetTransactionType() TransactionType

func (*CreateTransactionRequest) GetTransactionValue

func (x *CreateTransactionRequest) GetTransactionValue() *TransactionValue

func (*CreateTransactionRequest) ProtoMessage

func (*CreateTransactionRequest) ProtoMessage()

func (*CreateTransactionRequest) ProtoReflect

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

func (*CreateTransactionRequest) Reset

func (x *CreateTransactionRequest) Reset()

func (*CreateTransactionRequest) String

func (x *CreateTransactionRequest) String() string

type CreateTransactionResponse

type CreateTransactionResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTransactionResponse) Descriptor deprecated

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

Deprecated: Use CreateTransactionResponse.ProtoReflect.Descriptor instead.

func (*CreateTransactionResponse) GetId

func (x *CreateTransactionResponse) GetId() string

func (*CreateTransactionResponse) ProtoMessage

func (*CreateTransactionResponse) ProtoMessage()

func (*CreateTransactionResponse) ProtoReflect

func (*CreateTransactionResponse) Reset

func (x *CreateTransactionResponse) Reset()

func (*CreateTransactionResponse) String

func (x *CreateTransactionResponse) String() string

type DestinationHolder

type DestinationHolder struct {
	Name           string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DocumentNumber string `protobuf:"bytes,2,opt,name=document_number,json=documentNumber,proto3" json:"document_number,omitempty"`
	AccountId      string `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DestinationHolder) Descriptor deprecated

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

Deprecated: Use DestinationHolder.ProtoReflect.Descriptor instead.

func (*DestinationHolder) GetAccountId

func (x *DestinationHolder) GetAccountId() string

func (*DestinationHolder) GetDocumentNumber

func (x *DestinationHolder) GetDocumentNumber() string

func (*DestinationHolder) GetName

func (x *DestinationHolder) GetName() string

func (*DestinationHolder) ProtoMessage

func (*DestinationHolder) ProtoMessage()

func (*DestinationHolder) ProtoReflect

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

func (*DestinationHolder) Reset

func (x *DestinationHolder) Reset()

func (*DestinationHolder) String

func (x *DestinationHolder) String() string

type TransactionClient

type TransactionClient interface {
	CreateTransaction(ctx context.Context, in *CreateTransactionRequest, opts ...grpc.CallOption) (*CreateTransactionResponse, error)
}

TransactionClient is the client API for Transaction service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type TransactionServer

type TransactionServer interface {
	CreateTransaction(context.Context, *CreateTransactionRequest) (*CreateTransactionResponse, error)
}

TransactionServer is the server API for Transaction service.

type TransactionType

type TransactionType int32
const (
	TransactionType_UNKNOWN_STATUS_TYPE TransactionType = 0
	TransactionType_CASHOUT             TransactionType = 1
	TransactionType_CASHIN              TransactionType = 2
	TransactionType_P2P                 TransactionType = 3
)

func (TransactionType) Descriptor

func (TransactionType) Enum

func (x TransactionType) Enum() *TransactionType

func (TransactionType) EnumDescriptor deprecated

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

Deprecated: Use TransactionType.Descriptor instead.

func (TransactionType) Number

func (TransactionType) String

func (x TransactionType) String() string

func (TransactionType) Type

type TransactionValue

type TransactionValue struct {
	Currency string `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Amount   string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionValue) Descriptor deprecated

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

Deprecated: Use TransactionValue.ProtoReflect.Descriptor instead.

func (*TransactionValue) GetAmount

func (x *TransactionValue) GetAmount() string

func (*TransactionValue) GetCurrency

func (x *TransactionValue) GetCurrency() string

func (*TransactionValue) ProtoMessage

func (*TransactionValue) ProtoMessage()

func (*TransactionValue) ProtoReflect

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

func (*TransactionValue) Reset

func (x *TransactionValue) Reset()

func (*TransactionValue) String

func (x *TransactionValue) String() string

type UnimplementedTransactionServer

type UnimplementedTransactionServer struct {
}

UnimplementedTransactionServer can be embedded to have forward compatible implementations.

func (*UnimplementedTransactionServer) CreateTransaction

Jump to

Keyboard shortcuts

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