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