modelv1

package
v0.0.0-...-c061cf9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetBasis

func (x *Account) GetBasis() Basis

func (*Account) GetCreatedAt

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

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetName

func (x *Account) GetName() string

func (*Account) GetParentId

func (x *Account) GetParentId() string

func (*Account) GetType

func (x *Account) GetType() AccountType

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

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

Deprecated: Use Amount.ProtoReflect.Descriptor instead.

func (*Amount) GetCurrency

func (x *Amount) GetCurrency() string

func (*Amount) GetValue

func (x *Amount) GetValue() int64

func (*Amount) ProtoMessage

func (*Amount) ProtoMessage()

func (*Amount) ProtoReflect

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

func (*Amount) Reset

func (x *Amount) Reset()

func (*Amount) String

func (x *Amount) String() string

type Basis

type Basis int32
const (
	Basis_BASIS_UNSPECIFIED Basis = 0
	Basis_BASIS_DEBIT       Basis = 1
	Basis_BASIS_CREDIT      Basis = 2
)

func (Basis) Descriptor

func (Basis) Descriptor() protoreflect.EnumDescriptor

func (Basis) Enum

func (x Basis) Enum() *Basis

func (Basis) EnumDescriptor deprecated

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

Deprecated: Use Basis.Descriptor instead.

func (Basis) Number

func (x Basis) Number() protoreflect.EnumNumber

func (Basis) String

func (x Basis) String() string

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

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAmount

func (x *Entry) GetAmount() *Amount

func (*Entry) GetCreatedAt

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

func (*Entry) GetCreditAccount

func (x *Entry) GetCreditAccount() string

func (*Entry) GetDebitAccount

func (x *Entry) GetDebitAccount() string

func (*Entry) GetDescription

func (x *Entry) GetDescription() 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

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

Jump to

Keyboard shortcuts

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