Documentation ¶
Index ¶
- Variables
- func RegisterLedgerServer(s grpc.ServiceRegistrar, srv LedgerServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetCreatedAt() *timestamppb.Timestamp
- func (x *Account) GetCurrency() string
- func (x *Account) GetId() *wrapperspb.StringValue
- func (x *Account) GetPortfolioId() *wrapperspb.StringValue
- func (x *Account) GetUserId() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- func (m *Account) Validate() error
- func (m *Account) ValidateAll() error
- type AccountAndBalance
- func (*AccountAndBalance) Descriptor() ([]byte, []int)deprecated
- func (x *AccountAndBalance) GetAccountId() string
- func (x *AccountAndBalance) GetAvailable() string
- func (x *AccountAndBalance) GetBalance() string
- func (x *AccountAndBalance) GetBalanceAt() *timestamppb.Timestamp
- func (x *AccountAndBalance) GetCurrency() string
- func (x *AccountAndBalance) GetHold() string
- func (*AccountAndBalance) ProtoMessage()
- func (x *AccountAndBalance) ProtoReflect() protoreflect.Message
- func (x *AccountAndBalance) Reset()
- func (x *AccountAndBalance) String() string
- func (m *AccountAndBalance) Validate() error
- func (m *AccountAndBalance) ValidateAll() error
- type AccountAndBalanceMultiError
- type AccountAndBalanceValidationError
- func (e AccountAndBalanceValidationError) Cause() error
- func (e AccountAndBalanceValidationError) Error() string
- func (e AccountAndBalanceValidationError) ErrorName() string
- func (e AccountAndBalanceValidationError) Field() string
- func (e AccountAndBalanceValidationError) Key() bool
- func (e AccountAndBalanceValidationError) Reason() string
- type AccountBalance
- func (*AccountBalance) Descriptor() ([]byte, []int)deprecated
- func (x *AccountBalance) GetAccountId() *wrapperspb.StringValue
- func (x *AccountBalance) GetAvailable() string
- func (x *AccountBalance) GetBalance() string
- func (x *AccountBalance) GetHold() string
- func (x *AccountBalance) GetId() *wrapperspb.StringValue
- func (*AccountBalance) ProtoMessage()
- func (x *AccountBalance) ProtoReflect() protoreflect.Message
- func (x *AccountBalance) Reset()
- func (x *AccountBalance) String() string
- func (m *AccountBalance) Validate() error
- func (m *AccountBalance) ValidateAll() error
- type AccountBalanceMultiError
- type AccountBalanceValidationError
- func (e AccountBalanceValidationError) Cause() error
- func (e AccountBalanceValidationError) Error() string
- func (e AccountBalanceValidationError) ErrorName() string
- func (e AccountBalanceValidationError) Field() string
- func (e AccountBalanceValidationError) Key() bool
- func (e AccountBalanceValidationError) Reason() string
- type AccountMultiError
- type AccountValidationError
- type CreateTransactionRequest
- func (*CreateTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTransactionRequest) GetFeeAmount() *wrapperspb.StringValue
- func (x *CreateTransactionRequest) GetOrderId() string
- func (x *CreateTransactionRequest) GetReceiver() *Account
- func (x *CreateTransactionRequest) GetRequestId() *wrapperspb.StringValue
- func (x *CreateTransactionRequest) GetSender() *Account
- func (x *CreateTransactionRequest) GetTotalAmount() string
- func (x *CreateTransactionRequest) GetTransactionType() TransactionType
- func (*CreateTransactionRequest) ProtoMessage()
- func (x *CreateTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTransactionRequest) Reset()
- func (x *CreateTransactionRequest) String() string
- func (m *CreateTransactionRequest) Validate() error
- func (m *CreateTransactionRequest) ValidateAll() error
- type CreateTransactionRequestMultiError
- type CreateTransactionRequestValidationError
- func (e CreateTransactionRequestValidationError) Cause() error
- func (e CreateTransactionRequestValidationError) Error() string
- func (e CreateTransactionRequestValidationError) ErrorName() string
- func (e CreateTransactionRequestValidationError) Field() string
- func (e CreateTransactionRequestValidationError) Key() bool
- func (e CreateTransactionRequestValidationError) Reason() string
- type CreateTransactionResponse
- func (*CreateTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTransactionResponse) GetTransaction() *Transaction
- func (*CreateTransactionResponse) ProtoMessage()
- func (x *CreateTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTransactionResponse) Reset()
- func (x *CreateTransactionResponse) String() string
- func (m *CreateTransactionResponse) Validate() error
- func (m *CreateTransactionResponse) ValidateAll() error
- type CreateTransactionResponseMultiError
- type CreateTransactionResponseValidationError
- func (e CreateTransactionResponseValidationError) Cause() error
- func (e CreateTransactionResponseValidationError) Error() string
- func (e CreateTransactionResponseValidationError) ErrorName() string
- func (e CreateTransactionResponseValidationError) Field() string
- func (e CreateTransactionResponseValidationError) Key() bool
- func (e CreateTransactionResponseValidationError) Reason() string
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAccountId() string
- func (x *Entry) GetAmount() string
- func (x *Entry) GetCreatedAt() *timestamppb.Timestamp
- func (x *Entry) GetDirection() string
- func (x *Entry) GetId() string
- func (x *Entry) GetTransactionId() string
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- func (m *Entry) Validate() error
- func (m *Entry) ValidateAll() error
- type EntryMultiError
- type EntryValidationError
- type FinalizeTransactionRequest
- func (*FinalizeTransactionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FinalizeTransactionRequest) GetFinalizedStatus() TransactionStatus
- func (x *FinalizeTransactionRequest) GetOrderId() string
- func (x *FinalizeTransactionRequest) GetReceiverAmount() *wrapperspb.StringValue
- func (x *FinalizeTransactionRequest) GetRequestId() string
- func (x *FinalizeTransactionRequest) GetRetailFeeAmount() *wrapperspb.StringValue
- func (x *FinalizeTransactionRequest) GetSenderAmount() *wrapperspb.StringValue
- func (x *FinalizeTransactionRequest) GetVenueFeeAmount() *wrapperspb.StringValue
- func (*FinalizeTransactionRequest) ProtoMessage()
- func (x *FinalizeTransactionRequest) ProtoReflect() protoreflect.Message
- func (x *FinalizeTransactionRequest) Reset()
- func (x *FinalizeTransactionRequest) String() string
- func (m *FinalizeTransactionRequest) Validate() error
- func (m *FinalizeTransactionRequest) ValidateAll() error
- type FinalizeTransactionRequestMultiError
- type FinalizeTransactionRequestValidationError
- func (e FinalizeTransactionRequestValidationError) Cause() error
- func (e FinalizeTransactionRequestValidationError) Error() string
- func (e FinalizeTransactionRequestValidationError) ErrorName() string
- func (e FinalizeTransactionRequestValidationError) Field() string
- func (e FinalizeTransactionRequestValidationError) Key() bool
- func (e FinalizeTransactionRequestValidationError) Reason() string
- type FinalizeTransactionResponse
- func (*FinalizeTransactionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FinalizeTransactionResponse) GetFailureMessage() *wrapperspb.StringValue
- func (x *FinalizeTransactionResponse) GetSuccessful() bool
- func (*FinalizeTransactionResponse) ProtoMessage()
- func (x *FinalizeTransactionResponse) ProtoReflect() protoreflect.Message
- func (x *FinalizeTransactionResponse) Reset()
- func (x *FinalizeTransactionResponse) String() string
- func (m *FinalizeTransactionResponse) Validate() error
- func (m *FinalizeTransactionResponse) ValidateAll() error
- type FinalizeTransactionResponseMultiError
- type FinalizeTransactionResponseValidationError
- func (e FinalizeTransactionResponseValidationError) Cause() error
- func (e FinalizeTransactionResponseValidationError) Error() string
- func (e FinalizeTransactionResponseValidationError) ErrorName() string
- func (e FinalizeTransactionResponseValidationError) Field() string
- func (e FinalizeTransactionResponseValidationError) Key() bool
- func (e FinalizeTransactionResponseValidationError) Reason() string
- type GetAccountsRequest
- func (*GetAccountsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsRequest) GetUserId() string
- func (*GetAccountsRequest) ProtoMessage()
- func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAccountsRequest) Reset()
- func (x *GetAccountsRequest) String() string
- func (m *GetAccountsRequest) Validate() error
- func (m *GetAccountsRequest) ValidateAll() error
- type GetAccountsRequestMultiError
- type GetAccountsRequestValidationError
- func (e GetAccountsRequestValidationError) Cause() error
- func (e GetAccountsRequestValidationError) Error() string
- func (e GetAccountsRequestValidationError) ErrorName() string
- func (e GetAccountsRequestValidationError) Field() string
- func (e GetAccountsRequestValidationError) Key() bool
- func (e GetAccountsRequestValidationError) Reason() string
- type GetAccountsResponse
- func (*GetAccountsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountsResponse) GetAccounts() []*AccountAndBalance
- func (*GetAccountsResponse) ProtoMessage()
- func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAccountsResponse) Reset()
- func (x *GetAccountsResponse) String() string
- func (m *GetAccountsResponse) Validate() error
- func (m *GetAccountsResponse) ValidateAll() error
- type GetAccountsResponseMultiError
- type GetAccountsResponseValidationError
- func (e GetAccountsResponseValidationError) Cause() error
- func (e GetAccountsResponseValidationError) Error() string
- func (e GetAccountsResponseValidationError) ErrorName() string
- func (e GetAccountsResponseValidationError) Field() string
- func (e GetAccountsResponseValidationError) Key() bool
- func (e GetAccountsResponseValidationError) Reason() string
- type Hold
- func (*Hold) Descriptor() ([]byte, []int)deprecated
- func (x *Hold) GetAccountId() string
- func (x *Hold) GetAmount() string
- func (x *Hold) GetCreatedAt() *timestamppb.Timestamp
- func (x *Hold) GetDirection() string
- func (x *Hold) GetId() string
- func (x *Hold) GetReleasedAt() *timestamppb.Timestamp
- func (x *Hold) GetTransactionId() string
- func (*Hold) ProtoMessage()
- func (x *Hold) ProtoReflect() protoreflect.Message
- func (x *Hold) Reset()
- func (x *Hold) String() string
- func (m *Hold) Validate() error
- func (m *Hold) ValidateAll() error
- type HoldMultiError
- type HoldValidationError
- type InitializeAccountRequest
- func (*InitializeAccountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InitializeAccountRequest) GetCurrency() string
- func (x *InitializeAccountRequest) GetPortfolioId() string
- func (x *InitializeAccountRequest) GetUserId() string
- func (*InitializeAccountRequest) ProtoMessage()
- func (x *InitializeAccountRequest) ProtoReflect() protoreflect.Message
- func (x *InitializeAccountRequest) Reset()
- func (x *InitializeAccountRequest) String() string
- func (m *InitializeAccountRequest) Validate() error
- func (m *InitializeAccountRequest) ValidateAll() error
- type InitializeAccountRequestMultiError
- type InitializeAccountRequestValidationError
- func (e InitializeAccountRequestValidationError) Cause() error
- func (e InitializeAccountRequestValidationError) Error() string
- func (e InitializeAccountRequestValidationError) ErrorName() string
- func (e InitializeAccountRequestValidationError) Field() string
- func (e InitializeAccountRequestValidationError) Key() bool
- func (e InitializeAccountRequestValidationError) Reason() string
- type InitializeAccountResponse
- func (*InitializeAccountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InitializeAccountResponse) GetAccount() *Account
- func (x *InitializeAccountResponse) GetAccountBalance() *AccountBalance
- func (*InitializeAccountResponse) ProtoMessage()
- func (x *InitializeAccountResponse) ProtoReflect() protoreflect.Message
- func (x *InitializeAccountResponse) Reset()
- func (x *InitializeAccountResponse) String() string
- func (m *InitializeAccountResponse) Validate() error
- func (m *InitializeAccountResponse) ValidateAll() error
- type InitializeAccountResponseMultiError
- type InitializeAccountResponseValidationError
- func (e InitializeAccountResponseValidationError) Cause() error
- func (e InitializeAccountResponseValidationError) Error() string
- func (e InitializeAccountResponseValidationError) ErrorName() string
- func (e InitializeAccountResponseValidationError) Field() string
- func (e InitializeAccountResponseValidationError) Key() bool
- func (e InitializeAccountResponseValidationError) Reason() string
- type LedgerClient
- type LedgerServer
- type PartialReleaseHoldRequest
- func (*PartialReleaseHoldRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PartialReleaseHoldRequest) GetOrderId() string
- func (x *PartialReleaseHoldRequest) GetReceiverAmount() string
- func (x *PartialReleaseHoldRequest) GetRequestId() string
- func (x *PartialReleaseHoldRequest) GetRetailFeeAmount() *wrapperspb.StringValue
- func (x *PartialReleaseHoldRequest) GetSenderAmount() string
- func (x *PartialReleaseHoldRequest) GetVenueFeeAmount() *wrapperspb.StringValue
- func (*PartialReleaseHoldRequest) ProtoMessage()
- func (x *PartialReleaseHoldRequest) ProtoReflect() protoreflect.Message
- func (x *PartialReleaseHoldRequest) Reset()
- func (x *PartialReleaseHoldRequest) String() string
- func (m *PartialReleaseHoldRequest) Validate() error
- func (m *PartialReleaseHoldRequest) ValidateAll() error
- type PartialReleaseHoldRequestMultiError
- type PartialReleaseHoldRequestValidationError
- func (e PartialReleaseHoldRequestValidationError) Cause() error
- func (e PartialReleaseHoldRequestValidationError) Error() string
- func (e PartialReleaseHoldRequestValidationError) ErrorName() string
- func (e PartialReleaseHoldRequestValidationError) Field() string
- func (e PartialReleaseHoldRequestValidationError) Key() bool
- func (e PartialReleaseHoldRequestValidationError) Reason() string
- type PartialReleaseHoldResponse
- func (*PartialReleaseHoldResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PartialReleaseHoldResponse) GetFailureMessage() *wrapperspb.StringValue
- func (x *PartialReleaseHoldResponse) GetSuccessful() bool
- func (*PartialReleaseHoldResponse) ProtoMessage()
- func (x *PartialReleaseHoldResponse) ProtoReflect() protoreflect.Message
- func (x *PartialReleaseHoldResponse) Reset()
- func (x *PartialReleaseHoldResponse) String() string
- func (m *PartialReleaseHoldResponse) Validate() error
- func (m *PartialReleaseHoldResponse) ValidateAll() error
- type PartialReleaseHoldResponseMultiError
- type PartialReleaseHoldResponseValidationError
- func (e PartialReleaseHoldResponseValidationError) Cause() error
- func (e PartialReleaseHoldResponseValidationError) Error() string
- func (e PartialReleaseHoldResponseValidationError) ErrorName() string
- func (e PartialReleaseHoldResponseValidationError) Field() string
- func (e PartialReleaseHoldResponseValidationError) Key() bool
- func (e PartialReleaseHoldResponseValidationError) Reason() string
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
- func (x *Transaction) GetFinalizedAt() *timestamppb.Timestamp
- func (x *Transaction) GetId() string
- func (x *Transaction) GetReceiverId() string
- func (x *Transaction) GetRequestId() string
- func (x *Transaction) GetSenderId() string
- func (x *Transaction) GetTransactionStatus() TransactionStatus
- func (x *Transaction) GetTransactionType() TransactionType
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- func (m *Transaction) Validate() error
- func (m *Transaction) ValidateAll() error
- type TransactionMultiError
- type TransactionStatus
- func (TransactionStatus) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionStatus) Enum() *TransactionStatus
- func (TransactionStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionStatus) Number() protoreflect.EnumNumber
- func (x TransactionStatus) String() string
- func (TransactionStatus) Type() protoreflect.EnumType
- type TransactionType
- func (TransactionType) Descriptor() protoreflect.EnumDescriptor
- func (x TransactionType) Enum() *TransactionType
- func (TransactionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TransactionType) Number() protoreflect.EnumNumber
- func (x TransactionType) String() string
- func (TransactionType) Type() protoreflect.EnumType
- type TransactionValidationError
- func (e TransactionValidationError) Cause() error
- func (e TransactionValidationError) Error() string
- func (e TransactionValidationError) ErrorName() string
- func (e TransactionValidationError) Field() string
- func (e TransactionValidationError) Key() bool
- func (e TransactionValidationError) Reason() string
- type UnimplementedLedgerServer
- func (UnimplementedLedgerServer) CreateTransaction(context.Context, *CreateTransactionRequest) (*CreateTransactionResponse, error)
- func (UnimplementedLedgerServer) FinalizeTransaction(context.Context, *FinalizeTransactionRequest) (*FinalizeTransactionResponse, error)
- func (UnimplementedLedgerServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
- func (UnimplementedLedgerServer) InitializeAccount(context.Context, *InitializeAccountRequest) (*InitializeAccountResponse, error)
- func (UnimplementedLedgerServer) PartialReleaseHold(context.Context, *PartialReleaseHoldRequest) (*PartialReleaseHoldResponse, error)
- type UnsafeLedgerServer
Constants ¶
This section is empty.
Variables ¶
var ( TransactionType_name = map[int32]string{ 0: "TRANSACTION_TYPE_UNSPECIFIED", 1: "TRANSACTION_TYPE_TRANSFER", 2: "TRANSACTION_TYPE_ORDER", 3: "TRANSACTION_TYPE_CONVERT", } TransactionType_value = map[string]int32{ "TRANSACTION_TYPE_UNSPECIFIED": 0, "TRANSACTION_TYPE_TRANSFER": 1, "TRANSACTION_TYPE_ORDER": 2, "TRANSACTION_TYPE_CONVERT": 3, } )
Enum value maps for TransactionType.
var ( TransactionStatus_name = map[int32]string{ 0: "TRANSACTION_STATUS_UNSPECIFIED", 1: "TRANSACTION_STATUS_COMPLETE", 2: "TRANSACTION_STATUS_FAILED", 3: "TRANSACTION_STATUS_CANCELED", 4: "TRANSACTION_STATUS_PENDING", } TransactionStatus_value = map[string]int32{ "TRANSACTION_STATUS_UNSPECIFIED": 0, "TRANSACTION_STATUS_COMPLETE": 1, "TRANSACTION_STATUS_FAILED": 2, "TRANSACTION_STATUS_CANCELED": 3, "TRANSACTION_STATUS_PENDING": 4, } )
Enum value maps for TransactionStatus.
var File_pkg_pbs_ledger_v1_model_proto protoreflect.FileDescriptor
var File_pkg_pbs_ledger_v1_service_proto protoreflect.FileDescriptor
var Ledger_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pkg.pbs.ledger.v1.Ledger", HandlerType: (*LedgerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InitializeAccount", Handler: _Ledger_InitializeAccount_Handler, }, { MethodName: "GetAccounts", Handler: _Ledger_GetAccounts_Handler, }, { MethodName: "CreateTransaction", Handler: _Ledger_CreateTransaction_Handler, }, { MethodName: "PartialReleaseHold", Handler: _Ledger_PartialReleaseHold_Handler, }, { MethodName: "FinalizeTransaction", Handler: _Ledger_FinalizeTransaction_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/pbs/ledger/v1/service.proto", }
Ledger_ServiceDesc is the grpc.ServiceDesc for Ledger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLedgerServer ¶
func RegisterLedgerServer(s grpc.ServiceRegistrar, srv LedgerServer)
Types ¶
type Account ¶
type Account struct { Id *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` PortfolioId *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=portfolioId,proto3" json:"portfolioId,omitempty"` UserId string `protobuf:"bytes,3,opt,name=userId,proto3" json:"userId,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetCreatedAt ¶
func (x *Account) GetCreatedAt() *timestamppb.Timestamp
func (*Account) GetCurrency ¶
func (*Account) GetId ¶
func (x *Account) GetId() *wrapperspb.StringValue
func (*Account) GetPortfolioId ¶
func (x *Account) GetPortfolioId() *wrapperspb.StringValue
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
func (*Account) Validate ¶
Validate checks the field values on Account with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Account) ValidateAll ¶
ValidateAll checks the field values on Account with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountMultiError, or nil if none found.
type AccountAndBalance ¶
type AccountAndBalance struct { AccountId string `protobuf:"bytes,1,opt,name=accountId,proto3" json:"accountId,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"` Hold string `protobuf:"bytes,4,opt,name=hold,proto3" json:"hold,omitempty"` Available string `protobuf:"bytes,5,opt,name=available,proto3" json:"available,omitempty"` BalanceAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=balanceAt,proto3" json:"balanceAt,omitempty"` // contains filtered or unexported fields }
func (*AccountAndBalance) Descriptor
deprecated
func (*AccountAndBalance) Descriptor() ([]byte, []int)
Deprecated: Use AccountAndBalance.ProtoReflect.Descriptor instead.
func (*AccountAndBalance) GetAccountId ¶
func (x *AccountAndBalance) GetAccountId() string
func (*AccountAndBalance) GetAvailable ¶
func (x *AccountAndBalance) GetAvailable() string
func (*AccountAndBalance) GetBalance ¶
func (x *AccountAndBalance) GetBalance() string
func (*AccountAndBalance) GetBalanceAt ¶
func (x *AccountAndBalance) GetBalanceAt() *timestamppb.Timestamp
func (*AccountAndBalance) GetCurrency ¶
func (x *AccountAndBalance) GetCurrency() string
func (*AccountAndBalance) GetHold ¶
func (x *AccountAndBalance) GetHold() string
func (*AccountAndBalance) ProtoMessage ¶
func (*AccountAndBalance) ProtoMessage()
func (*AccountAndBalance) ProtoReflect ¶
func (x *AccountAndBalance) ProtoReflect() protoreflect.Message
func (*AccountAndBalance) Reset ¶
func (x *AccountAndBalance) Reset()
func (*AccountAndBalance) String ¶
func (x *AccountAndBalance) String() string
func (*AccountAndBalance) Validate ¶
func (m *AccountAndBalance) Validate() error
Validate checks the field values on AccountAndBalance with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AccountAndBalance) ValidateAll ¶
func (m *AccountAndBalance) ValidateAll() error
ValidateAll checks the field values on AccountAndBalance with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountAndBalanceMultiError, or nil if none found.
type AccountAndBalanceMultiError ¶
type AccountAndBalanceMultiError []error
AccountAndBalanceMultiError is an error wrapping multiple validation errors returned by AccountAndBalance.ValidateAll() if the designated constraints aren't met.
func (AccountAndBalanceMultiError) AllErrors ¶
func (m AccountAndBalanceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountAndBalanceMultiError) Error ¶
func (m AccountAndBalanceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountAndBalanceValidationError ¶
type AccountAndBalanceValidationError struct {
// contains filtered or unexported fields
}
AccountAndBalanceValidationError is the validation error returned by AccountAndBalance.Validate if the designated constraints aren't met.
func (AccountAndBalanceValidationError) Cause ¶
func (e AccountAndBalanceValidationError) Cause() error
Cause function returns cause value.
func (AccountAndBalanceValidationError) Error ¶
func (e AccountAndBalanceValidationError) Error() string
Error satisfies the builtin error interface
func (AccountAndBalanceValidationError) ErrorName ¶
func (e AccountAndBalanceValidationError) ErrorName() string
ErrorName returns error name.
func (AccountAndBalanceValidationError) Field ¶
func (e AccountAndBalanceValidationError) Field() string
Field function returns field value.
func (AccountAndBalanceValidationError) Key ¶
func (e AccountAndBalanceValidationError) Key() bool
Key function returns key value.
func (AccountAndBalanceValidationError) Reason ¶
func (e AccountAndBalanceValidationError) Reason() string
Reason function returns reason value.
type AccountBalance ¶
type AccountBalance struct { Id *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"` Hold string `protobuf:"bytes,3,opt,name=hold,proto3" json:"hold,omitempty"` Available string `protobuf:"bytes,4,opt,name=available,proto3" json:"available,omitempty"` AccountId *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
func (*AccountBalance) Descriptor
deprecated
func (*AccountBalance) Descriptor() ([]byte, []int)
Deprecated: Use AccountBalance.ProtoReflect.Descriptor instead.
func (*AccountBalance) GetAccountId ¶
func (x *AccountBalance) GetAccountId() *wrapperspb.StringValue
func (*AccountBalance) GetAvailable ¶
func (x *AccountBalance) GetAvailable() string
func (*AccountBalance) GetBalance ¶
func (x *AccountBalance) GetBalance() string
func (*AccountBalance) GetHold ¶
func (x *AccountBalance) GetHold() string
func (*AccountBalance) GetId ¶
func (x *AccountBalance) GetId() *wrapperspb.StringValue
func (*AccountBalance) ProtoMessage ¶
func (*AccountBalance) ProtoMessage()
func (*AccountBalance) ProtoReflect ¶
func (x *AccountBalance) ProtoReflect() protoreflect.Message
func (*AccountBalance) Reset ¶
func (x *AccountBalance) Reset()
func (*AccountBalance) String ¶
func (x *AccountBalance) String() string
func (*AccountBalance) Validate ¶
func (m *AccountBalance) Validate() error
Validate checks the field values on AccountBalance with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AccountBalance) ValidateAll ¶
func (m *AccountBalance) ValidateAll() error
ValidateAll checks the field values on AccountBalance with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AccountBalanceMultiError, or nil if none found.
type AccountBalanceMultiError ¶
type AccountBalanceMultiError []error
AccountBalanceMultiError is an error wrapping multiple validation errors returned by AccountBalance.ValidateAll() if the designated constraints aren't met.
func (AccountBalanceMultiError) AllErrors ¶
func (m AccountBalanceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountBalanceMultiError) Error ¶
func (m AccountBalanceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountBalanceValidationError ¶
type AccountBalanceValidationError struct {
// contains filtered or unexported fields
}
AccountBalanceValidationError is the validation error returned by AccountBalance.Validate if the designated constraints aren't met.
func (AccountBalanceValidationError) Cause ¶
func (e AccountBalanceValidationError) Cause() error
Cause function returns cause value.
func (AccountBalanceValidationError) Error ¶
func (e AccountBalanceValidationError) Error() string
Error satisfies the builtin error interface
func (AccountBalanceValidationError) ErrorName ¶
func (e AccountBalanceValidationError) ErrorName() string
ErrorName returns error name.
func (AccountBalanceValidationError) Field ¶
func (e AccountBalanceValidationError) Field() string
Field function returns field value.
func (AccountBalanceValidationError) Key ¶
func (e AccountBalanceValidationError) Key() bool
Key function returns key value.
func (AccountBalanceValidationError) Reason ¶
func (e AccountBalanceValidationError) Reason() string
Reason function returns reason value.
type AccountMultiError ¶
type AccountMultiError []error
AccountMultiError is an error wrapping multiple validation errors returned by Account.ValidateAll() if the designated constraints aren't met.
func (AccountMultiError) AllErrors ¶
func (m AccountMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountMultiError) Error ¶
func (m AccountMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountValidationError ¶
type AccountValidationError struct {
// contains filtered or unexported fields
}
AccountValidationError is the validation error returned by Account.Validate if the designated constraints aren't met.
func (AccountValidationError) Cause ¶
func (e AccountValidationError) Cause() error
Cause function returns cause value.
func (AccountValidationError) Error ¶
func (e AccountValidationError) Error() string
Error satisfies the builtin error interface
func (AccountValidationError) ErrorName ¶
func (e AccountValidationError) ErrorName() string
ErrorName returns error name.
func (AccountValidationError) Field ¶
func (e AccountValidationError) Field() string
Field function returns field value.
func (AccountValidationError) Key ¶
func (e AccountValidationError) Key() bool
Key function returns key value.
func (AccountValidationError) Reason ¶
func (e AccountValidationError) Reason() string
Reason function returns reason value.
type CreateTransactionRequest ¶
type CreateTransactionRequest struct { OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` Sender *Account `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *Account `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` TotalAmount string `protobuf:"bytes,4,opt,name=totalAmount,proto3" json:"totalAmount,omitempty"` FeeAmount *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=feeAmount,proto3" json:"feeAmount,omitempty"` TransactionType TransactionType `protobuf:"varint,6,opt,name=transactionType,proto3,enum=pkg.pbs.ledger.v1.TransactionType" json:"transactionType,omitempty"` RequestId *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=requestId,proto3" json:"requestId,omitempty"` // contains filtered or unexported fields }
func (*CreateTransactionRequest) Descriptor
deprecated
func (*CreateTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTransactionRequest.ProtoReflect.Descriptor instead.
func (*CreateTransactionRequest) GetFeeAmount ¶
func (x *CreateTransactionRequest) GetFeeAmount() *wrapperspb.StringValue
func (*CreateTransactionRequest) GetOrderId ¶
func (x *CreateTransactionRequest) GetOrderId() string
func (*CreateTransactionRequest) GetReceiver ¶
func (x *CreateTransactionRequest) GetReceiver() *Account
func (*CreateTransactionRequest) GetRequestId ¶
func (x *CreateTransactionRequest) GetRequestId() *wrapperspb.StringValue
func (*CreateTransactionRequest) GetSender ¶
func (x *CreateTransactionRequest) GetSender() *Account
func (*CreateTransactionRequest) GetTotalAmount ¶
func (x *CreateTransactionRequest) GetTotalAmount() string
func (*CreateTransactionRequest) GetTransactionType ¶
func (x *CreateTransactionRequest) GetTransactionType() TransactionType
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
func (*CreateTransactionRequest) Validate ¶
func (m *CreateTransactionRequest) Validate() error
Validate checks the field values on CreateTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateTransactionRequest) ValidateAll ¶
func (m *CreateTransactionRequest) ValidateAll() error
ValidateAll checks the field values on CreateTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTransactionRequestMultiError, or nil if none found.
type CreateTransactionRequestMultiError ¶
type CreateTransactionRequestMultiError []error
CreateTransactionRequestMultiError is an error wrapping multiple validation errors returned by CreateTransactionRequest.ValidateAll() if the designated constraints aren't met.
func (CreateTransactionRequestMultiError) AllErrors ¶
func (m CreateTransactionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTransactionRequestMultiError) Error ¶
func (m CreateTransactionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTransactionRequestValidationError ¶
type CreateTransactionRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTransactionRequestValidationError is the validation error returned by CreateTransactionRequest.Validate if the designated constraints aren't met.
func (CreateTransactionRequestValidationError) Cause ¶
func (e CreateTransactionRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTransactionRequestValidationError) Error ¶
func (e CreateTransactionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTransactionRequestValidationError) ErrorName ¶
func (e CreateTransactionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTransactionRequestValidationError) Field ¶
func (e CreateTransactionRequestValidationError) Field() string
Field function returns field value.
func (CreateTransactionRequestValidationError) Key ¶
func (e CreateTransactionRequestValidationError) Key() bool
Key function returns key value.
func (CreateTransactionRequestValidationError) Reason ¶
func (e CreateTransactionRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTransactionResponse ¶
type CreateTransactionResponse struct { Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // contains filtered or unexported fields }
func (*CreateTransactionResponse) Descriptor
deprecated
func (*CreateTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTransactionResponse.ProtoReflect.Descriptor instead.
func (*CreateTransactionResponse) GetTransaction ¶
func (x *CreateTransactionResponse) GetTransaction() *Transaction
func (*CreateTransactionResponse) ProtoMessage ¶
func (*CreateTransactionResponse) ProtoMessage()
func (*CreateTransactionResponse) ProtoReflect ¶
func (x *CreateTransactionResponse) ProtoReflect() protoreflect.Message
func (*CreateTransactionResponse) Reset ¶
func (x *CreateTransactionResponse) Reset()
func (*CreateTransactionResponse) String ¶
func (x *CreateTransactionResponse) String() string
func (*CreateTransactionResponse) Validate ¶
func (m *CreateTransactionResponse) Validate() error
Validate checks the field values on CreateTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateTransactionResponse) ValidateAll ¶
func (m *CreateTransactionResponse) ValidateAll() error
ValidateAll checks the field values on CreateTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTransactionResponseMultiError, or nil if none found.
type CreateTransactionResponseMultiError ¶
type CreateTransactionResponseMultiError []error
CreateTransactionResponseMultiError is an error wrapping multiple validation errors returned by CreateTransactionResponse.ValidateAll() if the designated constraints aren't met.
func (CreateTransactionResponseMultiError) AllErrors ¶
func (m CreateTransactionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTransactionResponseMultiError) Error ¶
func (m CreateTransactionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateTransactionResponseValidationError ¶
type CreateTransactionResponseValidationError struct {
// contains filtered or unexported fields
}
CreateTransactionResponseValidationError is the validation error returned by CreateTransactionResponse.Validate if the designated constraints aren't met.
func (CreateTransactionResponseValidationError) Cause ¶
func (e CreateTransactionResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTransactionResponseValidationError) Error ¶
func (e CreateTransactionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTransactionResponseValidationError) ErrorName ¶
func (e CreateTransactionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTransactionResponseValidationError) Field ¶
func (e CreateTransactionResponseValidationError) Field() string
Field function returns field value.
func (CreateTransactionResponseValidationError) Key ¶
func (e CreateTransactionResponseValidationError) Key() bool
Key function returns key value.
func (CreateTransactionResponseValidationError) Reason ¶
func (e CreateTransactionResponseValidationError) Reason() string
Reason function returns reason value.
type Entry ¶
type Entry struct { // UUID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Parent Portfolio Account UUID AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Transaction UUID TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // Amount in asset's smallest unit e.g. Satoshi for Bitcoin Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // CREDIT or DEBIT Direction string `protobuf:"bytes,5,opt,name=direction,proto3" json:"direction,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetAccountId ¶
func (*Entry) GetCreatedAt ¶
func (x *Entry) GetCreatedAt() *timestamppb.Timestamp
func (*Entry) GetDirection ¶
func (*Entry) GetTransactionId ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
func (*Entry) Validate ¶
Validate checks the field values on Entry with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Entry) ValidateAll ¶
ValidateAll checks the field values on Entry with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EntryMultiError, or nil if none found.
type EntryMultiError ¶
type EntryMultiError []error
EntryMultiError is an error wrapping multiple validation errors returned by Entry.ValidateAll() if the designated constraints aren't met.
func (EntryMultiError) AllErrors ¶
func (m EntryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EntryMultiError) Error ¶
func (m EntryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EntryValidationError ¶
type EntryValidationError struct {
// contains filtered or unexported fields
}
EntryValidationError is the validation error returned by Entry.Validate if the designated constraints aren't met.
func (EntryValidationError) Cause ¶
func (e EntryValidationError) Cause() error
Cause function returns cause value.
func (EntryValidationError) Error ¶
func (e EntryValidationError) Error() string
Error satisfies the builtin error interface
func (EntryValidationError) ErrorName ¶
func (e EntryValidationError) ErrorName() string
ErrorName returns error name.
func (EntryValidationError) Field ¶
func (e EntryValidationError) Field() string
Field function returns field value.
func (EntryValidationError) Key ¶
func (e EntryValidationError) Key() bool
Key function returns key value.
func (EntryValidationError) Reason ¶
func (e EntryValidationError) Reason() string
Reason function returns reason value.
type FinalizeTransactionRequest ¶
type FinalizeTransactionRequest struct { OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` FinalizedStatus TransactionStatus `protobuf:"varint,3,opt,name=finalizedStatus,proto3,enum=pkg.pbs.ledger.v1.TransactionStatus" json:"finalizedStatus,omitempty"` SenderAmount *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=senderAmount,proto3" json:"senderAmount,omitempty"` ReceiverAmount *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=receiverAmount,proto3" json:"receiverAmount,omitempty"` VenueFeeAmount *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=venueFeeAmount,proto3" json:"venueFeeAmount,omitempty"` RetailFeeAmount *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=retailFeeAmount,proto3" json:"retailFeeAmount,omitempty"` // contains filtered or unexported fields }
func (*FinalizeTransactionRequest) Descriptor
deprecated
func (*FinalizeTransactionRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeTransactionRequest.ProtoReflect.Descriptor instead.
func (*FinalizeTransactionRequest) GetFinalizedStatus ¶
func (x *FinalizeTransactionRequest) GetFinalizedStatus() TransactionStatus
func (*FinalizeTransactionRequest) GetOrderId ¶
func (x *FinalizeTransactionRequest) GetOrderId() string
func (*FinalizeTransactionRequest) GetReceiverAmount ¶
func (x *FinalizeTransactionRequest) GetReceiverAmount() *wrapperspb.StringValue
func (*FinalizeTransactionRequest) GetRequestId ¶
func (x *FinalizeTransactionRequest) GetRequestId() string
func (*FinalizeTransactionRequest) GetRetailFeeAmount ¶
func (x *FinalizeTransactionRequest) GetRetailFeeAmount() *wrapperspb.StringValue
func (*FinalizeTransactionRequest) GetSenderAmount ¶
func (x *FinalizeTransactionRequest) GetSenderAmount() *wrapperspb.StringValue
func (*FinalizeTransactionRequest) GetVenueFeeAmount ¶
func (x *FinalizeTransactionRequest) GetVenueFeeAmount() *wrapperspb.StringValue
func (*FinalizeTransactionRequest) ProtoMessage ¶
func (*FinalizeTransactionRequest) ProtoMessage()
func (*FinalizeTransactionRequest) ProtoReflect ¶
func (x *FinalizeTransactionRequest) ProtoReflect() protoreflect.Message
func (*FinalizeTransactionRequest) Reset ¶
func (x *FinalizeTransactionRequest) Reset()
func (*FinalizeTransactionRequest) String ¶
func (x *FinalizeTransactionRequest) String() string
func (*FinalizeTransactionRequest) Validate ¶
func (m *FinalizeTransactionRequest) Validate() error
Validate checks the field values on FinalizeTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FinalizeTransactionRequest) ValidateAll ¶
func (m *FinalizeTransactionRequest) ValidateAll() error
ValidateAll checks the field values on FinalizeTransactionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FinalizeTransactionRequestMultiError, or nil if none found.
type FinalizeTransactionRequestMultiError ¶
type FinalizeTransactionRequestMultiError []error
FinalizeTransactionRequestMultiError is an error wrapping multiple validation errors returned by FinalizeTransactionRequest.ValidateAll() if the designated constraints aren't met.
func (FinalizeTransactionRequestMultiError) AllErrors ¶
func (m FinalizeTransactionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FinalizeTransactionRequestMultiError) Error ¶
func (m FinalizeTransactionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FinalizeTransactionRequestValidationError ¶
type FinalizeTransactionRequestValidationError struct {
// contains filtered or unexported fields
}
FinalizeTransactionRequestValidationError is the validation error returned by FinalizeTransactionRequest.Validate if the designated constraints aren't met.
func (FinalizeTransactionRequestValidationError) Cause ¶
func (e FinalizeTransactionRequestValidationError) Cause() error
Cause function returns cause value.
func (FinalizeTransactionRequestValidationError) Error ¶
func (e FinalizeTransactionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FinalizeTransactionRequestValidationError) ErrorName ¶
func (e FinalizeTransactionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FinalizeTransactionRequestValidationError) Field ¶
func (e FinalizeTransactionRequestValidationError) Field() string
Field function returns field value.
func (FinalizeTransactionRequestValidationError) Key ¶
func (e FinalizeTransactionRequestValidationError) Key() bool
Key function returns key value.
func (FinalizeTransactionRequestValidationError) Reason ¶
func (e FinalizeTransactionRequestValidationError) Reason() string
Reason function returns reason value.
type FinalizeTransactionResponse ¶
type FinalizeTransactionResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` FailureMessage *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=failureMessage,proto3" json:"failureMessage,omitempty"` // contains filtered or unexported fields }
func (*FinalizeTransactionResponse) Descriptor
deprecated
func (*FinalizeTransactionResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeTransactionResponse.ProtoReflect.Descriptor instead.
func (*FinalizeTransactionResponse) GetFailureMessage ¶
func (x *FinalizeTransactionResponse) GetFailureMessage() *wrapperspb.StringValue
func (*FinalizeTransactionResponse) GetSuccessful ¶
func (x *FinalizeTransactionResponse) GetSuccessful() bool
func (*FinalizeTransactionResponse) ProtoMessage ¶
func (*FinalizeTransactionResponse) ProtoMessage()
func (*FinalizeTransactionResponse) ProtoReflect ¶
func (x *FinalizeTransactionResponse) ProtoReflect() protoreflect.Message
func (*FinalizeTransactionResponse) Reset ¶
func (x *FinalizeTransactionResponse) Reset()
func (*FinalizeTransactionResponse) String ¶
func (x *FinalizeTransactionResponse) String() string
func (*FinalizeTransactionResponse) Validate ¶
func (m *FinalizeTransactionResponse) Validate() error
Validate checks the field values on FinalizeTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FinalizeTransactionResponse) ValidateAll ¶
func (m *FinalizeTransactionResponse) ValidateAll() error
ValidateAll checks the field values on FinalizeTransactionResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FinalizeTransactionResponseMultiError, or nil if none found.
type FinalizeTransactionResponseMultiError ¶
type FinalizeTransactionResponseMultiError []error
FinalizeTransactionResponseMultiError is an error wrapping multiple validation errors returned by FinalizeTransactionResponse.ValidateAll() if the designated constraints aren't met.
func (FinalizeTransactionResponseMultiError) AllErrors ¶
func (m FinalizeTransactionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FinalizeTransactionResponseMultiError) Error ¶
func (m FinalizeTransactionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FinalizeTransactionResponseValidationError ¶
type FinalizeTransactionResponseValidationError struct {
// contains filtered or unexported fields
}
FinalizeTransactionResponseValidationError is the validation error returned by FinalizeTransactionResponse.Validate if the designated constraints aren't met.
func (FinalizeTransactionResponseValidationError) Cause ¶
func (e FinalizeTransactionResponseValidationError) Cause() error
Cause function returns cause value.
func (FinalizeTransactionResponseValidationError) Error ¶
func (e FinalizeTransactionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FinalizeTransactionResponseValidationError) ErrorName ¶
func (e FinalizeTransactionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FinalizeTransactionResponseValidationError) Field ¶
func (e FinalizeTransactionResponseValidationError) Field() string
Field function returns field value.
func (FinalizeTransactionResponseValidationError) Key ¶
func (e FinalizeTransactionResponseValidationError) Key() bool
Key function returns key value.
func (FinalizeTransactionResponseValidationError) Reason ¶
func (e FinalizeTransactionResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountsRequest ¶
type GetAccountsRequest struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsRequest) Descriptor
deprecated
func (*GetAccountsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsRequest.ProtoReflect.Descriptor instead.
func (*GetAccountsRequest) GetUserId ¶
func (x *GetAccountsRequest) GetUserId() string
func (*GetAccountsRequest) ProtoMessage ¶
func (*GetAccountsRequest) ProtoMessage()
func (*GetAccountsRequest) ProtoReflect ¶
func (x *GetAccountsRequest) ProtoReflect() protoreflect.Message
func (*GetAccountsRequest) Reset ¶
func (x *GetAccountsRequest) Reset()
func (*GetAccountsRequest) String ¶
func (x *GetAccountsRequest) String() string
func (*GetAccountsRequest) Validate ¶
func (m *GetAccountsRequest) Validate() error
Validate checks the field values on GetAccountsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAccountsRequest) ValidateAll ¶
func (m *GetAccountsRequest) ValidateAll() error
ValidateAll checks the field values on GetAccountsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAccountsRequestMultiError, or nil if none found.
type GetAccountsRequestMultiError ¶
type GetAccountsRequestMultiError []error
GetAccountsRequestMultiError is an error wrapping multiple validation errors returned by GetAccountsRequest.ValidateAll() if the designated constraints aren't met.
func (GetAccountsRequestMultiError) AllErrors ¶
func (m GetAccountsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountsRequestMultiError) Error ¶
func (m GetAccountsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountsRequestValidationError ¶
type GetAccountsRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountsRequestValidationError is the validation error returned by GetAccountsRequest.Validate if the designated constraints aren't met.
func (GetAccountsRequestValidationError) Cause ¶
func (e GetAccountsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountsRequestValidationError) Error ¶
func (e GetAccountsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountsRequestValidationError) ErrorName ¶
func (e GetAccountsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountsRequestValidationError) Field ¶
func (e GetAccountsRequestValidationError) Field() string
Field function returns field value.
func (GetAccountsRequestValidationError) Key ¶
func (e GetAccountsRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountsRequestValidationError) Reason ¶
func (e GetAccountsRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountsResponse ¶
type GetAccountsResponse struct { Accounts []*AccountAndBalance `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"` // contains filtered or unexported fields }
func (*GetAccountsResponse) Descriptor
deprecated
func (*GetAccountsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountsResponse.ProtoReflect.Descriptor instead.
func (*GetAccountsResponse) GetAccounts ¶
func (x *GetAccountsResponse) GetAccounts() []*AccountAndBalance
func (*GetAccountsResponse) ProtoMessage ¶
func (*GetAccountsResponse) ProtoMessage()
func (*GetAccountsResponse) ProtoReflect ¶
func (x *GetAccountsResponse) ProtoReflect() protoreflect.Message
func (*GetAccountsResponse) Reset ¶
func (x *GetAccountsResponse) Reset()
func (*GetAccountsResponse) String ¶
func (x *GetAccountsResponse) String() string
func (*GetAccountsResponse) Validate ¶
func (m *GetAccountsResponse) Validate() error
Validate checks the field values on GetAccountsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetAccountsResponse) ValidateAll ¶
func (m *GetAccountsResponse) ValidateAll() error
ValidateAll checks the field values on GetAccountsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAccountsResponseMultiError, or nil if none found.
type GetAccountsResponseMultiError ¶
type GetAccountsResponseMultiError []error
GetAccountsResponseMultiError is an error wrapping multiple validation errors returned by GetAccountsResponse.ValidateAll() if the designated constraints aren't met.
func (GetAccountsResponseMultiError) AllErrors ¶
func (m GetAccountsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountsResponseMultiError) Error ¶
func (m GetAccountsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountsResponseValidationError ¶
type GetAccountsResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountsResponseValidationError is the validation error returned by GetAccountsResponse.Validate if the designated constraints aren't met.
func (GetAccountsResponseValidationError) Cause ¶
func (e GetAccountsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountsResponseValidationError) Error ¶
func (e GetAccountsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountsResponseValidationError) ErrorName ¶
func (e GetAccountsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountsResponseValidationError) Field ¶
func (e GetAccountsResponseValidationError) Field() string
Field function returns field value.
func (GetAccountsResponseValidationError) Key ¶
func (e GetAccountsResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountsResponseValidationError) Reason ¶
func (e GetAccountsResponseValidationError) Reason() string
Reason function returns reason value.
type Hold ¶
type Hold struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` TransactionId string `protobuf:"bytes,3,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` Direction string `protobuf:"bytes,5,opt,name=direction,proto3" json:"direction,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ReleasedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=released_at,json=releasedAt,proto3" json:"released_at,omitempty"` // contains filtered or unexported fields }
func (*Hold) Descriptor
deprecated
func (*Hold) GetAccountId ¶
func (*Hold) GetCreatedAt ¶
func (x *Hold) GetCreatedAt() *timestamppb.Timestamp
func (*Hold) GetDirection ¶
func (*Hold) GetReleasedAt ¶
func (x *Hold) GetReleasedAt() *timestamppb.Timestamp
func (*Hold) GetTransactionId ¶
func (*Hold) ProtoMessage ¶
func (*Hold) ProtoMessage()
func (*Hold) ProtoReflect ¶
func (x *Hold) ProtoReflect() protoreflect.Message
func (*Hold) Validate ¶
Validate checks the field values on Hold with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Hold) ValidateAll ¶
ValidateAll checks the field values on Hold with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in HoldMultiError, or nil if none found.
type HoldMultiError ¶
type HoldMultiError []error
HoldMultiError is an error wrapping multiple validation errors returned by Hold.ValidateAll() if the designated constraints aren't met.
func (HoldMultiError) AllErrors ¶
func (m HoldMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (HoldMultiError) Error ¶
func (m HoldMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type HoldValidationError ¶
type HoldValidationError struct {
// contains filtered or unexported fields
}
HoldValidationError is the validation error returned by Hold.Validate if the designated constraints aren't met.
func (HoldValidationError) Cause ¶
func (e HoldValidationError) Cause() error
Cause function returns cause value.
func (HoldValidationError) Error ¶
func (e HoldValidationError) Error() string
Error satisfies the builtin error interface
func (HoldValidationError) ErrorName ¶
func (e HoldValidationError) ErrorName() string
ErrorName returns error name.
func (HoldValidationError) Field ¶
func (e HoldValidationError) Field() string
Field function returns field value.
func (HoldValidationError) Key ¶
func (e HoldValidationError) Key() bool
Key function returns key value.
func (HoldValidationError) Reason ¶
func (e HoldValidationError) Reason() string
Reason function returns reason value.
type InitializeAccountRequest ¶
type InitializeAccountRequest struct { PortfolioId string `protobuf:"bytes,1,opt,name=portfolioId,proto3" json:"portfolioId,omitempty"` UserId string `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"` Currency string `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"` // contains filtered or unexported fields }
func (*InitializeAccountRequest) Descriptor
deprecated
func (*InitializeAccountRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitializeAccountRequest.ProtoReflect.Descriptor instead.
func (*InitializeAccountRequest) GetCurrency ¶
func (x *InitializeAccountRequest) GetCurrency() string
func (*InitializeAccountRequest) GetPortfolioId ¶
func (x *InitializeAccountRequest) GetPortfolioId() string
func (*InitializeAccountRequest) GetUserId ¶
func (x *InitializeAccountRequest) GetUserId() string
func (*InitializeAccountRequest) ProtoMessage ¶
func (*InitializeAccountRequest) ProtoMessage()
func (*InitializeAccountRequest) ProtoReflect ¶
func (x *InitializeAccountRequest) ProtoReflect() protoreflect.Message
func (*InitializeAccountRequest) Reset ¶
func (x *InitializeAccountRequest) Reset()
func (*InitializeAccountRequest) String ¶
func (x *InitializeAccountRequest) String() string
func (*InitializeAccountRequest) Validate ¶
func (m *InitializeAccountRequest) Validate() error
Validate checks the field values on InitializeAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*InitializeAccountRequest) ValidateAll ¶
func (m *InitializeAccountRequest) ValidateAll() error
ValidateAll checks the field values on InitializeAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InitializeAccountRequestMultiError, or nil if none found.
type InitializeAccountRequestMultiError ¶
type InitializeAccountRequestMultiError []error
InitializeAccountRequestMultiError is an error wrapping multiple validation errors returned by InitializeAccountRequest.ValidateAll() if the designated constraints aren't met.
func (InitializeAccountRequestMultiError) AllErrors ¶
func (m InitializeAccountRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InitializeAccountRequestMultiError) Error ¶
func (m InitializeAccountRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InitializeAccountRequestValidationError ¶
type InitializeAccountRequestValidationError struct {
// contains filtered or unexported fields
}
InitializeAccountRequestValidationError is the validation error returned by InitializeAccountRequest.Validate if the designated constraints aren't met.
func (InitializeAccountRequestValidationError) Cause ¶
func (e InitializeAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (InitializeAccountRequestValidationError) Error ¶
func (e InitializeAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (InitializeAccountRequestValidationError) ErrorName ¶
func (e InitializeAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (InitializeAccountRequestValidationError) Field ¶
func (e InitializeAccountRequestValidationError) Field() string
Field function returns field value.
func (InitializeAccountRequestValidationError) Key ¶
func (e InitializeAccountRequestValidationError) Key() bool
Key function returns key value.
func (InitializeAccountRequestValidationError) Reason ¶
func (e InitializeAccountRequestValidationError) Reason() string
Reason function returns reason value.
type InitializeAccountResponse ¶
type InitializeAccountResponse struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` AccountBalance *AccountBalance `protobuf:"bytes,2,opt,name=accountBalance,proto3" json:"accountBalance,omitempty"` // contains filtered or unexported fields }
func (*InitializeAccountResponse) Descriptor
deprecated
func (*InitializeAccountResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitializeAccountResponse.ProtoReflect.Descriptor instead.
func (*InitializeAccountResponse) GetAccount ¶
func (x *InitializeAccountResponse) GetAccount() *Account
func (*InitializeAccountResponse) GetAccountBalance ¶
func (x *InitializeAccountResponse) GetAccountBalance() *AccountBalance
func (*InitializeAccountResponse) ProtoMessage ¶
func (*InitializeAccountResponse) ProtoMessage()
func (*InitializeAccountResponse) ProtoReflect ¶
func (x *InitializeAccountResponse) ProtoReflect() protoreflect.Message
func (*InitializeAccountResponse) Reset ¶
func (x *InitializeAccountResponse) Reset()
func (*InitializeAccountResponse) String ¶
func (x *InitializeAccountResponse) String() string
func (*InitializeAccountResponse) Validate ¶
func (m *InitializeAccountResponse) Validate() error
Validate checks the field values on InitializeAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*InitializeAccountResponse) ValidateAll ¶
func (m *InitializeAccountResponse) ValidateAll() error
ValidateAll checks the field values on InitializeAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InitializeAccountResponseMultiError, or nil if none found.
type InitializeAccountResponseMultiError ¶
type InitializeAccountResponseMultiError []error
InitializeAccountResponseMultiError is an error wrapping multiple validation errors returned by InitializeAccountResponse.ValidateAll() if the designated constraints aren't met.
func (InitializeAccountResponseMultiError) AllErrors ¶
func (m InitializeAccountResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InitializeAccountResponseMultiError) Error ¶
func (m InitializeAccountResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InitializeAccountResponseValidationError ¶
type InitializeAccountResponseValidationError struct {
// contains filtered or unexported fields
}
InitializeAccountResponseValidationError is the validation error returned by InitializeAccountResponse.Validate if the designated constraints aren't met.
func (InitializeAccountResponseValidationError) Cause ¶
func (e InitializeAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (InitializeAccountResponseValidationError) Error ¶
func (e InitializeAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (InitializeAccountResponseValidationError) ErrorName ¶
func (e InitializeAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (InitializeAccountResponseValidationError) Field ¶
func (e InitializeAccountResponseValidationError) Field() string
Field function returns field value.
func (InitializeAccountResponseValidationError) Key ¶
func (e InitializeAccountResponseValidationError) Key() bool
Key function returns key value.
func (InitializeAccountResponseValidationError) Reason ¶
func (e InitializeAccountResponseValidationError) Reason() string
Reason function returns reason value.
type LedgerClient ¶
type LedgerClient interface { InitializeAccount(ctx context.Context, in *InitializeAccountRequest, opts ...grpc.CallOption) (*InitializeAccountResponse, error) GetAccounts(ctx context.Context, in *GetAccountsRequest, opts ...grpc.CallOption) (*GetAccountsResponse, error) CreateTransaction(ctx context.Context, in *CreateTransactionRequest, opts ...grpc.CallOption) (*CreateTransactionResponse, error) PartialReleaseHold(ctx context.Context, in *PartialReleaseHoldRequest, opts ...grpc.CallOption) (*PartialReleaseHoldResponse, error) FinalizeTransaction(ctx context.Context, in *FinalizeTransactionRequest, opts ...grpc.CallOption) (*FinalizeTransactionResponse, error) }
LedgerClient is the client API for Ledger 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 NewLedgerClient ¶
func NewLedgerClient(cc grpc.ClientConnInterface) LedgerClient
type LedgerServer ¶
type LedgerServer interface { InitializeAccount(context.Context, *InitializeAccountRequest) (*InitializeAccountResponse, error) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error) CreateTransaction(context.Context, *CreateTransactionRequest) (*CreateTransactionResponse, error) PartialReleaseHold(context.Context, *PartialReleaseHoldRequest) (*PartialReleaseHoldResponse, error) FinalizeTransaction(context.Context, *FinalizeTransactionRequest) (*FinalizeTransactionResponse, error) // contains filtered or unexported methods }
LedgerServer is the server API for Ledger service. All implementations must embed UnimplementedLedgerServer for forward compatibility
type PartialReleaseHoldRequest ¶
type PartialReleaseHoldRequest struct { OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` RequestId string `protobuf:"bytes,2,opt,name=requestId,proto3" json:"requestId,omitempty"` SenderAmount string `protobuf:"bytes,3,opt,name=senderAmount,proto3" json:"senderAmount,omitempty"` ReceiverAmount string `protobuf:"bytes,4,opt,name=receiverAmount,proto3" json:"receiverAmount,omitempty"` VenueFeeAmount *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=venueFeeAmount,proto3" json:"venueFeeAmount,omitempty"` RetailFeeAmount *wrapperspb.StringValue `protobuf:"bytes,7,opt,name=retailFeeAmount,proto3" json:"retailFeeAmount,omitempty"` // contains filtered or unexported fields }
func (*PartialReleaseHoldRequest) Descriptor
deprecated
func (*PartialReleaseHoldRequest) Descriptor() ([]byte, []int)
Deprecated: Use PartialReleaseHoldRequest.ProtoReflect.Descriptor instead.
func (*PartialReleaseHoldRequest) GetOrderId ¶
func (x *PartialReleaseHoldRequest) GetOrderId() string
func (*PartialReleaseHoldRequest) GetReceiverAmount ¶
func (x *PartialReleaseHoldRequest) GetReceiverAmount() string
func (*PartialReleaseHoldRequest) GetRequestId ¶
func (x *PartialReleaseHoldRequest) GetRequestId() string
func (*PartialReleaseHoldRequest) GetRetailFeeAmount ¶
func (x *PartialReleaseHoldRequest) GetRetailFeeAmount() *wrapperspb.StringValue
func (*PartialReleaseHoldRequest) GetSenderAmount ¶
func (x *PartialReleaseHoldRequest) GetSenderAmount() string
func (*PartialReleaseHoldRequest) GetVenueFeeAmount ¶
func (x *PartialReleaseHoldRequest) GetVenueFeeAmount() *wrapperspb.StringValue
func (*PartialReleaseHoldRequest) ProtoMessage ¶
func (*PartialReleaseHoldRequest) ProtoMessage()
func (*PartialReleaseHoldRequest) ProtoReflect ¶
func (x *PartialReleaseHoldRequest) ProtoReflect() protoreflect.Message
func (*PartialReleaseHoldRequest) Reset ¶
func (x *PartialReleaseHoldRequest) Reset()
func (*PartialReleaseHoldRequest) String ¶
func (x *PartialReleaseHoldRequest) String() string
func (*PartialReleaseHoldRequest) Validate ¶
func (m *PartialReleaseHoldRequest) Validate() error
Validate checks the field values on PartialReleaseHoldRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PartialReleaseHoldRequest) ValidateAll ¶
func (m *PartialReleaseHoldRequest) ValidateAll() error
ValidateAll checks the field values on PartialReleaseHoldRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PartialReleaseHoldRequestMultiError, or nil if none found.
type PartialReleaseHoldRequestMultiError ¶
type PartialReleaseHoldRequestMultiError []error
PartialReleaseHoldRequestMultiError is an error wrapping multiple validation errors returned by PartialReleaseHoldRequest.ValidateAll() if the designated constraints aren't met.
func (PartialReleaseHoldRequestMultiError) AllErrors ¶
func (m PartialReleaseHoldRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PartialReleaseHoldRequestMultiError) Error ¶
func (m PartialReleaseHoldRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PartialReleaseHoldRequestValidationError ¶
type PartialReleaseHoldRequestValidationError struct {
// contains filtered or unexported fields
}
PartialReleaseHoldRequestValidationError is the validation error returned by PartialReleaseHoldRequest.Validate if the designated constraints aren't met.
func (PartialReleaseHoldRequestValidationError) Cause ¶
func (e PartialReleaseHoldRequestValidationError) Cause() error
Cause function returns cause value.
func (PartialReleaseHoldRequestValidationError) Error ¶
func (e PartialReleaseHoldRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PartialReleaseHoldRequestValidationError) ErrorName ¶
func (e PartialReleaseHoldRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PartialReleaseHoldRequestValidationError) Field ¶
func (e PartialReleaseHoldRequestValidationError) Field() string
Field function returns field value.
func (PartialReleaseHoldRequestValidationError) Key ¶
func (e PartialReleaseHoldRequestValidationError) Key() bool
Key function returns key value.
func (PartialReleaseHoldRequestValidationError) Reason ¶
func (e PartialReleaseHoldRequestValidationError) Reason() string
Reason function returns reason value.
type PartialReleaseHoldResponse ¶
type PartialReleaseHoldResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` FailureMessage *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=failureMessage,proto3" json:"failureMessage,omitempty"` // contains filtered or unexported fields }
func (*PartialReleaseHoldResponse) Descriptor
deprecated
func (*PartialReleaseHoldResponse) Descriptor() ([]byte, []int)
Deprecated: Use PartialReleaseHoldResponse.ProtoReflect.Descriptor instead.
func (*PartialReleaseHoldResponse) GetFailureMessage ¶
func (x *PartialReleaseHoldResponse) GetFailureMessage() *wrapperspb.StringValue
func (*PartialReleaseHoldResponse) GetSuccessful ¶
func (x *PartialReleaseHoldResponse) GetSuccessful() bool
func (*PartialReleaseHoldResponse) ProtoMessage ¶
func (*PartialReleaseHoldResponse) ProtoMessage()
func (*PartialReleaseHoldResponse) ProtoReflect ¶
func (x *PartialReleaseHoldResponse) ProtoReflect() protoreflect.Message
func (*PartialReleaseHoldResponse) Reset ¶
func (x *PartialReleaseHoldResponse) Reset()
func (*PartialReleaseHoldResponse) String ¶
func (x *PartialReleaseHoldResponse) String() string
func (*PartialReleaseHoldResponse) Validate ¶
func (m *PartialReleaseHoldResponse) Validate() error
Validate checks the field values on PartialReleaseHoldResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PartialReleaseHoldResponse) ValidateAll ¶
func (m *PartialReleaseHoldResponse) ValidateAll() error
ValidateAll checks the field values on PartialReleaseHoldResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PartialReleaseHoldResponseMultiError, or nil if none found.
type PartialReleaseHoldResponseMultiError ¶
type PartialReleaseHoldResponseMultiError []error
PartialReleaseHoldResponseMultiError is an error wrapping multiple validation errors returned by PartialReleaseHoldResponse.ValidateAll() if the designated constraints aren't met.
func (PartialReleaseHoldResponseMultiError) AllErrors ¶
func (m PartialReleaseHoldResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PartialReleaseHoldResponseMultiError) Error ¶
func (m PartialReleaseHoldResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PartialReleaseHoldResponseValidationError ¶
type PartialReleaseHoldResponseValidationError struct {
// contains filtered or unexported fields
}
PartialReleaseHoldResponseValidationError is the validation error returned by PartialReleaseHoldResponse.Validate if the designated constraints aren't met.
func (PartialReleaseHoldResponseValidationError) Cause ¶
func (e PartialReleaseHoldResponseValidationError) Cause() error
Cause function returns cause value.
func (PartialReleaseHoldResponseValidationError) Error ¶
func (e PartialReleaseHoldResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PartialReleaseHoldResponseValidationError) ErrorName ¶
func (e PartialReleaseHoldResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PartialReleaseHoldResponseValidationError) Field ¶
func (e PartialReleaseHoldResponseValidationError) Field() string
Field function returns field value.
func (PartialReleaseHoldResponseValidationError) Key ¶
func (e PartialReleaseHoldResponseValidationError) Key() bool
Key function returns key value.
func (PartialReleaseHoldResponseValidationError) Reason ¶
func (e PartialReleaseHoldResponseValidationError) Reason() string
Reason function returns reason value.
type Transaction ¶
type Transaction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SenderId string `protobuf:"bytes,2,opt,name=senderId,proto3" json:"senderId,omitempty"` ReceiverId string `protobuf:"bytes,3,opt,name=receiverId,proto3" json:"receiverId,omitempty"` RequestId string `protobuf:"bytes,4,opt,name=requestId,proto3" json:"requestId,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` TransactionType TransactionType `protobuf:"varint,6,opt,name=transactionType,proto3,enum=pkg.pbs.ledger.v1.TransactionType" json:"transactionType,omitempty"` TransactionStatus TransactionStatus `` /* 129-byte string literal not displayed */ FinalizedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finalized_at,json=finalizedAt,proto3,oneof" json:"finalized_at,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetCreatedAt ¶
func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
func (*Transaction) GetFinalizedAt ¶
func (x *Transaction) GetFinalizedAt() *timestamppb.Timestamp
func (*Transaction) GetId ¶
func (x *Transaction) GetId() string
func (*Transaction) GetReceiverId ¶
func (x *Transaction) GetReceiverId() string
func (*Transaction) GetRequestId ¶
func (x *Transaction) GetRequestId() string
func (*Transaction) GetSenderId ¶
func (x *Transaction) GetSenderId() string
func (*Transaction) GetTransactionStatus ¶
func (x *Transaction) GetTransactionStatus() TransactionStatus
func (*Transaction) GetTransactionType ¶
func (x *Transaction) GetTransactionType() TransactionType
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
func (*Transaction) Validate ¶
func (m *Transaction) Validate() error
Validate checks the field values on Transaction with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Transaction) ValidateAll ¶
func (m *Transaction) ValidateAll() error
ValidateAll checks the field values on Transaction with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TransactionMultiError, or nil if none found.
type TransactionMultiError ¶
type TransactionMultiError []error
TransactionMultiError is an error wrapping multiple validation errors returned by Transaction.ValidateAll() if the designated constraints aren't met.
func (TransactionMultiError) AllErrors ¶
func (m TransactionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransactionMultiError) Error ¶
func (m TransactionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TransactionStatus ¶
type TransactionStatus int32
const ( TransactionStatus_TRANSACTION_STATUS_UNSPECIFIED TransactionStatus = 0 TransactionStatus_TRANSACTION_STATUS_COMPLETE TransactionStatus = 1 TransactionStatus_TRANSACTION_STATUS_FAILED TransactionStatus = 2 TransactionStatus_TRANSACTION_STATUS_CANCELED TransactionStatus = 3 TransactionStatus_TRANSACTION_STATUS_PENDING TransactionStatus = 4 )
func (TransactionStatus) Descriptor ¶
func (TransactionStatus) Descriptor() protoreflect.EnumDescriptor
func (TransactionStatus) Enum ¶
func (x TransactionStatus) Enum() *TransactionStatus
func (TransactionStatus) EnumDescriptor
deprecated
func (TransactionStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use TransactionStatus.Descriptor instead.
func (TransactionStatus) Number ¶
func (x TransactionStatus) Number() protoreflect.EnumNumber
func (TransactionStatus) String ¶
func (x TransactionStatus) String() string
func (TransactionStatus) Type ¶
func (TransactionStatus) Type() protoreflect.EnumType
type TransactionType ¶
type TransactionType int32
const ( TransactionType_TRANSACTION_TYPE_UNSPECIFIED TransactionType = 0 TransactionType_TRANSACTION_TYPE_TRANSFER TransactionType = 1 TransactionType_TRANSACTION_TYPE_ORDER TransactionType = 2 TransactionType_TRANSACTION_TYPE_CONVERT TransactionType = 3 )
func (TransactionType) Descriptor ¶
func (TransactionType) Descriptor() protoreflect.EnumDescriptor
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 (x TransactionType) Number() protoreflect.EnumNumber
func (TransactionType) String ¶
func (x TransactionType) String() string
func (TransactionType) Type ¶
func (TransactionType) Type() protoreflect.EnumType
type TransactionValidationError ¶
type TransactionValidationError struct {
// contains filtered or unexported fields
}
TransactionValidationError is the validation error returned by Transaction.Validate if the designated constraints aren't met.
func (TransactionValidationError) Cause ¶
func (e TransactionValidationError) Cause() error
Cause function returns cause value.
func (TransactionValidationError) Error ¶
func (e TransactionValidationError) Error() string
Error satisfies the builtin error interface
func (TransactionValidationError) ErrorName ¶
func (e TransactionValidationError) ErrorName() string
ErrorName returns error name.
func (TransactionValidationError) Field ¶
func (e TransactionValidationError) Field() string
Field function returns field value.
func (TransactionValidationError) Key ¶
func (e TransactionValidationError) Key() bool
Key function returns key value.
func (TransactionValidationError) Reason ¶
func (e TransactionValidationError) Reason() string
Reason function returns reason value.
type UnimplementedLedgerServer ¶
type UnimplementedLedgerServer struct { }
UnimplementedLedgerServer must be embedded to have forward compatible implementations.
func (UnimplementedLedgerServer) CreateTransaction ¶
func (UnimplementedLedgerServer) CreateTransaction(context.Context, *CreateTransactionRequest) (*CreateTransactionResponse, error)
func (UnimplementedLedgerServer) FinalizeTransaction ¶
func (UnimplementedLedgerServer) FinalizeTransaction(context.Context, *FinalizeTransactionRequest) (*FinalizeTransactionResponse, error)
func (UnimplementedLedgerServer) GetAccounts ¶
func (UnimplementedLedgerServer) GetAccounts(context.Context, *GetAccountsRequest) (*GetAccountsResponse, error)
func (UnimplementedLedgerServer) InitializeAccount ¶
func (UnimplementedLedgerServer) InitializeAccount(context.Context, *InitializeAccountRequest) (*InitializeAccountResponse, error)
func (UnimplementedLedgerServer) PartialReleaseHold ¶
func (UnimplementedLedgerServer) PartialReleaseHold(context.Context, *PartialReleaseHoldRequest) (*PartialReleaseHoldResponse, error)
type UnsafeLedgerServer ¶
type UnsafeLedgerServer interface {
// contains filtered or unexported methods
}
UnsafeLedgerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LedgerServer will result in compilation errors.