tripletex_api3 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1170) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +712 -0
  5. data/Rakefile +8 -0
  6. data/docs/AbstractDTO.md +9 -0
  7. data/docs/AccommodationAllowance.md +20 -0
  8. data/docs/Account.md +29 -0
  9. data/docs/AccountingPeriod.md +16 -0
  10. data/docs/Activity.md +18 -0
  11. data/docs/ActivityApi.md +211 -0
  12. data/docs/Address.md +18 -0
  13. data/docs/AddressApi.md +197 -0
  14. data/docs/AltinnCompanyModule.md +13 -0
  15. data/docs/AnnualAccount.md +14 -0
  16. data/docs/ApiConsumer.md +13 -0
  17. data/docs/ApiError.md +14 -0
  18. data/docs/ApiValidationMessage.md +9 -0
  19. data/docs/AppSpecific.md +14 -0
  20. data/docs/Bank.md +14 -0
  21. data/docs/BankApi.md +73 -0
  22. data/docs/BankReconciliation.md +20 -0
  23. data/docs/BankReconciliationAdjustment.md +13 -0
  24. data/docs/BankReconciliationMatch.md +15 -0
  25. data/docs/BankReconciliationPaymentType.md +15 -0
  26. data/docs/BankStatement.md +16 -0
  27. data/docs/BankTransaction.md +15 -0
  28. data/docs/BankreconciliationApi.md +474 -0
  29. data/docs/BankreconciliationmatchApi.md +351 -0
  30. data/docs/BankreconciliationpaymentTypeApi.md +131 -0
  31. data/docs/BankstatementApi.md +243 -0
  32. data/docs/BankstatementtransactionApi.md +188 -0
  33. data/docs/Banner.md +18 -0
  34. data/docs/CSVRecord.md +10 -0
  35. data/docs/Change.md +10 -0
  36. data/docs/CloseGroup.md +13 -0
  37. data/docs/Company.md +21 -0
  38. data/docs/CompanyApi.md +243 -0
  39. data/docs/CompanyAutoCompleteDTO.md +23 -0
  40. data/docs/CompanyHoliday.md +16 -0
  41. data/docs/CompanyaltinnApi.md +118 -0
  42. data/docs/ConsumerToken.md +14 -0
  43. data/docs/Contact.md +16 -0
  44. data/docs/ContactApi.md +250 -0
  45. data/docs/Cost.md +27 -0
  46. data/docs/Country.md +15 -0
  47. data/docs/CountryApi.md +131 -0
  48. data/docs/CrmprospectApi.md +155 -0
  49. data/docs/Currency.md +13 -0
  50. data/docs/CurrencyApi.md +131 -0
  51. data/docs/Customer.md +32 -0
  52. data/docs/CustomerApi.md +364 -0
  53. data/docs/CustomerCategory.md +15 -0
  54. data/docs/CustomerTripletexAccount.md +21 -0
  55. data/docs/CustomercategoryApi.md +250 -0
  56. data/docs/Department.md +14 -0
  57. data/docs/DepartmentApi.md +358 -0
  58. data/docs/Division.md +16 -0
  59. data/docs/DivisionApi.md +292 -0
  60. data/docs/Document.md +13 -0
  61. data/docs/DocumentApi.md +120 -0
  62. data/docs/Employee.md +29 -0
  63. data/docs/EmployeeApi.md +311 -0
  64. data/docs/EmployeeToken.md +15 -0
  65. data/docs/EmployeeemploymentApi.md +242 -0
  66. data/docs/EmployeeemploymentdetailsApi.md +242 -0
  67. data/docs/EmployeeemploymentemploymentTypeApi.md +254 -0
  68. data/docs/EmployeeemploymentleaveOfAbsenceApi.md +234 -0
  69. data/docs/EmployeeemploymentleaveOfAbsenceTypeApi.md +69 -0
  70. data/docs/EmployeeemploymentoccupationCodeApi.md +73 -0
  71. data/docs/EmployeeemploymentremunerationTypeApi.md +69 -0
  72. data/docs/EmployeeemploymentworkingHoursSchemeApi.md +69 -0
  73. data/docs/EmployeeentitlementApi.md +313 -0
  74. data/docs/EmployeenextOfKinApi.md +242 -0
  75. data/docs/EmployeestandardTimeApi.md +242 -0
  76. data/docs/Employment.md +18 -0
  77. data/docs/EmploymentDetails.md +23 -0
  78. data/docs/EmploymentType.md +14 -0
  79. data/docs/Entitlement.md +15 -0
  80. data/docs/EventApi.md +63 -0
  81. data/docs/EventInfoDescription.md +9 -0
  82. data/docs/EventsubscriptionApi.md +293 -0
  83. data/docs/ExternalProduct.md +25 -0
  84. data/docs/ImportConfigDTO.md +10 -0
  85. data/docs/ImportReportDTO.md +22 -0
  86. data/docs/InternationalId.md +10 -0
  87. data/docs/Inventory.md +15 -0
  88. data/docs/InventoryApi.md +135 -0
  89. data/docs/Invoice.md +36 -0
  90. data/docs/InvoiceApi.md +518 -0
  91. data/docs/InvoicedetailsApi.md +135 -0
  92. data/docs/InvoicepaymentTypeApi.md +131 -0
  93. data/docs/Job.md +13 -0
  94. data/docs/JobDetailDTO.md +12 -0
  95. data/docs/LeaveOfAbsence.md +18 -0
  96. data/docs/LeaveOfAbsenceType.md +14 -0
  97. data/docs/LedgerAccount.md +16 -0
  98. data/docs/LedgerApi.md +169 -0
  99. data/docs/LedgeraccountApi.md +464 -0
  100. data/docs/LedgeraccountingPeriodApi.md +141 -0
  101. data/docs/LedgerannualAccountApi.md +133 -0
  102. data/docs/LedgercloseGroupApi.md +135 -0
  103. data/docs/LedgerpaymentTypeOutApi.md +409 -0
  104. data/docs/LedgerpostingApi.md +227 -0
  105. data/docs/LedgervatTypeApi.md +131 -0
  106. data/docs/LedgervoucherApi.md +850 -0
  107. data/docs/LedgervoucherTypeApi.md +129 -0
  108. data/docs/Link.md +10 -0
  109. data/docs/ListResponseAccommodationAllowance.md +12 -0
  110. data/docs/ListResponseAccount.md +12 -0
  111. data/docs/ListResponseAccountingPeriod.md +12 -0
  112. data/docs/ListResponseActivity.md +12 -0
  113. data/docs/ListResponseAddress.md +12 -0
  114. data/docs/ListResponseAnnualAccount.md +12 -0
  115. data/docs/ListResponseBank.md +12 -0
  116. data/docs/ListResponseBankReconciliation.md +12 -0
  117. data/docs/ListResponseBankReconciliationAdjustment.md +12 -0
  118. data/docs/ListResponseBankReconciliationMatch.md +12 -0
  119. data/docs/ListResponseBankReconciliationPaymentType.md +12 -0
  120. data/docs/ListResponseBankStatement.md +12 -0
  121. data/docs/ListResponseBankTransaction.md +12 -0
  122. data/docs/ListResponseBanner.md +12 -0
  123. data/docs/ListResponseCloseGroup.md +12 -0
  124. data/docs/ListResponseCompany.md +12 -0
  125. data/docs/ListResponseCompanyAutoCompleteDTO.md +12 -0
  126. data/docs/ListResponseCompanyHoliday.md +12 -0
  127. data/docs/ListResponseContact.md +12 -0
  128. data/docs/ListResponseCost.md +12 -0
  129. data/docs/ListResponseCountry.md +12 -0
  130. data/docs/ListResponseCurrency.md +12 -0
  131. data/docs/ListResponseCustomer.md +12 -0
  132. data/docs/ListResponseCustomerCategory.md +12 -0
  133. data/docs/ListResponseDepartment.md +12 -0
  134. data/docs/ListResponseDivision.md +12 -0
  135. data/docs/ListResponseEmployee.md +12 -0
  136. data/docs/ListResponseEmployment.md +12 -0
  137. data/docs/ListResponseEmploymentDetails.md +12 -0
  138. data/docs/ListResponseEmploymentType.md +12 -0
  139. data/docs/ListResponseEntitlement.md +12 -0
  140. data/docs/ListResponseExternalProduct.md +12 -0
  141. data/docs/ListResponseInventory.md +12 -0
  142. data/docs/ListResponseInvoice.md +12 -0
  143. data/docs/ListResponseLeaveOfAbsence.md +12 -0
  144. data/docs/ListResponseLeaveOfAbsenceType.md +12 -0
  145. data/docs/ListResponseLedgerAccount.md +12 -0
  146. data/docs/ListResponseMileageAllowance.md +12 -0
  147. data/docs/ListResponseMunicipality.md +12 -0
  148. data/docs/ListResponseNextOfKin.md +12 -0
  149. data/docs/ListResponseNotification.md +12 -0
  150. data/docs/ListResponseOccupationCode.md +12 -0
  151. data/docs/ListResponseOrder.md +12 -0
  152. data/docs/ListResponseOrderLine.md +12 -0
  153. data/docs/ListResponseOrderOffer.md +12 -0
  154. data/docs/ListResponsePassenger.md +12 -0
  155. data/docs/ListResponsePaymentType.md +12 -0
  156. data/docs/ListResponsePaymentTypeOut.md +12 -0
  157. data/docs/ListResponsePayslip.md +12 -0
  158. data/docs/ListResponsePerDiemCompensation.md +12 -0
  159. data/docs/ListResponsePersonAutoCompleteDTO.md +12 -0
  160. data/docs/ListResponsePosting.md +12 -0
  161. data/docs/ListResponseProduct.md +12 -0
  162. data/docs/ListResponseProductUnit.md +12 -0
  163. data/docs/ListResponseProject.md +12 -0
  164. data/docs/ListResponseProjectCategory.md +12 -0
  165. data/docs/ListResponseProjectInvoiceDetails.md +12 -0
  166. data/docs/ListResponseProjectOrderLine.md +12 -0
  167. data/docs/ListResponseProjectParticipant.md +12 -0
  168. data/docs/ListResponseProspect.md +12 -0
  169. data/docs/ListResponseReminder.md +12 -0
  170. data/docs/ListResponseRemunerationType.md +12 -0
  171. data/docs/ListResponseSalarySpecification.md +12 -0
  172. data/docs/ListResponseSalaryTransaction.md +12 -0
  173. data/docs/ListResponseSalaryType.md +12 -0
  174. data/docs/ListResponseSearchCompletionDTO.md +12 -0
  175. data/docs/ListResponseStandardTime.md +12 -0
  176. data/docs/ListResponseSubscription.md +12 -0
  177. data/docs/ListResponseSupplier.md +12 -0
  178. data/docs/ListResponseSupplierBalance.md +12 -0
  179. data/docs/ListResponseTimeClock.md +12 -0
  180. data/docs/ListResponseTimesheetEntry.md +12 -0
  181. data/docs/ListResponseTravelCostCategory.md +12 -0
  182. data/docs/ListResponseTravelExpense.md +12 -0
  183. data/docs/ListResponseTravelExpenseRate.md +12 -0
  184. data/docs/ListResponseTravelExpenseRateCategory.md +12 -0
  185. data/docs/ListResponseTravelExpenseRateCategoryGroup.md +12 -0
  186. data/docs/ListResponseTravelPaymentType.md +12 -0
  187. data/docs/ListResponseVatType.md +12 -0
  188. data/docs/ListResponseVoucher.md +12 -0
  189. data/docs/ListResponseVoucherType.md +12 -0
  190. data/docs/ListResponseWeek.md +12 -0
  191. data/docs/ListResponseWeeklyStatus.md +12 -0
  192. data/docs/ListResponseWorkingHoursScheme.md +12 -0
  193. data/docs/LoggedInUserInfoDTO.md +12 -0
  194. data/docs/MaritimeEmployment.md +10 -0
  195. data/docs/MaventaEventDataDTO.md +13 -0
  196. data/docs/MaventaStatusDTO.md +11 -0
  197. data/docs/MileageAllowance.md +22 -0
  198. data/docs/MobileAppLogin.md +11 -0
  199. data/docs/Modules.md +20 -0
  200. data/docs/MonthlyStatus.md +21 -0
  201. data/docs/Municipality.md +14 -0
  202. data/docs/MunicipalityApi.md +69 -0
  203. data/docs/NextOfKin.md +16 -0
  204. data/docs/Notification.md +16 -0
  205. data/docs/OccupationCode.md +13 -0
  206. data/docs/Order.md +44 -0
  207. data/docs/OrderApi.md +319 -0
  208. data/docs/OrderLine.md +28 -0
  209. data/docs/OrderOffer.md +15 -0
  210. data/docs/OrderorderlineApi.md +229 -0
  211. data/docs/Passenger.md +13 -0
  212. data/docs/PaymentType.md +17 -0
  213. data/docs/PaymentTypeOut.md +21 -0
  214. data/docs/Payslip.md +21 -0
  215. data/docs/PerDiemCompensation.md +24 -0
  216. data/docs/PersonAutoCompleteDTO.md +24 -0
  217. data/docs/Posting.md +32 -0
  218. data/docs/Product.md +29 -0
  219. data/docs/ProductApi.md +272 -0
  220. data/docs/ProductUnit.md +14 -0
  221. data/docs/ProductexternalApi.md +139 -0
  222. data/docs/ProductunitApi.md +135 -0
  223. data/docs/Project.md +32 -0
  224. data/docs/ProjectApi.md +603 -0
  225. data/docs/ProjectCategory.md +14 -0
  226. data/docs/ProjectInvoiceDetails.md +29 -0
  227. data/docs/ProjectOrderLine.md +26 -0
  228. data/docs/ProjectParticipant.md +14 -0
  229. data/docs/ProjectcategoryApi.md +248 -0
  230. data/docs/ProjectorderlineApi.md +287 -0
  231. data/docs/ProjectparticipantApi.md +287 -0
  232. data/docs/Prospect.md +28 -0
  233. data/docs/Reminder.md +28 -0
  234. data/docs/ReminderApi.md +143 -0
  235. data/docs/RemunerationType.md +14 -0
  236. data/docs/ResponseWrapperAccommodationAllowance.md +8 -0
  237. data/docs/ResponseWrapperAccount.md +8 -0
  238. data/docs/ResponseWrapperAccountingPeriod.md +8 -0
  239. data/docs/ResponseWrapperActivity.md +8 -0
  240. data/docs/ResponseWrapperAddress.md +8 -0
  241. data/docs/ResponseWrapperAltinnCompanyModule.md +8 -0
  242. data/docs/ResponseWrapperAnnualAccount.md +8 -0
  243. data/docs/ResponseWrapperApiConsumer.md +8 -0
  244. data/docs/ResponseWrapperAppSpecific.md +8 -0
  245. data/docs/ResponseWrapperBankReconciliation.md +8 -0
  246. data/docs/ResponseWrapperBankReconciliationMatch.md +8 -0
  247. data/docs/ResponseWrapperBankReconciliationPaymentType.md +8 -0
  248. data/docs/ResponseWrapperBankStatement.md +8 -0
  249. data/docs/ResponseWrapperBankTransaction.md +8 -0
  250. data/docs/ResponseWrapperBanner.md +8 -0
  251. data/docs/ResponseWrapperBoolean.md +8 -0
  252. data/docs/ResponseWrapperCloseGroup.md +8 -0
  253. data/docs/ResponseWrapperCompany.md +8 -0
  254. data/docs/ResponseWrapperCompanyHoliday.md +8 -0
  255. data/docs/ResponseWrapperConsumerToken.md +8 -0
  256. data/docs/ResponseWrapperContact.md +8 -0
  257. data/docs/ResponseWrapperCost.md +8 -0
  258. data/docs/ResponseWrapperCountry.md +8 -0
  259. data/docs/ResponseWrapperCurrency.md +8 -0
  260. data/docs/ResponseWrapperCustomer.md +8 -0
  261. data/docs/ResponseWrapperCustomerCategory.md +8 -0
  262. data/docs/ResponseWrapperDepartment.md +8 -0
  263. data/docs/ResponseWrapperDivision.md +8 -0
  264. data/docs/ResponseWrapperDocument.md +8 -0
  265. data/docs/ResponseWrapperDouble.md +8 -0
  266. data/docs/ResponseWrapperEmployee.md +8 -0
  267. data/docs/ResponseWrapperEmployeeToken.md +8 -0
  268. data/docs/ResponseWrapperEmployment.md +8 -0
  269. data/docs/ResponseWrapperEmploymentDetails.md +8 -0
  270. data/docs/ResponseWrapperEntitlement.md +8 -0
  271. data/docs/ResponseWrapperExternalProduct.md +8 -0
  272. data/docs/ResponseWrapperInteger.md +8 -0
  273. data/docs/ResponseWrapperInventory.md +8 -0
  274. data/docs/ResponseWrapperInvoice.md +8 -0
  275. data/docs/ResponseWrapperLeaveOfAbsence.md +8 -0
  276. data/docs/ResponseWrapperListJob.md +8 -0
  277. data/docs/ResponseWrapperLoggedInUserInfoDTO.md +8 -0
  278. data/docs/ResponseWrapperMapStringEventInfoDescription.md +8 -0
  279. data/docs/ResponseWrapperMileageAllowance.md +8 -0
  280. data/docs/ResponseWrapperModules.md +8 -0
  281. data/docs/ResponseWrapperMonthlyStatus.md +8 -0
  282. data/docs/ResponseWrapperNextOfKin.md +8 -0
  283. data/docs/ResponseWrapperNotification.md +8 -0
  284. data/docs/ResponseWrapperObject.md +8 -0
  285. data/docs/ResponseWrapperOrder.md +8 -0
  286. data/docs/ResponseWrapperOrderLine.md +8 -0
  287. data/docs/ResponseWrapperOrderOffer.md +8 -0
  288. data/docs/ResponseWrapperPassenger.md +8 -0
  289. data/docs/ResponseWrapperPaymentType.md +8 -0
  290. data/docs/ResponseWrapperPaymentTypeOut.md +8 -0
  291. data/docs/ResponseWrapperPayslip.md +8 -0
  292. data/docs/ResponseWrapperPerDiemCompensation.md +8 -0
  293. data/docs/ResponseWrapperPosting.md +8 -0
  294. data/docs/ResponseWrapperProduct.md +8 -0
  295. data/docs/ResponseWrapperProductUnit.md +8 -0
  296. data/docs/ResponseWrapperProject.md +8 -0
  297. data/docs/ResponseWrapperProjectCategory.md +8 -0
  298. data/docs/ResponseWrapperProjectInvoiceDetails.md +8 -0
  299. data/docs/ResponseWrapperProjectOrderLine.md +8 -0
  300. data/docs/ResponseWrapperProjectParticipant.md +8 -0
  301. data/docs/ResponseWrapperProspect.md +8 -0
  302. data/docs/ResponseWrapperReminder.md +8 -0
  303. data/docs/ResponseWrapperSalarySettings.md +8 -0
  304. data/docs/ResponseWrapperSalarySpecification.md +8 -0
  305. data/docs/ResponseWrapperSalaryTransaction.md +8 -0
  306. data/docs/ResponseWrapperSalaryType.md +8 -0
  307. data/docs/ResponseWrapperSessionToken.md +8 -0
  308. data/docs/ResponseWrapperStandardTime.md +8 -0
  309. data/docs/ResponseWrapperString.md +8 -0
  310. data/docs/ResponseWrapperSubscription.md +8 -0
  311. data/docs/ResponseWrapperSupplier.md +8 -0
  312. data/docs/ResponseWrapperSystemMessage.md +8 -0
  313. data/docs/ResponseWrapperTimeClock.md +8 -0
  314. data/docs/ResponseWrapperTimesheetEntry.md +8 -0
  315. data/docs/ResponseWrapperTimesheetSettings.md +8 -0
  316. data/docs/ResponseWrapperTravelCostCategory.md +8 -0
  317. data/docs/ResponseWrapperTravelExpense.md +8 -0
  318. data/docs/ResponseWrapperTravelExpenseRate.md +8 -0
  319. data/docs/ResponseWrapperTravelExpenseRateCategory.md +8 -0
  320. data/docs/ResponseWrapperTravelExpenseRateCategoryGroup.md +8 -0
  321. data/docs/ResponseWrapperTravelPaymentType.md +8 -0
  322. data/docs/ResponseWrapperTripDTO.md +8 -0
  323. data/docs/ResponseWrapperTripletexAccountReturn.md +8 -0
  324. data/docs/ResponseWrapperUnreadCountDTO.md +8 -0
  325. data/docs/ResponseWrapperVatType.md +8 -0
  326. data/docs/ResponseWrapperVoucher.md +8 -0
  327. data/docs/ResponseWrapperVoucherType.md +8 -0
  328. data/docs/ResponseWrapperWeek.md +8 -0
  329. data/docs/ResponseWrapperWeeklyStatus.md +8 -0
  330. data/docs/Result.md +17 -0
  331. data/docs/SalarySettings.md +13 -0
  332. data/docs/SalarySpecification.md +22 -0
  333. data/docs/SalaryTransaction.md +16 -0
  334. data/docs/SalaryType.md +14 -0
  335. data/docs/SalarypayslipApi.md +203 -0
  336. data/docs/SalarysettingsApi.md +118 -0
  337. data/docs/SalarysettingsholidayApi.md +345 -0
  338. data/docs/SalarytransactionApi.md +176 -0
  339. data/docs/SalarytypeApi.md +135 -0
  340. data/docs/SearchCompletionDTO.md +18 -0
  341. data/docs/SessionToken.md +16 -0
  342. data/docs/SmartScanWebhook.md +10 -0
  343. data/docs/StandardTime.md +14 -0
  344. data/docs/Subscription.md +15 -0
  345. data/docs/Supplier.md +33 -0
  346. data/docs/SupplierApi.md +370 -0
  347. data/docs/SupplierBalance.md +13 -0
  348. data/docs/SystemMessage.md +8 -0
  349. data/docs/TimeClock.md +19 -0
  350. data/docs/TimesheetEntry.md +24 -0
  351. data/docs/TimesheetEntrySearchResponse.md +13 -0
  352. data/docs/TimesheetSettings.md +13 -0
  353. data/docs/TimesheetentryApi.md +613 -0
  354. data/docs/TimesheetsettingsApi.md +63 -0
  355. data/docs/TimesheettimeClockApi.md +377 -0
  356. data/docs/TimesheetweekApi.md +313 -0
  357. data/docs/TokenconsumerApi.md +66 -0
  358. data/docs/TokenemployeeApi.md +74 -0
  359. data/docs/TokensessionApi.md +170 -0
  360. data/docs/TravelCostCategory.md +18 -0
  361. data/docs/TravelDetails.md +18 -0
  362. data/docs/TravelExpense.md +47 -0
  363. data/docs/TravelExpenseApi.md +749 -0
  364. data/docs/TravelExpenseRate.md +17 -0
  365. data/docs/TravelExpenseRateCategory.md +23 -0
  366. data/docs/TravelExpenseRateCategoryGroup.md +15 -0
  367. data/docs/TravelExpenseaccommodationAllowanceApi.md +315 -0
  368. data/docs/TravelExpensecostApi.md +315 -0
  369. data/docs/TravelExpensecostCategoryApi.md +131 -0
  370. data/docs/TravelExpensemileageAllowanceApi.md +321 -0
  371. data/docs/TravelExpensepassengerApi.md +297 -0
  372. data/docs/TravelExpensepaymentTypeApi.md +131 -0
  373. data/docs/TravelExpenseperDiemCompensationApi.md +323 -0
  374. data/docs/TravelExpenserateApi.md +147 -0
  375. data/docs/TravelExpenserateCategoryApi.md +151 -0
  376. data/docs/TravelExpenserateCategoryGroupApi.md +135 -0
  377. data/docs/TravelPaymentType.md +16 -0
  378. data/docs/TriggerDTO.md +13 -0
  379. data/docs/TripDTO.md +10 -0
  380. data/docs/TripletexAccount.md +22 -0
  381. data/docs/TripletexAccountReturn.md +12 -0
  382. data/docs/UnreadCountDTO.md +9 -0
  383. data/docs/VNTCStatusDTO.md +13 -0
  384. data/docs/VatType.md +14 -0
  385. data/docs/Voucher.md +21 -0
  386. data/docs/VoucherSearchResponse.md +13 -0
  387. data/docs/VoucherType.md +12 -0
  388. data/docs/Week.md +19 -0
  389. data/docs/WeeklyStatus.md +18 -0
  390. data/docs/WorkingHoursScheme.md +14 -0
  391. data/git_push.sh +55 -0
  392. data/lib/tripletex_api.rb +421 -0
  393. data/lib/tripletex_api/api/activity_api.rb +228 -0
  394. data/lib/tripletex_api/api/address_api.rb +207 -0
  395. data/lib/tripletex_api/api/bank_api.rb +86 -0
  396. data/lib/tripletex_api/api/bankreconciliation_api.rb +469 -0
  397. data/lib/tripletex_api/api/bankreconciliationmatch_api.rb +346 -0
  398. data/lib/tripletex_api/api/bankreconciliationpayment_type_api.rb +140 -0
  399. data/lib/tripletex_api/api/bankstatement_api.rb +255 -0
  400. data/lib/tripletex_api/api/bankstatementtransaction_api.rb +197 -0
  401. data/lib/tripletex_api/api/company_api.rb +240 -0
  402. data/lib/tripletex_api/api/companyaltinn_api.rb +120 -0
  403. data/lib/tripletex_api/api/contact_api.rb +253 -0
  404. data/lib/tripletex_api/api/country_api.rb +140 -0
  405. data/lib/tripletex_api/api/crmprospect_api.rb +176 -0
  406. data/lib/tripletex_api/api/currency_api.rb +140 -0
  407. data/lib/tripletex_api/api/customer_api.rb +357 -0
  408. data/lib/tripletex_api/api/customercategory_api.rb +253 -0
  409. data/lib/tripletex_api/api/department_api.rb +348 -0
  410. data/lib/tripletex_api/api/division_api.rb +282 -0
  411. data/lib/tripletex_api/api/document_api.rb +130 -0
  412. data/lib/tripletex_api/api/employee_api.rb +311 -0
  413. data/lib/tripletex_api/api/employeeemployment_api.rb +241 -0
  414. data/lib/tripletex_api/api/employeeemploymentdetails_api.rb +241 -0
  415. data/lib/tripletex_api/api/employeeemploymentemployment_type_api.rb +257 -0
  416. data/lib/tripletex_api/api/employeeemploymentleave_of_absence_api.rb +230 -0
  417. data/lib/tripletex_api/api/employeeemploymentleave_of_absence_type_api.rb +80 -0
  418. data/lib/tripletex_api/api/employeeemploymentoccupation_code_api.rb +86 -0
  419. data/lib/tripletex_api/api/employeeemploymentremuneration_type_api.rb +80 -0
  420. data/lib/tripletex_api/api/employeeemploymentworking_hours_scheme_api.rb +80 -0
  421. data/lib/tripletex_api/api/employeeentitlement_api.rb +334 -0
  422. data/lib/tripletex_api/api/employeenext_of_kin_api.rb +241 -0
  423. data/lib/tripletex_api/api/employeestandard_time_api.rb +241 -0
  424. data/lib/tripletex_api/api/event_api.rb +71 -0
  425. data/lib/tripletex_api/api/eventsubscription_api.rb +286 -0
  426. data/lib/tripletex_api/api/inventory_api.rb +146 -0
  427. data/lib/tripletex_api/api/invoice_api.rb +565 -0
  428. data/lib/tripletex_api/api/invoicedetails_api.rb +151 -0
  429. data/lib/tripletex_api/api/invoicepayment_type_api.rb +140 -0
  430. data/lib/tripletex_api/api/ledger_api.rb +203 -0
  431. data/lib/tripletex_api/api/ledgeraccount_api.rb +449 -0
  432. data/lib/tripletex_api/api/ledgeraccounting_period_api.rb +155 -0
  433. data/lib/tripletex_api/api/ledgerannual_account_api.rb +143 -0
  434. data/lib/tripletex_api/api/ledgerclose_group_api.rb +151 -0
  435. data/lib/tripletex_api/api/ledgerpayment_type_out_api.rb +395 -0
  436. data/lib/tripletex_api/api/ledgerposting_api.rb +257 -0
  437. data/lib/tripletex_api/api/ledgervat_type_api.rb +140 -0
  438. data/lib/tripletex_api/api/ledgervoucher_api.rb +873 -0
  439. data/lib/tripletex_api/api/ledgervoucher_type_api.rb +137 -0
  440. data/lib/tripletex_api/api/municipality_api.rb +80 -0
  441. data/lib/tripletex_api/api/order_api.rb +331 -0
  442. data/lib/tripletex_api/api/orderorderline_api.rb +225 -0
  443. data/lib/tripletex_api/api/product_api.rb +286 -0
  444. data/lib/tripletex_api/api/productexternal_api.rb +155 -0
  445. data/lib/tripletex_api/api/productunit_api.rb +146 -0
  446. data/lib/tripletex_api/api/project_api.rb +590 -0
  447. data/lib/tripletex_api/api/projectcategory_api.rb +250 -0
  448. data/lib/tripletex_api/api/projectorderline_api.rb +280 -0
  449. data/lib/tripletex_api/api/projectparticipant_api.rb +281 -0
  450. data/lib/tripletex_api/api/reminder_api.rb +163 -0
  451. data/lib/tripletex_api/api/salarypayslip_api.rb +220 -0
  452. data/lib/tripletex_api/api/salarysettings_api.rb +120 -0
  453. data/lib/tripletex_api/api/salarysettingsholiday_api.rb +333 -0
  454. data/lib/tripletex_api/api/salarytransaction_api.rb +179 -0
  455. data/lib/tripletex_api/api/salarytype_api.rb +146 -0
  456. data/lib/tripletex_api/api/supplier_api.rb +366 -0
  457. data/lib/tripletex_api/api/timesheetentry_api.rb +602 -0
  458. data/lib/tripletex_api/api/timesheetsettings_api.rb +71 -0
  459. data/lib/tripletex_api/api/timesheettime_clock_api.rb +378 -0
  460. data/lib/tripletex_api/api/timesheetweek_api.rb +308 -0
  461. data/lib/tripletex_api/api/tokenconsumer_api.rb +78 -0
  462. data/lib/tripletex_api/api/tokenemployee_api.rb +103 -0
  463. data/lib/tripletex_api/api/tokensession_api.rb +187 -0
  464. data/lib/tripletex_api/api/travel_expense_api.rb +727 -0
  465. data/lib/tripletex_api/api/travel_expenseaccommodation_allowance_api.rb +321 -0
  466. data/lib/tripletex_api/api/travel_expensecost_api.rb +321 -0
  467. data/lib/tripletex_api/api/travel_expensecost_category_api.rb +140 -0
  468. data/lib/tripletex_api/api/travel_expensemileage_allowance_api.rb +330 -0
  469. data/lib/tripletex_api/api/travel_expensepassenger_api.rb +294 -0
  470. data/lib/tripletex_api/api/travel_expensepayment_type_api.rb +140 -0
  471. data/lib/tripletex_api/api/travel_expenseper_diem_compensation_api.rb +336 -0
  472. data/lib/tripletex_api/api/travel_expenserate_api.rb +167 -0
  473. data/lib/tripletex_api/api/travel_expenserate_category_api.rb +173 -0
  474. data/lib/tripletex_api/api/travel_expenserate_category_group_api.rb +146 -0
  475. data/lib/tripletex_api/api_client.rb +390 -0
  476. data/lib/tripletex_api/api_error.rb +38 -0
  477. data/lib/tripletex_api/configuration.rb +209 -0
  478. data/lib/tripletex_api/models/abstract_dto.rb +197 -0
  479. data/lib/tripletex_api/models/accommodation_allowance.rb +322 -0
  480. data/lib/tripletex_api/models/account.rb +545 -0
  481. data/lib/tripletex_api/models/accounting_period.rb +305 -0
  482. data/lib/tripletex_api/models/activity.rb +320 -0
  483. data/lib/tripletex_api/models/address.rb +396 -0
  484. data/lib/tripletex_api/models/altinn_company_module.rb +273 -0
  485. data/lib/tripletex_api/models/annual_account.rb +244 -0
  486. data/lib/tripletex_api/models/api_consumer.rb +292 -0
  487. data/lib/tripletex_api/models/api_error.rb +244 -0
  488. data/lib/tripletex_api/models/api_validation_message.rb +197 -0
  489. data/lib/tripletex_api/models/app_specific.rb +256 -0
  490. data/lib/tripletex_api/models/bank.rb +288 -0
  491. data/lib/tripletex_api/models/bank_reconciliation.rb +310 -0
  492. data/lib/tripletex_api/models/bank_reconciliation_adjustment.rb +258 -0
  493. data/lib/tripletex_api/models/bank_reconciliation_match.rb +298 -0
  494. data/lib/tripletex_api/models/bank_reconciliation_payment_type.rb +274 -0
  495. data/lib/tripletex_api/models/bank_statement.rb +269 -0
  496. data/lib/tripletex_api/models/bank_transaction.rb +269 -0
  497. data/lib/tripletex_api/models/banner.rb +374 -0
  498. data/lib/tripletex_api/models/change.rb +239 -0
  499. data/lib/tripletex_api/models/close_group.rb +237 -0
  500. data/lib/tripletex_api/models/company.rb +454 -0
  501. data/lib/tripletex_api/models/company_auto_complete_dto.rb +346 -0
  502. data/lib/tripletex_api/models/company_holiday.rb +264 -0
  503. data/lib/tripletex_api/models/consumer_token.rb +260 -0
  504. data/lib/tripletex_api/models/contact.rb +369 -0
  505. data/lib/tripletex_api/models/cost.rb +401 -0
  506. data/lib/tripletex_api/models/country.rb +272 -0
  507. data/lib/tripletex_api/models/csv_record.rb +208 -0
  508. data/lib/tripletex_api/models/currency.rb +267 -0
  509. data/lib/tripletex_api/models/customer.rb +574 -0
  510. data/lib/tripletex_api/models/customer_category.rb +318 -0
  511. data/lib/tripletex_api/models/customer_tripletex_account.rb +429 -0
  512. data/lib/tripletex_api/models/department.rb +302 -0
  513. data/lib/tripletex_api/models/division.rb +311 -0
  514. data/lib/tripletex_api/models/document.rb +285 -0
  515. data/lib/tripletex_api/models/employee.rb +609 -0
  516. data/lib/tripletex_api/models/employee_token.rb +269 -0
  517. data/lib/tripletex_api/models/employment.rb +305 -0
  518. data/lib/tripletex_api/models/employment_details.rb +391 -0
  519. data/lib/tripletex_api/models/employment_type.rb +315 -0
  520. data/lib/tripletex_api/models/entitlement.rb +272 -0
  521. data/lib/tripletex_api/models/event_info_description.rb +197 -0
  522. data/lib/tripletex_api/models/external_product.rb +398 -0
  523. data/lib/tripletex_api/models/import_config_dto.rb +212 -0
  524. data/lib/tripletex_api/models/import_report_dto.rb +326 -0
  525. data/lib/tripletex_api/models/international_id.rb +256 -0
  526. data/lib/tripletex_api/models/inventory.rb +315 -0
  527. data/lib/tripletex_api/models/invoice.rb +552 -0
  528. data/lib/tripletex_api/models/job.rb +239 -0
  529. data/lib/tripletex_api/models/job_detail_dto.rb +226 -0
  530. data/lib/tripletex_api/models/leave_of_absence.rb +314 -0
  531. data/lib/tripletex_api/models/leave_of_absence_type.rb +315 -0
  532. data/lib/tripletex_api/models/ledger_account.rb +263 -0
  533. data/lib/tripletex_api/models/link.rb +239 -0
  534. data/lib/tripletex_api/models/list_response_accommodation_allowance.rb +228 -0
  535. data/lib/tripletex_api/models/list_response_account.rb +228 -0
  536. data/lib/tripletex_api/models/list_response_accounting_period.rb +228 -0
  537. data/lib/tripletex_api/models/list_response_activity.rb +228 -0
  538. data/lib/tripletex_api/models/list_response_address.rb +228 -0
  539. data/lib/tripletex_api/models/list_response_annual_account.rb +228 -0
  540. data/lib/tripletex_api/models/list_response_bank.rb +228 -0
  541. data/lib/tripletex_api/models/list_response_bank_reconciliation.rb +228 -0
  542. data/lib/tripletex_api/models/list_response_bank_reconciliation_adjustment.rb +228 -0
  543. data/lib/tripletex_api/models/list_response_bank_reconciliation_match.rb +228 -0
  544. data/lib/tripletex_api/models/list_response_bank_reconciliation_payment_type.rb +228 -0
  545. data/lib/tripletex_api/models/list_response_bank_statement.rb +228 -0
  546. data/lib/tripletex_api/models/list_response_bank_transaction.rb +228 -0
  547. data/lib/tripletex_api/models/list_response_banner.rb +228 -0
  548. data/lib/tripletex_api/models/list_response_close_group.rb +228 -0
  549. data/lib/tripletex_api/models/list_response_company.rb +228 -0
  550. data/lib/tripletex_api/models/list_response_company_auto_complete_dto.rb +228 -0
  551. data/lib/tripletex_api/models/list_response_company_holiday.rb +228 -0
  552. data/lib/tripletex_api/models/list_response_contact.rb +228 -0
  553. data/lib/tripletex_api/models/list_response_cost.rb +228 -0
  554. data/lib/tripletex_api/models/list_response_country.rb +228 -0
  555. data/lib/tripletex_api/models/list_response_currency.rb +228 -0
  556. data/lib/tripletex_api/models/list_response_customer.rb +228 -0
  557. data/lib/tripletex_api/models/list_response_customer_category.rb +228 -0
  558. data/lib/tripletex_api/models/list_response_department.rb +228 -0
  559. data/lib/tripletex_api/models/list_response_division.rb +228 -0
  560. data/lib/tripletex_api/models/list_response_employee.rb +228 -0
  561. data/lib/tripletex_api/models/list_response_employment.rb +228 -0
  562. data/lib/tripletex_api/models/list_response_employment_details.rb +228 -0
  563. data/lib/tripletex_api/models/list_response_employment_type.rb +228 -0
  564. data/lib/tripletex_api/models/list_response_entitlement.rb +228 -0
  565. data/lib/tripletex_api/models/list_response_external_product.rb +228 -0
  566. data/lib/tripletex_api/models/list_response_inventory.rb +228 -0
  567. data/lib/tripletex_api/models/list_response_invoice.rb +228 -0
  568. data/lib/tripletex_api/models/list_response_leave_of_absence.rb +228 -0
  569. data/lib/tripletex_api/models/list_response_leave_of_absence_type.rb +228 -0
  570. data/lib/tripletex_api/models/list_response_ledger_account.rb +228 -0
  571. data/lib/tripletex_api/models/list_response_mileage_allowance.rb +228 -0
  572. data/lib/tripletex_api/models/list_response_municipality.rb +228 -0
  573. data/lib/tripletex_api/models/list_response_next_of_kin.rb +228 -0
  574. data/lib/tripletex_api/models/list_response_notification.rb +228 -0
  575. data/lib/tripletex_api/models/list_response_occupation_code.rb +228 -0
  576. data/lib/tripletex_api/models/list_response_order.rb +228 -0
  577. data/lib/tripletex_api/models/list_response_order_line.rb +228 -0
  578. data/lib/tripletex_api/models/list_response_order_offer.rb +228 -0
  579. data/lib/tripletex_api/models/list_response_passenger.rb +228 -0
  580. data/lib/tripletex_api/models/list_response_payment_type.rb +228 -0
  581. data/lib/tripletex_api/models/list_response_payment_type_out.rb +228 -0
  582. data/lib/tripletex_api/models/list_response_payslip.rb +228 -0
  583. data/lib/tripletex_api/models/list_response_per_diem_compensation.rb +228 -0
  584. data/lib/tripletex_api/models/list_response_person_auto_complete_dto.rb +228 -0
  585. data/lib/tripletex_api/models/list_response_posting.rb +228 -0
  586. data/lib/tripletex_api/models/list_response_product.rb +228 -0
  587. data/lib/tripletex_api/models/list_response_product_unit.rb +228 -0
  588. data/lib/tripletex_api/models/list_response_project.rb +228 -0
  589. data/lib/tripletex_api/models/list_response_project_category.rb +228 -0
  590. data/lib/tripletex_api/models/list_response_project_invoice_details.rb +228 -0
  591. data/lib/tripletex_api/models/list_response_project_order_line.rb +228 -0
  592. data/lib/tripletex_api/models/list_response_project_participant.rb +228 -0
  593. data/lib/tripletex_api/models/list_response_prospect.rb +228 -0
  594. data/lib/tripletex_api/models/list_response_reminder.rb +228 -0
  595. data/lib/tripletex_api/models/list_response_remuneration_type.rb +228 -0
  596. data/lib/tripletex_api/models/list_response_salary_specification.rb +228 -0
  597. data/lib/tripletex_api/models/list_response_salary_transaction.rb +228 -0
  598. data/lib/tripletex_api/models/list_response_salary_type.rb +228 -0
  599. data/lib/tripletex_api/models/list_response_search_completion_dto.rb +228 -0
  600. data/lib/tripletex_api/models/list_response_standard_time.rb +228 -0
  601. data/lib/tripletex_api/models/list_response_subscription.rb +228 -0
  602. data/lib/tripletex_api/models/list_response_supplier.rb +228 -0
  603. data/lib/tripletex_api/models/list_response_supplier_balance.rb +228 -0
  604. data/lib/tripletex_api/models/list_response_time_clock.rb +228 -0
  605. data/lib/tripletex_api/models/list_response_timesheet_entry.rb +228 -0
  606. data/lib/tripletex_api/models/list_response_travel_cost_category.rb +228 -0
  607. data/lib/tripletex_api/models/list_response_travel_expense.rb +228 -0
  608. data/lib/tripletex_api/models/list_response_travel_expense_rate.rb +228 -0
  609. data/lib/tripletex_api/models/list_response_travel_expense_rate_category.rb +228 -0
  610. data/lib/tripletex_api/models/list_response_travel_expense_rate_category_group.rb +228 -0
  611. data/lib/tripletex_api/models/list_response_travel_payment_type.rb +228 -0
  612. data/lib/tripletex_api/models/list_response_vat_type.rb +228 -0
  613. data/lib/tripletex_api/models/list_response_voucher.rb +228 -0
  614. data/lib/tripletex_api/models/list_response_voucher_type.rb +228 -0
  615. data/lib/tripletex_api/models/list_response_week.rb +228 -0
  616. data/lib/tripletex_api/models/list_response_weekly_status.rb +228 -0
  617. data/lib/tripletex_api/models/list_response_working_hours_scheme.rb +228 -0
  618. data/lib/tripletex_api/models/logged_in_user_info_dto.rb +224 -0
  619. data/lib/tripletex_api/models/maritime_employment.rb +266 -0
  620. data/lib/tripletex_api/models/maventa_event_data_dto.rb +258 -0
  621. data/lib/tripletex_api/models/maventa_status_dto.rb +235 -0
  622. data/lib/tripletex_api/models/mileage_allowance.rb +336 -0
  623. data/lib/tripletex_api/models/mobile_app_login.rb +239 -0
  624. data/lib/tripletex_api/models/modules.rb +328 -0
  625. data/lib/tripletex_api/models/monthly_status.rb +316 -0
  626. data/lib/tripletex_api/models/municipality.rb +292 -0
  627. data/lib/tripletex_api/models/next_of_kin.rb +360 -0
  628. data/lib/tripletex_api/models/notification.rb +355 -0
  629. data/lib/tripletex_api/models/occupation_code.rb +267 -0
  630. data/lib/tripletex_api/models/order.rb +788 -0
  631. data/lib/tripletex_api/models/order_line.rb +385 -0
  632. data/lib/tripletex_api/models/order_offer.rb +270 -0
  633. data/lib/tripletex_api/models/passenger.rb +259 -0
  634. data/lib/tripletex_api/models/payment_type.rb +295 -0
  635. data/lib/tripletex_api/models/payment_type_out.rb +358 -0
  636. data/lib/tripletex_api/models/payslip.rb +332 -0
  637. data/lib/tripletex_api/models/per_diem_compensation.rb +398 -0
  638. data/lib/tripletex_api/models/person_auto_complete_dto.rb +357 -0
  639. data/lib/tripletex_api/models/posting.rb +440 -0
  640. data/lib/tripletex_api/models/product.rb +450 -0
  641. data/lib/tripletex_api/models/product_unit.rb +292 -0
  642. data/lib/tripletex_api/models/project.rb +528 -0
  643. data/lib/tripletex_api/models/project_category.rb +293 -0
  644. data/lib/tripletex_api/models/project_invoice_details.rb +413 -0
  645. data/lib/tripletex_api/models/project_order_line.rb +371 -0
  646. data/lib/tripletex_api/models/project_participant.rb +246 -0
  647. data/lib/tripletex_api/models/prospect.rb +448 -0
  648. data/lib/tripletex_api/models/reminder.rb +509 -0
  649. data/lib/tripletex_api/models/remuneration_type.rb +315 -0
  650. data/lib/tripletex_api/models/response_wrapper_accommodation_allowance.rb +188 -0
  651. data/lib/tripletex_api/models/response_wrapper_account.rb +188 -0
  652. data/lib/tripletex_api/models/response_wrapper_accounting_period.rb +188 -0
  653. data/lib/tripletex_api/models/response_wrapper_activity.rb +188 -0
  654. data/lib/tripletex_api/models/response_wrapper_address.rb +188 -0
  655. data/lib/tripletex_api/models/response_wrapper_altinn_company_module.rb +188 -0
  656. data/lib/tripletex_api/models/response_wrapper_annual_account.rb +188 -0
  657. data/lib/tripletex_api/models/response_wrapper_api_consumer.rb +188 -0
  658. data/lib/tripletex_api/models/response_wrapper_app_specific.rb +188 -0
  659. data/lib/tripletex_api/models/response_wrapper_bank_reconciliation.rb +188 -0
  660. data/lib/tripletex_api/models/response_wrapper_bank_reconciliation_match.rb +188 -0
  661. data/lib/tripletex_api/models/response_wrapper_bank_reconciliation_payment_type.rb +188 -0
  662. data/lib/tripletex_api/models/response_wrapper_bank_statement.rb +188 -0
  663. data/lib/tripletex_api/models/response_wrapper_bank_transaction.rb +188 -0
  664. data/lib/tripletex_api/models/response_wrapper_banner.rb +188 -0
  665. data/lib/tripletex_api/models/response_wrapper_boolean.rb +190 -0
  666. data/lib/tripletex_api/models/response_wrapper_close_group.rb +188 -0
  667. data/lib/tripletex_api/models/response_wrapper_company.rb +188 -0
  668. data/lib/tripletex_api/models/response_wrapper_company_holiday.rb +188 -0
  669. data/lib/tripletex_api/models/response_wrapper_consumer_token.rb +188 -0
  670. data/lib/tripletex_api/models/response_wrapper_contact.rb +188 -0
  671. data/lib/tripletex_api/models/response_wrapper_cost.rb +188 -0
  672. data/lib/tripletex_api/models/response_wrapper_country.rb +188 -0
  673. data/lib/tripletex_api/models/response_wrapper_currency.rb +188 -0
  674. data/lib/tripletex_api/models/response_wrapper_customer.rb +188 -0
  675. data/lib/tripletex_api/models/response_wrapper_customer_category.rb +188 -0
  676. data/lib/tripletex_api/models/response_wrapper_department.rb +188 -0
  677. data/lib/tripletex_api/models/response_wrapper_division.rb +188 -0
  678. data/lib/tripletex_api/models/response_wrapper_document.rb +188 -0
  679. data/lib/tripletex_api/models/response_wrapper_double.rb +188 -0
  680. data/lib/tripletex_api/models/response_wrapper_employee.rb +188 -0
  681. data/lib/tripletex_api/models/response_wrapper_employee_token.rb +188 -0
  682. data/lib/tripletex_api/models/response_wrapper_employment.rb +188 -0
  683. data/lib/tripletex_api/models/response_wrapper_employment_details.rb +188 -0
  684. data/lib/tripletex_api/models/response_wrapper_entitlement.rb +188 -0
  685. data/lib/tripletex_api/models/response_wrapper_external_product.rb +188 -0
  686. data/lib/tripletex_api/models/response_wrapper_integer.rb +188 -0
  687. data/lib/tripletex_api/models/response_wrapper_inventory.rb +188 -0
  688. data/lib/tripletex_api/models/response_wrapper_invoice.rb +188 -0
  689. data/lib/tripletex_api/models/response_wrapper_leave_of_absence.rb +188 -0
  690. data/lib/tripletex_api/models/response_wrapper_list_job.rb +190 -0
  691. data/lib/tripletex_api/models/response_wrapper_logged_in_user_info_dto.rb +188 -0
  692. data/lib/tripletex_api/models/response_wrapper_map_string_event_info_description.rb +190 -0
  693. data/lib/tripletex_api/models/response_wrapper_mileage_allowance.rb +188 -0
  694. data/lib/tripletex_api/models/response_wrapper_modules.rb +188 -0
  695. data/lib/tripletex_api/models/response_wrapper_monthly_status.rb +188 -0
  696. data/lib/tripletex_api/models/response_wrapper_next_of_kin.rb +188 -0
  697. data/lib/tripletex_api/models/response_wrapper_notification.rb +188 -0
  698. data/lib/tripletex_api/models/response_wrapper_object.rb +188 -0
  699. data/lib/tripletex_api/models/response_wrapper_order.rb +188 -0
  700. data/lib/tripletex_api/models/response_wrapper_order_line.rb +188 -0
  701. data/lib/tripletex_api/models/response_wrapper_order_offer.rb +188 -0
  702. data/lib/tripletex_api/models/response_wrapper_passenger.rb +188 -0
  703. data/lib/tripletex_api/models/response_wrapper_payment_type.rb +188 -0
  704. data/lib/tripletex_api/models/response_wrapper_payment_type_out.rb +188 -0
  705. data/lib/tripletex_api/models/response_wrapper_payslip.rb +188 -0
  706. data/lib/tripletex_api/models/response_wrapper_per_diem_compensation.rb +188 -0
  707. data/lib/tripletex_api/models/response_wrapper_posting.rb +188 -0
  708. data/lib/tripletex_api/models/response_wrapper_product.rb +188 -0
  709. data/lib/tripletex_api/models/response_wrapper_product_unit.rb +188 -0
  710. data/lib/tripletex_api/models/response_wrapper_project.rb +188 -0
  711. data/lib/tripletex_api/models/response_wrapper_project_category.rb +188 -0
  712. data/lib/tripletex_api/models/response_wrapper_project_invoice_details.rb +188 -0
  713. data/lib/tripletex_api/models/response_wrapper_project_order_line.rb +188 -0
  714. data/lib/tripletex_api/models/response_wrapper_project_participant.rb +188 -0
  715. data/lib/tripletex_api/models/response_wrapper_prospect.rb +188 -0
  716. data/lib/tripletex_api/models/response_wrapper_reminder.rb +188 -0
  717. data/lib/tripletex_api/models/response_wrapper_salary_settings.rb +188 -0
  718. data/lib/tripletex_api/models/response_wrapper_salary_specification.rb +188 -0
  719. data/lib/tripletex_api/models/response_wrapper_salary_transaction.rb +188 -0
  720. data/lib/tripletex_api/models/response_wrapper_salary_type.rb +188 -0
  721. data/lib/tripletex_api/models/response_wrapper_session_token.rb +188 -0
  722. data/lib/tripletex_api/models/response_wrapper_standard_time.rb +188 -0
  723. data/lib/tripletex_api/models/response_wrapper_string.rb +188 -0
  724. data/lib/tripletex_api/models/response_wrapper_subscription.rb +188 -0
  725. data/lib/tripletex_api/models/response_wrapper_supplier.rb +188 -0
  726. data/lib/tripletex_api/models/response_wrapper_system_message.rb +188 -0
  727. data/lib/tripletex_api/models/response_wrapper_time_clock.rb +188 -0
  728. data/lib/tripletex_api/models/response_wrapper_timesheet_entry.rb +188 -0
  729. data/lib/tripletex_api/models/response_wrapper_timesheet_settings.rb +188 -0
  730. data/lib/tripletex_api/models/response_wrapper_travel_cost_category.rb +188 -0
  731. data/lib/tripletex_api/models/response_wrapper_travel_expense.rb +188 -0
  732. data/lib/tripletex_api/models/response_wrapper_travel_expense_rate.rb +188 -0
  733. data/lib/tripletex_api/models/response_wrapper_travel_expense_rate_category.rb +188 -0
  734. data/lib/tripletex_api/models/response_wrapper_travel_expense_rate_category_group.rb +188 -0
  735. data/lib/tripletex_api/models/response_wrapper_travel_payment_type.rb +188 -0
  736. data/lib/tripletex_api/models/response_wrapper_trip_dto.rb +188 -0
  737. data/lib/tripletex_api/models/response_wrapper_tripletex_account_return.rb +188 -0
  738. data/lib/tripletex_api/models/response_wrapper_unread_count_dto.rb +188 -0
  739. data/lib/tripletex_api/models/response_wrapper_vat_type.rb +188 -0
  740. data/lib/tripletex_api/models/response_wrapper_voucher.rb +188 -0
  741. data/lib/tripletex_api/models/response_wrapper_voucher_type.rb +188 -0
  742. data/lib/tripletex_api/models/response_wrapper_week.rb +188 -0
  743. data/lib/tripletex_api/models/response_wrapper_weekly_status.rb +188 -0
  744. data/lib/tripletex_api/models/result.rb +320 -0
  745. data/lib/tripletex_api/models/salary_settings.rb +279 -0
  746. data/lib/tripletex_api/models/salary_specification.rb +331 -0
  747. data/lib/tripletex_api/models/salary_transaction.rb +284 -0
  748. data/lib/tripletex_api/models/salary_type.rb +276 -0
  749. data/lib/tripletex_api/models/search_completion_dto.rb +301 -0
  750. data/lib/tripletex_api/models/session_token.rb +299 -0
  751. data/lib/tripletex_api/models/smart_scan_webhook.rb +206 -0
  752. data/lib/tripletex_api/models/standard_time.rb +254 -0
  753. data/lib/tripletex_api/models/subscription.rb +377 -0
  754. data/lib/tripletex_api/models/supplier.rb +553 -0
  755. data/lib/tripletex_api/models/supplier_balance.rb +236 -0
  756. data/lib/tripletex_api/models/system_message.rb +188 -0
  757. data/lib/tripletex_api/models/time_clock.rb +320 -0
  758. data/lib/tripletex_api/models/timesheet_entry.rb +367 -0
  759. data/lib/tripletex_api/models/timesheet_entry_search_response.rb +237 -0
  760. data/lib/tripletex_api/models/timesheet_settings.rb +239 -0
  761. data/lib/tripletex_api/models/travel_cost_category.rb +312 -0
  762. data/lib/tripletex_api/models/travel_details.rb +348 -0
  763. data/lib/tripletex_api/models/travel_expense.rb +644 -0
  764. data/lib/tripletex_api/models/travel_expense_rate.rb +281 -0
  765. data/lib/tripletex_api/models/travel_expense_rate_category.rb +396 -0
  766. data/lib/tripletex_api/models/travel_expense_rate_category_group.rb +265 -0
  767. data/lib/tripletex_api/models/travel_payment_type.rb +292 -0
  768. data/lib/tripletex_api/models/trigger_dto.rb +233 -0
  769. data/lib/tripletex_api/models/trip_dto.rb +206 -0
  770. data/lib/tripletex_api/models/tripletex_account.rb +424 -0
  771. data/lib/tripletex_api/models/tripletex_account_return.rb +224 -0
  772. data/lib/tripletex_api/models/unread_count_dto.rb +197 -0
  773. data/lib/tripletex_api/models/vat_type.rb +276 -0
  774. data/lib/tripletex_api/models/vntc_status_dto.rb +258 -0
  775. data/lib/tripletex_api/models/voucher.rb +362 -0
  776. data/lib/tripletex_api/models/voucher_search_response.rb +238 -0
  777. data/lib/tripletex_api/models/voucher_type.rb +242 -0
  778. data/lib/tripletex_api/models/week.rb +295 -0
  779. data/lib/tripletex_api/models/weekly_status.rb +289 -0
  780. data/lib/tripletex_api/models/working_hours_scheme.rb +315 -0
  781. data/lib/tripletex_api/version.rb +15 -0
  782. data/spec/api/activity_api_spec.rb +89 -0
  783. data/spec/api/address_api_spec.rb +82 -0
  784. data/spec/api/bank_api_spec.rb +52 -0
  785. data/spec/api/bankreconciliation_api_spec.rb +143 -0
  786. data/spec/api/bankreconciliationmatch_api_spec.rb +114 -0
  787. data/spec/api/bankreconciliationpayment_type_api_spec.rb +65 -0
  788. data/spec/api/bankstatement_api_spec.rb +90 -0
  789. data/spec/api/bankstatementtransaction_api_spec.rb +77 -0
  790. data/spec/api/company_api_spec.rb +90 -0
  791. data/spec/api/companyaltinn_api_spec.rb +59 -0
  792. data/spec/api/contact_api_spec.rb +93 -0
  793. data/spec/api/country_api_spec.rb +65 -0
  794. data/spec/api/crmprospect_api_spec.rb +77 -0
  795. data/spec/api/currency_api_spec.rb +65 -0
  796. data/spec/api/customer_api_spec.rb +119 -0
  797. data/spec/api/customercategory_api_spec.rb +93 -0
  798. data/spec/api/department_api_spec.rb +116 -0
  799. data/spec/api/division_api_spec.rb +99 -0
  800. data/spec/api/document_api_spec.rb +60 -0
  801. data/spec/api/employee_api_spec.rb +108 -0
  802. data/spec/api/employeeemployment_api_spec.rb +89 -0
  803. data/spec/api/employeeemploymentdetails_api_spec.rb +89 -0
  804. data/spec/api/employeeemploymentemployment_type_api_spec.rb +96 -0
  805. data/spec/api/employeeemploymentleave_of_absence_api_spec.rb +85 -0
  806. data/spec/api/employeeemploymentleave_of_absence_type_api_spec.rb +50 -0
  807. data/spec/api/employeeemploymentoccupation_code_api_spec.rb +52 -0
  808. data/spec/api/employeeemploymentremuneration_type_api_spec.rb +50 -0
  809. data/spec/api/employeeemploymentworking_hours_scheme_api_spec.rb +50 -0
  810. data/spec/api/employeeentitlement_api_spec.rb +109 -0
  811. data/spec/api/employeenext_of_kin_api_spec.rb +89 -0
  812. data/spec/api/employeestandard_time_api_spec.rb +89 -0
  813. data/spec/api/event_api_spec.rb +47 -0
  814. data/spec/api/eventsubscription_api_spec.rb +100 -0
  815. data/spec/api/inventory_api_spec.rb +67 -0
  816. data/spec/api/invoice_api_spec.rb +160 -0
  817. data/spec/api/invoicedetails_api_spec.rb +66 -0
  818. data/spec/api/invoicepayment_type_api_spec.rb +65 -0
  819. data/spec/api/ledger_api_spec.rb +83 -0
  820. data/spec/api/ledgeraccount_api_spec.rb +140 -0
  821. data/spec/api/ledgeraccounting_period_api_spec.rb +70 -0
  822. data/spec/api/ledgerannual_account_api_spec.rb +66 -0
  823. data/spec/api/ledgerclose_group_api_spec.rb +66 -0
  824. data/spec/api/ledgerpayment_type_out_api_spec.rb +127 -0
  825. data/spec/api/ledgerposting_api_spec.rb +96 -0
  826. data/spec/api/ledgervat_type_api_spec.rb +65 -0
  827. data/spec/api/ledgervoucher_api_spec.rb +236 -0
  828. data/spec/api/ledgervoucher_type_api_spec.rb +64 -0
  829. data/spec/api/municipality_api_spec.rb +50 -0
  830. data/spec/api/order_api_spec.rb +110 -0
  831. data/spec/api/orderorderline_api_spec.rb +84 -0
  832. data/spec/api/product_api_spec.rb +104 -0
  833. data/spec/api/productexternal_api_spec.rb +69 -0
  834. data/spec/api/productunit_api_spec.rb +67 -0
  835. data/spec/api/project_api_spec.rb +179 -0
  836. data/spec/api/projectcategory_api_spec.rb +92 -0
  837. data/spec/api/projectorderline_api_spec.rb +97 -0
  838. data/spec/api/projectparticipant_api_spec.rb +97 -0
  839. data/spec/api/reminder_api_spec.rb +70 -0
  840. data/spec/api/salarypayslip_api_spec.rb +86 -0
  841. data/spec/api/salarysettings_api_spec.rb +59 -0
  842. data/spec/api/salarysettingsholiday_api_spec.rb +111 -0
  843. data/spec/api/salarytransaction_api_spec.rb +73 -0
  844. data/spec/api/salarytype_api_spec.rb +67 -0
  845. data/spec/api/supplier_api_spec.rb +122 -0
  846. data/spec/api/timesheetentry_api_spec.rb +180 -0
  847. data/spec/api/timesheetsettings_api_spec.rb +47 -0
  848. data/spec/api/timesheettime_clock_api_spec.rb +125 -0
  849. data/spec/api/timesheetweek_api_spec.rb +110 -0
  850. data/spec/api/tokenconsumer_api_spec.rb +48 -0
  851. data/spec/api/tokenemployee_api_spec.rb +51 -0
  852. data/spec/api/tokensession_api_spec.rb +73 -0
  853. data/spec/api/travel_expense_api_spec.rb +205 -0
  854. data/spec/api/travel_expenseaccommodation_allowance_api_spec.rb +111 -0
  855. data/spec/api/travel_expensecost_api_spec.rb +111 -0
  856. data/spec/api/travel_expensecost_category_api_spec.rb +65 -0
  857. data/spec/api/travel_expensemileage_allowance_api_spec.rb +114 -0
  858. data/spec/api/travel_expensepassenger_api_spec.rb +102 -0
  859. data/spec/api/travel_expensepayment_type_api_spec.rb +65 -0
  860. data/spec/api/travel_expenseper_diem_compensation_api_spec.rb +115 -0
  861. data/spec/api/travel_expenserate_api_spec.rb +73 -0
  862. data/spec/api/travel_expenserate_category_api_spec.rb +75 -0
  863. data/spec/api/travel_expenserate_category_group_api_spec.rb +67 -0
  864. data/spec/api_client_spec.rb +226 -0
  865. data/spec/configuration_spec.rb +42 -0
  866. data/spec/models/abstract_dto_spec.rb +48 -0
  867. data/spec/models/accommodation_allowance_spec.rb +114 -0
  868. data/spec/models/account_spec.rb +172 -0
  869. data/spec/models/accounting_period_spec.rb +90 -0
  870. data/spec/models/activity_spec.rb +102 -0
  871. data/spec/models/address_spec.rb +102 -0
  872. data/spec/models/altinn_company_module_spec.rb +72 -0
  873. data/spec/models/annual_account_spec.rb +78 -0
  874. data/spec/models/api_consumer_spec.rb +72 -0
  875. data/spec/models/api_error_spec.rb +78 -0
  876. data/spec/models/api_validation_message_spec.rb +48 -0
  877. data/spec/models/app_specific_spec.rb +78 -0
  878. data/spec/models/bank_reconciliation_adjustment_spec.rb +72 -0
  879. data/spec/models/bank_reconciliation_match_spec.rb +88 -0
  880. data/spec/models/bank_reconciliation_payment_type_spec.rb +84 -0
  881. data/spec/models/bank_reconciliation_spec.rb +114 -0
  882. data/spec/models/bank_spec.rb +82 -0
  883. data/spec/models/bank_statement_spec.rb +90 -0
  884. data/spec/models/bank_transaction_spec.rb +84 -0
  885. data/spec/models/banner_spec.rb +102 -0
  886. data/spec/models/change_spec.rb +58 -0
  887. data/spec/models/close_group_spec.rb +72 -0
  888. data/spec/models/company_auto_complete_dto_spec.rb +136 -0
  889. data/spec/models/company_holiday_spec.rb +90 -0
  890. data/spec/models/company_spec.rb +124 -0
  891. data/spec/models/consumer_token_spec.rb +78 -0
  892. data/spec/models/contact_spec.rb +90 -0
  893. data/spec/models/cost_spec.rb +156 -0
  894. data/spec/models/country_spec.rb +84 -0
  895. data/spec/models/csv_record_spec.rb +54 -0
  896. data/spec/models/currency_spec.rb +72 -0
  897. data/spec/models/customer_category_spec.rb +84 -0
  898. data/spec/models/customer_spec.rb +186 -0
  899. data/spec/models/customer_tripletex_account_spec.rb +136 -0
  900. data/spec/models/department_spec.rb +78 -0
  901. data/spec/models/division_spec.rb +90 -0
  902. data/spec/models/document_spec.rb +72 -0
  903. data/spec/models/employee_spec.rb +172 -0
  904. data/spec/models/employee_token_spec.rb +84 -0
  905. data/spec/models/employment_details_spec.rb +144 -0
  906. data/spec/models/employment_spec.rb +102 -0
  907. data/spec/models/employment_type_spec.rb +82 -0
  908. data/spec/models/entitlement_spec.rb +84 -0
  909. data/spec/models/event_info_description_spec.rb +48 -0
  910. data/spec/models/external_product_spec.rb +144 -0
  911. data/spec/models/import_config_dto_spec.rb +54 -0
  912. data/spec/models/import_report_dto_spec.rb +126 -0
  913. data/spec/models/international_id_spec.rb +58 -0
  914. data/spec/models/inventory_spec.rb +84 -0
  915. data/spec/models/invoice_spec.rb +214 -0
  916. data/spec/models/job_detail_dto_spec.rb +66 -0
  917. data/spec/models/job_spec.rb +72 -0
  918. data/spec/models/leave_of_absence_spec.rb +102 -0
  919. data/spec/models/leave_of_absence_type_spec.rb +82 -0
  920. data/spec/models/ledger_account_spec.rb +90 -0
  921. data/spec/models/link_spec.rb +58 -0
  922. data/spec/models/list_response_accommodation_allowance_spec.rb +66 -0
  923. data/spec/models/list_response_account_spec.rb +66 -0
  924. data/spec/models/list_response_accounting_period_spec.rb +66 -0
  925. data/spec/models/list_response_activity_spec.rb +66 -0
  926. data/spec/models/list_response_address_spec.rb +66 -0
  927. data/spec/models/list_response_annual_account_spec.rb +66 -0
  928. data/spec/models/list_response_bank_reconciliation_adjustment_spec.rb +66 -0
  929. data/spec/models/list_response_bank_reconciliation_match_spec.rb +66 -0
  930. data/spec/models/list_response_bank_reconciliation_payment_type_spec.rb +66 -0
  931. data/spec/models/list_response_bank_reconciliation_spec.rb +66 -0
  932. data/spec/models/list_response_bank_spec.rb +66 -0
  933. data/spec/models/list_response_bank_statement_spec.rb +66 -0
  934. data/spec/models/list_response_bank_transaction_spec.rb +66 -0
  935. data/spec/models/list_response_banner_spec.rb +66 -0
  936. data/spec/models/list_response_close_group_spec.rb +66 -0
  937. data/spec/models/list_response_company_auto_complete_dto_spec.rb +66 -0
  938. data/spec/models/list_response_company_holiday_spec.rb +66 -0
  939. data/spec/models/list_response_company_spec.rb +66 -0
  940. data/spec/models/list_response_contact_spec.rb +66 -0
  941. data/spec/models/list_response_cost_spec.rb +66 -0
  942. data/spec/models/list_response_country_spec.rb +66 -0
  943. data/spec/models/list_response_currency_spec.rb +66 -0
  944. data/spec/models/list_response_customer_category_spec.rb +66 -0
  945. data/spec/models/list_response_customer_spec.rb +66 -0
  946. data/spec/models/list_response_department_spec.rb +66 -0
  947. data/spec/models/list_response_division_spec.rb +66 -0
  948. data/spec/models/list_response_employee_spec.rb +66 -0
  949. data/spec/models/list_response_employment_details_spec.rb +66 -0
  950. data/spec/models/list_response_employment_spec.rb +66 -0
  951. data/spec/models/list_response_employment_type_spec.rb +66 -0
  952. data/spec/models/list_response_entitlement_spec.rb +66 -0
  953. data/spec/models/list_response_external_product_spec.rb +66 -0
  954. data/spec/models/list_response_inventory_spec.rb +66 -0
  955. data/spec/models/list_response_invoice_spec.rb +66 -0
  956. data/spec/models/list_response_leave_of_absence_spec.rb +66 -0
  957. data/spec/models/list_response_leave_of_absence_type_spec.rb +66 -0
  958. data/spec/models/list_response_ledger_account_spec.rb +66 -0
  959. data/spec/models/list_response_mileage_allowance_spec.rb +66 -0
  960. data/spec/models/list_response_municipality_spec.rb +66 -0
  961. data/spec/models/list_response_next_of_kin_spec.rb +66 -0
  962. data/spec/models/list_response_notification_spec.rb +66 -0
  963. data/spec/models/list_response_occupation_code_spec.rb +66 -0
  964. data/spec/models/list_response_order_line_spec.rb +66 -0
  965. data/spec/models/list_response_order_offer_spec.rb +66 -0
  966. data/spec/models/list_response_order_spec.rb +66 -0
  967. data/spec/models/list_response_passenger_spec.rb +66 -0
  968. data/spec/models/list_response_payment_type_out_spec.rb +66 -0
  969. data/spec/models/list_response_payment_type_spec.rb +66 -0
  970. data/spec/models/list_response_payslip_spec.rb +66 -0
  971. data/spec/models/list_response_per_diem_compensation_spec.rb +66 -0
  972. data/spec/models/list_response_person_auto_complete_dto_spec.rb +66 -0
  973. data/spec/models/list_response_posting_spec.rb +66 -0
  974. data/spec/models/list_response_product_spec.rb +66 -0
  975. data/spec/models/list_response_product_unit_spec.rb +66 -0
  976. data/spec/models/list_response_project_category_spec.rb +66 -0
  977. data/spec/models/list_response_project_invoice_details_spec.rb +66 -0
  978. data/spec/models/list_response_project_order_line_spec.rb +66 -0
  979. data/spec/models/list_response_project_participant_spec.rb +66 -0
  980. data/spec/models/list_response_project_spec.rb +66 -0
  981. data/spec/models/list_response_prospect_spec.rb +66 -0
  982. data/spec/models/list_response_reminder_spec.rb +66 -0
  983. data/spec/models/list_response_remuneration_type_spec.rb +66 -0
  984. data/spec/models/list_response_salary_specification_spec.rb +66 -0
  985. data/spec/models/list_response_salary_transaction_spec.rb +66 -0
  986. data/spec/models/list_response_salary_type_spec.rb +66 -0
  987. data/spec/models/list_response_search_completion_dto_spec.rb +66 -0
  988. data/spec/models/list_response_standard_time_spec.rb +66 -0
  989. data/spec/models/list_response_subscription_spec.rb +66 -0
  990. data/spec/models/list_response_supplier_balance_spec.rb +66 -0
  991. data/spec/models/list_response_supplier_spec.rb +66 -0
  992. data/spec/models/list_response_time_clock_spec.rb +66 -0
  993. data/spec/models/list_response_timesheet_entry_spec.rb +66 -0
  994. data/spec/models/list_response_travel_cost_category_spec.rb +66 -0
  995. data/spec/models/list_response_travel_expense_rate_category_group_spec.rb +66 -0
  996. data/spec/models/list_response_travel_expense_rate_category_spec.rb +66 -0
  997. data/spec/models/list_response_travel_expense_rate_spec.rb +66 -0
  998. data/spec/models/list_response_travel_expense_spec.rb +66 -0
  999. data/spec/models/list_response_travel_payment_type_spec.rb +66 -0
  1000. data/spec/models/list_response_vat_type_spec.rb +66 -0
  1001. data/spec/models/list_response_voucher_spec.rb +66 -0
  1002. data/spec/models/list_response_voucher_type_spec.rb +66 -0
  1003. data/spec/models/list_response_week_spec.rb +66 -0
  1004. data/spec/models/list_response_weekly_status_spec.rb +66 -0
  1005. data/spec/models/list_response_working_hours_scheme_spec.rb +66 -0
  1006. data/spec/models/logged_in_user_info_dto_spec.rb +66 -0
  1007. data/spec/models/maritime_employment_spec.rb +66 -0
  1008. data/spec/models/maventa_event_data_dto_spec.rb +72 -0
  1009. data/spec/models/maventa_status_dto_spec.rb +60 -0
  1010. data/spec/models/mileage_allowance_spec.rb +126 -0
  1011. data/spec/models/mobile_app_login_spec.rb +60 -0
  1012. data/spec/models/modules_spec.rb +114 -0
  1013. data/spec/models/monthly_status_spec.rb +120 -0
  1014. data/spec/models/municipality_spec.rb +78 -0
  1015. data/spec/models/next_of_kin_spec.rb +94 -0
  1016. data/spec/models/notification_spec.rb +90 -0
  1017. data/spec/models/occupation_code_spec.rb +72 -0
  1018. data/spec/models/order_line_spec.rb +162 -0
  1019. data/spec/models/order_offer_spec.rb +84 -0
  1020. data/spec/models/order_spec.rb +282 -0
  1021. data/spec/models/passenger_spec.rb +72 -0
  1022. data/spec/models/payment_type_out_spec.rb +120 -0
  1023. data/spec/models/payment_type_spec.rb +96 -0
  1024. data/spec/models/payslip_spec.rb +120 -0
  1025. data/spec/models/per_diem_compensation_spec.rb +142 -0
  1026. data/spec/models/person_auto_complete_dto_spec.rb +142 -0
  1027. data/spec/models/posting_spec.rb +186 -0
  1028. data/spec/models/product_spec.rb +168 -0
  1029. data/spec/models/product_unit_spec.rb +78 -0
  1030. data/spec/models/project_category_spec.rb +78 -0
  1031. data/spec/models/project_invoice_details_spec.rb +168 -0
  1032. data/spec/models/project_order_line_spec.rb +150 -0
  1033. data/spec/models/project_participant_spec.rb +78 -0
  1034. data/spec/models/project_spec.rb +190 -0
  1035. data/spec/models/prospect_spec.rb +162 -0
  1036. data/spec/models/reminder_spec.rb +166 -0
  1037. data/spec/models/remuneration_type_spec.rb +82 -0
  1038. data/spec/models/response_wrapper_accommodation_allowance_spec.rb +42 -0
  1039. data/spec/models/response_wrapper_account_spec.rb +42 -0
  1040. data/spec/models/response_wrapper_accounting_period_spec.rb +42 -0
  1041. data/spec/models/response_wrapper_activity_spec.rb +42 -0
  1042. data/spec/models/response_wrapper_address_spec.rb +42 -0
  1043. data/spec/models/response_wrapper_altinn_company_module_spec.rb +42 -0
  1044. data/spec/models/response_wrapper_annual_account_spec.rb +42 -0
  1045. data/spec/models/response_wrapper_api_consumer_spec.rb +42 -0
  1046. data/spec/models/response_wrapper_app_specific_spec.rb +42 -0
  1047. data/spec/models/response_wrapper_bank_reconciliation_match_spec.rb +42 -0
  1048. data/spec/models/response_wrapper_bank_reconciliation_payment_type_spec.rb +42 -0
  1049. data/spec/models/response_wrapper_bank_reconciliation_spec.rb +42 -0
  1050. data/spec/models/response_wrapper_bank_statement_spec.rb +42 -0
  1051. data/spec/models/response_wrapper_bank_transaction_spec.rb +42 -0
  1052. data/spec/models/response_wrapper_banner_spec.rb +42 -0
  1053. data/spec/models/response_wrapper_boolean_spec.rb +42 -0
  1054. data/spec/models/response_wrapper_close_group_spec.rb +42 -0
  1055. data/spec/models/response_wrapper_company_holiday_spec.rb +42 -0
  1056. data/spec/models/response_wrapper_company_spec.rb +42 -0
  1057. data/spec/models/response_wrapper_consumer_token_spec.rb +42 -0
  1058. data/spec/models/response_wrapper_contact_spec.rb +42 -0
  1059. data/spec/models/response_wrapper_cost_spec.rb +42 -0
  1060. data/spec/models/response_wrapper_country_spec.rb +42 -0
  1061. data/spec/models/response_wrapper_currency_spec.rb +42 -0
  1062. data/spec/models/response_wrapper_customer_category_spec.rb +42 -0
  1063. data/spec/models/response_wrapper_customer_spec.rb +42 -0
  1064. data/spec/models/response_wrapper_department_spec.rb +42 -0
  1065. data/spec/models/response_wrapper_division_spec.rb +42 -0
  1066. data/spec/models/response_wrapper_document_spec.rb +42 -0
  1067. data/spec/models/response_wrapper_double_spec.rb +42 -0
  1068. data/spec/models/response_wrapper_employee_spec.rb +42 -0
  1069. data/spec/models/response_wrapper_employee_token_spec.rb +42 -0
  1070. data/spec/models/response_wrapper_employment_details_spec.rb +42 -0
  1071. data/spec/models/response_wrapper_employment_spec.rb +42 -0
  1072. data/spec/models/response_wrapper_entitlement_spec.rb +42 -0
  1073. data/spec/models/response_wrapper_external_product_spec.rb +42 -0
  1074. data/spec/models/response_wrapper_integer_spec.rb +42 -0
  1075. data/spec/models/response_wrapper_inventory_spec.rb +42 -0
  1076. data/spec/models/response_wrapper_invoice_spec.rb +42 -0
  1077. data/spec/models/response_wrapper_leave_of_absence_spec.rb +42 -0
  1078. data/spec/models/response_wrapper_list_job_spec.rb +42 -0
  1079. data/spec/models/response_wrapper_logged_in_user_info_dto_spec.rb +42 -0
  1080. data/spec/models/response_wrapper_map_string_event_info_description_spec.rb +42 -0
  1081. data/spec/models/response_wrapper_mileage_allowance_spec.rb +42 -0
  1082. data/spec/models/response_wrapper_modules_spec.rb +42 -0
  1083. data/spec/models/response_wrapper_monthly_status_spec.rb +42 -0
  1084. data/spec/models/response_wrapper_next_of_kin_spec.rb +42 -0
  1085. data/spec/models/response_wrapper_notification_spec.rb +42 -0
  1086. data/spec/models/response_wrapper_object_spec.rb +42 -0
  1087. data/spec/models/response_wrapper_order_line_spec.rb +42 -0
  1088. data/spec/models/response_wrapper_order_offer_spec.rb +42 -0
  1089. data/spec/models/response_wrapper_order_spec.rb +42 -0
  1090. data/spec/models/response_wrapper_passenger_spec.rb +42 -0
  1091. data/spec/models/response_wrapper_payment_type_out_spec.rb +42 -0
  1092. data/spec/models/response_wrapper_payment_type_spec.rb +42 -0
  1093. data/spec/models/response_wrapper_payslip_spec.rb +42 -0
  1094. data/spec/models/response_wrapper_per_diem_compensation_spec.rb +42 -0
  1095. data/spec/models/response_wrapper_posting_spec.rb +42 -0
  1096. data/spec/models/response_wrapper_product_spec.rb +42 -0
  1097. data/spec/models/response_wrapper_product_unit_spec.rb +42 -0
  1098. data/spec/models/response_wrapper_project_category_spec.rb +42 -0
  1099. data/spec/models/response_wrapper_project_invoice_details_spec.rb +42 -0
  1100. data/spec/models/response_wrapper_project_order_line_spec.rb +42 -0
  1101. data/spec/models/response_wrapper_project_participant_spec.rb +42 -0
  1102. data/spec/models/response_wrapper_project_spec.rb +42 -0
  1103. data/spec/models/response_wrapper_prospect_spec.rb +42 -0
  1104. data/spec/models/response_wrapper_reminder_spec.rb +42 -0
  1105. data/spec/models/response_wrapper_salary_settings_spec.rb +42 -0
  1106. data/spec/models/response_wrapper_salary_specification_spec.rb +42 -0
  1107. data/spec/models/response_wrapper_salary_transaction_spec.rb +42 -0
  1108. data/spec/models/response_wrapper_salary_type_spec.rb +42 -0
  1109. data/spec/models/response_wrapper_session_token_spec.rb +42 -0
  1110. data/spec/models/response_wrapper_standard_time_spec.rb +42 -0
  1111. data/spec/models/response_wrapper_string_spec.rb +42 -0
  1112. data/spec/models/response_wrapper_subscription_spec.rb +42 -0
  1113. data/spec/models/response_wrapper_supplier_spec.rb +42 -0
  1114. data/spec/models/response_wrapper_system_message_spec.rb +42 -0
  1115. data/spec/models/response_wrapper_time_clock_spec.rb +42 -0
  1116. data/spec/models/response_wrapper_timesheet_entry_spec.rb +42 -0
  1117. data/spec/models/response_wrapper_timesheet_settings_spec.rb +42 -0
  1118. data/spec/models/response_wrapper_travel_cost_category_spec.rb +42 -0
  1119. data/spec/models/response_wrapper_travel_expense_rate_category_group_spec.rb +42 -0
  1120. data/spec/models/response_wrapper_travel_expense_rate_category_spec.rb +42 -0
  1121. data/spec/models/response_wrapper_travel_expense_rate_spec.rb +42 -0
  1122. data/spec/models/response_wrapper_travel_expense_spec.rb +42 -0
  1123. data/spec/models/response_wrapper_travel_payment_type_spec.rb +42 -0
  1124. data/spec/models/response_wrapper_trip_dto_spec.rb +42 -0
  1125. data/spec/models/response_wrapper_tripletex_account_return_spec.rb +42 -0
  1126. data/spec/models/response_wrapper_unread_count_dto_spec.rb +42 -0
  1127. data/spec/models/response_wrapper_vat_type_spec.rb +42 -0
  1128. data/spec/models/response_wrapper_voucher_spec.rb +42 -0
  1129. data/spec/models/response_wrapper_voucher_type_spec.rb +42 -0
  1130. data/spec/models/response_wrapper_week_spec.rb +42 -0
  1131. data/spec/models/response_wrapper_weekly_status_spec.rb +42 -0
  1132. data/spec/models/result_spec.rb +104 -0
  1133. data/spec/models/salary_settings_spec.rb +76 -0
  1134. data/spec/models/salary_specification_spec.rb +126 -0
  1135. data/spec/models/salary_transaction_spec.rb +90 -0
  1136. data/spec/models/salary_type_spec.rb +78 -0
  1137. data/spec/models/search_completion_dto_spec.rb +106 -0
  1138. data/spec/models/session_token_spec.rb +90 -0
  1139. data/spec/models/smart_scan_webhook_spec.rb +54 -0
  1140. data/spec/models/standard_time_spec.rb +78 -0
  1141. data/spec/models/subscription_spec.rb +88 -0
  1142. data/spec/models/supplier_balance_spec.rb +72 -0
  1143. data/spec/models/supplier_spec.rb +192 -0
  1144. data/spec/models/system_message_spec.rb +42 -0
  1145. data/spec/models/time_clock_spec.rb +108 -0
  1146. data/spec/models/timesheet_entry_search_response_spec.rb +72 -0
  1147. data/spec/models/timesheet_entry_spec.rb +138 -0
  1148. data/spec/models/timesheet_settings_spec.rb +72 -0
  1149. data/spec/models/travel_cost_category_spec.rb +102 -0
  1150. data/spec/models/travel_details_spec.rb +102 -0
  1151. data/spec/models/travel_expense_rate_category_group_spec.rb +84 -0
  1152. data/spec/models/travel_expense_rate_category_spec.rb +136 -0
  1153. data/spec/models/travel_expense_rate_spec.rb +96 -0
  1154. data/spec/models/travel_expense_spec.rb +280 -0
  1155. data/spec/models/travel_payment_type_spec.rb +90 -0
  1156. data/spec/models/trigger_dto_spec.rb +72 -0
  1157. data/spec/models/trip_dto_spec.rb +54 -0
  1158. data/spec/models/tripletex_account_return_spec.rb +66 -0
  1159. data/spec/models/tripletex_account_spec.rb +138 -0
  1160. data/spec/models/unread_count_dto_spec.rb +48 -0
  1161. data/spec/models/vat_type_spec.rb +78 -0
  1162. data/spec/models/vntc_status_dto_spec.rb +72 -0
  1163. data/spec/models/voucher_search_response_spec.rb +72 -0
  1164. data/spec/models/voucher_spec.rb +120 -0
  1165. data/spec/models/voucher_type_spec.rb +66 -0
  1166. data/spec/models/week_spec.rb +108 -0
  1167. data/spec/models/working_hours_scheme_spec.rb +82 -0
  1168. data/spec/spec_helper.rb +111 -0
  1169. data/tripletex_api.gemspec +46 -0
  1170. metadata +1862 -0
@@ -0,0 +1,257 @@
1
+ =begin
2
+ #Tripletex API
3
+
4
+ #The Tripletex API is a **RESTful API**, which does not implement PATCH, but uses a PUT with optional fields. **Actions** or commands are represented in our RESTful path with a prefixed `:`. Example: `/v2/hours/123/:approve`. **Summaries** or aggregated results are represented in our RESTful path with a prefixed <code>&gt;</code>. Example: <code>/v2/hours/&gt;thisWeeksBillables</code>. **\"requestID\"** is a key found in all validation and error responses. If additional log information is absolutely necessary, our support division can locate the key value. **Download** the [swagger.json](/v2/swagger.json) file [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) to [generate code](https://github.com/sveredyuk/tripletex_ruby). This document was generated from the Swagger JSON file. **version:** This is a versioning number found on all DB records. If included, it will prevent your PUT/POST from overriding any updates to the record since your GET. **Date & DateTime** follows the **ISO 8601** standard. Date: `YYYY-MM-DD`. DateTime: `YYYY-MM-DDThh:mm:ssZ` **Sorting** is done by specifying a comma separated list, where a `-` prefix denotes descending. You can sort by sub object with the following format: `project.name, -date`. **Searching:** is done by entering values in the optional fields for each API call. The values fall into the following categories: range, in, exact and like. **Missing fields or even no response data** can occur because result objects and fields are filtered on authorization. **See [FAQ](https://tripletex.no/execute/docViewer?articleId=906&language=0) for more additional information.** ## Authentication: - **Tokens:** The Tripletex API uses 3 different tokens - **consumerToken**, **employeeToken** and **sessionToken**. - **consumerToken** is a token provided to the consumer by Tripletex after the API 2.0 registration is completed. - **employeeToken** is a token created by an administrator in your Tripletex account via the user settings and the tab \"API access\". Each employee token must be given a set of entitlements. [Read more here.](https://tripletex.no/execute/docViewer?articleId=853&language=0) - **sessionToken** is the token from `/token/session/:create` which requires a consumerToken and an employeeToken created with the same consumer token, but not an authentication header. See how to create a sessionToken [here](https://tripletex.no/execute/docViewer?articleId=855&language=0). - The session token is used as the password in \"Basic Authentication Header\" for API calls. - Use blank or `0` as username for accessing the account with regular employee token, or if a company owned employee token accesses <code>/company/&gt;withLoginAccess</code> or <code>/token/session/&gt;whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/&gt;withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic &lt;base64encode('0:sessionToken')&gt;</code>. ## Tags: - <div class=\"tag-icon-beta\"></div> **[BETA]** This is a beta endpoint and can be subject to change. - <div class=\"tag-icon-deprecated\"></div> **[DEPRECATED]** Deprecated means that we intend to remove/change this feature or capability in a future \"major\" API release. We therefore discourage all use of this feature/capability. ## Fields: Use the `fields` parameter to specify which fields should be returned. This also supports fields from sub elements. Example values: - `project,activity,hours` returns `{project:..., activity:...., hours:...}`. - just `project` returns `\"project\" : { \"id\": 12345, \"url\": \"tripletex.no/v2/projects/12345\" }`. - `project(*)` returns `\"project\" : { \"id\": 12345 \"name\":\"ProjectName\" \"number.....startDate\": \"2013-01-07\" }`. - `project(name)` returns `\"project\" : { \"name\":\"ProjectName\" }`. - All elements and some subElements : `*,activity(name),employee(*)`. ## Changes: To get the changes for a resource, `changes` have to be explicitly specified as part of the `fields` parameter, e.g. `*,changes`. There are currently two types of change available: - `CREATE` for when the resource was created - `UPDATE` for when the resource was updated NOTE: For objects created prior to October 24th 2018 the list may be incomplete, but will always contain the CREATE and the last change (if the object has been changed after creation). ## Rate limiting in each response header: Rate limiting is performed on the API calls for an employee for each API consumer. Status regarding the rate limit is returned as headers: - `X-Rate-Limit-Limit` - The number of allowed requests in the current period. - `X-Rate-Limit-Remaining` - The number of remaining requests. - `X-Rate-Limit-Reset` - The number of seconds left in the current period. Once the rate limit is hit, all requests will return HTTP status code `429` for the remainder of the current period. ## Response envelope: ``` { \"fullResultSize\": ###, \"from\": ###, // Paging starting from \"count\": ###, // Paging count \"versionDigest\": \"Hash of full result\", \"values\": [...list of objects...] } { \"value\": {...single object...} } ``` ## WebHook envelope: ``` { \"subscriptionId\": ###, \"event\": \"object.verb\", // As listed from /v2/event/ \"id\": ###, // Object id \"value\": {... single object, null if object.deleted ...} } ``` ## Error/warning envelope: ``` { \"status\": ###, // HTTP status code \"code\": #####, // internal status code of event \"message\": \"Basic feedback message in your language\", \"link\": \"Link to doc\", \"developerMessage\": \"More technical message\", \"validationMessages\": [ // Will be null if Error { \"field\": \"Name of field\", \"message\": \"Validation failure information\" } ], \"requestId\": \"UUID used in any logs\" } ``` ## Status codes / Error codes: - **200 OK** - **201 Created** - From POSTs that create something new. - **204 No Content** - When there is no answer, ex: \"/:anAction\" or DELETE. - **400 Bad request** - - **4000** Bad Request Exception - **11000** Illegal Filter Exception - **12000** Path Param Exception - **24000** Cryptography Exception - **401 Unauthorized** - When authentication is required and has failed or has not yet been provided - **3000** Authentication Exception - **9000** Security Exception - **403 Forbidden** - When AuthorisationManager says no. - **404 Not Found** - For content/IDs that does not exist. - **6000** Not Found Exception - **409 Conflict** - Such as an edit conflict between multiple simultaneous updates - **7000** Object Exists Exception - **8000** Revision Exception - **10000** Locked Exception - **14000** Duplicate entry - **422 Bad Request** - For Required fields or things like malformed payload. - **15000** Value Validation Exception - **16000** Mapping Exception - **17000** Sorting Exception - **18000** Validation Exception - **21000** Param Exception - **22000** Invalid JSON Exception - **23000** Result Set Too Large Exception - **429 Too Many Requests** - Request rate limit hit - **500 Internal Error** - Unexpected condition was encountered and no more specific message is suitable - **1000** Exception
5
+
6
+ OpenAPI spec version: 2.32.0
7
+
8
+ Generated by: https://github.com/sveredyuk/tripletex_ruby.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TripletexApi
16
+ class LedgerpostingApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Find postings by ID.
24
+ #
25
+ # @param id Element ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :fields Fields filter pattern
28
+ # @return [ResponseWrapperPosting]
29
+ def get(id, opts = {})
30
+ data, _status_code, _headers = get_with_http_info(id, opts)
31
+ return data
32
+ end
33
+
34
+ # Find postings by ID.
35
+ #
36
+ # @param id Element ID
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :fields Fields filter pattern
39
+ # @return [Array<(ResponseWrapperPosting, Fixnum, Hash)>] ResponseWrapperPosting data, response status code and response headers
40
+ def get_with_http_info(id, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: LedgerpostingApi.get ..."
43
+ end
44
+ # verify the required parameter 'id' is set
45
+ if @api_client.config.client_side_validation && id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgerpostingApi.get"
47
+ end
48
+ # resource path
49
+ local_var_path = "/ledger/posting/{id}".sub('{' + 'id' + '}', id.to_s)
50
+
51
+ # query parameters
52
+ query_params = {}
53
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = {}
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = ['tokenAuthScheme']
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'ResponseWrapperPosting')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: LedgerpostingApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+
77
+ # Find open posts corresponding with sent data.
78
+ #
79
+ # @param date Invoice date. Format is yyyy-MM-dd (to and excl.).
80
+ # @param [Hash] opts the optional parameters
81
+ # @option opts [Integer] :account_id Element ID
82
+ # @option opts [Integer] :supplier_id Element ID
83
+ # @option opts [Integer] :customer_id Element ID
84
+ # @option opts [Integer] :employee_id Element ID
85
+ # @option opts [Integer] :department_id Element ID
86
+ # @option opts [Integer] :project_id Element ID
87
+ # @option opts [Integer] :product_id Element ID
88
+ # @option opts [Integer] :from From index (default to 0)
89
+ # @option opts [Integer] :count Number of elements to return (default to 1000)
90
+ # @option opts [String] :sorting Sorting pattern
91
+ # @option opts [String] :fields Fields filter pattern
92
+ # @return [ListResponsePosting]
93
+ def open_post(date, opts = {})
94
+ data, _status_code, _headers = open_post_with_http_info(date, opts)
95
+ return data
96
+ end
97
+
98
+ # Find open posts corresponding with sent data.
99
+ #
100
+ # @param date Invoice date. Format is yyyy-MM-dd (to and excl.).
101
+ # @param [Hash] opts the optional parameters
102
+ # @option opts [Integer] :account_id Element ID
103
+ # @option opts [Integer] :supplier_id Element ID
104
+ # @option opts [Integer] :customer_id Element ID
105
+ # @option opts [Integer] :employee_id Element ID
106
+ # @option opts [Integer] :department_id Element ID
107
+ # @option opts [Integer] :project_id Element ID
108
+ # @option opts [Integer] :product_id Element ID
109
+ # @option opts [Integer] :from From index
110
+ # @option opts [Integer] :count Number of elements to return
111
+ # @option opts [String] :sorting Sorting pattern
112
+ # @option opts [String] :fields Fields filter pattern
113
+ # @return [Array<(ListResponsePosting, Fixnum, Hash)>] ListResponsePosting data, response status code and response headers
114
+ def open_post_with_http_info(date, opts = {})
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug "Calling API: LedgerpostingApi.open_post ..."
117
+ end
118
+ # verify the required parameter 'date' is set
119
+ if @api_client.config.client_side_validation && date.nil?
120
+ fail ArgumentError, "Missing the required parameter 'date' when calling LedgerpostingApi.open_post"
121
+ end
122
+ # resource path
123
+ local_var_path = "/ledger/posting/openPost"
124
+
125
+ # query parameters
126
+ query_params = {}
127
+ query_params[:'date'] = date
128
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
129
+ query_params[:'supplierId'] = opts[:'supplier_id'] if !opts[:'supplier_id'].nil?
130
+ query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
131
+ query_params[:'employeeId'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
132
+ query_params[:'departmentId'] = opts[:'department_id'] if !opts[:'department_id'].nil?
133
+ query_params[:'projectId'] = opts[:'project_id'] if !opts[:'project_id'].nil?
134
+ query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
135
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
136
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
137
+ query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
138
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
139
+
140
+ # header parameters
141
+ header_params = {}
142
+
143
+ # form parameters
144
+ form_params = {}
145
+
146
+ # http body (model)
147
+ post_body = nil
148
+ auth_names = ['tokenAuthScheme']
149
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names,
155
+ :return_type => 'ListResponsePosting')
156
+ if @api_client.config.debugging
157
+ @api_client.config.logger.debug "API called: LedgerpostingApi#open_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
158
+ end
159
+ return data, status_code, headers
160
+ end
161
+
162
+ # Find postings corresponding with sent data.
163
+ #
164
+ # @param date_from Format is yyyy-MM-dd (from and incl.).
165
+ # @param date_to Format is yyyy-MM-dd (to and excl.).
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [String] :open_postings Deprecated
168
+ # @option opts [Integer] :account_id Element ID
169
+ # @option opts [Integer] :supplier_id Element ID
170
+ # @option opts [Integer] :customer_id Element ID
171
+ # @option opts [Integer] :employee_id Element ID
172
+ # @option opts [Integer] :department_id Element ID
173
+ # @option opts [Integer] :project_id Element ID
174
+ # @option opts [Integer] :product_id Element ID
175
+ # @option opts [Integer] :from From index (default to 0)
176
+ # @option opts [Integer] :count Number of elements to return (default to 1000)
177
+ # @option opts [String] :sorting Sorting pattern
178
+ # @option opts [String] :fields Fields filter pattern
179
+ # @return [ListResponsePosting]
180
+ def search(date_from, date_to, opts = {})
181
+ data, _status_code, _headers = search_with_http_info(date_from, date_to, opts)
182
+ return data
183
+ end
184
+
185
+ # Find postings corresponding with sent data.
186
+ #
187
+ # @param date_from Format is yyyy-MM-dd (from and incl.).
188
+ # @param date_to Format is yyyy-MM-dd (to and excl.).
189
+ # @param [Hash] opts the optional parameters
190
+ # @option opts [String] :open_postings Deprecated
191
+ # @option opts [Integer] :account_id Element ID
192
+ # @option opts [Integer] :supplier_id Element ID
193
+ # @option opts [Integer] :customer_id Element ID
194
+ # @option opts [Integer] :employee_id Element ID
195
+ # @option opts [Integer] :department_id Element ID
196
+ # @option opts [Integer] :project_id Element ID
197
+ # @option opts [Integer] :product_id Element ID
198
+ # @option opts [Integer] :from From index
199
+ # @option opts [Integer] :count Number of elements to return
200
+ # @option opts [String] :sorting Sorting pattern
201
+ # @option opts [String] :fields Fields filter pattern
202
+ # @return [Array<(ListResponsePosting, Fixnum, Hash)>] ListResponsePosting data, response status code and response headers
203
+ def search_with_http_info(date_from, date_to, opts = {})
204
+ if @api_client.config.debugging
205
+ @api_client.config.logger.debug "Calling API: LedgerpostingApi.search ..."
206
+ end
207
+ # verify the required parameter 'date_from' is set
208
+ if @api_client.config.client_side_validation && date_from.nil?
209
+ fail ArgumentError, "Missing the required parameter 'date_from' when calling LedgerpostingApi.search"
210
+ end
211
+ # verify the required parameter 'date_to' is set
212
+ if @api_client.config.client_side_validation && date_to.nil?
213
+ fail ArgumentError, "Missing the required parameter 'date_to' when calling LedgerpostingApi.search"
214
+ end
215
+ # resource path
216
+ local_var_path = "/ledger/posting"
217
+
218
+ # query parameters
219
+ query_params = {}
220
+ query_params[:'dateFrom'] = date_from
221
+ query_params[:'dateTo'] = date_to
222
+ query_params[:'openPostings'] = opts[:'open_postings'] if !opts[:'open_postings'].nil?
223
+ query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
224
+ query_params[:'supplierId'] = opts[:'supplier_id'] if !opts[:'supplier_id'].nil?
225
+ query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
226
+ query_params[:'employeeId'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
227
+ query_params[:'departmentId'] = opts[:'department_id'] if !opts[:'department_id'].nil?
228
+ query_params[:'projectId'] = opts[:'project_id'] if !opts[:'project_id'].nil?
229
+ query_params[:'productId'] = opts[:'product_id'] if !opts[:'product_id'].nil?
230
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
231
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
232
+ query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
233
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
234
+
235
+ # header parameters
236
+ header_params = {}
237
+
238
+ # form parameters
239
+ form_params = {}
240
+
241
+ # http body (model)
242
+ post_body = nil
243
+ auth_names = ['tokenAuthScheme']
244
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
245
+ :header_params => header_params,
246
+ :query_params => query_params,
247
+ :form_params => form_params,
248
+ :body => post_body,
249
+ :auth_names => auth_names,
250
+ :return_type => 'ListResponsePosting')
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "API called: LedgerpostingApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
253
+ end
254
+ return data, status_code, headers
255
+ end
256
+ end
257
+ end
@@ -0,0 +1,140 @@
1
+ =begin
2
+ #Tripletex API
3
+
4
+ #The Tripletex API is a **RESTful API**, which does not implement PATCH, but uses a PUT with optional fields. **Actions** or commands are represented in our RESTful path with a prefixed `:`. Example: `/v2/hours/123/:approve`. **Summaries** or aggregated results are represented in our RESTful path with a prefixed <code>&gt;</code>. Example: <code>/v2/hours/&gt;thisWeeksBillables</code>. **\"requestID\"** is a key found in all validation and error responses. If additional log information is absolutely necessary, our support division can locate the key value. **Download** the [swagger.json](/v2/swagger.json) file [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) to [generate code](https://github.com/sveredyuk/tripletex_ruby). This document was generated from the Swagger JSON file. **version:** This is a versioning number found on all DB records. If included, it will prevent your PUT/POST from overriding any updates to the record since your GET. **Date & DateTime** follows the **ISO 8601** standard. Date: `YYYY-MM-DD`. DateTime: `YYYY-MM-DDThh:mm:ssZ` **Sorting** is done by specifying a comma separated list, where a `-` prefix denotes descending. You can sort by sub object with the following format: `project.name, -date`. **Searching:** is done by entering values in the optional fields for each API call. The values fall into the following categories: range, in, exact and like. **Missing fields or even no response data** can occur because result objects and fields are filtered on authorization. **See [FAQ](https://tripletex.no/execute/docViewer?articleId=906&language=0) for more additional information.** ## Authentication: - **Tokens:** The Tripletex API uses 3 different tokens - **consumerToken**, **employeeToken** and **sessionToken**. - **consumerToken** is a token provided to the consumer by Tripletex after the API 2.0 registration is completed. - **employeeToken** is a token created by an administrator in your Tripletex account via the user settings and the tab \"API access\". Each employee token must be given a set of entitlements. [Read more here.](https://tripletex.no/execute/docViewer?articleId=853&language=0) - **sessionToken** is the token from `/token/session/:create` which requires a consumerToken and an employeeToken created with the same consumer token, but not an authentication header. See how to create a sessionToken [here](https://tripletex.no/execute/docViewer?articleId=855&language=0). - The session token is used as the password in \"Basic Authentication Header\" for API calls. - Use blank or `0` as username for accessing the account with regular employee token, or if a company owned employee token accesses <code>/company/&gt;withLoginAccess</code> or <code>/token/session/&gt;whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/&gt;withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic &lt;base64encode('0:sessionToken')&gt;</code>. ## Tags: - <div class=\"tag-icon-beta\"></div> **[BETA]** This is a beta endpoint and can be subject to change. - <div class=\"tag-icon-deprecated\"></div> **[DEPRECATED]** Deprecated means that we intend to remove/change this feature or capability in a future \"major\" API release. We therefore discourage all use of this feature/capability. ## Fields: Use the `fields` parameter to specify which fields should be returned. This also supports fields from sub elements. Example values: - `project,activity,hours` returns `{project:..., activity:...., hours:...}`. - just `project` returns `\"project\" : { \"id\": 12345, \"url\": \"tripletex.no/v2/projects/12345\" }`. - `project(*)` returns `\"project\" : { \"id\": 12345 \"name\":\"ProjectName\" \"number.....startDate\": \"2013-01-07\" }`. - `project(name)` returns `\"project\" : { \"name\":\"ProjectName\" }`. - All elements and some subElements : `*,activity(name),employee(*)`. ## Changes: To get the changes for a resource, `changes` have to be explicitly specified as part of the `fields` parameter, e.g. `*,changes`. There are currently two types of change available: - `CREATE` for when the resource was created - `UPDATE` for when the resource was updated NOTE: For objects created prior to October 24th 2018 the list may be incomplete, but will always contain the CREATE and the last change (if the object has been changed after creation). ## Rate limiting in each response header: Rate limiting is performed on the API calls for an employee for each API consumer. Status regarding the rate limit is returned as headers: - `X-Rate-Limit-Limit` - The number of allowed requests in the current period. - `X-Rate-Limit-Remaining` - The number of remaining requests. - `X-Rate-Limit-Reset` - The number of seconds left in the current period. Once the rate limit is hit, all requests will return HTTP status code `429` for the remainder of the current period. ## Response envelope: ``` { \"fullResultSize\": ###, \"from\": ###, // Paging starting from \"count\": ###, // Paging count \"versionDigest\": \"Hash of full result\", \"values\": [...list of objects...] } { \"value\": {...single object...} } ``` ## WebHook envelope: ``` { \"subscriptionId\": ###, \"event\": \"object.verb\", // As listed from /v2/event/ \"id\": ###, // Object id \"value\": {... single object, null if object.deleted ...} } ``` ## Error/warning envelope: ``` { \"status\": ###, // HTTP status code \"code\": #####, // internal status code of event \"message\": \"Basic feedback message in your language\", \"link\": \"Link to doc\", \"developerMessage\": \"More technical message\", \"validationMessages\": [ // Will be null if Error { \"field\": \"Name of field\", \"message\": \"Validation failure information\" } ], \"requestId\": \"UUID used in any logs\" } ``` ## Status codes / Error codes: - **200 OK** - **201 Created** - From POSTs that create something new. - **204 No Content** - When there is no answer, ex: \"/:anAction\" or DELETE. - **400 Bad request** - - **4000** Bad Request Exception - **11000** Illegal Filter Exception - **12000** Path Param Exception - **24000** Cryptography Exception - **401 Unauthorized** - When authentication is required and has failed or has not yet been provided - **3000** Authentication Exception - **9000** Security Exception - **403 Forbidden** - When AuthorisationManager says no. - **404 Not Found** - For content/IDs that does not exist. - **6000** Not Found Exception - **409 Conflict** - Such as an edit conflict between multiple simultaneous updates - **7000** Object Exists Exception - **8000** Revision Exception - **10000** Locked Exception - **14000** Duplicate entry - **422 Bad Request** - For Required fields or things like malformed payload. - **15000** Value Validation Exception - **16000** Mapping Exception - **17000** Sorting Exception - **18000** Validation Exception - **21000** Param Exception - **22000** Invalid JSON Exception - **23000** Result Set Too Large Exception - **429 Too Many Requests** - Request rate limit hit - **500 Internal Error** - Unexpected condition was encountered and no more specific message is suitable - **1000** Exception
5
+
6
+ OpenAPI spec version: 2.32.0
7
+
8
+ Generated by: https://github.com/sveredyuk/tripletex_ruby.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TripletexApi
16
+ class LedgervatTypeApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Get vat type by ID.
24
+ #
25
+ # @param id Element ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :fields Fields filter pattern
28
+ # @return [ResponseWrapperVatType]
29
+ def get(id, opts = {})
30
+ data, _status_code, _headers = get_with_http_info(id, opts)
31
+ return data
32
+ end
33
+
34
+ # Get vat type by ID.
35
+ #
36
+ # @param id Element ID
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :fields Fields filter pattern
39
+ # @return [Array<(ResponseWrapperVatType, Fixnum, Hash)>] ResponseWrapperVatType data, response status code and response headers
40
+ def get_with_http_info(id, opts = {})
41
+ if @api_client.config.debugging
42
+ @api_client.config.logger.debug "Calling API: LedgervatTypeApi.get ..."
43
+ end
44
+ # verify the required parameter 'id' is set
45
+ if @api_client.config.client_side_validation && id.nil?
46
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervatTypeApi.get"
47
+ end
48
+ # resource path
49
+ local_var_path = "/ledger/vatType/{id}".sub('{' + 'id' + '}', id.to_s)
50
+
51
+ # query parameters
52
+ query_params = {}
53
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
54
+
55
+ # header parameters
56
+ header_params = {}
57
+
58
+ # form parameters
59
+ form_params = {}
60
+
61
+ # http body (model)
62
+ post_body = nil
63
+ auth_names = ['tokenAuthScheme']
64
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
65
+ :header_params => header_params,
66
+ :query_params => query_params,
67
+ :form_params => form_params,
68
+ :body => post_body,
69
+ :auth_names => auth_names,
70
+ :return_type => 'ResponseWrapperVatType')
71
+ if @api_client.config.debugging
72
+ @api_client.config.logger.debug "API called: LedgervatTypeApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
73
+ end
74
+ return data, status_code, headers
75
+ end
76
+
77
+ # Find vat types corresponding with sent data.
78
+ #
79
+ # @param [Hash] opts the optional parameters
80
+ # @option opts [String] :id List of IDs
81
+ # @option opts [String] :number List of IDs
82
+ # @option opts [Integer] :from From index (default to 0)
83
+ # @option opts [Integer] :count Number of elements to return (default to 1000)
84
+ # @option opts [String] :sorting Sorting pattern
85
+ # @option opts [String] :fields Fields filter pattern
86
+ # @return [ListResponseVatType]
87
+ def search(opts = {})
88
+ data, _status_code, _headers = search_with_http_info(opts)
89
+ return data
90
+ end
91
+
92
+ # Find vat types corresponding with sent data.
93
+ #
94
+ # @param [Hash] opts the optional parameters
95
+ # @option opts [String] :id List of IDs
96
+ # @option opts [String] :number List of IDs
97
+ # @option opts [Integer] :from From index
98
+ # @option opts [Integer] :count Number of elements to return
99
+ # @option opts [String] :sorting Sorting pattern
100
+ # @option opts [String] :fields Fields filter pattern
101
+ # @return [Array<(ListResponseVatType, Fixnum, Hash)>] ListResponseVatType data, response status code and response headers
102
+ def search_with_http_info(opts = {})
103
+ if @api_client.config.debugging
104
+ @api_client.config.logger.debug "Calling API: LedgervatTypeApi.search ..."
105
+ end
106
+ # resource path
107
+ local_var_path = "/ledger/vatType"
108
+
109
+ # query parameters
110
+ query_params = {}
111
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
112
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
113
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
114
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
115
+ query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
116
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
117
+
118
+ # header parameters
119
+ header_params = {}
120
+
121
+ # form parameters
122
+ form_params = {}
123
+
124
+ # http body (model)
125
+ post_body = nil
126
+ auth_names = ['tokenAuthScheme']
127
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
128
+ :header_params => header_params,
129
+ :query_params => query_params,
130
+ :form_params => form_params,
131
+ :body => post_body,
132
+ :auth_names => auth_names,
133
+ :return_type => 'ListResponseVatType')
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug "API called: LedgervatTypeApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
+ end
137
+ return data, status_code, headers
138
+ end
139
+ end
140
+ end
@@ -0,0 +1,873 @@
1
+ =begin
2
+ #Tripletex API
3
+
4
+ #The Tripletex API is a **RESTful API**, which does not implement PATCH, but uses a PUT with optional fields. **Actions** or commands are represented in our RESTful path with a prefixed `:`. Example: `/v2/hours/123/:approve`. **Summaries** or aggregated results are represented in our RESTful path with a prefixed <code>&gt;</code>. Example: <code>/v2/hours/&gt;thisWeeksBillables</code>. **\"requestID\"** is a key found in all validation and error responses. If additional log information is absolutely necessary, our support division can locate the key value. **Download** the [swagger.json](/v2/swagger.json) file [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) to [generate code](https://github.com/sveredyuk/tripletex_ruby). This document was generated from the Swagger JSON file. **version:** This is a versioning number found on all DB records. If included, it will prevent your PUT/POST from overriding any updates to the record since your GET. **Date & DateTime** follows the **ISO 8601** standard. Date: `YYYY-MM-DD`. DateTime: `YYYY-MM-DDThh:mm:ssZ` **Sorting** is done by specifying a comma separated list, where a `-` prefix denotes descending. You can sort by sub object with the following format: `project.name, -date`. **Searching:** is done by entering values in the optional fields for each API call. The values fall into the following categories: range, in, exact and like. **Missing fields or even no response data** can occur because result objects and fields are filtered on authorization. **See [FAQ](https://tripletex.no/execute/docViewer?articleId=906&language=0) for more additional information.** ## Authentication: - **Tokens:** The Tripletex API uses 3 different tokens - **consumerToken**, **employeeToken** and **sessionToken**. - **consumerToken** is a token provided to the consumer by Tripletex after the API 2.0 registration is completed. - **employeeToken** is a token created by an administrator in your Tripletex account via the user settings and the tab \"API access\". Each employee token must be given a set of entitlements. [Read more here.](https://tripletex.no/execute/docViewer?articleId=853&language=0) - **sessionToken** is the token from `/token/session/:create` which requires a consumerToken and an employeeToken created with the same consumer token, but not an authentication header. See how to create a sessionToken [here](https://tripletex.no/execute/docViewer?articleId=855&language=0). - The session token is used as the password in \"Basic Authentication Header\" for API calls. - Use blank or `0` as username for accessing the account with regular employee token, or if a company owned employee token accesses <code>/company/&gt;withLoginAccess</code> or <code>/token/session/&gt;whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/&gt;withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic &lt;base64encode('0:sessionToken')&gt;</code>. ## Tags: - <div class=\"tag-icon-beta\"></div> **[BETA]** This is a beta endpoint and can be subject to change. - <div class=\"tag-icon-deprecated\"></div> **[DEPRECATED]** Deprecated means that we intend to remove/change this feature or capability in a future \"major\" API release. We therefore discourage all use of this feature/capability. ## Fields: Use the `fields` parameter to specify which fields should be returned. This also supports fields from sub elements. Example values: - `project,activity,hours` returns `{project:..., activity:...., hours:...}`. - just `project` returns `\"project\" : { \"id\": 12345, \"url\": \"tripletex.no/v2/projects/12345\" }`. - `project(*)` returns `\"project\" : { \"id\": 12345 \"name\":\"ProjectName\" \"number.....startDate\": \"2013-01-07\" }`. - `project(name)` returns `\"project\" : { \"name\":\"ProjectName\" }`. - All elements and some subElements : `*,activity(name),employee(*)`. ## Changes: To get the changes for a resource, `changes` have to be explicitly specified as part of the `fields` parameter, e.g. `*,changes`. There are currently two types of change available: - `CREATE` for when the resource was created - `UPDATE` for when the resource was updated NOTE: For objects created prior to October 24th 2018 the list may be incomplete, but will always contain the CREATE and the last change (if the object has been changed after creation). ## Rate limiting in each response header: Rate limiting is performed on the API calls for an employee for each API consumer. Status regarding the rate limit is returned as headers: - `X-Rate-Limit-Limit` - The number of allowed requests in the current period. - `X-Rate-Limit-Remaining` - The number of remaining requests. - `X-Rate-Limit-Reset` - The number of seconds left in the current period. Once the rate limit is hit, all requests will return HTTP status code `429` for the remainder of the current period. ## Response envelope: ``` { \"fullResultSize\": ###, \"from\": ###, // Paging starting from \"count\": ###, // Paging count \"versionDigest\": \"Hash of full result\", \"values\": [...list of objects...] } { \"value\": {...single object...} } ``` ## WebHook envelope: ``` { \"subscriptionId\": ###, \"event\": \"object.verb\", // As listed from /v2/event/ \"id\": ###, // Object id \"value\": {... single object, null if object.deleted ...} } ``` ## Error/warning envelope: ``` { \"status\": ###, // HTTP status code \"code\": #####, // internal status code of event \"message\": \"Basic feedback message in your language\", \"link\": \"Link to doc\", \"developerMessage\": \"More technical message\", \"validationMessages\": [ // Will be null if Error { \"field\": \"Name of field\", \"message\": \"Validation failure information\" } ], \"requestId\": \"UUID used in any logs\" } ``` ## Status codes / Error codes: - **200 OK** - **201 Created** - From POSTs that create something new. - **204 No Content** - When there is no answer, ex: \"/:anAction\" or DELETE. - **400 Bad request** - - **4000** Bad Request Exception - **11000** Illegal Filter Exception - **12000** Path Param Exception - **24000** Cryptography Exception - **401 Unauthorized** - When authentication is required and has failed or has not yet been provided - **3000** Authentication Exception - **9000** Security Exception - **403 Forbidden** - When AuthorisationManager says no. - **404 Not Found** - For content/IDs that does not exist. - **6000** Not Found Exception - **409 Conflict** - Such as an edit conflict between multiple simultaneous updates - **7000** Object Exists Exception - **8000** Revision Exception - **10000** Locked Exception - **14000** Duplicate entry - **422 Bad Request** - For Required fields or things like malformed payload. - **15000** Value Validation Exception - **16000** Mapping Exception - **17000** Sorting Exception - **18000** Validation Exception - **21000** Param Exception - **22000** Invalid JSON Exception - **23000** Result Set Too Large Exception - **429 Too Many Requests** - Request rate limit hit - **500 Internal Error** - Unexpected condition was encountered and no more specific message is suitable - **1000** Exception
5
+
6
+ OpenAPI spec version: 2.32.0
7
+
8
+ Generated by: https://github.com/sveredyuk/tripletex_ruby.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module TripletexApi
16
+ class LedgervoucherApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # [BETA] Delete voucher by ID.
24
+ #
25
+ # @param id Element ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def delete(id, opts = {})
29
+ delete_with_http_info(id, opts)
30
+ return nil
31
+ end
32
+
33
+ # [BETA] Delete voucher by ID.
34
+ #
35
+ # @param id Element ID
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ def delete_with_http_info(id, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.delete ..."
41
+ end
42
+ # verify the required parameter 'id' is set
43
+ if @api_client.config.client_side_validation && id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.delete"
45
+ end
46
+ # resource path
47
+ local_var_path = "/ledger/voucher/{id}".sub('{' + 'id' + '}', id.to_s)
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+
55
+ # form parameters
56
+ form_params = {}
57
+
58
+ # http body (model)
59
+ post_body = nil
60
+ auth_names = ['tokenAuthScheme']
61
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
62
+ :header_params => header_params,
63
+ :query_params => query_params,
64
+ :form_params => form_params,
65
+ :body => post_body,
66
+ :auth_names => auth_names)
67
+ if @api_client.config.debugging
68
+ @api_client.config.logger.debug "API called: LedgervoucherApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
69
+ end
70
+ return data, status_code, headers
71
+ end
72
+
73
+ # Get attachment by voucher ID.
74
+ #
75
+ # @param voucher_id Voucher ID from which PDF is downloaded.
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [String]
78
+ def download_pdf(voucher_id, opts = {})
79
+ data, _status_code, _headers = download_pdf_with_http_info(voucher_id, opts)
80
+ return data
81
+ end
82
+
83
+ # Get attachment by voucher ID.
84
+ #
85
+ # @param voucher_id Voucher ID from which PDF is downloaded.
86
+ # @param [Hash] opts the optional parameters
87
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
88
+ def download_pdf_with_http_info(voucher_id, opts = {})
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.download_pdf ..."
91
+ end
92
+ # verify the required parameter 'voucher_id' is set
93
+ if @api_client.config.client_side_validation && voucher_id.nil?
94
+ fail ArgumentError, "Missing the required parameter 'voucher_id' when calling LedgervoucherApi.download_pdf"
95
+ end
96
+ # resource path
97
+ local_var_path = "/ledger/voucher/{voucherId}/pdf".sub('{' + 'voucherId' + '}', voucher_id.to_s)
98
+
99
+ # query parameters
100
+ query_params = {}
101
+
102
+ # header parameters
103
+ header_params = {}
104
+ # HTTP header 'Accept' (if needed)
105
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
106
+
107
+ # form parameters
108
+ form_params = {}
109
+
110
+ # http body (model)
111
+ post_body = nil
112
+ auth_names = ['tokenAuthScheme']
113
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
114
+ :header_params => header_params,
115
+ :query_params => query_params,
116
+ :form_params => form_params,
117
+ :body => post_body,
118
+ :auth_names => auth_names,
119
+ :return_type => 'String')
120
+ if @api_client.config.debugging
121
+ @api_client.config.logger.debug "API called: LedgervoucherApi#download_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+
126
+ # Get voucher by ID.
127
+ #
128
+ # @param id Element ID
129
+ # @param [Hash] opts the optional parameters
130
+ # @option opts [String] :fields Fields filter pattern
131
+ # @return [ResponseWrapperVoucher]
132
+ def get(id, opts = {})
133
+ data, _status_code, _headers = get_with_http_info(id, opts)
134
+ return data
135
+ end
136
+
137
+ # Get voucher by ID.
138
+ #
139
+ # @param id Element ID
140
+ # @param [Hash] opts the optional parameters
141
+ # @option opts [String] :fields Fields filter pattern
142
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
143
+ def get_with_http_info(id, opts = {})
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.get ..."
146
+ end
147
+ # verify the required parameter 'id' is set
148
+ if @api_client.config.client_side_validation && id.nil?
149
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.get"
150
+ end
151
+ # resource path
152
+ local_var_path = "/ledger/voucher/{id}".sub('{' + 'id' + '}', id.to_s)
153
+
154
+ # query parameters
155
+ query_params = {}
156
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
157
+
158
+ # header parameters
159
+ header_params = {}
160
+
161
+ # form parameters
162
+ form_params = {}
163
+
164
+ # http body (model)
165
+ post_body = nil
166
+ auth_names = ['tokenAuthScheme']
167
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
168
+ :header_params => header_params,
169
+ :query_params => query_params,
170
+ :form_params => form_params,
171
+ :body => post_body,
172
+ :auth_names => auth_names,
173
+ :return_type => 'ResponseWrapperVoucher')
174
+ if @api_client.config.debugging
175
+ @api_client.config.logger.debug "API called: LedgervoucherApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
176
+ end
177
+ return data, status_code, headers
178
+ end
179
+
180
+ # [BETA] Upload a document to create one or more vouchers. Valid document formats are PDF, PNG, JPEG, TIFF and EHF. Send as multipart form.
181
+ #
182
+ # @param file The file
183
+ # @param [Hash] opts the optional parameters
184
+ # @option opts [String] :description Optional description to use for the voucher(s). If omitted the file name will be used.
185
+ # @option opts [BOOLEAN] :split If the document consists of several pages, should the document be split into one voucher per page? (default to false)
186
+ # @return [ListResponseVoucher]
187
+ def import_document(file, opts = {})
188
+ data, _status_code, _headers = import_document_with_http_info(file, opts)
189
+ return data
190
+ end
191
+
192
+ # [BETA] Upload a document to create one or more vouchers. Valid document formats are PDF, PNG, JPEG, TIFF and EHF. Send as multipart form.
193
+ #
194
+ # @param file The file
195
+ # @param [Hash] opts the optional parameters
196
+ # @option opts [String] :description Optional description to use for the voucher(s). If omitted the file name will be used.
197
+ # @option opts [BOOLEAN] :split If the document consists of several pages, should the document be split into one voucher per page?
198
+ # @return [Array<(ListResponseVoucher, Fixnum, Hash)>] ListResponseVoucher data, response status code and response headers
199
+ def import_document_with_http_info(file, opts = {})
200
+ if @api_client.config.debugging
201
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.import_document ..."
202
+ end
203
+ # verify the required parameter 'file' is set
204
+ if @api_client.config.client_side_validation && file.nil?
205
+ fail ArgumentError, "Missing the required parameter 'file' when calling LedgervoucherApi.import_document"
206
+ end
207
+ # resource path
208
+ local_var_path = "/ledger/voucher/importDocument"
209
+
210
+ # query parameters
211
+ query_params = {}
212
+ query_params[:'split'] = opts[:'split'] if !opts[:'split'].nil?
213
+
214
+ # header parameters
215
+ header_params = {}
216
+ # HTTP header 'Content-Type'
217
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
218
+
219
+ # form parameters
220
+ form_params = {}
221
+ form_params["file"] = file
222
+ form_params["description"] = opts[:'description'] if !opts[:'description'].nil?
223
+
224
+ # http body (model)
225
+ post_body = nil
226
+ auth_names = ['tokenAuthScheme']
227
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
228
+ :header_params => header_params,
229
+ :query_params => query_params,
230
+ :form_params => form_params,
231
+ :body => post_body,
232
+ :auth_names => auth_names,
233
+ :return_type => 'ListResponseVoucher')
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "API called: LedgervoucherApi#import_document\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
+ end
237
+ return data, status_code, headers
238
+ end
239
+
240
+ # Import GBAT10. Send as multipart form.
241
+ #
242
+ # @param generate_vat_postings If the import should generate VAT postings
243
+ # @param file The file
244
+ # @param [Hash] opts the optional parameters
245
+ # @option opts [String] :encoding The file encoding (default to utf-8)
246
+ # @return [nil]
247
+ def import_gbat10(generate_vat_postings, file, opts = {})
248
+ import_gbat10_with_http_info(generate_vat_postings, file, opts)
249
+ return nil
250
+ end
251
+
252
+ # Import GBAT10. Send as multipart form.
253
+ #
254
+ # @param generate_vat_postings If the import should generate VAT postings
255
+ # @param file The file
256
+ # @param [Hash] opts the optional parameters
257
+ # @option opts [String] :encoding The file encoding
258
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
259
+ def import_gbat10_with_http_info(generate_vat_postings, file, opts = {})
260
+ if @api_client.config.debugging
261
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.import_gbat10 ..."
262
+ end
263
+ # verify the required parameter 'generate_vat_postings' is set
264
+ if @api_client.config.client_side_validation && generate_vat_postings.nil?
265
+ fail ArgumentError, "Missing the required parameter 'generate_vat_postings' when calling LedgervoucherApi.import_gbat10"
266
+ end
267
+ # verify the required parameter 'file' is set
268
+ if @api_client.config.client_side_validation && file.nil?
269
+ fail ArgumentError, "Missing the required parameter 'file' when calling LedgervoucherApi.import_gbat10"
270
+ end
271
+ # resource path
272
+ local_var_path = "/ledger/voucher/importGbat10"
273
+
274
+ # query parameters
275
+ query_params = {}
276
+
277
+ # header parameters
278
+ header_params = {}
279
+ # HTTP header 'Content-Type'
280
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
281
+
282
+ # form parameters
283
+ form_params = {}
284
+ form_params["generateVatPostings"] = generate_vat_postings
285
+ form_params["file"] = file
286
+ form_params["encoding"] = opts[:'encoding'] if !opts[:'encoding'].nil?
287
+
288
+ # http body (model)
289
+ post_body = nil
290
+ auth_names = ['tokenAuthScheme']
291
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: LedgervoucherApi#import_gbat10\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # [BETA] Find non-posted vouchers.
304
+ #
305
+ # @param include_non_approved Include non-approved vouchers in the result.
306
+ # @param [Hash] opts the optional parameters
307
+ # @option opts [String] :date_from From and including
308
+ # @option opts [String] :date_to To and excluding
309
+ # @option opts [String] :changed_since Only return elements that have changed since this date and time
310
+ # @option opts [Integer] :from From index (default to 0)
311
+ # @option opts [Integer] :count Number of elements to return (default to 1000)
312
+ # @option opts [String] :sorting Sorting pattern
313
+ # @option opts [String] :fields Fields filter pattern
314
+ # @return [ListResponseVoucher]
315
+ def non_posted(include_non_approved, opts = {})
316
+ data, _status_code, _headers = non_posted_with_http_info(include_non_approved, opts)
317
+ return data
318
+ end
319
+
320
+ # [BETA] Find non-posted vouchers.
321
+ #
322
+ # @param include_non_approved Include non-approved vouchers in the result.
323
+ # @param [Hash] opts the optional parameters
324
+ # @option opts [String] :date_from From and including
325
+ # @option opts [String] :date_to To and excluding
326
+ # @option opts [String] :changed_since Only return elements that have changed since this date and time
327
+ # @option opts [Integer] :from From index
328
+ # @option opts [Integer] :count Number of elements to return
329
+ # @option opts [String] :sorting Sorting pattern
330
+ # @option opts [String] :fields Fields filter pattern
331
+ # @return [Array<(ListResponseVoucher, Fixnum, Hash)>] ListResponseVoucher data, response status code and response headers
332
+ def non_posted_with_http_info(include_non_approved, opts = {})
333
+ if @api_client.config.debugging
334
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.non_posted ..."
335
+ end
336
+ # verify the required parameter 'include_non_approved' is set
337
+ if @api_client.config.client_side_validation && include_non_approved.nil?
338
+ fail ArgumentError, "Missing the required parameter 'include_non_approved' when calling LedgervoucherApi.non_posted"
339
+ end
340
+ # resource path
341
+ local_var_path = "/ledger/voucher/>nonPosted"
342
+
343
+ # query parameters
344
+ query_params = {}
345
+ query_params[:'includeNonApproved'] = include_non_approved
346
+ query_params[:'dateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
347
+ query_params[:'dateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
348
+ query_params[:'changedSince'] = opts[:'changed_since'] if !opts[:'changed_since'].nil?
349
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
350
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
351
+ query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
352
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
353
+
354
+ # header parameters
355
+ header_params = {}
356
+
357
+ # form parameters
358
+ form_params = {}
359
+
360
+ # http body (model)
361
+ post_body = nil
362
+ auth_names = ['tokenAuthScheme']
363
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
364
+ :header_params => header_params,
365
+ :query_params => query_params,
366
+ :form_params => form_params,
367
+ :body => post_body,
368
+ :auth_names => auth_names,
369
+ :return_type => 'ListResponseVoucher')
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug "API called: LedgervoucherApi#non_posted\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
372
+ end
373
+ return data, status_code, headers
374
+ end
375
+
376
+ # Add new voucher. IMPORTANT: Also creates postings. Only the gross amounts will be used
377
+ #
378
+ # @param [Hash] opts the optional parameters
379
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission. (default to true)
380
+ # @option opts [Voucher] :body JSON representing the new object to be created. Should not have ID and version set.
381
+ # @return [ResponseWrapperVoucher]
382
+ def post(opts = {})
383
+ data, _status_code, _headers = post_with_http_info(opts)
384
+ return data
385
+ end
386
+
387
+ # Add new voucher. IMPORTANT: Also creates postings. Only the gross amounts will be used
388
+ #
389
+ # @param [Hash] opts the optional parameters
390
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission.
391
+ # @option opts [Voucher] :body JSON representing the new object to be created. Should not have ID and version set.
392
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
393
+ def post_with_http_info(opts = {})
394
+ if @api_client.config.debugging
395
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.post ..."
396
+ end
397
+ # resource path
398
+ local_var_path = "/ledger/voucher"
399
+
400
+ # query parameters
401
+ query_params = {}
402
+ query_params[:'sendToLedger'] = opts[:'send_to_ledger'] if !opts[:'send_to_ledger'].nil?
403
+
404
+ # header parameters
405
+ header_params = {}
406
+ # HTTP header 'Content-Type'
407
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
408
+
409
+ # form parameters
410
+ form_params = {}
411
+
412
+ # http body (model)
413
+ post_body = @api_client.object_to_http_body(opts[:'body'])
414
+ auth_names = ['tokenAuthScheme']
415
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
416
+ :header_params => header_params,
417
+ :query_params => query_params,
418
+ :form_params => form_params,
419
+ :body => post_body,
420
+ :auth_names => auth_names,
421
+ :return_type => 'ResponseWrapperVoucher')
422
+ if @api_client.config.debugging
423
+ @api_client.config.logger.debug "API called: LedgervoucherApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
424
+ end
425
+ return data, status_code, headers
426
+ end
427
+
428
+ # [BETA] Update voucher. Postings with guiRow==0 will be deleted and regenerated.
429
+ #
430
+ # @param id Element ID
431
+ # @param [Hash] opts the optional parameters
432
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission. (default to true)
433
+ # @option opts [Voucher] :body Partial object describing what should be updated
434
+ # @return [ResponseWrapperVoucher]
435
+ def put(id, opts = {})
436
+ data, _status_code, _headers = put_with_http_info(id, opts)
437
+ return data
438
+ end
439
+
440
+ # [BETA] Update voucher. Postings with guiRow&#x3D;&#x3D;0 will be deleted and regenerated.
441
+ #
442
+ # @param id Element ID
443
+ # @param [Hash] opts the optional parameters
444
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission.
445
+ # @option opts [Voucher] :body Partial object describing what should be updated
446
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
447
+ def put_with_http_info(id, opts = {})
448
+ if @api_client.config.debugging
449
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.put ..."
450
+ end
451
+ # verify the required parameter 'id' is set
452
+ if @api_client.config.client_side_validation && id.nil?
453
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.put"
454
+ end
455
+ # resource path
456
+ local_var_path = "/ledger/voucher/{id}".sub('{' + 'id' + '}', id.to_s)
457
+
458
+ # query parameters
459
+ query_params = {}
460
+ query_params[:'sendToLedger'] = opts[:'send_to_ledger'] if !opts[:'send_to_ledger'].nil?
461
+
462
+ # header parameters
463
+ header_params = {}
464
+ # HTTP header 'Content-Type'
465
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
466
+
467
+ # form parameters
468
+ form_params = {}
469
+
470
+ # http body (model)
471
+ post_body = @api_client.object_to_http_body(opts[:'body'])
472
+ auth_names = ['tokenAuthScheme']
473
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
474
+ :header_params => header_params,
475
+ :query_params => query_params,
476
+ :form_params => form_params,
477
+ :body => post_body,
478
+ :auth_names => auth_names,
479
+ :return_type => 'ResponseWrapperVoucher')
480
+ if @api_client.config.debugging
481
+ @api_client.config.logger.debug "API called: LedgervoucherApi#put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
482
+ end
483
+ return data, status_code, headers
484
+ end
485
+
486
+ # [BETA] Update multiple vouchers. Postings with guiRow==0 will be deleted and regenerated.
487
+ #
488
+ # @param [Hash] opts the optional parameters
489
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission. (default to true)
490
+ # @option opts [Array<Voucher>] :body JSON representing updates to object. Should have ID and version set.
491
+ # @return [ListResponseVoucher]
492
+ def put_list(opts = {})
493
+ data, _status_code, _headers = put_list_with_http_info(opts)
494
+ return data
495
+ end
496
+
497
+ # [BETA] Update multiple vouchers. Postings with guiRow&#x3D;&#x3D;0 will be deleted and regenerated.
498
+ #
499
+ # @param [Hash] opts the optional parameters
500
+ # @option opts [BOOLEAN] :send_to_ledger Should the voucher be sent to ledger? Requires the \&quot;Advanced Voucher\&quot; permission.
501
+ # @option opts [Array<Voucher>] :body JSON representing updates to object. Should have ID and version set.
502
+ # @return [Array<(ListResponseVoucher, Fixnum, Hash)>] ListResponseVoucher data, response status code and response headers
503
+ def put_list_with_http_info(opts = {})
504
+ if @api_client.config.debugging
505
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.put_list ..."
506
+ end
507
+ # resource path
508
+ local_var_path = "/ledger/voucher/list"
509
+
510
+ # query parameters
511
+ query_params = {}
512
+ query_params[:'sendToLedger'] = opts[:'send_to_ledger'] if !opts[:'send_to_ledger'].nil?
513
+
514
+ # header parameters
515
+ header_params = {}
516
+ # HTTP header 'Content-Type'
517
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
518
+
519
+ # form parameters
520
+ form_params = {}
521
+
522
+ # http body (model)
523
+ post_body = @api_client.object_to_http_body(opts[:'body'])
524
+ auth_names = ['tokenAuthScheme']
525
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
526
+ :header_params => header_params,
527
+ :query_params => query_params,
528
+ :form_params => form_params,
529
+ :body => post_body,
530
+ :auth_names => auth_names,
531
+ :return_type => 'ListResponseVoucher')
532
+ if @api_client.config.debugging
533
+ @api_client.config.logger.debug "API called: LedgervoucherApi#put_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
534
+ end
535
+ return data, status_code, headers
536
+ end
537
+
538
+ # Reverses the voucher, and returns the reversed voucher. Supports reversing most voucher types, except salary transactions.
539
+ #
540
+ # @param id ID of voucher that should be reversed.
541
+ # @param date Reverse voucher date
542
+ # @param [Hash] opts the optional parameters
543
+ # @return [ResponseWrapperVoucher]
544
+ def reverse(id, date, opts = {})
545
+ data, _status_code, _headers = reverse_with_http_info(id, date, opts)
546
+ return data
547
+ end
548
+
549
+ # Reverses the voucher, and returns the reversed voucher. Supports reversing most voucher types, except salary transactions.
550
+ #
551
+ # @param id ID of voucher that should be reversed.
552
+ # @param date Reverse voucher date
553
+ # @param [Hash] opts the optional parameters
554
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
555
+ def reverse_with_http_info(id, date, opts = {})
556
+ if @api_client.config.debugging
557
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.reverse ..."
558
+ end
559
+ # verify the required parameter 'id' is set
560
+ if @api_client.config.client_side_validation && id.nil?
561
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.reverse"
562
+ end
563
+ # verify the required parameter 'date' is set
564
+ if @api_client.config.client_side_validation && date.nil?
565
+ fail ArgumentError, "Missing the required parameter 'date' when calling LedgervoucherApi.reverse"
566
+ end
567
+ # resource path
568
+ local_var_path = "/ledger/voucher/{id}/:reverse".sub('{' + 'id' + '}', id.to_s)
569
+
570
+ # query parameters
571
+ query_params = {}
572
+ query_params[:'date'] = date
573
+
574
+ # header parameters
575
+ header_params = {}
576
+
577
+ # form parameters
578
+ form_params = {}
579
+
580
+ # http body (model)
581
+ post_body = nil
582
+ auth_names = ['tokenAuthScheme']
583
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
584
+ :header_params => header_params,
585
+ :query_params => query_params,
586
+ :form_params => form_params,
587
+ :body => post_body,
588
+ :auth_names => auth_names,
589
+ :return_type => 'ResponseWrapperVoucher')
590
+ if @api_client.config.debugging
591
+ @api_client.config.logger.debug "API called: LedgervoucherApi#reverse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
592
+ end
593
+ return data, status_code, headers
594
+ end
595
+
596
+ # Find vouchers corresponding with sent data.
597
+ #
598
+ # @param date_from From and including
599
+ # @param date_to To and excluding
600
+ # @param [Hash] opts the optional parameters
601
+ # @option opts [String] :id List of IDs
602
+ # @option opts [String] :number List of IDs
603
+ # @option opts [Integer] :number_from From and including
604
+ # @option opts [Integer] :number_to To and excluding
605
+ # @option opts [String] :type_id List of IDs
606
+ # @option opts [Integer] :from From index (default to 0)
607
+ # @option opts [Integer] :count Number of elements to return (default to 1000)
608
+ # @option opts [String] :sorting Sorting pattern
609
+ # @option opts [String] :fields Fields filter pattern
610
+ # @return [VoucherSearchResponse]
611
+ def search(date_from, date_to, opts = {})
612
+ data, _status_code, _headers = search_with_http_info(date_from, date_to, opts)
613
+ return data
614
+ end
615
+
616
+ # Find vouchers corresponding with sent data.
617
+ #
618
+ # @param date_from From and including
619
+ # @param date_to To and excluding
620
+ # @param [Hash] opts the optional parameters
621
+ # @option opts [String] :id List of IDs
622
+ # @option opts [String] :number List of IDs
623
+ # @option opts [Integer] :number_from From and including
624
+ # @option opts [Integer] :number_to To and excluding
625
+ # @option opts [String] :type_id List of IDs
626
+ # @option opts [Integer] :from From index
627
+ # @option opts [Integer] :count Number of elements to return
628
+ # @option opts [String] :sorting Sorting pattern
629
+ # @option opts [String] :fields Fields filter pattern
630
+ # @return [Array<(VoucherSearchResponse, Fixnum, Hash)>] VoucherSearchResponse data, response status code and response headers
631
+ def search_with_http_info(date_from, date_to, opts = {})
632
+ if @api_client.config.debugging
633
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.search ..."
634
+ end
635
+ # verify the required parameter 'date_from' is set
636
+ if @api_client.config.client_side_validation && date_from.nil?
637
+ fail ArgumentError, "Missing the required parameter 'date_from' when calling LedgervoucherApi.search"
638
+ end
639
+ # verify the required parameter 'date_to' is set
640
+ if @api_client.config.client_side_validation && date_to.nil?
641
+ fail ArgumentError, "Missing the required parameter 'date_to' when calling LedgervoucherApi.search"
642
+ end
643
+ # resource path
644
+ local_var_path = "/ledger/voucher"
645
+
646
+ # query parameters
647
+ query_params = {}
648
+ query_params[:'dateFrom'] = date_from
649
+ query_params[:'dateTo'] = date_to
650
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
651
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
652
+ query_params[:'numberFrom'] = opts[:'number_from'] if !opts[:'number_from'].nil?
653
+ query_params[:'numberTo'] = opts[:'number_to'] if !opts[:'number_to'].nil?
654
+ query_params[:'typeId'] = opts[:'type_id'] if !opts[:'type_id'].nil?
655
+ query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
656
+ query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
657
+ query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
658
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
659
+
660
+ # header parameters
661
+ header_params = {}
662
+
663
+ # form parameters
664
+ form_params = {}
665
+
666
+ # http body (model)
667
+ post_body = nil
668
+ auth_names = ['tokenAuthScheme']
669
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
670
+ :header_params => header_params,
671
+ :query_params => query_params,
672
+ :form_params => form_params,
673
+ :body => post_body,
674
+ :auth_names => auth_names,
675
+ :return_type => 'VoucherSearchResponse')
676
+ if @api_client.config.debugging
677
+ @api_client.config.logger.debug "API called: LedgervoucherApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
678
+ end
679
+ return data, status_code, headers
680
+ end
681
+
682
+ # [BETA] Send voucher to inbox.
683
+ #
684
+ # @param id ID of voucher that should be sent to inbox.
685
+ # @param [Hash] opts the optional parameters
686
+ # @option opts [Integer] :version Version of voucher that should be sent to inbox.
687
+ # @option opts [String] :comment Description of why the voucher was rejected. This parameter is only used if the approval feature is enabled.
688
+ # @return [ResponseWrapperVoucher]
689
+ def send_to_inbox(id, opts = {})
690
+ data, _status_code, _headers = send_to_inbox_with_http_info(id, opts)
691
+ return data
692
+ end
693
+
694
+ # [BETA] Send voucher to inbox.
695
+ #
696
+ # @param id ID of voucher that should be sent to inbox.
697
+ # @param [Hash] opts the optional parameters
698
+ # @option opts [Integer] :version Version of voucher that should be sent to inbox.
699
+ # @option opts [String] :comment Description of why the voucher was rejected. This parameter is only used if the approval feature is enabled.
700
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
701
+ def send_to_inbox_with_http_info(id, opts = {})
702
+ if @api_client.config.debugging
703
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.send_to_inbox ..."
704
+ end
705
+ # verify the required parameter 'id' is set
706
+ if @api_client.config.client_side_validation && id.nil?
707
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.send_to_inbox"
708
+ end
709
+ if @api_client.config.client_side_validation && !opts[:'version'].nil? && opts[:'version'] < 0
710
+ fail ArgumentError, 'invalid value for "opts[:"version"]" when calling LedgervoucherApi.send_to_inbox, must be greater than or equal to 0.'
711
+ end
712
+
713
+ # resource path
714
+ local_var_path = "/ledger/voucher/{id}/:sendToInbox".sub('{' + 'id' + '}', id.to_s)
715
+
716
+ # query parameters
717
+ query_params = {}
718
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
719
+ query_params[:'comment'] = opts[:'comment'] if !opts[:'comment'].nil?
720
+
721
+ # header parameters
722
+ header_params = {}
723
+
724
+ # form parameters
725
+ form_params = {}
726
+
727
+ # http body (model)
728
+ post_body = nil
729
+ auth_names = ['tokenAuthScheme']
730
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
731
+ :header_params => header_params,
732
+ :query_params => query_params,
733
+ :form_params => form_params,
734
+ :body => post_body,
735
+ :auth_names => auth_names,
736
+ :return_type => 'ResponseWrapperVoucher')
737
+ if @api_client.config.debugging
738
+ @api_client.config.logger.debug "API called: LedgervoucherApi#send_to_inbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
739
+ end
740
+ return data, status_code, headers
741
+ end
742
+
743
+ # [BETA] Send voucher to ledger.
744
+ #
745
+ # @param id ID of voucher that should be sent to ledger.
746
+ # @param [Hash] opts the optional parameters
747
+ # @option opts [Integer] :version Version of voucher that should be sent to ledger.
748
+ # @option opts [Integer] :number Voucher number to use. If omitted or 0 the system will assign the number. (default to 0)
749
+ # @return [ResponseWrapperVoucher]
750
+ def send_to_ledger(id, opts = {})
751
+ data, _status_code, _headers = send_to_ledger_with_http_info(id, opts)
752
+ return data
753
+ end
754
+
755
+ # [BETA] Send voucher to ledger.
756
+ #
757
+ # @param id ID of voucher that should be sent to ledger.
758
+ # @param [Hash] opts the optional parameters
759
+ # @option opts [Integer] :version Version of voucher that should be sent to ledger.
760
+ # @option opts [Integer] :number Voucher number to use. If omitted or 0 the system will assign the number.
761
+ # @return [Array<(ResponseWrapperVoucher, Fixnum, Hash)>] ResponseWrapperVoucher data, response status code and response headers
762
+ def send_to_ledger_with_http_info(id, opts = {})
763
+ if @api_client.config.debugging
764
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.send_to_ledger ..."
765
+ end
766
+ # verify the required parameter 'id' is set
767
+ if @api_client.config.client_side_validation && id.nil?
768
+ fail ArgumentError, "Missing the required parameter 'id' when calling LedgervoucherApi.send_to_ledger"
769
+ end
770
+ if @api_client.config.client_side_validation && !opts[:'version'].nil? && opts[:'version'] < 0
771
+ fail ArgumentError, 'invalid value for "opts[:"version"]" when calling LedgervoucherApi.send_to_ledger, must be greater than or equal to 0.'
772
+ end
773
+
774
+ if @api_client.config.client_side_validation && !opts[:'number'].nil? && opts[:'number'] < 0
775
+ fail ArgumentError, 'invalid value for "opts[:"number"]" when calling LedgervoucherApi.send_to_ledger, must be greater than or equal to 0.'
776
+ end
777
+
778
+ # resource path
779
+ local_var_path = "/ledger/voucher/{id}/:sendToLedger".sub('{' + 'id' + '}', id.to_s)
780
+
781
+ # query parameters
782
+ query_params = {}
783
+ query_params[:'version'] = opts[:'version'] if !opts[:'version'].nil?
784
+ query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?
785
+
786
+ # header parameters
787
+ header_params = {}
788
+
789
+ # form parameters
790
+ form_params = {}
791
+
792
+ # http body (model)
793
+ post_body = nil
794
+ auth_names = ['tokenAuthScheme']
795
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
796
+ :header_params => header_params,
797
+ :query_params => query_params,
798
+ :form_params => form_params,
799
+ :body => post_body,
800
+ :auth_names => auth_names,
801
+ :return_type => 'ResponseWrapperVoucher')
802
+ if @api_client.config.debugging
803
+ @api_client.config.logger.debug "API called: LedgervoucherApi#send_to_ledger\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
804
+ end
805
+ return data, status_code, headers
806
+ end
807
+
808
+ # Upload attachment to voucher. Send as multipart form.
809
+ #
810
+ # @param voucher_id Voucher ID to upload PDF to.
811
+ # @param file_name File name to store the pdf under. Will not be the same as the filename on the file returned.
812
+ # @param file The file
813
+ # @param [Hash] opts the optional parameters
814
+ # @return [nil]
815
+ def upload_pdf(voucher_id, file_name, file, opts = {})
816
+ upload_pdf_with_http_info(voucher_id, file_name, file, opts)
817
+ return nil
818
+ end
819
+
820
+ # Upload attachment to voucher. Send as multipart form.
821
+ #
822
+ # @param voucher_id Voucher ID to upload PDF to.
823
+ # @param file_name File name to store the pdf under. Will not be the same as the filename on the file returned.
824
+ # @param file The file
825
+ # @param [Hash] opts the optional parameters
826
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
827
+ def upload_pdf_with_http_info(voucher_id, file_name, file, opts = {})
828
+ if @api_client.config.debugging
829
+ @api_client.config.logger.debug "Calling API: LedgervoucherApi.upload_pdf ..."
830
+ end
831
+ # verify the required parameter 'voucher_id' is set
832
+ if @api_client.config.client_side_validation && voucher_id.nil?
833
+ fail ArgumentError, "Missing the required parameter 'voucher_id' when calling LedgervoucherApi.upload_pdf"
834
+ end
835
+ # verify the required parameter 'file_name' is set
836
+ if @api_client.config.client_side_validation && file_name.nil?
837
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling LedgervoucherApi.upload_pdf"
838
+ end
839
+ # verify the required parameter 'file' is set
840
+ if @api_client.config.client_side_validation && file.nil?
841
+ fail ArgumentError, "Missing the required parameter 'file' when calling LedgervoucherApi.upload_pdf"
842
+ end
843
+ # resource path
844
+ local_var_path = "/ledger/voucher/{voucherId}/pdf/{fileName}".sub('{' + 'voucherId' + '}', voucher_id.to_s).sub('{' + 'fileName' + '}', file_name.to_s)
845
+
846
+ # query parameters
847
+ query_params = {}
848
+
849
+ # header parameters
850
+ header_params = {}
851
+ # HTTP header 'Content-Type'
852
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
853
+
854
+ # form parameters
855
+ form_params = {}
856
+ form_params["file"] = file
857
+
858
+ # http body (model)
859
+ post_body = nil
860
+ auth_names = ['tokenAuthScheme']
861
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
862
+ :header_params => header_params,
863
+ :query_params => query_params,
864
+ :form_params => form_params,
865
+ :body => post_body,
866
+ :auth_names => auth_names)
867
+ if @api_client.config.debugging
868
+ @api_client.config.logger.debug "API called: LedgervoucherApi#upload_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
869
+ end
870
+ return data, status_code, headers
871
+ end
872
+ end
873
+ end