-
Notifications
You must be signed in to change notification settings - Fork 4
/
demand_service.go
46 lines (44 loc) · 1.77 KB
/
demand_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
39
40
41
42
43
44
45
46
package moysklad
// DemandService
// Сервис для работы с отгрузками.
type DemandService struct {
endpointGetList[Demand]
endpointCreate[Demand]
endpointCreateUpdateDeleteMany[Demand]
endpointDelete
endpointGetById[Demand]
endpointUpdate[Demand]
endpointTemplate[Demand]
endpointTemplateBasedOn[Demand, DemandTemplateArg]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[DemandPosition]
endpointAttributes
endpointPublication
endpointSyncID[Demand]
endpointNamedFilter
endpointRemove
endpointPrintTemplates
endpointPrintDocument
}
func NewDemandService(client *Client) *DemandService {
e := NewEndpoint(client, "entity/demand")
return &DemandService{
endpointGetList: endpointGetList[Demand]{e},
endpointCreate: endpointCreate[Demand]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[Demand]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[Demand]{e},
endpointUpdate: endpointUpdate[Demand]{e},
endpointTemplate: endpointTemplate[Demand]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[Demand, DemandTemplateArg]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[DemandPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[Demand]{e},
endpointNamedFilter: endpointNamedFilter{e},
endpointRemove: endpointRemove{e},
endpointPrintTemplates: endpointPrintTemplates{e},
endpointPrintDocument: endpointPrintDocument{e},
}
}