account

package
v1.38.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountProto_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "account.AccountProto",
	HandlerType: (*AccountProtoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetAccountsByIds",
			Handler:    _AccountProto_GetAccountsByIds_Handler,
		},
		{
			MethodName: "GetAccountsByAliases",
			Handler:    _AccountProto_GetAccountsByAliases_Handler,
		},
		{
			MethodName: "UpdateAccounts",
			Handler:    _AccountProto_UpdateAccounts_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account/account.proto",
}

AccountProto_ServiceDesc is the grpc.ServiceDesc for AccountProto service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_account_account_proto protoreflect.FileDescriptor

Functions

func RegisterAccountProtoServer

func RegisterAccountProtoServer(s grpc.ServiceRegistrar, srv AccountProtoServer)

Types

type Account

type Account struct {
	Id              string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name            string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ParentAccountId string    `protobuf:"bytes,3,opt,name=parent_account_id,json=parentAccountId,proto3" json:"parent_account_id,omitempty"`
	EntityId        string    `protobuf:"bytes,4,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
	AssetCode       string    `protobuf:"bytes,5,opt,name=asset_code,json=assetCode,proto3" json:"asset_code,omitempty"`
	OrganizationId  string    `protobuf:"bytes,6,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	LedgerId        string    `protobuf:"bytes,7,opt,name=ledger_id,json=ledgerId,proto3" json:"ledger_id,omitempty"`
	PortfolioId     string    `protobuf:"bytes,8,opt,name=portfolio_id,json=portfolioId,proto3" json:"portfolio_id,omitempty"`
	ProductId       string    `protobuf:"bytes,9,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	Balance         *Balance  `protobuf:"bytes,10,opt,name=balance,proto3" json:"balance,omitempty"`
	Status          *Status   `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
	AllowSending    bool      `protobuf:"varint,12,opt,name=allow_sending,json=allowSending,proto3" json:"allow_sending,omitempty"`
	AllowReceiving  bool      `protobuf:"varint,13,opt,name=allow_receiving,json=allowReceiving,proto3" json:"allow_receiving,omitempty"`
	Alias           string    `protobuf:"bytes,14,opt,name=alias,proto3" json:"alias,omitempty"`
	Type            string    `protobuf:"bytes,15,opt,name=type,proto3" json:"type,omitempty"`
	CreatedAt       string    `protobuf:"bytes,16,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt       string    `protobuf:"bytes,17,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt       string    `protobuf:"bytes,18,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	Metadata        *Metadata `protobuf:"bytes,19,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAlias

func (x *Account) GetAlias() string

func (*Account) GetAllowReceiving

func (x *Account) GetAllowReceiving() bool

func (*Account) GetAllowSending

func (x *Account) GetAllowSending() bool

func (*Account) GetAssetCode

func (x *Account) GetAssetCode() string

func (*Account) GetBalance

func (x *Account) GetBalance() *Balance

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() string

func (*Account) GetDeletedAt

func (x *Account) GetDeletedAt() string

func (*Account) GetEntityId

func (x *Account) GetEntityId() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetLedgerId

func (x *Account) GetLedgerId() string

func (*Account) GetMetadata

func (x *Account) GetMetadata() *Metadata

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetOrganizationId

func (x *Account) GetOrganizationId() string

func (*Account) GetParentAccountId

func (x *Account) GetParentAccountId() string

func (*Account) GetPortfolioId

func (x *Account) GetPortfolioId() string

func (*Account) GetProductId

func (x *Account) GetProductId() string

func (*Account) GetStatus

func (x *Account) GetStatus() *Status

func (*Account) GetType

func (x *Account) GetType() string

func (*Account) GetUpdatedAt

func (x *Account) GetUpdatedAt() 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

type AccountProtoClient

type AccountProtoClient interface {
	GetAccountsByIds(ctx context.Context, in *AccountsID, opts ...grpc.CallOption) (*AccountsResponse, error)
	GetAccountsByAliases(ctx context.Context, in *AccountsAlias, opts ...grpc.CallOption) (*AccountsResponse, error)
	UpdateAccounts(ctx context.Context, in *AccountsRequest, opts ...grpc.CallOption) (*AccountsResponse, error)
}

AccountProtoClient is the client API for AccountProto service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AccountProtoServer

type AccountProtoServer interface {
	GetAccountsByIds(context.Context, *AccountsID) (*AccountsResponse, error)
	GetAccountsByAliases(context.Context, *AccountsAlias) (*AccountsResponse, error)
	UpdateAccounts(context.Context, *AccountsRequest) (*AccountsResponse, error)
	// contains filtered or unexported methods
}

AccountProtoServer is the server API for AccountProto service. All implementations must embed UnimplementedAccountProtoServer for forward compatibility

type AccountsAlias

type AccountsAlias struct {
	OrganizationId string   `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	LedgerId       string   `protobuf:"bytes,2,opt,name=ledger_id,json=ledgerId,proto3" json:"ledger_id,omitempty"`
	Aliases        []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsAlias) Descriptor deprecated

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

Deprecated: Use AccountsAlias.ProtoReflect.Descriptor instead.

func (*AccountsAlias) GetAliases

func (x *AccountsAlias) GetAliases() []string

func (*AccountsAlias) GetLedgerId

func (x *AccountsAlias) GetLedgerId() string

func (*AccountsAlias) GetOrganizationId

func (x *AccountsAlias) GetOrganizationId() string

func (*AccountsAlias) ProtoMessage

func (*AccountsAlias) ProtoMessage()

func (*AccountsAlias) ProtoReflect

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

func (*AccountsAlias) Reset

func (x *AccountsAlias) Reset()

func (*AccountsAlias) String

func (x *AccountsAlias) String() string

type AccountsID

type AccountsID struct {
	OrganizationId string   `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	LedgerId       string   `protobuf:"bytes,2,opt,name=ledger_id,json=ledgerId,proto3" json:"ledger_id,omitempty"`
	Ids            []string `protobuf:"bytes,3,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsID) Descriptor deprecated

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

Deprecated: Use AccountsID.ProtoReflect.Descriptor instead.

func (*AccountsID) GetIds

func (x *AccountsID) GetIds() []string

func (*AccountsID) GetLedgerId

func (x *AccountsID) GetLedgerId() string

func (*AccountsID) GetOrganizationId

func (x *AccountsID) GetOrganizationId() string

func (*AccountsID) ProtoMessage

func (*AccountsID) ProtoMessage()

func (*AccountsID) ProtoReflect

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

func (*AccountsID) Reset

func (x *AccountsID) Reset()

func (*AccountsID) String

func (x *AccountsID) String() string

type AccountsRequest

type AccountsRequest struct {
	OrganizationId string     `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	LedgerId       string     `protobuf:"bytes,2,opt,name=ledger_id,json=ledgerId,proto3" json:"ledger_id,omitempty"`
	Accounts       []*Account `protobuf:"bytes,3,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsRequest) Descriptor deprecated

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

Deprecated: Use AccountsRequest.ProtoReflect.Descriptor instead.

func (*AccountsRequest) GetAccounts

func (x *AccountsRequest) GetAccounts() []*Account

func (*AccountsRequest) GetLedgerId

func (x *AccountsRequest) GetLedgerId() string

func (*AccountsRequest) GetOrganizationId

func (x *AccountsRequest) GetOrganizationId() string

func (*AccountsRequest) ProtoMessage

func (*AccountsRequest) ProtoMessage()

func (*AccountsRequest) ProtoReflect

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

func (*AccountsRequest) Reset

func (x *AccountsRequest) Reset()

func (*AccountsRequest) String

func (x *AccountsRequest) String() string

type AccountsResponse

type AccountsResponse struct {
	Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsResponse) Descriptor deprecated

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

Deprecated: Use AccountsResponse.ProtoReflect.Descriptor instead.

func (*AccountsResponse) GetAccounts

func (x *AccountsResponse) GetAccounts() []*Account

func (*AccountsResponse) ProtoMessage

func (*AccountsResponse) ProtoMessage()

func (*AccountsResponse) ProtoReflect

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

func (*AccountsResponse) Reset

func (x *AccountsResponse) Reset()

func (*AccountsResponse) String

func (x *AccountsResponse) String() string

type Balance

type Balance struct {
	Available float64 `protobuf:"fixed64,1,opt,name=available,proto3" json:"available,omitempty"`
	OnHold    float64 `protobuf:"fixed64,2,opt,name=on_hold,json=onHold,proto3" json:"on_hold,omitempty"`
	Scale     float64 `protobuf:"fixed64,3,opt,name=scale,proto3" json:"scale,omitempty"`
	// contains filtered or unexported fields
}

func (*Balance) Descriptor deprecated

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

Deprecated: Use Balance.ProtoReflect.Descriptor instead.

func (*Balance) GetAvailable

func (x *Balance) GetAvailable() float64

func (*Balance) GetOnHold

func (x *Balance) GetOnHold() float64

func (*Balance) GetScale

func (x *Balance) GetScale() float64

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) ProtoReflect

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

func (*Balance) Reset

func (x *Balance) Reset()

func (*Balance) String

func (x *Balance) String() string

type Metadata

type Metadata struct {
	Value map[string]string `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Metadata) Descriptor deprecated

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

Deprecated: Use Metadata.ProtoReflect.Descriptor instead.

func (*Metadata) GetValue

func (x *Metadata) GetValue() map[string]string

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) ProtoReflect

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

func (*Metadata) Reset

func (x *Metadata) Reset()

func (*Metadata) String

func (x *Metadata) String() string

type Status

type Status struct {
	Code        string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Status) Descriptor deprecated

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

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() string

func (*Status) GetDescription

func (x *Status) GetDescription() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

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

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type UnimplementedAccountProtoServer

type UnimplementedAccountProtoServer struct {
}

UnimplementedAccountProtoServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountProtoServer) GetAccountsByAliases

func (UnimplementedAccountProtoServer) GetAccountsByIds

func (UnimplementedAccountProtoServer) UpdateAccounts

type UnsafeAccountProtoServer

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

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

Jump to

Keyboard shortcuts

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