-
Notifications
You must be signed in to change notification settings - Fork 4
/
expense_item.go
27 lines (23 loc) · 1.27 KB
/
expense_item.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package moysklad
import (
"github.com/google/uuid"
)
// ExpenseItem Статья расходов.
// Ключевое слово: expenseitem
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-stat-q-rashodow
type ExpenseItem struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
Code *string `json:"code,omitempty"` // Код Статьи расходов
Description *string `json:"description,omitempty"` // Описание Статьи расходов
ExternalCode *string `json:"externalCode,omitempty"` // Внешний код Статьи расходов
ID *uuid.UUID `json:"id,omitempty"` // ID Статьи расходов
Meta *Meta `json:"meta,omitempty"` // Метаданные о Статье расходов
Name *string `json:"name,omitempty"` // Наименование Статьи расходов
Updated *Timestamp `json:"updated,omitempty"` // Момент последнего обновления сущности
}
func (e ExpenseItem) String() string {
return Stringify(e)
}
func (e ExpenseItem) MetaType() MetaType {
return MetaTypeExpenseItem
}