-
Notifications
You must be signed in to change notification settings - Fork 4
/
processing_plan_product.go
24 lines (20 loc) · 1.28 KB
/
processing_plan_product.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"
)
// ProcessingPlanProduct Продукт Тех. карты.
// Ключевое слово: processingplanresult
// Документация МойСклад: https://dev.moysklad.ru/doc/api/remap/1.2/dictionaries/#suschnosti-teh-karta-teh-karty-produkty-teh-karty
type ProcessingPlanProduct struct {
AccountID *uuid.UUID `json:"accountId,omitempty"` // ID учетной записи
Assortment *AssortmentPosition `json:"assortment,omitempty"` // Метаданные товара или модификации позиции
ID *uuid.UUID `json:"id,omitempty"` // ID позиции
Product *Product `json:"product,omitempty"` // Метаданные товара позиции. В случае, если в поле assortment указана модификация, то это поле содержит товар, к которому относится эта модификация
Quantity *float64 `json:"quantity,omitempty"` // Количество товаров данного вида в позиции
}
func (p ProcessingPlanProduct) String() string {
return Stringify(p)
}
func (p ProcessingPlanProduct) MetaType() MetaType {
return MetaTypeProcessingPlanProduct
}