-
Notifications
You must be signed in to change notification settings - Fork 4
/
thing.go
24 lines (19 loc) · 938 Bytes
/
thing.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
package moysklad
import "github.com/google/uuid"
// Thing Серийный номер
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-serijnyj-nomer
type Thing struct {
AccountId *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
Description *string `json:"description,omitempty"` // Описание Серийного номера
ID *uuid.UUID `json:"id,omitempty"` // ID Серийного номера
Meta *Meta `json:"meta,omitempty"` // Метаданные о Серийном номере
Name *string `json:"name,omitempty"` // Наименование Серийного номера
}
func (t Thing) String() string {
return Stringify(t)
}
func (t Thing) MetaType() MetaType {
return MetaTypeThing
}
// Things серийные номера.
type Things = []string