connectwise-rest 0.23.3 → 1.0.0

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