-
Notifications
You must be signed in to change notification settings - Fork 4
/
invoice_in_service.go
40 lines (38 loc) · 1.62 KB
/
invoice_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
// InvoiceInService
// Сервис для работы со счетами поставщиков.
type InvoiceInService struct {
endpointGetList[InvoiceIn]
endpointCreate[InvoiceIn]
endpointCreateUpdateDeleteMany[InvoiceIn]
endpointDelete
endpointGetById[InvoiceIn]
endpointUpdate[InvoiceIn]
endpointTemplate[InvoiceIn]
endpointTemplateBasedOn[InvoiceIn, InvoiceInTemplateArg]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[InvoiceInPosition]
endpointAttributes
endpointPublication
endpointSyncID[InvoiceIn]
endpointRemove
}
func NewInvoiceInService(client *Client) *InvoiceInService {
e := NewEndpoint(client, "entity/invoicein")
return &InvoiceInService{
endpointGetList: endpointGetList[InvoiceIn]{e},
endpointCreate: endpointCreate[InvoiceIn]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[InvoiceIn]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[InvoiceIn]{e},
endpointUpdate: endpointUpdate[InvoiceIn]{e},
endpointTemplate: endpointTemplate[InvoiceIn]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[InvoiceIn, InvoiceInTemplateArg]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[InvoiceInPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[InvoiceIn]{e},
endpointRemove: endpointRemove{e},
}
}