-
Notifications
You must be signed in to change notification settings - Fork 4
/
customer_order_service.go
42 lines (40 loc) · 1.72 KB
/
customer_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
// CustomerOrderService
// Сервис для работы с заказами покупателя.
type CustomerOrderService struct {
endpointGetList[CustomerOrder]
endpointCreate[CustomerOrder]
endpointCreateUpdateDeleteMany[CustomerOrder]
endpointDelete
endpointGetById[CustomerOrder]
endpointUpdate[CustomerOrder]
endpointTemplate[CustomerOrder]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[CustomerOrderPosition]
endpointAttributes
endpointPublication
endpointSyncID[CustomerOrder]
endpointNamedFilter
endpointRemove
endpointPrintTemplates
}
func NewCustomerOrderService(client *Client) *CustomerOrderService {
e := NewEndpoint(client, "entity/customerorder")
return &CustomerOrderService{
endpointGetList: endpointGetList[CustomerOrder]{e},
endpointCreate: endpointCreate[CustomerOrder]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[CustomerOrder]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[CustomerOrder]{e},
endpointUpdate: endpointUpdate[CustomerOrder]{e},
endpointTemplate: endpointTemplate[CustomerOrder]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[CustomerOrderPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[CustomerOrder]{e},
endpointNamedFilter: endpointNamedFilter{e},
endpointRemove: endpointRemove{e},
endpointPrintTemplates: endpointPrintTemplates{e},
}
}