nordlet 0.5.3 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +125 -0
  3. data/lib/nordlet/agreements/client.rb +49 -0
  4. data/lib/nordlet/assets/client.rb +42 -0
  5. data/lib/nordlet/audit/client.rb +4 -0
  6. data/lib/nordlet/bank/client.rb +218 -0
  7. data/lib/nordlet/billing/client.rb +45 -0
  8. data/lib/nordlet/calendar/client.rb +18 -0
  9. data/lib/nordlet/capture/client.rb +33 -0
  10. data/lib/nordlet/cash/client.rb +36 -0
  11. data/lib/nordlet/catalog/client.rb +77 -0
  12. data/lib/nordlet/consolidation/client.rb +29 -0
  13. data/lib/nordlet/declarations/client.rb +209 -0
  14. data/lib/nordlet/declarations/types/lt_gpm312compute_declarations_response_rows_item.rb +2 -0
  15. data/lib/nordlet/document_series/client.rb +20 -0
  16. data/lib/nordlet/ecommerce/client.rb +41 -0
  17. data/lib/nordlet/files/client.rb +10 -0
  18. data/lib/nordlet/fleet/client.rb +26 -0
  19. data/lib/nordlet/hr/client.rb +93 -0
  20. data/lib/nordlet/inventory/client.rb +91 -0
  21. data/lib/nordlet/leads/client.rb +49 -0
  22. data/lib/nordlet/ledger/client.rb +78 -3
  23. data/lib/nordlet/officers/client.rb +8 -0
  24. data/lib/nordlet/operation_types/client.rb +20 -0
  25. data/lib/nordlet/partners/client.rb +126 -0
  26. data/lib/nordlet/payroll/client.rb +94 -0
  27. data/lib/nordlet/payroll/types/calc_payroll_request.rb +2 -0
  28. data/lib/nordlet/payroll/types/calc_payroll_request_payments_item.rb +15 -0
  29. data/lib/nordlet/payroll/types/calc_payroll_response_components_item.rb +2 -0
  30. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_additions_item.rb +4 -0
  31. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item.rb +2 -0
  32. data/lib/nordlet/payroll/types/payment_types_list_payroll_request.rb +9 -0
  33. data/lib/nordlet/payroll/types/payment_types_list_payroll_response.rb +15 -0
  34. data/lib/nordlet/payroll/types/payment_types_list_payroll_response_rows_item.rb +15 -0
  35. data/lib/nordlet/payroll/types/runs_approve_payroll_response_component_totals_item.rb +2 -0
  36. data/lib/nordlet/payroll/types/runs_create_payroll_request_lines_item_additions_item.rb +4 -0
  37. data/lib/nordlet/payroll/types/runs_create_payroll_response_component_totals_item.rb +2 -0
  38. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_additions_item.rb +4 -0
  39. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_components_item.rb +2 -0
  40. data/lib/nordlet/payroll/types/runs_get_payroll_response_component_totals_item.rb +2 -0
  41. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_additions_item.rb +4 -0
  42. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_components_item.rb +2 -0
  43. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_component_totals_item.rb +2 -0
  44. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_component_totals_item.rb +2 -0
  45. data/lib/nordlet/peppol/client.rb +7 -0
  46. data/lib/nordlet/platform_sellers/client.rb +13 -0
  47. data/lib/nordlet/pos/client.rb +46 -0
  48. data/lib/nordlet/production/client.rb +78 -0
  49. data/lib/nordlet/projects/client.rb +35 -0
  50. data/lib/nordlet/public/client.rb +9 -0
  51. data/lib/nordlet/purchases/client.rb +102 -0
  52. data/lib/nordlet/reference/client.rb +74 -0
  53. data/lib/nordlet/reports/client.rb +108 -0
  54. data/lib/nordlet/sales/client.rb +408 -0
  55. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +4 -0
  56. data/lib/nordlet/sales/types/invoices_create_sales_request.rb +2 -0
  57. data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +15 -0
  58. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +4 -0
  59. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +4 -0
  60. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +4 -0
  61. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +4 -0
  62. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +4 -0
  63. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +4 -0
  64. data/lib/nordlet/sales/types/invoices_update_sales_request.rb +2 -0
  65. data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +15 -0
  66. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +4 -0
  67. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request.rb +29 -0
  68. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_frequency.rb +16 -0
  69. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +15 -0
  70. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response.rb +51 -0
  71. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_frequency.rb +16 -0
  72. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_status.rb +15 -0
  73. data/lib/nordlet/sales/types/recurring_invoices_delete_sales_request.rb +11 -0
  74. data/lib/nordlet/sales/types/recurring_invoices_delete_sales_response.rb +11 -0
  75. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_request.rb +11 -0
  76. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response.rb +21 -0
  77. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice.rb +51 -0
  78. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_frequency.rb +16 -0
  79. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_status.rb +15 -0
  80. data/lib/nordlet/sales/types/recurring_invoices_get_sales_request.rb +11 -0
  81. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response.rb +51 -0
  82. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_frequency.rb +16 -0
  83. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_status.rb +15 -0
  84. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request.rb +19 -0
  85. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item.rb +15 -0
  86. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_op.rb +18 -0
  87. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value.rb +19 -0
  88. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value_three_item.rb +15 -0
  89. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item.rb +13 -0
  90. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item_dir.rb +14 -0
  91. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response.rb +21 -0
  92. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item.rb +51 -0
  93. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_frequency.rb +16 -0
  94. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_status.rb +15 -0
  95. data/lib/nordlet/sales/types/recurring_invoices_run_sales_request.rb +11 -0
  96. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response.rb +13 -0
  97. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_errors_item.rb +13 -0
  98. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_generated_item.rb +19 -0
  99. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request.rb +35 -0
  100. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_frequency.rb +16 -0
  101. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +15 -0
  102. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_status.rb +14 -0
  103. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response.rb +51 -0
  104. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_frequency.rb +16 -0
  105. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_status.rb +15 -0
  106. data/lib/nordlet/transport/client.rb +20 -0
  107. data/lib/nordlet/version.rb +1 -1
  108. data/lib/nordlet/webhooks/client.rb +20 -0
  109. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +1 -0
  110. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +1 -0
  111. data/lib/nordlet.rb +45 -0
  112. data/reference.md +9789 -912
  113. metadata +47 -2
@@ -10,6 +10,12 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Create a sales order from an online channel in status `new`. The customer is `partnerId` or `partner` details:
14
+ # with an `email` the existing partner with that e-mail is reused, otherwise a new partner is created; without
15
+ # either the call is refused with 422. `currency` defaults to the company's invoice currency, and
16
+ # `shipToCountryCode` and `marketplace` are kept for the VAT treatment of the invoice at fulfilment. A second
17
+ # order with the same `channel` and `externalRef` is refused with 409. Emits `sales_order.created`.
18
+ #
13
19
  # @param request_options [Hash]
14
20
  # @param params [Nordlet::Ecommerce::Types::OrdersCreateEcommerceRequest]
15
21
  # @option request_options [String] :base_url
@@ -42,6 +48,8 @@ module Nordlet
42
48
  end
43
49
  end
44
50
 
51
+ # Read one sales order with its lines.
52
+ #
45
53
  # @param request_options [Hash]
46
54
  # @param params [Nordlet::Ecommerce::Types::OrdersGetEcommerceRequest]
47
55
  # @option request_options [String] :base_url
@@ -74,6 +82,9 @@ module Nordlet
74
82
  end
75
83
  end
76
84
 
85
+ # List sales orders without their lines. Filterable by `channel`, `externalRef`, `partnerId` and `status`;
86
+ # sortable by `createdAt`.
87
+ #
77
88
  # @param request_options [Hash]
78
89
  # @param params [Nordlet::Ecommerce::Types::OrdersListEcommerceRequest]
79
90
  # @option request_options [String] :base_url
@@ -106,6 +117,12 @@ module Nordlet
106
117
  end
107
118
  end
108
119
 
120
+ # Reserve stock for a `new` order in `warehouseId` (default: the order's warehouse; 422 when neither is set). Each
121
+ # product line, and each product component of a set line, is checked against the warehouse's on-hand quantity less
122
+ # the existing reservations; when any item is short the call is refused with 422 and nothing is reserved.
123
+ # Otherwise a reservation is written per stock line, `stock.changed` (change type `reserve`) is emitted for each,
124
+ # and the order becomes `reserved`. An order in another status is refused with 409.
125
+ #
109
126
  # @param request_options [Hash]
110
127
  # @param params [Nordlet::Ecommerce::Types::OrdersReserveEcommerceRequest]
111
128
  # @option request_options [String] :base_url
@@ -138,6 +155,16 @@ module Nordlet
138
155
  end
139
156
  end
140
157
 
158
+ # Fulfil a `new` or `reserved` order: its reservations are released, the stock lines are consumed FIFO from the
159
+ # order's warehouse on `date` (default: the company's today), the cost of goods sold is posted as a journal entry
160
+ # debiting `cogsAccountCode` and crediting the stock accounts of the consumed layers (`inventoryAccountCode` when
161
+ # a layer has none), and a draft sale invoice for the order lines is created and linked as `invoiceId`, ready for
162
+ # `sales/invoices/issue`. With a `shipToCountryCode` on the order the invoice's VAT scheme is resolved for goods
163
+ # shipped there, as a marketplace sale when `marketplace` is set. Account codes default to the company's chart.
164
+ # Refused with 422 when the stock lines have no warehouse or stock is insufficient (unless the company allows
165
+ # negative stock), with 409 when the accounting period is locked or the order is already `fulfilled` or
166
+ # `cancelled`. Emits `sales_order.fulfilled` and `stock.changed`.
167
+ #
141
168
  # @param request_options [Hash]
142
169
  # @param params [Nordlet::Ecommerce::Types::OrdersFulfillEcommerceRequest]
143
170
  # @option request_options [String] :base_url
@@ -170,6 +197,9 @@ module Nordlet
170
197
  end
171
198
  end
172
199
 
200
+ # Cancel an order that is not fulfilled: its stock reservations are released, `stock.changed` (change type
201
+ # `release`) is emitted for each, and the status becomes `cancelled`. A fulfilled order is refused with 409.
202
+ #
173
203
  # @param request_options [Hash]
174
204
  # @param params [Nordlet::Ecommerce::Types::OrdersCancelEcommerceRequest]
175
205
  # @option request_options [String] :base_url
@@ -202,6 +232,14 @@ module Nordlet
202
232
  end
203
233
  end
204
234
 
235
+ # List the company's items as a shop catalogue, in order of last update, with price and stock. `price` is the
236
+ # item's price in `priceListId` when given, else its own sale price, and `currency` that of the price list, else
237
+ # the company's invoice currency; `vatRatePercent` falls back to the rate of the item's VAT classifier. For a
238
+ # product `onHand`, `reserved` and `available` are summed over all warehouses or over `warehouseId` only; for a
239
+ # set `available` is the number of sets its product components can still make; for a service they are null. With
240
+ # `updatedSince` only items changed after that time are returned, deleted ones included (`deleted: true`), so a
241
+ # shop can sync incrementally; without it only live items are listed.
242
+ #
205
243
  # @param request_options [Hash]
206
244
  # @param params [Nordlet::Ecommerce::Types::ProductsListEcommerceRequest]
207
245
  # @option request_options [String] :base_url
@@ -234,6 +272,9 @@ module Nordlet
234
272
  end
235
273
  end
236
274
 
275
+ # Stock position per item and warehouse: `onHand`, `reserved` and their difference `available`, for all warehouses
276
+ # or `warehouseId` only. Only items with a positive quantity on hand are returned.
277
+ #
237
278
  # @param request_options [Hash]
238
279
  # @param params [Nordlet::Ecommerce::Types::StockListEcommerceRequest]
239
280
  # @option request_options [String] :base_url
@@ -10,6 +10,9 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Store a base64-encoded file of up to 10 MB (413 above that) under an `entity` and optional `entityId`, and
14
+ # return its record with the SHA-256 of the content and its `storageKey`, which other calls take as `documentRef`.
15
+ #
13
16
  # @param request_options [Hash]
14
17
  # @param params [Nordlet::Files::Types::UploadFilesRequest]
15
18
  # @option request_options [String] :base_url
@@ -42,6 +45,8 @@ module Nordlet
42
45
  end
43
46
  end
44
47
 
48
+ # Return a file record with its content, base64-encoded.
49
+ #
45
50
  # @param request_options [Hash]
46
51
  # @param params [Nordlet::Files::Types::GetFilesRequest]
47
52
  # @option request_options [String] :base_url
@@ -74,6 +79,9 @@ module Nordlet
74
79
  end
75
80
  end
76
81
 
82
+ # List the company's files. Filterable by `entity`, `entityId` and `fileName`; sortable by `createdAt`, `fileName`
83
+ # and `sizeBytes`.
84
+ #
77
85
  # @param request_options [Hash]
78
86
  # @param params [Nordlet::Files::Types::ListFilesRequest]
79
87
  # @option request_options [String] :base_url
@@ -106,6 +114,8 @@ module Nordlet
106
114
  end
107
115
  end
108
116
 
117
+ # Delete a file record and its stored content.
118
+ #
109
119
  # @param request_options [Hash]
110
120
  # @param params [Nordlet::Files::Types::DeleteFilesRequest]
111
121
  # @option request_options [String] :base_url
@@ -10,6 +10,9 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Register a vehicle. The plate number is stored in upper case and must be unique in the company (409 otherwise);
14
+ # `fixedAssetId` must name an existing fixed asset. Uploaded `documents` are attached to the vehicle.
15
+ #
13
16
  # @param request_options [Hash]
14
17
  # @param params [Nordlet::Fleet::Types::VehiclesCreateFleetRequest]
15
18
  # @option request_options [String] :base_url
@@ -42,6 +45,9 @@ module Nordlet
42
45
  end
43
46
  end
44
47
 
48
+ # Change a vehicle's details or set its `status` to `active`, `sold` or `scrapped`; omitted fields keep their
49
+ # value. A plate number already used by another vehicle is refused with 409.
50
+ #
45
51
  # @param request_options [Hash]
46
52
  # @param params [Nordlet::Fleet::Types::VehiclesUpdateFleetRequest]
47
53
  # @option request_options [String] :base_url
@@ -74,6 +80,8 @@ module Nordlet
74
80
  end
75
81
  end
76
82
 
83
+ # Read one vehicle with its current assignment, when an employee holds it today.
84
+ #
77
85
  # @param request_options [Hash]
78
86
  # @param params [Nordlet::Fleet::Types::VehiclesGetFleetRequest]
79
87
  # @option request_options [String] :base_url
@@ -106,6 +114,9 @@ module Nordlet
106
114
  end
107
115
  end
108
116
 
117
+ # List vehicles with their current assignment. Filterable by `plateNumber`, `make`, `model` and `status`; sortable
118
+ # by `plateNumber`, `make` and `createdAt`.
119
+ #
109
120
  # @param request_options [Hash]
110
121
  # @param params [Nordlet::Fleet::Types::VehiclesListFleetRequest]
111
122
  # @option request_options [String] :base_url
@@ -138,6 +149,10 @@ module Nordlet
138
149
  end
139
150
  end
140
151
 
152
+ # Assign a vehicle to an employee from `fromDate`, open-ended or until `toDate`. A period that overlaps another
153
+ # assignment of the same vehicle is refused with 409, a `toDate` before `fromDate` with 422. `privateUse` makes
154
+ # the car a benefit in kind in `fleet/natura/preview`, and `employerPaysFuel` picks its rate.
155
+ #
141
156
  # @param request_options [Hash]
142
157
  # @param params [Nordlet::Fleet::Types::AssignmentsCreateFleetRequest]
143
158
  # @option request_options [String] :base_url
@@ -170,6 +185,9 @@ module Nordlet
170
185
  end
171
186
  end
172
187
 
188
+ # End an open assignment on `toDate`. An assignment that already has an end date is refused with 409, a `toDate`
189
+ # before its `fromDate` with 422.
190
+ #
173
191
  # @param request_options [Hash]
174
192
  # @param params [Nordlet::Fleet::Types::AssignmentsEndFleetRequest]
175
193
  # @option request_options [String] :base_url
@@ -202,6 +220,9 @@ module Nordlet
202
220
  end
203
221
  end
204
222
 
223
+ # List vehicle assignments with the plate number and the employee's name. Filterable by `vehicleId`, `employeeId`
224
+ # and `privateUse`; sortable by `fromDate` and `createdAt`.
225
+ #
205
226
  # @param request_options [Hash]
206
227
  # @param params [Nordlet::Fleet::Types::AssignmentsListFleetRequest]
207
228
  # @option request_options [String] :base_url
@@ -234,6 +255,11 @@ module Nordlet
234
255
  end
235
256
  end
236
257
 
258
+ # Preview the car benefit in kind of a month for a Lithuanian company: every assignment with `privateUse` that
259
+ # overlaps the month is valued at 0.75 % of the vehicle's market value when the employer pays the fuel, else 0.70
260
+ # %, one row per employee and vehicle, with the total. A company registered in another country is refused with
261
+ # 422. The same amounts are added to a payroll run created with `includeNatura` (`payroll/runs/create`).
262
+ #
237
263
  # @param request_options [Hash]
238
264
  # @param params [Nordlet::Fleet::Types::NaturaPreviewFleetRequest]
239
265
  # @option request_options [String] :base_url
@@ -10,6 +10,8 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Creates a job position with an optional code and name translations, for use in `hr/contracts/create`.
14
+ #
13
15
  # @param request_options [Hash]
14
16
  # @param params [Nordlet::Hr::Types::PositionsCreateHrRequest]
15
17
  # @option request_options [String] :base_url
@@ -42,6 +44,8 @@ module Nordlet
42
44
  end
43
45
  end
44
46
 
47
+ # Changes the code, name or translations of a position; a null `translations` removes them.
48
+ #
45
49
  # @param request_options [Hash]
46
50
  # @param params [Nordlet::Hr::Types::PositionsUpdateHrRequest]
47
51
  # @option request_options [String] :base_url
@@ -74,6 +78,8 @@ module Nordlet
74
78
  end
75
79
  end
76
80
 
81
+ # Lists the company's positions; filterable and sortable by `name` and `code`.
82
+ #
77
83
  # @param request_options [Hash]
78
84
  # @param params [Nordlet::Hr::Types::PositionsListHrRequest]
79
85
  # @option request_options [String] :base_url
@@ -106,6 +112,9 @@ module Nordlet
106
112
  end
107
113
  end
108
114
 
115
+ # Creates an employee record. `payrollOptions` holds the country-specific settings the payroll engine reads for
116
+ # the person (see `hr/employees/fields`); `applyAllowance` defaults to true and `pensionAccumulation` to false.
117
+ #
109
118
  # @param request_options [Hash]
110
119
  # @param params [Nordlet::Hr::Types::EmployeesCreateHrRequest]
111
120
  # @option request_options [String] :base_url
@@ -138,6 +147,10 @@ module Nordlet
138
147
  end
139
148
  end
140
149
 
150
+ # Changes the given fields of an employee; a null clears the fields that allow it (code, personal code, birth
151
+ # date, contact details, address, IBAN, social insurance number and start, hire date, notes). `status` and
152
+ # `terminationDate` are set here too.
153
+ #
141
154
  # @param request_options [Hash]
142
155
  # @param params [Nordlet::Hr::Types::EmployeesUpdateHrRequest]
143
156
  # @option request_options [String] :base_url
@@ -170,6 +183,8 @@ module Nordlet
170
183
  end
171
184
  end
172
185
 
186
+ # Reads one employee.
187
+ #
173
188
  # @param request_options [Hash]
174
189
  # @param params [Nordlet::Hr::Types::EmployeesGetHrRequest]
175
190
  # @option request_options [String] :base_url
@@ -238,6 +253,9 @@ module Nordlet
238
253
  end
239
254
  end
240
255
 
256
+ # Lists the employees that are not deleted; filterable by `firstName`, `lastName`, `code`, `status` and `email`,
257
+ # sortable by `lastName`, `code` and `createdAt`.
258
+ #
241
259
  # @param request_options [Hash]
242
260
  # @param params [Nordlet::Hr::Types::EmployeesListHrRequest]
243
261
  # @option request_options [String] :base_url
@@ -270,6 +288,9 @@ module Nordlet
270
288
  end
271
289
  end
272
290
 
291
+ # Marks the employee deleted; the record stays and no longer appears in lists or payroll runs.
292
+ # `hr/employees/anonymize` also blanks the personal data.
293
+ #
273
294
  # @param request_options [Hash]
274
295
  # @param params [Nordlet::Hr::Types::EmployeesDeleteHrRequest]
275
296
  # @option request_options [String] :base_url
@@ -338,6 +359,12 @@ module Nordlet
338
359
  end
339
360
  end
340
361
 
362
+ # Creates an employment contract for an employee. A `permanent` contract takes no `endDate` and a `fixed_term` one
363
+ # requires it; the number comes from `contractNo` or, with `agreementId`, from the employee's agreement;
364
+ # `workHours` defaults by `salaryType`. Answers 422 when the end date is before the start, and 409 when the
365
+ # employee already has a contract overlapping the period (end it with `hr/contracts/end` first) or the contract
366
+ # number already exists.
367
+ #
341
368
  # @param request_options [Hash]
342
369
  # @param params [Nordlet::Hr::Types::ContractsCreateHrRequest]
343
370
  # @option request_options [String] :base_url
@@ -370,6 +397,9 @@ module Nordlet
370
397
  end
371
398
  end
372
399
 
400
+ # Ends a contract on `endDate` with an optional reason. Answers 422 when the end date is before the contract
401
+ # start.
402
+ #
373
403
  # @param request_options [Hash]
374
404
  # @param params [Nordlet::Hr::Types::ContractsEndHrRequest]
375
405
  # @option request_options [String] :base_url
@@ -402,6 +432,9 @@ module Nordlet
402
432
  end
403
433
  end
404
434
 
435
+ # Lists employment contracts; filterable by `employeeId`, `agreementId`, `status` and `contractNo`, sortable by
436
+ # `startDate` and `contractNo`.
437
+ #
405
438
  # @param request_options [Hash]
406
439
  # @param params [Nordlet::Hr::Types::ContractsListHrRequest]
407
440
  # @option request_options [String] :base_url
@@ -434,6 +467,9 @@ module Nordlet
434
467
  end
435
468
  end
436
469
 
470
+ # Creates or replaces the leave entitlement of an employee for a year; `usedDays` is kept unless given (0 on a new
471
+ # row) and `remainingDays` is the entitled days less the used ones.
472
+ #
437
473
  # @param request_options [Hash]
438
474
  # @param params [Nordlet::Hr::Types::LeaveBalancesSetHrRequest]
439
475
  # @option request_options [String] :base_url
@@ -466,6 +502,8 @@ module Nordlet
466
502
  end
467
503
  end
468
504
 
505
+ # Lists leave balances, narrowed to an employee and/or a year when given, oldest year first.
506
+ #
469
507
  # @param request_options [Hash]
470
508
  # @param params [Nordlet::Hr::Types::LeaveBalancesListHrRequest]
471
509
  # @option request_options [String] :base_url
@@ -498,6 +536,9 @@ module Nordlet
498
536
  end
499
537
  end
500
538
 
539
+ # Records a sick-leave certificate of an employee. Answers 422 when `toDate` is before `fromDate`.
540
+ # `payroll/runs/create` warns when a certificate covers working days of a month that has no timesheet.
541
+ #
501
542
  # @param request_options [Hash]
502
543
  # @param params [Nordlet::Hr::Types::IncapacityCertificatesCreateHrRequest]
503
544
  # @option request_options [String] :base_url
@@ -530,6 +571,8 @@ module Nordlet
530
571
  end
531
572
  end
532
573
 
574
+ # Lists incapacity certificates; filterable by `employeeId` and `number`, sortable by `fromDate` and `number`.
575
+ #
533
576
  # @param request_options [Hash]
534
577
  # @param params [Nordlet::Hr::Types::IncapacityCertificatesListHrRequest]
535
578
  # @option request_options [String] :base_url
@@ -562,6 +605,10 @@ module Nordlet
562
605
  end
563
606
  end
564
607
 
608
+ # Adds the company's daily per diem rate for a destination country from `validFrom`; `hr/business-trips/create`
609
+ # takes the latest rate valid on the trip's start date. Answers 409 when a rate for that country already starts on
610
+ # that date.
611
+ #
565
612
  # @param request_options [Hash]
566
613
  # @param params [Nordlet::Hr::Types::PerDiemRatesCreateHrRequest]
567
614
  # @option request_options [String] :base_url
@@ -594,6 +641,8 @@ module Nordlet
594
641
  end
595
642
  end
596
643
 
644
+ # Lists per diem rates; filterable by `countryCode`, sortable by `countryCode` and `validFrom`.
645
+ #
597
646
  # @param request_options [Hash]
598
647
  # @param params [Nordlet::Hr::Types::PerDiemRatesListHrRequest]
599
648
  # @option request_options [String] :base_url
@@ -626,6 +675,8 @@ module Nordlet
626
675
  end
627
676
  end
628
677
 
678
+ # Deletes a per diem rate.
679
+ #
629
680
  # @param request_options [Hash]
630
681
  # @param params [Nordlet::Hr::Types::PerDiemRatesDeleteHrRequest]
631
682
  # @option request_options [String] :base_url
@@ -658,6 +709,11 @@ module Nordlet
658
709
  end
659
710
  end
660
711
 
712
+ # Stores the trip as a draft with `days` counted as calendar days, both ends included, and `perDiemAmount` as the
713
+ # days times the company's rate for the destination valid on the start date (`hr/per-diem-rates/create`). Answers
714
+ # 422 when the trip ends before it starts or no rate covers the destination on that date, and 409 when the
715
+ # employee already has a trip overlapping the dates.
716
+ #
661
717
  # @param request_options [Hash]
662
718
  # @param params [Nordlet::Hr::Types::BusinessTripsCreateHrRequest]
663
719
  # @option request_options [String] :base_url
@@ -690,6 +746,8 @@ module Nordlet
690
746
  end
691
747
  end
692
748
 
749
+ # Reads one business trip.
750
+ #
693
751
  # @param request_options [Hash]
694
752
  # @param params [Nordlet::Hr::Types::BusinessTripsGetHrRequest]
695
753
  # @option request_options [String] :base_url
@@ -722,6 +780,8 @@ module Nordlet
722
780
  end
723
781
  end
724
782
 
783
+ # Lists business trips; filterable by `employeeId`, `status` and `payrollRunId`, sortable by `startDate`.
784
+ #
725
785
  # @param request_options [Hash]
726
786
  # @param params [Nordlet::Hr::Types::BusinessTripsListHrRequest]
727
787
  # @option request_options [String] :base_url
@@ -754,6 +814,10 @@ module Nordlet
754
814
  end
755
815
  end
756
816
 
817
+ # Sets the trip's status to `approved`. `payroll/runs/create` without explicit lines adds the per diem of every
818
+ # approved trip ending in the run month as an untaxed addition and sets the trip's `payrollRunId`; reversing or
819
+ # cancelling the run releases the trip again. Answers 409 when the trip is not a draft.
820
+ #
757
821
  # @param request_options [Hash]
758
822
  # @param params [Nordlet::Hr::Types::BusinessTripsApproveHrRequest]
759
823
  # @option request_options [String] :base_url
@@ -786,6 +850,8 @@ module Nordlet
786
850
  end
787
851
  end
788
852
 
853
+ # Deletes a draft trip; answers 409 when the trip is not a draft.
854
+ #
789
855
  # @param request_options [Hash]
790
856
  # @param params [Nordlet::Hr::Types::BusinessTripsDeleteHrRequest]
791
857
  # @option request_options [String] :base_url
@@ -818,6 +884,9 @@ module Nordlet
818
884
  end
819
885
  end
820
886
 
887
+ # Adds an education, qualification, certificate or training record to an employee, optionally linked to one of the
888
+ # company's uploaded files (`fileId`).
889
+ #
821
890
  # @param request_options [Hash]
822
891
  # @param params [Nordlet::Hr::Types::EmployeesRecordsCreateHrRequest]
823
892
  # @option request_options [String] :base_url
@@ -850,6 +919,8 @@ module Nordlet
850
919
  end
851
920
  end
852
921
 
922
+ # Changes the given fields of an employee record; `issuedAt`, `validUntil` and `fileId` can be cleared with null.
923
+ #
853
924
  # @param request_options [Hash]
854
925
  # @param params [Nordlet::Hr::Types::EmployeesRecordsUpdateHrRequest]
855
926
  # @option request_options [String] :base_url
@@ -882,6 +953,8 @@ module Nordlet
882
953
  end
883
954
  end
884
955
 
956
+ # Deletes an employee record.
957
+ #
885
958
  # @param request_options [Hash]
886
959
  # @param params [Nordlet::Hr::Types::EmployeesRecordsDeleteHrRequest]
887
960
  # @option request_options [String] :base_url
@@ -914,6 +987,8 @@ module Nordlet
914
987
  end
915
988
  end
916
989
 
990
+ # Lists employee records; filterable by `employeeId`, `type` and `title`, sortable by `createdAt` and `issuedAt`.
991
+ #
917
992
  # @param request_options [Hash]
918
993
  # @param params [Nordlet::Hr::Types::EmployeesRecordsListHrRequest]
919
994
  # @option request_options [String] :base_url
@@ -946,6 +1021,8 @@ module Nordlet
946
1021
  end
947
1022
  end
948
1023
 
1024
+ # Lists the files uploaded against an employee, newest first.
1025
+ #
949
1026
  # @param request_options [Hash]
950
1027
  # @param params [Nordlet::Hr::Types::EmployeesAttachmentsListHrRequest]
951
1028
  # @option request_options [String] :base_url
@@ -978,6 +1055,11 @@ module Nordlet
978
1055
  end
979
1056
  end
980
1057
 
1058
+ # Builds the timesheet of the month for every employee with a contract in it, or for one employee with
1059
+ # `employeeId`, replacing any existing timesheet: the Monday to Friday days within the contract get the contract's
1060
+ # daily hours (its weekly hours over five), and for a Lithuanian company the public holidays are `holiday` days
1061
+ # with 0 hours. Answers 422 when no contract covers the month.
1062
+ #
981
1063
  # @param request_options [Hash]
982
1064
  # @param params [Nordlet::Hr::Types::TimesheetsGenerateHrRequest]
983
1065
  # @option request_options [String] :base_url
@@ -1010,6 +1092,11 @@ module Nordlet
1010
1092
  end
1011
1093
  end
1012
1094
 
1095
+ # Creates or replaces the timesheet of an employee for a month from the given days; `workedDays` and `workedHours`
1096
+ # count the `work` and `business_trip` days with hours. Answers 422 for a day outside the month, a day given twice
1097
+ # or more than 24 hours in a day. `payroll/runs/create` reads the timesheet for the paid days, the days worked and
1098
+ # the business-trip days of the month.
1099
+ #
1013
1100
  # @param request_options [Hash]
1014
1101
  # @param params [Nordlet::Hr::Types::TimesheetsUpsertHrRequest]
1015
1102
  # @option request_options [String] :base_url
@@ -1042,6 +1129,8 @@ module Nordlet
1042
1129
  end
1043
1130
  end
1044
1131
 
1132
+ # Reads the timesheet of an employee for a month.
1133
+ #
1045
1134
  # @param request_options [Hash]
1046
1135
  # @param params [Nordlet::Hr::Types::TimesheetsGetHrRequest]
1047
1136
  # @option request_options [String] :base_url
@@ -1074,6 +1163,8 @@ module Nordlet
1074
1163
  end
1075
1164
  end
1076
1165
 
1166
+ # Lists the timesheets of a month, ordered by employee name.
1167
+ #
1077
1168
  # @param request_options [Hash]
1078
1169
  # @param params [Nordlet::Hr::Types::TimesheetsListHrRequest]
1079
1170
  # @option request_options [String] :base_url
@@ -1106,6 +1197,8 @@ module Nordlet
1106
1197
  end
1107
1198
  end
1108
1199
 
1200
+ # Deletes a timesheet.
1201
+ #
1109
1202
  # @param request_options [Hash]
1110
1203
  # @param params [Nordlet::Hr::Types::TimesheetsDeleteHrRequest]
1111
1204
  # @option request_options [String] :base_url