connectwise-rest 0.25.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. package/.eslintrc +17 -52
  2. package/.gitattributes +1 -0
  3. package/.mocharc.json +5 -0
  4. package/.prettierrc +7 -0
  5. package/README.md +293 -230
  6. package/api-extractor.json +364 -0
  7. package/dist/Automate/AVTemplatePoliciesAPI.d.ts +36 -0
  8. package/dist/Automate/AVTemplatePoliciesAPI.d.ts.map +1 -0
  9. package/dist/Automate/AVTemplatePoliciesAPI.js +92 -0
  10. package/dist/Automate/AVTemplatePoliciesAPI.js.map +1 -0
  11. package/dist/Automate/ClientsAPI.d.ts +44 -0
  12. package/dist/Automate/ClientsAPI.d.ts.map +1 -0
  13. package/dist/Automate/ClientsAPI.js +119 -0
  14. package/dist/Automate/ClientsAPI.js.map +1 -0
  15. package/dist/Automate/CommandsAPI.d.ts +20 -0
  16. package/dist/Automate/CommandsAPI.d.ts.map +1 -0
  17. package/dist/Automate/CommandsAPI.js +36 -0
  18. package/dist/Automate/CommandsAPI.js.map +1 -0
  19. package/dist/Automate/ComputersAPI.d.ts +131 -0
  20. package/dist/Automate/ComputersAPI.d.ts.map +1 -0
  21. package/dist/Automate/ComputersAPI.js +358 -0
  22. package/dist/Automate/ComputersAPI.js.map +1 -0
  23. package/dist/Automate/ContactsAPI.d.ts +24 -0
  24. package/dist/Automate/ContactsAPI.d.ts.map +1 -0
  25. package/dist/Automate/ContactsAPI.js +50 -0
  26. package/dist/Automate/ContactsAPI.js.map +1 -0
  27. package/dist/Automate/DataViewsAPI.d.ts +22 -0
  28. package/dist/Automate/DataViewsAPI.d.ts.map +1 -0
  29. package/dist/Automate/DataViewsAPI.js +36 -0
  30. package/dist/Automate/DataViewsAPI.js.map +1 -0
  31. package/dist/Automate/DrivesAPI.d.ts +25 -0
  32. package/dist/Automate/DrivesAPI.d.ts.map +1 -0
  33. package/dist/Automate/DrivesAPI.js +57 -0
  34. package/dist/Automate/DrivesAPI.js.map +1 -0
  35. package/dist/Automate/EventLogsAPI.d.ts +19 -0
  36. package/dist/Automate/EventLogsAPI.d.ts.map +1 -0
  37. package/dist/Automate/EventLogsAPI.js +29 -0
  38. package/dist/Automate/EventLogsAPI.js.map +1 -0
  39. package/dist/Automate/LocationsAPI.d.ts +57 -0
  40. package/dist/Automate/LocationsAPI.d.ts.map +1 -0
  41. package/dist/Automate/LocationsAPI.js +138 -0
  42. package/dist/Automate/LocationsAPI.js.map +1 -0
  43. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts +19 -0
  44. package/dist/Automate/MaintenanceWindowDefinitionsAPI.d.ts.map +1 -0
  45. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js +29 -0
  46. package/dist/Automate/MaintenanceWindowDefinitionsAPI.js.map +1 -0
  47. package/dist/Automate/MonitorsAPI.d.ts +29 -0
  48. package/dist/Automate/MonitorsAPI.d.ts.map +1 -0
  49. package/dist/Automate/MonitorsAPI.js +85 -0
  50. package/dist/Automate/MonitorsAPI.js.map +1 -0
  51. package/dist/Automate/NetworkDevicesAPI.d.ts +23 -0
  52. package/dist/Automate/NetworkDevicesAPI.d.ts.map +1 -0
  53. package/dist/Automate/NetworkDevicesAPI.js +43 -0
  54. package/dist/Automate/NetworkDevicesAPI.js.map +1 -0
  55. package/dist/Automate/PatchingAPI.d.ts +33 -0
  56. package/dist/Automate/PatchingAPI.d.ts.map +1 -0
  57. package/dist/Automate/PatchingAPI.js +99 -0
  58. package/dist/Automate/PatchingAPI.js.map +1 -0
  59. package/dist/Automate/RemoteAgentAPI.d.ts +24 -0
  60. package/dist/Automate/RemoteAgentAPI.d.ts.map +1 -0
  61. package/dist/Automate/RemoteAgentAPI.js +50 -0
  62. package/dist/Automate/RemoteAgentAPI.js.map +1 -0
  63. package/dist/Automate/ScriptingAPI.d.ts +41 -0
  64. package/dist/Automate/ScriptingAPI.d.ts.map +1 -0
  65. package/dist/Automate/ScriptingAPI.js +109 -0
  66. package/dist/Automate/ScriptingAPI.js.map +1 -0
  67. package/dist/Automate/SearchesAPI.d.ts +23 -0
  68. package/dist/Automate/SearchesAPI.d.ts.map +1 -0
  69. package/dist/Automate/SearchesAPI.js +43 -0
  70. package/dist/Automate/SearchesAPI.js.map +1 -0
  71. package/dist/Automate/SystemAPI.d.ts +97 -0
  72. package/dist/Automate/SystemAPI.d.ts.map +1 -0
  73. package/dist/Automate/SystemAPI.js +273 -0
  74. package/dist/Automate/SystemAPI.js.map +1 -0
  75. package/dist/Automate/TicketsAPI.d.ts +14 -0
  76. package/dist/Automate/TicketsAPI.d.ts.map +1 -0
  77. package/dist/Automate/TicketsAPI.js +29 -0
  78. package/dist/Automate/TicketsAPI.js.map +1 -0
  79. package/dist/Automate/UserProfilesAPI.d.ts +19 -0
  80. package/dist/Automate/UserProfilesAPI.d.ts.map +1 -0
  81. package/dist/Automate/UserProfilesAPI.js +28 -0
  82. package/dist/Automate/UserProfilesAPI.js.map +1 -0
  83. package/dist/Automate.d.ts +43 -0
  84. package/dist/Automate.d.ts.map +1 -0
  85. package/dist/Automate.js +164 -0
  86. package/dist/Automate.js.map +1 -0
  87. package/dist/AutomateAPI.d.ts +129 -0
  88. package/dist/AutomateAPI.d.ts.map +1 -0
  89. package/dist/AutomateAPI.js +175 -0
  90. package/dist/AutomateAPI.js.map +1 -0
  91. package/dist/AutomateTypes.d.ts +10437 -0
  92. package/dist/AutomateTypes.d.ts.map +1 -0
  93. package/dist/AutomateTypes.js +3 -0
  94. package/dist/AutomateTypes.js.map +1 -0
  95. package/dist/BaseAPI.d.ts +26 -0
  96. package/dist/BaseAPI.d.ts.map +1 -0
  97. package/dist/BaseAPI.js +116 -0
  98. package/dist/BaseAPI.js.map +1 -0
  99. package/dist/Manage/CompanyAPI.d.ts +662 -0
  100. package/dist/Manage/CompanyAPI.d.ts.map +1 -0
  101. package/dist/Manage/CompanyAPI.js +3299 -0
  102. package/dist/Manage/CompanyAPI.js.map +1 -0
  103. package/dist/Manage/ConfigurationsAPI.d.ts +32 -0
  104. package/dist/Manage/ConfigurationsAPI.d.ts.map +1 -0
  105. package/dist/Manage/ConfigurationsAPI.js +78 -0
  106. package/dist/Manage/ConfigurationsAPI.js.map +1 -0
  107. package/dist/Manage/ExpenseAPI.d.ts +85 -0
  108. package/dist/Manage/ExpenseAPI.d.ts.map +1 -0
  109. package/dist/Manage/ExpenseAPI.js +311 -0
  110. package/dist/Manage/ExpenseAPI.js.map +1 -0
  111. package/dist/Manage/FinanceAPI.d.ts +538 -0
  112. package/dist/Manage/FinanceAPI.d.ts.map +1 -0
  113. package/dist/Manage/FinanceAPI.js +2592 -0
  114. package/dist/Manage/FinanceAPI.js.map +1 -0
  115. package/dist/Manage/MarketingAPI.d.ts +142 -0
  116. package/dist/Manage/MarketingAPI.d.ts.map +1 -0
  117. package/dist/Manage/MarketingAPI.js +634 -0
  118. package/dist/Manage/MarketingAPI.js.map +1 -0
  119. package/dist/Manage/ProcurementAPI.d.ts +435 -0
  120. package/dist/Manage/ProcurementAPI.d.ts.map +1 -0
  121. package/dist/Manage/ProcurementAPI.js +2103 -0
  122. package/dist/Manage/ProcurementAPI.js.map +1 -0
  123. package/dist/Manage/ProjectAPI.d.ts +215 -0
  124. package/dist/Manage/ProjectAPI.d.ts.map +1 -0
  125. package/dist/Manage/ProjectAPI.js +945 -0
  126. package/dist/Manage/ProjectAPI.js.map +1 -0
  127. package/dist/Manage/SalesAPI.d.ts +299 -0
  128. package/dist/Manage/SalesAPI.d.ts.map +1 -0
  129. package/dist/Manage/SalesAPI.js +1397 -0
  130. package/dist/Manage/SalesAPI.js.map +1 -0
  131. package/dist/Manage/ScheduleAPI.d.ts +132 -0
  132. package/dist/Manage/ScheduleAPI.d.ts.map +1 -0
  133. package/dist/Manage/ScheduleAPI.js +580 -0
  134. package/dist/Manage/ScheduleAPI.js.map +1 -0
  135. package/dist/Manage/ServiceAPI.d.ts +493 -0
  136. package/dist/Manage/ServiceAPI.d.ts.map +1 -0
  137. package/dist/Manage/ServiceAPI.js +2339 -0
  138. package/dist/Manage/ServiceAPI.js.map +1 -0
  139. package/dist/Manage/SystemAPI.d.ts +954 -0
  140. package/dist/Manage/SystemAPI.d.ts.map +1 -0
  141. package/dist/Manage/SystemAPI.js +4536 -0
  142. package/dist/Manage/SystemAPI.js.map +1 -0
  143. package/dist/Manage/TimeAPI.d.ts +186 -0
  144. package/dist/Manage/TimeAPI.d.ts.map +1 -0
  145. package/dist/Manage/TimeAPI.js +840 -0
  146. package/dist/Manage/TimeAPI.js.map +1 -0
  147. package/dist/Manage.d.ts +39 -0
  148. package/dist/Manage.d.ts.map +1 -0
  149. package/dist/Manage.js +137 -0
  150. package/dist/Manage.js.map +1 -0
  151. package/dist/ManageAPI.d.ts +135 -0
  152. package/dist/ManageAPI.d.ts.map +1 -0
  153. package/dist/ManageAPI.js +115 -0
  154. package/dist/ManageAPI.js.map +1 -0
  155. package/dist/ManageTypes.d.ts +91320 -0
  156. package/dist/ManageTypes.d.ts.map +1 -0
  157. package/dist/ManageTypes.js +7 -0
  158. package/dist/ManageTypes.js.map +1 -0
  159. package/dist/connectwise-rest.d.ts +108638 -0
  160. package/dist/index.d.ts +12 -0
  161. package/dist/index.d.ts.map +1 -0
  162. package/dist/index.js +36 -0
  163. package/dist/index.js.map +1 -0
  164. package/dist/tsdoc-metadata.json +11 -0
  165. package/dist/types.d.ts +48 -0
  166. package/dist/types.d.ts.map +1 -0
  167. package/dist/types.js +21 -0
  168. package/dist/types.js.map +1 -0
  169. package/dist/utils/Callback.d.ts +70 -0
  170. package/dist/utils/Callback.d.ts.map +1 -0
  171. package/dist/utils/Callback.js +109 -0
  172. package/dist/utils/Callback.js.map +1 -0
  173. package/dist/utils/Series.d.ts +42 -0
  174. package/dist/utils/Series.d.ts.map +1 -0
  175. package/dist/utils/Series.js +68 -0
  176. package/dist/utils/Series.js.map +1 -0
  177. package/dist/utils/index.d.ts +7 -0
  178. package/dist/utils/index.d.ts.map +1 -0
  179. package/dist/utils/index.js +11 -0
  180. package/dist/utils/index.js.map +1 -0
  181. package/package.json +50 -19
  182. package/src/Automate/AVTemplatePoliciesAPI.ts +124 -0
  183. package/src/Automate/ClientsAPI.ts +172 -0
  184. package/src/Automate/CommandsAPI.ts +39 -0
  185. package/src/Automate/ComputersAPI.ts +588 -0
  186. package/src/Automate/ContactsAPI.ts +63 -0
  187. package/src/Automate/DataViewsAPI.ts +43 -0
  188. package/src/Automate/DrivesAPI.ts +81 -0
  189. package/src/Automate/EventLogsAPI.ts +31 -0
  190. package/src/Automate/LocationsAPI.ts +222 -0
  191. package/src/Automate/MaintenanceWindowDefinitionsAPI.ts +34 -0
  192. package/src/Automate/MonitorsAPI.ts +101 -0
  193. package/src/Automate/NetworkDevicesAPI.ts +51 -0
  194. package/src/Automate/PatchingAPI.ts +116 -0
  195. package/src/Automate/RemoteAgentAPI.ts +65 -0
  196. package/src/Automate/ScriptingAPI.ts +147 -0
  197. package/src/Automate/SearchesAPI.ts +49 -0
  198. package/src/Automate/SystemAPI.ts +412 -0
  199. package/src/Automate/TicketsAPI.ts +29 -0
  200. package/src/Automate/UserProfilesAPI.ts +31 -0
  201. package/src/Automate.ts +204 -0
  202. package/src/AutomateAPI.ts +178 -0
  203. package/src/AutomateTypes.ts +10492 -0
  204. package/src/BaseAPI.ts +180 -0
  205. package/src/Manage/CompanyAPI.ts +4941 -0
  206. package/src/Manage/ConfigurationsAPI.ts +116 -0
  207. package/src/Manage/ExpenseAPI.ts +413 -0
  208. package/src/Manage/FinanceAPI.ts +3930 -0
  209. package/src/Manage/MarketingAPI.ts +958 -0
  210. package/src/Manage/ProcurementAPI.ts +3107 -0
  211. package/src/Manage/ProjectAPI.ts +1437 -0
  212. package/src/Manage/SalesAPI.ts +1968 -0
  213. package/src/Manage/ScheduleAPI.ts +773 -0
  214. package/src/Manage/ServiceAPI.ts +3476 -0
  215. package/src/Manage/SystemAPI.ts +6415 -0
  216. package/src/Manage/TimeAPI.ts +1151 -0
  217. package/src/Manage.ts +161 -0
  218. package/src/ManageAPI.ts +170 -0
  219. package/src/ManageTypes.ts +91318 -0
  220. package/src/index.ts +13 -0
  221. package/src/types.ts +68 -0
  222. package/src/utils/Callback.ts +148 -0
  223. package/src/utils/Series.ts +89 -0
  224. package/src/utils/index.ts +7 -0
  225. package/swagger-errors.md +25 -0
  226. package/test/.env.example +12 -6
  227. package/test/test-utils.ts +27 -0
  228. package/test/test.js +331 -108
  229. package/tsconfig.json +29 -0
  230. package/.travis.yml +0 -9
  231. package/doc.md +0 -5984
  232. package/docs/jsdoc.json +0 -15
  233. package/index.js +0 -10
  234. package/src/CompanyAPI/Companies.js +0 -149
  235. package/src/CompanyAPI/CompanyCompanyTypeAssociations.js +0 -111
  236. package/src/CompanyAPI/CompanySites.js +0 -80
  237. package/src/CompanyAPI/CompanyTeams.js +0 -108
  238. package/src/CompanyAPI/CompanyTypeInfos.js +0 -58
  239. package/src/CompanyAPI/CompanyTypes.js +0 -52
  240. package/src/CompanyAPI/Configurations.js +0 -152
  241. package/src/CompanyAPI/ContactContactTypeAssociations.js +0 -55
  242. package/src/CompanyAPI/ContactRelationships.js +0 -36
  243. package/src/CompanyAPI/Contacts.js +0 -199
  244. package/src/CompanyAPI/index.js +0 -53
  245. package/src/ConnectWise.js +0 -339
  246. package/src/ConnectWiseRest.js +0 -515
  247. package/src/FinanceAPI/Additions.js +0 -127
  248. package/src/FinanceAPI/Adjustments.js +0 -109
  249. package/src/FinanceAPI/AgreementSites.js +0 -108
  250. package/src/FinanceAPI/Agreements.js +0 -220
  251. package/src/FinanceAPI/BoardDefaults.js +0 -109
  252. package/src/FinanceAPI/WorkRoles.js +0 -113
  253. package/src/FinanceAPI/WorkTypeExclusions.js +0 -78
  254. package/src/FinanceAPI/WorkTypes.js +0 -124
  255. package/src/FinanceAPI/index.js +0 -50
  256. package/src/ProcurementAPI/CatalogItems.js +0 -94
  257. package/src/ProcurementAPI/index.js +0 -22
  258. package/src/ProjectAPI/Projects.js +0 -142
  259. package/src/ProjectAPI/index.js +0 -28
  260. package/src/SalesAPI/Activities.js +0 -149
  261. package/src/SalesAPI/index.js +0 -14
  262. package/src/ScheduleAPI/ScheduleEntries.js +0 -109
  263. package/src/ScheduleAPI/ScheduleTypes.js +0 -101
  264. package/src/ScheduleAPI/index.js +0 -30
  265. package/src/ServiceDeskAPI/BoardItems.js +0 -134
  266. package/src/ServiceDeskAPI/BoardSubTypes.js +0 -112
  267. package/src/ServiceDeskAPI/BoardTeams.js +0 -108
  268. package/src/ServiceDeskAPI/BoardTypes.js +0 -139
  269. package/src/ServiceDeskAPI/Boards.js +0 -100
  270. package/src/ServiceDeskAPI/Priorities.js +0 -47
  271. package/src/ServiceDeskAPI/ServiceNotes.js +0 -172
  272. package/src/ServiceDeskAPI/Statuses.js +0 -116
  273. package/src/ServiceDeskAPI/Tickets.js +0 -588
  274. package/src/ServiceDeskAPI/index.js +0 -53
  275. package/src/SystemAPI/Members.js +0 -139
  276. package/src/SystemAPI/Reports.js +0 -116
  277. package/src/SystemAPI/index.js +0 -32
  278. package/src/TimeAPI/TimeEntries.js +0 -121
  279. package/src/TimeAPI/index.js +0 -27
  280. package/src/utils/Callback.js +0 -124
  281. package/src/utils/Series.js +0 -63
  282. package/src/utils/index.js +0 -21
@@ -0,0 +1,3930 @@
1
+ /* This file was auto-generated, do not manually edit. */
2
+ import Manage from '../Manage'
3
+ import { components } from '../ManageTypes'
4
+ import { CommonParameters, CWMOptions } from '../ManageAPI'
5
+ import { NoContentResponse, OctetStreamResponse, PDFResponse, HTMLResponse } from '../types'
6
+ type schemas = components['schemas']
7
+
8
+ /** {@link AccountingBatch} */
9
+ export type AccountingBatch = schemas['AccountingBatch']
10
+ /** {@link AccountingPackage} */
11
+ export type AccountingPackage = schemas['AccountingPackage']
12
+ /** {@link AccountingPackageSetup} */
13
+ export type AccountingPackageSetup = schemas['AccountingPackageSetup']
14
+ /** {@link Addition} */
15
+ export type Addition = schemas['Addition']
16
+ /** {@link Agreement} */
17
+ export type Agreement = schemas['Agreement']
18
+ /** {@link AgreementAdjustment} */
19
+ export type AgreementAdjustment = schemas['Agreement.Adjustment']
20
+ /** {@link AgreementBatchSetup} */
21
+ export type AgreementBatchSetup = schemas['AgreementBatchSetup']
22
+ /** {@link AgreementSite} */
23
+ export type AgreementSite = schemas['AgreementSite']
24
+ /** {@link AgreementType} */
25
+ export type AgreementType = schemas['AgreementType']
26
+ /** {@link AgreementTypeBoardDefault} */
27
+ export type AgreementTypeBoardDefault = schemas['AgreementTypeBoardDefault']
28
+ /** {@link AgreementTypeInfo} */
29
+ export type AgreementTypeInfo = schemas['AgreementTypeInfo']
30
+ /** {@link AgreementTypeWorkRole} */
31
+ export type AgreementTypeWorkRole = schemas['AgreementTypeWorkRole']
32
+ /** {@link AgreementTypeWorkRoleExclusion} */
33
+ export type AgreementTypeWorkRoleExclusion = schemas['AgreementTypeWorkRoleExclusion']
34
+ /** {@link AgreementTypeWorkRoleInfo} */
35
+ export type AgreementTypeWorkRoleInfo = schemas['AgreementTypeWorkRoleInfo']
36
+ /** {@link AgreementTypeWorkType} */
37
+ export type AgreementTypeWorkType = schemas['AgreementTypeWorkType']
38
+ /** {@link AgreementTypeWorkTypeExclusion} */
39
+ export type AgreementTypeWorkTypeExclusion = schemas['AgreementTypeWorkTypeExclusion']
40
+ /** {@link AgreementWorkRole} */
41
+ export type AgreementWorkRole = schemas['AgreementWorkRole']
42
+ /** {@link AgreementWorkRoleExclusion} */
43
+ export type AgreementWorkRoleExclusion = schemas['AgreementWorkRoleExclusion']
44
+ /** {@link AgreementWorkType} */
45
+ export type AgreementWorkType = schemas['AgreementWorkType']
46
+ /** {@link AgreementWorkTypeExclusion} */
47
+ export type AgreementWorkTypeExclusion = schemas['AgreementWorkTypeExclusion']
48
+ /** {@link BatchEntry} */
49
+ export type BatchEntry = schemas['BatchEntry']
50
+ /** {@link BillingCycle} */
51
+ export type BillingCycle = schemas['BillingCycle']
52
+ /** {@link BillingCycleInfo} */
53
+ export type BillingCycleInfo = schemas['BillingCycleInfo']
54
+ /** {@link BillingSetup} */
55
+ export type BillingSetup = schemas['BillingSetup']
56
+ /** {@link BillingSetupInfo} */
57
+ export type BillingSetupInfo = schemas['BillingSetupInfo']
58
+ /** {@link BillingSetupRouting} */
59
+ export type BillingSetupRouting = schemas['BillingSetupRouting']
60
+ /** {@link BillingStatus} */
61
+ export type BillingStatus = schemas['BillingStatus']
62
+ /** {@link BillingStatusInfo} */
63
+ export type BillingStatusInfo = schemas['BillingStatusInfo']
64
+ /** {@link BillingTerm} */
65
+ export type BillingTerm = schemas['BillingTerm']
66
+ /** {@link BillingTermInfo} */
67
+ export type BillingTermInfo = schemas['BillingTermInfo']
68
+ /** {@link BoardDefault} */
69
+ export type BoardDefault = schemas['BoardDefault']
70
+ /** {@link ClosedInvoice} */
71
+ export type ClosedInvoice = schemas['ClosedInvoice']
72
+ /** {@link CompanyFinance} */
73
+ export type CompanyFinance = schemas['CompanyFinance']
74
+ /** {@link ConfigurationReference} */
75
+ export type ConfigurationReference = schemas['ConfigurationReference']
76
+ /** {@link Count} */
77
+ export type Count = schemas['Count']
78
+ /** {@link CreateAccountingBatchRequest} */
79
+ export type CreateAccountingBatchRequest = schemas['CreateAccountingBatchRequest']
80
+ /** {@link CurrencyCode} */
81
+ export type CurrencyCode = schemas['CurrencyCode']
82
+ /** {@link CurrencyInfo} */
83
+ export type CurrencyInfo = schemas['CurrencyInfo']
84
+ /** {@link DeliveryMethod} */
85
+ export type DeliveryMethod = schemas['DeliveryMethod']
86
+ /** {@link ExpenseTypeExemption} */
87
+ export type ExpenseTypeExemption = schemas['ExpenseTypeExemption']
88
+ /** {@link ExportAccountingBatchRequest} */
89
+ export type ExportAccountingBatchRequest = schemas['ExportAccountingBatchRequest']
90
+ /** {@link FinanceCurrency} */
91
+ export type FinanceCurrency = schemas['Finance.Currency']
92
+ /** {@link GLAccount} */
93
+ export type GLAccount = schemas['GLAccount']
94
+ /** {@link GLCaption} */
95
+ export type GLCaption = schemas['GLCaption']
96
+ /** {@link GLExport} */
97
+ export type GLExport = schemas['GLExport']
98
+ /** {@link GLPath} */
99
+ export type GLPath = schemas['GLPath']
100
+ /** {@link Invoice} */
101
+ export type Invoice = schemas['Invoice']
102
+ /** {@link InvoiceEmailTemplate} */
103
+ export type InvoiceEmailTemplate = schemas['InvoiceEmailTemplate']
104
+ /** {@link InvoiceEmailTemplateInfo} */
105
+ export type InvoiceEmailTemplateInfo = schemas['InvoiceEmailTemplateInfo']
106
+ /** {@link InvoiceInfo} */
107
+ export type InvoiceInfo = schemas['InvoiceInfo']
108
+ /** {@link InvoiceTemplate} */
109
+ export type InvoiceTemplate = schemas['InvoiceTemplate']
110
+ /** {@link InvoiceTemplateSetup} */
111
+ export type InvoiceTemplateSetup = schemas['InvoiceTemplateSetup']
112
+ /** {@link MappedType} */
113
+ export type MappedType = schemas['MappedType']
114
+ /** {@link PatchOperation} */
115
+ export type PatchOperation = schemas['PatchOperation']
116
+ /** {@link Payment} */
117
+ export type Payment = schemas['Payment']
118
+ /** {@link ProductTypeExemption} */
119
+ export type ProductTypeExemption = schemas['ProductTypeExemption']
120
+ /** {@link TaxCode} */
121
+ export type TaxCode = schemas['TaxCode']
122
+ /** {@link TaxCodeInfo} */
123
+ export type TaxCodeInfo = schemas['TaxCodeInfo']
124
+ /** {@link TaxCodeLevel} */
125
+ export type TaxCodeLevel = schemas['TaxCodeLevel']
126
+ /** {@link TaxCodeXRef} */
127
+ export type TaxCodeXRef = schemas['TaxCodeXRef']
128
+ /** {@link TaxIntegration} */
129
+ export type TaxIntegration = schemas['TaxIntegration']
130
+ /** {@link TaxIntegrationInfo} */
131
+ export type TaxIntegrationInfo = schemas['TaxIntegrationInfo']
132
+ /** {@link TaxableExpenseTypeLevel} */
133
+ export type TaxableExpenseTypeLevel = schemas['TaxableExpenseTypeLevel']
134
+ /** {@link TaxableProductTypeLevel} */
135
+ export type TaxableProductTypeLevel = schemas['TaxableProductTypeLevel']
136
+ /** {@link TaxableWorkRoleLevel} */
137
+ export type TaxableWorkRoleLevel = schemas['TaxableWorkRoleLevel']
138
+ /** {@link TaxableXRefLevel} */
139
+ export type TaxableXRefLevel = schemas['TaxableXRefLevel']
140
+ /** {@link UnpostedExpense} */
141
+ export type UnpostedExpense = schemas['UnpostedExpense']
142
+ /** {@link UnpostedExpenseTaxableLevel} */
143
+ export type UnpostedExpenseTaxableLevel = schemas['UnpostedExpenseTaxableLevel']
144
+ /** {@link UnpostedInvoice} */
145
+ export type UnpostedInvoice = schemas['UnpostedInvoice']
146
+ /** {@link UnpostedInvoiceTaxableLevel} */
147
+ export type UnpostedInvoiceTaxableLevel = schemas['UnpostedInvoiceTaxableLevel']
148
+ /** {@link UnpostedProcurement} */
149
+ export type UnpostedProcurement = schemas['UnpostedProcurement']
150
+ /** {@link UnpostedProcurementTaxableLevel} */
151
+ export type UnpostedProcurementTaxableLevel = schemas['UnpostedProcurementTaxableLevel']
152
+ /** {@link Usage} */
153
+ export type Usage = schemas['Usage']
154
+ /** {@link WorkRoleExemption} */
155
+ export type WorkRoleExemption = schemas['WorkRoleExemption']
156
+
157
+ /**
158
+ * @module FinanceAPI
159
+ */
160
+
161
+ /**
162
+ * Finance module
163
+ * @public
164
+ */
165
+ export class FinanceAPI extends Manage {
166
+ constructor(props: CWMOptions) {
167
+ super(props)
168
+ }
169
+
170
+ getFinanceAccountingBatches(params: CommonParameters = {}): Promise<Array<AccountingBatch>> {
171
+ return this.request({
172
+ path: `/finance/accounting/batches`,
173
+ method: 'get',
174
+ params,
175
+ })
176
+ }
177
+
178
+ postFinanceAccountingBatches(
179
+ accountingBatchParameters: CreateAccountingBatchRequest,
180
+ ): Promise<GLExport> {
181
+ return this.request({
182
+ path: `/finance/accounting/batches`,
183
+ method: 'post',
184
+ data: accountingBatchParameters,
185
+ })
186
+ }
187
+
188
+ getFinanceAccountingBatchesById(
189
+ id: number,
190
+ params: CommonParameters = {},
191
+ ): Promise<AccountingBatch> {
192
+ return this.request({
193
+ path: `/finance/accounting/batches/${id}`,
194
+ method: 'get',
195
+ params,
196
+ })
197
+ }
198
+
199
+ deleteFinanceAccountingBatchesById(id: number): Promise<NoContentResponse> {
200
+ return this.request({
201
+ path: `/finance/accounting/batches/${id}`,
202
+ method: 'delete',
203
+ })
204
+ }
205
+
206
+ postFinanceAccountingBatchesByIdExport(
207
+ id: number,
208
+ batchExportParameters: ExportAccountingBatchRequest,
209
+ ): Promise<GLExport> {
210
+ return this.request({
211
+ path: `/finance/accounting/batches/${id}/export`,
212
+ method: 'post',
213
+ data: batchExportParameters,
214
+ })
215
+ }
216
+
217
+ getFinanceAccountingBatchesByParentIdEntries(
218
+ parentId: number,
219
+ params: CommonParameters = {},
220
+ ): Promise<Array<BatchEntry>> {
221
+ return this.request({
222
+ path: `/finance/accounting/batches/${parentId}/entries`,
223
+ method: 'get',
224
+ params,
225
+ })
226
+ }
227
+
228
+ getFinanceAccountingBatchesByParentIdEntriesById(
229
+ id: number,
230
+ parentId: number,
231
+ params: CommonParameters = {},
232
+ ): Promise<BatchEntry> {
233
+ return this.request({
234
+ path: `/finance/accounting/batches/${parentId}/entries/${id}`,
235
+ method: 'get',
236
+ params,
237
+ })
238
+ }
239
+
240
+ getFinanceAccountingBatchesByParentIdEntriesCount(
241
+ parentId: number,
242
+ params: CommonParameters = {},
243
+ ): Promise<Count> {
244
+ return this.request({
245
+ path: `/finance/accounting/batches/${parentId}/entries/count`,
246
+ method: 'get',
247
+ params,
248
+ })
249
+ }
250
+
251
+ getFinanceAccountingBatchesCount(params: CommonParameters = {}): Promise<Count> {
252
+ return this.request({
253
+ path: `/finance/accounting/batches/count`,
254
+ method: 'get',
255
+ params,
256
+ })
257
+ }
258
+
259
+ postFinanceAccountingExport(
260
+ batchExportParameters: ExportAccountingBatchRequest,
261
+ ): Promise<GLExport> {
262
+ return this.request({
263
+ path: `/finance/accounting/export`,
264
+ method: 'post',
265
+ data: batchExportParameters,
266
+ })
267
+ }
268
+
269
+ getFinanceAccountingUnpostedexpenses(
270
+ params: CommonParameters = {},
271
+ ): Promise<Array<UnpostedExpense>> {
272
+ return this.request({
273
+ path: `/finance/accounting/unpostedexpenses`,
274
+ method: 'get',
275
+ params,
276
+ })
277
+ }
278
+
279
+ getFinanceAccountingUnpostedexpensesById(
280
+ id: number,
281
+ params: CommonParameters = {},
282
+ ): Promise<UnpostedExpense> {
283
+ return this.request({
284
+ path: `/finance/accounting/unpostedexpenses/${id}`,
285
+ method: 'get',
286
+ params,
287
+ })
288
+ }
289
+
290
+ getFinanceAccountingUnpostedexpensesByParentIdTaxableLevels(
291
+ parentId: number,
292
+ params: CommonParameters = {},
293
+ ): Promise<Array<UnpostedExpenseTaxableLevel>> {
294
+ return this.request({
295
+ path: `/finance/accounting/unpostedexpenses/${parentId}/taxableLevels`,
296
+ method: 'get',
297
+ params,
298
+ })
299
+ }
300
+
301
+ getFinanceAccountingUnpostedexpensesByParentIdTaxableLevelsById(
302
+ id: number,
303
+ parentId: number,
304
+ params: CommonParameters = {},
305
+ ): Promise<UnpostedExpenseTaxableLevel> {
306
+ return this.request({
307
+ path: `/finance/accounting/unpostedexpenses/${parentId}/taxableLevels/${id}`,
308
+ method: 'get',
309
+ params,
310
+ })
311
+ }
312
+
313
+ getFinanceAccountingUnpostedexpensesByParentIdTaxableLevelsCount(
314
+ parentId: number,
315
+ params: CommonParameters = {},
316
+ ): Promise<Count> {
317
+ return this.request({
318
+ path: `/finance/accounting/unpostedexpenses/${parentId}/taxableLevels/count`,
319
+ method: 'get',
320
+ params,
321
+ })
322
+ }
323
+
324
+ getFinanceAccountingUnpostedexpensesCount(params: CommonParameters = {}): Promise<Count> {
325
+ return this.request({
326
+ path: `/finance/accounting/unpostedexpenses/count`,
327
+ method: 'get',
328
+ params,
329
+ })
330
+ }
331
+
332
+ getFinanceAccountingUnpostedinvoices(
333
+ params: CommonParameters = {},
334
+ ): Promise<Array<UnpostedInvoice>> {
335
+ return this.request({
336
+ path: `/finance/accounting/unpostedinvoices`,
337
+ method: 'get',
338
+ params,
339
+ })
340
+ }
341
+
342
+ getFinanceAccountingUnpostedinvoicesById(
343
+ id: number,
344
+ params: CommonParameters = {},
345
+ ): Promise<UnpostedInvoice> {
346
+ return this.request({
347
+ path: `/finance/accounting/unpostedinvoices/${id}`,
348
+ method: 'get',
349
+ params,
350
+ })
351
+ }
352
+
353
+ getFinanceAccountingUnpostedinvoicesByParentIdTaxableLevels(
354
+ parentId: number,
355
+ params: CommonParameters = {},
356
+ ): Promise<Array<UnpostedInvoiceTaxableLevel>> {
357
+ return this.request({
358
+ path: `/finance/accounting/unpostedinvoices/${parentId}/taxableLevels`,
359
+ method: 'get',
360
+ params,
361
+ })
362
+ }
363
+
364
+ getFinanceAccountingUnpostedinvoicesByParentIdTaxableLevelsById(
365
+ id: number,
366
+ parentId: number,
367
+ params: CommonParameters = {},
368
+ ): Promise<UnpostedInvoiceTaxableLevel> {
369
+ return this.request({
370
+ path: `/finance/accounting/unpostedinvoices/${parentId}/taxableLevels/${id}`,
371
+ method: 'get',
372
+ params,
373
+ })
374
+ }
375
+
376
+ getFinanceAccountingUnpostedinvoicesByParentIdTaxableLevelsCount(
377
+ parentId: number,
378
+ params: CommonParameters = {},
379
+ ): Promise<Count> {
380
+ return this.request({
381
+ path: `/finance/accounting/unpostedinvoices/${parentId}/taxableLevels/count`,
382
+ method: 'get',
383
+ params,
384
+ })
385
+ }
386
+
387
+ getFinanceAccountingUnpostedinvoicesCount(params: CommonParameters = {}): Promise<Count> {
388
+ return this.request({
389
+ path: `/finance/accounting/unpostedinvoices/count`,
390
+ method: 'get',
391
+ params,
392
+ })
393
+ }
394
+
395
+ getFinanceAccountingUnpostedprocurement(
396
+ params: CommonParameters = {},
397
+ ): Promise<Array<UnpostedProcurement>> {
398
+ return this.request({
399
+ path: `/finance/accounting/unpostedprocurement`,
400
+ method: 'get',
401
+ params,
402
+ })
403
+ }
404
+
405
+ getFinanceAccountingUnpostedprocurementById(
406
+ id: number,
407
+ params: CommonParameters = {},
408
+ ): Promise<UnpostedProcurement> {
409
+ return this.request({
410
+ path: `/finance/accounting/unpostedprocurement/${id}`,
411
+ method: 'get',
412
+ params,
413
+ })
414
+ }
415
+
416
+ getFinanceAccountingUnpostedprocurementByParentIdTaxableLevels(
417
+ parentId: number,
418
+ params: CommonParameters = {},
419
+ ): Promise<Array<UnpostedProcurementTaxableLevel>> {
420
+ return this.request({
421
+ path: `/finance/accounting/unpostedprocurement/${parentId}/taxableLevels`,
422
+ method: 'get',
423
+ params,
424
+ })
425
+ }
426
+
427
+ getFinanceAccountingUnpostedprocurementByParentIdTaxableLevelsById(
428
+ id: number,
429
+ parentId: number,
430
+ params: CommonParameters = {},
431
+ ): Promise<UnpostedProcurementTaxableLevel> {
432
+ return this.request({
433
+ path: `/finance/accounting/unpostedprocurement/${parentId}/taxableLevels/${id}`,
434
+ method: 'get',
435
+ params,
436
+ })
437
+ }
438
+
439
+ getFinanceAccountingUnpostedprocurementByParentIdTaxableLevelsCount(
440
+ parentId: number,
441
+ params: CommonParameters = {},
442
+ ): Promise<Count> {
443
+ return this.request({
444
+ path: `/finance/accounting/unpostedprocurement/${parentId}/taxableLevels/count`,
445
+ method: 'get',
446
+ params,
447
+ })
448
+ }
449
+
450
+ getFinanceAccountingUnpostedprocurementCount(params: CommonParameters = {}): Promise<Count> {
451
+ return this.request({
452
+ path: `/finance/accounting/unpostedprocurement/count`,
453
+ method: 'get',
454
+ params,
455
+ })
456
+ }
457
+
458
+ getFinanceAccountingPackages(params: CommonParameters = {}): Promise<Array<AccountingPackage>> {
459
+ return this.request({
460
+ path: `/finance/accountingPackages`,
461
+ method: 'get',
462
+ params,
463
+ })
464
+ }
465
+
466
+ getFinanceAccountingPackagesById(
467
+ id: number,
468
+ params: CommonParameters = {},
469
+ ): Promise<AccountingPackage> {
470
+ return this.request({
471
+ path: `/finance/accountingPackages/${id}`,
472
+ method: 'get',
473
+ params,
474
+ })
475
+ }
476
+
477
+ getFinanceAccountingPackagesCount(params: CommonParameters = {}): Promise<Count> {
478
+ return this.request({
479
+ path: `/finance/accountingPackages/count`,
480
+ method: 'get',
481
+ params,
482
+ })
483
+ }
484
+
485
+ getFinanceAccountingPackageSetup(
486
+ params: CommonParameters = {},
487
+ ): Promise<Array<AccountingPackageSetup>> {
488
+ return this.request({
489
+ path: `/finance/accountingPackageSetup`,
490
+ method: 'get',
491
+ params,
492
+ })
493
+ }
494
+
495
+ getFinanceAccountingPackageSetupById(
496
+ id: number,
497
+ params: CommonParameters = {},
498
+ ): Promise<AccountingPackageSetup> {
499
+ return this.request({
500
+ path: `/finance/accountingPackageSetup/${id}`,
501
+ method: 'get',
502
+ params,
503
+ })
504
+ }
505
+
506
+ putFinanceAccountingPackageSetupById(
507
+ id: number,
508
+ accountingPackageSetup: AccountingPackageSetup,
509
+ ): Promise<AccountingPackageSetup> {
510
+ return this.request({
511
+ path: `/finance/accountingPackageSetup/${id}`,
512
+ method: 'put',
513
+ data: accountingPackageSetup,
514
+ })
515
+ }
516
+
517
+ patchFinanceAccountingPackageSetupById(
518
+ id: number,
519
+ patchOperations: Array<PatchOperation>,
520
+ ): Promise<AccountingPackageSetup> {
521
+ return this.request({
522
+ path: `/finance/accountingPackageSetup/${id}`,
523
+ method: 'patch',
524
+ data: patchOperations,
525
+ })
526
+ }
527
+
528
+ getFinanceAccountingPackageSetupCount(params: CommonParameters = {}): Promise<Count> {
529
+ return this.request({
530
+ path: `/finance/accountingPackageSetup/count`,
531
+ method: 'get',
532
+ params,
533
+ })
534
+ }
535
+
536
+ getFinanceAgreements(params: CommonParameters = {}): Promise<Array<Agreement>> {
537
+ return this.request({
538
+ path: `/finance/agreements`,
539
+ method: 'get',
540
+ params,
541
+ })
542
+ }
543
+
544
+ postFinanceAgreements(agreement: Agreement): Promise<Agreement> {
545
+ return this.request({
546
+ path: `/finance/agreements`,
547
+ method: 'post',
548
+ data: agreement,
549
+ })
550
+ }
551
+
552
+ getFinanceAgreementsById(id: number, params: CommonParameters = {}): Promise<Agreement> {
553
+ return this.request({
554
+ path: `/finance/agreements/${id}`,
555
+ method: 'get',
556
+ params,
557
+ })
558
+ }
559
+
560
+ deleteFinanceAgreementsById(id: number): Promise<NoContentResponse> {
561
+ return this.request({
562
+ path: `/finance/agreements/${id}`,
563
+ method: 'delete',
564
+ })
565
+ }
566
+
567
+ putFinanceAgreementsById(id: number, agreement: Agreement): Promise<Agreement> {
568
+ return this.request({
569
+ path: `/finance/agreements/${id}`,
570
+ method: 'put',
571
+ data: agreement,
572
+ })
573
+ }
574
+
575
+ patchFinanceAgreementsById(
576
+ id: number,
577
+ patchOperations: Array<PatchOperation>,
578
+ ): Promise<Agreement> {
579
+ return this.request({
580
+ path: `/finance/agreements/${id}`,
581
+ method: 'patch',
582
+ data: patchOperations,
583
+ })
584
+ }
585
+
586
+ getFinanceAgreementsByParentIdAdditions(
587
+ parentId: number,
588
+ params: CommonParameters = {},
589
+ ): Promise<Array<Addition>> {
590
+ return this.request({
591
+ path: `/finance/agreements/${parentId}/additions`,
592
+ method: 'get',
593
+ params,
594
+ })
595
+ }
596
+
597
+ postFinanceAgreementsByParentIdAdditions(
598
+ parentId: number,
599
+ addition: Addition,
600
+ ): Promise<Addition> {
601
+ return this.request({
602
+ path: `/finance/agreements/${parentId}/additions`,
603
+ method: 'post',
604
+ data: addition,
605
+ })
606
+ }
607
+
608
+ getFinanceAgreementsByParentIdAdditionsById(
609
+ id: number,
610
+ parentId: number,
611
+ params: CommonParameters = {},
612
+ ): Promise<Addition> {
613
+ return this.request({
614
+ path: `/finance/agreements/${parentId}/additions/${id}`,
615
+ method: 'get',
616
+ params,
617
+ })
618
+ }
619
+
620
+ deleteFinanceAgreementsByParentIdAdditionsById(
621
+ id: number,
622
+ parentId: number,
623
+ ): Promise<NoContentResponse> {
624
+ return this.request({
625
+ path: `/finance/agreements/${parentId}/additions/${id}`,
626
+ method: 'delete',
627
+ })
628
+ }
629
+
630
+ putFinanceAgreementsByParentIdAdditionsById(
631
+ id: number,
632
+ parentId: number,
633
+ addition: Addition,
634
+ ): Promise<Addition> {
635
+ return this.request({
636
+ path: `/finance/agreements/${parentId}/additions/${id}`,
637
+ method: 'put',
638
+ data: addition,
639
+ })
640
+ }
641
+
642
+ patchFinanceAgreementsByParentIdAdditionsById(
643
+ id: number,
644
+ parentId: number,
645
+ patchOperations: Array<PatchOperation>,
646
+ ): Promise<Addition> {
647
+ return this.request({
648
+ path: `/finance/agreements/${parentId}/additions/${id}`,
649
+ method: 'patch',
650
+ data: patchOperations,
651
+ })
652
+ }
653
+
654
+ getFinanceAgreementsByParentIdAdditionsCount(
655
+ parentId: number,
656
+ params: CommonParameters = {},
657
+ ): Promise<Count> {
658
+ return this.request({
659
+ path: `/finance/agreements/${parentId}/additions/count`,
660
+ method: 'get',
661
+ params,
662
+ })
663
+ }
664
+
665
+ getFinanceAgreementsByParentIdAdjustments(
666
+ parentId: number,
667
+ params: CommonParameters = {},
668
+ ): Promise<Array<AgreementAdjustment>> {
669
+ return this.request({
670
+ path: `/finance/agreements/${parentId}/adjustments`,
671
+ method: 'get',
672
+ params,
673
+ })
674
+ }
675
+
676
+ postFinanceAgreementsByParentIdAdjustments(
677
+ parentId: number,
678
+ adjustment: AgreementAdjustment,
679
+ ): Promise<AgreementAdjustment> {
680
+ return this.request({
681
+ path: `/finance/agreements/${parentId}/adjustments`,
682
+ method: 'post',
683
+ data: adjustment,
684
+ })
685
+ }
686
+
687
+ getFinanceAgreementsByParentIdAdjustmentsById(
688
+ id: number,
689
+ parentId: number,
690
+ params: CommonParameters = {},
691
+ ): Promise<AgreementAdjustment> {
692
+ return this.request({
693
+ path: `/finance/agreements/${parentId}/adjustments/${id}`,
694
+ method: 'get',
695
+ params,
696
+ })
697
+ }
698
+
699
+ deleteFinanceAgreementsByParentIdAdjustmentsById(
700
+ id: number,
701
+ parentId: number,
702
+ ): Promise<NoContentResponse> {
703
+ return this.request({
704
+ path: `/finance/agreements/${parentId}/adjustments/${id}`,
705
+ method: 'delete',
706
+ })
707
+ }
708
+
709
+ putFinanceAgreementsByParentIdAdjustmentsById(
710
+ id: number,
711
+ parentId: number,
712
+ adjustment: AgreementAdjustment,
713
+ ): Promise<AgreementAdjustment> {
714
+ return this.request({
715
+ path: `/finance/agreements/${parentId}/adjustments/${id}`,
716
+ method: 'put',
717
+ data: adjustment,
718
+ })
719
+ }
720
+
721
+ patchFinanceAgreementsByParentIdAdjustmentsById(
722
+ id: number,
723
+ parentId: number,
724
+ patchOperations: Array<PatchOperation>,
725
+ ): Promise<AgreementAdjustment> {
726
+ return this.request({
727
+ path: `/finance/agreements/${parentId}/adjustments/${id}`,
728
+ method: 'patch',
729
+ data: patchOperations,
730
+ })
731
+ }
732
+
733
+ getFinanceAgreementsByParentIdAdjustmentsCount(
734
+ parentId: number,
735
+ params: CommonParameters = {},
736
+ ): Promise<Count> {
737
+ return this.request({
738
+ path: `/finance/agreements/${parentId}/adjustments/count`,
739
+ method: 'get',
740
+ params,
741
+ })
742
+ }
743
+
744
+ getFinanceAgreementsByParentIdBoardDefaults(
745
+ parentId: number,
746
+ params: CommonParameters = {},
747
+ ): Promise<Array<BoardDefault>> {
748
+ return this.request({
749
+ path: `/finance/agreements/${parentId}/boardDefaults`,
750
+ method: 'get',
751
+ params,
752
+ })
753
+ }
754
+
755
+ postFinanceAgreementsByParentIdBoardDefaults(
756
+ parentId: number,
757
+ boardDefault: BoardDefault,
758
+ ): Promise<BoardDefault> {
759
+ return this.request({
760
+ path: `/finance/agreements/${parentId}/boardDefaults`,
761
+ method: 'post',
762
+ data: boardDefault,
763
+ })
764
+ }
765
+
766
+ getFinanceAgreementsByParentIdBoardDefaultsById(
767
+ id: number,
768
+ parentId: number,
769
+ params: CommonParameters = {},
770
+ ): Promise<BoardDefault> {
771
+ return this.request({
772
+ path: `/finance/agreements/${parentId}/boardDefaults/${id}`,
773
+ method: 'get',
774
+ params,
775
+ })
776
+ }
777
+
778
+ deleteFinanceAgreementsByParentIdBoardDefaultsById(
779
+ id: number,
780
+ parentId: number,
781
+ ): Promise<NoContentResponse> {
782
+ return this.request({
783
+ path: `/finance/agreements/${parentId}/boardDefaults/${id}`,
784
+ method: 'delete',
785
+ })
786
+ }
787
+
788
+ putFinanceAgreementsByParentIdBoardDefaultsById(
789
+ id: number,
790
+ parentId: number,
791
+ boardDefault: BoardDefault,
792
+ ): Promise<BoardDefault> {
793
+ return this.request({
794
+ path: `/finance/agreements/${parentId}/boardDefaults/${id}`,
795
+ method: 'put',
796
+ data: boardDefault,
797
+ })
798
+ }
799
+
800
+ patchFinanceAgreementsByParentIdBoardDefaultsById(
801
+ id: number,
802
+ parentId: number,
803
+ patchOperations: Array<PatchOperation>,
804
+ ): Promise<BoardDefault> {
805
+ return this.request({
806
+ path: `/finance/agreements/${parentId}/boardDefaults/${id}`,
807
+ method: 'patch',
808
+ data: patchOperations,
809
+ })
810
+ }
811
+
812
+ getFinanceAgreementsByParentIdBoardDefaultsCount(
813
+ parentId: number,
814
+ params: CommonParameters = {},
815
+ ): Promise<Count> {
816
+ return this.request({
817
+ path: `/finance/agreements/${parentId}/boardDefaults/count`,
818
+ method: 'get',
819
+ params,
820
+ })
821
+ }
822
+
823
+ getFinanceAgreementsByParentIdConfigurations(
824
+ parentId: number,
825
+ params: CommonParameters = {},
826
+ ): Promise<Array<ConfigurationReference>> {
827
+ return this.request({
828
+ path: `/finance/agreements/${parentId}/configurations`,
829
+ method: 'get',
830
+ params,
831
+ })
832
+ }
833
+
834
+ postFinanceAgreementsByParentIdConfigurations(
835
+ parentId: number,
836
+ configuration: ConfigurationReference,
837
+ ): Promise<ConfigurationReference> {
838
+ return this.request({
839
+ path: `/finance/agreements/${parentId}/configurations`,
840
+ method: 'post',
841
+ data: configuration,
842
+ })
843
+ }
844
+
845
+ getFinanceAgreementsByParentIdConfigurationsById(
846
+ id: number,
847
+ parentId: number,
848
+ params: CommonParameters = {},
849
+ ): Promise<ConfigurationReference> {
850
+ return this.request({
851
+ path: `/finance/agreements/${parentId}/configurations/${id}`,
852
+ method: 'get',
853
+ params,
854
+ })
855
+ }
856
+
857
+ deleteFinanceAgreementsByParentIdConfigurationsById(
858
+ id: number,
859
+ parentId: number,
860
+ ): Promise<NoContentResponse> {
861
+ return this.request({
862
+ path: `/finance/agreements/${parentId}/configurations/${id}`,
863
+ method: 'delete',
864
+ })
865
+ }
866
+
867
+ getFinanceAgreementsByParentIdConfigurationsCount(
868
+ parentId: number,
869
+ params: CommonParameters = {},
870
+ ): Promise<Count> {
871
+ return this.request({
872
+ path: `/finance/agreements/${parentId}/configurations/count`,
873
+ method: 'get',
874
+ params,
875
+ })
876
+ }
877
+
878
+ getFinanceAgreementsByParentIdSites(
879
+ parentId: number,
880
+ params: CommonParameters = {},
881
+ ): Promise<Array<AgreementSite>> {
882
+ return this.request({
883
+ path: `/finance/agreements/${parentId}/sites`,
884
+ method: 'get',
885
+ params,
886
+ })
887
+ }
888
+
889
+ postFinanceAgreementsByParentIdSites(
890
+ parentId: number,
891
+ site: AgreementSite,
892
+ ): Promise<AgreementSite> {
893
+ return this.request({
894
+ path: `/finance/agreements/${parentId}/sites`,
895
+ method: 'post',
896
+ data: site,
897
+ })
898
+ }
899
+
900
+ getFinanceAgreementsByParentIdSitesById(
901
+ id: number,
902
+ parentId: number,
903
+ params: CommonParameters = {},
904
+ ): Promise<AgreementSite> {
905
+ return this.request({
906
+ path: `/finance/agreements/${parentId}/sites/${id}`,
907
+ method: 'get',
908
+ params,
909
+ })
910
+ }
911
+
912
+ deleteFinanceAgreementsByParentIdSitesById(
913
+ id: number,
914
+ parentId: number,
915
+ ): Promise<NoContentResponse> {
916
+ return this.request({
917
+ path: `/finance/agreements/${parentId}/sites/${id}`,
918
+ method: 'delete',
919
+ })
920
+ }
921
+
922
+ putFinanceAgreementsByParentIdSitesById(
923
+ id: number,
924
+ parentId: number,
925
+ site: AgreementSite,
926
+ ): Promise<AgreementSite> {
927
+ return this.request({
928
+ path: `/finance/agreements/${parentId}/sites/${id}`,
929
+ method: 'put',
930
+ data: site,
931
+ })
932
+ }
933
+
934
+ patchFinanceAgreementsByParentIdSitesById(
935
+ id: number,
936
+ parentId: number,
937
+ patchOperations: Array<PatchOperation>,
938
+ ): Promise<AgreementSite> {
939
+ return this.request({
940
+ path: `/finance/agreements/${parentId}/sites/${id}`,
941
+ method: 'patch',
942
+ data: patchOperations,
943
+ })
944
+ }
945
+
946
+ getFinanceAgreementsByParentIdSitesCount(
947
+ parentId: number,
948
+ params: CommonParameters = {},
949
+ ): Promise<Count> {
950
+ return this.request({
951
+ path: `/finance/agreements/${parentId}/sites/count`,
952
+ method: 'get',
953
+ params,
954
+ })
955
+ }
956
+
957
+ getFinanceAgreementsByParentIdWorkRoleExclusions(
958
+ parentId: number,
959
+ params: CommonParameters = {},
960
+ ): Promise<Array<AgreementWorkRoleExclusion>> {
961
+ return this.request({
962
+ path: `/finance/agreements/${parentId}/workRoleExclusions`,
963
+ method: 'get',
964
+ params,
965
+ })
966
+ }
967
+
968
+ postFinanceAgreementsByParentIdWorkRoleExclusions(
969
+ parentId: number,
970
+ workRoleExclusion: AgreementWorkRoleExclusion,
971
+ ): Promise<AgreementWorkRoleExclusion> {
972
+ return this.request({
973
+ path: `/finance/agreements/${parentId}/workRoleExclusions`,
974
+ method: 'post',
975
+ data: workRoleExclusion,
976
+ })
977
+ }
978
+
979
+ deleteFinanceAgreementsByParentIdWorkRoleExclusionsById(
980
+ id: number,
981
+ parentId: number,
982
+ ): Promise<NoContentResponse> {
983
+ return this.request({
984
+ path: `/finance/agreements/${parentId}/workRoleExclusions/${id}`,
985
+ method: 'delete',
986
+ })
987
+ }
988
+
989
+ getFinanceAgreementsByParentIdWorkRoleExclusionsCount(
990
+ parentId: number,
991
+ params: CommonParameters = {},
992
+ ): Promise<Count> {
993
+ return this.request({
994
+ path: `/finance/agreements/${parentId}/workRoleExclusions/count`,
995
+ method: 'get',
996
+ params,
997
+ })
998
+ }
999
+
1000
+ getFinanceAgreementsByParentIdWorkroles(
1001
+ parentId: number,
1002
+ params: CommonParameters = {},
1003
+ ): Promise<Array<AgreementWorkRole>> {
1004
+ return this.request({
1005
+ path: `/finance/agreements/${parentId}/workroles`,
1006
+ method: 'get',
1007
+ params,
1008
+ })
1009
+ }
1010
+
1011
+ postFinanceAgreementsByParentIdWorkroles(
1012
+ parentId: number,
1013
+ workRole: AgreementWorkRole,
1014
+ ): Promise<AgreementWorkRole> {
1015
+ return this.request({
1016
+ path: `/finance/agreements/${parentId}/workroles`,
1017
+ method: 'post',
1018
+ data: workRole,
1019
+ })
1020
+ }
1021
+
1022
+ getFinanceAgreementsByParentIdWorkrolesById(
1023
+ id: number,
1024
+ parentId: number,
1025
+ params: CommonParameters = {},
1026
+ ): Promise<AgreementWorkRole> {
1027
+ return this.request({
1028
+ path: `/finance/agreements/${parentId}/workroles/${id}`,
1029
+ method: 'get',
1030
+ params,
1031
+ })
1032
+ }
1033
+
1034
+ deleteFinanceAgreementsByParentIdWorkrolesById(
1035
+ id: number,
1036
+ parentId: number,
1037
+ ): Promise<NoContentResponse> {
1038
+ return this.request({
1039
+ path: `/finance/agreements/${parentId}/workroles/${id}`,
1040
+ method: 'delete',
1041
+ })
1042
+ }
1043
+
1044
+ putFinanceAgreementsByParentIdWorkrolesById(
1045
+ id: number,
1046
+ parentId: number,
1047
+ workRole: AgreementWorkRole,
1048
+ ): Promise<AgreementWorkRole> {
1049
+ return this.request({
1050
+ path: `/finance/agreements/${parentId}/workroles/${id}`,
1051
+ method: 'put',
1052
+ data: workRole,
1053
+ })
1054
+ }
1055
+
1056
+ patchFinanceAgreementsByParentIdWorkrolesById(
1057
+ id: number,
1058
+ parentId: number,
1059
+ patchOperations: Array<PatchOperation>,
1060
+ ): Promise<AgreementWorkRole> {
1061
+ return this.request({
1062
+ path: `/finance/agreements/${parentId}/workroles/${id}`,
1063
+ method: 'patch',
1064
+ data: patchOperations,
1065
+ })
1066
+ }
1067
+
1068
+ getFinanceAgreementsByParentIdWorkrolesCount(
1069
+ parentId: number,
1070
+ params: CommonParameters = {},
1071
+ ): Promise<Count> {
1072
+ return this.request({
1073
+ path: `/finance/agreements/${parentId}/workroles/count`,
1074
+ method: 'get',
1075
+ params,
1076
+ })
1077
+ }
1078
+
1079
+ getFinanceAgreementsByParentIdWorkTypeExclusions(
1080
+ parentId: number,
1081
+ params: CommonParameters = {},
1082
+ ): Promise<Array<AgreementWorkTypeExclusion>> {
1083
+ return this.request({
1084
+ path: `/finance/agreements/${parentId}/workTypeExclusions`,
1085
+ method: 'get',
1086
+ params,
1087
+ })
1088
+ }
1089
+
1090
+ postFinanceAgreementsByParentIdWorkTypeExclusions(
1091
+ parentId: number,
1092
+ workTypeExclusion: AgreementWorkTypeExclusion,
1093
+ ): Promise<AgreementWorkTypeExclusion> {
1094
+ return this.request({
1095
+ path: `/finance/agreements/${parentId}/workTypeExclusions`,
1096
+ method: 'post',
1097
+ data: workTypeExclusion,
1098
+ })
1099
+ }
1100
+
1101
+ deleteFinanceAgreementsByParentIdWorkTypeExclusionsById(
1102
+ id: number,
1103
+ parentId: number,
1104
+ ): Promise<NoContentResponse> {
1105
+ return this.request({
1106
+ path: `/finance/agreements/${parentId}/workTypeExclusions/${id}`,
1107
+ method: 'delete',
1108
+ })
1109
+ }
1110
+
1111
+ getFinanceAgreementsByParentIdWorkTypeExclusionsCount(
1112
+ parentId: number,
1113
+ params: CommonParameters = {},
1114
+ ): Promise<Count> {
1115
+ return this.request({
1116
+ path: `/finance/agreements/${parentId}/workTypeExclusions/count`,
1117
+ method: 'get',
1118
+ params,
1119
+ })
1120
+ }
1121
+
1122
+ getFinanceAgreementsByParentIdWorktypes(
1123
+ parentId: number,
1124
+ params: CommonParameters = {},
1125
+ ): Promise<Array<AgreementWorkType>> {
1126
+ return this.request({
1127
+ path: `/finance/agreements/${parentId}/worktypes`,
1128
+ method: 'get',
1129
+ params,
1130
+ })
1131
+ }
1132
+
1133
+ postFinanceAgreementsByParentIdWorktypes(
1134
+ parentId: number,
1135
+ workType: AgreementWorkType,
1136
+ ): Promise<AgreementWorkType> {
1137
+ return this.request({
1138
+ path: `/finance/agreements/${parentId}/worktypes`,
1139
+ method: 'post',
1140
+ data: workType,
1141
+ })
1142
+ }
1143
+
1144
+ getFinanceAgreementsByParentIdWorktypesById(
1145
+ id: number,
1146
+ parentId: number,
1147
+ params: CommonParameters = {},
1148
+ ): Promise<AgreementWorkType> {
1149
+ return this.request({
1150
+ path: `/finance/agreements/${parentId}/worktypes/${id}`,
1151
+ method: 'get',
1152
+ params,
1153
+ })
1154
+ }
1155
+
1156
+ deleteFinanceAgreementsByParentIdWorktypesById(
1157
+ id: number,
1158
+ parentId: number,
1159
+ ): Promise<NoContentResponse> {
1160
+ return this.request({
1161
+ path: `/finance/agreements/${parentId}/worktypes/${id}`,
1162
+ method: 'delete',
1163
+ })
1164
+ }
1165
+
1166
+ putFinanceAgreementsByParentIdWorktypesById(
1167
+ id: number,
1168
+ parentId: number,
1169
+ workType: AgreementWorkType,
1170
+ ): Promise<AgreementWorkType> {
1171
+ return this.request({
1172
+ path: `/finance/agreements/${parentId}/worktypes/${id}`,
1173
+ method: 'put',
1174
+ data: workType,
1175
+ })
1176
+ }
1177
+
1178
+ patchFinanceAgreementsByParentIdWorktypesById(
1179
+ id: number,
1180
+ parentId: number,
1181
+ patchOperations: Array<PatchOperation>,
1182
+ ): Promise<AgreementWorkType> {
1183
+ return this.request({
1184
+ path: `/finance/agreements/${parentId}/worktypes/${id}`,
1185
+ method: 'patch',
1186
+ data: patchOperations,
1187
+ })
1188
+ }
1189
+
1190
+ getFinanceAgreementsByParentIdWorktypesCount(
1191
+ parentId: number,
1192
+ params: CommonParameters = {},
1193
+ ): Promise<Count> {
1194
+ return this.request({
1195
+ path: `/finance/agreements/${parentId}/worktypes/count`,
1196
+ method: 'get',
1197
+ params,
1198
+ })
1199
+ }
1200
+
1201
+ getFinanceAgreementsCount(params: CommonParameters = {}): Promise<Count> {
1202
+ return this.request({
1203
+ path: `/finance/agreements/count`,
1204
+ method: 'get',
1205
+ params,
1206
+ })
1207
+ }
1208
+
1209
+ getFinanceAgreementsTypes(params: CommonParameters = {}): Promise<Array<AgreementType>> {
1210
+ return this.request({
1211
+ path: `/finance/agreements/types`,
1212
+ method: 'get',
1213
+ params,
1214
+ })
1215
+ }
1216
+
1217
+ postFinanceAgreementsTypes(agreementType: AgreementType): Promise<AgreementType> {
1218
+ return this.request({
1219
+ path: `/finance/agreements/types`,
1220
+ method: 'post',
1221
+ data: agreementType,
1222
+ })
1223
+ }
1224
+
1225
+ getFinanceAgreementsTypesById(id: number, params: CommonParameters = {}): Promise<AgreementType> {
1226
+ return this.request({
1227
+ path: `/finance/agreements/types/${id}`,
1228
+ method: 'get',
1229
+ params,
1230
+ })
1231
+ }
1232
+
1233
+ deleteFinanceAgreementsTypesById(id: number): Promise<NoContentResponse> {
1234
+ return this.request({
1235
+ path: `/finance/agreements/types/${id}`,
1236
+ method: 'delete',
1237
+ })
1238
+ }
1239
+
1240
+ putFinanceAgreementsTypesById(id: number, agreementType: AgreementType): Promise<AgreementType> {
1241
+ return this.request({
1242
+ path: `/finance/agreements/types/${id}`,
1243
+ method: 'put',
1244
+ data: agreementType,
1245
+ })
1246
+ }
1247
+
1248
+ patchFinanceAgreementsTypesById(
1249
+ id: number,
1250
+ patchOperations: Array<PatchOperation>,
1251
+ ): Promise<AgreementType> {
1252
+ return this.request({
1253
+ path: `/finance/agreements/types/${id}`,
1254
+ method: 'patch',
1255
+ data: patchOperations,
1256
+ })
1257
+ }
1258
+
1259
+ getFinanceAgreementsTypesByIdInfo(
1260
+ id: number,
1261
+ params: CommonParameters = {},
1262
+ ): Promise<AgreementTypeInfo> {
1263
+ return this.request({
1264
+ path: `/finance/agreements/types/${id}/info`,
1265
+ method: 'get',
1266
+ params,
1267
+ })
1268
+ }
1269
+
1270
+ getFinanceAgreementsTypesByIdUsages(
1271
+ id: number,
1272
+ params: CommonParameters = {},
1273
+ ): Promise<Array<Usage>> {
1274
+ return this.request({
1275
+ path: `/finance/agreements/types/${id}/usages`,
1276
+ method: 'get',
1277
+ params,
1278
+ })
1279
+ }
1280
+
1281
+ getFinanceAgreementsTypesByIdUsagesList(
1282
+ id: number,
1283
+ params: CommonParameters = {},
1284
+ ): Promise<Array<Usage>> {
1285
+ return this.request({
1286
+ path: `/finance/agreements/types/${id}/usages/list`,
1287
+ method: 'get',
1288
+ params,
1289
+ })
1290
+ }
1291
+
1292
+ getFinanceAgreementsTypesCount(params: CommonParameters = {}): Promise<Count> {
1293
+ return this.request({
1294
+ path: `/finance/agreements/types/count`,
1295
+ method: 'get',
1296
+ params,
1297
+ })
1298
+ }
1299
+
1300
+ getFinanceAgreementsTypesInfo(params: CommonParameters = {}): Promise<Array<AgreementTypeInfo>> {
1301
+ return this.request({
1302
+ path: `/finance/agreements/types/info`,
1303
+ method: 'get',
1304
+ params,
1305
+ })
1306
+ }
1307
+
1308
+ getFinanceAgreementsTypesInfoCount(params: CommonParameters = {}): Promise<Count> {
1309
+ return this.request({
1310
+ path: `/finance/agreements/types/info/count`,
1311
+ method: 'get',
1312
+ params,
1313
+ })
1314
+ }
1315
+
1316
+ getFinanceAgreementTypesByParentIdBoardDefaults(
1317
+ parentId: number,
1318
+ params: CommonParameters = {},
1319
+ ): Promise<Array<AgreementTypeBoardDefault>> {
1320
+ return this.request({
1321
+ path: `/finance/agreementTypes/${parentId}/boardDefaults`,
1322
+ method: 'get',
1323
+ params,
1324
+ })
1325
+ }
1326
+
1327
+ postFinanceAgreementTypesByParentIdBoardDefaults(
1328
+ parentId: number,
1329
+ boardDefault: AgreementTypeBoardDefault,
1330
+ ): Promise<AgreementTypeBoardDefault> {
1331
+ return this.request({
1332
+ path: `/finance/agreementTypes/${parentId}/boardDefaults`,
1333
+ method: 'post',
1334
+ data: boardDefault,
1335
+ })
1336
+ }
1337
+
1338
+ getFinanceAgreementTypesByParentIdBoardDefaultsById(
1339
+ id: number,
1340
+ parentId: number,
1341
+ params: CommonParameters = {},
1342
+ ): Promise<AgreementTypeBoardDefault> {
1343
+ return this.request({
1344
+ path: `/finance/agreementTypes/${parentId}/boardDefaults/${id}`,
1345
+ method: 'get',
1346
+ params,
1347
+ })
1348
+ }
1349
+
1350
+ deleteFinanceAgreementTypesByParentIdBoardDefaultsById(
1351
+ id: number,
1352
+ parentId: number,
1353
+ ): Promise<NoContentResponse> {
1354
+ return this.request({
1355
+ path: `/finance/agreementTypes/${parentId}/boardDefaults/${id}`,
1356
+ method: 'delete',
1357
+ })
1358
+ }
1359
+
1360
+ putFinanceAgreementTypesByParentIdBoardDefaultsById(
1361
+ id: number,
1362
+ parentId: number,
1363
+ boardDefault: AgreementTypeBoardDefault,
1364
+ ): Promise<AgreementTypeBoardDefault> {
1365
+ return this.request({
1366
+ path: `/finance/agreementTypes/${parentId}/boardDefaults/${id}`,
1367
+ method: 'put',
1368
+ data: boardDefault,
1369
+ })
1370
+ }
1371
+
1372
+ patchFinanceAgreementTypesByParentIdBoardDefaultsById(
1373
+ id: number,
1374
+ parentId: number,
1375
+ patchOperations: Array<PatchOperation>,
1376
+ ): Promise<AgreementTypeBoardDefault> {
1377
+ return this.request({
1378
+ path: `/finance/agreementTypes/${parentId}/boardDefaults/${id}`,
1379
+ method: 'patch',
1380
+ data: patchOperations,
1381
+ })
1382
+ }
1383
+
1384
+ getFinanceAgreementTypesByParentIdBoardDefaultsCount(
1385
+ parentId: number,
1386
+ params: CommonParameters = {},
1387
+ ): Promise<Count> {
1388
+ return this.request({
1389
+ path: `/finance/agreementTypes/${parentId}/boardDefaults/count`,
1390
+ method: 'get',
1391
+ params,
1392
+ })
1393
+ }
1394
+
1395
+ getFinanceAgreementTypesByParentIdWorkRoleExclusions(
1396
+ parentId: number,
1397
+ params: CommonParameters = {},
1398
+ ): Promise<Array<AgreementTypeWorkRoleExclusion>> {
1399
+ return this.request({
1400
+ path: `/finance/agreementTypes/${parentId}/workRoleExclusions`,
1401
+ method: 'get',
1402
+ params,
1403
+ })
1404
+ }
1405
+
1406
+ postFinanceAgreementTypesByParentIdWorkRoleExclusions(
1407
+ parentId: number,
1408
+ workRoleExclusion: AgreementTypeWorkRoleExclusion,
1409
+ ): Promise<AgreementTypeWorkRoleExclusion> {
1410
+ return this.request({
1411
+ path: `/finance/agreementTypes/${parentId}/workRoleExclusions`,
1412
+ method: 'post',
1413
+ data: workRoleExclusion,
1414
+ })
1415
+ }
1416
+
1417
+ getFinanceAgreementTypesByParentIdWorkRoleExclusionsById(
1418
+ id: number,
1419
+ parentId: number,
1420
+ params: CommonParameters = {},
1421
+ ): Promise<AgreementTypeWorkRoleExclusion> {
1422
+ return this.request({
1423
+ path: `/finance/agreementTypes/${parentId}/workRoleExclusions/${id}`,
1424
+ method: 'get',
1425
+ params,
1426
+ })
1427
+ }
1428
+
1429
+ deleteFinanceAgreementTypesByParentIdWorkRoleExclusionsById(
1430
+ id: number,
1431
+ parentId: number,
1432
+ ): Promise<NoContentResponse> {
1433
+ return this.request({
1434
+ path: `/finance/agreementTypes/${parentId}/workRoleExclusions/${id}`,
1435
+ method: 'delete',
1436
+ })
1437
+ }
1438
+
1439
+ getFinanceAgreementTypesByParentIdWorkRoleExclusionsCount(
1440
+ parentId: number,
1441
+ params: CommonParameters = {},
1442
+ ): Promise<Count> {
1443
+ return this.request({
1444
+ path: `/finance/agreementTypes/${parentId}/workRoleExclusions/count`,
1445
+ method: 'get',
1446
+ params,
1447
+ })
1448
+ }
1449
+
1450
+ getFinanceAgreementTypesByParentIdWorkroles(
1451
+ parentId: number,
1452
+ params: CommonParameters = {},
1453
+ ): Promise<Array<AgreementTypeWorkRole>> {
1454
+ return this.request({
1455
+ path: `/finance/agreementTypes/${parentId}/workroles`,
1456
+ method: 'get',
1457
+ params,
1458
+ })
1459
+ }
1460
+
1461
+ postFinanceAgreementTypesByParentIdWorkroles(
1462
+ parentId: number,
1463
+ workRole: AgreementTypeWorkRole,
1464
+ ): Promise<AgreementTypeWorkRole> {
1465
+ return this.request({
1466
+ path: `/finance/agreementTypes/${parentId}/workroles`,
1467
+ method: 'post',
1468
+ data: workRole,
1469
+ })
1470
+ }
1471
+
1472
+ getFinanceAgreementTypesByParentIdWorkrolesById(
1473
+ id: number,
1474
+ parentId: number,
1475
+ params: CommonParameters = {},
1476
+ ): Promise<AgreementTypeWorkRole> {
1477
+ return this.request({
1478
+ path: `/finance/agreementTypes/${parentId}/workroles/${id}`,
1479
+ method: 'get',
1480
+ params,
1481
+ })
1482
+ }
1483
+
1484
+ deleteFinanceAgreementTypesByParentIdWorkrolesById(
1485
+ id: number,
1486
+ parentId: number,
1487
+ ): Promise<NoContentResponse> {
1488
+ return this.request({
1489
+ path: `/finance/agreementTypes/${parentId}/workroles/${id}`,
1490
+ method: 'delete',
1491
+ })
1492
+ }
1493
+
1494
+ putFinanceAgreementTypesByParentIdWorkrolesById(
1495
+ id: number,
1496
+ parentId: number,
1497
+ workRole: AgreementTypeWorkRole,
1498
+ ): Promise<AgreementTypeWorkRole> {
1499
+ return this.request({
1500
+ path: `/finance/agreementTypes/${parentId}/workroles/${id}`,
1501
+ method: 'put',
1502
+ data: workRole,
1503
+ })
1504
+ }
1505
+
1506
+ patchFinanceAgreementTypesByParentIdWorkrolesById(
1507
+ id: number,
1508
+ parentId: number,
1509
+ patchOperations: Array<PatchOperation>,
1510
+ ): Promise<AgreementTypeWorkRole> {
1511
+ return this.request({
1512
+ path: `/finance/agreementTypes/${parentId}/workroles/${id}`,
1513
+ method: 'patch',
1514
+ data: patchOperations,
1515
+ })
1516
+ }
1517
+
1518
+ getFinanceAgreementTypesByParentIdWorkrolesCount(
1519
+ parentId: number,
1520
+ params: CommonParameters = {},
1521
+ ): Promise<Count> {
1522
+ return this.request({
1523
+ path: `/finance/agreementTypes/${parentId}/workroles/count`,
1524
+ method: 'get',
1525
+ params,
1526
+ })
1527
+ }
1528
+
1529
+ getFinanceAgreementTypesByParentIdWorkrolesInfo(
1530
+ parentId: number,
1531
+ params: CommonParameters = {},
1532
+ ): Promise<Array<AgreementTypeWorkRoleInfo>> {
1533
+ return this.request({
1534
+ path: `/finance/agreementTypes/${parentId}/workroles/info`,
1535
+ method: 'get',
1536
+ params,
1537
+ })
1538
+ }
1539
+
1540
+ getFinanceAgreementTypesByParentIdWorkrolesInfoById(
1541
+ id: number,
1542
+ parentId: number,
1543
+ params: CommonParameters = {},
1544
+ ): Promise<AgreementTypeWorkRoleInfo> {
1545
+ return this.request({
1546
+ path: `/finance/agreementTypes/${parentId}/workroles/info/${id}`,
1547
+ method: 'get',
1548
+ params,
1549
+ })
1550
+ }
1551
+
1552
+ getFinanceAgreementTypesByParentIdWorkrolesInfoCount(
1553
+ parentId: number,
1554
+ params: CommonParameters = {},
1555
+ ): Promise<Count> {
1556
+ return this.request({
1557
+ path: `/finance/agreementTypes/${parentId}/workroles/info/count`,
1558
+ method: 'get',
1559
+ params,
1560
+ })
1561
+ }
1562
+
1563
+ getFinanceAgreementTypesByParentIdWorkTypeExclusions(
1564
+ parentId: number,
1565
+ params: CommonParameters = {},
1566
+ ): Promise<Array<AgreementTypeWorkTypeExclusion>> {
1567
+ return this.request({
1568
+ path: `/finance/agreementTypes/${parentId}/workTypeExclusions`,
1569
+ method: 'get',
1570
+ params,
1571
+ })
1572
+ }
1573
+
1574
+ postFinanceAgreementTypesByParentIdWorkTypeExclusions(
1575
+ parentId: number,
1576
+ workTypeExclusion: AgreementTypeWorkTypeExclusion,
1577
+ ): Promise<AgreementTypeWorkTypeExclusion> {
1578
+ return this.request({
1579
+ path: `/finance/agreementTypes/${parentId}/workTypeExclusions`,
1580
+ method: 'post',
1581
+ data: workTypeExclusion,
1582
+ })
1583
+ }
1584
+
1585
+ getFinanceAgreementTypesByParentIdWorkTypeExclusionsById(
1586
+ id: number,
1587
+ parentId: number,
1588
+ params: CommonParameters = {},
1589
+ ): Promise<AgreementTypeWorkTypeExclusion> {
1590
+ return this.request({
1591
+ path: `/finance/agreementTypes/${parentId}/workTypeExclusions/${id}`,
1592
+ method: 'get',
1593
+ params,
1594
+ })
1595
+ }
1596
+
1597
+ deleteFinanceAgreementTypesByParentIdWorkTypeExclusionsById(
1598
+ id: number,
1599
+ parentId: number,
1600
+ ): Promise<NoContentResponse> {
1601
+ return this.request({
1602
+ path: `/finance/agreementTypes/${parentId}/workTypeExclusions/${id}`,
1603
+ method: 'delete',
1604
+ })
1605
+ }
1606
+
1607
+ getFinanceAgreementTypesByParentIdWorkTypeExclusionsCount(
1608
+ parentId: number,
1609
+ params: CommonParameters = {},
1610
+ ): Promise<Count> {
1611
+ return this.request({
1612
+ path: `/finance/agreementTypes/${parentId}/workTypeExclusions/count`,
1613
+ method: 'get',
1614
+ params,
1615
+ })
1616
+ }
1617
+
1618
+ getFinanceAgreementTypesByParentIdWorktypes(
1619
+ parentId: number,
1620
+ params: CommonParameters = {},
1621
+ ): Promise<Array<AgreementTypeWorkType>> {
1622
+ return this.request({
1623
+ path: `/finance/agreementTypes/${parentId}/worktypes`,
1624
+ method: 'get',
1625
+ params,
1626
+ })
1627
+ }
1628
+
1629
+ postFinanceAgreementTypesByParentIdWorktypes(
1630
+ parentId: number,
1631
+ workType: AgreementTypeWorkType,
1632
+ ): Promise<AgreementTypeWorkType> {
1633
+ return this.request({
1634
+ path: `/finance/agreementTypes/${parentId}/worktypes`,
1635
+ method: 'post',
1636
+ data: workType,
1637
+ })
1638
+ }
1639
+
1640
+ getFinanceAgreementTypesByParentIdWorktypesById(
1641
+ id: number,
1642
+ parentId: number,
1643
+ params: CommonParameters = {},
1644
+ ): Promise<AgreementTypeWorkType> {
1645
+ return this.request({
1646
+ path: `/finance/agreementTypes/${parentId}/worktypes/${id}`,
1647
+ method: 'get',
1648
+ params,
1649
+ })
1650
+ }
1651
+
1652
+ deleteFinanceAgreementTypesByParentIdWorktypesById(
1653
+ id: number,
1654
+ parentId: number,
1655
+ ): Promise<NoContentResponse> {
1656
+ return this.request({
1657
+ path: `/finance/agreementTypes/${parentId}/worktypes/${id}`,
1658
+ method: 'delete',
1659
+ })
1660
+ }
1661
+
1662
+ putFinanceAgreementTypesByParentIdWorktypesById(
1663
+ id: number,
1664
+ parentId: number,
1665
+ workType: AgreementTypeWorkType,
1666
+ ): Promise<AgreementTypeWorkType> {
1667
+ return this.request({
1668
+ path: `/finance/agreementTypes/${parentId}/worktypes/${id}`,
1669
+ method: 'put',
1670
+ data: workType,
1671
+ })
1672
+ }
1673
+
1674
+ patchFinanceAgreementTypesByParentIdWorktypesById(
1675
+ id: number,
1676
+ parentId: number,
1677
+ patchOperations: Array<PatchOperation>,
1678
+ ): Promise<AgreementTypeWorkType> {
1679
+ return this.request({
1680
+ path: `/finance/agreementTypes/${parentId}/worktypes/${id}`,
1681
+ method: 'patch',
1682
+ data: patchOperations,
1683
+ })
1684
+ }
1685
+
1686
+ getFinanceAgreementTypesByParentIdWorktypesCount(
1687
+ parentId: number,
1688
+ params: CommonParameters = {},
1689
+ ): Promise<Count> {
1690
+ return this.request({
1691
+ path: `/finance/agreementTypes/${parentId}/worktypes/count`,
1692
+ method: 'get',
1693
+ params,
1694
+ })
1695
+ }
1696
+
1697
+ getFinanceBatchSetups(params: CommonParameters = {}): Promise<Array<AgreementBatchSetup>> {
1698
+ return this.request({
1699
+ path: `/finance/batchSetups`,
1700
+ method: 'get',
1701
+ params,
1702
+ })
1703
+ }
1704
+
1705
+ getFinanceBatchSetupsById(
1706
+ id: number,
1707
+ params: CommonParameters = {},
1708
+ ): Promise<AgreementBatchSetup> {
1709
+ return this.request({
1710
+ path: `/finance/batchSetups/${id}`,
1711
+ method: 'get',
1712
+ params,
1713
+ })
1714
+ }
1715
+
1716
+ putFinanceBatchSetupsById(
1717
+ id: number,
1718
+ batchSetup: AgreementBatchSetup,
1719
+ ): Promise<AgreementBatchSetup> {
1720
+ return this.request({
1721
+ path: `/finance/batchSetups/${id}`,
1722
+ method: 'put',
1723
+ data: batchSetup,
1724
+ })
1725
+ }
1726
+
1727
+ patchFinanceBatchSetupsById(
1728
+ id: number,
1729
+ patchOperations: Array<PatchOperation>,
1730
+ ): Promise<AgreementBatchSetup> {
1731
+ return this.request({
1732
+ path: `/finance/batchSetups/${id}`,
1733
+ method: 'patch',
1734
+ data: patchOperations,
1735
+ })
1736
+ }
1737
+
1738
+ getFinanceBatchSetupsCount(params: CommonParameters = {}): Promise<Count> {
1739
+ return this.request({
1740
+ path: `/finance/batchSetups/count`,
1741
+ method: 'get',
1742
+ params,
1743
+ })
1744
+ }
1745
+
1746
+ getFinanceBillingCycles(params: CommonParameters = {}): Promise<Array<BillingCycle>> {
1747
+ return this.request({
1748
+ path: `/finance/billingCycles`,
1749
+ method: 'get',
1750
+ params,
1751
+ })
1752
+ }
1753
+
1754
+ postFinanceBillingCycles(billingCycle: BillingCycle): Promise<BillingCycle> {
1755
+ return this.request({
1756
+ path: `/finance/billingCycles`,
1757
+ method: 'post',
1758
+ data: billingCycle,
1759
+ })
1760
+ }
1761
+
1762
+ getFinanceBillingCyclesById(id: number, params: CommonParameters = {}): Promise<BillingCycle> {
1763
+ return this.request({
1764
+ path: `/finance/billingCycles/${id}`,
1765
+ method: 'get',
1766
+ params,
1767
+ })
1768
+ }
1769
+
1770
+ deleteFinanceBillingCyclesById(id: number): Promise<NoContentResponse> {
1771
+ return this.request({
1772
+ path: `/finance/billingCycles/${id}`,
1773
+ method: 'delete',
1774
+ })
1775
+ }
1776
+
1777
+ putFinanceBillingCyclesById(id: number, billingCycle: BillingCycle): Promise<BillingCycle> {
1778
+ return this.request({
1779
+ path: `/finance/billingCycles/${id}`,
1780
+ method: 'put',
1781
+ data: billingCycle,
1782
+ })
1783
+ }
1784
+
1785
+ patchFinanceBillingCyclesById(
1786
+ id: number,
1787
+ patchOperations: Array<PatchOperation>,
1788
+ ): Promise<BillingCycle> {
1789
+ return this.request({
1790
+ path: `/finance/billingCycles/${id}`,
1791
+ method: 'patch',
1792
+ data: patchOperations,
1793
+ })
1794
+ }
1795
+
1796
+ getFinanceBillingCyclesByIdInfo(
1797
+ id: number,
1798
+ params: CommonParameters = {},
1799
+ ): Promise<BillingCycleInfo> {
1800
+ return this.request({
1801
+ path: `/finance/billingCycles/${id}/info`,
1802
+ method: 'get',
1803
+ params,
1804
+ })
1805
+ }
1806
+
1807
+ getFinanceBillingCyclesByIdUsages(
1808
+ id: number,
1809
+ params: CommonParameters = {},
1810
+ ): Promise<Array<Usage>> {
1811
+ return this.request({
1812
+ path: `/finance/billingCycles/${id}/usages`,
1813
+ method: 'get',
1814
+ params,
1815
+ })
1816
+ }
1817
+
1818
+ getFinanceBillingCyclesByIdUsagesList(
1819
+ id: number,
1820
+ params: CommonParameters = {},
1821
+ ): Promise<Array<Usage>> {
1822
+ return this.request({
1823
+ path: `/finance/billingCycles/${id}/usages/list`,
1824
+ method: 'get',
1825
+ params,
1826
+ })
1827
+ }
1828
+
1829
+ getFinanceBillingCyclesCount(params: CommonParameters = {}): Promise<Count> {
1830
+ return this.request({
1831
+ path: `/finance/billingCycles/count`,
1832
+ method: 'get',
1833
+ params,
1834
+ })
1835
+ }
1836
+
1837
+ getFinanceBillingCyclesInfo(params: CommonParameters = {}): Promise<Array<BillingCycleInfo>> {
1838
+ return this.request({
1839
+ path: `/finance/billingCycles/info`,
1840
+ method: 'get',
1841
+ params,
1842
+ })
1843
+ }
1844
+
1845
+ getFinanceBillingCyclesInfoCount(params: CommonParameters = {}): Promise<Count> {
1846
+ return this.request({
1847
+ path: `/finance/billingCycles/info/count`,
1848
+ method: 'get',
1849
+ params,
1850
+ })
1851
+ }
1852
+
1853
+ getFinanceBillingSetups(params: CommonParameters = {}): Promise<Array<BillingSetup>> {
1854
+ return this.request({
1855
+ path: `/finance/billingSetups`,
1856
+ method: 'get',
1857
+ params,
1858
+ })
1859
+ }
1860
+
1861
+ postFinanceBillingSetups(billingSetup: BillingSetup): Promise<BillingSetup> {
1862
+ return this.request({
1863
+ path: `/finance/billingSetups`,
1864
+ method: 'post',
1865
+ data: billingSetup,
1866
+ })
1867
+ }
1868
+
1869
+ getFinanceBillingSetupsById(id: number, params: CommonParameters = {}): Promise<BillingSetup> {
1870
+ return this.request({
1871
+ path: `/finance/billingSetups/${id}`,
1872
+ method: 'get',
1873
+ params,
1874
+ })
1875
+ }
1876
+
1877
+ deleteFinanceBillingSetupsById(id: number): Promise<NoContentResponse> {
1878
+ return this.request({
1879
+ path: `/finance/billingSetups/${id}`,
1880
+ method: 'delete',
1881
+ })
1882
+ }
1883
+
1884
+ putFinanceBillingSetupsById(id: number, billingSetup: BillingSetup): Promise<BillingSetup> {
1885
+ return this.request({
1886
+ path: `/finance/billingSetups/${id}`,
1887
+ method: 'put',
1888
+ data: billingSetup,
1889
+ })
1890
+ }
1891
+
1892
+ patchFinanceBillingSetupsById(
1893
+ id: number,
1894
+ patchOperations: Array<PatchOperation>,
1895
+ ): Promise<BillingSetup> {
1896
+ return this.request({
1897
+ path: `/finance/billingSetups/${id}`,
1898
+ method: 'patch',
1899
+ data: patchOperations,
1900
+ })
1901
+ }
1902
+
1903
+ getFinanceBillingSetupsByIdInfo(
1904
+ id: number,
1905
+ params: CommonParameters = {},
1906
+ ): Promise<BillingSetupInfo> {
1907
+ return this.request({
1908
+ path: `/finance/billingSetups/${id}/info`,
1909
+ method: 'get',
1910
+ params,
1911
+ })
1912
+ }
1913
+
1914
+ getFinanceBillingSetupsByParentIdRoutings(
1915
+ parentId: number,
1916
+ params: CommonParameters = {},
1917
+ ): Promise<Array<BillingSetupRouting>> {
1918
+ return this.request({
1919
+ path: `/finance/billingSetups/${parentId}/routings`,
1920
+ method: 'get',
1921
+ params,
1922
+ })
1923
+ }
1924
+
1925
+ postFinanceBillingSetupsByParentIdRoutings(
1926
+ parentId: number,
1927
+ billingSetupRouting: BillingSetupRouting,
1928
+ ): Promise<BillingSetupRouting> {
1929
+ return this.request({
1930
+ path: `/finance/billingSetups/${parentId}/routings`,
1931
+ method: 'post',
1932
+ data: billingSetupRouting,
1933
+ })
1934
+ }
1935
+
1936
+ getFinanceBillingSetupsByParentIdRoutingsById(
1937
+ id: number,
1938
+ parentId: number,
1939
+ params: CommonParameters = {},
1940
+ ): Promise<BillingSetupRouting> {
1941
+ return this.request({
1942
+ path: `/finance/billingSetups/${parentId}/routings/${id}`,
1943
+ method: 'get',
1944
+ params,
1945
+ })
1946
+ }
1947
+
1948
+ deleteFinanceBillingSetupsByParentIdRoutingsById(
1949
+ id: number,
1950
+ parentId: number,
1951
+ ): Promise<NoContentResponse> {
1952
+ return this.request({
1953
+ path: `/finance/billingSetups/${parentId}/routings/${id}`,
1954
+ method: 'delete',
1955
+ })
1956
+ }
1957
+
1958
+ putFinanceBillingSetupsByParentIdRoutingsById(
1959
+ id: number,
1960
+ parentId: number,
1961
+ billingSetupRouting: BillingSetupRouting,
1962
+ ): Promise<BillingSetupRouting> {
1963
+ return this.request({
1964
+ path: `/finance/billingSetups/${parentId}/routings/${id}`,
1965
+ method: 'put',
1966
+ data: billingSetupRouting,
1967
+ })
1968
+ }
1969
+
1970
+ patchFinanceBillingSetupsByParentIdRoutingsById(
1971
+ id: number,
1972
+ parentId: number,
1973
+ patchOperations: Array<PatchOperation>,
1974
+ ): Promise<BillingSetupRouting> {
1975
+ return this.request({
1976
+ path: `/finance/billingSetups/${parentId}/routings/${id}`,
1977
+ method: 'patch',
1978
+ data: patchOperations,
1979
+ })
1980
+ }
1981
+
1982
+ getFinanceBillingSetupsByParentIdRoutingsCount(
1983
+ parentId: number,
1984
+ params: CommonParameters = {},
1985
+ ): Promise<Count> {
1986
+ return this.request({
1987
+ path: `/finance/billingSetups/${parentId}/routings/count`,
1988
+ method: 'get',
1989
+ params,
1990
+ })
1991
+ }
1992
+
1993
+ getFinanceBillingSetupsCount(params: CommonParameters = {}): Promise<Count> {
1994
+ return this.request({
1995
+ path: `/finance/billingSetups/count`,
1996
+ method: 'get',
1997
+ params,
1998
+ })
1999
+ }
2000
+
2001
+ getFinanceBillingSetupsInfo(params: CommonParameters = {}): Promise<Array<BillingSetupInfo>> {
2002
+ return this.request({
2003
+ path: `/finance/billingSetups/info`,
2004
+ method: 'get',
2005
+ params,
2006
+ })
2007
+ }
2008
+
2009
+ getFinanceBillingStatuses(params: CommonParameters = {}): Promise<Array<BillingStatus>> {
2010
+ return this.request({
2011
+ path: `/finance/billingStatuses`,
2012
+ method: 'get',
2013
+ params,
2014
+ })
2015
+ }
2016
+
2017
+ postFinanceBillingStatuses(billingStatus: BillingStatus): Promise<BillingStatus> {
2018
+ return this.request({
2019
+ path: `/finance/billingStatuses`,
2020
+ method: 'post',
2021
+ data: billingStatus,
2022
+ })
2023
+ }
2024
+
2025
+ getFinanceBillingStatusesById(id: number, params: CommonParameters = {}): Promise<BillingStatus> {
2026
+ return this.request({
2027
+ path: `/finance/billingStatuses/${id}`,
2028
+ method: 'get',
2029
+ params,
2030
+ })
2031
+ }
2032
+
2033
+ deleteFinanceBillingStatusesById(id: number): Promise<NoContentResponse> {
2034
+ return this.request({
2035
+ path: `/finance/billingStatuses/${id}`,
2036
+ method: 'delete',
2037
+ })
2038
+ }
2039
+
2040
+ putFinanceBillingStatusesById(id: number, billingStatus: BillingStatus): Promise<BillingStatus> {
2041
+ return this.request({
2042
+ path: `/finance/billingStatuses/${id}`,
2043
+ method: 'put',
2044
+ data: billingStatus,
2045
+ })
2046
+ }
2047
+
2048
+ patchFinanceBillingStatusesById(
2049
+ id: number,
2050
+ patchOperations: Array<PatchOperation>,
2051
+ ): Promise<BillingStatus> {
2052
+ return this.request({
2053
+ path: `/finance/billingStatuses/${id}`,
2054
+ method: 'patch',
2055
+ data: patchOperations,
2056
+ })
2057
+ }
2058
+
2059
+ getFinanceBillingStatusesByIdInfo(
2060
+ id: number,
2061
+ params: CommonParameters = {},
2062
+ ): Promise<BillingStatusInfo> {
2063
+ return this.request({
2064
+ path: `/finance/billingStatuses/${id}/info`,
2065
+ method: 'get',
2066
+ params,
2067
+ })
2068
+ }
2069
+
2070
+ getFinanceBillingStatusesByIdUsages(
2071
+ id: number,
2072
+ params: CommonParameters = {},
2073
+ ): Promise<Array<Usage>> {
2074
+ return this.request({
2075
+ path: `/finance/billingStatuses/${id}/usages`,
2076
+ method: 'get',
2077
+ params,
2078
+ })
2079
+ }
2080
+
2081
+ getFinanceBillingStatusesByIdUsagesList(
2082
+ id: number,
2083
+ params: CommonParameters = {},
2084
+ ): Promise<Array<Usage>> {
2085
+ return this.request({
2086
+ path: `/finance/billingStatuses/${id}/usages/list`,
2087
+ method: 'get',
2088
+ params,
2089
+ })
2090
+ }
2091
+
2092
+ getFinanceBillingStatusesCount(params: CommonParameters = {}): Promise<Count> {
2093
+ return this.request({
2094
+ path: `/finance/billingStatuses/count`,
2095
+ method: 'get',
2096
+ params,
2097
+ })
2098
+ }
2099
+
2100
+ getFinanceBillingStatusesInfo(params: CommonParameters = {}): Promise<Array<BillingStatusInfo>> {
2101
+ return this.request({
2102
+ path: `/finance/billingStatuses/info`,
2103
+ method: 'get',
2104
+ params,
2105
+ })
2106
+ }
2107
+
2108
+ getFinanceBillingStatusesInfoCount(params: CommonParameters = {}): Promise<Count> {
2109
+ return this.request({
2110
+ path: `/finance/billingStatuses/info/count`,
2111
+ method: 'get',
2112
+ params,
2113
+ })
2114
+ }
2115
+
2116
+ getFinanceBillingTerms(params: CommonParameters = {}): Promise<Array<BillingTerm>> {
2117
+ return this.request({
2118
+ path: `/finance/billingTerms`,
2119
+ method: 'get',
2120
+ params,
2121
+ })
2122
+ }
2123
+
2124
+ postFinanceBillingTerms(billingTerms: BillingTerm): Promise<BillingTerm> {
2125
+ return this.request({
2126
+ path: `/finance/billingTerms`,
2127
+ method: 'post',
2128
+ data: billingTerms,
2129
+ })
2130
+ }
2131
+
2132
+ getFinanceBillingTermsById(id: number, params: CommonParameters = {}): Promise<BillingTerm> {
2133
+ return this.request({
2134
+ path: `/finance/billingTerms/${id}`,
2135
+ method: 'get',
2136
+ params,
2137
+ })
2138
+ }
2139
+
2140
+ deleteFinanceBillingTermsById(id: number): Promise<NoContentResponse> {
2141
+ return this.request({
2142
+ path: `/finance/billingTerms/${id}`,
2143
+ method: 'delete',
2144
+ })
2145
+ }
2146
+
2147
+ putFinanceBillingTermsById(id: number, billingTerms: BillingTerm): Promise<BillingTerm> {
2148
+ return this.request({
2149
+ path: `/finance/billingTerms/${id}`,
2150
+ method: 'put',
2151
+ data: billingTerms,
2152
+ })
2153
+ }
2154
+
2155
+ patchFinanceBillingTermsById(
2156
+ id: number,
2157
+ patchOperations: Array<PatchOperation>,
2158
+ ): Promise<BillingTerm> {
2159
+ return this.request({
2160
+ path: `/finance/billingTerms/${id}`,
2161
+ method: 'patch',
2162
+ data: patchOperations,
2163
+ })
2164
+ }
2165
+
2166
+ getFinanceBillingTermsByIdInfo(
2167
+ id: number,
2168
+ params: CommonParameters = {},
2169
+ ): Promise<BillingTermInfo> {
2170
+ return this.request({
2171
+ path: `/finance/billingTerms/${id}/info`,
2172
+ method: 'get',
2173
+ params,
2174
+ })
2175
+ }
2176
+
2177
+ getFinanceBillingTermsByIdUsages(
2178
+ id: number,
2179
+ params: CommonParameters = {},
2180
+ ): Promise<Array<Usage>> {
2181
+ return this.request({
2182
+ path: `/finance/billingTerms/${id}/usages`,
2183
+ method: 'get',
2184
+ params,
2185
+ })
2186
+ }
2187
+
2188
+ getFinanceBillingTermsByIdUsagesList(
2189
+ id: number,
2190
+ params: CommonParameters = {},
2191
+ ): Promise<Array<Usage>> {
2192
+ return this.request({
2193
+ path: `/finance/billingTerms/${id}/usages/list`,
2194
+ method: 'get',
2195
+ params,
2196
+ })
2197
+ }
2198
+
2199
+ getFinanceBillingTermsCount(params: CommonParameters = {}): Promise<Count> {
2200
+ return this.request({
2201
+ path: `/finance/billingTerms/count`,
2202
+ method: 'get',
2203
+ params,
2204
+ })
2205
+ }
2206
+
2207
+ getFinanceBillingTermsInfo(params: CommonParameters = {}): Promise<Array<BillingTermInfo>> {
2208
+ return this.request({
2209
+ path: `/finance/billingTerms/info`,
2210
+ method: 'get',
2211
+ params,
2212
+ })
2213
+ }
2214
+
2215
+ getFinanceBillingTermsInfoCount(params: CommonParameters = {}): Promise<Count> {
2216
+ return this.request({
2217
+ path: `/finance/billingTerms/info/count`,
2218
+ method: 'get',
2219
+ params,
2220
+ })
2221
+ }
2222
+
2223
+ putFinanceClosedInvoicesById(id: number, closedInvoice: ClosedInvoice): Promise<ClosedInvoice> {
2224
+ return this.request({
2225
+ path: `/finance/closedInvoices/${id}`,
2226
+ method: 'put',
2227
+ data: closedInvoice,
2228
+ })
2229
+ }
2230
+
2231
+ patchFinanceClosedInvoicesById(
2232
+ id: number,
2233
+ patchOperations: Array<PatchOperation>,
2234
+ ): Promise<ClosedInvoice> {
2235
+ return this.request({
2236
+ path: `/finance/closedInvoices/${id}`,
2237
+ method: 'patch',
2238
+ data: patchOperations,
2239
+ })
2240
+ }
2241
+
2242
+ getFinanceCompanyFinance(params: CommonParameters = {}): Promise<Array<CompanyFinance>> {
2243
+ return this.request({
2244
+ path: `/finance/companyFinance/`,
2245
+ method: 'get',
2246
+ params,
2247
+ })
2248
+ }
2249
+
2250
+ getFinanceCompanyFinanceById(id: number, params: CommonParameters = {}): Promise<CompanyFinance> {
2251
+ return this.request({
2252
+ path: `/finance/companyFinance/${id}`,
2253
+ method: 'get',
2254
+ params,
2255
+ })
2256
+ }
2257
+
2258
+ patchFinanceCompanyFinanceById(
2259
+ id: number,
2260
+ patchOperations: Array<PatchOperation>,
2261
+ ): Promise<CompanyFinance> {
2262
+ return this.request({
2263
+ path: `/finance/companyFinance/${id}`,
2264
+ method: 'patch',
2265
+ data: patchOperations,
2266
+ })
2267
+ }
2268
+
2269
+ getFinanceCompanyFinanceCount(params: CommonParameters = {}): Promise<Count> {
2270
+ return this.request({
2271
+ path: `/finance/companyFinance/count`,
2272
+ method: 'get',
2273
+ params,
2274
+ })
2275
+ }
2276
+
2277
+ getFinanceCurrencies(params: CommonParameters = {}): Promise<Array<FinanceCurrency>> {
2278
+ return this.request({
2279
+ path: `/finance/currencies`,
2280
+ method: 'get',
2281
+ params,
2282
+ })
2283
+ }
2284
+
2285
+ postFinanceCurrencies(currency: FinanceCurrency): Promise<FinanceCurrency> {
2286
+ return this.request({
2287
+ path: `/finance/currencies`,
2288
+ method: 'post',
2289
+ data: currency,
2290
+ })
2291
+ }
2292
+
2293
+ getFinanceCurrenciesById(id: number, params: CommonParameters = {}): Promise<FinanceCurrency> {
2294
+ return this.request({
2295
+ path: `/finance/currencies/${id}`,
2296
+ method: 'get',
2297
+ params,
2298
+ })
2299
+ }
2300
+
2301
+ putFinanceCurrenciesById(id: number, currency: FinanceCurrency): Promise<FinanceCurrency> {
2302
+ return this.request({
2303
+ path: `/finance/currencies/${id}`,
2304
+ method: 'put',
2305
+ data: currency,
2306
+ })
2307
+ }
2308
+
2309
+ patchFinanceCurrenciesById(
2310
+ id: number,
2311
+ patchOperations: Array<PatchOperation>,
2312
+ ): Promise<FinanceCurrency> {
2313
+ return this.request({
2314
+ path: `/finance/currencies/${id}`,
2315
+ method: 'patch',
2316
+ data: patchOperations,
2317
+ })
2318
+ }
2319
+
2320
+ deleteFinanceCurrenciesById(id: number): Promise<NoContentResponse> {
2321
+ return this.request({
2322
+ path: `/finance/currencies/${id}`,
2323
+ method: 'delete',
2324
+ })
2325
+ }
2326
+
2327
+ getFinanceCurrenciesByIdInfo(id: number, params: CommonParameters = {}): Promise<CurrencyInfo> {
2328
+ return this.request({
2329
+ path: `/finance/currencies/${id}/info`,
2330
+ method: 'get',
2331
+ params,
2332
+ })
2333
+ }
2334
+
2335
+ getFinanceCurrenciesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
2336
+ return this.request({
2337
+ path: `/finance/currencies/${id}/usages`,
2338
+ method: 'get',
2339
+ params,
2340
+ })
2341
+ }
2342
+
2343
+ getFinanceCurrenciesByIdUsagesList(
2344
+ id: number,
2345
+ params: CommonParameters = {},
2346
+ ): Promise<Array<Usage>> {
2347
+ return this.request({
2348
+ path: `/finance/currencies/${id}/usages/list`,
2349
+ method: 'get',
2350
+ params,
2351
+ })
2352
+ }
2353
+
2354
+ getFinanceCurrenciesCount(params: CommonParameters = {}): Promise<Count> {
2355
+ return this.request({
2356
+ path: `/finance/currencies/count`,
2357
+ method: 'get',
2358
+ params,
2359
+ })
2360
+ }
2361
+
2362
+ getFinanceCurrenciesInfo(params: CommonParameters = {}): Promise<Array<CurrencyInfo>> {
2363
+ return this.request({
2364
+ path: `/finance/currencies/info`,
2365
+ method: 'get',
2366
+ params,
2367
+ })
2368
+ }
2369
+
2370
+ getFinanceCurrenciesInfoCount(params: CommonParameters = {}): Promise<Count> {
2371
+ return this.request({
2372
+ path: `/finance/currencies/info/count`,
2373
+ method: 'get',
2374
+ params,
2375
+ })
2376
+ }
2377
+
2378
+ getFinanceDeliveryMethods(params: CommonParameters = {}): Promise<Array<DeliveryMethod>> {
2379
+ return this.request({
2380
+ path: `/finance/deliveryMethods`,
2381
+ method: 'get',
2382
+ params,
2383
+ })
2384
+ }
2385
+
2386
+ postFinanceDeliveryMethods(deliveryMethod: DeliveryMethod): Promise<DeliveryMethod> {
2387
+ return this.request({
2388
+ path: `/finance/deliveryMethods`,
2389
+ method: 'post',
2390
+ data: deliveryMethod,
2391
+ })
2392
+ }
2393
+
2394
+ getFinanceDeliveryMethodsById(
2395
+ id: number,
2396
+ params: CommonParameters = {},
2397
+ ): Promise<DeliveryMethod> {
2398
+ return this.request({
2399
+ path: `/finance/deliveryMethods/${id}`,
2400
+ method: 'get',
2401
+ params,
2402
+ })
2403
+ }
2404
+
2405
+ deleteFinanceDeliveryMethodsById(id: number): Promise<NoContentResponse> {
2406
+ return this.request({
2407
+ path: `/finance/deliveryMethods/${id}`,
2408
+ method: 'delete',
2409
+ })
2410
+ }
2411
+
2412
+ putFinanceDeliveryMethodsById(
2413
+ id: number,
2414
+ deliveryMethod: DeliveryMethod,
2415
+ ): Promise<DeliveryMethod> {
2416
+ return this.request({
2417
+ path: `/finance/deliveryMethods/${id}`,
2418
+ method: 'put',
2419
+ data: deliveryMethod,
2420
+ })
2421
+ }
2422
+
2423
+ patchFinanceDeliveryMethodsById(
2424
+ id: number,
2425
+ patchOperations: Array<PatchOperation>,
2426
+ ): Promise<DeliveryMethod> {
2427
+ return this.request({
2428
+ path: `/finance/deliveryMethods/${id}`,
2429
+ method: 'patch',
2430
+ data: patchOperations,
2431
+ })
2432
+ }
2433
+
2434
+ getFinanceDeliveryMethodsCount(params: CommonParameters = {}): Promise<Count> {
2435
+ return this.request({
2436
+ path: `/finance/deliveryMethods/count`,
2437
+ method: 'get',
2438
+ params,
2439
+ })
2440
+ }
2441
+
2442
+ getFinanceGlAccounts(params: CommonParameters = {}): Promise<Array<GLAccount>> {
2443
+ return this.request({
2444
+ path: `/finance/glAccounts`,
2445
+ method: 'get',
2446
+ params,
2447
+ })
2448
+ }
2449
+
2450
+ postFinanceGlAccounts(glAccount: GLAccount): Promise<GLAccount> {
2451
+ return this.request({
2452
+ path: `/finance/glAccounts`,
2453
+ method: 'post',
2454
+ data: glAccount,
2455
+ })
2456
+ }
2457
+
2458
+ getFinanceGlAccountsById(id: number, params: CommonParameters = {}): Promise<GLAccount> {
2459
+ return this.request({
2460
+ path: `/finance/glAccounts/${id}`,
2461
+ method: 'get',
2462
+ params,
2463
+ })
2464
+ }
2465
+
2466
+ putFinanceGlAccountsById(id: number, glAccount: GLAccount): Promise<GLAccount> {
2467
+ return this.request({
2468
+ path: `/finance/glAccounts/${id}`,
2469
+ method: 'put',
2470
+ data: glAccount,
2471
+ })
2472
+ }
2473
+
2474
+ patchFinanceGlAccountsById(
2475
+ id: number,
2476
+ patchOperations: Array<PatchOperation>,
2477
+ ): Promise<GLAccount> {
2478
+ return this.request({
2479
+ path: `/finance/glAccounts/${id}`,
2480
+ method: 'patch',
2481
+ data: patchOperations,
2482
+ })
2483
+ }
2484
+
2485
+ deleteFinanceGlAccountsById(id: number): Promise<NoContentResponse> {
2486
+ return this.request({
2487
+ path: `/finance/glAccounts/${id}`,
2488
+ method: 'delete',
2489
+ })
2490
+ }
2491
+
2492
+ getFinanceGlAccountsCount(params: CommonParameters = {}): Promise<Count> {
2493
+ return this.request({
2494
+ path: `/finance/glAccounts/count`,
2495
+ method: 'get',
2496
+ params,
2497
+ })
2498
+ }
2499
+
2500
+ getFinanceGlAccountsMappedTypes(params: CommonParameters = {}): Promise<Array<MappedType>> {
2501
+ return this.request({
2502
+ path: `/finance/glAccounts/mappedTypes`,
2503
+ method: 'get',
2504
+ params,
2505
+ })
2506
+ }
2507
+
2508
+ getFinanceGlAccountsMappedTypesCount(params: CommonParameters = {}): Promise<Count> {
2509
+ return this.request({
2510
+ path: `/finance/glAccounts/mappedTypes/count`,
2511
+ method: 'get',
2512
+ params,
2513
+ })
2514
+ }
2515
+
2516
+ getFinanceGlCaptions(params: CommonParameters = {}): Promise<Array<GLCaption>> {
2517
+ return this.request({
2518
+ path: `/finance/glCaptions`,
2519
+ method: 'get',
2520
+ params,
2521
+ })
2522
+ }
2523
+
2524
+ getFinanceGlCaptionsById(id: number, params: CommonParameters = {}): Promise<GLCaption> {
2525
+ return this.request({
2526
+ path: `/finance/glCaptions/${id}`,
2527
+ method: 'get',
2528
+ params,
2529
+ })
2530
+ }
2531
+
2532
+ putFinanceGlCaptionsById(id: number, glCaption: GLCaption): Promise<GLCaption> {
2533
+ return this.request({
2534
+ path: `/finance/glCaptions/${id}`,
2535
+ method: 'put',
2536
+ data: glCaption,
2537
+ })
2538
+ }
2539
+
2540
+ patchFinanceGlCaptionsById(
2541
+ id: number,
2542
+ patchOperations: Array<PatchOperation>,
2543
+ ): Promise<GLCaption> {
2544
+ return this.request({
2545
+ path: `/finance/glCaptions/${id}`,
2546
+ method: 'patch',
2547
+ data: patchOperations,
2548
+ })
2549
+ }
2550
+
2551
+ getFinanceGlCaptionsCount(params: CommonParameters = {}): Promise<Count> {
2552
+ return this.request({
2553
+ path: `/finance/glCaptions/count`,
2554
+ method: 'get',
2555
+ params,
2556
+ })
2557
+ }
2558
+
2559
+ getFinanceGlpaths(params: CommonParameters = {}): Promise<Array<GLPath>> {
2560
+ return this.request({
2561
+ path: `/finance/glpaths`,
2562
+ method: 'get',
2563
+ params,
2564
+ })
2565
+ }
2566
+
2567
+ postFinanceGlpaths(gLPath: GLPath): Promise<GLPath> {
2568
+ return this.request({
2569
+ path: `/finance/glpaths`,
2570
+ method: 'post',
2571
+ data: gLPath,
2572
+ })
2573
+ }
2574
+
2575
+ getFinanceGlpathsById(id: number, params: CommonParameters = {}): Promise<GLPath> {
2576
+ return this.request({
2577
+ path: `/finance/glpaths/${id}`,
2578
+ method: 'get',
2579
+ params,
2580
+ })
2581
+ }
2582
+
2583
+ deleteFinanceGlpathsById(id: number): Promise<NoContentResponse> {
2584
+ return this.request({
2585
+ path: `/finance/glpaths/${id}`,
2586
+ method: 'delete',
2587
+ })
2588
+ }
2589
+
2590
+ putFinanceGlpathsById(id: number, gLPath: GLPath): Promise<GLPath> {
2591
+ return this.request({
2592
+ path: `/finance/glpaths/${id}`,
2593
+ method: 'put',
2594
+ data: gLPath,
2595
+ })
2596
+ }
2597
+
2598
+ patchFinanceGlpathsById(id: number, patchOperations: Array<PatchOperation>): Promise<GLPath> {
2599
+ return this.request({
2600
+ path: `/finance/glpaths/${id}`,
2601
+ method: 'patch',
2602
+ data: patchOperations,
2603
+ })
2604
+ }
2605
+
2606
+ getFinanceGlpathsCount(params: CommonParameters = {}): Promise<Count> {
2607
+ return this.request({
2608
+ path: `/finance/glpaths/count`,
2609
+ method: 'get',
2610
+ params,
2611
+ })
2612
+ }
2613
+
2614
+ getFinanceInfoCurrencyCodes(params: CommonParameters = {}): Promise<Array<CurrencyCode>> {
2615
+ return this.request({
2616
+ path: `/finance/info/currencyCodes`,
2617
+ method: 'get',
2618
+ params,
2619
+ })
2620
+ }
2621
+
2622
+ getFinanceInfoCurrencyCodesById(
2623
+ id: number,
2624
+ params: CommonParameters = {},
2625
+ ): Promise<CurrencyCode> {
2626
+ return this.request({
2627
+ path: `/finance/info/currencyCodes/${id}`,
2628
+ method: 'get',
2629
+ params,
2630
+ })
2631
+ }
2632
+
2633
+ getFinanceInfoCurrencyCodesCount(params: CommonParameters = {}): Promise<Count> {
2634
+ return this.request({
2635
+ path: `/finance/info/currencyCodes/count`,
2636
+ method: 'get',
2637
+ params,
2638
+ })
2639
+ }
2640
+
2641
+ getFinanceInfoInvoiceById(id: number, params: CommonParameters = {}): Promise<InvoiceInfo> {
2642
+ return this.request({
2643
+ path: `/finance/info/invoice/${id}`,
2644
+ method: 'get',
2645
+ params,
2646
+ })
2647
+ }
2648
+
2649
+ getFinanceInfoTaxIntegrations(params: CommonParameters = {}): Promise<Array<TaxIntegrationInfo>> {
2650
+ return this.request({
2651
+ path: `/finance/info/taxIntegrations`,
2652
+ method: 'get',
2653
+ params,
2654
+ })
2655
+ }
2656
+
2657
+ getFinanceInfoTaxIntegrationsById(
2658
+ id: number,
2659
+ params: CommonParameters = {},
2660
+ ): Promise<TaxIntegrationInfo> {
2661
+ return this.request({
2662
+ path: `/finance/info/taxIntegrations/${id}`,
2663
+ method: 'get',
2664
+ params,
2665
+ })
2666
+ }
2667
+
2668
+ getFinanceInfoTaxIntegrationsCount(params: CommonParameters = {}): Promise<Count> {
2669
+ return this.request({
2670
+ path: `/finance/info/taxIntegrations/count`,
2671
+ method: 'get',
2672
+ params,
2673
+ })
2674
+ }
2675
+
2676
+ getFinanceInvoiceEmailTemplates(
2677
+ params: CommonParameters = {},
2678
+ ): Promise<Array<InvoiceEmailTemplate>> {
2679
+ return this.request({
2680
+ path: `/finance/invoiceEmailTemplates`,
2681
+ method: 'get',
2682
+ params,
2683
+ })
2684
+ }
2685
+
2686
+ postFinanceInvoiceEmailTemplates(
2687
+ invoiceEmailTemplate: InvoiceEmailTemplate,
2688
+ ): Promise<InvoiceEmailTemplate> {
2689
+ return this.request({
2690
+ path: `/finance/invoiceEmailTemplates`,
2691
+ method: 'post',
2692
+ data: invoiceEmailTemplate,
2693
+ })
2694
+ }
2695
+
2696
+ getFinanceInvoiceEmailTemplatesById(
2697
+ id: number,
2698
+ params: CommonParameters = {},
2699
+ ): Promise<InvoiceEmailTemplate> {
2700
+ return this.request({
2701
+ path: `/finance/invoiceEmailTemplates/${id}`,
2702
+ method: 'get',
2703
+ params,
2704
+ })
2705
+ }
2706
+
2707
+ deleteFinanceInvoiceEmailTemplatesById(id: number): Promise<NoContentResponse> {
2708
+ return this.request({
2709
+ path: `/finance/invoiceEmailTemplates/${id}`,
2710
+ method: 'delete',
2711
+ })
2712
+ }
2713
+
2714
+ putFinanceInvoiceEmailTemplatesById(
2715
+ id: number,
2716
+ invoiceEmailTemplate: InvoiceEmailTemplate,
2717
+ ): Promise<InvoiceEmailTemplate> {
2718
+ return this.request({
2719
+ path: `/finance/invoiceEmailTemplates/${id}`,
2720
+ method: 'put',
2721
+ data: invoiceEmailTemplate,
2722
+ })
2723
+ }
2724
+
2725
+ patchFinanceInvoiceEmailTemplatesById(
2726
+ id: number,
2727
+ patchOperations: Array<PatchOperation>,
2728
+ ): Promise<InvoiceEmailTemplate> {
2729
+ return this.request({
2730
+ path: `/finance/invoiceEmailTemplates/${id}`,
2731
+ method: 'patch',
2732
+ data: patchOperations,
2733
+ })
2734
+ }
2735
+
2736
+ getFinanceInvoiceEmailTemplatesByIdInfo(
2737
+ id: number,
2738
+ params: CommonParameters = {},
2739
+ ): Promise<InvoiceEmailTemplateInfo> {
2740
+ return this.request({
2741
+ path: `/finance/invoiceEmailTemplates/${id}/info`,
2742
+ method: 'get',
2743
+ params,
2744
+ })
2745
+ }
2746
+
2747
+ getFinanceInvoiceEmailTemplatesByIdUsages(
2748
+ id: number,
2749
+ params: CommonParameters = {},
2750
+ ): Promise<Array<Usage>> {
2751
+ return this.request({
2752
+ path: `/finance/invoiceEmailTemplates/${id}/usages`,
2753
+ method: 'get',
2754
+ params,
2755
+ })
2756
+ }
2757
+
2758
+ getFinanceInvoiceEmailTemplatesByIdUsagesList(
2759
+ id: number,
2760
+ params: CommonParameters = {},
2761
+ ): Promise<Array<Usage>> {
2762
+ return this.request({
2763
+ path: `/finance/invoiceEmailTemplates/${id}/usages/list`,
2764
+ method: 'get',
2765
+ params,
2766
+ })
2767
+ }
2768
+
2769
+ getFinanceInvoiceEmailTemplatesCount(params: CommonParameters = {}): Promise<Count> {
2770
+ return this.request({
2771
+ path: `/finance/invoiceEmailTemplates/count`,
2772
+ method: 'get',
2773
+ params,
2774
+ })
2775
+ }
2776
+
2777
+ getFinanceInvoiceEmailTemplatesInfo(
2778
+ params: CommonParameters = {},
2779
+ ): Promise<Array<InvoiceEmailTemplateInfo>> {
2780
+ return this.request({
2781
+ path: `/finance/invoiceEmailTemplates/info`,
2782
+ method: 'get',
2783
+ params,
2784
+ })
2785
+ }
2786
+
2787
+ getFinanceInvoiceEmailTemplatesInfoCount(params: CommonParameters = {}): Promise<Count> {
2788
+ return this.request({
2789
+ path: `/finance/invoiceEmailTemplates/info/count`,
2790
+ method: 'get',
2791
+ params,
2792
+ })
2793
+ }
2794
+
2795
+ getFinanceInvoices(params: CommonParameters = {}): Promise<Array<Invoice>> {
2796
+ return this.request({
2797
+ path: `/finance/invoices`,
2798
+ method: 'get',
2799
+ params,
2800
+ })
2801
+ }
2802
+
2803
+ postFinanceInvoices(invoice: Invoice): Promise<Invoice> {
2804
+ return this.request({
2805
+ path: `/finance/invoices`,
2806
+ method: 'post',
2807
+ data: invoice,
2808
+ })
2809
+ }
2810
+
2811
+ getFinanceInvoicesById(id: number, params: CommonParameters = {}): Promise<Invoice> {
2812
+ return this.request({
2813
+ path: `/finance/invoices/${id}`,
2814
+ method: 'get',
2815
+ params,
2816
+ })
2817
+ }
2818
+
2819
+ deleteFinanceInvoicesById(id: number): Promise<NoContentResponse> {
2820
+ return this.request({
2821
+ path: `/finance/invoices/${id}`,
2822
+ method: 'delete',
2823
+ })
2824
+ }
2825
+
2826
+ putFinanceInvoicesById(id: number, invoice: Invoice): Promise<Invoice> {
2827
+ return this.request({
2828
+ path: `/finance/invoices/${id}`,
2829
+ method: 'put',
2830
+ data: invoice,
2831
+ })
2832
+ }
2833
+
2834
+ patchFinanceInvoicesById(id: number, patchOperations: Array<PatchOperation>): Promise<Invoice> {
2835
+ return this.request({
2836
+ path: `/finance/invoices/${id}`,
2837
+ method: 'patch',
2838
+ data: patchOperations,
2839
+ })
2840
+ }
2841
+
2842
+ getFinanceInvoicesByIdPdf(id: number, params: CommonParameters = {}): Promise<PDFResponse> {
2843
+ return this.request({
2844
+ path: `/finance/invoices/${id}/pdf`,
2845
+ method: 'get',
2846
+ params,
2847
+ })
2848
+ }
2849
+
2850
+ getFinanceInvoicesByParentIdPayments(
2851
+ parentId: number,
2852
+ params: CommonParameters = {},
2853
+ ): Promise<Array<Payment>> {
2854
+ return this.request({
2855
+ path: `/finance/invoices/${parentId}/payments`,
2856
+ method: 'get',
2857
+ params,
2858
+ })
2859
+ }
2860
+
2861
+ postFinanceInvoicesByParentIdPayments(parentId: number, payment: Payment): Promise<Payment> {
2862
+ return this.request({
2863
+ path: `/finance/invoices/${parentId}/payments`,
2864
+ method: 'post',
2865
+ data: payment,
2866
+ })
2867
+ }
2868
+
2869
+ getFinanceInvoicesByParentIdPaymentsById(
2870
+ id: number,
2871
+ parentId: number,
2872
+ params: CommonParameters = {},
2873
+ ): Promise<Payment> {
2874
+ return this.request({
2875
+ path: `/finance/invoices/${parentId}/payments/${id}`,
2876
+ method: 'get',
2877
+ params,
2878
+ })
2879
+ }
2880
+
2881
+ patchFinanceInvoicesByParentIdPaymentsById(
2882
+ id: number,
2883
+ parentId: number,
2884
+ patchOperations: Array<PatchOperation>,
2885
+ ): Promise<Payment> {
2886
+ return this.request({
2887
+ path: `/finance/invoices/${parentId}/payments/${id}`,
2888
+ method: 'patch',
2889
+ data: patchOperations,
2890
+ })
2891
+ }
2892
+
2893
+ putFinanceInvoicesByParentIdPaymentsById(
2894
+ id: number,
2895
+ parentId: number,
2896
+ payment: Payment,
2897
+ ): Promise<Payment> {
2898
+ return this.request({
2899
+ path: `/finance/invoices/${parentId}/payments/${id}`,
2900
+ method: 'put',
2901
+ data: payment,
2902
+ })
2903
+ }
2904
+
2905
+ deleteFinanceInvoicesByParentIdPaymentsById(
2906
+ id: number,
2907
+ parentId: number,
2908
+ ): Promise<NoContentResponse> {
2909
+ return this.request({
2910
+ path: `/finance/invoices/${parentId}/payments/${id}`,
2911
+ method: 'delete',
2912
+ })
2913
+ }
2914
+
2915
+ getFinanceInvoicesCount(params: CommonParameters = {}): Promise<Count> {
2916
+ return this.request({
2917
+ path: `/finance/invoices/count`,
2918
+ method: 'get',
2919
+ params,
2920
+ })
2921
+ }
2922
+
2923
+ getFinanceInvoiceTemplates(params: CommonParameters = {}): Promise<Array<InvoiceTemplate>> {
2924
+ return this.request({
2925
+ path: `/finance/invoiceTemplates`,
2926
+ method: 'get',
2927
+ params,
2928
+ })
2929
+ }
2930
+
2931
+ postFinanceInvoiceTemplates(invoiceTemplate: InvoiceTemplate): Promise<InvoiceTemplate> {
2932
+ return this.request({
2933
+ path: `/finance/invoiceTemplates`,
2934
+ method: 'post',
2935
+ data: invoiceTemplate,
2936
+ })
2937
+ }
2938
+
2939
+ getFinanceInvoiceTemplatesById(
2940
+ id: number,
2941
+ params: CommonParameters = {},
2942
+ ): Promise<InvoiceTemplate> {
2943
+ return this.request({
2944
+ path: `/finance/invoiceTemplates/${id}`,
2945
+ method: 'get',
2946
+ params,
2947
+ })
2948
+ }
2949
+
2950
+ patchFinanceInvoiceTemplatesById(
2951
+ id: number,
2952
+ patchOperations: Array<PatchOperation>,
2953
+ ): Promise<InvoiceTemplate> {
2954
+ return this.request({
2955
+ path: `/finance/invoiceTemplates/${id}`,
2956
+ method: 'patch',
2957
+ data: patchOperations,
2958
+ })
2959
+ }
2960
+
2961
+ putFinanceInvoiceTemplatesById(
2962
+ id: number,
2963
+ invoiceTemplate: InvoiceTemplate,
2964
+ ): Promise<InvoiceTemplate> {
2965
+ return this.request({
2966
+ path: `/finance/invoiceTemplates/${id}`,
2967
+ method: 'put',
2968
+ data: invoiceTemplate,
2969
+ })
2970
+ }
2971
+
2972
+ deleteFinanceInvoiceTemplatesById(id: number): Promise<NoContentResponse> {
2973
+ return this.request({
2974
+ path: `/finance/invoiceTemplates/${id}`,
2975
+ method: 'delete',
2976
+ })
2977
+ }
2978
+
2979
+ getFinanceInvoiceTemplatesByIdUsages(
2980
+ id: number,
2981
+ params: CommonParameters = {},
2982
+ ): Promise<Array<Usage>> {
2983
+ return this.request({
2984
+ path: `/finance/invoiceTemplates/${id}/usages`,
2985
+ method: 'get',
2986
+ params,
2987
+ })
2988
+ }
2989
+
2990
+ getFinanceInvoiceTemplatesByIdUsagesList(
2991
+ id: number,
2992
+ params: CommonParameters = {},
2993
+ ): Promise<Array<Usage>> {
2994
+ return this.request({
2995
+ path: `/finance/invoiceTemplates/${id}/usages/list`,
2996
+ method: 'get',
2997
+ params,
2998
+ })
2999
+ }
3000
+
3001
+ getFinanceInvoiceTemplatesCount(params: CommonParameters = {}): Promise<Count> {
3002
+ return this.request({
3003
+ path: `/finance/invoiceTemplates/count`,
3004
+ method: 'get',
3005
+ params,
3006
+ })
3007
+ }
3008
+
3009
+ getFinanceInvoiceTemplateSetups(
3010
+ params: CommonParameters = {},
3011
+ ): Promise<Array<InvoiceTemplateSetup>> {
3012
+ return this.request({
3013
+ path: `/finance/invoiceTemplateSetups`,
3014
+ method: 'get',
3015
+ params,
3016
+ })
3017
+ }
3018
+
3019
+ getFinanceInvoiceTemplateSetupsById(
3020
+ id: number,
3021
+ params: CommonParameters = {},
3022
+ ): Promise<InvoiceTemplateSetup> {
3023
+ return this.request({
3024
+ path: `/finance/invoiceTemplateSetups/${id}`,
3025
+ method: 'get',
3026
+ params,
3027
+ })
3028
+ }
3029
+
3030
+ getFinanceInvoiceTemplateSetupsCount(params: CommonParameters = {}): Promise<Count> {
3031
+ return this.request({
3032
+ path: `/finance/invoiceTemplateSetups/count`,
3033
+ method: 'get',
3034
+ params,
3035
+ })
3036
+ }
3037
+
3038
+ getFinanceTaxCodes(params: CommonParameters = {}): Promise<Array<TaxCode>> {
3039
+ return this.request({
3040
+ path: `/finance/taxCodes`,
3041
+ method: 'get',
3042
+ params,
3043
+ })
3044
+ }
3045
+
3046
+ postFinanceTaxCodes(taxCode: TaxCode): Promise<TaxCode> {
3047
+ return this.request({
3048
+ path: `/finance/taxCodes`,
3049
+ method: 'post',
3050
+ data: taxCode,
3051
+ })
3052
+ }
3053
+
3054
+ getFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevels(
3055
+ parentId: number,
3056
+ grandparentId: number,
3057
+ params: CommonParameters = {},
3058
+ ): Promise<Array<TaxableExpenseTypeLevel>> {
3059
+ return this.request({
3060
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels`,
3061
+ method: 'get',
3062
+ params,
3063
+ })
3064
+ }
3065
+
3066
+ postFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevels(
3067
+ parentId: number,
3068
+ grandparentId: number,
3069
+ taxableExpenseTypeLevel: TaxableExpenseTypeLevel,
3070
+ ): Promise<TaxableExpenseTypeLevel> {
3071
+ return this.request({
3072
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels`,
3073
+ method: 'post',
3074
+ data: taxableExpenseTypeLevel,
3075
+ })
3076
+ }
3077
+
3078
+ getFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevelsById(
3079
+ id: number,
3080
+ parentId: number,
3081
+ grandparentId: number,
3082
+ params: CommonParameters = {},
3083
+ ): Promise<TaxableExpenseTypeLevel> {
3084
+ return this.request({
3085
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels/${id}`,
3086
+ method: 'get',
3087
+ params,
3088
+ })
3089
+ }
3090
+
3091
+ deleteFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevelsById(
3092
+ id: number,
3093
+ parentId: number,
3094
+ grandparentId: number,
3095
+ ): Promise<NoContentResponse> {
3096
+ return this.request({
3097
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels/${id}`,
3098
+ method: 'delete',
3099
+ })
3100
+ }
3101
+
3102
+ putFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevelsById(
3103
+ id: number,
3104
+ parentId: number,
3105
+ grandparentId: number,
3106
+ taxableExpenseTypeLevel: TaxableExpenseTypeLevel,
3107
+ ): Promise<TaxableExpenseTypeLevel> {
3108
+ return this.request({
3109
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels/${id}`,
3110
+ method: 'put',
3111
+ data: taxableExpenseTypeLevel,
3112
+ })
3113
+ }
3114
+
3115
+ patchFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevelsById(
3116
+ id: number,
3117
+ parentId: number,
3118
+ grandparentId: number,
3119
+ patchOperations: Array<PatchOperation>,
3120
+ ): Promise<TaxableExpenseTypeLevel> {
3121
+ return this.request({
3122
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels/${id}`,
3123
+ method: 'patch',
3124
+ data: patchOperations,
3125
+ })
3126
+ }
3127
+
3128
+ getFinanceTaxCodesByGrandparentIdExpenseTypeExemptionsByParentIdTaxableExpenseTypeLevelsCount(
3129
+ parentId: number,
3130
+ grandparentId: number,
3131
+ params: CommonParameters = {},
3132
+ ): Promise<Count> {
3133
+ return this.request({
3134
+ path: `/finance/taxCodes/${grandparentId}/expenseTypeExemptions/${parentId}/taxableExpenseTypeLevels/count`,
3135
+ method: 'get',
3136
+ params,
3137
+ })
3138
+ }
3139
+
3140
+ getFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevels(
3141
+ parentId: number,
3142
+ grandparentId: number,
3143
+ params: CommonParameters = {},
3144
+ ): Promise<Array<TaxableProductTypeLevel>> {
3145
+ return this.request({
3146
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels`,
3147
+ method: 'get',
3148
+ params,
3149
+ })
3150
+ }
3151
+
3152
+ postFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevels(
3153
+ parentId: number,
3154
+ grandparentId: number,
3155
+ taxableProductTypeLevel: TaxableProductTypeLevel,
3156
+ ): Promise<TaxableProductTypeLevel> {
3157
+ return this.request({
3158
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels`,
3159
+ method: 'post',
3160
+ data: taxableProductTypeLevel,
3161
+ })
3162
+ }
3163
+
3164
+ getFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevelsById(
3165
+ id: number,
3166
+ parentId: number,
3167
+ grandparentId: number,
3168
+ params: CommonParameters = {},
3169
+ ): Promise<TaxableProductTypeLevel> {
3170
+ return this.request({
3171
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels/${id}`,
3172
+ method: 'get',
3173
+ params,
3174
+ })
3175
+ }
3176
+
3177
+ deleteFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevelsById(
3178
+ id: number,
3179
+ parentId: number,
3180
+ grandparentId: number,
3181
+ ): Promise<NoContentResponse> {
3182
+ return this.request({
3183
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels/${id}`,
3184
+ method: 'delete',
3185
+ })
3186
+ }
3187
+
3188
+ putFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevelsById(
3189
+ id: number,
3190
+ parentId: number,
3191
+ grandparentId: number,
3192
+ taxableProductTypeLevel: TaxableProductTypeLevel,
3193
+ ): Promise<TaxableProductTypeLevel> {
3194
+ return this.request({
3195
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels/${id}`,
3196
+ method: 'put',
3197
+ data: taxableProductTypeLevel,
3198
+ })
3199
+ }
3200
+
3201
+ patchFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevelsById(
3202
+ id: number,
3203
+ parentId: number,
3204
+ grandparentId: number,
3205
+ patchOperations: Array<PatchOperation>,
3206
+ ): Promise<TaxableProductTypeLevel> {
3207
+ return this.request({
3208
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels/${id}`,
3209
+ method: 'patch',
3210
+ data: patchOperations,
3211
+ })
3212
+ }
3213
+
3214
+ getFinanceTaxCodesByGrandparentIdProductTypeExemptionsByParentIdTaxableProductTypeLevelsCount(
3215
+ parentId: number,
3216
+ grandparentId: number,
3217
+ params: CommonParameters = {},
3218
+ ): Promise<Count> {
3219
+ return this.request({
3220
+ path: `/finance/taxCodes/${grandparentId}/productTypeExemptions/${parentId}/taxableProductTypeLevels/count`,
3221
+ method: 'get',
3222
+ params,
3223
+ })
3224
+ }
3225
+
3226
+ getFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevels(
3227
+ parentId: number,
3228
+ grandparentId: number,
3229
+ params: CommonParameters = {},
3230
+ ): Promise<Array<TaxableXRefLevel>> {
3231
+ return this.request({
3232
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels`,
3233
+ method: 'get',
3234
+ params,
3235
+ })
3236
+ }
3237
+
3238
+ postFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevels(
3239
+ parentId: number,
3240
+ grandparentId: number,
3241
+ taxableXRefLevel: TaxableXRefLevel,
3242
+ ): Promise<TaxableXRefLevel> {
3243
+ return this.request({
3244
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels`,
3245
+ method: 'post',
3246
+ data: taxableXRefLevel,
3247
+ })
3248
+ }
3249
+
3250
+ getFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevelsById(
3251
+ id: number,
3252
+ parentId: number,
3253
+ grandparentId: number,
3254
+ params: CommonParameters = {},
3255
+ ): Promise<TaxableXRefLevel> {
3256
+ return this.request({
3257
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels/${id}`,
3258
+ method: 'get',
3259
+ params,
3260
+ })
3261
+ }
3262
+
3263
+ deleteFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevelsById(
3264
+ id: number,
3265
+ parentId: number,
3266
+ grandparentId: number,
3267
+ ): Promise<NoContentResponse> {
3268
+ return this.request({
3269
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels/${id}`,
3270
+ method: 'delete',
3271
+ })
3272
+ }
3273
+
3274
+ putFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevelsById(
3275
+ id: number,
3276
+ parentId: number,
3277
+ grandparentId: number,
3278
+ taxableXRefLevel: TaxableXRefLevel,
3279
+ ): Promise<TaxableXRefLevel> {
3280
+ return this.request({
3281
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels/${id}`,
3282
+ method: 'put',
3283
+ data: taxableXRefLevel,
3284
+ })
3285
+ }
3286
+
3287
+ patchFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevelsById(
3288
+ id: number,
3289
+ parentId: number,
3290
+ grandparentId: number,
3291
+ patchOperations: Array<PatchOperation>,
3292
+ ): Promise<TaxableXRefLevel> {
3293
+ return this.request({
3294
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels/${id}`,
3295
+ method: 'patch',
3296
+ data: patchOperations,
3297
+ })
3298
+ }
3299
+
3300
+ getFinanceTaxCodesByGrandparentIdTaxCodeXRefsByParentIdTaxableXRefLevelsCount(
3301
+ parentId: number,
3302
+ grandparentId: number,
3303
+ params: CommonParameters = {},
3304
+ ): Promise<Count> {
3305
+ return this.request({
3306
+ path: `/finance/taxCodes/${grandparentId}/taxCodeXRefs/${parentId}/taxableXRefLevels/count`,
3307
+ method: 'get',
3308
+ params,
3309
+ })
3310
+ }
3311
+
3312
+ getFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevels(
3313
+ parentId: number,
3314
+ grandparentId: number,
3315
+ params: CommonParameters = {},
3316
+ ): Promise<Array<TaxableWorkRoleLevel>> {
3317
+ return this.request({
3318
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels`,
3319
+ method: 'get',
3320
+ params,
3321
+ })
3322
+ }
3323
+
3324
+ postFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevels(
3325
+ parentId: number,
3326
+ grandparentId: number,
3327
+ taxableWorkRoleLevel: TaxableWorkRoleLevel,
3328
+ ): Promise<TaxableWorkRoleLevel> {
3329
+ return this.request({
3330
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels`,
3331
+ method: 'post',
3332
+ data: taxableWorkRoleLevel,
3333
+ })
3334
+ }
3335
+
3336
+ getFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevelsById(
3337
+ id: number,
3338
+ parentId: number,
3339
+ grandparentId: number,
3340
+ params: CommonParameters = {},
3341
+ ): Promise<TaxableWorkRoleLevel> {
3342
+ return this.request({
3343
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels/${id}`,
3344
+ method: 'get',
3345
+ params,
3346
+ })
3347
+ }
3348
+
3349
+ deleteFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevelsById(
3350
+ id: number,
3351
+ parentId: number,
3352
+ grandparentId: number,
3353
+ ): Promise<NoContentResponse> {
3354
+ return this.request({
3355
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels/${id}`,
3356
+ method: 'delete',
3357
+ })
3358
+ }
3359
+
3360
+ putFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevelsById(
3361
+ id: number,
3362
+ parentId: number,
3363
+ grandparentId: number,
3364
+ taxableWorkRoleLevel: TaxableWorkRoleLevel,
3365
+ ): Promise<TaxableWorkRoleLevel> {
3366
+ return this.request({
3367
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels/${id}`,
3368
+ method: 'put',
3369
+ data: taxableWorkRoleLevel,
3370
+ })
3371
+ }
3372
+
3373
+ patchFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevelsById(
3374
+ id: number,
3375
+ parentId: number,
3376
+ grandparentId: number,
3377
+ patchOperations: Array<PatchOperation>,
3378
+ ): Promise<TaxableWorkRoleLevel> {
3379
+ return this.request({
3380
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels/${id}`,
3381
+ method: 'patch',
3382
+ data: patchOperations,
3383
+ })
3384
+ }
3385
+
3386
+ getFinanceTaxCodesByGrandparentIdWorkRoleExemptionsByParentIdTaxableWorkRoleLevelsCount(
3387
+ parentId: number,
3388
+ grandparentId: number,
3389
+ params: CommonParameters = {},
3390
+ ): Promise<Count> {
3391
+ return this.request({
3392
+ path: `/finance/taxCodes/${grandparentId}/workRoleExemptions/${parentId}/taxableWorkRoleLevels/count`,
3393
+ method: 'get',
3394
+ params,
3395
+ })
3396
+ }
3397
+
3398
+ getFinanceTaxCodesById(id: number, params: CommonParameters = {}): Promise<TaxCode> {
3399
+ return this.request({
3400
+ path: `/finance/taxCodes/${id}`,
3401
+ method: 'get',
3402
+ params,
3403
+ })
3404
+ }
3405
+
3406
+ deleteFinanceTaxCodesById(id: number): Promise<NoContentResponse> {
3407
+ return this.request({
3408
+ path: `/finance/taxCodes/${id}`,
3409
+ method: 'delete',
3410
+ })
3411
+ }
3412
+
3413
+ putFinanceTaxCodesById(id: number, taxCode: TaxCode): Promise<TaxCode> {
3414
+ return this.request({
3415
+ path: `/finance/taxCodes/${id}`,
3416
+ method: 'put',
3417
+ data: taxCode,
3418
+ })
3419
+ }
3420
+
3421
+ patchFinanceTaxCodesById(id: number, patchOperations: Array<PatchOperation>): Promise<TaxCode> {
3422
+ return this.request({
3423
+ path: `/finance/taxCodes/${id}`,
3424
+ method: 'patch',
3425
+ data: patchOperations,
3426
+ })
3427
+ }
3428
+
3429
+ postFinanceTaxCodesByIdCopy(id: number): Promise<TaxCode> {
3430
+ return this.request({
3431
+ path: `/finance/taxCodes/${id}/copy`,
3432
+ method: 'post',
3433
+ })
3434
+ }
3435
+
3436
+ getFinanceTaxCodesByIdInfo(id: number, params: CommonParameters = {}): Promise<TaxCodeInfo> {
3437
+ return this.request({
3438
+ path: `/finance/taxCodes/${id}/info`,
3439
+ method: 'get',
3440
+ params,
3441
+ })
3442
+ }
3443
+
3444
+ getFinanceTaxCodesByIdUsages(id: number, params: CommonParameters = {}): Promise<Array<Usage>> {
3445
+ return this.request({
3446
+ path: `/finance/taxCodes/${id}/usages`,
3447
+ method: 'get',
3448
+ params,
3449
+ })
3450
+ }
3451
+
3452
+ getFinanceTaxCodesByIdUsagesList(
3453
+ id: number,
3454
+ params: CommonParameters = {},
3455
+ ): Promise<Array<Usage>> {
3456
+ return this.request({
3457
+ path: `/finance/taxCodes/${id}/usages/list`,
3458
+ method: 'get',
3459
+ params,
3460
+ })
3461
+ }
3462
+
3463
+ getFinanceTaxCodesByParentIdExpenseTypeExemptions(
3464
+ parentId: number,
3465
+ params: CommonParameters = {},
3466
+ ): Promise<Array<ExpenseTypeExemption>> {
3467
+ return this.request({
3468
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions`,
3469
+ method: 'get',
3470
+ params,
3471
+ })
3472
+ }
3473
+
3474
+ postFinanceTaxCodesByParentIdExpenseTypeExemptions(
3475
+ parentId: number,
3476
+ expenseTypeExemption: ExpenseTypeExemption,
3477
+ ): Promise<ExpenseTypeExemption> {
3478
+ return this.request({
3479
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions`,
3480
+ method: 'post',
3481
+ data: expenseTypeExemption,
3482
+ })
3483
+ }
3484
+
3485
+ getFinanceTaxCodesByParentIdExpenseTypeExemptionsById(
3486
+ id: number,
3487
+ parentId: number,
3488
+ params: CommonParameters = {},
3489
+ ): Promise<ExpenseTypeExemption> {
3490
+ return this.request({
3491
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions/${id}`,
3492
+ method: 'get',
3493
+ params,
3494
+ })
3495
+ }
3496
+
3497
+ deleteFinanceTaxCodesByParentIdExpenseTypeExemptionsById(
3498
+ id: number,
3499
+ parentId: number,
3500
+ ): Promise<NoContentResponse> {
3501
+ return this.request({
3502
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions/${id}`,
3503
+ method: 'delete',
3504
+ })
3505
+ }
3506
+
3507
+ putFinanceTaxCodesByParentIdExpenseTypeExemptionsById(
3508
+ id: number,
3509
+ parentId: number,
3510
+ expenseTypeExemption: ExpenseTypeExemption,
3511
+ ): Promise<ExpenseTypeExemption> {
3512
+ return this.request({
3513
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions/${id}`,
3514
+ method: 'put',
3515
+ data: expenseTypeExemption,
3516
+ })
3517
+ }
3518
+
3519
+ patchFinanceTaxCodesByParentIdExpenseTypeExemptionsById(
3520
+ id: number,
3521
+ parentId: number,
3522
+ patchOperations: Array<PatchOperation>,
3523
+ ): Promise<ExpenseTypeExemption> {
3524
+ return this.request({
3525
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions/${id}`,
3526
+ method: 'patch',
3527
+ data: patchOperations,
3528
+ })
3529
+ }
3530
+
3531
+ getFinanceTaxCodesByParentIdExpenseTypeExemptionsCount(
3532
+ parentId: number,
3533
+ params: CommonParameters = {},
3534
+ ): Promise<Count> {
3535
+ return this.request({
3536
+ path: `/finance/taxCodes/${parentId}/expenseTypeExemptions/count`,
3537
+ method: 'get',
3538
+ params,
3539
+ })
3540
+ }
3541
+
3542
+ getFinanceTaxCodesByParentIdProductTypeExemptions(
3543
+ parentId: number,
3544
+ params: CommonParameters = {},
3545
+ ): Promise<Array<ProductTypeExemption>> {
3546
+ return this.request({
3547
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions`,
3548
+ method: 'get',
3549
+ params,
3550
+ })
3551
+ }
3552
+
3553
+ postFinanceTaxCodesByParentIdProductTypeExemptions(
3554
+ parentId: number,
3555
+ productTypeExemption: ProductTypeExemption,
3556
+ ): Promise<ProductTypeExemption> {
3557
+ return this.request({
3558
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions`,
3559
+ method: 'post',
3560
+ data: productTypeExemption,
3561
+ })
3562
+ }
3563
+
3564
+ getFinanceTaxCodesByParentIdProductTypeExemptionsById(
3565
+ id: number,
3566
+ parentId: number,
3567
+ params: CommonParameters = {},
3568
+ ): Promise<ProductTypeExemption> {
3569
+ return this.request({
3570
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions/${id}`,
3571
+ method: 'get',
3572
+ params,
3573
+ })
3574
+ }
3575
+
3576
+ deleteFinanceTaxCodesByParentIdProductTypeExemptionsById(
3577
+ id: number,
3578
+ parentId: number,
3579
+ ): Promise<NoContentResponse> {
3580
+ return this.request({
3581
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions/${id}`,
3582
+ method: 'delete',
3583
+ })
3584
+ }
3585
+
3586
+ putFinanceTaxCodesByParentIdProductTypeExemptionsById(
3587
+ id: number,
3588
+ parentId: number,
3589
+ productTypeExemption: ProductTypeExemption,
3590
+ ): Promise<ProductTypeExemption> {
3591
+ return this.request({
3592
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions/${id}`,
3593
+ method: 'put',
3594
+ data: productTypeExemption,
3595
+ })
3596
+ }
3597
+
3598
+ patchFinanceTaxCodesByParentIdProductTypeExemptionsById(
3599
+ id: number,
3600
+ parentId: number,
3601
+ patchOperations: Array<PatchOperation>,
3602
+ ): Promise<ProductTypeExemption> {
3603
+ return this.request({
3604
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions/${id}`,
3605
+ method: 'patch',
3606
+ data: patchOperations,
3607
+ })
3608
+ }
3609
+
3610
+ getFinanceTaxCodesByParentIdProductTypeExemptionsCount(
3611
+ parentId: number,
3612
+ params: CommonParameters = {},
3613
+ ): Promise<Count> {
3614
+ return this.request({
3615
+ path: `/finance/taxCodes/${parentId}/productTypeExemptions/count`,
3616
+ method: 'get',
3617
+ params,
3618
+ })
3619
+ }
3620
+
3621
+ getFinanceTaxCodesByParentIdTaxCodeLevels(
3622
+ parentId: number,
3623
+ params: CommonParameters = {},
3624
+ ): Promise<Array<TaxCodeLevel>> {
3625
+ return this.request({
3626
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels`,
3627
+ method: 'get',
3628
+ params,
3629
+ })
3630
+ }
3631
+
3632
+ postFinanceTaxCodesByParentIdTaxCodeLevels(
3633
+ parentId: number,
3634
+ taxCodeLevel: TaxCodeLevel,
3635
+ ): Promise<TaxCodeLevel> {
3636
+ return this.request({
3637
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels`,
3638
+ method: 'post',
3639
+ data: taxCodeLevel,
3640
+ })
3641
+ }
3642
+
3643
+ getFinanceTaxCodesByParentIdTaxCodeLevelsById(
3644
+ id: number,
3645
+ parentId: number,
3646
+ params: CommonParameters = {},
3647
+ ): Promise<TaxCodeLevel> {
3648
+ return this.request({
3649
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels/${id}`,
3650
+ method: 'get',
3651
+ params,
3652
+ })
3653
+ }
3654
+
3655
+ deleteFinanceTaxCodesByParentIdTaxCodeLevelsById(
3656
+ id: number,
3657
+ parentId: number,
3658
+ ): Promise<NoContentResponse> {
3659
+ return this.request({
3660
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels/${id}`,
3661
+ method: 'delete',
3662
+ })
3663
+ }
3664
+
3665
+ putFinanceTaxCodesByParentIdTaxCodeLevelsById(
3666
+ id: number,
3667
+ parentId: number,
3668
+ taxCodeLevel: TaxCodeLevel,
3669
+ ): Promise<TaxCodeLevel> {
3670
+ return this.request({
3671
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels/${id}`,
3672
+ method: 'put',
3673
+ data: taxCodeLevel,
3674
+ })
3675
+ }
3676
+
3677
+ patchFinanceTaxCodesByParentIdTaxCodeLevelsById(
3678
+ id: number,
3679
+ parentId: number,
3680
+ patchOperations: Array<PatchOperation>,
3681
+ ): Promise<TaxCodeLevel> {
3682
+ return this.request({
3683
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels/${id}`,
3684
+ method: 'patch',
3685
+ data: patchOperations,
3686
+ })
3687
+ }
3688
+
3689
+ getFinanceTaxCodesByParentIdTaxCodeLevelsCount(
3690
+ parentId: number,
3691
+ params: CommonParameters = {},
3692
+ ): Promise<Count> {
3693
+ return this.request({
3694
+ path: `/finance/taxCodes/${parentId}/taxCodeLevels/count`,
3695
+ method: 'get',
3696
+ params,
3697
+ })
3698
+ }
3699
+
3700
+ getFinanceTaxCodesByParentIdTaxCodeXRefs(
3701
+ parentId: number,
3702
+ params: CommonParameters = {},
3703
+ ): Promise<Array<TaxCodeXRef>> {
3704
+ return this.request({
3705
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs`,
3706
+ method: 'get',
3707
+ params,
3708
+ })
3709
+ }
3710
+
3711
+ postFinanceTaxCodesByParentIdTaxCodeXRefs(
3712
+ parentId: number,
3713
+ taxCodeXRef: TaxCodeXRef,
3714
+ ): Promise<TaxCodeXRef> {
3715
+ return this.request({
3716
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs`,
3717
+ method: 'post',
3718
+ data: taxCodeXRef,
3719
+ })
3720
+ }
3721
+
3722
+ getFinanceTaxCodesByParentIdTaxCodeXRefsById(
3723
+ id: number,
3724
+ parentId: number,
3725
+ params: CommonParameters = {},
3726
+ ): Promise<TaxCodeXRef> {
3727
+ return this.request({
3728
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs/${id}`,
3729
+ method: 'get',
3730
+ params,
3731
+ })
3732
+ }
3733
+
3734
+ deleteFinanceTaxCodesByParentIdTaxCodeXRefsById(
3735
+ id: number,
3736
+ parentId: number,
3737
+ ): Promise<NoContentResponse> {
3738
+ return this.request({
3739
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs/${id}`,
3740
+ method: 'delete',
3741
+ })
3742
+ }
3743
+
3744
+ putFinanceTaxCodesByParentIdTaxCodeXRefsById(
3745
+ id: number,
3746
+ parentId: number,
3747
+ taxCodeXRef: TaxCodeXRef,
3748
+ ): Promise<TaxCodeXRef> {
3749
+ return this.request({
3750
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs/${id}`,
3751
+ method: 'put',
3752
+ data: taxCodeXRef,
3753
+ })
3754
+ }
3755
+
3756
+ patchFinanceTaxCodesByParentIdTaxCodeXRefsById(
3757
+ id: number,
3758
+ parentId: number,
3759
+ patchOperations: Array<PatchOperation>,
3760
+ ): Promise<TaxCodeXRef> {
3761
+ return this.request({
3762
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs/${id}`,
3763
+ method: 'patch',
3764
+ data: patchOperations,
3765
+ })
3766
+ }
3767
+
3768
+ getFinanceTaxCodesByParentIdTaxCodeXRefsCount(
3769
+ parentId: number,
3770
+ params: CommonParameters = {},
3771
+ ): Promise<Count> {
3772
+ return this.request({
3773
+ path: `/finance/taxCodes/${parentId}/taxCodeXRefs/count`,
3774
+ method: 'get',
3775
+ params,
3776
+ })
3777
+ }
3778
+
3779
+ getFinanceTaxCodesByParentIdWorkRoleExemptions(
3780
+ parentId: number,
3781
+ params: CommonParameters = {},
3782
+ ): Promise<Array<WorkRoleExemption>> {
3783
+ return this.request({
3784
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions`,
3785
+ method: 'get',
3786
+ params,
3787
+ })
3788
+ }
3789
+
3790
+ postFinanceTaxCodesByParentIdWorkRoleExemptions(
3791
+ parentId: number,
3792
+ workRoleExemption: WorkRoleExemption,
3793
+ ): Promise<WorkRoleExemption> {
3794
+ return this.request({
3795
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions`,
3796
+ method: 'post',
3797
+ data: workRoleExemption,
3798
+ })
3799
+ }
3800
+
3801
+ getFinanceTaxCodesByParentIdWorkRoleExemptionsById(
3802
+ id: number,
3803
+ parentId: number,
3804
+ params: CommonParameters = {},
3805
+ ): Promise<WorkRoleExemption> {
3806
+ return this.request({
3807
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions/${id}`,
3808
+ method: 'get',
3809
+ params,
3810
+ })
3811
+ }
3812
+
3813
+ deleteFinanceTaxCodesByParentIdWorkRoleExemptionsById(
3814
+ id: number,
3815
+ parentId: number,
3816
+ ): Promise<NoContentResponse> {
3817
+ return this.request({
3818
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions/${id}`,
3819
+ method: 'delete',
3820
+ })
3821
+ }
3822
+
3823
+ putFinanceTaxCodesByParentIdWorkRoleExemptionsById(
3824
+ id: number,
3825
+ parentId: number,
3826
+ workRoleExemption: WorkRoleExemption,
3827
+ ): Promise<WorkRoleExemption> {
3828
+ return this.request({
3829
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions/${id}`,
3830
+ method: 'put',
3831
+ data: workRoleExemption,
3832
+ })
3833
+ }
3834
+
3835
+ patchFinanceTaxCodesByParentIdWorkRoleExemptionsById(
3836
+ id: number,
3837
+ parentId: number,
3838
+ patchOperations: Array<PatchOperation>,
3839
+ ): Promise<WorkRoleExemption> {
3840
+ return this.request({
3841
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions/${id}`,
3842
+ method: 'patch',
3843
+ data: patchOperations,
3844
+ })
3845
+ }
3846
+
3847
+ getFinanceTaxCodesByParentIdWorkRoleExemptionsCount(
3848
+ parentId: number,
3849
+ params: CommonParameters = {},
3850
+ ): Promise<Count> {
3851
+ return this.request({
3852
+ path: `/finance/taxCodes/${parentId}/workRoleExemptions/count`,
3853
+ method: 'get',
3854
+ params,
3855
+ })
3856
+ }
3857
+
3858
+ getFinanceTaxCodesCount(params: CommonParameters = {}): Promise<Count> {
3859
+ return this.request({
3860
+ path: `/finance/taxCodes/count`,
3861
+ method: 'get',
3862
+ params,
3863
+ })
3864
+ }
3865
+
3866
+ getFinanceTaxCodesInfo(params: CommonParameters = {}): Promise<Array<TaxCodeInfo>> {
3867
+ return this.request({
3868
+ path: `/finance/taxCodes/info`,
3869
+ method: 'get',
3870
+ params,
3871
+ })
3872
+ }
3873
+
3874
+ getFinanceTaxCodesInfoCount(params: CommonParameters = {}): Promise<Count> {
3875
+ return this.request({
3876
+ path: `/finance/taxCodes/info/count`,
3877
+ method: 'get',
3878
+ params,
3879
+ })
3880
+ }
3881
+
3882
+ getFinanceTaxIntegrations(params: CommonParameters = {}): Promise<Array<TaxIntegration>> {
3883
+ return this.request({
3884
+ path: `/finance/taxIntegrations`,
3885
+ method: 'get',
3886
+ params,
3887
+ })
3888
+ }
3889
+
3890
+ getFinanceTaxIntegrationsById(
3891
+ id: number,
3892
+ params: CommonParameters = {},
3893
+ ): Promise<TaxIntegration> {
3894
+ return this.request({
3895
+ path: `/finance/taxIntegrations/${id}`,
3896
+ method: 'get',
3897
+ params,
3898
+ })
3899
+ }
3900
+
3901
+ putFinanceTaxIntegrationsById(
3902
+ id: number,
3903
+ taxIntegration: TaxIntegration,
3904
+ ): Promise<TaxIntegration> {
3905
+ return this.request({
3906
+ path: `/finance/taxIntegrations/${id}`,
3907
+ method: 'put',
3908
+ data: taxIntegration,
3909
+ })
3910
+ }
3911
+
3912
+ patchFinanceTaxIntegrationsById(
3913
+ id: number,
3914
+ patchOperations: Array<PatchOperation>,
3915
+ ): Promise<TaxIntegration> {
3916
+ return this.request({
3917
+ path: `/finance/taxIntegrations/${id}`,
3918
+ method: 'patch',
3919
+ data: patchOperations,
3920
+ })
3921
+ }
3922
+
3923
+ getFinanceTaxIntegrationsCount(params: CommonParameters = {}): Promise<Count> {
3924
+ return this.request({
3925
+ path: `/finance/taxIntegrations/count`,
3926
+ method: 'get',
3927
+ params,
3928
+ })
3929
+ }
3930
+ }