-
Notifications
You must be signed in to change notification settings - Fork 4
/
slot.go
27 lines (23 loc) · 1.14 KB
/
slot.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"
)
// Slot Ячейка склада.
// Ключевое слово: slot
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-sklad-yachejki-sklada
type Slot struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
Barcode *string `json:"barcode,omitempty"` // Штрихкод ячейки [16-10-2023]
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"` // Момент последнего обновления Ячейки
Zone *Zone `json:"zone,omitempty"` // Зона ячейки
}
func (s Slot) String() string {
return Stringify(s)
}
func (s Slot) MetaType() MetaType {
return MetaTypeSlot
}