-
Notifications
You must be signed in to change notification settings - Fork 4
/
product_folder_service.go
28 lines (26 loc) · 1.07 KB
/
product_folder_service.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
package moysklad
// ProductFolderService
// Сервис для работы с группами товаров.
type ProductFolderService struct {
endpointGetList[ProductFolder]
endpointCreate[ProductFolder]
endpointCreateUpdateDeleteMany[ProductFolder]
endpointDelete
endpointMetadata[MetadataAttribute]
endpointAttributes
endpointGetById[ProductFolder]
endpointUpdate[ProductFolder]
}
func NewProductFolderService(client *Client) *ProductFolderService {
e := NewEndpoint(client, "entity/productfolder")
return &ProductFolderService{
endpointGetList: endpointGetList[ProductFolder]{e},
endpointCreate: endpointCreate[ProductFolder]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[ProductFolder]{e},
endpointDelete: endpointDelete{e},
endpointMetadata: endpointMetadata[MetadataAttribute]{e},
endpointAttributes: endpointAttributes{e},
endpointGetById: endpointGetById[ProductFolder]{e},
endpointUpdate: endpointUpdate[ProductFolder]{e},
}
}