-
Notifications
You must be signed in to change notification settings - Fork 4
/
purchase_return_service.go
42 lines (40 loc) · 1.83 KB
/
purchase_return_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
// PurchaseReturnService
// Сервис для работы с возвратами поставщикам.
type PurchaseReturnService struct {
endpointGetList[PurchaseReturn]
endpointCreate[PurchaseReturn]
endpointCreateUpdateDeleteMany[PurchaseReturn]
endpointDelete
endpointGetById[PurchaseReturn]
endpointUpdate[PurchaseReturn]
endpointTemplate[PurchaseReturn]
endpointTemplateBasedOn[PurchaseReturn, PurchaseReturnTemplateArg]
endpointMetadata[MetadataAttributeSharedStates]
endpointPositions[PurchaseReturnPosition]
endpointAttributes
endpointPublication
endpointSyncID[PurchaseReturn]
endpointNamedFilter
endpointRemove
}
func NewPurchaseReturnService(client *Client) *PurchaseReturnService {
e := NewEndpoint(client, "entity/purchasereturn")
return &PurchaseReturnService{
endpointGetList: endpointGetList[PurchaseReturn]{e},
endpointCreate: endpointCreate[PurchaseReturn]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[PurchaseReturn]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[PurchaseReturn]{e},
endpointUpdate: endpointUpdate[PurchaseReturn]{e},
endpointTemplate: endpointTemplate[PurchaseReturn]{e},
endpointTemplateBasedOn: endpointTemplateBasedOn[PurchaseReturn, PurchaseReturnTemplateArg]{e},
endpointMetadata: endpointMetadata[MetadataAttributeSharedStates]{e},
endpointPositions: endpointPositions[PurchaseReturnPosition]{e},
endpointAttributes: endpointAttributes{e},
endpointPublication: endpointPublication{e},
endpointSyncID: endpointSyncID[PurchaseReturn]{e},
endpointNamedFilter: endpointNamedFilter{e},
endpointRemove: endpointRemove{e},
}
}