-
Notifications
You must be signed in to change notification settings - Fork 4
/
retail_shift_service.go
32 lines (30 loc) · 1.07 KB
/
retail_shift_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
package moysklad
// RetailShiftService
// Сервис для работы с розничными сменами.
type RetailShiftService struct {
endpointGetList[RetailShift]
endpointCreate[RetailShift]
endpointDelete
endpointGetById[RetailShift]
endpointUpdate[RetailShift]
endpointMetadata[MetadataAttributeSharedStates]
endpointAttributes
endpointSyncID[RetailShift]
endpointNamedFilter
endpointRemove
}
func NewRetailShiftService(client *Client) *RetailShiftService {
e := NewEndpoint(client, "entity/retailshift")
return &RetailShiftService{
endpointGetList: endpointGetList[RetailShift]{e},
endpointCreate: endpointCreate[RetailShift]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[RetailShift]{e},
endpointUpdate: endpointUpdate[RetailShift]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointAttributes: endpointAttributes{e},
endpointSyncID: endpointSyncID[RetailShift]{e},
endpointNamedFilter: endpointNamedFilter{e},
endpointRemove: endpointRemove{e},
}
}