v1

package
v0.0.0-...-701c789 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_pkg_pbs_ledger_v1_model_proto protoreflect.FileDescriptor
View Source
var File_pkg_pbs_ledger_v1_service_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() *timestamppb.Timestamp

func (*Account) GetCurrency

func (x *Account) GetCurrency() string

func (*Account) GetId

func (x *Account) GetId() *wrapperspb.StringValue

func (*Account) GetPortfolioId

func (x *Account) GetPortfolioId() *wrapperspb.StringValue

func (*Account) GetUserId

func (x *Account) GetUserId() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

func (*Account) Validate

func (m *Account) Validate() error

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

func (m *Account) ValidateAll() error

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

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

Cause function returns cause value.

func (AccountAndBalanceValidationError) Error

Error satisfies the builtin error interface

func (AccountAndBalanceValidationError) ErrorName

ErrorName returns error name.

func (AccountAndBalanceValidationError) Field

Field function returns field value.

func (AccountAndBalanceValidationError) Key

Key function returns key value.

func (AccountAndBalanceValidationError) Reason

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 (*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

Cause function returns cause value.

func (AccountBalanceValidationError) Error

Error satisfies the builtin error interface

func (AccountBalanceValidationError) ErrorName

func (e AccountBalanceValidationError) ErrorName() string

ErrorName returns error name.

func (AccountBalanceValidationError) Field

Field function returns field value.

func (AccountBalanceValidationError) Key

Key function returns key value.

func (AccountBalanceValidationError) Reason

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

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

Cause function returns cause value.

func (CreateTransactionRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTransactionRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTransactionRequestValidationError) Field

Field function returns field value.

func (CreateTransactionRequestValidationError) Key

Key function returns key value.

func (CreateTransactionRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (CreateTransactionResponseMultiError) Error

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

Cause function returns cause value.

func (CreateTransactionResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTransactionResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTransactionResponseValidationError) Field

Field function returns field value.

func (CreateTransactionResponseValidationError) Key

Key function returns key value.

func (CreateTransactionResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAccountId

func (x *Entry) GetAccountId() string

func (*Entry) GetAmount

func (x *Entry) GetAmount() string

func (*Entry) GetCreatedAt

func (x *Entry) GetCreatedAt() *timestamppb.Timestamp

func (*Entry) GetDirection

func (x *Entry) GetDirection() string

func (*Entry) GetId

func (x *Entry) GetId() string

func (*Entry) GetTransactionId

func (x *Entry) GetTransactionId() string

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

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

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

func (*Entry) Validate

func (m *Entry) Validate() error

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

func (m *Entry) ValidateAll() error

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 (*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

AllErrors returns a list of validation violation errors.

func (FinalizeTransactionRequestMultiError) Error

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

Cause function returns cause value.

func (FinalizeTransactionRequestValidationError) Error

Error satisfies the builtin error interface

func (FinalizeTransactionRequestValidationError) ErrorName

ErrorName returns error name.

func (FinalizeTransactionRequestValidationError) Field

Field function returns field value.

func (FinalizeTransactionRequestValidationError) Key

Key function returns key value.

func (FinalizeTransactionRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (FinalizeTransactionResponseMultiError) Error

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

Cause function returns cause value.

func (FinalizeTransactionResponseValidationError) Error

Error satisfies the builtin error interface

func (FinalizeTransactionResponseValidationError) ErrorName

ErrorName returns error name.

func (FinalizeTransactionResponseValidationError) Field

Field function returns field value.

func (FinalizeTransactionResponseValidationError) Key

Key function returns key value.

func (FinalizeTransactionResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetAccountsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAccountsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAccountsRequestValidationError) Field

Field function returns field value.

func (GetAccountsRequestValidationError) Key

Key function returns key value.

func (GetAccountsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetAccountsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAccountsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAccountsResponseValidationError) Field

Field function returns field value.

func (GetAccountsResponseValidationError) Key

Key function returns key value.

func (GetAccountsResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Hold.ProtoReflect.Descriptor instead.

func (*Hold) GetAccountId

func (x *Hold) GetAccountId() string

func (*Hold) GetAmount

func (x *Hold) GetAmount() string

func (*Hold) GetCreatedAt

func (x *Hold) GetCreatedAt() *timestamppb.Timestamp

func (*Hold) GetDirection

func (x *Hold) GetDirection() string

func (*Hold) GetId

func (x *Hold) GetId() string

func (*Hold) GetReleasedAt

func (x *Hold) GetReleasedAt() *timestamppb.Timestamp

func (*Hold) GetTransactionId

func (x *Hold) GetTransactionId() string

func (*Hold) ProtoMessage

func (*Hold) ProtoMessage()

func (*Hold) ProtoReflect

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

func (*Hold) Reset

func (x *Hold) Reset()

func (*Hold) String

func (x *Hold) String() string

func (*Hold) Validate

func (m *Hold) Validate() error

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

func (m *Hold) ValidateAll() error

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

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

Cause function returns cause value.

func (InitializeAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (InitializeAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (InitializeAccountRequestValidationError) Field

Field function returns field value.

func (InitializeAccountRequestValidationError) Key

Key function returns key value.

func (InitializeAccountRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (InitializeAccountResponseMultiError) Error

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

Cause function returns cause value.

func (InitializeAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (InitializeAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (InitializeAccountResponseValidationError) Field

Field function returns field value.

func (InitializeAccountResponseValidationError) Key

Key function returns key value.

func (InitializeAccountResponseValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (PartialReleaseHoldRequestMultiError) Error

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

Cause function returns cause value.

func (PartialReleaseHoldRequestValidationError) Error

Error satisfies the builtin error interface

func (PartialReleaseHoldRequestValidationError) ErrorName

ErrorName returns error name.

func (PartialReleaseHoldRequestValidationError) Field

Field function returns field value.

func (PartialReleaseHoldRequestValidationError) Key

Key function returns key value.

func (PartialReleaseHoldRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (PartialReleaseHoldResponseMultiError) Error

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

Cause function returns cause value.

func (PartialReleaseHoldResponseValidationError) Error

Error satisfies the builtin error interface

func (PartialReleaseHoldResponseValidationError) ErrorName

ErrorName returns error name.

func (PartialReleaseHoldResponseValidationError) Field

Field function returns field value.

func (PartialReleaseHoldResponseValidationError) Key

Key function returns key value.

func (PartialReleaseHoldResponseValidationError) Reason

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

func (TransactionStatus) EnumDescriptor deprecated

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

Deprecated: Use TransactionStatus.Descriptor instead.

func (TransactionStatus) Number

func (TransactionStatus) String

func (x TransactionStatus) String() string

func (TransactionStatus) Type

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

Cause function returns cause value.

func (TransactionValidationError) Error

Error satisfies the builtin error interface

func (TransactionValidationError) ErrorName

func (e TransactionValidationError) ErrorName() string

ErrorName returns error name.

func (TransactionValidationError) Field

Field function returns field value.

func (TransactionValidationError) Key

Key function returns key value.

func (TransactionValidationError) Reason

Reason function returns reason value.

type UnimplementedLedgerServer

type UnimplementedLedgerServer struct {
}

UnimplementedLedgerServer must be embedded to have forward compatible implementations.

func (UnimplementedLedgerServer) GetAccounts

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.

Jump to

Keyboard shortcuts

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