-
Notifications
You must be signed in to change notification settings - Fork 4
/
cash_in_service.go
40 lines (38 loc) · 1.53 KB
/
cash_in_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
package moysklad
// CashInService
// Сервис для работы с приходными ордерами.
type CashInService struct {
endpointGetList[CashIn]
endpointCreate[CashIn]
endpointCreateUpdateDeleteMany[CashIn]
endpointDelete
endpointDeleteMany[CashIn]
endpointMetadata[MetadataAttributeSharedStates]
endpointAttributes
endpointTemplate[CashIn]
endpointTemplateBasedOn[CashIn, CashInTemplateArg]
endpointGetById[CashIn]
endpointUpdate[CashIn]
endpointPublication
endpointSyncID[CashIn]
endpointRemove
}
func NewCashInService(client *Client) *CashInService {
e := NewEndpoint(client, "entity/cashin")
return &CashInService{
endpointGetList: endpointGetList[CashIn]{e},
endpointCreate: endpointCreate[CashIn]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[CashIn]{e},
endpointDelete: endpointDelete{e},
endpointDeleteMany: endpointDeleteMany[CashIn]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointAttributes: endpointAttributes{e},
endpointTemplate: endpointTemplate[CashIn]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[CashIn, CashInTemplateArg]{e},
endpointGetById: endpointGetById[CashIn]{e},
endpointUpdate: endpointUpdate[CashIn]{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[CashIn]{e},
endpointRemove: endpointRemove{e},
}
}