-
Notifications
You must be signed in to change notification settings - Fork 4
/
purchase_order_service.go
42 lines (40 loc) · 1.8 KB
/
purchase_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
39
40
41
42
package moysklad
// PurchaseOrderService
// Сервис для работы с заказами поставщикам.
type PurchaseOrderService struct {
endpointGetList[PurchaseOrder]
endpointCreate[PurchaseOrder]
endpointCreateUpdateDeleteMany[PurchaseOrder]
endpointDelete
endpointGetById[PurchaseOrder]
endpointUpdate[PurchaseOrder]
endpointTemplate[PurchaseOrder]
endpointTemplateBasedOn[PurchaseOrder, PurchaseOrderTemplateArg]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[PurchaseOrderPosition]
endpointAttributes
endpointPublication
endpointSyncID[PurchaseOrder]
endpointNamedFilter
endpointRemove
}
func NewPurchaseOrderService(client *Client) *PurchaseOrderService {
e := NewEndpoint(client, "entity/purchaseorder")
return &PurchaseOrderService{
endpointGetList: endpointGetList[PurchaseOrder]{e},
endpointCreate: endpointCreate[PurchaseOrder]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[PurchaseOrder]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[PurchaseOrder]{e},
endpointUpdate: endpointUpdate[PurchaseOrder]{e},
endpointTemplate: endpointTemplate[PurchaseOrder]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[PurchaseOrder, PurchaseOrderTemplateArg]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[PurchaseOrderPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[PurchaseOrder]{e},
endpointNamedFilter: endpointNamedFilter{e},
endpointRemove: endpointRemove{e},
}
}