tripletex_api3 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +712 -0
- data/Rakefile +8 -0
- data/docs/AbstractDTO.md +9 -0
- data/docs/AccommodationAllowance.md +20 -0
- data/docs/Account.md +29 -0
- data/docs/AccountingPeriod.md +16 -0
- data/docs/Activity.md +18 -0
- data/docs/ActivityApi.md +211 -0
- data/docs/Address.md +18 -0
- data/docs/AddressApi.md +197 -0
- data/docs/AltinnCompanyModule.md +13 -0
- data/docs/AnnualAccount.md +14 -0
- data/docs/ApiConsumer.md +13 -0
- data/docs/ApiError.md +14 -0
- data/docs/ApiValidationMessage.md +9 -0
- data/docs/AppSpecific.md +14 -0
- data/docs/Bank.md +14 -0
- data/docs/BankApi.md +73 -0
- data/docs/BankReconciliation.md +20 -0
- data/docs/BankReconciliationAdjustment.md +13 -0
- data/docs/BankReconciliationMatch.md +15 -0
- data/docs/BankReconciliationPaymentType.md +15 -0
- data/docs/BankStatement.md +16 -0
- data/docs/BankTransaction.md +15 -0
- data/docs/BankreconciliationApi.md +474 -0
- data/docs/BankreconciliationmatchApi.md +351 -0
- data/docs/BankreconciliationpaymentTypeApi.md +131 -0
- data/docs/BankstatementApi.md +243 -0
- data/docs/BankstatementtransactionApi.md +188 -0
- data/docs/Banner.md +18 -0
- data/docs/CSVRecord.md +10 -0
- data/docs/Change.md +10 -0
- data/docs/CloseGroup.md +13 -0
- data/docs/Company.md +21 -0
- data/docs/CompanyApi.md +243 -0
- data/docs/CompanyAutoCompleteDTO.md +23 -0
- data/docs/CompanyHoliday.md +16 -0
- data/docs/CompanyaltinnApi.md +118 -0
- data/docs/ConsumerToken.md +14 -0
- data/docs/Contact.md +16 -0
- data/docs/ContactApi.md +250 -0
- data/docs/Cost.md +27 -0
- data/docs/Country.md +15 -0
- data/docs/CountryApi.md +131 -0
- data/docs/CrmprospectApi.md +155 -0
- data/docs/Currency.md +13 -0
- data/docs/CurrencyApi.md +131 -0
- data/docs/Customer.md +32 -0
- data/docs/CustomerApi.md +364 -0
- data/docs/CustomerCategory.md +15 -0
- data/docs/CustomerTripletexAccount.md +21 -0
- data/docs/CustomercategoryApi.md +250 -0
- data/docs/Department.md +14 -0
- data/docs/DepartmentApi.md +358 -0
- data/docs/Division.md +16 -0
- data/docs/DivisionApi.md +292 -0
- data/docs/Document.md +13 -0
- data/docs/DocumentApi.md +120 -0
- data/docs/Employee.md +29 -0
- data/docs/EmployeeApi.md +311 -0
- data/docs/EmployeeToken.md +15 -0
- data/docs/EmployeeemploymentApi.md +242 -0
- data/docs/EmployeeemploymentdetailsApi.md +242 -0
- data/docs/EmployeeemploymentemploymentTypeApi.md +254 -0
- data/docs/EmployeeemploymentleaveOfAbsenceApi.md +234 -0
- data/docs/EmployeeemploymentleaveOfAbsenceTypeApi.md +69 -0
- data/docs/EmployeeemploymentoccupationCodeApi.md +73 -0
- data/docs/EmployeeemploymentremunerationTypeApi.md +69 -0
- data/docs/EmployeeemploymentworkingHoursSchemeApi.md +69 -0
- data/docs/EmployeeentitlementApi.md +313 -0
- data/docs/EmployeenextOfKinApi.md +242 -0
- data/docs/EmployeestandardTimeApi.md +242 -0
- data/docs/Employment.md +18 -0
- data/docs/EmploymentDetails.md +23 -0
- data/docs/EmploymentType.md +14 -0
- data/docs/Entitlement.md +15 -0
- data/docs/EventApi.md +63 -0
- data/docs/EventInfoDescription.md +9 -0
- data/docs/EventsubscriptionApi.md +293 -0
- data/docs/ExternalProduct.md +25 -0
- data/docs/ImportConfigDTO.md +10 -0
- data/docs/ImportReportDTO.md +22 -0
- data/docs/InternationalId.md +10 -0
- data/docs/Inventory.md +15 -0
- data/docs/InventoryApi.md +135 -0
- data/docs/Invoice.md +36 -0
- data/docs/InvoiceApi.md +518 -0
- data/docs/InvoicedetailsApi.md +135 -0
- data/docs/InvoicepaymentTypeApi.md +131 -0
- data/docs/Job.md +13 -0
- data/docs/JobDetailDTO.md +12 -0
- data/docs/LeaveOfAbsence.md +18 -0
- data/docs/LeaveOfAbsenceType.md +14 -0
- data/docs/LedgerAccount.md +16 -0
- data/docs/LedgerApi.md +169 -0
- data/docs/LedgeraccountApi.md +464 -0
- data/docs/LedgeraccountingPeriodApi.md +141 -0
- data/docs/LedgerannualAccountApi.md +133 -0
- data/docs/LedgercloseGroupApi.md +135 -0
- data/docs/LedgerpaymentTypeOutApi.md +409 -0
- data/docs/LedgerpostingApi.md +227 -0
- data/docs/LedgervatTypeApi.md +131 -0
- data/docs/LedgervoucherApi.md +850 -0
- data/docs/LedgervoucherTypeApi.md +129 -0
- data/docs/Link.md +10 -0
- data/docs/ListResponseAccommodationAllowance.md +12 -0
- data/docs/ListResponseAccount.md +12 -0
- data/docs/ListResponseAccountingPeriod.md +12 -0
- data/docs/ListResponseActivity.md +12 -0
- data/docs/ListResponseAddress.md +12 -0
- data/docs/ListResponseAnnualAccount.md +12 -0
- data/docs/ListResponseBank.md +12 -0
- data/docs/ListResponseBankReconciliation.md +12 -0
- data/docs/ListResponseBankReconciliationAdjustment.md +12 -0
- data/docs/ListResponseBankReconciliationMatch.md +12 -0
- data/docs/ListResponseBankReconciliationPaymentType.md +12 -0
- data/docs/ListResponseBankStatement.md +12 -0
- data/docs/ListResponseBankTransaction.md +12 -0
- data/docs/ListResponseBanner.md +12 -0
- data/docs/ListResponseCloseGroup.md +12 -0
- data/docs/ListResponseCompany.md +12 -0
- data/docs/ListResponseCompanyAutoCompleteDTO.md +12 -0
- data/docs/ListResponseCompanyHoliday.md +12 -0
- data/docs/ListResponseContact.md +12 -0
- data/docs/ListResponseCost.md +12 -0
- data/docs/ListResponseCountry.md +12 -0
- data/docs/ListResponseCurrency.md +12 -0
- data/docs/ListResponseCustomer.md +12 -0
- data/docs/ListResponseCustomerCategory.md +12 -0
- data/docs/ListResponseDepartment.md +12 -0
- data/docs/ListResponseDivision.md +12 -0
- data/docs/ListResponseEmployee.md +12 -0
- data/docs/ListResponseEmployment.md +12 -0
- data/docs/ListResponseEmploymentDetails.md +12 -0
- data/docs/ListResponseEmploymentType.md +12 -0
- data/docs/ListResponseEntitlement.md +12 -0
- data/docs/ListResponseExternalProduct.md +12 -0
- data/docs/ListResponseInventory.md +12 -0
- data/docs/ListResponseInvoice.md +12 -0
- data/docs/ListResponseLeaveOfAbsence.md +12 -0
- data/docs/ListResponseLeaveOfAbsenceType.md +12 -0
- data/docs/ListResponseLedgerAccount.md +12 -0
- data/docs/ListResponseMileageAllowance.md +12 -0
- data/docs/ListResponseMunicipality.md +12 -0
- data/docs/ListResponseNextOfKin.md +12 -0
- data/docs/ListResponseNotification.md +12 -0
- data/docs/ListResponseOccupationCode.md +12 -0
- data/docs/ListResponseOrder.md +12 -0
- data/docs/ListResponseOrderLine.md +12 -0
- data/docs/ListResponseOrderOffer.md +12 -0
- data/docs/ListResponsePassenger.md +12 -0
- data/docs/ListResponsePaymentType.md +12 -0
- data/docs/ListResponsePaymentTypeOut.md +12 -0
- data/docs/ListResponsePayslip.md +12 -0
- data/docs/ListResponsePerDiemCompensation.md +12 -0
- data/docs/ListResponsePersonAutoCompleteDTO.md +12 -0
- data/docs/ListResponsePosting.md +12 -0
- data/docs/ListResponseProduct.md +12 -0
- data/docs/ListResponseProductUnit.md +12 -0
- data/docs/ListResponseProject.md +12 -0
- data/docs/ListResponseProjectCategory.md +12 -0
- data/docs/ListResponseProjectInvoiceDetails.md +12 -0
- data/docs/ListResponseProjectOrderLine.md +12 -0
- data/docs/ListResponseProjectParticipant.md +12 -0
- data/docs/ListResponseProspect.md +12 -0
- data/docs/ListResponseReminder.md +12 -0
- data/docs/ListResponseRemunerationType.md +12 -0
- data/docs/ListResponseSalarySpecification.md +12 -0
- data/docs/ListResponseSalaryTransaction.md +12 -0
- data/docs/ListResponseSalaryType.md +12 -0
- data/docs/ListResponseSearchCompletionDTO.md +12 -0
- data/docs/ListResponseStandardTime.md +12 -0
- data/docs/ListResponseSubscription.md +12 -0
- data/docs/ListResponseSupplier.md +12 -0
- data/docs/ListResponseSupplierBalance.md +12 -0
- data/docs/ListResponseTimeClock.md +12 -0
- data/docs/ListResponseTimesheetEntry.md +12 -0
- data/docs/ListResponseTravelCostCategory.md +12 -0
- data/docs/ListResponseTravelExpense.md +12 -0
- data/docs/ListResponseTravelExpenseRate.md +12 -0
- data/docs/ListResponseTravelExpenseRateCategory.md +12 -0
- data/docs/ListResponseTravelExpenseRateCategoryGroup.md +12 -0
- data/docs/ListResponseTravelPaymentType.md +12 -0
- data/docs/ListResponseVatType.md +12 -0
- data/docs/ListResponseVoucher.md +12 -0
- data/docs/ListResponseVoucherType.md +12 -0
- data/docs/ListResponseWeek.md +12 -0
- data/docs/ListResponseWeeklyStatus.md +12 -0
- data/docs/ListResponseWorkingHoursScheme.md +12 -0
- data/docs/LoggedInUserInfoDTO.md +12 -0
- data/docs/MaritimeEmployment.md +10 -0
- data/docs/MaventaEventDataDTO.md +13 -0
- data/docs/MaventaStatusDTO.md +11 -0
- data/docs/MileageAllowance.md +22 -0
- data/docs/MobileAppLogin.md +11 -0
- data/docs/Modules.md +20 -0
- data/docs/MonthlyStatus.md +21 -0
- data/docs/Municipality.md +14 -0
- data/docs/MunicipalityApi.md +69 -0
- data/docs/NextOfKin.md +16 -0
- data/docs/Notification.md +16 -0
- data/docs/OccupationCode.md +13 -0
- data/docs/Order.md +44 -0
- data/docs/OrderApi.md +319 -0
- data/docs/OrderLine.md +28 -0
- data/docs/OrderOffer.md +15 -0
- data/docs/OrderorderlineApi.md +229 -0
- data/docs/Passenger.md +13 -0
- data/docs/PaymentType.md +17 -0
- data/docs/PaymentTypeOut.md +21 -0
- data/docs/Payslip.md +21 -0
- data/docs/PerDiemCompensation.md +24 -0
- data/docs/PersonAutoCompleteDTO.md +24 -0
- data/docs/Posting.md +32 -0
- data/docs/Product.md +29 -0
- data/docs/ProductApi.md +272 -0
- data/docs/ProductUnit.md +14 -0
- data/docs/ProductexternalApi.md +139 -0
- data/docs/ProductunitApi.md +135 -0
- data/docs/Project.md +32 -0
- data/docs/ProjectApi.md +603 -0
- data/docs/ProjectCategory.md +14 -0
- data/docs/ProjectInvoiceDetails.md +29 -0
- data/docs/ProjectOrderLine.md +26 -0
- data/docs/ProjectParticipant.md +14 -0
- data/docs/ProjectcategoryApi.md +248 -0
- data/docs/ProjectorderlineApi.md +287 -0
- data/docs/ProjectparticipantApi.md +287 -0
- data/docs/Prospect.md +28 -0
- data/docs/Reminder.md +28 -0
- data/docs/ReminderApi.md +143 -0
- data/docs/RemunerationType.md +14 -0
- data/docs/ResponseWrapperAccommodationAllowance.md +8 -0
- data/docs/ResponseWrapperAccount.md +8 -0
- data/docs/ResponseWrapperAccountingPeriod.md +8 -0
- data/docs/ResponseWrapperActivity.md +8 -0
- data/docs/ResponseWrapperAddress.md +8 -0
- data/docs/ResponseWrapperAltinnCompanyModule.md +8 -0
- data/docs/ResponseWrapperAnnualAccount.md +8 -0
- data/docs/ResponseWrapperApiConsumer.md +8 -0
- data/docs/ResponseWrapperAppSpecific.md +8 -0
- data/docs/ResponseWrapperBankReconciliation.md +8 -0
- data/docs/ResponseWrapperBankReconciliationMatch.md +8 -0
- data/docs/ResponseWrapperBankReconciliationPaymentType.md +8 -0
- data/docs/ResponseWrapperBankStatement.md +8 -0
- data/docs/ResponseWrapperBankTransaction.md +8 -0
- data/docs/ResponseWrapperBanner.md +8 -0
- data/docs/ResponseWrapperBoolean.md +8 -0
- data/docs/ResponseWrapperCloseGroup.md +8 -0
- data/docs/ResponseWrapperCompany.md +8 -0
- data/docs/ResponseWrapperCompanyHoliday.md +8 -0
- data/docs/ResponseWrapperConsumerToken.md +8 -0
- data/docs/ResponseWrapperContact.md +8 -0
- data/docs/ResponseWrapperCost.md +8 -0
- data/docs/ResponseWrapperCountry.md +8 -0
- data/docs/ResponseWrapperCurrency.md +8 -0
- data/docs/ResponseWrapperCustomer.md +8 -0
- data/docs/ResponseWrapperCustomerCategory.md +8 -0
- data/docs/ResponseWrapperDepartment.md +8 -0
- data/docs/ResponseWrapperDivision.md +8 -0
- data/docs/ResponseWrapperDocument.md +8 -0
- data/docs/ResponseWrapperDouble.md +8 -0
- data/docs/ResponseWrapperEmployee.md +8 -0
- data/docs/ResponseWrapperEmployeeToken.md +8 -0
- data/docs/ResponseWrapperEmployment.md +8 -0
- data/docs/ResponseWrapperEmploymentDetails.md +8 -0
- data/docs/ResponseWrapperEntitlement.md +8 -0
- data/docs/ResponseWrapperExternalProduct.md +8 -0
- data/docs/ResponseWrapperInteger.md +8 -0
- data/docs/ResponseWrapperInventory.md +8 -0
- data/docs/ResponseWrapperInvoice.md +8 -0
- data/docs/ResponseWrapperLeaveOfAbsence.md +8 -0
- data/docs/ResponseWrapperListJob.md +8 -0
- data/docs/ResponseWrapperLoggedInUserInfoDTO.md +8 -0
- data/docs/ResponseWrapperMapStringEventInfoDescription.md +8 -0
- data/docs/ResponseWrapperMileageAllowance.md +8 -0
- data/docs/ResponseWrapperModules.md +8 -0
- data/docs/ResponseWrapperMonthlyStatus.md +8 -0
- data/docs/ResponseWrapperNextOfKin.md +8 -0
- data/docs/ResponseWrapperNotification.md +8 -0
- data/docs/ResponseWrapperObject.md +8 -0
- data/docs/ResponseWrapperOrder.md +8 -0
- data/docs/ResponseWrapperOrderLine.md +8 -0
- data/docs/ResponseWrapperOrderOffer.md +8 -0
- data/docs/ResponseWrapperPassenger.md +8 -0
- data/docs/ResponseWrapperPaymentType.md +8 -0
- data/docs/ResponseWrapperPaymentTypeOut.md +8 -0
- data/docs/ResponseWrapperPayslip.md +8 -0
- data/docs/ResponseWrapperPerDiemCompensation.md +8 -0
- data/docs/ResponseWrapperPosting.md +8 -0
- data/docs/ResponseWrapperProduct.md +8 -0
- data/docs/ResponseWrapperProductUnit.md +8 -0
- data/docs/ResponseWrapperProject.md +8 -0
- data/docs/ResponseWrapperProjectCategory.md +8 -0
- data/docs/ResponseWrapperProjectInvoiceDetails.md +8 -0
- data/docs/ResponseWrapperProjectOrderLine.md +8 -0
- data/docs/ResponseWrapperProjectParticipant.md +8 -0
- data/docs/ResponseWrapperProspect.md +8 -0
- data/docs/ResponseWrapperReminder.md +8 -0
- data/docs/ResponseWrapperSalarySettings.md +8 -0
- data/docs/ResponseWrapperSalarySpecification.md +8 -0
- data/docs/ResponseWrapperSalaryTransaction.md +8 -0
- data/docs/ResponseWrapperSalaryType.md +8 -0
- data/docs/ResponseWrapperSessionToken.md +8 -0
- data/docs/ResponseWrapperStandardTime.md +8 -0
- data/docs/ResponseWrapperString.md +8 -0
- data/docs/ResponseWrapperSubscription.md +8 -0
- data/docs/ResponseWrapperSupplier.md +8 -0
- data/docs/ResponseWrapperSystemMessage.md +8 -0
- data/docs/ResponseWrapperTimeClock.md +8 -0
- data/docs/ResponseWrapperTimesheetEntry.md +8 -0
- data/docs/ResponseWrapperTimesheetSettings.md +8 -0
- data/docs/ResponseWrapperTravelCostCategory.md +8 -0
- data/docs/ResponseWrapperTravelExpense.md +8 -0
- data/docs/ResponseWrapperTravelExpenseRate.md +8 -0
- data/docs/ResponseWrapperTravelExpenseRateCategory.md +8 -0
- data/docs/ResponseWrapperTravelExpenseRateCategoryGroup.md +8 -0
- data/docs/ResponseWrapperTravelPaymentType.md +8 -0
- data/docs/ResponseWrapperTripDTO.md +8 -0
- data/docs/ResponseWrapperTripletexAccountReturn.md +8 -0
- data/docs/ResponseWrapperUnreadCountDTO.md +8 -0
- data/docs/ResponseWrapperVatType.md +8 -0
- data/docs/ResponseWrapperVoucher.md +8 -0
- data/docs/ResponseWrapperVoucherType.md +8 -0
- data/docs/ResponseWrapperWeek.md +8 -0
- data/docs/ResponseWrapperWeeklyStatus.md +8 -0
- data/docs/Result.md +17 -0
- data/docs/SalarySettings.md +13 -0
- data/docs/SalarySpecification.md +22 -0
- data/docs/SalaryTransaction.md +16 -0
- data/docs/SalaryType.md +14 -0
- data/docs/SalarypayslipApi.md +203 -0
- data/docs/SalarysettingsApi.md +118 -0
- data/docs/SalarysettingsholidayApi.md +345 -0
- data/docs/SalarytransactionApi.md +176 -0
- data/docs/SalarytypeApi.md +135 -0
- data/docs/SearchCompletionDTO.md +18 -0
- data/docs/SessionToken.md +16 -0
- data/docs/SmartScanWebhook.md +10 -0
- data/docs/StandardTime.md +14 -0
- data/docs/Subscription.md +15 -0
- data/docs/Supplier.md +33 -0
- data/docs/SupplierApi.md +370 -0
- data/docs/SupplierBalance.md +13 -0
- data/docs/SystemMessage.md +8 -0
- data/docs/TimeClock.md +19 -0
- data/docs/TimesheetEntry.md +24 -0
- data/docs/TimesheetEntrySearchResponse.md +13 -0
- data/docs/TimesheetSettings.md +13 -0
- data/docs/TimesheetentryApi.md +613 -0
- data/docs/TimesheetsettingsApi.md +63 -0
- data/docs/TimesheettimeClockApi.md +377 -0
- data/docs/TimesheetweekApi.md +313 -0
- data/docs/TokenconsumerApi.md +66 -0
- data/docs/TokenemployeeApi.md +74 -0
- data/docs/TokensessionApi.md +170 -0
- data/docs/TravelCostCategory.md +18 -0
- data/docs/TravelDetails.md +18 -0
- data/docs/TravelExpense.md +47 -0
- data/docs/TravelExpenseApi.md +749 -0
- data/docs/TravelExpenseRate.md +17 -0
- data/docs/TravelExpenseRateCategory.md +23 -0
- data/docs/TravelExpenseRateCategoryGroup.md +15 -0
- data/docs/TravelExpenseaccommodationAllowanceApi.md +315 -0
- data/docs/TravelExpensecostApi.md +315 -0
- data/docs/TravelExpensecostCategoryApi.md +131 -0
- data/docs/TravelExpensemileageAllowanceApi.md +321 -0
- data/docs/TravelExpensepassengerApi.md +297 -0
- data/docs/TravelExpensepaymentTypeApi.md +131 -0
- data/docs/TravelExpenseperDiemCompensationApi.md +323 -0
- data/docs/TravelExpenserateApi.md +147 -0
- data/docs/TravelExpenserateCategoryApi.md +151 -0
- data/docs/TravelExpenserateCategoryGroupApi.md +135 -0
- data/docs/TravelPaymentType.md +16 -0
- data/docs/TriggerDTO.md +13 -0
- data/docs/TripDTO.md +10 -0
- data/docs/TripletexAccount.md +22 -0
- data/docs/TripletexAccountReturn.md +12 -0
- data/docs/UnreadCountDTO.md +9 -0
- data/docs/VNTCStatusDTO.md +13 -0
- data/docs/VatType.md +14 -0
- data/docs/Voucher.md +21 -0
- data/docs/VoucherSearchResponse.md +13 -0
- data/docs/VoucherType.md +12 -0
- data/docs/Week.md +19 -0
- data/docs/WeeklyStatus.md +18 -0
- data/docs/WorkingHoursScheme.md +14 -0
- data/git_push.sh +55 -0
- data/lib/tripletex_api.rb +421 -0
- data/lib/tripletex_api/api/activity_api.rb +228 -0
- data/lib/tripletex_api/api/address_api.rb +207 -0
- data/lib/tripletex_api/api/bank_api.rb +86 -0
- data/lib/tripletex_api/api/bankreconciliation_api.rb +469 -0
- data/lib/tripletex_api/api/bankreconciliationmatch_api.rb +346 -0
- data/lib/tripletex_api/api/bankreconciliationpayment_type_api.rb +140 -0
- data/lib/tripletex_api/api/bankstatement_api.rb +255 -0
- data/lib/tripletex_api/api/bankstatementtransaction_api.rb +197 -0
- data/lib/tripletex_api/api/company_api.rb +240 -0
- data/lib/tripletex_api/api/companyaltinn_api.rb +120 -0
- data/lib/tripletex_api/api/contact_api.rb +253 -0
- data/lib/tripletex_api/api/country_api.rb +140 -0
- data/lib/tripletex_api/api/crmprospect_api.rb +176 -0
- data/lib/tripletex_api/api/currency_api.rb +140 -0
- data/lib/tripletex_api/api/customer_api.rb +357 -0
- data/lib/tripletex_api/api/customercategory_api.rb +253 -0
- data/lib/tripletex_api/api/department_api.rb +348 -0
- data/lib/tripletex_api/api/division_api.rb +282 -0
- data/lib/tripletex_api/api/document_api.rb +130 -0
- data/lib/tripletex_api/api/employee_api.rb +311 -0
- data/lib/tripletex_api/api/employeeemployment_api.rb +241 -0
- data/lib/tripletex_api/api/employeeemploymentdetails_api.rb +241 -0
- data/lib/tripletex_api/api/employeeemploymentemployment_type_api.rb +257 -0
- data/lib/tripletex_api/api/employeeemploymentleave_of_absence_api.rb +230 -0
- data/lib/tripletex_api/api/employeeemploymentleave_of_absence_type_api.rb +80 -0
- data/lib/tripletex_api/api/employeeemploymentoccupation_code_api.rb +86 -0
- data/lib/tripletex_api/api/employeeemploymentremuneration_type_api.rb +80 -0
- data/lib/tripletex_api/api/employeeemploymentworking_hours_scheme_api.rb +80 -0
- data/lib/tripletex_api/api/employeeentitlement_api.rb +334 -0
- data/lib/tripletex_api/api/employeenext_of_kin_api.rb +241 -0
- data/lib/tripletex_api/api/employeestandard_time_api.rb +241 -0
- data/lib/tripletex_api/api/event_api.rb +71 -0
- data/lib/tripletex_api/api/eventsubscription_api.rb +286 -0
- data/lib/tripletex_api/api/inventory_api.rb +146 -0
- data/lib/tripletex_api/api/invoice_api.rb +565 -0
- data/lib/tripletex_api/api/invoicedetails_api.rb +151 -0
- data/lib/tripletex_api/api/invoicepayment_type_api.rb +140 -0
- data/lib/tripletex_api/api/ledger_api.rb +203 -0
- data/lib/tripletex_api/api/ledgeraccount_api.rb +449 -0
- data/lib/tripletex_api/api/ledgeraccounting_period_api.rb +155 -0
- data/lib/tripletex_api/api/ledgerannual_account_api.rb +143 -0
- data/lib/tripletex_api/api/ledgerclose_group_api.rb +151 -0
- data/lib/tripletex_api/api/ledgerpayment_type_out_api.rb +395 -0
- data/lib/tripletex_api/api/ledgerposting_api.rb +257 -0
- data/lib/tripletex_api/api/ledgervat_type_api.rb +140 -0
- data/lib/tripletex_api/api/ledgervoucher_api.rb +873 -0
- data/lib/tripletex_api/api/ledgervoucher_type_api.rb +137 -0
- data/lib/tripletex_api/api/municipality_api.rb +80 -0
- data/lib/tripletex_api/api/order_api.rb +331 -0
- data/lib/tripletex_api/api/orderorderline_api.rb +225 -0
- data/lib/tripletex_api/api/product_api.rb +286 -0
- data/lib/tripletex_api/api/productexternal_api.rb +155 -0
- data/lib/tripletex_api/api/productunit_api.rb +146 -0
- data/lib/tripletex_api/api/project_api.rb +590 -0
- data/lib/tripletex_api/api/projectcategory_api.rb +250 -0
- data/lib/tripletex_api/api/projectorderline_api.rb +280 -0
- data/lib/tripletex_api/api/projectparticipant_api.rb +281 -0
- data/lib/tripletex_api/api/reminder_api.rb +163 -0
- data/lib/tripletex_api/api/salarypayslip_api.rb +220 -0
- data/lib/tripletex_api/api/salarysettings_api.rb +120 -0
- data/lib/tripletex_api/api/salarysettingsholiday_api.rb +333 -0
- data/lib/tripletex_api/api/salarytransaction_api.rb +179 -0
- data/lib/tripletex_api/api/salarytype_api.rb +146 -0
- data/lib/tripletex_api/api/supplier_api.rb +366 -0
- data/lib/tripletex_api/api/timesheetentry_api.rb +602 -0
- data/lib/tripletex_api/api/timesheetsettings_api.rb +71 -0
- data/lib/tripletex_api/api/timesheettime_clock_api.rb +378 -0
- data/lib/tripletex_api/api/timesheetweek_api.rb +308 -0
- data/lib/tripletex_api/api/tokenconsumer_api.rb +78 -0
- data/lib/tripletex_api/api/tokenemployee_api.rb +103 -0
- data/lib/tripletex_api/api/tokensession_api.rb +187 -0
- data/lib/tripletex_api/api/travel_expense_api.rb +727 -0
- data/lib/tripletex_api/api/travel_expenseaccommodation_allowance_api.rb +321 -0
- data/lib/tripletex_api/api/travel_expensecost_api.rb +321 -0
- data/lib/tripletex_api/api/travel_expensecost_category_api.rb +140 -0
- data/lib/tripletex_api/api/travel_expensemileage_allowance_api.rb +330 -0
- data/lib/tripletex_api/api/travel_expensepassenger_api.rb +294 -0
- data/lib/tripletex_api/api/travel_expensepayment_type_api.rb +140 -0
- data/lib/tripletex_api/api/travel_expenseper_diem_compensation_api.rb +336 -0
- data/lib/tripletex_api/api/travel_expenserate_api.rb +167 -0
- data/lib/tripletex_api/api/travel_expenserate_category_api.rb +173 -0
- data/lib/tripletex_api/api/travel_expenserate_category_group_api.rb +146 -0
- data/lib/tripletex_api/api_client.rb +390 -0
- data/lib/tripletex_api/api_error.rb +38 -0
- data/lib/tripletex_api/configuration.rb +209 -0
- data/lib/tripletex_api/models/abstract_dto.rb +197 -0
- data/lib/tripletex_api/models/accommodation_allowance.rb +322 -0
- data/lib/tripletex_api/models/account.rb +545 -0
- data/lib/tripletex_api/models/accounting_period.rb +305 -0
- data/lib/tripletex_api/models/activity.rb +320 -0
- data/lib/tripletex_api/models/address.rb +396 -0
- data/lib/tripletex_api/models/altinn_company_module.rb +273 -0
- data/lib/tripletex_api/models/annual_account.rb +244 -0
- data/lib/tripletex_api/models/api_consumer.rb +292 -0
- data/lib/tripletex_api/models/api_error.rb +244 -0
- data/lib/tripletex_api/models/api_validation_message.rb +197 -0
- data/lib/tripletex_api/models/app_specific.rb +256 -0
- data/lib/tripletex_api/models/bank.rb +288 -0
- data/lib/tripletex_api/models/bank_reconciliation.rb +310 -0
- data/lib/tripletex_api/models/bank_reconciliation_adjustment.rb +258 -0
- data/lib/tripletex_api/models/bank_reconciliation_match.rb +298 -0
- data/lib/tripletex_api/models/bank_reconciliation_payment_type.rb +274 -0
- data/lib/tripletex_api/models/bank_statement.rb +269 -0
- data/lib/tripletex_api/models/bank_transaction.rb +269 -0
- data/lib/tripletex_api/models/banner.rb +374 -0
- data/lib/tripletex_api/models/change.rb +239 -0
- data/lib/tripletex_api/models/close_group.rb +237 -0
- data/lib/tripletex_api/models/company.rb +454 -0
- data/lib/tripletex_api/models/company_auto_complete_dto.rb +346 -0
- data/lib/tripletex_api/models/company_holiday.rb +264 -0
- data/lib/tripletex_api/models/consumer_token.rb +260 -0
- data/lib/tripletex_api/models/contact.rb +369 -0
- data/lib/tripletex_api/models/cost.rb +401 -0
- data/lib/tripletex_api/models/country.rb +272 -0
- data/lib/tripletex_api/models/csv_record.rb +208 -0
- data/lib/tripletex_api/models/currency.rb +267 -0
- data/lib/tripletex_api/models/customer.rb +574 -0
- data/lib/tripletex_api/models/customer_category.rb +318 -0
- data/lib/tripletex_api/models/customer_tripletex_account.rb +429 -0
- data/lib/tripletex_api/models/department.rb +302 -0
- data/lib/tripletex_api/models/division.rb +311 -0
- data/lib/tripletex_api/models/document.rb +285 -0
- data/lib/tripletex_api/models/employee.rb +609 -0
- data/lib/tripletex_api/models/employee_token.rb +269 -0
- data/lib/tripletex_api/models/employment.rb +305 -0
- data/lib/tripletex_api/models/employment_details.rb +391 -0
- data/lib/tripletex_api/models/employment_type.rb +315 -0
- data/lib/tripletex_api/models/entitlement.rb +272 -0
- data/lib/tripletex_api/models/event_info_description.rb +197 -0
- data/lib/tripletex_api/models/external_product.rb +398 -0
- data/lib/tripletex_api/models/import_config_dto.rb +212 -0
- data/lib/tripletex_api/models/import_report_dto.rb +326 -0
- data/lib/tripletex_api/models/international_id.rb +256 -0
- data/lib/tripletex_api/models/inventory.rb +315 -0
- data/lib/tripletex_api/models/invoice.rb +552 -0
- data/lib/tripletex_api/models/job.rb +239 -0
- data/lib/tripletex_api/models/job_detail_dto.rb +226 -0
- data/lib/tripletex_api/models/leave_of_absence.rb +314 -0
- data/lib/tripletex_api/models/leave_of_absence_type.rb +315 -0
- data/lib/tripletex_api/models/ledger_account.rb +263 -0
- data/lib/tripletex_api/models/link.rb +239 -0
- data/lib/tripletex_api/models/list_response_accommodation_allowance.rb +228 -0
- data/lib/tripletex_api/models/list_response_account.rb +228 -0
- data/lib/tripletex_api/models/list_response_accounting_period.rb +228 -0
- data/lib/tripletex_api/models/list_response_activity.rb +228 -0
- data/lib/tripletex_api/models/list_response_address.rb +228 -0
- data/lib/tripletex_api/models/list_response_annual_account.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_reconciliation.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_reconciliation_adjustment.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_reconciliation_match.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_reconciliation_payment_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_statement.rb +228 -0
- data/lib/tripletex_api/models/list_response_bank_transaction.rb +228 -0
- data/lib/tripletex_api/models/list_response_banner.rb +228 -0
- data/lib/tripletex_api/models/list_response_close_group.rb +228 -0
- data/lib/tripletex_api/models/list_response_company.rb +228 -0
- data/lib/tripletex_api/models/list_response_company_auto_complete_dto.rb +228 -0
- data/lib/tripletex_api/models/list_response_company_holiday.rb +228 -0
- data/lib/tripletex_api/models/list_response_contact.rb +228 -0
- data/lib/tripletex_api/models/list_response_cost.rb +228 -0
- data/lib/tripletex_api/models/list_response_country.rb +228 -0
- data/lib/tripletex_api/models/list_response_currency.rb +228 -0
- data/lib/tripletex_api/models/list_response_customer.rb +228 -0
- data/lib/tripletex_api/models/list_response_customer_category.rb +228 -0
- data/lib/tripletex_api/models/list_response_department.rb +228 -0
- data/lib/tripletex_api/models/list_response_division.rb +228 -0
- data/lib/tripletex_api/models/list_response_employee.rb +228 -0
- data/lib/tripletex_api/models/list_response_employment.rb +228 -0
- data/lib/tripletex_api/models/list_response_employment_details.rb +228 -0
- data/lib/tripletex_api/models/list_response_employment_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_entitlement.rb +228 -0
- data/lib/tripletex_api/models/list_response_external_product.rb +228 -0
- data/lib/tripletex_api/models/list_response_inventory.rb +228 -0
- data/lib/tripletex_api/models/list_response_invoice.rb +228 -0
- data/lib/tripletex_api/models/list_response_leave_of_absence.rb +228 -0
- data/lib/tripletex_api/models/list_response_leave_of_absence_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_ledger_account.rb +228 -0
- data/lib/tripletex_api/models/list_response_mileage_allowance.rb +228 -0
- data/lib/tripletex_api/models/list_response_municipality.rb +228 -0
- data/lib/tripletex_api/models/list_response_next_of_kin.rb +228 -0
- data/lib/tripletex_api/models/list_response_notification.rb +228 -0
- data/lib/tripletex_api/models/list_response_occupation_code.rb +228 -0
- data/lib/tripletex_api/models/list_response_order.rb +228 -0
- data/lib/tripletex_api/models/list_response_order_line.rb +228 -0
- data/lib/tripletex_api/models/list_response_order_offer.rb +228 -0
- data/lib/tripletex_api/models/list_response_passenger.rb +228 -0
- data/lib/tripletex_api/models/list_response_payment_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_payment_type_out.rb +228 -0
- data/lib/tripletex_api/models/list_response_payslip.rb +228 -0
- data/lib/tripletex_api/models/list_response_per_diem_compensation.rb +228 -0
- data/lib/tripletex_api/models/list_response_person_auto_complete_dto.rb +228 -0
- data/lib/tripletex_api/models/list_response_posting.rb +228 -0
- data/lib/tripletex_api/models/list_response_product.rb +228 -0
- data/lib/tripletex_api/models/list_response_product_unit.rb +228 -0
- data/lib/tripletex_api/models/list_response_project.rb +228 -0
- data/lib/tripletex_api/models/list_response_project_category.rb +228 -0
- data/lib/tripletex_api/models/list_response_project_invoice_details.rb +228 -0
- data/lib/tripletex_api/models/list_response_project_order_line.rb +228 -0
- data/lib/tripletex_api/models/list_response_project_participant.rb +228 -0
- data/lib/tripletex_api/models/list_response_prospect.rb +228 -0
- data/lib/tripletex_api/models/list_response_reminder.rb +228 -0
- data/lib/tripletex_api/models/list_response_remuneration_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_salary_specification.rb +228 -0
- data/lib/tripletex_api/models/list_response_salary_transaction.rb +228 -0
- data/lib/tripletex_api/models/list_response_salary_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_search_completion_dto.rb +228 -0
- data/lib/tripletex_api/models/list_response_standard_time.rb +228 -0
- data/lib/tripletex_api/models/list_response_subscription.rb +228 -0
- data/lib/tripletex_api/models/list_response_supplier.rb +228 -0
- data/lib/tripletex_api/models/list_response_supplier_balance.rb +228 -0
- data/lib/tripletex_api/models/list_response_time_clock.rb +228 -0
- data/lib/tripletex_api/models/list_response_timesheet_entry.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_cost_category.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_expense.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_expense_rate.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_expense_rate_category.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_expense_rate_category_group.rb +228 -0
- data/lib/tripletex_api/models/list_response_travel_payment_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_vat_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_voucher.rb +228 -0
- data/lib/tripletex_api/models/list_response_voucher_type.rb +228 -0
- data/lib/tripletex_api/models/list_response_week.rb +228 -0
- data/lib/tripletex_api/models/list_response_weekly_status.rb +228 -0
- data/lib/tripletex_api/models/list_response_working_hours_scheme.rb +228 -0
- data/lib/tripletex_api/models/logged_in_user_info_dto.rb +224 -0
- data/lib/tripletex_api/models/maritime_employment.rb +266 -0
- data/lib/tripletex_api/models/maventa_event_data_dto.rb +258 -0
- data/lib/tripletex_api/models/maventa_status_dto.rb +235 -0
- data/lib/tripletex_api/models/mileage_allowance.rb +336 -0
- data/lib/tripletex_api/models/mobile_app_login.rb +239 -0
- data/lib/tripletex_api/models/modules.rb +328 -0
- data/lib/tripletex_api/models/monthly_status.rb +316 -0
- data/lib/tripletex_api/models/municipality.rb +292 -0
- data/lib/tripletex_api/models/next_of_kin.rb +360 -0
- data/lib/tripletex_api/models/notification.rb +355 -0
- data/lib/tripletex_api/models/occupation_code.rb +267 -0
- data/lib/tripletex_api/models/order.rb +788 -0
- data/lib/tripletex_api/models/order_line.rb +385 -0
- data/lib/tripletex_api/models/order_offer.rb +270 -0
- data/lib/tripletex_api/models/passenger.rb +259 -0
- data/lib/tripletex_api/models/payment_type.rb +295 -0
- data/lib/tripletex_api/models/payment_type_out.rb +358 -0
- data/lib/tripletex_api/models/payslip.rb +332 -0
- data/lib/tripletex_api/models/per_diem_compensation.rb +398 -0
- data/lib/tripletex_api/models/person_auto_complete_dto.rb +357 -0
- data/lib/tripletex_api/models/posting.rb +440 -0
- data/lib/tripletex_api/models/product.rb +450 -0
- data/lib/tripletex_api/models/product_unit.rb +292 -0
- data/lib/tripletex_api/models/project.rb +528 -0
- data/lib/tripletex_api/models/project_category.rb +293 -0
- data/lib/tripletex_api/models/project_invoice_details.rb +413 -0
- data/lib/tripletex_api/models/project_order_line.rb +371 -0
- data/lib/tripletex_api/models/project_participant.rb +246 -0
- data/lib/tripletex_api/models/prospect.rb +448 -0
- data/lib/tripletex_api/models/reminder.rb +509 -0
- data/lib/tripletex_api/models/remuneration_type.rb +315 -0
- data/lib/tripletex_api/models/response_wrapper_accommodation_allowance.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_account.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_accounting_period.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_activity.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_address.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_altinn_company_module.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_annual_account.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_api_consumer.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_app_specific.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_bank_reconciliation.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_bank_reconciliation_match.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_bank_reconciliation_payment_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_bank_statement.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_bank_transaction.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_banner.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_boolean.rb +190 -0
- data/lib/tripletex_api/models/response_wrapper_close_group.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_company.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_company_holiday.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_consumer_token.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_contact.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_cost.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_country.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_currency.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_customer.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_customer_category.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_department.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_division.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_document.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_double.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_employee.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_employee_token.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_employment.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_employment_details.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_entitlement.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_external_product.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_integer.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_inventory.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_invoice.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_leave_of_absence.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_list_job.rb +190 -0
- data/lib/tripletex_api/models/response_wrapper_logged_in_user_info_dto.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_map_string_event_info_description.rb +190 -0
- data/lib/tripletex_api/models/response_wrapper_mileage_allowance.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_modules.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_monthly_status.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_next_of_kin.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_notification.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_object.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_order.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_order_line.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_order_offer.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_passenger.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_payment_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_payment_type_out.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_payslip.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_per_diem_compensation.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_posting.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_product.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_product_unit.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_project.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_project_category.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_project_invoice_details.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_project_order_line.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_project_participant.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_prospect.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_reminder.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_salary_settings.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_salary_specification.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_salary_transaction.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_salary_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_session_token.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_standard_time.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_string.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_subscription.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_supplier.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_system_message.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_time_clock.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_timesheet_entry.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_timesheet_settings.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_cost_category.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_expense.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_expense_rate.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_expense_rate_category.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_expense_rate_category_group.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_travel_payment_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_trip_dto.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_tripletex_account_return.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_unread_count_dto.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_vat_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_voucher.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_voucher_type.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_week.rb +188 -0
- data/lib/tripletex_api/models/response_wrapper_weekly_status.rb +188 -0
- data/lib/tripletex_api/models/result.rb +320 -0
- data/lib/tripletex_api/models/salary_settings.rb +279 -0
- data/lib/tripletex_api/models/salary_specification.rb +331 -0
- data/lib/tripletex_api/models/salary_transaction.rb +284 -0
- data/lib/tripletex_api/models/salary_type.rb +276 -0
- data/lib/tripletex_api/models/search_completion_dto.rb +301 -0
- data/lib/tripletex_api/models/session_token.rb +299 -0
- data/lib/tripletex_api/models/smart_scan_webhook.rb +206 -0
- data/lib/tripletex_api/models/standard_time.rb +254 -0
- data/lib/tripletex_api/models/subscription.rb +377 -0
- data/lib/tripletex_api/models/supplier.rb +553 -0
- data/lib/tripletex_api/models/supplier_balance.rb +236 -0
- data/lib/tripletex_api/models/system_message.rb +188 -0
- data/lib/tripletex_api/models/time_clock.rb +320 -0
- data/lib/tripletex_api/models/timesheet_entry.rb +367 -0
- data/lib/tripletex_api/models/timesheet_entry_search_response.rb +237 -0
- data/lib/tripletex_api/models/timesheet_settings.rb +239 -0
- data/lib/tripletex_api/models/travel_cost_category.rb +312 -0
- data/lib/tripletex_api/models/travel_details.rb +348 -0
- data/lib/tripletex_api/models/travel_expense.rb +644 -0
- data/lib/tripletex_api/models/travel_expense_rate.rb +281 -0
- data/lib/tripletex_api/models/travel_expense_rate_category.rb +396 -0
- data/lib/tripletex_api/models/travel_expense_rate_category_group.rb +265 -0
- data/lib/tripletex_api/models/travel_payment_type.rb +292 -0
- data/lib/tripletex_api/models/trigger_dto.rb +233 -0
- data/lib/tripletex_api/models/trip_dto.rb +206 -0
- data/lib/tripletex_api/models/tripletex_account.rb +424 -0
- data/lib/tripletex_api/models/tripletex_account_return.rb +224 -0
- data/lib/tripletex_api/models/unread_count_dto.rb +197 -0
- data/lib/tripletex_api/models/vat_type.rb +276 -0
- data/lib/tripletex_api/models/vntc_status_dto.rb +258 -0
- data/lib/tripletex_api/models/voucher.rb +362 -0
- data/lib/tripletex_api/models/voucher_search_response.rb +238 -0
- data/lib/tripletex_api/models/voucher_type.rb +242 -0
- data/lib/tripletex_api/models/week.rb +295 -0
- data/lib/tripletex_api/models/weekly_status.rb +289 -0
- data/lib/tripletex_api/models/working_hours_scheme.rb +315 -0
- data/lib/tripletex_api/version.rb +15 -0
- data/spec/api/activity_api_spec.rb +89 -0
- data/spec/api/address_api_spec.rb +82 -0
- data/spec/api/bank_api_spec.rb +52 -0
- data/spec/api/bankreconciliation_api_spec.rb +143 -0
- data/spec/api/bankreconciliationmatch_api_spec.rb +114 -0
- data/spec/api/bankreconciliationpayment_type_api_spec.rb +65 -0
- data/spec/api/bankstatement_api_spec.rb +90 -0
- data/spec/api/bankstatementtransaction_api_spec.rb +77 -0
- data/spec/api/company_api_spec.rb +90 -0
- data/spec/api/companyaltinn_api_spec.rb +59 -0
- data/spec/api/contact_api_spec.rb +93 -0
- data/spec/api/country_api_spec.rb +65 -0
- data/spec/api/crmprospect_api_spec.rb +77 -0
- data/spec/api/currency_api_spec.rb +65 -0
- data/spec/api/customer_api_spec.rb +119 -0
- data/spec/api/customercategory_api_spec.rb +93 -0
- data/spec/api/department_api_spec.rb +116 -0
- data/spec/api/division_api_spec.rb +99 -0
- data/spec/api/document_api_spec.rb +60 -0
- data/spec/api/employee_api_spec.rb +108 -0
- data/spec/api/employeeemployment_api_spec.rb +89 -0
- data/spec/api/employeeemploymentdetails_api_spec.rb +89 -0
- data/spec/api/employeeemploymentemployment_type_api_spec.rb +96 -0
- data/spec/api/employeeemploymentleave_of_absence_api_spec.rb +85 -0
- data/spec/api/employeeemploymentleave_of_absence_type_api_spec.rb +50 -0
- data/spec/api/employeeemploymentoccupation_code_api_spec.rb +52 -0
- data/spec/api/employeeemploymentremuneration_type_api_spec.rb +50 -0
- data/spec/api/employeeemploymentworking_hours_scheme_api_spec.rb +50 -0
- data/spec/api/employeeentitlement_api_spec.rb +109 -0
- data/spec/api/employeenext_of_kin_api_spec.rb +89 -0
- data/spec/api/employeestandard_time_api_spec.rb +89 -0
- data/spec/api/event_api_spec.rb +47 -0
- data/spec/api/eventsubscription_api_spec.rb +100 -0
- data/spec/api/inventory_api_spec.rb +67 -0
- data/spec/api/invoice_api_spec.rb +160 -0
- data/spec/api/invoicedetails_api_spec.rb +66 -0
- data/spec/api/invoicepayment_type_api_spec.rb +65 -0
- data/spec/api/ledger_api_spec.rb +83 -0
- data/spec/api/ledgeraccount_api_spec.rb +140 -0
- data/spec/api/ledgeraccounting_period_api_spec.rb +70 -0
- data/spec/api/ledgerannual_account_api_spec.rb +66 -0
- data/spec/api/ledgerclose_group_api_spec.rb +66 -0
- data/spec/api/ledgerpayment_type_out_api_spec.rb +127 -0
- data/spec/api/ledgerposting_api_spec.rb +96 -0
- data/spec/api/ledgervat_type_api_spec.rb +65 -0
- data/spec/api/ledgervoucher_api_spec.rb +236 -0
- data/spec/api/ledgervoucher_type_api_spec.rb +64 -0
- data/spec/api/municipality_api_spec.rb +50 -0
- data/spec/api/order_api_spec.rb +110 -0
- data/spec/api/orderorderline_api_spec.rb +84 -0
- data/spec/api/product_api_spec.rb +104 -0
- data/spec/api/productexternal_api_spec.rb +69 -0
- data/spec/api/productunit_api_spec.rb +67 -0
- data/spec/api/project_api_spec.rb +179 -0
- data/spec/api/projectcategory_api_spec.rb +92 -0
- data/spec/api/projectorderline_api_spec.rb +97 -0
- data/spec/api/projectparticipant_api_spec.rb +97 -0
- data/spec/api/reminder_api_spec.rb +70 -0
- data/spec/api/salarypayslip_api_spec.rb +86 -0
- data/spec/api/salarysettings_api_spec.rb +59 -0
- data/spec/api/salarysettingsholiday_api_spec.rb +111 -0
- data/spec/api/salarytransaction_api_spec.rb +73 -0
- data/spec/api/salarytype_api_spec.rb +67 -0
- data/spec/api/supplier_api_spec.rb +122 -0
- data/spec/api/timesheetentry_api_spec.rb +180 -0
- data/spec/api/timesheetsettings_api_spec.rb +47 -0
- data/spec/api/timesheettime_clock_api_spec.rb +125 -0
- data/spec/api/timesheetweek_api_spec.rb +110 -0
- data/spec/api/tokenconsumer_api_spec.rb +48 -0
- data/spec/api/tokenemployee_api_spec.rb +51 -0
- data/spec/api/tokensession_api_spec.rb +73 -0
- data/spec/api/travel_expense_api_spec.rb +205 -0
- data/spec/api/travel_expenseaccommodation_allowance_api_spec.rb +111 -0
- data/spec/api/travel_expensecost_api_spec.rb +111 -0
- data/spec/api/travel_expensecost_category_api_spec.rb +65 -0
- data/spec/api/travel_expensemileage_allowance_api_spec.rb +114 -0
- data/spec/api/travel_expensepassenger_api_spec.rb +102 -0
- data/spec/api/travel_expensepayment_type_api_spec.rb +65 -0
- data/spec/api/travel_expenseper_diem_compensation_api_spec.rb +115 -0
- data/spec/api/travel_expenserate_api_spec.rb +73 -0
- data/spec/api/travel_expenserate_category_api_spec.rb +75 -0
- data/spec/api/travel_expenserate_category_group_api_spec.rb +67 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/abstract_dto_spec.rb +48 -0
- data/spec/models/accommodation_allowance_spec.rb +114 -0
- data/spec/models/account_spec.rb +172 -0
- data/spec/models/accounting_period_spec.rb +90 -0
- data/spec/models/activity_spec.rb +102 -0
- data/spec/models/address_spec.rb +102 -0
- data/spec/models/altinn_company_module_spec.rb +72 -0
- data/spec/models/annual_account_spec.rb +78 -0
- data/spec/models/api_consumer_spec.rb +72 -0
- data/spec/models/api_error_spec.rb +78 -0
- data/spec/models/api_validation_message_spec.rb +48 -0
- data/spec/models/app_specific_spec.rb +78 -0
- data/spec/models/bank_reconciliation_adjustment_spec.rb +72 -0
- data/spec/models/bank_reconciliation_match_spec.rb +88 -0
- data/spec/models/bank_reconciliation_payment_type_spec.rb +84 -0
- data/spec/models/bank_reconciliation_spec.rb +114 -0
- data/spec/models/bank_spec.rb +82 -0
- data/spec/models/bank_statement_spec.rb +90 -0
- data/spec/models/bank_transaction_spec.rb +84 -0
- data/spec/models/banner_spec.rb +102 -0
- data/spec/models/change_spec.rb +58 -0
- data/spec/models/close_group_spec.rb +72 -0
- data/spec/models/company_auto_complete_dto_spec.rb +136 -0
- data/spec/models/company_holiday_spec.rb +90 -0
- data/spec/models/company_spec.rb +124 -0
- data/spec/models/consumer_token_spec.rb +78 -0
- data/spec/models/contact_spec.rb +90 -0
- data/spec/models/cost_spec.rb +156 -0
- data/spec/models/country_spec.rb +84 -0
- data/spec/models/csv_record_spec.rb +54 -0
- data/spec/models/currency_spec.rb +72 -0
- data/spec/models/customer_category_spec.rb +84 -0
- data/spec/models/customer_spec.rb +186 -0
- data/spec/models/customer_tripletex_account_spec.rb +136 -0
- data/spec/models/department_spec.rb +78 -0
- data/spec/models/division_spec.rb +90 -0
- data/spec/models/document_spec.rb +72 -0
- data/spec/models/employee_spec.rb +172 -0
- data/spec/models/employee_token_spec.rb +84 -0
- data/spec/models/employment_details_spec.rb +144 -0
- data/spec/models/employment_spec.rb +102 -0
- data/spec/models/employment_type_spec.rb +82 -0
- data/spec/models/entitlement_spec.rb +84 -0
- data/spec/models/event_info_description_spec.rb +48 -0
- data/spec/models/external_product_spec.rb +144 -0
- data/spec/models/import_config_dto_spec.rb +54 -0
- data/spec/models/import_report_dto_spec.rb +126 -0
- data/spec/models/international_id_spec.rb +58 -0
- data/spec/models/inventory_spec.rb +84 -0
- data/spec/models/invoice_spec.rb +214 -0
- data/spec/models/job_detail_dto_spec.rb +66 -0
- data/spec/models/job_spec.rb +72 -0
- data/spec/models/leave_of_absence_spec.rb +102 -0
- data/spec/models/leave_of_absence_type_spec.rb +82 -0
- data/spec/models/ledger_account_spec.rb +90 -0
- data/spec/models/link_spec.rb +58 -0
- data/spec/models/list_response_accommodation_allowance_spec.rb +66 -0
- data/spec/models/list_response_account_spec.rb +66 -0
- data/spec/models/list_response_accounting_period_spec.rb +66 -0
- data/spec/models/list_response_activity_spec.rb +66 -0
- data/spec/models/list_response_address_spec.rb +66 -0
- data/spec/models/list_response_annual_account_spec.rb +66 -0
- data/spec/models/list_response_bank_reconciliation_adjustment_spec.rb +66 -0
- data/spec/models/list_response_bank_reconciliation_match_spec.rb +66 -0
- data/spec/models/list_response_bank_reconciliation_payment_type_spec.rb +66 -0
- data/spec/models/list_response_bank_reconciliation_spec.rb +66 -0
- data/spec/models/list_response_bank_spec.rb +66 -0
- data/spec/models/list_response_bank_statement_spec.rb +66 -0
- data/spec/models/list_response_bank_transaction_spec.rb +66 -0
- data/spec/models/list_response_banner_spec.rb +66 -0
- data/spec/models/list_response_close_group_spec.rb +66 -0
- data/spec/models/list_response_company_auto_complete_dto_spec.rb +66 -0
- data/spec/models/list_response_company_holiday_spec.rb +66 -0
- data/spec/models/list_response_company_spec.rb +66 -0
- data/spec/models/list_response_contact_spec.rb +66 -0
- data/spec/models/list_response_cost_spec.rb +66 -0
- data/spec/models/list_response_country_spec.rb +66 -0
- data/spec/models/list_response_currency_spec.rb +66 -0
- data/spec/models/list_response_customer_category_spec.rb +66 -0
- data/spec/models/list_response_customer_spec.rb +66 -0
- data/spec/models/list_response_department_spec.rb +66 -0
- data/spec/models/list_response_division_spec.rb +66 -0
- data/spec/models/list_response_employee_spec.rb +66 -0
- data/spec/models/list_response_employment_details_spec.rb +66 -0
- data/spec/models/list_response_employment_spec.rb +66 -0
- data/spec/models/list_response_employment_type_spec.rb +66 -0
- data/spec/models/list_response_entitlement_spec.rb +66 -0
- data/spec/models/list_response_external_product_spec.rb +66 -0
- data/spec/models/list_response_inventory_spec.rb +66 -0
- data/spec/models/list_response_invoice_spec.rb +66 -0
- data/spec/models/list_response_leave_of_absence_spec.rb +66 -0
- data/spec/models/list_response_leave_of_absence_type_spec.rb +66 -0
- data/spec/models/list_response_ledger_account_spec.rb +66 -0
- data/spec/models/list_response_mileage_allowance_spec.rb +66 -0
- data/spec/models/list_response_municipality_spec.rb +66 -0
- data/spec/models/list_response_next_of_kin_spec.rb +66 -0
- data/spec/models/list_response_notification_spec.rb +66 -0
- data/spec/models/list_response_occupation_code_spec.rb +66 -0
- data/spec/models/list_response_order_line_spec.rb +66 -0
- data/spec/models/list_response_order_offer_spec.rb +66 -0
- data/spec/models/list_response_order_spec.rb +66 -0
- data/spec/models/list_response_passenger_spec.rb +66 -0
- data/spec/models/list_response_payment_type_out_spec.rb +66 -0
- data/spec/models/list_response_payment_type_spec.rb +66 -0
- data/spec/models/list_response_payslip_spec.rb +66 -0
- data/spec/models/list_response_per_diem_compensation_spec.rb +66 -0
- data/spec/models/list_response_person_auto_complete_dto_spec.rb +66 -0
- data/spec/models/list_response_posting_spec.rb +66 -0
- data/spec/models/list_response_product_spec.rb +66 -0
- data/spec/models/list_response_product_unit_spec.rb +66 -0
- data/spec/models/list_response_project_category_spec.rb +66 -0
- data/spec/models/list_response_project_invoice_details_spec.rb +66 -0
- data/spec/models/list_response_project_order_line_spec.rb +66 -0
- data/spec/models/list_response_project_participant_spec.rb +66 -0
- data/spec/models/list_response_project_spec.rb +66 -0
- data/spec/models/list_response_prospect_spec.rb +66 -0
- data/spec/models/list_response_reminder_spec.rb +66 -0
- data/spec/models/list_response_remuneration_type_spec.rb +66 -0
- data/spec/models/list_response_salary_specification_spec.rb +66 -0
- data/spec/models/list_response_salary_transaction_spec.rb +66 -0
- data/spec/models/list_response_salary_type_spec.rb +66 -0
- data/spec/models/list_response_search_completion_dto_spec.rb +66 -0
- data/spec/models/list_response_standard_time_spec.rb +66 -0
- data/spec/models/list_response_subscription_spec.rb +66 -0
- data/spec/models/list_response_supplier_balance_spec.rb +66 -0
- data/spec/models/list_response_supplier_spec.rb +66 -0
- data/spec/models/list_response_time_clock_spec.rb +66 -0
- data/spec/models/list_response_timesheet_entry_spec.rb +66 -0
- data/spec/models/list_response_travel_cost_category_spec.rb +66 -0
- data/spec/models/list_response_travel_expense_rate_category_group_spec.rb +66 -0
- data/spec/models/list_response_travel_expense_rate_category_spec.rb +66 -0
- data/spec/models/list_response_travel_expense_rate_spec.rb +66 -0
- data/spec/models/list_response_travel_expense_spec.rb +66 -0
- data/spec/models/list_response_travel_payment_type_spec.rb +66 -0
- data/spec/models/list_response_vat_type_spec.rb +66 -0
- data/spec/models/list_response_voucher_spec.rb +66 -0
- data/spec/models/list_response_voucher_type_spec.rb +66 -0
- data/spec/models/list_response_week_spec.rb +66 -0
- data/spec/models/list_response_weekly_status_spec.rb +66 -0
- data/spec/models/list_response_working_hours_scheme_spec.rb +66 -0
- data/spec/models/logged_in_user_info_dto_spec.rb +66 -0
- data/spec/models/maritime_employment_spec.rb +66 -0
- data/spec/models/maventa_event_data_dto_spec.rb +72 -0
- data/spec/models/maventa_status_dto_spec.rb +60 -0
- data/spec/models/mileage_allowance_spec.rb +126 -0
- data/spec/models/mobile_app_login_spec.rb +60 -0
- data/spec/models/modules_spec.rb +114 -0
- data/spec/models/monthly_status_spec.rb +120 -0
- data/spec/models/municipality_spec.rb +78 -0
- data/spec/models/next_of_kin_spec.rb +94 -0
- data/spec/models/notification_spec.rb +90 -0
- data/spec/models/occupation_code_spec.rb +72 -0
- data/spec/models/order_line_spec.rb +162 -0
- data/spec/models/order_offer_spec.rb +84 -0
- data/spec/models/order_spec.rb +282 -0
- data/spec/models/passenger_spec.rb +72 -0
- data/spec/models/payment_type_out_spec.rb +120 -0
- data/spec/models/payment_type_spec.rb +96 -0
- data/spec/models/payslip_spec.rb +120 -0
- data/spec/models/per_diem_compensation_spec.rb +142 -0
- data/spec/models/person_auto_complete_dto_spec.rb +142 -0
- data/spec/models/posting_spec.rb +186 -0
- data/spec/models/product_spec.rb +168 -0
- data/spec/models/product_unit_spec.rb +78 -0
- data/spec/models/project_category_spec.rb +78 -0
- data/spec/models/project_invoice_details_spec.rb +168 -0
- data/spec/models/project_order_line_spec.rb +150 -0
- data/spec/models/project_participant_spec.rb +78 -0
- data/spec/models/project_spec.rb +190 -0
- data/spec/models/prospect_spec.rb +162 -0
- data/spec/models/reminder_spec.rb +166 -0
- data/spec/models/remuneration_type_spec.rb +82 -0
- data/spec/models/response_wrapper_accommodation_allowance_spec.rb +42 -0
- data/spec/models/response_wrapper_account_spec.rb +42 -0
- data/spec/models/response_wrapper_accounting_period_spec.rb +42 -0
- data/spec/models/response_wrapper_activity_spec.rb +42 -0
- data/spec/models/response_wrapper_address_spec.rb +42 -0
- data/spec/models/response_wrapper_altinn_company_module_spec.rb +42 -0
- data/spec/models/response_wrapper_annual_account_spec.rb +42 -0
- data/spec/models/response_wrapper_api_consumer_spec.rb +42 -0
- data/spec/models/response_wrapper_app_specific_spec.rb +42 -0
- data/spec/models/response_wrapper_bank_reconciliation_match_spec.rb +42 -0
- data/spec/models/response_wrapper_bank_reconciliation_payment_type_spec.rb +42 -0
- data/spec/models/response_wrapper_bank_reconciliation_spec.rb +42 -0
- data/spec/models/response_wrapper_bank_statement_spec.rb +42 -0
- data/spec/models/response_wrapper_bank_transaction_spec.rb +42 -0
- data/spec/models/response_wrapper_banner_spec.rb +42 -0
- data/spec/models/response_wrapper_boolean_spec.rb +42 -0
- data/spec/models/response_wrapper_close_group_spec.rb +42 -0
- data/spec/models/response_wrapper_company_holiday_spec.rb +42 -0
- data/spec/models/response_wrapper_company_spec.rb +42 -0
- data/spec/models/response_wrapper_consumer_token_spec.rb +42 -0
- data/spec/models/response_wrapper_contact_spec.rb +42 -0
- data/spec/models/response_wrapper_cost_spec.rb +42 -0
- data/spec/models/response_wrapper_country_spec.rb +42 -0
- data/spec/models/response_wrapper_currency_spec.rb +42 -0
- data/spec/models/response_wrapper_customer_category_spec.rb +42 -0
- data/spec/models/response_wrapper_customer_spec.rb +42 -0
- data/spec/models/response_wrapper_department_spec.rb +42 -0
- data/spec/models/response_wrapper_division_spec.rb +42 -0
- data/spec/models/response_wrapper_document_spec.rb +42 -0
- data/spec/models/response_wrapper_double_spec.rb +42 -0
- data/spec/models/response_wrapper_employee_spec.rb +42 -0
- data/spec/models/response_wrapper_employee_token_spec.rb +42 -0
- data/spec/models/response_wrapper_employment_details_spec.rb +42 -0
- data/spec/models/response_wrapper_employment_spec.rb +42 -0
- data/spec/models/response_wrapper_entitlement_spec.rb +42 -0
- data/spec/models/response_wrapper_external_product_spec.rb +42 -0
- data/spec/models/response_wrapper_integer_spec.rb +42 -0
- data/spec/models/response_wrapper_inventory_spec.rb +42 -0
- data/spec/models/response_wrapper_invoice_spec.rb +42 -0
- data/spec/models/response_wrapper_leave_of_absence_spec.rb +42 -0
- data/spec/models/response_wrapper_list_job_spec.rb +42 -0
- data/spec/models/response_wrapper_logged_in_user_info_dto_spec.rb +42 -0
- data/spec/models/response_wrapper_map_string_event_info_description_spec.rb +42 -0
- data/spec/models/response_wrapper_mileage_allowance_spec.rb +42 -0
- data/spec/models/response_wrapper_modules_spec.rb +42 -0
- data/spec/models/response_wrapper_monthly_status_spec.rb +42 -0
- data/spec/models/response_wrapper_next_of_kin_spec.rb +42 -0
- data/spec/models/response_wrapper_notification_spec.rb +42 -0
- data/spec/models/response_wrapper_object_spec.rb +42 -0
- data/spec/models/response_wrapper_order_line_spec.rb +42 -0
- data/spec/models/response_wrapper_order_offer_spec.rb +42 -0
- data/spec/models/response_wrapper_order_spec.rb +42 -0
- data/spec/models/response_wrapper_passenger_spec.rb +42 -0
- data/spec/models/response_wrapper_payment_type_out_spec.rb +42 -0
- data/spec/models/response_wrapper_payment_type_spec.rb +42 -0
- data/spec/models/response_wrapper_payslip_spec.rb +42 -0
- data/spec/models/response_wrapper_per_diem_compensation_spec.rb +42 -0
- data/spec/models/response_wrapper_posting_spec.rb +42 -0
- data/spec/models/response_wrapper_product_spec.rb +42 -0
- data/spec/models/response_wrapper_product_unit_spec.rb +42 -0
- data/spec/models/response_wrapper_project_category_spec.rb +42 -0
- data/spec/models/response_wrapper_project_invoice_details_spec.rb +42 -0
- data/spec/models/response_wrapper_project_order_line_spec.rb +42 -0
- data/spec/models/response_wrapper_project_participant_spec.rb +42 -0
- data/spec/models/response_wrapper_project_spec.rb +42 -0
- data/spec/models/response_wrapper_prospect_spec.rb +42 -0
- data/spec/models/response_wrapper_reminder_spec.rb +42 -0
- data/spec/models/response_wrapper_salary_settings_spec.rb +42 -0
- data/spec/models/response_wrapper_salary_specification_spec.rb +42 -0
- data/spec/models/response_wrapper_salary_transaction_spec.rb +42 -0
- data/spec/models/response_wrapper_salary_type_spec.rb +42 -0
- data/spec/models/response_wrapper_session_token_spec.rb +42 -0
- data/spec/models/response_wrapper_standard_time_spec.rb +42 -0
- data/spec/models/response_wrapper_string_spec.rb +42 -0
- data/spec/models/response_wrapper_subscription_spec.rb +42 -0
- data/spec/models/response_wrapper_supplier_spec.rb +42 -0
- data/spec/models/response_wrapper_system_message_spec.rb +42 -0
- data/spec/models/response_wrapper_time_clock_spec.rb +42 -0
- data/spec/models/response_wrapper_timesheet_entry_spec.rb +42 -0
- data/spec/models/response_wrapper_timesheet_settings_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_cost_category_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_expense_rate_category_group_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_expense_rate_category_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_expense_rate_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_expense_spec.rb +42 -0
- data/spec/models/response_wrapper_travel_payment_type_spec.rb +42 -0
- data/spec/models/response_wrapper_trip_dto_spec.rb +42 -0
- data/spec/models/response_wrapper_tripletex_account_return_spec.rb +42 -0
- data/spec/models/response_wrapper_unread_count_dto_spec.rb +42 -0
- data/spec/models/response_wrapper_vat_type_spec.rb +42 -0
- data/spec/models/response_wrapper_voucher_spec.rb +42 -0
- data/spec/models/response_wrapper_voucher_type_spec.rb +42 -0
- data/spec/models/response_wrapper_week_spec.rb +42 -0
- data/spec/models/response_wrapper_weekly_status_spec.rb +42 -0
- data/spec/models/result_spec.rb +104 -0
- data/spec/models/salary_settings_spec.rb +76 -0
- data/spec/models/salary_specification_spec.rb +126 -0
- data/spec/models/salary_transaction_spec.rb +90 -0
- data/spec/models/salary_type_spec.rb +78 -0
- data/spec/models/search_completion_dto_spec.rb +106 -0
- data/spec/models/session_token_spec.rb +90 -0
- data/spec/models/smart_scan_webhook_spec.rb +54 -0
- data/spec/models/standard_time_spec.rb +78 -0
- data/spec/models/subscription_spec.rb +88 -0
- data/spec/models/supplier_balance_spec.rb +72 -0
- data/spec/models/supplier_spec.rb +192 -0
- data/spec/models/system_message_spec.rb +42 -0
- data/spec/models/time_clock_spec.rb +108 -0
- data/spec/models/timesheet_entry_search_response_spec.rb +72 -0
- data/spec/models/timesheet_entry_spec.rb +138 -0
- data/spec/models/timesheet_settings_spec.rb +72 -0
- data/spec/models/travel_cost_category_spec.rb +102 -0
- data/spec/models/travel_details_spec.rb +102 -0
- data/spec/models/travel_expense_rate_category_group_spec.rb +84 -0
- data/spec/models/travel_expense_rate_category_spec.rb +136 -0
- data/spec/models/travel_expense_rate_spec.rb +96 -0
- data/spec/models/travel_expense_spec.rb +280 -0
- data/spec/models/travel_payment_type_spec.rb +90 -0
- data/spec/models/trigger_dto_spec.rb +72 -0
- data/spec/models/trip_dto_spec.rb +54 -0
- data/spec/models/tripletex_account_return_spec.rb +66 -0
- data/spec/models/tripletex_account_spec.rb +138 -0
- data/spec/models/unread_count_dto_spec.rb +48 -0
- data/spec/models/vat_type_spec.rb +78 -0
- data/spec/models/vntc_status_dto_spec.rb +72 -0
- data/spec/models/voucher_search_response_spec.rb +72 -0
- data/spec/models/voucher_spec.rb +120 -0
- data/spec/models/voucher_type_spec.rb +66 -0
- data/spec/models/week_spec.rb +108 -0
- data/spec/models/working_hours_scheme_spec.rb +82 -0
- data/spec/spec_helper.rb +111 -0
- data/tripletex_api.gemspec +46 -0
- metadata +1862 -0
@@ -0,0 +1,78 @@
|
|
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>></code>. Example: <code>/v2/hours/>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/>withLoginAccess</code> or <code>/token/session/>whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/>withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic <base64encode('0:sessionToken')></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 TokenconsumerApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Get consumer token by token string.
|
24
|
+
#
|
25
|
+
# @param token Element ID
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [String] :fields Fields filter pattern
|
28
|
+
# @return [ResponseWrapperConsumerToken]
|
29
|
+
def get_by_token(token, opts = {})
|
30
|
+
data, _status_code, _headers = get_by_token_with_http_info(token, opts)
|
31
|
+
return data
|
32
|
+
end
|
33
|
+
|
34
|
+
# Get consumer token by token string.
|
35
|
+
#
|
36
|
+
# @param token Element ID
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [String] :fields Fields filter pattern
|
39
|
+
# @return [Array<(ResponseWrapperConsumerToken, Fixnum, Hash)>] ResponseWrapperConsumerToken data, response status code and response headers
|
40
|
+
def get_by_token_with_http_info(token, opts = {})
|
41
|
+
if @api_client.config.debugging
|
42
|
+
@api_client.config.logger.debug "Calling API: TokenconsumerApi.get_by_token ..."
|
43
|
+
end
|
44
|
+
# verify the required parameter 'token' is set
|
45
|
+
if @api_client.config.client_side_validation && token.nil?
|
46
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling TokenconsumerApi.get_by_token"
|
47
|
+
end
|
48
|
+
# resource path
|
49
|
+
local_var_path = "/token/consumer/byToken"
|
50
|
+
|
51
|
+
# query parameters
|
52
|
+
query_params = {}
|
53
|
+
query_params[:'token'] = token
|
54
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
55
|
+
|
56
|
+
# header parameters
|
57
|
+
header_params = {}
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['tokenAuthScheme']
|
65
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
66
|
+
:header_params => header_params,
|
67
|
+
:query_params => query_params,
|
68
|
+
:form_params => form_params,
|
69
|
+
:body => post_body,
|
70
|
+
:auth_names => auth_names,
|
71
|
+
:return_type => 'ResponseWrapperConsumerToken')
|
72
|
+
if @api_client.config.debugging
|
73
|
+
@api_client.config.logger.debug "API called: TokenconsumerApi#get_by_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
74
|
+
end
|
75
|
+
return data, status_code, headers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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>></code>. Example: <code>/v2/hours/>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/>withLoginAccess</code> or <code>/token/session/>whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/>withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic <base64encode('0:sessionToken')></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 TokenemployeeApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create an employee token. Only selected consumers are allowed
|
24
|
+
#
|
25
|
+
# @param token_name A user defined name for the new token
|
26
|
+
# @param consumer_name The name of the consumer
|
27
|
+
# @param employee_id The id of the employee
|
28
|
+
# @param company_owned Is the key company owned
|
29
|
+
# @param expiration_date Expiration date for the employeeToken
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [ResponseWrapperEmployeeToken]
|
32
|
+
def create(token_name, consumer_name, employee_id, company_owned, expiration_date, opts = {})
|
33
|
+
data, _status_code, _headers = create_with_http_info(token_name, consumer_name, employee_id, company_owned, expiration_date, opts)
|
34
|
+
return data
|
35
|
+
end
|
36
|
+
|
37
|
+
# Create an employee token. Only selected consumers are allowed
|
38
|
+
#
|
39
|
+
# @param token_name A user defined name for the new token
|
40
|
+
# @param consumer_name The name of the consumer
|
41
|
+
# @param employee_id The id of the employee
|
42
|
+
# @param company_owned Is the key company owned
|
43
|
+
# @param expiration_date Expiration date for the employeeToken
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @return [Array<(ResponseWrapperEmployeeToken, Fixnum, Hash)>] ResponseWrapperEmployeeToken data, response status code and response headers
|
46
|
+
def create_with_http_info(token_name, consumer_name, employee_id, company_owned, expiration_date, opts = {})
|
47
|
+
if @api_client.config.debugging
|
48
|
+
@api_client.config.logger.debug "Calling API: TokenemployeeApi.create ..."
|
49
|
+
end
|
50
|
+
# verify the required parameter 'token_name' is set
|
51
|
+
if @api_client.config.client_side_validation && token_name.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'token_name' when calling TokenemployeeApi.create"
|
53
|
+
end
|
54
|
+
# verify the required parameter 'consumer_name' is set
|
55
|
+
if @api_client.config.client_side_validation && consumer_name.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'consumer_name' when calling TokenemployeeApi.create"
|
57
|
+
end
|
58
|
+
# verify the required parameter 'employee_id' is set
|
59
|
+
if @api_client.config.client_side_validation && employee_id.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'employee_id' when calling TokenemployeeApi.create"
|
61
|
+
end
|
62
|
+
# verify the required parameter 'company_owned' is set
|
63
|
+
if @api_client.config.client_side_validation && company_owned.nil?
|
64
|
+
fail ArgumentError, "Missing the required parameter 'company_owned' when calling TokenemployeeApi.create"
|
65
|
+
end
|
66
|
+
# verify the required parameter 'expiration_date' is set
|
67
|
+
if @api_client.config.client_side_validation && expiration_date.nil?
|
68
|
+
fail ArgumentError, "Missing the required parameter 'expiration_date' when calling TokenemployeeApi.create"
|
69
|
+
end
|
70
|
+
# resource path
|
71
|
+
local_var_path = "/token/employee/:create"
|
72
|
+
|
73
|
+
# query parameters
|
74
|
+
query_params = {}
|
75
|
+
query_params[:'tokenName'] = token_name
|
76
|
+
query_params[:'consumerName'] = consumer_name
|
77
|
+
query_params[:'employeeId'] = employee_id
|
78
|
+
query_params[:'companyOwned'] = company_owned
|
79
|
+
query_params[:'expirationDate'] = expiration_date
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
|
84
|
+
# form parameters
|
85
|
+
form_params = {}
|
86
|
+
|
87
|
+
# http body (model)
|
88
|
+
post_body = nil
|
89
|
+
auth_names = ['tokenAuthScheme']
|
90
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
91
|
+
:header_params => header_params,
|
92
|
+
:query_params => query_params,
|
93
|
+
:form_params => form_params,
|
94
|
+
:body => post_body,
|
95
|
+
:auth_names => auth_names,
|
96
|
+
:return_type => 'ResponseWrapperEmployeeToken')
|
97
|
+
if @api_client.config.debugging
|
98
|
+
@api_client.config.logger.debug "API called: TokenemployeeApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
99
|
+
end
|
100
|
+
return data, status_code, headers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,187 @@
|
|
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>></code>. Example: <code>/v2/hours/>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/>withLoginAccess</code> or <code>/token/session/>whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/>withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic <base64encode('0:sessionToken')></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 TokensessionApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# Create session token.
|
24
|
+
#
|
25
|
+
# @param consumer_token Token of the API consumer
|
26
|
+
# @param employee_token The employees token
|
27
|
+
# @param expiration_date Expiration date for the combined token
|
28
|
+
# @param [Hash] opts the optional parameters
|
29
|
+
# @return [ResponseWrapperSessionToken]
|
30
|
+
def create(consumer_token, employee_token, expiration_date, opts = {})
|
31
|
+
data, _status_code, _headers = create_with_http_info(consumer_token, employee_token, expiration_date, opts)
|
32
|
+
return data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Create session token.
|
36
|
+
#
|
37
|
+
# @param consumer_token Token of the API consumer
|
38
|
+
# @param employee_token The employees token
|
39
|
+
# @param expiration_date Expiration date for the combined token
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [Array<(ResponseWrapperSessionToken, Fixnum, Hash)>] ResponseWrapperSessionToken data, response status code and response headers
|
42
|
+
def create_with_http_info(consumer_token, employee_token, expiration_date, opts = {})
|
43
|
+
if @api_client.config.debugging
|
44
|
+
@api_client.config.logger.debug "Calling API: TokensessionApi.create ..."
|
45
|
+
end
|
46
|
+
# verify the required parameter 'consumer_token' is set
|
47
|
+
if @api_client.config.client_side_validation && consumer_token.nil?
|
48
|
+
fail ArgumentError, "Missing the required parameter 'consumer_token' when calling TokensessionApi.create"
|
49
|
+
end
|
50
|
+
# verify the required parameter 'employee_token' is set
|
51
|
+
if @api_client.config.client_side_validation && employee_token.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'employee_token' when calling TokensessionApi.create"
|
53
|
+
end
|
54
|
+
# verify the required parameter 'expiration_date' is set
|
55
|
+
if @api_client.config.client_side_validation && expiration_date.nil?
|
56
|
+
fail ArgumentError, "Missing the required parameter 'expiration_date' when calling TokensessionApi.create"
|
57
|
+
end
|
58
|
+
# resource path
|
59
|
+
local_var_path = "/token/session/:create"
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
query_params[:'consumerToken'] = consumer_token
|
64
|
+
query_params[:'employeeToken'] = employee_token
|
65
|
+
query_params[:'expirationDate'] = expiration_date
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = {}
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = {}
|
72
|
+
|
73
|
+
# http body (model)
|
74
|
+
post_body = nil
|
75
|
+
auth_names = []
|
76
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
77
|
+
:header_params => header_params,
|
78
|
+
:query_params => query_params,
|
79
|
+
:form_params => form_params,
|
80
|
+
:body => post_body,
|
81
|
+
:auth_names => auth_names,
|
82
|
+
:return_type => 'ResponseWrapperSessionToken')
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug "API called: TokensessionApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
|
+
end
|
86
|
+
return data, status_code, headers
|
87
|
+
end
|
88
|
+
|
89
|
+
# Delete session token.
|
90
|
+
#
|
91
|
+
# @param token The login token string to delete
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [nil]
|
94
|
+
def delete(token, opts = {})
|
95
|
+
delete_with_http_info(token, opts)
|
96
|
+
return nil
|
97
|
+
end
|
98
|
+
|
99
|
+
# Delete session token.
|
100
|
+
#
|
101
|
+
# @param token The login token string to delete
|
102
|
+
# @param [Hash] opts the optional parameters
|
103
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
104
|
+
def delete_with_http_info(token, opts = {})
|
105
|
+
if @api_client.config.debugging
|
106
|
+
@api_client.config.logger.debug "Calling API: TokensessionApi.delete ..."
|
107
|
+
end
|
108
|
+
# verify the required parameter 'token' is set
|
109
|
+
if @api_client.config.client_side_validation && token.nil?
|
110
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling TokensessionApi.delete"
|
111
|
+
end
|
112
|
+
# resource path
|
113
|
+
local_var_path = "/token/session/{token}".sub('{' + 'token' + '}', token.to_s)
|
114
|
+
|
115
|
+
# query parameters
|
116
|
+
query_params = {}
|
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(:DELETE, 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
|
+
if @api_client.config.debugging
|
134
|
+
@api_client.config.logger.debug "API called: TokensessionApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
135
|
+
end
|
136
|
+
return data, status_code, headers
|
137
|
+
end
|
138
|
+
|
139
|
+
# Find information about the current user.
|
140
|
+
#
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @option opts [String] :fields Fields filter pattern
|
143
|
+
# @return [ResponseWrapperLoggedInUserInfoDTO]
|
144
|
+
def who_am_i(opts = {})
|
145
|
+
data, _status_code, _headers = who_am_i_with_http_info(opts)
|
146
|
+
return data
|
147
|
+
end
|
148
|
+
|
149
|
+
# Find information about the current user.
|
150
|
+
#
|
151
|
+
# @param [Hash] opts the optional parameters
|
152
|
+
# @option opts [String] :fields Fields filter pattern
|
153
|
+
# @return [Array<(ResponseWrapperLoggedInUserInfoDTO, Fixnum, Hash)>] ResponseWrapperLoggedInUserInfoDTO data, response status code and response headers
|
154
|
+
def who_am_i_with_http_info(opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug "Calling API: TokensessionApi.who_am_i ..."
|
157
|
+
end
|
158
|
+
# resource path
|
159
|
+
local_var_path = "/token/session/>whoAmI"
|
160
|
+
|
161
|
+
# query parameters
|
162
|
+
query_params = {}
|
163
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
164
|
+
|
165
|
+
# header parameters
|
166
|
+
header_params = {}
|
167
|
+
|
168
|
+
# form parameters
|
169
|
+
form_params = {}
|
170
|
+
|
171
|
+
# http body (model)
|
172
|
+
post_body = nil
|
173
|
+
auth_names = ['tokenAuthScheme']
|
174
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
175
|
+
:header_params => header_params,
|
176
|
+
:query_params => query_params,
|
177
|
+
:form_params => form_params,
|
178
|
+
:body => post_body,
|
179
|
+
:auth_names => auth_names,
|
180
|
+
:return_type => 'ResponseWrapperLoggedInUserInfoDTO')
|
181
|
+
if @api_client.config.debugging
|
182
|
+
@api_client.config.logger.debug "API called: TokensessionApi#who_am_i\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
183
|
+
end
|
184
|
+
return data, status_code, headers
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -0,0 +1,727 @@
|
|
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>></code>. Example: <code>/v2/hours/>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/>withLoginAccess</code> or <code>/token/session/>whoAmI</code>. - For company owned employee tokens (accounting offices) the ID from <code>/company/>withLoginAccess</code> can be used as username for accessing client accounts. - If you need to create the header yourself use <code>Authorization: Basic <base64encode('0:sessionToken')></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 TravelExpenseApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
|
23
|
+
# [BETA] Approve travel expenses.
|
24
|
+
#
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :id ID of the elements
|
27
|
+
# @return [ListResponseTravelExpense]
|
28
|
+
def approve(opts = {})
|
29
|
+
data, _status_code, _headers = approve_with_http_info(opts)
|
30
|
+
return data
|
31
|
+
end
|
32
|
+
|
33
|
+
# [BETA] Approve travel expenses.
|
34
|
+
#
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :id ID of the elements
|
37
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
38
|
+
def approve_with_http_info(opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.approve ..."
|
41
|
+
end
|
42
|
+
# resource path
|
43
|
+
local_var_path = "/travelExpense/:approve"
|
44
|
+
|
45
|
+
# query parameters
|
46
|
+
query_params = {}
|
47
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = {}
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = nil
|
57
|
+
auth_names = ['tokenAuthScheme']
|
58
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
59
|
+
:header_params => header_params,
|
60
|
+
:query_params => query_params,
|
61
|
+
:form_params => form_params,
|
62
|
+
:body => post_body,
|
63
|
+
:auth_names => auth_names,
|
64
|
+
:return_type => 'ListResponseTravelExpense')
|
65
|
+
if @api_client.config.debugging
|
66
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#approve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
|
+
end
|
68
|
+
return data, status_code, headers
|
69
|
+
end
|
70
|
+
|
71
|
+
# [BETA] Copy travel expense.
|
72
|
+
#
|
73
|
+
# @param id Element ID
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [ResponseWrapperTravelExpense]
|
76
|
+
def copy(id, opts = {})
|
77
|
+
data, _status_code, _headers = copy_with_http_info(id, opts)
|
78
|
+
return data
|
79
|
+
end
|
80
|
+
|
81
|
+
# [BETA] Copy travel expense.
|
82
|
+
#
|
83
|
+
# @param id Element ID
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @return [Array<(ResponseWrapperTravelExpense, Fixnum, Hash)>] ResponseWrapperTravelExpense data, response status code and response headers
|
86
|
+
def copy_with_http_info(id, opts = {})
|
87
|
+
if @api_client.config.debugging
|
88
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.copy ..."
|
89
|
+
end
|
90
|
+
# verify the required parameter 'id' is set
|
91
|
+
if @api_client.config.client_side_validation && id.nil?
|
92
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TravelExpenseApi.copy"
|
93
|
+
end
|
94
|
+
# resource path
|
95
|
+
local_var_path = "/travelExpense/:copy"
|
96
|
+
|
97
|
+
# query parameters
|
98
|
+
query_params = {}
|
99
|
+
query_params[:'id'] = id
|
100
|
+
|
101
|
+
# header parameters
|
102
|
+
header_params = {}
|
103
|
+
# HTTP header 'Content-Type'
|
104
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
105
|
+
|
106
|
+
# form parameters
|
107
|
+
form_params = {}
|
108
|
+
|
109
|
+
# http body (model)
|
110
|
+
post_body = nil
|
111
|
+
auth_names = ['tokenAuthScheme']
|
112
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
113
|
+
:header_params => header_params,
|
114
|
+
:query_params => query_params,
|
115
|
+
:form_params => form_params,
|
116
|
+
:body => post_body,
|
117
|
+
:auth_names => auth_names,
|
118
|
+
:return_type => 'ResponseWrapperTravelExpense')
|
119
|
+
if @api_client.config.debugging
|
120
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#copy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
121
|
+
end
|
122
|
+
return data, status_code, headers
|
123
|
+
end
|
124
|
+
|
125
|
+
# [BETA] Create vouchers
|
126
|
+
#
|
127
|
+
# @param date yyyy-MM-dd. Defaults to today.
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [String] :id ID of the elements
|
130
|
+
# @return [ListResponseTravelExpense]
|
131
|
+
def create_vouchers(date, opts = {})
|
132
|
+
data, _status_code, _headers = create_vouchers_with_http_info(date, opts)
|
133
|
+
return data
|
134
|
+
end
|
135
|
+
|
136
|
+
# [BETA] Create vouchers
|
137
|
+
#
|
138
|
+
# @param date yyyy-MM-dd. Defaults to today.
|
139
|
+
# @param [Hash] opts the optional parameters
|
140
|
+
# @option opts [String] :id ID of the elements
|
141
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
142
|
+
def create_vouchers_with_http_info(date, opts = {})
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.create_vouchers ..."
|
145
|
+
end
|
146
|
+
# verify the required parameter 'date' is set
|
147
|
+
if @api_client.config.client_side_validation && date.nil?
|
148
|
+
fail ArgumentError, "Missing the required parameter 'date' when calling TravelExpenseApi.create_vouchers"
|
149
|
+
end
|
150
|
+
# resource path
|
151
|
+
local_var_path = "/travelExpense/:createVouchers"
|
152
|
+
|
153
|
+
# query parameters
|
154
|
+
query_params = {}
|
155
|
+
query_params[:'date'] = date
|
156
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
157
|
+
|
158
|
+
# header parameters
|
159
|
+
header_params = {}
|
160
|
+
# HTTP header 'Content-Type'
|
161
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
162
|
+
|
163
|
+
# form parameters
|
164
|
+
form_params = {}
|
165
|
+
|
166
|
+
# http body (model)
|
167
|
+
post_body = nil
|
168
|
+
auth_names = ['tokenAuthScheme']
|
169
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
170
|
+
:header_params => header_params,
|
171
|
+
:query_params => query_params,
|
172
|
+
:form_params => form_params,
|
173
|
+
:body => post_body,
|
174
|
+
:auth_names => auth_names,
|
175
|
+
:return_type => 'ListResponseTravelExpense')
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#create_vouchers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
178
|
+
end
|
179
|
+
return data, status_code, headers
|
180
|
+
end
|
181
|
+
|
182
|
+
# [BETA] Delete travel expense.
|
183
|
+
#
|
184
|
+
# @param id Element ID
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @return [nil]
|
187
|
+
def delete(id, opts = {})
|
188
|
+
delete_with_http_info(id, opts)
|
189
|
+
return nil
|
190
|
+
end
|
191
|
+
|
192
|
+
# [BETA] Delete travel expense.
|
193
|
+
#
|
194
|
+
# @param id Element ID
|
195
|
+
# @param [Hash] opts the optional parameters
|
196
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
197
|
+
def delete_with_http_info(id, opts = {})
|
198
|
+
if @api_client.config.debugging
|
199
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.delete ..."
|
200
|
+
end
|
201
|
+
# verify the required parameter 'id' is set
|
202
|
+
if @api_client.config.client_side_validation && id.nil?
|
203
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TravelExpenseApi.delete"
|
204
|
+
end
|
205
|
+
# resource path
|
206
|
+
local_var_path = "/travelExpense/{id}".sub('{' + 'id' + '}', id.to_s)
|
207
|
+
|
208
|
+
# query parameters
|
209
|
+
query_params = {}
|
210
|
+
|
211
|
+
# header parameters
|
212
|
+
header_params = {}
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = ['tokenAuthScheme']
|
220
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
# [BETA] Deliver travel expenses.
|
233
|
+
#
|
234
|
+
# @param [Hash] opts the optional parameters
|
235
|
+
# @option opts [String] :id ID of the elements
|
236
|
+
# @return [ListResponseTravelExpense]
|
237
|
+
def deliver(opts = {})
|
238
|
+
data, _status_code, _headers = deliver_with_http_info(opts)
|
239
|
+
return data
|
240
|
+
end
|
241
|
+
|
242
|
+
# [BETA] Deliver travel expenses.
|
243
|
+
#
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @option opts [String] :id ID of the elements
|
246
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
247
|
+
def deliver_with_http_info(opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.deliver ..."
|
250
|
+
end
|
251
|
+
# resource path
|
252
|
+
local_var_path = "/travelExpense/:deliver"
|
253
|
+
|
254
|
+
# query parameters
|
255
|
+
query_params = {}
|
256
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
257
|
+
|
258
|
+
# header parameters
|
259
|
+
header_params = {}
|
260
|
+
|
261
|
+
# form parameters
|
262
|
+
form_params = {}
|
263
|
+
|
264
|
+
# http body (model)
|
265
|
+
post_body = nil
|
266
|
+
auth_names = ['tokenAuthScheme']
|
267
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
268
|
+
:header_params => header_params,
|
269
|
+
:query_params => query_params,
|
270
|
+
:form_params => form_params,
|
271
|
+
:body => post_body,
|
272
|
+
:auth_names => auth_names,
|
273
|
+
:return_type => 'ListResponseTravelExpense')
|
274
|
+
if @api_client.config.debugging
|
275
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#deliver\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
276
|
+
end
|
277
|
+
return data, status_code, headers
|
278
|
+
end
|
279
|
+
|
280
|
+
# Get attachment by travel expense ID.
|
281
|
+
#
|
282
|
+
# @param travel_expense_id Travel Expense ID from which PDF is downloaded.
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @return [String]
|
285
|
+
def download_attachment(travel_expense_id, opts = {})
|
286
|
+
data, _status_code, _headers = download_attachment_with_http_info(travel_expense_id, opts)
|
287
|
+
return data
|
288
|
+
end
|
289
|
+
|
290
|
+
# Get attachment by travel expense ID.
|
291
|
+
#
|
292
|
+
# @param travel_expense_id Travel Expense ID from which PDF is downloaded.
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
295
|
+
def download_attachment_with_http_info(travel_expense_id, opts = {})
|
296
|
+
if @api_client.config.debugging
|
297
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.download_attachment ..."
|
298
|
+
end
|
299
|
+
# verify the required parameter 'travel_expense_id' is set
|
300
|
+
if @api_client.config.client_side_validation && travel_expense_id.nil?
|
301
|
+
fail ArgumentError, "Missing the required parameter 'travel_expense_id' when calling TravelExpenseApi.download_attachment"
|
302
|
+
end
|
303
|
+
# resource path
|
304
|
+
local_var_path = "/travelExpense/{travelExpenseId}/attachment".sub('{' + 'travelExpenseId' + '}', travel_expense_id.to_s)
|
305
|
+
|
306
|
+
# query parameters
|
307
|
+
query_params = {}
|
308
|
+
|
309
|
+
# header parameters
|
310
|
+
header_params = {}
|
311
|
+
# HTTP header 'Accept' (if needed)
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
313
|
+
|
314
|
+
# form parameters
|
315
|
+
form_params = {}
|
316
|
+
|
317
|
+
# http body (model)
|
318
|
+
post_body = nil
|
319
|
+
auth_names = ['tokenAuthScheme']
|
320
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
321
|
+
:header_params => header_params,
|
322
|
+
:query_params => query_params,
|
323
|
+
:form_params => form_params,
|
324
|
+
:body => post_body,
|
325
|
+
:auth_names => auth_names,
|
326
|
+
:return_type => 'String')
|
327
|
+
if @api_client.config.debugging
|
328
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#download_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
329
|
+
end
|
330
|
+
return data, status_code, headers
|
331
|
+
end
|
332
|
+
|
333
|
+
# [BETA] Get travel expense by ID.
|
334
|
+
#
|
335
|
+
# @param id Element ID
|
336
|
+
# @param [Hash] opts the optional parameters
|
337
|
+
# @option opts [String] :fields Fields filter pattern
|
338
|
+
# @return [ResponseWrapperTravelExpense]
|
339
|
+
def get(id, opts = {})
|
340
|
+
data, _status_code, _headers = get_with_http_info(id, opts)
|
341
|
+
return data
|
342
|
+
end
|
343
|
+
|
344
|
+
# [BETA] Get travel expense by ID.
|
345
|
+
#
|
346
|
+
# @param id Element ID
|
347
|
+
# @param [Hash] opts the optional parameters
|
348
|
+
# @option opts [String] :fields Fields filter pattern
|
349
|
+
# @return [Array<(ResponseWrapperTravelExpense, Fixnum, Hash)>] ResponseWrapperTravelExpense data, response status code and response headers
|
350
|
+
def get_with_http_info(id, opts = {})
|
351
|
+
if @api_client.config.debugging
|
352
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.get ..."
|
353
|
+
end
|
354
|
+
# verify the required parameter 'id' is set
|
355
|
+
if @api_client.config.client_side_validation && id.nil?
|
356
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TravelExpenseApi.get"
|
357
|
+
end
|
358
|
+
# resource path
|
359
|
+
local_var_path = "/travelExpense/{id}".sub('{' + 'id' + '}', id.to_s)
|
360
|
+
|
361
|
+
# query parameters
|
362
|
+
query_params = {}
|
363
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
364
|
+
|
365
|
+
# header parameters
|
366
|
+
header_params = {}
|
367
|
+
|
368
|
+
# form parameters
|
369
|
+
form_params = {}
|
370
|
+
|
371
|
+
# http body (model)
|
372
|
+
post_body = nil
|
373
|
+
auth_names = ['tokenAuthScheme']
|
374
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
375
|
+
:header_params => header_params,
|
376
|
+
:query_params => query_params,
|
377
|
+
:form_params => form_params,
|
378
|
+
:body => post_body,
|
379
|
+
:auth_names => auth_names,
|
380
|
+
:return_type => 'ResponseWrapperTravelExpense')
|
381
|
+
if @api_client.config.debugging
|
382
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
383
|
+
end
|
384
|
+
return data, status_code, headers
|
385
|
+
end
|
386
|
+
|
387
|
+
# [BETA] Create travel expense.
|
388
|
+
#
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @option opts [TravelExpense] :body JSON representing the new object to be created. Should not have ID and version set.
|
391
|
+
# @return [ResponseWrapperTravelExpense]
|
392
|
+
def post(opts = {})
|
393
|
+
data, _status_code, _headers = post_with_http_info(opts)
|
394
|
+
return data
|
395
|
+
end
|
396
|
+
|
397
|
+
# [BETA] Create travel expense.
|
398
|
+
#
|
399
|
+
# @param [Hash] opts the optional parameters
|
400
|
+
# @option opts [TravelExpense] :body JSON representing the new object to be created. Should not have ID and version set.
|
401
|
+
# @return [Array<(ResponseWrapperTravelExpense, Fixnum, Hash)>] ResponseWrapperTravelExpense data, response status code and response headers
|
402
|
+
def post_with_http_info(opts = {})
|
403
|
+
if @api_client.config.debugging
|
404
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.post ..."
|
405
|
+
end
|
406
|
+
# resource path
|
407
|
+
local_var_path = "/travelExpense"
|
408
|
+
|
409
|
+
# query parameters
|
410
|
+
query_params = {}
|
411
|
+
|
412
|
+
# header parameters
|
413
|
+
header_params = {}
|
414
|
+
# HTTP header 'Content-Type'
|
415
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
416
|
+
|
417
|
+
# form parameters
|
418
|
+
form_params = {}
|
419
|
+
|
420
|
+
# http body (model)
|
421
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
422
|
+
auth_names = ['tokenAuthScheme']
|
423
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
424
|
+
:header_params => header_params,
|
425
|
+
:query_params => query_params,
|
426
|
+
:form_params => form_params,
|
427
|
+
:body => post_body,
|
428
|
+
:auth_names => auth_names,
|
429
|
+
:return_type => 'ResponseWrapperTravelExpense')
|
430
|
+
if @api_client.config.debugging
|
431
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
432
|
+
end
|
433
|
+
return data, status_code, headers
|
434
|
+
end
|
435
|
+
|
436
|
+
# [BETA] Update travel expense.
|
437
|
+
#
|
438
|
+
# @param id Element ID
|
439
|
+
# @param [Hash] opts the optional parameters
|
440
|
+
# @option opts [TravelExpense] :body Partial object describing what should be updated
|
441
|
+
# @return [ResponseWrapperTravelExpense]
|
442
|
+
def put(id, opts = {})
|
443
|
+
data, _status_code, _headers = put_with_http_info(id, opts)
|
444
|
+
return data
|
445
|
+
end
|
446
|
+
|
447
|
+
# [BETA] Update travel expense.
|
448
|
+
#
|
449
|
+
# @param id Element ID
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @option opts [TravelExpense] :body Partial object describing what should be updated
|
452
|
+
# @return [Array<(ResponseWrapperTravelExpense, Fixnum, Hash)>] ResponseWrapperTravelExpense data, response status code and response headers
|
453
|
+
def put_with_http_info(id, opts = {})
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.put ..."
|
456
|
+
end
|
457
|
+
# verify the required parameter 'id' is set
|
458
|
+
if @api_client.config.client_side_validation && id.nil?
|
459
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TravelExpenseApi.put"
|
460
|
+
end
|
461
|
+
# resource path
|
462
|
+
local_var_path = "/travelExpense/{id}".sub('{' + 'id' + '}', id.to_s)
|
463
|
+
|
464
|
+
# query parameters
|
465
|
+
query_params = {}
|
466
|
+
|
467
|
+
# header parameters
|
468
|
+
header_params = {}
|
469
|
+
# HTTP header 'Content-Type'
|
470
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
|
471
|
+
|
472
|
+
# form parameters
|
473
|
+
form_params = {}
|
474
|
+
|
475
|
+
# http body (model)
|
476
|
+
post_body = @api_client.object_to_http_body(opts[:'body'])
|
477
|
+
auth_names = ['tokenAuthScheme']
|
478
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
479
|
+
:header_params => header_params,
|
480
|
+
:query_params => query_params,
|
481
|
+
:form_params => form_params,
|
482
|
+
:body => post_body,
|
483
|
+
:auth_names => auth_names,
|
484
|
+
:return_type => 'ResponseWrapperTravelExpense')
|
485
|
+
if @api_client.config.debugging
|
486
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
487
|
+
end
|
488
|
+
return data, status_code, headers
|
489
|
+
end
|
490
|
+
|
491
|
+
# [BETA] Find travel expenses corresponding with sent data.
|
492
|
+
#
|
493
|
+
# @param [Hash] opts the optional parameters
|
494
|
+
# @option opts [String] :employee_id Equals
|
495
|
+
# @option opts [String] :department_id Equals
|
496
|
+
# @option opts [String] :project_id Equals
|
497
|
+
# @option opts [String] :project_manager_id Equals
|
498
|
+
# @option opts [String] :departure_date_from From and including
|
499
|
+
# @option opts [String] :return_date_to To and excluding
|
500
|
+
# @option opts [String] :state category (default to ALL)
|
501
|
+
# @option opts [Integer] :from From index (default to 0)
|
502
|
+
# @option opts [Integer] :count Number of elements to return (default to 1000)
|
503
|
+
# @option opts [String] :sorting Sorting pattern
|
504
|
+
# @option opts [String] :fields Fields filter pattern
|
505
|
+
# @return [ListResponseTravelExpense]
|
506
|
+
def search(opts = {})
|
507
|
+
data, _status_code, _headers = search_with_http_info(opts)
|
508
|
+
return data
|
509
|
+
end
|
510
|
+
|
511
|
+
# [BETA] Find travel expenses corresponding with sent data.
|
512
|
+
#
|
513
|
+
# @param [Hash] opts the optional parameters
|
514
|
+
# @option opts [String] :employee_id Equals
|
515
|
+
# @option opts [String] :department_id Equals
|
516
|
+
# @option opts [String] :project_id Equals
|
517
|
+
# @option opts [String] :project_manager_id Equals
|
518
|
+
# @option opts [String] :departure_date_from From and including
|
519
|
+
# @option opts [String] :return_date_to To and excluding
|
520
|
+
# @option opts [String] :state category
|
521
|
+
# @option opts [Integer] :from From index
|
522
|
+
# @option opts [Integer] :count Number of elements to return
|
523
|
+
# @option opts [String] :sorting Sorting pattern
|
524
|
+
# @option opts [String] :fields Fields filter pattern
|
525
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
526
|
+
def search_with_http_info(opts = {})
|
527
|
+
if @api_client.config.debugging
|
528
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.search ..."
|
529
|
+
end
|
530
|
+
if @api_client.config.client_side_validation && opts[:'state'] && !['ALL', 'OPEN', 'APPROVED', 'SALARY_PAID', 'DELIVERED'].include?(opts[:'state'])
|
531
|
+
fail ArgumentError, 'invalid value for "state", must be one of ALL, OPEN, APPROVED, SALARY_PAID, DELIVERED'
|
532
|
+
end
|
533
|
+
# resource path
|
534
|
+
local_var_path = "/travelExpense"
|
535
|
+
|
536
|
+
# query parameters
|
537
|
+
query_params = {}
|
538
|
+
query_params[:'employeeId'] = opts[:'employee_id'] if !opts[:'employee_id'].nil?
|
539
|
+
query_params[:'departmentId'] = opts[:'department_id'] if !opts[:'department_id'].nil?
|
540
|
+
query_params[:'projectId'] = opts[:'project_id'] if !opts[:'project_id'].nil?
|
541
|
+
query_params[:'projectManagerId'] = opts[:'project_manager_id'] if !opts[:'project_manager_id'].nil?
|
542
|
+
query_params[:'departureDateFrom'] = opts[:'departure_date_from'] if !opts[:'departure_date_from'].nil?
|
543
|
+
query_params[:'returnDateTo'] = opts[:'return_date_to'] if !opts[:'return_date_to'].nil?
|
544
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
545
|
+
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
546
|
+
query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil?
|
547
|
+
query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil?
|
548
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
549
|
+
|
550
|
+
# header parameters
|
551
|
+
header_params = {}
|
552
|
+
|
553
|
+
# form parameters
|
554
|
+
form_params = {}
|
555
|
+
|
556
|
+
# http body (model)
|
557
|
+
post_body = nil
|
558
|
+
auth_names = ['tokenAuthScheme']
|
559
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
560
|
+
:header_params => header_params,
|
561
|
+
:query_params => query_params,
|
562
|
+
:form_params => form_params,
|
563
|
+
:body => post_body,
|
564
|
+
:auth_names => auth_names,
|
565
|
+
:return_type => 'ListResponseTravelExpense')
|
566
|
+
if @api_client.config.debugging
|
567
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
568
|
+
end
|
569
|
+
return data, status_code, headers
|
570
|
+
end
|
571
|
+
|
572
|
+
# [BETA] Unapprove travel expenses.
|
573
|
+
#
|
574
|
+
# @param [Hash] opts the optional parameters
|
575
|
+
# @option opts [String] :id ID of the elements
|
576
|
+
# @return [ListResponseTravelExpense]
|
577
|
+
def unapprove(opts = {})
|
578
|
+
data, _status_code, _headers = unapprove_with_http_info(opts)
|
579
|
+
return data
|
580
|
+
end
|
581
|
+
|
582
|
+
# [BETA] Unapprove travel expenses.
|
583
|
+
#
|
584
|
+
# @param [Hash] opts the optional parameters
|
585
|
+
# @option opts [String] :id ID of the elements
|
586
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
587
|
+
def unapprove_with_http_info(opts = {})
|
588
|
+
if @api_client.config.debugging
|
589
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.unapprove ..."
|
590
|
+
end
|
591
|
+
# resource path
|
592
|
+
local_var_path = "/travelExpense/:unapprove"
|
593
|
+
|
594
|
+
# query parameters
|
595
|
+
query_params = {}
|
596
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
597
|
+
|
598
|
+
# header parameters
|
599
|
+
header_params = {}
|
600
|
+
|
601
|
+
# form parameters
|
602
|
+
form_params = {}
|
603
|
+
|
604
|
+
# http body (model)
|
605
|
+
post_body = nil
|
606
|
+
auth_names = ['tokenAuthScheme']
|
607
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
608
|
+
:header_params => header_params,
|
609
|
+
:query_params => query_params,
|
610
|
+
:form_params => form_params,
|
611
|
+
:body => post_body,
|
612
|
+
:auth_names => auth_names,
|
613
|
+
:return_type => 'ListResponseTravelExpense')
|
614
|
+
if @api_client.config.debugging
|
615
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#unapprove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
616
|
+
end
|
617
|
+
return data, status_code, headers
|
618
|
+
end
|
619
|
+
|
620
|
+
# [BETA] Undeliver travel expenses.
|
621
|
+
#
|
622
|
+
# @param [Hash] opts the optional parameters
|
623
|
+
# @option opts [String] :id ID of the elements
|
624
|
+
# @return [ListResponseTravelExpense]
|
625
|
+
def undeliver(opts = {})
|
626
|
+
data, _status_code, _headers = undeliver_with_http_info(opts)
|
627
|
+
return data
|
628
|
+
end
|
629
|
+
|
630
|
+
# [BETA] Undeliver travel expenses.
|
631
|
+
#
|
632
|
+
# @param [Hash] opts the optional parameters
|
633
|
+
# @option opts [String] :id ID of the elements
|
634
|
+
# @return [Array<(ListResponseTravelExpense, Fixnum, Hash)>] ListResponseTravelExpense data, response status code and response headers
|
635
|
+
def undeliver_with_http_info(opts = {})
|
636
|
+
if @api_client.config.debugging
|
637
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.undeliver ..."
|
638
|
+
end
|
639
|
+
# resource path
|
640
|
+
local_var_path = "/travelExpense/:undeliver"
|
641
|
+
|
642
|
+
# query parameters
|
643
|
+
query_params = {}
|
644
|
+
query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
|
645
|
+
|
646
|
+
# header parameters
|
647
|
+
header_params = {}
|
648
|
+
|
649
|
+
# form parameters
|
650
|
+
form_params = {}
|
651
|
+
|
652
|
+
# http body (model)
|
653
|
+
post_body = nil
|
654
|
+
auth_names = ['tokenAuthScheme']
|
655
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
656
|
+
:header_params => header_params,
|
657
|
+
:query_params => query_params,
|
658
|
+
:form_params => form_params,
|
659
|
+
:body => post_body,
|
660
|
+
:auth_names => auth_names,
|
661
|
+
:return_type => 'ListResponseTravelExpense')
|
662
|
+
if @api_client.config.debugging
|
663
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#undeliver\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
664
|
+
end
|
665
|
+
return data, status_code, headers
|
666
|
+
end
|
667
|
+
|
668
|
+
# Upload attachment to travel expense.
|
669
|
+
#
|
670
|
+
# @param travel_expense_id Travel Expense ID to upload attachment to.
|
671
|
+
# @param file The file
|
672
|
+
# @param [Hash] opts the optional parameters
|
673
|
+
# @return [nil]
|
674
|
+
def upload_attachment(travel_expense_id, file, opts = {})
|
675
|
+
upload_attachment_with_http_info(travel_expense_id, file, opts)
|
676
|
+
return nil
|
677
|
+
end
|
678
|
+
|
679
|
+
# Upload attachment to travel expense.
|
680
|
+
#
|
681
|
+
# @param travel_expense_id Travel Expense ID to upload attachment to.
|
682
|
+
# @param file The file
|
683
|
+
# @param [Hash] opts the optional parameters
|
684
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
685
|
+
def upload_attachment_with_http_info(travel_expense_id, file, opts = {})
|
686
|
+
if @api_client.config.debugging
|
687
|
+
@api_client.config.logger.debug "Calling API: TravelExpenseApi.upload_attachment ..."
|
688
|
+
end
|
689
|
+
# verify the required parameter 'travel_expense_id' is set
|
690
|
+
if @api_client.config.client_side_validation && travel_expense_id.nil?
|
691
|
+
fail ArgumentError, "Missing the required parameter 'travel_expense_id' when calling TravelExpenseApi.upload_attachment"
|
692
|
+
end
|
693
|
+
# verify the required parameter 'file' is set
|
694
|
+
if @api_client.config.client_side_validation && file.nil?
|
695
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling TravelExpenseApi.upload_attachment"
|
696
|
+
end
|
697
|
+
# resource path
|
698
|
+
local_var_path = "/travelExpense/{travelExpenseId}/attachment".sub('{' + 'travelExpenseId' + '}', travel_expense_id.to_s)
|
699
|
+
|
700
|
+
# query parameters
|
701
|
+
query_params = {}
|
702
|
+
|
703
|
+
# header parameters
|
704
|
+
header_params = {}
|
705
|
+
# HTTP header 'Content-Type'
|
706
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
707
|
+
|
708
|
+
# form parameters
|
709
|
+
form_params = {}
|
710
|
+
form_params["file"] = file
|
711
|
+
|
712
|
+
# http body (model)
|
713
|
+
post_body = nil
|
714
|
+
auth_names = ['tokenAuthScheme']
|
715
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
716
|
+
:header_params => header_params,
|
717
|
+
:query_params => query_params,
|
718
|
+
:form_params => form_params,
|
719
|
+
:body => post_body,
|
720
|
+
:auth_names => auth_names)
|
721
|
+
if @api_client.config.debugging
|
722
|
+
@api_client.config.logger.debug "API called: TravelExpenseApi#upload_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
723
|
+
end
|
724
|
+
return data, status_code, headers
|
725
|
+
end
|
726
|
+
end
|
727
|
+
end
|