-
Notifications
You must be signed in to change notification settings - Fork 4
/
processing_order_service.go
38 lines (36 loc) · 1.71 KB
/
processing_order_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
31
32
33
34
35
36
37
38
package moysklad
// ProcessingOrderService
// Сервис для работы с заказами на производство.
type ProcessingOrderService struct {
endpointGetList[ProcessingOrder]
endpointCreate[ProcessingOrder]
endpointCreateUpdateDeleteMany[ProcessingOrder]
endpointDelete
endpointGetById[ProcessingOrder]
endpointUpdate[ProcessingOrder]
endpointTemplate[ProcessingOrder]
endpointTemplateBasedOn[ProcessingOrder, ProcessingOrderTemplateArg]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[ProcessingOrderPosition]
endpointAttributes
endpointSyncID[ProcessingOrder]
endpointRemove
}
func NewProcessingOrderService(client *Client) *ProcessingOrderService {
e := NewEndpoint(client, "entity/processingorder")
return &ProcessingOrderService{
endpointGetList: endpointGetList[ProcessingOrder]{e},
endpointCreate: endpointCreate[ProcessingOrder]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[ProcessingOrder]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[ProcessingOrder]{e},
endpointUpdate: endpointUpdate[ProcessingOrder]{e},
endpointTemplate: endpointTemplate[ProcessingOrder]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[ProcessingOrder, ProcessingOrderTemplateArg]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[ProcessingOrderPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointSyncID: endpointSyncID[ProcessingOrder]{e},
endpointRemove: endpointRemove{e},
}
}