-
Notifications
You must be signed in to change notification settings - Fork 4
/
price_list_service.go
34 lines (32 loc) · 1.29 KB
/
price_list_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
package moysklad
// PriceListService
// Сервис для работы с прайс-листами.
type PriceListService struct {
endpointGetList[PriceList]
endpointCreate[PriceList]
endpointCreateUpdateDeleteMany[PriceList]
endpointDelete
endpointGetById[PriceList]
endpointUpdate[PriceList]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[PriceListPosition]
endpointAttributes
endpointSyncID[PriceList]
endpointRemove
}
func NewPriceListService(client *Client) *PriceListService {
e := NewEndpoint(client, "entity/pricelist")
return &PriceListService{
endpointGetList: endpointGetList[PriceList]{e},
endpointCreate: endpointCreate[PriceList]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[PriceList]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[PriceList]{e},
endpointUpdate: endpointUpdate[PriceList]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[PriceListPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointSyncID: endpointSyncID[PriceList]{e},
endpointRemove: endpointRemove{e},
}
}