Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetBasis() Basis
- func (x *Account) GetCreatedAt() *timestamppb.Timestamp
- func (x *Account) GetId() string
- func (x *Account) GetName() string
- func (x *Account) GetParentId() string
- func (x *Account) GetType() AccountType
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type AccountType
- func (AccountType) Descriptor() protoreflect.EnumDescriptor
- func (x AccountType) Enum() *AccountType
- func (AccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountType) Number() protoreflect.EnumNumber
- func (x AccountType) String() string
- func (AccountType) Type() protoreflect.EnumType
- type Amount
- type Basis
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetAmount() *Amount
- func (x *Entry) GetCreatedAt() *timestamppb.Timestamp
- func (x *Entry) GetCreditAccount() string
- func (x *Entry) GetDebitAccount() string
- func (x *Entry) GetDescription() 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
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetCreatedAt() *timestamppb.Timestamp
- func (x *Transaction) GetDescription() string
- func (x *Transaction) GetEntries() []*Entry
- func (x *Transaction) GetId() string
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AccountType_name = map[int32]string{ 0: "ACCOUNT_TYPE_UNSPECIFIED", 1: "ACCOUNT_TYPE_ASSET", 2: "ACCOUNT_TYPE_LIABILITY", 3: "ACCOUNT_TYPE_EQUITY", 4: "ACCOUNT_TYPE_REVENUE", 5: "ACCOUNT_TYPE_EXPENSE", 6: "ACCOUNT_TYPE_GAIN", 7: "ACCOUNT_TYPE_LOSS", } AccountType_value = map[string]int32{ "ACCOUNT_TYPE_UNSPECIFIED": 0, "ACCOUNT_TYPE_ASSET": 1, "ACCOUNT_TYPE_LIABILITY": 2, "ACCOUNT_TYPE_EQUITY": 3, "ACCOUNT_TYPE_REVENUE": 4, "ACCOUNT_TYPE_EXPENSE": 5, "ACCOUNT_TYPE_GAIN": 6, "ACCOUNT_TYPE_LOSS": 7, } )
Enum value maps for AccountType.
View Source
var ( Basis_name = map[int32]string{ 0: "BASIS_UNSPECIFIED", 1: "BASIS_DEBIT", 2: "BASIS_CREDIT", } Basis_value = map[string]int32{ "BASIS_UNSPECIFIED": 0, "BASIS_DEBIT": 1, "BASIS_CREDIT": 2, } )
Enum value maps for Basis.
View Source
var File_goluca_model_v1_account_proto protoreflect.FileDescriptor
View Source
var File_goluca_model_v1_amount_proto protoreflect.FileDescriptor
View Source
var File_goluca_model_v1_transaction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ParentId *string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3,oneof" json:"parent_id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Type AccountType `protobuf:"varint,4,opt,name=type,proto3,enum=goluca.model.v1.AccountType" json:"type,omitempty"` Basis Basis `protobuf:"varint,5,opt,name=basis,proto3,enum=goluca.model.v1.Basis" json:"basis,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,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) GetParentId ¶
func (*Account) GetType ¶
func (x *Account) GetType() AccountType
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type AccountType ¶
type AccountType int32
const ( AccountType_ACCOUNT_TYPE_UNSPECIFIED AccountType = 0 AccountType_ACCOUNT_TYPE_ASSET AccountType = 1 AccountType_ACCOUNT_TYPE_LIABILITY AccountType = 2 AccountType_ACCOUNT_TYPE_EQUITY AccountType = 3 AccountType_ACCOUNT_TYPE_REVENUE AccountType = 4 AccountType_ACCOUNT_TYPE_EXPENSE AccountType = 5 AccountType_ACCOUNT_TYPE_GAIN AccountType = 6 AccountType_ACCOUNT_TYPE_LOSS AccountType = 7 )
func (AccountType) Descriptor ¶
func (AccountType) Descriptor() protoreflect.EnumDescriptor
func (AccountType) Enum ¶
func (x AccountType) Enum() *AccountType
func (AccountType) EnumDescriptor
deprecated
func (AccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountType.Descriptor instead.
func (AccountType) Number ¶
func (x AccountType) Number() protoreflect.EnumNumber
func (AccountType) String ¶
func (x AccountType) String() string
func (AccountType) Type ¶
func (AccountType) Type() protoreflect.EnumType
type Amount ¶
type Amount struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` // contains filtered or unexported fields }
func (*Amount) Descriptor
deprecated
func (*Amount) GetCurrency ¶
func (*Amount) ProtoMessage ¶
func (*Amount) ProtoMessage()
func (*Amount) ProtoReflect ¶
func (x *Amount) ProtoReflect() protoreflect.Message
type Basis ¶
type Basis int32
func (Basis) Descriptor ¶
func (Basis) Descriptor() protoreflect.EnumDescriptor
func (Basis) EnumDescriptor
deprecated
func (Basis) Number ¶
func (x Basis) Number() protoreflect.EnumNumber
func (Basis) Type ¶
func (Basis) Type() protoreflect.EnumType
type Entry ¶
type Entry struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` DebitAccount string `protobuf:"bytes,4,opt,name=debit_account,json=debitAccount,proto3" json:"debit_account,omitempty"` CreditAccount string `protobuf:"bytes,5,opt,name=credit_account,json=creditAccount,proto3" json:"credit_account,omitempty"` Amount *Amount `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Entry) Descriptor
deprecated
func (*Entry) GetCreatedAt ¶
func (x *Entry) GetCreatedAt() *timestamppb.Timestamp
func (*Entry) GetCreditAccount ¶
func (*Entry) GetDebitAccount ¶
func (*Entry) GetDescription ¶
func (*Entry) GetTransactionId ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type Transaction ¶
type Transaction struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Entries []*Entry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_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) GetDescription ¶
func (x *Transaction) GetDescription() string
func (*Transaction) GetEntries ¶
func (x *Transaction) GetEntries() []*Entry
func (*Transaction) GetId ¶
func (x *Transaction) GetId() string
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
Click to show internal directories.
Click to hide internal directories.