-
Notifications
You must be signed in to change notification settings - Fork 4
/
processing_process.go
49 lines (42 loc) · 3.01 KB
/
processing_process.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package moysklad
import (
"github.com/google/uuid"
)
// ProcessingProcess Техпроцесс.
// Ключевое слово: processingprocess
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-tehprocess
type ProcessingProcess struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
Archived *bool `json:"archived,omitempty"` // Добавлен ли Тех. процесс в архив
Description *string `json:"description,omitempty"` // Комментарий Тех. процесса
ExternalCode *string `json:"externalCode,omitempty"` // Внешний код Тех. процесса
Group *Group `json:"group,omitempty"` // Отдел сотрудника
ID *uuid.UUID `json:"id,omitempty"` // ID Тех. процесса
Meta *Meta `json:"meta,omitempty"` // Метаданные Тех. процесса
Name *string `json:"name,omitempty"` // Наименование Тех. процесса
Owner *Employee `json:"owner,omitempty"` // Владелец (Сотрудник)
Positions *Positions[ProcessingProcessPosition] `json:"positions,omitempty"` // Метаданные позиций Тех. процесса
Shared *bool `json:"shared,omitempty"` // Общий доступ
Updated *Timestamp `json:"updated,omitempty"` // Момент последнего обновления сущности
}
func (p ProcessingProcess) String() string {
return Stringify(p)
}
func (p ProcessingProcess) MetaType() MetaType {
return MetaTypeProcessingProcess
}
// ProcessingProcessPosition Позиция Тех. процесса.
// Ключевое слово: processingprocessposition
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-teh-process-teh-processy-atributy-wlozhennyh-suschnostej-pozicii-teh-processa
type ProcessingProcessPosition struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
ID *uuid.UUID `json:"id,omitempty"` // ID позиции
Meta *Meta `json:"meta,omitempty"` // Метаданные позиции Тех. процесса
ProcessingStage *ProcessingStage `json:"processingstage,omitempty"` // Метаданные этапа, который представляет собой позиция
}
func (p ProcessingProcessPosition) String() string {
return Stringify(p)
}
func (p ProcessingProcessPosition) MetaType() MetaType {
return MetaTypeProcessingProcessPosition
}