-
Notifications
You must be signed in to change notification settings - Fork 4
/
consignment_service.go
30 lines (28 loc) · 1.1 KB
/
consignment_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
29
30
package moysklad
// ConsignmentService
// Сервис для работы с сериями.
type ConsignmentService struct {
endpointGetList[Consignment]
endpointCreate[Consignment]
endpointCreateUpdateDeleteMany[Consignment]
endpointDelete
endpointGetById[Consignment]
endpointUpdate[Consignment]
endpointMetadata[MetadataAttribute]
endpointAttributes
endpointNamedFilter
}
func NewConsignmentService(client *Client) *ConsignmentService {
e := NewEndpoint(client, "entity/consignment")
return &ConsignmentService{
endpointGetList: endpointGetList[Consignment]{e},
endpointCreate: endpointCreate[Consignment]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[Consignment]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[Consignment]{e},
endpointUpdate: endpointUpdate[Consignment]{e},
endpointMetadata: endpointMetadata[MetadataAttribute]{e},
endpointAttributes: endpointAttributes{e},
endpointNamedFilter: endpointNamedFilter{e},
}
}