nordlet 0.6.0 → 0.6.4

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 (211) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +133 -16
  3. data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +0 -2
  4. data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +1 -0
  5. data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +1 -0
  6. data/lib/nordlet/account/types/email_change_request_account_request_locale.rb +30 -0
  7. data/lib/nordlet/account/types/export_account_response.rb +2 -0
  8. data/lib/nordlet/account/types/export_account_response_billing_accounts_item.rb +21 -0
  9. data/lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb +14 -0
  10. data/lib/nordlet/account/types/export_account_response_credit_transactions_item.rb +2 -0
  11. data/lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb +14 -0
  12. data/lib/nordlet/account/types/invites_accept_account_request_locale.rb +30 -0
  13. data/lib/nordlet/account/types/invites_create_account_request_locale.rb +30 -0
  14. data/lib/nordlet/account/types/locale_set_account_request_locale.rb +30 -0
  15. data/lib/nordlet/account/types/login_link_request_account_request_locale.rb +30 -0
  16. data/lib/nordlet/account/types/oauth_authorize_approve_account_request.rb +25 -0
  17. data/lib/nordlet/account/types/oauth_authorize_approve_account_response.rb +11 -0
  18. data/lib/nordlet/account/types/oauth_authorize_deny_account_request.rb +25 -0
  19. data/lib/nordlet/account/types/oauth_authorize_deny_account_response.rb +11 -0
  20. data/lib/nordlet/account/types/oauth_authorize_describe_account_request.rb +25 -0
  21. data/lib/nordlet/account/types/oauth_authorize_describe_account_response.rb +17 -0
  22. data/lib/nordlet/agreements/types/agreements_create_agreements_request_items_item.rb +2 -0
  23. data/lib/nordlet/agreements/types/agreements_create_agreements_response_items_item.rb +2 -0
  24. data/lib/nordlet/agreements/types/agreements_get_agreements_response_items_item.rb +2 -0
  25. data/lib/nordlet/agreements/types/agreements_update_agreements_response_items_item.rb +2 -0
  26. data/lib/nordlet/bank/client.rb +23 -19
  27. data/lib/nordlet/bank/types/import_templates_create_bank_request.rb +2 -0
  28. data/lib/nordlet/bank/types/import_templates_create_bank_response.rb +2 -0
  29. data/lib/nordlet/bank/types/import_templates_get_bank_response.rb +2 -0
  30. data/lib/nordlet/bank/types/import_templates_list_bank_response_rows_item.rb +2 -0
  31. data/lib/nordlet/bank/types/import_templates_list_builtin_bank_response_rows_item.rb +2 -0
  32. data/lib/nordlet/bank/types/import_templates_update_bank_request.rb +2 -0
  33. data/lib/nordlet/bank/types/import_templates_update_bank_response.rb +2 -0
  34. data/lib/nordlet/billing/client.rb +44 -31
  35. data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
  36. data/lib/nordlet/billing/types/account_get_billing_response_site.rb +14 -0
  37. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
  38. data/lib/nordlet/billing/types/account_set_account_type_billing_response_site.rb +14 -0
  39. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
  40. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_site.rb +14 -0
  41. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
  42. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_site.rb +14 -0
  43. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
  44. data/lib/nordlet/billing/types/account_set_plan_billing_response_site.rb +14 -0
  45. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
  46. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_site.rb +14 -0
  47. data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +30 -0
  48. data/lib/nordlet/billing/types/portal_create_billing_request_locale.rb +30 -0
  49. data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
  50. data/lib/nordlet/billing/types/subscription_cancel_billing_response_site.rb +14 -0
  51. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
  52. data/lib/nordlet/billing/types/topup_confirm_billing_response_site.rb +14 -0
  53. data/lib/nordlet/billing/types/topup_create_billing_request_locale.rb +30 -0
  54. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item.rb +2 -0
  55. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_site.rb +14 -0
  56. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +2 -0
  57. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +2 -0
  58. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +2 -0
  59. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +2 -0
  60. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +2 -0
  61. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +2 -0
  62. data/lib/nordlet/calendar/types/submit_calendar_response.rb +2 -0
  63. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +2 -0
  64. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +2 -0
  65. data/lib/nordlet/capture/types/documents_confirm_capture_request_lines_item.rb +4 -0
  66. data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +4 -0
  67. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_lines_item.rb +8 -0
  68. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +8 -0
  69. data/lib/nordlet/cash/client.rb +7 -6
  70. data/lib/nordlet/catalog/client.rb +145 -2
  71. data/lib/nordlet/catalog/types/items_create_catalog_response.rb +2 -0
  72. data/lib/nordlet/catalog/types/items_create_catalog_response_alternative_units_item.rb +21 -0
  73. data/lib/nordlet/catalog/types/items_get_catalog_response.rb +2 -0
  74. data/lib/nordlet/catalog/types/items_get_catalog_response_alternative_units_item.rb +21 -0
  75. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item.rb +2 -0
  76. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item_alternative_units_item.rb +21 -0
  77. data/lib/nordlet/catalog/types/items_units_create_catalog_request.rb +21 -0
  78. data/lib/nordlet/catalog/types/items_units_create_catalog_response.rb +27 -0
  79. data/lib/nordlet/catalog/types/items_units_delete_catalog_request.rb +11 -0
  80. data/lib/nordlet/catalog/types/items_units_delete_catalog_response.rb +11 -0
  81. data/lib/nordlet/catalog/types/items_units_list_catalog_request.rb +11 -0
  82. data/lib/nordlet/catalog/types/items_units_list_catalog_response.rb +11 -0
  83. data/lib/nordlet/catalog/types/items_units_list_catalog_response_rows_item.rb +27 -0
  84. data/lib/nordlet/catalog/types/items_units_update_catalog_request.rb +19 -0
  85. data/lib/nordlet/catalog/types/items_units_update_catalog_response.rb +27 -0
  86. data/lib/nordlet/catalog/types/items_update_catalog_response.rb +2 -0
  87. data/lib/nordlet/catalog/types/items_update_catalog_response_alternative_units_item.rb +21 -0
  88. data/lib/nordlet/catalog/types/units_create_catalog_request.rb +2 -0
  89. data/lib/nordlet/catalog/types/units_create_catalog_response.rb +2 -0
  90. data/lib/nordlet/catalog/types/units_list_catalog_response_rows_item.rb +2 -0
  91. data/lib/nordlet/catalog/types/units_options_catalog_request_locale.rb +30 -0
  92. data/lib/nordlet/catalog/types/units_update_catalog_request.rb +2 -0
  93. data/lib/nordlet/catalog/types/units_update_catalog_response.rb +2 -0
  94. data/lib/nordlet/declarations/client.rb +46 -5
  95. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request.rb +2 -0
  96. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item.rb +25 -0
  97. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item_lines_item.rb +13 -0
  98. data/lib/nordlet/declarations/types/submissions_confirm_declarations_request.rb +11 -0
  99. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +71 -0
  100. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_environment.rb +14 -0
  101. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_status.rb +16 -0
  102. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +2 -0
  103. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +2 -0
  104. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +2 -0
  105. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +2 -0
  106. data/lib/nordlet/ecommerce/client.rb +12 -9
  107. data/lib/nordlet/ecommerce/types/orders_cancel_ecommerce_response_lines_item.rb +2 -0
  108. data/lib/nordlet/ecommerce/types/orders_create_ecommerce_request_lines_item.rb +2 -0
  109. data/lib/nordlet/ecommerce/types/orders_create_ecommerce_response_lines_item.rb +2 -0
  110. data/lib/nordlet/ecommerce/types/orders_fulfill_ecommerce_response_lines_item.rb +2 -0
  111. data/lib/nordlet/ecommerce/types/orders_get_ecommerce_response_lines_item.rb +2 -0
  112. data/lib/nordlet/ecommerce/types/orders_reserve_ecommerce_response_lines_item.rb +2 -0
  113. data/lib/nordlet/fleet/client.rb +8 -4
  114. data/lib/nordlet/fleet/types/vehicles_create_fleet_request.rb +2 -0
  115. data/lib/nordlet/fleet/types/vehicles_create_fleet_response.rb +2 -0
  116. data/lib/nordlet/fleet/types/vehicles_get_fleet_response.rb +2 -0
  117. data/lib/nordlet/fleet/types/vehicles_list_fleet_response_rows_item.rb +2 -0
  118. data/lib/nordlet/fleet/types/vehicles_update_fleet_request.rb +2 -0
  119. data/lib/nordlet/fleet/types/vehicles_update_fleet_response.rb +2 -0
  120. data/lib/nordlet/inventory/client.rb +28 -23
  121. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +2 -0
  122. data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +1 -0
  123. data/lib/nordlet/partners/types/debt_reminders_preview_partners_response_rows_item_locale.rb +30 -0
  124. data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +1 -0
  125. data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +1 -0
  126. data/lib/nordlet/payroll/client.rb +16 -12
  127. data/lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb +30 -0
  128. data/lib/nordlet/pos/client.rb +126 -9
  129. data/lib/nordlet/pos/types/refunds_create_pos_request.rb +17 -0
  130. data/lib/nordlet/pos/types/refunds_create_pos_request_lines_item.rb +13 -0
  131. data/lib/nordlet/pos/types/refunds_create_pos_response.rb +33 -0
  132. data/lib/nordlet/pos/types/refunds_create_pos_response_lines_item.rb +23 -0
  133. data/lib/nordlet/pos/types/refunds_get_pos_request.rb +11 -0
  134. data/lib/nordlet/pos/types/refunds_get_pos_response.rb +33 -0
  135. data/lib/nordlet/pos/types/refunds_get_pos_response_lines_item.rb +23 -0
  136. data/lib/nordlet/pos/types/refunds_list_pos_request.rb +19 -0
  137. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item.rb +15 -0
  138. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_op.rb +18 -0
  139. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value.rb +19 -0
  140. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value_three_item.rb +15 -0
  141. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item.rb +13 -0
  142. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item_dir.rb +14 -0
  143. data/lib/nordlet/pos/types/refunds_list_pos_response.rb +21 -0
  144. data/lib/nordlet/pos/types/refunds_list_pos_response_rows_item.rb +31 -0
  145. data/lib/nordlet/production/client.rb +20 -14
  146. data/lib/nordlet/production/types/maintenance_cancel_production_response.rb +2 -0
  147. data/lib/nordlet/production/types/maintenance_complete_production_request.rb +2 -0
  148. data/lib/nordlet/production/types/maintenance_complete_production_response.rb +2 -0
  149. data/lib/nordlet/production/types/maintenance_create_production_request.rb +2 -0
  150. data/lib/nordlet/production/types/maintenance_create_production_response.rb +2 -0
  151. data/lib/nordlet/production/types/maintenance_list_production_response_rows_item.rb +2 -0
  152. data/lib/nordlet/public/client.rb +6 -5
  153. data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
  154. data/lib/nordlet/purchases/client.rb +12 -9
  155. data/lib/nordlet/purchases/types/invoices_create_purchases_request_lines_item.rb +4 -0
  156. data/lib/nordlet/purchases/types/invoices_create_purchases_response_lines_item.rb +8 -0
  157. data/lib/nordlet/purchases/types/invoices_get_purchases_response_lines_item.rb +8 -0
  158. data/lib/nordlet/purchases/types/invoices_register_purchases_response_lines_item.rb +8 -0
  159. data/lib/nordlet/purchases/types/invoices_update_purchases_request_lines_item.rb +4 -0
  160. data/lib/nordlet/purchases/types/invoices_update_purchases_response_lines_item.rb +8 -0
  161. data/lib/nordlet/purchases/types/orders_approve_purchases_response_lines_item.rb +4 -0
  162. data/lib/nordlet/purchases/types/orders_cancel_purchases_response_lines_item.rb +4 -0
  163. data/lib/nordlet/purchases/types/orders_close_purchases_response_lines_item.rb +4 -0
  164. data/lib/nordlet/purchases/types/orders_create_purchases_request_lines_item.rb +4 -0
  165. data/lib/nordlet/purchases/types/orders_create_purchases_response_lines_item.rb +4 -0
  166. data/lib/nordlet/purchases/types/orders_get_purchases_response_lines_item.rb +4 -0
  167. data/lib/nordlet/purchases/types/orders_reject_purchases_response_lines_item.rb +4 -0
  168. data/lib/nordlet/purchases/types/orders_submit_purchases_response_lines_item.rb +4 -0
  169. data/lib/nordlet/purchases/types/orders_update_purchases_request_lines_item.rb +4 -0
  170. data/lib/nordlet/purchases/types/orders_update_purchases_response_lines_item.rb +4 -0
  171. data/lib/nordlet/reference/client.rb +5 -2
  172. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item.rb +8 -0
  173. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb +13 -0
  174. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +21 -0
  175. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_side.rb +15 -0
  176. data/lib/nordlet/reports/client.rb +3 -3
  177. data/lib/nordlet/sales/client.rb +29 -21
  178. data/lib/nordlet/sales/types/acts_create_sales_response_lines_item.rb +4 -0
  179. data/lib/nordlet/sales/types/acts_get_sales_response_lines_item.rb +4 -0
  180. data/lib/nordlet/sales/types/acts_issue_sales_response_lines_item.rb +4 -0
  181. data/lib/nordlet/sales/types/acts_pdf_sales_request_locale.rb +30 -0
  182. data/lib/nordlet/sales/types/acts_update_sales_response_lines_item.rb +4 -0
  183. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +2 -0
  184. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +2 -0
  185. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +2 -0
  186. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +2 -0
  187. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +2 -0
  188. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +2 -0
  189. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +4 -0
  190. data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +1 -0
  191. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +4 -0
  192. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +4 -0
  193. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +4 -0
  194. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +2 -0
  195. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +4 -0
  196. data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +1 -0
  197. data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +1 -0
  198. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +4 -0
  199. data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +1 -0
  200. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +4 -0
  201. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
  202. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +1 -0
  203. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +1 -0
  204. data/lib/nordlet/transport/types/waybills_create_transport_response_lines_item.rb +4 -0
  205. data/lib/nordlet/transport/types/waybills_get_transport_response_lines_item.rb +4 -0
  206. data/lib/nordlet/transport/types/waybills_issue_transport_response_lines_item.rb +4 -0
  207. data/lib/nordlet/transport/types/waybills_update_transport_response_lines_item.rb +4 -0
  208. data/lib/nordlet/version.rb +1 -1
  209. data/lib/nordlet.rb +56 -0
  210. data/reference.md +1329 -268
  211. metadata +58 -2
data/reference.md CHANGED
@@ -997,7 +997,7 @@ client.reference.currencies_list
997
997
  <dl>
998
998
  <dd>
999
999
 
1000
- Lists the company's VAT classifiers (code, country, name and rate). A document line that names a classifier in `vatClassifierCode` takes its rate from it when neither the line nor the item has a rate. Filterable by `code`, `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
1000
+ Lists the company's VAT types (code, country, name and rate). A document line names one in `vatClassifierCode` and takes its rate, VAT scheme and return boxes from it; a company that has VAT types refuses a line without one (422). `side` says whether the type is for sale lines, purchase lines or both, `scheme` is its VAT scheme and `nameEn` its English name; both are null for a type the company added itself. A type without a rate takes the line's `vatRatePercent` on the sides where `rateFromLine` is true, and 0% elsewhere. Filterable by `code`, `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
1001
1001
  </dd>
1002
1002
  </dl>
1003
1003
  </dd>
@@ -9207,7 +9207,7 @@ client.catalog.items_kinds_list
9207
9207
  <dl>
9208
9208
  <dd>
9209
9209
 
9210
- Create a unit of measure of the company's own, in addition to the global measurement units (`reference/units/list`). 409 when the code already exists.
9210
+ Create a unit of measure of the company's own, in addition to the global measurement units (`reference/units/list`). `rec20Code` is the UN/ECE Recommendation 20 code e-invoices carry for the unit. 409 when the code already exists.
9211
9211
  </dd>
9212
9212
  </dl>
9213
9213
  </dd>
@@ -9256,6 +9256,14 @@ client.catalog.units_create(
9256
9256
  <dl>
9257
9257
  <dd>
9258
9258
 
9259
+ **rec20code:** `String`
9260
+
9261
+ </dd>
9262
+ </dl>
9263
+
9264
+ <dl>
9265
+ <dd>
9266
+
9259
9267
  **is_active:** `Internal::Types::Boolean`
9260
9268
 
9261
9269
  </dd>
@@ -9288,7 +9296,7 @@ client.catalog.units_create(
9288
9296
  <dl>
9289
9297
  <dd>
9290
9298
 
9291
- Change the code, name or active flag of a company unit. 409 when the new code already exists.
9299
+ Change the code, name, UN/ECE Recommendation 20 code or active flag of a company unit. 409 when the new code already exists.
9292
9300
  </dd>
9293
9301
  </dl>
9294
9302
  </dd>
@@ -9342,6 +9350,14 @@ client.catalog.units_update(id: "id")
9342
9350
  <dl>
9343
9351
  <dd>
9344
9352
 
9353
+ **rec20code:** `String`
9354
+
9355
+ </dd>
9356
+ </dl>
9357
+
9358
+ <dl>
9359
+ <dd>
9360
+
9345
9361
  **is_active:** `Internal::Types::Boolean`
9346
9362
 
9347
9363
  </dd>
@@ -10056,6 +10072,330 @@ client.catalog.items_suppliers_delete(id: "id")
10056
10072
  </dl>
10057
10073
 
10058
10074
 
10075
+ </dd>
10076
+ </dl>
10077
+ </details>
10078
+
10079
+ <details><summary><code>client.catalog.<a href="/lib/nordlet/catalog/client.rb">items_units_create</a>(request) -> Nordlet::Catalog::Types::ItemsUnitsCreateCatalogResponse</code></summary>
10080
+ <dl>
10081
+ <dd>
10082
+
10083
+ #### 📝 Description
10084
+
10085
+ <dl>
10086
+ <dd>
10087
+
10088
+ <dl>
10089
+ <dd>
10090
+
10091
+ Add an alternative unit to an item: `factor` is how many of the item's own unit one `unitCode` holds (a box of 12 pieces has factor 12). Document lines entered in that unit keep the entered quantity and unit price and move `quantity × factor` of the item's unit in stock and filings. `isDefaultSale` and `isDefaultPurchase` mark the unit the app offers first on sale and purchase documents; setting one clears it on the item's other units. 422 when `unitCode` is the item's own unit or not a known unit; 409 when the item already has that unit.
10092
+ </dd>
10093
+ </dl>
10094
+ </dd>
10095
+ </dl>
10096
+
10097
+ #### 🔌 Usage
10098
+
10099
+ <dl>
10100
+ <dd>
10101
+
10102
+ <dl>
10103
+ <dd>
10104
+
10105
+ ```ruby
10106
+ client.catalog.items_units_create(
10107
+ item_id: "itemId",
10108
+ unit_code: "unitCode",
10109
+ factor: "121.000000"
10110
+ )
10111
+ ```
10112
+ </dd>
10113
+ </dl>
10114
+ </dd>
10115
+ </dl>
10116
+
10117
+ #### ⚙️ Parameters
10118
+
10119
+ <dl>
10120
+ <dd>
10121
+
10122
+ <dl>
10123
+ <dd>
10124
+
10125
+ **item_id:** `String`
10126
+
10127
+ </dd>
10128
+ </dl>
10129
+
10130
+ <dl>
10131
+ <dd>
10132
+
10133
+ **unit_code:** `String`
10134
+
10135
+ </dd>
10136
+ </dl>
10137
+
10138
+ <dl>
10139
+ <dd>
10140
+
10141
+ **factor:** `String`
10142
+
10143
+ </dd>
10144
+ </dl>
10145
+
10146
+ <dl>
10147
+ <dd>
10148
+
10149
+ **is_default_sale:** `Internal::Types::Boolean`
10150
+
10151
+ </dd>
10152
+ </dl>
10153
+
10154
+ <dl>
10155
+ <dd>
10156
+
10157
+ **is_default_purchase:** `Internal::Types::Boolean`
10158
+
10159
+ </dd>
10160
+ </dl>
10161
+
10162
+ <dl>
10163
+ <dd>
10164
+
10165
+ **barcode:** `String`
10166
+
10167
+ </dd>
10168
+ </dl>
10169
+
10170
+ <dl>
10171
+ <dd>
10172
+
10173
+ **request_options:** `Nordlet::Catalog::RequestOptions`
10174
+
10175
+ </dd>
10176
+ </dl>
10177
+ </dd>
10178
+ </dl>
10179
+
10180
+
10181
+ </dd>
10182
+ </dl>
10183
+ </details>
10184
+
10185
+ <details><summary><code>client.catalog.<a href="/lib/nordlet/catalog/client.rb">items_units_update</a>(request) -> Nordlet::Catalog::Types::ItemsUnitsUpdateCatalogResponse</code></summary>
10186
+ <dl>
10187
+ <dd>
10188
+
10189
+ #### 📝 Description
10190
+
10191
+ <dl>
10192
+ <dd>
10193
+
10194
+ <dl>
10195
+ <dd>
10196
+
10197
+ Change the factor, default flags or barcode of an alternative unit. Document lines already entered keep the factor they were saved with; the new factor applies to lines entered or recalculated after the change.
10198
+ </dd>
10199
+ </dl>
10200
+ </dd>
10201
+ </dl>
10202
+
10203
+ #### 🔌 Usage
10204
+
10205
+ <dl>
10206
+ <dd>
10207
+
10208
+ <dl>
10209
+ <dd>
10210
+
10211
+ ```ruby
10212
+ client.catalog.items_units_update(id: "id")
10213
+ ```
10214
+ </dd>
10215
+ </dl>
10216
+ </dd>
10217
+ </dl>
10218
+
10219
+ #### ⚙️ Parameters
10220
+
10221
+ <dl>
10222
+ <dd>
10223
+
10224
+ <dl>
10225
+ <dd>
10226
+
10227
+ **id:** `String`
10228
+
10229
+ </dd>
10230
+ </dl>
10231
+
10232
+ <dl>
10233
+ <dd>
10234
+
10235
+ **factor:** `String`
10236
+
10237
+ </dd>
10238
+ </dl>
10239
+
10240
+ <dl>
10241
+ <dd>
10242
+
10243
+ **is_default_sale:** `Internal::Types::Boolean`
10244
+
10245
+ </dd>
10246
+ </dl>
10247
+
10248
+ <dl>
10249
+ <dd>
10250
+
10251
+ **is_default_purchase:** `Internal::Types::Boolean`
10252
+
10253
+ </dd>
10254
+ </dl>
10255
+
10256
+ <dl>
10257
+ <dd>
10258
+
10259
+ **barcode:** `String`
10260
+
10261
+ </dd>
10262
+ </dl>
10263
+
10264
+ <dl>
10265
+ <dd>
10266
+
10267
+ **request_options:** `Nordlet::Catalog::RequestOptions`
10268
+
10269
+ </dd>
10270
+ </dl>
10271
+ </dd>
10272
+ </dl>
10273
+
10274
+
10275
+ </dd>
10276
+ </dl>
10277
+ </details>
10278
+
10279
+ <details><summary><code>client.catalog.<a href="/lib/nordlet/catalog/client.rb">items_units_delete</a>(request) -> Nordlet::Catalog::Types::ItemsUnitsDeleteCatalogResponse</code></summary>
10280
+ <dl>
10281
+ <dd>
10282
+
10283
+ #### 📝 Description
10284
+
10285
+ <dl>
10286
+ <dd>
10287
+
10288
+ <dl>
10289
+ <dd>
10290
+
10291
+ Delete an alternative unit of an item. Document lines already entered in it keep their unit and factor.
10292
+ </dd>
10293
+ </dl>
10294
+ </dd>
10295
+ </dl>
10296
+
10297
+ #### 🔌 Usage
10298
+
10299
+ <dl>
10300
+ <dd>
10301
+
10302
+ <dl>
10303
+ <dd>
10304
+
10305
+ ```ruby
10306
+ client.catalog.items_units_delete(id: "id")
10307
+ ```
10308
+ </dd>
10309
+ </dl>
10310
+ </dd>
10311
+ </dl>
10312
+
10313
+ #### ⚙️ Parameters
10314
+
10315
+ <dl>
10316
+ <dd>
10317
+
10318
+ <dl>
10319
+ <dd>
10320
+
10321
+ **id:** `String`
10322
+
10323
+ </dd>
10324
+ </dl>
10325
+
10326
+ <dl>
10327
+ <dd>
10328
+
10329
+ **request_options:** `Nordlet::Catalog::RequestOptions`
10330
+
10331
+ </dd>
10332
+ </dl>
10333
+ </dd>
10334
+ </dl>
10335
+
10336
+
10337
+ </dd>
10338
+ </dl>
10339
+ </details>
10340
+
10341
+ <details><summary><code>client.catalog.<a href="/lib/nordlet/catalog/client.rb">items_units_list</a>(request) -> Nordlet::Catalog::Types::ItemsUnitsListCatalogResponse</code></summary>
10342
+ <dl>
10343
+ <dd>
10344
+
10345
+ #### 📝 Description
10346
+
10347
+ <dl>
10348
+ <dd>
10349
+
10350
+ <dl>
10351
+ <dd>
10352
+
10353
+ List the alternative units of an item, ordered by unit code.
10354
+ </dd>
10355
+ </dl>
10356
+ </dd>
10357
+ </dl>
10358
+
10359
+ #### 🔌 Usage
10360
+
10361
+ <dl>
10362
+ <dd>
10363
+
10364
+ <dl>
10365
+ <dd>
10366
+
10367
+ ```ruby
10368
+ client.catalog.items_units_list(item_id: "itemId")
10369
+ ```
10370
+ </dd>
10371
+ </dl>
10372
+ </dd>
10373
+ </dl>
10374
+
10375
+ #### ⚙️ Parameters
10376
+
10377
+ <dl>
10378
+ <dd>
10379
+
10380
+ <dl>
10381
+ <dd>
10382
+
10383
+ **item_id:** `String`
10384
+
10385
+ </dd>
10386
+ </dl>
10387
+
10388
+ <dl>
10389
+ <dd>
10390
+
10391
+ **request_options:** `Nordlet::Catalog::RequestOptions`
10392
+
10393
+ </dd>
10394
+ </dl>
10395
+ </dd>
10396
+ </dl>
10397
+
10398
+
10059
10399
  </dd>
10060
10400
  </dl>
10061
10401
  </details>
@@ -10966,7 +11306,7 @@ client.sales.invoices_pdf(id: "id")
10966
11306
  <dl>
10967
11307
  <dd>
10968
11308
 
10969
- Return a sale document as its customer sees it: the seller as printed on it (the snapshot taken at issue, else the company), the buyer with address and e-mail, the lines, the totals, `paidOn` (the date of the latest payment once the document is paid), `payUrl` (as in `sales/invoices/payment-link`) and `token`, the document's customer token for `public/invoices/get` and `public/invoices/pdf`, created on first use; `token` is null on a draft.
11309
+ Return a sale document as its customer sees it: the seller as printed on it (the snapshot taken at issue, else the company), the buyer with address and e-mail, the lines, the totals, `paidOn` (the date of the latest payment once the document is paid), `payUrl` (as in `sales/invoices/payment-link`; null while `cardPaymentReceived`), `cardPaymentReceived` (a completed card payment was received and the invoice waits for the payout settlement) and `token`, the document's customer token for `public/invoices/get` and `public/invoices/pdf`, created on first use; `token` is null on a draft.
10970
11310
  </dd>
10971
11311
  </dl>
10972
11312
  </dd>
@@ -11826,7 +12166,7 @@ client.sales.invoices_delete(id: "id")
11826
12166
  <dl>
11827
12167
  <dd>
11828
12168
 
11829
- Issue a draft sale document: assigns the next number (from its document series, else from `series` or the type's default prefix and the year), the issue date (`issueDate`, else the draft's, else today) and a missing due date from the partner's payment term, and for an invoice, credit note or advance invoice posts the journal entry and stores the VAT evidence. `warehouseId` (or the series' warehouse) takes the sold goods of an invoice out of stock with a cost of goods sold entry; `returnToStock` puts them back for a credit note that credits an invoice. A credit note is set against the unpaid balance of the credited document. Emits `sale_invoice.issued`, `sale_invoice.paid` when a credit note settles the credited invoice in full, and `intercompany.invoice_mirrored` when the partner is linked to another company of the group (a draft purchase invoice is created there). Answers 409 when the document is already issued or locked or the accounting period is locked, 422 when the lines carry VAT under a scheme that charges none, when credit notes would exceed the credited total, or when `returnToStock` is used on anything but a credit note of an invoice.
12169
+ Issue a draft sale document: assigns the next number (from its document series, else from `series` or the type's default prefix and the year), the issue date (`issueDate`, else the draft's, else today) and a missing due date from the partner's payment term, and for an invoice, credit note or advance invoice posts the journal entry and stores the VAT evidence. `warehouseId` (or the series' warehouse) takes the sold goods of an invoice out of stock, the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first), leaving out expired lots, with a cost of goods sold entry; `returnToStock` puts them back for a credit note that credits an invoice. A credit note is set against the unpaid balance of the credited document. Emits `sale_invoice.issued`, `sale_invoice.paid` when a credit note settles the credited invoice in full, and `intercompany.invoice_mirrored` when the partner is linked to another company of the group (a draft purchase invoice is created there). Answers 409 when the document is already issued or locked or the accounting period is locked, 422 when the lines carry VAT under a scheme that charges none, when credit notes would exceed the credited total, or when `returnToStock` is used on anything but a credit note of an invoice.
11830
12170
  </dd>
11831
12171
  </dl>
11832
12172
  </dd>
@@ -12044,7 +12384,7 @@ client.sales.invoices_unlock(id: "id")
12044
12384
  <dl>
12045
12385
  <dd>
12046
12386
 
12047
- Return the customer payment link of a sale document: the Stripe card payment page (`source` `stripe`) when the company's Stripe account is connected and can take charges (`sales/invoices/card-payments/get`), else the link rendered from the company's payment link template (`sales/invoices/payment-settings/update`, `source` `template`); `url` is null when the company has neither, the document is not issued or its `payLinkEnabled` is false. The document's payment token is created on first use. Answers 409 when the document is already paid.
12387
+ Return the customer payment link of a sale document: the Stripe card payment page (`source` `stripe`) when the company's Stripe account is connected and can take charges (`sales/invoices/card-payments/get`), else the link rendered from the company's payment link template (`sales/invoices/payment-settings/update`, `source` `template`); `url` is null when the company has neither, the document is a credit note, is not issued or its `payLinkEnabled` is false. The document's payment token is created on first use. Answers 409 when the document is already paid.
12048
12388
  </dd>
12049
12389
  </dl>
12050
12390
  </dd>
@@ -12405,7 +12745,7 @@ client.sales.invoices_apply_advance(
12405
12745
  <dl>
12406
12746
  <dd>
12407
12747
 
12408
- List the sale documents of the company with the partner name. Filterable by partnerId, type, status, paymentStatus, fullNumber, issueDate, currency, agreementId, creditedInvoiceId, operationTypeId, documentSeriesId, lockedAt, grossTotal, netTotal, vatTotal, dueDate, orderNumber, seriesLabel, locale and recurringInvoiceId; sortable by createdAt, issueDate, fullNumber, grossTotal, netTotal, vatTotal, status and paymentStatus.
12748
+ List the sale documents of the company with the partner name. An advance invoice also carries `advanceUnappliedAmount`: its gross total less the amounts applied with `sales/invoices/apply-advance` and the issued credit notes on it (null on other documents). Filterable by partnerId, type, status, paymentStatus, fullNumber, issueDate, currency, agreementId, creditedInvoiceId, operationTypeId, documentSeriesId, lockedAt, grossTotal, netTotal, vatTotal, dueDate, orderNumber, seriesLabel, locale and recurringInvoiceId; sortable by createdAt, issueDate, fullNumber, grossTotal, netTotal, vatTotal, status and paymentStatus.
12409
12749
  </dd>
12410
12750
  </dl>
12411
12751
  </dd>
@@ -12853,7 +13193,7 @@ client.sales.acts_issue(id: "id")
12853
13193
  <dl>
12854
13194
  <dd>
12855
13195
 
12856
- Cancel a draft or issued delivery act. Answers 409 when it is already cancelled.
13196
+ Cancel a draft or issued delivery act. When issuing the act recognised milestone revenue, the recognition journal entry is reversed on the company's current date (or on the recognition date when that is later) and those milestone schedules return to `pending`. Answers 409 when it is already cancelled or when the recognition it posted has changed since.
12857
13197
  </dd>
12858
13198
  </dl>
12859
13199
  </dd>
@@ -15145,7 +15485,7 @@ client.sales.refund_liability_true_up(
15145
15485
  <dl>
15146
15486
  <dd>
15147
15487
 
15148
- List the money received on sale documents between `from` and `to` (inclusive), oldest first: bank payments matched to the document, card settlements of a payment provider and cash receipt orders. A reversed bank match is a row with a negative amount on the date it was reversed. Credit notes, advances applied to a final invoice and balances carried over by a migration are not money received and are left out. `amount` is in the document currency; `method` is `card` for a settlement or a payment into a Stripe bank account, `cash` for a cash order and `bank_transfer` otherwise.
15488
+ List the money received on sale documents between `from` and `to` (inclusive), oldest first: bank payments matched to the document, card settlements of a payment provider and cash receipt orders. A reversed bank match is a row with a negative amount on the date it was reversed. Refunds paid on credit notes, credit notes, advances applied to a final invoice and balances carried over by a migration are not money received and are left out. `amount` is in the document currency; `method` is `card` for a settlement or a payment into a Stripe bank account, `cash` for a cash order and `bank_transfer` otherwise.
15149
15489
  </dd>
15150
15490
  </dl>
15151
15491
  </dd>
@@ -17263,7 +17603,7 @@ client.purchases.invoices_delete(id: "id")
17263
17603
  <dl>
17264
17604
  <dd>
17265
17605
 
17266
- Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the document date) and sets the status to `registered`. The entry debits each line's expense account (the line's `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable (a company that is not a VAT payer books the VAT into the expense instead), credits payables (the operation type's credit account when set) and credits output VAT for self-assessed VAT; a credit note posts the reverse. Lines with `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice are received into stock at their base-currency cost (422 on an order-linked invoice, whose goods arrive through `purchases/receipts/create`, and for a line that is also deferred); `returnFromStock` on a credit note that credits an invoice takes the goods back out of stock at their FIFO cost and books the difference to the credited amount on the `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked, and with 422 when the credit notes would exceed the credited invoice, a posting account is missing or no exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the credited invoice becomes fully paid, and `stock.changed` when stock moves.
17606
+ Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the document date) and sets the status to `registered`. The entry debits each line's expense account (the line's `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable (a company that is not a VAT payer books the VAT into the expense instead), credits payables (the operation type's credit account when set) and credits output VAT for self-assessed VAT; a credit note posts the reverse. Lines with `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice are received into stock at their base-currency cost, into the lot named by the line's `lotNumber` (an unknown lot is created, and the line's `expiryDate` is stored on a lot that has none) (422 on an order-linked invoice, whose goods arrive through `purchases/receipts/create`, for a line that is also deferred and for a lot- or serial-tracked item without `lotNumber`); `returnFromStock` on a credit note that credits an invoice takes the goods back out of stock at their FIFO cost and books the difference to the credited amount on the `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked, and with 422 when the credit notes would exceed the credited invoice, a posting account is missing or no exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the credited invoice becomes fully paid, and `stock.changed` when stock moves.
17267
17607
  </dd>
17268
17608
  </dl>
17269
17609
  </dd>
@@ -17443,7 +17783,7 @@ client.purchases.deferrals_list
17443
17783
  <dl>
17444
17784
  <dd>
17445
17785
 
17446
- Post every `pending` prepaid-expense release row dated on or before `asOfDate` (default today in the company's time zone): one journal entry per schedule date debiting the expense account and crediting the prepaid account, and the rows become `posted`. A locked accounting period is refused with 409. The scheduled job `expense-deferrals` runs the same release for every active company.
17786
+ Post every `pending` prepaid-expense release row dated on or before `asOfDate` (default today in the company's time zone): one journal entry per schedule date debiting the expense account and crediting the prepaid account, and the rows become `posted`. A row dated in a locked accounting period is posted on the first day of the first open period after it, even when that day is after `asOfDate`. The scheduled job `expense-deferrals` runs the same release for every active company.
17447
17787
  </dd>
17448
17788
  </dl>
17449
17789
  </dd>
@@ -20490,7 +20830,7 @@ client.declarations.lt_saft_generate(
20490
20830
  <dl>
20491
20831
  <dd>
20492
20832
 
20493
- Builds an i.VAZ amendment message for up to 100 issued waybills, carrying their current data as TransportDocumentAmendment elements. Answers 422 when the registration code of the company is not numeric or when a waybill is not issued. With `persist`, the file is stored and a submission for `lt-ivaz-amendment` is created.
20833
+ Builds an i.VAZ amendment message for up to 100 issued waybills as TransportDocumentAmendment elements. `corrections` carries corrected values per waybill: `consigneePartnerId`, `unloadAddress`, `vehiclePlate`, `trailerPlate`, `driverName`, `driverSurname` (the last three can be cleared with null) and line `quantity` by line id; the message carries the waybill with them applied, and with `persist` they are also stored on the waybill. Answers 422 when the registration code of the company is not numeric, when a waybill is not issued, or when a correction names a waybill not in `waybillIds`, a waybill twice, a line not on its waybill or a consignee partner the company does not have. With `persist`, the file is stored and a submission for `lt-ivaz-amendment` is created.
20494
20834
  </dd>
20495
20835
  </dl>
20496
20836
  </dd>
@@ -20536,6 +20876,14 @@ client.declarations.lt_ivaz_amend(waybill_ids: ["waybillIds"])
20536
20876
  <dl>
20537
20877
  <dd>
20538
20878
 
20879
+ **corrections:** `Internal::Types::Array[Nordlet::Declarations::Types::LtIvazAmendDeclarationsRequestCorrectionsItem]`
20880
+
20881
+ </dd>
20882
+ </dl>
20883
+
20884
+ <dl>
20885
+ <dd>
20886
+
20539
20887
  **request_options:** `Nordlet::Declarations::RequestOptions`
20540
20888
 
20541
20889
  </dd>
@@ -25496,7 +25844,7 @@ client.declarations.pl_pit11generate(year: 1000000)
25496
25844
  <dl>
25497
25845
  <dd>
25498
25846
 
25499
- Generate CIT-8(34), the annual corporate income tax return, from the ledger of the year and the recorded tax adjustments. The tax office code and the small-taxpayer setting come from the e-Deklaracje compliance settings, the seat address from the JPK gateway settings. Names the annexes the figures would need, which are not produced.
25847
+ Generate CIT-8(34), the annual corporate income tax return, from the ledger of the year and the recorded tax adjustments. The tax office code and the small-taxpayer setting come from the e-Deklaracje compliance settings, the seat address from the JPK gateway settings. Names the annexes the figures would need, which are not produced. Answers 422 for a tax year that starts before 2025-01-01, which the CIT-8(34) schema does not accept.
25500
25848
  </dd>
25501
25849
  </dl>
25502
25850
  </dd>
@@ -26614,6 +26962,68 @@ client.declarations.submissions_retry(id: "id")
26614
26962
  </dl>
26615
26963
 
26616
26964
 
26965
+ </dd>
26966
+ </dl>
26967
+ </details>
26968
+
26969
+ <details><summary><code>client.declarations.<a href="/lib/nordlet/declarations/client.rb">submissions_confirm</a>(request) -> Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponse</code></summary>
26970
+ <dl>
26971
+ <dd>
26972
+
26973
+ #### 📝 Description
26974
+
26975
+ <dl>
26976
+ <dd>
26977
+
26978
+ <dl>
26979
+ <dd>
26980
+
26981
+ Sends a submission whose `confirmationPending` is true once more with the stored file and the token the administration handed back with its warnings (the advis of Erhvervsstyrelsen's Regnskab Indberet, which files the annual report only when it is sent again with that token), and returns the updated submission. Answers 409 when the submission is not waiting for a confirmation.
26982
+ </dd>
26983
+ </dl>
26984
+ </dd>
26985
+ </dl>
26986
+
26987
+ #### 🔌 Usage
26988
+
26989
+ <dl>
26990
+ <dd>
26991
+
26992
+ <dl>
26993
+ <dd>
26994
+
26995
+ ```ruby
26996
+ client.declarations.submissions_confirm(id: "id")
26997
+ ```
26998
+ </dd>
26999
+ </dl>
27000
+ </dd>
27001
+ </dl>
27002
+
27003
+ #### ⚙️ Parameters
27004
+
27005
+ <dl>
27006
+ <dd>
27007
+
27008
+ <dl>
27009
+ <dd>
27010
+
27011
+ **id:** `String`
27012
+
27013
+ </dd>
27014
+ </dl>
27015
+
27016
+ <dl>
27017
+ <dd>
27018
+
27019
+ **request_options:** `Nordlet::Declarations::RequestOptions`
27020
+
27021
+ </dd>
27022
+ </dl>
27023
+ </dd>
27024
+ </dl>
27025
+
27026
+
26617
27027
  </dd>
26618
27028
  </dl>
26619
27029
  </details>
@@ -34859,7 +35269,7 @@ client.hr.timesheets_delete(id: "id")
34859
35269
  <dl>
34860
35270
  <dd>
34861
35271
 
34862
- Register a vehicle. The plate number is stored in upper case and must be unique in the company (409 otherwise); `fixedAssetId` must name an existing fixed asset. Uploaded `documents` are attached to the vehicle.
35272
+ Register a vehicle. The plate number is stored in upper case and must be unique in the company (409 otherwise); `fixedAssetId` must name an existing fixed asset. Uploaded `documents` are attached to the vehicle. `disposalDate`, the day the vehicle was sold or scrapped, is the last day of its car benefit in kind.
34863
35273
  </dd>
34864
35274
  </dl>
34865
35275
  </dd>
@@ -34981,6 +35391,14 @@ client.fleet.vehicles_create(
34981
35391
  <dl>
34982
35392
  <dd>
34983
35393
 
35394
+ **disposal_date:** `String`
35395
+
35396
+ </dd>
35397
+ </dl>
35398
+
35399
+ <dl>
35400
+ <dd>
35401
+
34984
35402
  **notes:** `String`
34985
35403
 
34986
35404
  </dd>
@@ -35021,7 +35439,7 @@ client.fleet.vehicles_create(
35021
35439
  <dl>
35022
35440
  <dd>
35023
35441
 
35024
- Change a vehicle's details or set its `status` to `active`, `sold` or `scrapped`; omitted fields keep their value. A plate number already used by another vehicle is refused with 409.
35442
+ Change a vehicle's details or set its `status` to `active`, `sold` or `scrapped` and its `disposalDate`, the last day of its car benefit in kind; omitted fields keep their value. A plate number already used by another vehicle is refused with 409.
35025
35443
  </dd>
35026
35444
  </dl>
35027
35445
  </dd>
@@ -35155,6 +35573,14 @@ client.fleet.vehicles_update(id: "id")
35155
35573
  <dl>
35156
35574
  <dd>
35157
35575
 
35576
+ **disposal_date:** `String`
35577
+
35578
+ </dd>
35579
+ </dl>
35580
+
35581
+ <dl>
35582
+ <dd>
35583
+
35158
35584
  **notes:** `String`
35159
35585
 
35160
35586
  </dd>
@@ -35624,7 +36050,7 @@ client.fleet.assignments_list
35624
36050
  <dl>
35625
36051
  <dd>
35626
36052
 
35627
- Preview the car benefit in kind of a month for a Lithuanian company: every assignment with `privateUse` that overlaps the month is valued at 0.75 % of the vehicle's market value when the employer pays the fuel, else 0.70 %, one row per employee and vehicle, with the total. A company registered in another country is refused with 422. The same amounts are added to a payroll run created with `includeNatura` (`payroll/runs/create`).
36053
+ Preview the car benefit in kind of a month for a Lithuanian company: every assignment with `privateUse` that overlaps the month is valued at 0.75 % of the vehicle's market value when the employer pays the fuel, else 0.70 %, one row per employee and vehicle, with the total. A month the assignment starts or ends in, or the vehicle's `disposalDate` falls in, is valued by its calendar days with the car; after the `disposalDate` there is no benefit. A company registered in another country is refused with 422. The same amounts are added to a payroll run created with `includeNatura` (`payroll/runs/create`).
35628
36054
  </dd>
35629
36055
  </dl>
35630
36056
  </dd>
@@ -36143,7 +36569,7 @@ client.payroll.calc(
36143
36569
  <dl>
36144
36570
  <dd>
36145
36571
 
36146
- Creates a draft payroll run for a month, computing each line with the company country's payroll engine, the employee's approved runs of the year so far and of the two previous years, the month's timesheet and `payDate` (default the last day of the month). Without `lines`, every active employee whose contract covers the month gets a line: the gross is the contract's monthly salary reduced to the paid working days of the contract and the timesheet, unless `grossOverrides` sets it; the per diems of approved business trips ending in the month are added untaxed and the trips linked to the run; for a Lithuanian company the car benefit in kind (`includeNatura`) and the compensation for unused leave of a contract ending in the month are added. With `lines`, only the given employees are computed with their gross, additions and deductions; a taxable addition may carry a `paymentType` from `payroll/payment-types/list` and `hours`. Answers 422 when the country has no engine, an employee is given twice, has two contracts in the month, has no contract and no gross, or is paid by the hour or day without a gross; 409 when a run for the month already exists or the accounting period is locked.
36572
+ Creates a draft payroll run for a month, computing each line with the company country's payroll engine, the employee's approved runs of the year so far and of the two previous years, the month's timesheet and `payDate` (default the last day of the month). Without `lines`, every employee whose contract overlaps the month gets a line, whatever the employee's status: the gross is the contract's monthly salary reduced to the paid working days of the contract and the timesheet, unless `grossOverrides` sets it; the per diems of approved business trips ending in the month are added untaxed and the trips linked to the run; for a Lithuanian company the car benefit in kind (`includeNatura`) and the compensation for unused leave of a contract ending in the month are added. With `lines`, only the given employees are computed with their gross, additions and deductions; a taxable addition may carry a `paymentType` from `payroll/payment-types/list` and `hours`. Answers 422 when the country has no engine, an employee is given twice, has two contracts in the month, has no contract and no gross, or is paid by the hour or day without a gross; 409 when a run for the month already exists or the accounting period is locked.
36147
36573
  </dd>
36148
36574
  </dl>
36149
36575
  </dd>
@@ -36506,7 +36932,7 @@ client.payroll.lines_attendance(id: "id")
36506
36932
  <dl>
36507
36933
  <dd>
36508
36934
 
36509
- Posts the run's journal entry dated the last day of the month and sets the status to `approved`: the wage expense (net pay, income tax, employee contributions and deductions) and the employer contributions are debited; the net payable, the income tax, the social contributions (on one account, or split between the employee and employer accounts when their codes differ) and the deductions are credited. The accounts default to the payroll accounts of the company's chart template; each can be given per call. Answers 409 when the run is not a draft or the accounting period is locked, 422 when the run has no lines or nothing to post, and emits `payroll_run.approved`. For an Irish company with the automation of the `ie-payroll-withholding` deadline switched on, the month's payroll submission is sent at once and a failure is added to the run's `warnings`. Undo with `payroll/runs/reverse`, pay with `payroll/payments/export`.
36935
+ Posts the run's journal entry dated the last day of the month and sets the status to `approved`: the wage expense (net pay, income tax, employee contributions and deductions) and the employer contributions are debited; the net payable, the income tax, the social contributions (on one account, or split between the employee and employer accounts when their codes differ) and the deductions are credited. The accounts default to the payroll accounts of the company's chart template; each can be given per call. Answers 409 when the run is not a draft or the accounting period is locked, 422 when the run has no lines or nothing to post, and emits `payroll_run.approved`. For an Irish company with the automation of the `ie-payroll-withholding` deadline switched on, the month's payroll submission is sent at once and a failure is added to the run's `warnings`. For a Lithuanian company the unused leave days a line paid as compensation, recorded per balance year when the run was created, are added to the used days of the leave balances. Undo with `payroll/runs/reverse`, pay with `payroll/payments/export`.
36510
36936
  </dd>
36511
36937
  </dl>
36512
36938
  </dd>
@@ -36624,7 +37050,7 @@ client.payroll.runs_approve(id: "id")
36624
37050
  <dl>
36625
37051
  <dd>
36626
37052
 
36627
- Posts a journal entry dated the last day of the month that mirrors the run's entry (debits and credits swapped), sets the status to `reversed` with the reason, and releases the business trips the run paid so the next run picks them up again. Answers 409 when the run is not approved, when part of it is matched to bank payments (`paidAmount`, unmatch them first) or when the accounting period is locked. Emits `payroll_run.reversed`.
37053
+ Posts a journal entry dated the last day of the month that mirrors the run's entry (debits and credits swapped), sets the status to `reversed` with the reason, and releases the business trips the run paid so the next run picks them up again; the leave days the run marked used as compensation for unused leave are given back to the leave balances. Answers 409 when the run is not approved, when part of it is matched to bank payments (`paidAmount`, unmatch them first) or when the accounting period is locked. Emits `payroll_run.reversed`.
36628
37054
  </dd>
36629
37055
  </dl>
36630
37056
  </dd>
@@ -38598,7 +39024,7 @@ client.inventory.stock_receive(
38598
39024
  <dl>
38599
39025
  <dd>
38600
39026
 
38601
- Consume a quantity of an item from a warehouse, oldest layers first (from one lot when `lotNumber` is given), and post a journal entry: debit the expense account (`expenseAccountCode`, default the chart's inventory expense account), credit the stock account each consumed layer was received on (the chart's inventory account for layers without one), or `inventoryAccountCode` for the whole cost when given. 409 when the accounting period of `date` is locked; 422 when the stock is insufficient under the `reject` policy or in the named lot. Emits `stock.changed` and, when the consumption takes the available quantity from above a reorder rule's minimum to at or below it, `stock.reorder_needed`.
39027
+ Consume a quantity of an item from a warehouse, first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first; expired lots included) or from one lot when `lotNumber` is given, and post a journal entry: debit the expense account (`expenseAccountCode`, default the chart's inventory expense account), credit the stock account each consumed layer was received on (the `inventory.stock` posting rule account for layers without one), or `inventoryAccountCode` for the whole cost when given. 409 when the accounting period of `date` is locked; 422 when the stock is insufficient under the `reject` policy or in the named lot. Emits `stock.changed` and, when the consumption takes the available quantity from above a reorder rule's minimum to at or below it, `stock.reorder_needed`.
38602
39028
  </dd>
38603
39029
  </dl>
38604
39030
  </dd>
@@ -38721,7 +39147,7 @@ client.inventory.stock_write_off(
38721
39147
  <dl>
38722
39148
  <dd>
38723
39149
 
38724
- Move a quantity of an item from one warehouse to another: the source layers are consumed oldest first (from one lot when `lotNumber` is given) and received in the target with the same quantities, costs, lots and stock accounts (document type `warehouse_transfer`). 422 when both warehouses are the same or the source stock is insufficient under the `reject` policy. `inMovementId` is the first receipt when the consumption spans several lots or stock accounts. Emits `stock.changed` for both warehouses and `stock.reorder_needed` as `inventory/stock/write-off` does.
39150
+ Move a quantity of an item from one warehouse to another: the source layers are consumed as `inventory/stock/write-off` consumes them, except that expired lots are left out unless `lotNumber` names one, and received in the target with the same quantities, costs, lots and stock accounts, one receipt per lot and stock account (document type `warehouse_transfer`). 422 when both warehouses are the same or the source stock is insufficient under the `reject` policy. `inMovementId` is the first receipt when the consumption spans several lots or stock accounts. Emits `stock.changed` for both warehouses and `stock.reorder_needed` as `inventory/stock/write-off` does.
38725
39151
  </dd>
38726
39152
  </dl>
38727
39153
  </dd>
@@ -38837,7 +39263,7 @@ client.inventory.stock_transfer(
38837
39263
  <dl>
38838
39264
  <dd>
38839
39265
 
38840
- Post a stock count for a warehouse. Each line names an item by `itemId` or `barcode` with its `countedQty`; the difference to the quantity on hand in the warehouse (all lots together) is written off oldest layers first or received as a surplus at `unitCost` (the item's purchase price when omitted; 422 when neither is set), with document type `stock_take`, and a surplus of a lot- or serial-tracked item needs `lotNumber` (422). The shortage cost less the surplus cost is posted in one journal entry between the expense account (`expenseAccountCode`, default the chart's inventory expense account) and the stock accounts (`inventoryAccountCode` for everything when given, else the accounts of the consumed layers and the chart's inventory account for the surpluses); nothing is posted and `journalTransactionId` is null when the net is zero. 409 when the accounting period of `date` is locked. Emits `stock.changed` per adjusted item.
39266
+ Post a stock count for a warehouse. Each line names an item by `itemId` or `barcode` with its `countedQty`; the difference to the quantity on hand in the warehouse (all lots together) is written off as `inventory/stock/write-off` consumes stock or received as a surplus at `unitCost` (the item's purchase price when omitted; 422 when neither is set), with document type `stock_take`, and a surplus of a lot- or serial-tracked item needs `lotNumber` (422). The shortage cost less the surplus cost is posted in one journal entry between the expense account (`expenseAccountCode`, default the chart's inventory expense account) and the stock accounts (`inventoryAccountCode` for everything when given, else the accounts of the consumed layers and the `inventory.stock` posting rule account for the surpluses); nothing is posted and `journalTransactionId` is null when the net is zero. 409 when the accounting period of `date` is locked. Emits `stock.changed` per adjusted item.
38841
39267
  </dd>
38842
39268
  </dl>
38843
39269
  </dd>
@@ -39195,7 +39621,7 @@ client.inventory.lots_list
39195
39621
  <dl>
39196
39622
  <dd>
39197
39623
 
39198
- Return a lot with its quantity on hand and its movements in date order.
39624
+ Return a lot with its quantity on hand and its movements in date order, the outgoing movement before the incoming one when one posting made both (a transfer).
39199
39625
  </dd>
39200
39626
  </dl>
39201
39627
  </dd>
@@ -39335,7 +39761,7 @@ client.inventory.lots_update(id: "id")
39335
39761
  <dl>
39336
39762
  <dd>
39337
39763
 
39338
- Allocate an extra cost `amount` (positive, whole cents; 422 otherwise) over incoming stock movements, named by `movementIds` or taken from the lines of a goods receipt (`goodsReceiptId`; 422 when the receipt has no stock movements), in proportion to their cost (`by_value`) or quantity (`by_quantity`), largest remainder to the cent. The part of each share that belongs to the quantity still on hand raises the movement's remaining cost and recomputes its unit cost; the part that belongs to quantity already consumed is posted in a journal entry dated `date` debiting `inventory.cogs` and crediting the movement's stock account (`inventory.stock` when it has none), 409 when that period is locked. 422 when a movement is not incoming or the weights sum to zero. `sourceInvoiceId` records the purchase invoice the cost came from. Goods receipts come from `purchases/receipts/create`.
39764
+ Allocate an extra cost `amount` (positive, whole cents; 422 otherwise) over incoming stock movements, named by `movementIds` or taken from the lines of a goods receipt (`goodsReceiptId`; 422 when the receipt has no stock movements), in proportion to their cost (`by_value`) or quantity (`by_quantity`), largest remainder to the cent. The part of each share that belongs to the quantity still on hand raises the movement's remaining cost and recomputes its unit cost; the part that belongs to quantity moved to another warehouse by `inventory/stock/transfer` follows it to the receipts the transfer made there and is allocated on them the same way; the part that belongs to quantity already consumed is posted in a journal entry dated `date` debiting `inventory.cogs` and crediting the movement's stock account (`inventory.stock` when it has none), 409 when that period is locked. 422 when a movement is not incoming or the weights sum to zero. `sourceInvoiceId` records the purchase invoice the cost came from. Goods receipts come from `purchases/receipts/create`.
39339
39765
  </dd>
39340
39766
  </dl>
39341
39767
  </dd>
@@ -40581,7 +41007,7 @@ client.production.routings_list
40581
41007
  <dl>
40582
41008
  <dd>
40583
41009
 
40584
- Record a `preventive` or `corrective` maintenance planned for a work center on `plannedDate`; it starts as `planned`.
41010
+ Record a `preventive` or `corrective` maintenance planned for a work center on `plannedDate`; it starts as `planned`. `purchaseInvoiceId` links the purchase invoice that books its cost (422 when it is not a purchase invoice of the company or is a credit note). Maintenance posts nothing to the ledger itself.
40585
41011
  </dd>
40586
41012
  </dl>
40587
41013
  </dd>
@@ -40647,6 +41073,14 @@ client.production.maintenance_create(
40647
41073
  <dl>
40648
41074
  <dd>
40649
41075
 
41076
+ **purchase_invoice_id:** `String`
41077
+
41078
+ </dd>
41079
+ </dl>
41080
+
41081
+ <dl>
41082
+ <dd>
41083
+
40650
41084
  **notes:** `String`
40651
41085
 
40652
41086
  </dd>
@@ -40679,7 +41113,7 @@ client.production.maintenance_create(
40679
41113
  <dl>
40680
41114
  <dd>
40681
41115
 
40682
- Mark a `planned` maintenance as completed on `completedDate`, with optional `downtimeHours` and `cost` (409 when it is already completed or cancelled). The work center's `nextMaintenanceDate` is then counted from the latest completed maintenance date.
41116
+ Mark a `planned` maintenance as completed on `completedDate`, with optional `downtimeHours` and `cost` (409 when it is already completed or cancelled). The work center's `nextMaintenanceDate` is then counted from the latest completed maintenance date. `purchaseInvoiceId` links the purchase invoice that books the cost, as on `production/maintenance/create`; the cost is not posted to the ledger, with or without the link.
40683
41117
  </dd>
40684
41118
  </dl>
40685
41119
  </dd>
@@ -40744,6 +41178,14 @@ client.production.maintenance_complete(
40744
41178
  <dl>
40745
41179
  <dd>
40746
41180
 
41181
+ **purchase_invoice_id:** `String`
41182
+
41183
+ </dd>
41184
+ </dl>
41185
+
41186
+ <dl>
41187
+ <dd>
41188
+
40747
41189
  **notes:** `String`
40748
41190
 
40749
41191
  </dd>
@@ -41386,7 +41828,7 @@ client.production.orders_record_operation(
41386
41828
  <dl>
41387
41829
  <dd>
41388
41830
 
41389
- Add a pending quality check to a draft production order (409 once the order is completed). The order cannot complete while a check is pending.
41831
+ Add a pending quality check to a draft production order (409 once the order is completed). The order cannot complete while a check is pending or failed.
41390
41832
  </dd>
41391
41833
  </dl>
41392
41834
  </dd>
@@ -41467,7 +41909,7 @@ client.production.quality_checks_add(
41467
41909
  <dl>
41468
41910
  <dd>
41469
41911
 
41470
- Record the result of a quality check as `passed` or `failed`, with the time and the actor (409 once the order is completed). Only a `pending` check blocks `production/orders/complete`; a `failed` one does not.
41912
+ Record the result of a quality check as `passed` or `failed`, with the time and the actor (409 once the order is completed). `production/orders/complete` answers 409 while a check is `pending` or `failed`; a failed check can be recorded again as `passed`.
41471
41913
  </dd>
41472
41914
  </dl>
41473
41915
  </dd>
@@ -41642,7 +42084,7 @@ client.production.quality_checks_list
41642
42084
  <dl>
41643
42085
  <dd>
41644
42086
 
41645
- Complete a draft production order on the order's date. An `assembly` consumes the components FIFO from the warehouse (line quantity × order quantity, increased by `scrapPercent`), prices each operation at its actual or planned minutes × `costPerHour`, receives the finished item at material cost + labor cost less the share of `scrappedQuantity`, and, when there is labor, scrap or a component stock account other than the finished one, posts a journal entry debiting the finished stock account (and the `production.scrap` rule account for the scrapped share) and crediting the component stock accounts and the work centers' cost accounts (or the `production.laborApplied` rule account); a `disassembly` consumes the finished item and receives the components at its cost shared by quantity. `componentsAccountCode` and `finishedAccountCode` default to the chart's production accounts. Refused with 409 when the order is already completed, a quality check is still pending or the accounting period is locked, and with 422 when the BOM has no lines, `scrappedQuantity` is given on a disassembly or exceeds the finished quantity, the assembly cost is zero, stock is insufficient, a received item needs lot or serial tracking, or a posting account is missing. Emits `stock.changed`.
42087
+ Complete a draft production order on the order's date. An `assembly` consumes the components from the warehouse, the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first), leaving out expired lots (line quantity × order quantity, increased by `scrapPercent`), prices each operation at its actual or planned minutes × `costPerHour`, receives the finished item at material cost + labor cost less the share of `scrappedQuantity`, and, when there is labor, scrap or a component stock account other than the finished one, posts a journal entry debiting the finished stock account (and the `production.scrap` rule account for the scrapped share) and crediting the component stock accounts and the work centers' cost accounts (or the `production.laborApplied` rule account); a `disassembly` consumes the finished item and receives the components at its cost shared by quantity. `componentsAccountCode` and `finishedAccountCode` default to the chart's production accounts; consumed layers without a stock account are credited to the given code, else to the `inventory.stock` rule account. Refused with 409 when the order is already completed, a quality check is still pending or has failed, or the accounting period is locked, and with 422 when the BOM has no lines, `scrappedQuantity` is given on a disassembly or exceeds the finished quantity, the assembly cost is zero, stock is insufficient, a received item needs lot or serial tracking, or a posting account is missing. Emits `stock.changed`.
41646
42088
  </dd>
41647
42089
  </dl>
41648
42090
  </dd>
@@ -42249,7 +42691,7 @@ client.ecommerce.orders_reserve(id: "id")
42249
42691
  <dl>
42250
42692
  <dd>
42251
42693
 
42252
- Fulfil a `new` or `reserved` order: its reservations are released, the stock lines are consumed FIFO from the order's warehouse on `date` (default: the company's today), the cost of goods sold is posted as a journal entry debiting `cogsAccountCode` and crediting the stock accounts of the consumed layers (`inventoryAccountCode` when a layer has none), and a draft sale invoice for the order lines is created and linked as `invoiceId`, ready for `sales/invoices/issue`. With a `shipToCountryCode` on the order the invoice's VAT scheme is resolved for goods shipped there, as a marketplace sale when `marketplace` is set. Account codes default to the company's chart. Refused with 422 when the stock lines have no warehouse or stock is insufficient (unless the company allows negative stock), with 409 when the accounting period is locked or the order is already `fulfilled` or `cancelled`. Emits `sales_order.fulfilled` and `stock.changed`.
42694
+ Fulfil a `new` or `reserved` order: its reservations are released, the stock lines are consumed from the order's warehouse on `date` (default: the company's today), the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first) and expired lots left out, the cost of goods sold is posted as a journal entry debiting `cogsAccountCode` and crediting the stock accounts of the consumed layers (`inventoryAccountCode` when a layer has none), and a draft sale invoice for the order lines is created and linked as `invoiceId`, ready for `sales/invoices/issue`. With a `shipToCountryCode` on the order the invoice's VAT scheme is resolved for goods shipped there, as a marketplace sale when `marketplace` is set. Account codes default to the posting rules `inventory.cogs` and `inventory.stock`. Refused with 422 when the stock lines have no warehouse, when stock is insufficient (unless the company allows negative stock), when the quantity on hand less the reservations of other orders does not cover the order (unless the company allows negative stock), with 409 when the accounting period is locked or the order is already `fulfilled` or `cancelled`. Emits `sales_order.fulfilled` and `stock.changed`.
42253
42695
  </dd>
42254
42696
  </dl>
42255
42697
  </dd>
@@ -42554,7 +42996,7 @@ client.ecommerce.stock_list
42554
42996
  <dl>
42555
42997
  <dd>
42556
42998
 
42557
- Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency between the cash account (`cashAccountCode`, default the cash account of the company's chart) and `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. Linked to an invoice - `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account is the receivable or payable account of the posting rules, the invoice's paid amount and payment status (`partial` or `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the invoice becomes fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice, `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to another partner; 409 when `amount` exceeds the invoice's remaining amount or the accounting period of `date` is locked.
42999
+ Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency between the cash account (`cashAccountCode`, default the cash account of the company's chart) and `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. Linked to an invoice - `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account is the receivable or payable account the invoice was posted to (its operation type's account, else the posting rule), the invoice's paid amount and payment status (`partial` or `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the invoice becomes fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice, `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to another partner; 409 when `amount` exceeds the invoice's remaining amount, a disbursement would take the balance of the cash account below zero on `date` or any later date, or the accounting period of `date` is locked.
42558
43000
  </dd>
42559
43001
  </dl>
42560
43002
  </dd>
@@ -45155,7 +45597,7 @@ client.pos.devices_list
45155
45597
  <dl>
45156
45598
  <dd>
45157
45599
 
45158
- Record a daily cash register report (Z-report) and post it to the ledger in one journal entry: the cash and card takings are debited to `cashAccountCode` and `cardAccountCode`, the net of the `vatLines` is credited to `revenueAccountCode` and their VAT to `vatAccountCode`. `itemLines` write the sold products off `warehouseId` FIFO (a set is expanded to its product components) and add the cost of goods sold, debited to `cogsAccountCode` against the stock accounts. Account codes default to the company's chart. Refused with 422 when cash plus card differs from the gross total, the item lines have no warehouse or the device is inactive, with 409 when the accounting period is locked or the `reportNumber` already exists. Emits `pos_report.created` and, per item line, `stock.changed`.
45600
+ Record a daily cash register report (Z-report) and post it to the ledger in one journal entry: the cash and card takings are debited to `cashAccountCode` and `cardAccountCode`, the net of the `vatLines` is credited to `revenueAccountCode` and their VAT to `vatAccountCode`. `itemLines` write the sold products off `warehouseId`, the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first), leaving out expired lots (a set is expanded to its product components) and add the cost of goods sold, debited to `cogsAccountCode` against the stock accounts. `cogsAccountCode` and `inventoryAccountCode` default to the posting rules `inventory.cogs` and `inventory.stock`, the other account codes to the company's chart. Refused with 422 when cash plus card differs from the gross total, the item lines have no warehouse or the device is inactive, with 409 when the accounting period is locked or the `reportNumber` already exists. Emits `pos_report.created` and, per item line, `stock.changed`.
45159
45601
  </dd>
45160
45602
  </dl>
45161
45603
  </dd>
@@ -45964,7 +46406,7 @@ client.pos.receipts_get(id: "id")
45964
46406
  </dl>
45965
46407
  </details>
45966
46408
 
45967
- <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">shifts_close</a>(request) -> Nordlet::Pos::Types::ShiftsClosePosResponse</code></summary>
46409
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_create</a>(request) -> Nordlet::Pos::Types::RefundsCreatePosResponse</code></summary>
45968
46410
  <dl>
45969
46411
  <dd>
45970
46412
 
@@ -45976,7 +46418,7 @@ client.pos.receipts_get(id: "id")
45976
46418
  <dl>
45977
46419
  <dd>
45978
46420
 
45979
- Close an open shift: its receipts are summed by VAT rate and by product into one POS report, created as by `pos/reports/create` with number `reportNumber` (default `Z-<device serial>-<n>`, n being the device's closed shifts plus one) on `date` (default: the company's today), which posts the takings and the stock write-off to the ledger and emits `pos_report.created`. The response adds `expectedCash` (opening cash plus the cash receipts) and `cashDifference` (`countedCash` less expected). A shift without receipts is refused with 422, a closed one with 409.
46421
+ Refund `quantity` of lines of a receipt, paid in cash out of the open shift `shiftId`, on `date` (default: the company's today). A line refunded in part is priced from its VAT-inclusive unit price, the rest of a line at what is left of its amounts. One journal entry debits the chart's POS revenue and VAT accounts with the net and VAT and credits the chart's cash account with the gross. When the receipt's shift is closed, the stock lines go back into the warehouse at the cost they left it on that shift's report, debited to their stock accounts (`inventory.stock` for layers without one) against `inventory.cogs`; when it is still open, the refunded quantities are left out of the stock write-off at its close. A receipt of another open shift is refused with 422, as are a line not on the receipt, a line named twice, a zero quantity and a quantity above what is left to refund; 409 when the shift is closed or the accounting period is locked.
45980
46422
  </dd>
45981
46423
  </dl>
45982
46424
  </dd>
@@ -45991,9 +46433,13 @@ Close an open shift: its receipts are summed by VAT rate and by product into one
45991
46433
  <dd>
45992
46434
 
45993
46435
  ```ruby
45994
- client.pos.shifts_close(
45995
- id: "id",
45996
- counted_cash: "121.00"
46436
+ client.pos.refunds_create(
46437
+ shift_id: "shiftId",
46438
+ receipt_id: "receiptId",
46439
+ lines: [{
46440
+ receipt_line_id: "receiptLineId",
46441
+ quantity: "121.0000"
46442
+ }]
45997
46443
  )
45998
46444
  ```
45999
46445
  </dd>
@@ -46009,7 +46455,7 @@ client.pos.shifts_close(
46009
46455
  <dl>
46010
46456
  <dd>
46011
46457
 
46012
- **id:** `String`
46458
+ **shift_id:** `String`
46013
46459
 
46014
46460
  </dd>
46015
46461
  </dl>
@@ -46017,7 +46463,7 @@ client.pos.shifts_close(
46017
46463
  <dl>
46018
46464
  <dd>
46019
46465
 
46020
- **counted_cash:** `String`
46466
+ **receipt_id:** `String`
46021
46467
 
46022
46468
  </dd>
46023
46469
  </dl>
@@ -46033,7 +46479,7 @@ client.pos.shifts_close(
46033
46479
  <dl>
46034
46480
  <dd>
46035
46481
 
46036
- **report_number:** `String`
46482
+ **lines:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsCreatePosRequestLinesItem]`
46037
46483
 
46038
46484
  </dd>
46039
46485
  </dl>
@@ -46053,8 +46499,7 @@ client.pos.shifts_close(
46053
46499
  </dl>
46054
46500
  </details>
46055
46501
 
46056
- ## calendar
46057
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">list</a>(request) -> Nordlet::Calendar::Types::ListCalendarResponse</code></summary>
46502
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_get</a>(request) -> Nordlet::Pos::Types::RefundsGetPosResponse</code></summary>
46058
46503
  <dl>
46059
46504
  <dd>
46060
46505
 
@@ -46066,7 +46511,7 @@ client.pos.shifts_close(
46066
46511
  <dl>
46067
46512
  <dd>
46068
46513
 
46069
- Lists, in due-date order, the filing deadlines Nordlet derives for the company from its country and profile together with the company's own events, between `from` and `to` (default 45 days back to 120 days ahead of the company's current date). Each deadline carries its submissions, whether it can be filed with `calendar/submit`, amended, or built with `calendar/download`, and whether its automation is on; `includeDone: false` leaves out the rows that are completed, submitted or accepted.
46514
+ Read one POS refund with its lines.
46070
46515
  </dd>
46071
46516
  </dl>
46072
46517
  </dd>
@@ -46081,7 +46526,7 @@ Lists, in due-date order, the filing deadlines Nordlet derives for the company f
46081
46526
  <dd>
46082
46527
 
46083
46528
  ```ruby
46084
- client.calendar.list
46529
+ client.pos.refunds_get(id: "id")
46085
46530
  ```
46086
46531
  </dd>
46087
46532
  </dl>
@@ -46096,23 +46541,7 @@ client.calendar.list
46096
46541
  <dl>
46097
46542
  <dd>
46098
46543
 
46099
- **from:** `String`
46100
-
46101
- </dd>
46102
- </dl>
46103
-
46104
- <dl>
46105
- <dd>
46106
-
46107
- **to:** `String`
46108
-
46109
- </dd>
46110
- </dl>
46111
-
46112
- <dl>
46113
- <dd>
46114
-
46115
- **include_done:** `Internal::Types::Boolean`
46544
+ **id:** `String`
46116
46545
 
46117
46546
  </dd>
46118
46547
  </dl>
@@ -46120,7 +46549,7 @@ client.calendar.list
46120
46549
  <dl>
46121
46550
  <dd>
46122
46551
 
46123
- **request_options:** `Nordlet::Calendar::RequestOptions`
46552
+ **request_options:** `Nordlet::Pos::RequestOptions`
46124
46553
 
46125
46554
  </dd>
46126
46555
  </dl>
@@ -46132,7 +46561,7 @@ client.calendar.list
46132
46561
  </dl>
46133
46562
  </details>
46134
46563
 
46135
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">get</a>(request) -> Nordlet::Calendar::Types::GetCalendarResponse</code></summary>
46564
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_list</a>(request) -> Nordlet::Pos::Types::RefundsListPosResponse</code></summary>
46136
46565
  <dl>
46137
46566
  <dd>
46138
46567
 
@@ -46144,7 +46573,7 @@ client.calendar.list
46144
46573
  <dl>
46145
46574
  <dd>
46146
46575
 
46147
- Reads one calendar row by `key`: the id of a company event, or `ruleKey:period` for a filing deadline with its submissions.
46576
+ List POS refunds without their lines. Filterable by `shiftId` and `receiptId`; sortable by `date` and `createdAt`.
46148
46577
  </dd>
46149
46578
  </dl>
46150
46579
  </dd>
@@ -46159,7 +46588,7 @@ Reads one calendar row by `key`: the id of a company event, or `ruleKey:period`
46159
46588
  <dd>
46160
46589
 
46161
46590
  ```ruby
46162
- client.calendar.get(key: "key")
46591
+ client.pos.refunds_list
46163
46592
  ```
46164
46593
  </dd>
46165
46594
  </dl>
@@ -46174,7 +46603,7 @@ client.calendar.get(key: "key")
46174
46603
  <dl>
46175
46604
  <dd>
46176
46605
 
46177
- **key:** `String`
46606
+ **page:** `Integer`
46178
46607
 
46179
46608
  </dd>
46180
46609
  </dl>
@@ -46182,7 +46611,39 @@ client.calendar.get(key: "key")
46182
46611
  <dl>
46183
46612
  <dd>
46184
46613
 
46185
- **request_options:** `Nordlet::Calendar::RequestOptions`
46614
+ **page_size:** `Integer`
46615
+
46616
+ </dd>
46617
+ </dl>
46618
+
46619
+ <dl>
46620
+ <dd>
46621
+
46622
+ **sort:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestSortItem]`
46623
+
46624
+ </dd>
46625
+ </dl>
46626
+
46627
+ <dl>
46628
+ <dd>
46629
+
46630
+ **filter:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestFilterItem]`
46631
+
46632
+ </dd>
46633
+ </dl>
46634
+
46635
+ <dl>
46636
+ <dd>
46637
+
46638
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
46639
+
46640
+ </dd>
46641
+ </dl>
46642
+
46643
+ <dl>
46644
+ <dd>
46645
+
46646
+ **request_options:** `Nordlet::Pos::RequestOptions`
46186
46647
 
46187
46648
  </dd>
46188
46649
  </dl>
@@ -46194,7 +46655,7 @@ client.calendar.get(key: "key")
46194
46655
  </dl>
46195
46656
  </details>
46196
46657
 
46197
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">submit</a>(request) -> Nordlet::Calendar::Types::SubmitCalendarResponse</code></summary>
46658
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">shifts_close</a>(request) -> Nordlet::Pos::Types::ShiftsClosePosResponse</code></summary>
46198
46659
  <dl>
46199
46660
  <dd>
46200
46661
 
@@ -46206,7 +46667,7 @@ client.calendar.get(key: "key")
46206
46667
  <dl>
46207
46668
  <dd>
46208
46669
 
46209
- With amend: true the return is filed again as a correction of the one already submitted or accepted for the period; only returns whose format has a correction mark accept it.
46670
+ Close an open shift: its receipts are summed by VAT rate and by product into one POS report, created as by `pos/reports/create` with number `reportNumber` (default `Z-<device serial>-<n>`, n being the device's closed shifts plus one) on `date` (default: the company's today), which posts the takings and the stock write-off to the ledger and emits `pos_report.created`. Quantities refunded from the shift's receipts by `pos/refunds/create` are left out of the stock write-off. The response adds `expectedCash` (opening cash plus the cash receipts less the cash refunds paid out of the shift) and `cashDifference` (`countedCash` less expected). A difference is posted in its own journal entry on `date` (document type `pos_shift`): a shortage debits the `pos.cashShortage` rule account and credits the chart's cash account, a surplus debits the cash account and credits `pos.cashSurplus`; 422 when the company's chart lacks the account. A shift without receipts is refused with 422, a closed one with 409.
46210
46671
  </dd>
46211
46672
  </dl>
46212
46673
  </dd>
@@ -46221,7 +46682,10 @@ With amend: true the return is filed again as a correction of the one already su
46221
46682
  <dd>
46222
46683
 
46223
46684
  ```ruby
46224
- client.calendar.submit(key: "key")
46685
+ client.pos.shifts_close(
46686
+ id: "id",
46687
+ counted_cash: "121.00"
46688
+ )
46225
46689
  ```
46226
46690
  </dd>
46227
46691
  </dl>
@@ -46236,7 +46700,7 @@ client.calendar.submit(key: "key")
46236
46700
  <dl>
46237
46701
  <dd>
46238
46702
 
46239
- **key:** `String`
46703
+ **id:** `String`
46240
46704
 
46241
46705
  </dd>
46242
46706
  </dl>
@@ -46244,7 +46708,7 @@ client.calendar.submit(key: "key")
46244
46708
  <dl>
46245
46709
  <dd>
46246
46710
 
46247
- **amend:** `Internal::Types::Boolean`
46711
+ **counted_cash:** `String`
46248
46712
 
46249
46713
  </dd>
46250
46714
  </dl>
@@ -46252,7 +46716,23 @@ client.calendar.submit(key: "key")
46252
46716
  <dl>
46253
46717
  <dd>
46254
46718
 
46255
- **request_options:** `Nordlet::Calendar::RequestOptions`
46719
+ **date:** `String`
46720
+
46721
+ </dd>
46722
+ </dl>
46723
+
46724
+ <dl>
46725
+ <dd>
46726
+
46727
+ **report_number:** `String`
46728
+
46729
+ </dd>
46730
+ </dl>
46731
+
46732
+ <dl>
46733
+ <dd>
46734
+
46735
+ **request_options:** `Nordlet::Pos::RequestOptions`
46256
46736
 
46257
46737
  </dd>
46258
46738
  </dl>
@@ -46264,7 +46744,8 @@ client.calendar.submit(key: "key")
46264
46744
  </dl>
46265
46745
  </details>
46266
46746
 
46267
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">download</a>(request) -> Nordlet::Calendar::Types::DownloadCalendarResponse</code></summary>
46747
+ ## calendar
46748
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">list</a>(request) -> Nordlet::Calendar::Types::ListCalendarResponse</code></summary>
46268
46749
  <dl>
46269
46750
  <dd>
46270
46751
 
@@ -46276,7 +46757,7 @@ client.calendar.submit(key: "key")
46276
46757
  <dl>
46277
46758
  <dd>
46278
46759
 
46279
- Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the company's own account or program. Nothing is sent and no filing is recorded.
46760
+ Lists, in due-date order, the filing deadlines Nordlet derives for the company from its country and profile together with the company's own events, between `from` and `to` (default 45 days back to 120 days ahead of the company's current date). Each deadline carries its submissions, whether it can be filed with `calendar/submit`, amended, or built with `calendar/download`, and whether its automation is on; `includeDone: false` leaves out the rows that are completed, submitted or accepted.
46280
46761
  </dd>
46281
46762
  </dl>
46282
46763
  </dd>
@@ -46291,7 +46772,7 @@ Builds the file of a deadline whose format Nordlet produces but whose administra
46291
46772
  <dd>
46292
46773
 
46293
46774
  ```ruby
46294
- client.calendar.download(key: "key")
46775
+ client.calendar.list
46295
46776
  ```
46296
46777
  </dd>
46297
46778
  </dl>
@@ -46306,7 +46787,23 @@ client.calendar.download(key: "key")
46306
46787
  <dl>
46307
46788
  <dd>
46308
46789
 
46309
- **key:** `String`
46790
+ **from:** `String`
46791
+
46792
+ </dd>
46793
+ </dl>
46794
+
46795
+ <dl>
46796
+ <dd>
46797
+
46798
+ **to:** `String`
46799
+
46800
+ </dd>
46801
+ </dl>
46802
+
46803
+ <dl>
46804
+ <dd>
46805
+
46806
+ **include_done:** `Internal::Types::Boolean`
46310
46807
 
46311
46808
  </dd>
46312
46809
  </dl>
@@ -46326,7 +46823,7 @@ client.calendar.download(key: "key")
46326
46823
  </dl>
46327
46824
  </details>
46328
46825
 
46329
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">create</a>(request) -> Nordlet::Calendar::Types::CreateCalendarResponse</code></summary>
46826
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">get</a>(request) -> Nordlet::Calendar::Types::GetCalendarResponse</code></summary>
46330
46827
  <dl>
46331
46828
  <dd>
46332
46829
 
@@ -46338,7 +46835,7 @@ client.calendar.download(key: "key")
46338
46835
  <dl>
46339
46836
  <dd>
46340
46837
 
46341
- Creates a company event (kind `custom`) with a title, a due date, notes and a done flag.
46838
+ Reads one calendar row by `key`: the id of a company event, or `ruleKey:period` for a filing deadline with its submissions.
46342
46839
  </dd>
46343
46840
  </dl>
46344
46841
  </dd>
@@ -46353,10 +46850,7 @@ Creates a company event (kind `custom`) with a title, a due date, notes and a do
46353
46850
  <dd>
46354
46851
 
46355
46852
  ```ruby
46356
- client.calendar.create(
46357
- title: "title",
46358
- due_date: "2026-07-01"
46359
- )
46853
+ client.calendar.get(key: "key")
46360
46854
  ```
46361
46855
  </dd>
46362
46856
  </dl>
@@ -46371,31 +46865,7 @@ client.calendar.create(
46371
46865
  <dl>
46372
46866
  <dd>
46373
46867
 
46374
- **title:** `String`
46375
-
46376
- </dd>
46377
- </dl>
46378
-
46379
- <dl>
46380
- <dd>
46381
-
46382
- **due_date:** `String`
46383
-
46384
- </dd>
46385
- </dl>
46386
-
46387
- <dl>
46388
- <dd>
46389
-
46390
- **notes:** `String`
46391
-
46392
- </dd>
46393
- </dl>
46394
-
46395
- <dl>
46396
- <dd>
46397
-
46398
- **done:** `Internal::Types::Boolean`
46868
+ **key:** `String`
46399
46869
 
46400
46870
  </dd>
46401
46871
  </dl>
@@ -46415,7 +46885,7 @@ client.calendar.create(
46415
46885
  </dl>
46416
46886
  </details>
46417
46887
 
46418
- <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">update</a>(request) -> Nordlet::Calendar::Types::UpdateCalendarResponse</code></summary>
46888
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">submit</a>(request) -> Nordlet::Calendar::Types::SubmitCalendarResponse</code></summary>
46419
46889
  <dl>
46420
46890
  <dd>
46421
46891
 
@@ -46427,7 +46897,7 @@ client.calendar.create(
46427
46897
  <dl>
46428
46898
  <dd>
46429
46899
 
46430
- Changes a calendar row by `key`. A company event takes a new title, due date, notes or done flag; a filing deadline (`ruleKey:period`) takes only notes and done, keeps its own title and date, and gets a stored row the first time it is annotated.
46900
+ With amend: true the return is filed again as a correction of the one already submitted or accepted for the period; only returns whose format has a correction mark accept it.
46431
46901
  </dd>
46432
46902
  </dl>
46433
46903
  </dd>
@@ -46442,7 +46912,228 @@ Changes a calendar row by `key`. A company event takes a new title, due date, no
46442
46912
  <dd>
46443
46913
 
46444
46914
  ```ruby
46445
- client.calendar.update(key: "key")
46915
+ client.calendar.submit(key: "key")
46916
+ ```
46917
+ </dd>
46918
+ </dl>
46919
+ </dd>
46920
+ </dl>
46921
+
46922
+ #### ⚙️ Parameters
46923
+
46924
+ <dl>
46925
+ <dd>
46926
+
46927
+ <dl>
46928
+ <dd>
46929
+
46930
+ **key:** `String`
46931
+
46932
+ </dd>
46933
+ </dl>
46934
+
46935
+ <dl>
46936
+ <dd>
46937
+
46938
+ **amend:** `Internal::Types::Boolean`
46939
+
46940
+ </dd>
46941
+ </dl>
46942
+
46943
+ <dl>
46944
+ <dd>
46945
+
46946
+ **request_options:** `Nordlet::Calendar::RequestOptions`
46947
+
46948
+ </dd>
46949
+ </dl>
46950
+ </dd>
46951
+ </dl>
46952
+
46953
+
46954
+ </dd>
46955
+ </dl>
46956
+ </details>
46957
+
46958
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">download</a>(request) -> Nordlet::Calendar::Types::DownloadCalendarResponse</code></summary>
46959
+ <dl>
46960
+ <dd>
46961
+
46962
+ #### 📝 Description
46963
+
46964
+ <dl>
46965
+ <dd>
46966
+
46967
+ <dl>
46968
+ <dd>
46969
+
46970
+ Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the company's own account or program. Nothing is sent and no filing is recorded.
46971
+ </dd>
46972
+ </dl>
46973
+ </dd>
46974
+ </dl>
46975
+
46976
+ #### 🔌 Usage
46977
+
46978
+ <dl>
46979
+ <dd>
46980
+
46981
+ <dl>
46982
+ <dd>
46983
+
46984
+ ```ruby
46985
+ client.calendar.download(key: "key")
46986
+ ```
46987
+ </dd>
46988
+ </dl>
46989
+ </dd>
46990
+ </dl>
46991
+
46992
+ #### ⚙️ Parameters
46993
+
46994
+ <dl>
46995
+ <dd>
46996
+
46997
+ <dl>
46998
+ <dd>
46999
+
47000
+ **key:** `String`
47001
+
47002
+ </dd>
47003
+ </dl>
47004
+
47005
+ <dl>
47006
+ <dd>
47007
+
47008
+ **request_options:** `Nordlet::Calendar::RequestOptions`
47009
+
47010
+ </dd>
47011
+ </dl>
47012
+ </dd>
47013
+ </dl>
47014
+
47015
+
47016
+ </dd>
47017
+ </dl>
47018
+ </details>
47019
+
47020
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">create</a>(request) -> Nordlet::Calendar::Types::CreateCalendarResponse</code></summary>
47021
+ <dl>
47022
+ <dd>
47023
+
47024
+ #### 📝 Description
47025
+
47026
+ <dl>
47027
+ <dd>
47028
+
47029
+ <dl>
47030
+ <dd>
47031
+
47032
+ Creates a company event (kind `custom`) with a title, a due date, notes and a done flag.
47033
+ </dd>
47034
+ </dl>
47035
+ </dd>
47036
+ </dl>
47037
+
47038
+ #### 🔌 Usage
47039
+
47040
+ <dl>
47041
+ <dd>
47042
+
47043
+ <dl>
47044
+ <dd>
47045
+
47046
+ ```ruby
47047
+ client.calendar.create(
47048
+ title: "title",
47049
+ due_date: "2026-07-01"
47050
+ )
47051
+ ```
47052
+ </dd>
47053
+ </dl>
47054
+ </dd>
47055
+ </dl>
47056
+
47057
+ #### ⚙️ Parameters
47058
+
47059
+ <dl>
47060
+ <dd>
47061
+
47062
+ <dl>
47063
+ <dd>
47064
+
47065
+ **title:** `String`
47066
+
47067
+ </dd>
47068
+ </dl>
47069
+
47070
+ <dl>
47071
+ <dd>
47072
+
47073
+ **due_date:** `String`
47074
+
47075
+ </dd>
47076
+ </dl>
47077
+
47078
+ <dl>
47079
+ <dd>
47080
+
47081
+ **notes:** `String`
47082
+
47083
+ </dd>
47084
+ </dl>
47085
+
47086
+ <dl>
47087
+ <dd>
47088
+
47089
+ **done:** `Internal::Types::Boolean`
47090
+
47091
+ </dd>
47092
+ </dl>
47093
+
47094
+ <dl>
47095
+ <dd>
47096
+
47097
+ **request_options:** `Nordlet::Calendar::RequestOptions`
47098
+
47099
+ </dd>
47100
+ </dl>
47101
+ </dd>
47102
+ </dl>
47103
+
47104
+
47105
+ </dd>
47106
+ </dl>
47107
+ </details>
47108
+
47109
+ <details><summary><code>client.calendar.<a href="/lib/nordlet/calendar/client.rb">update</a>(request) -> Nordlet::Calendar::Types::UpdateCalendarResponse</code></summary>
47110
+ <dl>
47111
+ <dd>
47112
+
47113
+ #### 📝 Description
47114
+
47115
+ <dl>
47116
+ <dd>
47117
+
47118
+ <dl>
47119
+ <dd>
47120
+
47121
+ Changes a calendar row by `key`. A company event takes a new title, due date, notes or done flag; a filing deadline (`ruleKey:period`) takes only notes and done, keeps its own title and date, and gets a stored row the first time it is annotated.
47122
+ </dd>
47123
+ </dl>
47124
+ </dd>
47125
+ </dl>
47126
+
47127
+ #### 🔌 Usage
47128
+
47129
+ <dl>
47130
+ <dd>
47131
+
47132
+ <dl>
47133
+ <dd>
47134
+
47135
+ ```ruby
47136
+ client.calendar.update(key: "key")
46446
47137
  ```
46447
47138
  </dd>
46448
47139
  </dl>
@@ -47724,7 +48415,7 @@ client.bank.transactions_list
47724
48415
  <dl>
47725
48416
  <dd>
47726
48417
 
47727
- Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable, payable or net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. `invoiceAmount` states the amount settled on an invoice in another currency; in the same currency it must equal the payment (422). Answers 409 when the line is already matched, when the amount exceeds the remaining balance of the document or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48418
+ Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable or payable account the invoice was posted to (the account of its operation type, else the posting rule) or the net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. A payment in another currency is converted into the invoice currency at the rate of the line date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the amount settled instead; in the same currency it must equal the payment (422). Answers 409 when the line is already matched, when the amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
47728
48419
  </dd>
47729
48420
  </dl>
47730
48421
  </dd>
@@ -48150,7 +48841,7 @@ client.bank.payments_export(
48150
48841
  <dl>
48151
48842
  <dd>
48152
48843
 
48153
- A template of type stripe, iso20022, revolut or bank_connection names the fields of the file or feed: a field with an `accountCode` is posted to that ledger account on import, a field with `createPartner` creates the customer, supplier or fee partner. `invoiceMetaField` is the Stripe metadata key (stripe) or the reference field (other types) by which payments are linked to invoices; with it `invoiceVatRatePercent`, `invoiceItemId` and, outside Stripe, `advanceInvoices` apply. `companyMetaField`, `lenderMetaField`, the operation types and the refund labels are for Stripe templates only. A template with the same name already existing answers 409.
48844
+ A template of type stripe, iso20022, revolut or bank_connection names the fields of the file or feed: a field with an `accountCode` is posted to that ledger account on import, a field with `createPartner` creates the customer, supplier or fee partner. `invoiceMetaField` is the Stripe metadata key (stripe) or the reference field (other types) by which payments are linked to invoices; with it `invoiceVatClassifierCode`, `invoiceVatRatePercent`, `invoiceItemId` and, outside Stripe, `advanceInvoices` apply. `companyMetaField`, `lenderMetaField`, the operation types and the refund labels are for Stripe templates only. A template with the same name already existing answers 409.
48154
48845
  </dd>
48155
48846
  </dl>
48156
48847
  </dd>
@@ -48231,6 +48922,14 @@ client.bank.import_templates_create(
48231
48922
  <dl>
48232
48923
  <dd>
48233
48924
 
48925
+ **invoice_vat_classifier_code:** `String`
48926
+
48927
+ </dd>
48928
+ </dl>
48929
+
48930
+ <dl>
48931
+ <dd>
48932
+
48234
48933
  **company_meta_field:** `String`
48235
48934
 
48236
48935
  </dd>
@@ -48405,6 +49104,14 @@ client.bank.import_templates_update(id: "id")
48405
49104
  <dl>
48406
49105
  <dd>
48407
49106
 
49107
+ **invoice_vat_classifier_code:** `String`
49108
+
49109
+ </dd>
49110
+ </dl>
49111
+
49112
+ <dl>
49113
+ <dd>
49114
+
48408
49115
  **company_meta_field:** `String`
48409
49116
 
48410
49117
  </dd>
@@ -50327,7 +51034,7 @@ client.bank.settlements_unlink(id: "id")
50327
51034
  <dl>
50328
51035
  <dd>
50329
51036
 
50330
- Post a settlement batch dated `date` (default: the payout date, else today): the bank account receives the net payout, the matched sale invoices are settled against the receivable (the receivable of each partner in a journal transaction of its own when invoices of several partners are settled), the provider fees, the marketplace commission and the seller payable are booked, and a payout in another currency is converted at the rate of that date with the exchange difference against each invoice's own rate on the gain or loss account. A line without a matched invoice is split by its own rate or amount, else by `commissionPercent`, else parked on the suspense account; a line already imported as a movement of a bank account is posted against that account instead. Answers 409 when the batch is already posted or the period is locked, 422 when it has no lines. The payout is linked to the bank line a match rule recognises. Emits `settlement.posted`, `sale_invoice.paid` for each invoice that becomes paid and `refund_liability.actual` for refunds of invoices carrying a refund liability.
51037
+ Post a settlement batch dated `date` (default: the payout date, else today): the bank account receives the net payout, the matched sale invoices are settled against the receivable account each was posted to (its operation type's account, else the posting rule; the receivable of each partner in a journal transaction of its own when invoices of several partners are settled), the provider fees, the marketplace commission and the seller payable are booked, and a payout in another currency is converted at the rate of that date with the exchange difference against each invoice's own rate on the gain or loss account. A line without a matched invoice is split by its own rate or amount, else by `commissionPercent`, else parked on the suspense account; a line already imported as a movement of a bank account is posted against that account instead. Answers 409 when the batch is already posted or the period is locked, 422 when it has no lines. The payout is linked to the bank line a match rule recognises. Emits `settlement.posted`, `sale_invoice.paid` for each invoice that becomes paid and `refund_liability.actual` for refunds of invoices carrying a refund liability.
50331
51038
  </dd>
50332
51039
  </dl>
50333
51040
  </dd>
@@ -53706,7 +54413,7 @@ client.reports.cost_center_activity(
53706
54413
  <dl>
53707
54414
  <dd>
53708
54415
 
53709
- Net purchases per cost centre and item for a period, from the lines of registered purchase invoices (by registration date) that carry a cost centre, credit notes counting negative; `costCenterId` limits the report to one cost centre. A line without an item is reported under its description.
54416
+ Net purchases in the base currency per cost centre and item for a period, from the lines of registered purchase invoices (by registration date) that carry a cost centre, credit notes counting negative; `costCenterId` limits the report to one cost centre. A line without an item is reported under its description.
53710
54417
  </dd>
53711
54418
  </dl>
53712
54419
  </dd>
@@ -55076,7 +55783,7 @@ client.public.integration_requests(
55076
55783
  <dl>
55077
55784
  <dd>
55078
55785
 
55079
- Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`). Answers 404 when the token matches no issued invoice, the invoice has `payLinkEnabled` false or the company has no template, and 409 when the invoice is already paid.
55786
+ Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`). Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice has `payLinkEnabled` false or the company has no template, and 409 when the invoice is already paid.
55080
55787
  </dd>
55081
55788
  </dl>
55082
55789
  </dd>
@@ -55200,7 +55907,7 @@ client.public.invoices_get(token: "token")
55200
55907
  <dl>
55201
55908
  <dd>
55202
55909
 
55203
- Open a Stripe Checkout page on the company's connected Stripe account for the amount still unpaid on the issued invoice that carries this customer token, and return its `url`. Stripe sends the customer back to the public invoice page. Answers 404 when the token matches no issued invoice, the invoice has `payLinkEnabled` false or the company has no Stripe account that can take charges, 409 when the invoice is already paid and 422 when Stripe cannot take the amount in the invoice currency.
55910
+ Open a Stripe Checkout page on the company's connected Stripe account for the amount still unpaid on the issued invoice that carries this customer token, and return its `url`. Stripe sends the customer back to the public invoice page. Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice has `payLinkEnabled` false or the company has no Stripe account that can take charges, 409 when the invoice is already paid or a completed card payment for it was received and waits for the payout, and 422 when Stripe cannot take the amount in the invoice currency.
55204
55911
  </dd>
55205
55912
  </dl>
55206
55913
  </dd>
@@ -55325,7 +56032,7 @@ client.public.invoices_pdf(token: "token")
55325
56032
  <dl>
55326
56033
  <dd>
55327
56034
 
55328
- Return the signed-in user's billing account: plan, account type, status, balance, trial and payment state, the month-to-date usage of the companies the user pays for with an estimate of today's charge, the plan catalogue, and the top-up, automatic top-up and overdraft settings.
56035
+ Return the signed-in user's billing account of the site named by the `x-nordlet-site` header (`app` when absent): plan, account type, status, balance, trial and payment state, the month-to-date usage of that site in the companies the user pays for with an estimate of today's charge, the plan catalogue, and the top-up, automatic top-up and overdraft settings. Each site has its own account and plan.
55329
56036
  </dd>
55330
56037
  </dl>
55331
56038
  </dd>
@@ -55379,7 +56086,7 @@ client.billing.account_get
55379
56086
  <dl>
55380
56087
  <dd>
55381
56088
 
55382
- Change the plan of the user's flat-rate billing account; answers 409 when the account type is not `flat_rate`. With a Stripe subscription and payments configured, the subscription is moved to the new plan.
56089
+ Change the plan of the user's flat-rate billing account of the request's site; answers 422 when the plan is not one of that site's plans and 409 when the account type is not `flat_rate`. With a Stripe subscription and payments configured, the subscription is moved to the new plan. On the day of the change, the plan fee (without a subscription) and the storage are split by hour, each hour at the plan in force when the hour starts, and the sale invoices of the day count against the plan in force when they were made.
55383
56090
  </dd>
55384
56091
  </dl>
55385
56092
  </dd>
@@ -55441,7 +56148,7 @@ client.billing.account_set_plan(plan: "starter")
55441
56148
  <dl>
55442
56149
  <dd>
55443
56150
 
55444
- Switch the user's billing account between `flat_rate` and `per_request`. With a Stripe subscription and payments configured, the subscription is moved to the plan's price for `flat_rate`; for `per_request` the plan is taken off the subscription, and a subscription that carried only the plan is cancelled, leaving the account without one. When Stripe refuses the change, the previous account type is restored.
56151
+ Switch the user's billing account of the request's site between `flat_rate` and `per_request`; answers 422 for an account type the site does not offer (the `invoice` site has `flat_rate` only). With a Stripe subscription and payments configured, the subscription is moved to the plan's price for `flat_rate`; for `per_request` the plan is taken off the subscription, and a subscription that carried only the plan is cancelled, leaving the account without one. When Stripe refuses the change, the previous account type is restored.
55445
56152
  </dd>
55446
56153
  </dl>
55447
56154
  </dd>
@@ -55503,7 +56210,7 @@ client.billing.account_set_account_type(account_type: "flat_rate")
55503
56210
  <dl>
55504
56211
  <dd>
55505
56212
 
55506
- Switch automatic top-ups on or off and set their amount. Switching them on needs a Stripe customer, which the first card top-up creates (400 otherwise); when switched on, a top-up is charged at once if the balance is at or below zero, no payment has failed and no top-up was requested in the last 24 hours.
56213
+ Switch automatic top-ups on or off and set their amount; answers 409 on a site without top-ups. Switching them on needs a Stripe customer, which the first card top-up creates (400 otherwise); when switched on, a top-up is charged at once if the balance is at or below zero, no payment has failed and no top-up was requested in the last 24 hours.
55507
56214
  </dd>
55508
56215
  </dl>
55509
56216
  </dd>
@@ -55576,7 +56283,7 @@ client.billing.account_set_auto_top_up(
55576
56283
  <dl>
55577
56284
  <dd>
55578
56285
 
55579
- Set the overdraft cap of the user's billing account: how far usage charges may take the balance below zero before the account is suspended. A suspended account whose balance is within the new cap is activated again.
56286
+ Set the overdraft cap of the user's billing account: how far usage charges may take the balance below zero before the account is suspended. A suspended account whose balance is within the new cap is activated again. Answers 409 on a site without top-ups.
55580
56287
  </dd>
55581
56288
  </dl>
55582
56289
  </dd>
@@ -55638,7 +56345,7 @@ client.billing.account_set_overdraft_cap(cap_cents: 1000000)
55638
56345
  <dl>
55639
56346
  <dd>
55640
56347
 
55641
- Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`. Answers 503 when online payments are not configured.
56348
+ Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits page or to the onboarding plan page, in `locale`. Answers 409 on a site without top-ups and 503 when online payments are not configured.
55642
56349
  </dd>
55643
56350
  </dl>
55644
56351
  </dd>
@@ -55716,7 +56423,7 @@ client.billing.topup_create(amount_cents: 1000000)
55716
56423
  <dl>
55717
56424
  <dd>
55718
56425
 
55719
- Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid.
56426
+ Confirm a paid top-up Checkout session by `sessionId` and credit the account at once instead of waiting for the Stripe webhook; a session is credited only once. Answers 404 when the session is not the user's own or is not paid, and 409 on a site without top-ups.
55720
56427
  </dd>
55721
56428
  </dl>
55722
56429
  </dd>
@@ -55778,7 +56485,7 @@ client.billing.topup_confirm(session_id: "sessionId")
55778
56485
  <dl>
55779
56486
  <dd>
55780
56487
 
55781
- Open a Stripe Checkout session for a flat-rate subscription on `plan`, with the trial period of `trialDays` days, and return its URL; a Stripe customer is created for the user when there is none. The `invoicing` plan of the invoice tool takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. Answers 409 when a flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
56488
+ Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the request's site) for the billing account of the request's site, with the trial period of `trialDays` days, and return its URL; a Stripe customer is created for that account when it has none. The `invoicing` plan of the `invoice` site takes its trial days from the server setting `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. Answers 422 when the plan is not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online payments are not configured, the plan has no price, or the Invoicing trial is not set.
55782
56489
  </dd>
55783
56490
  </dl>
55784
56491
  </dd>
@@ -55848,7 +56555,7 @@ client.billing.flat_rate_create
55848
56555
  <dl>
55849
56556
  <dd>
55850
56557
 
55851
- Confirm a completed flat-rate Checkout session by `sessionId`: the account becomes `flat_rate` on the session's plan with status `active` and the subscription attached, unless the Stripe webhook already did this. Answers 404 when the session is not the user's own or not completed.
56558
+ Confirm a completed flat-rate Checkout session by `sessionId`: the billing account of the site of the session's plan becomes `flat_rate` on that plan with status `active` and the subscription attached, unless the Stripe webhook already did this. Answers 404 when the session is not the user's own or not completed.
55852
56559
  </dd>
55853
56560
  </dl>
55854
56561
  </dd>
@@ -55910,7 +56617,7 @@ client.billing.flat_rate_confirm(session_id: "sessionId")
55910
56617
  <dl>
55911
56618
  <dd>
55912
56619
 
55913
- Cancel the user's Stripe subscription at the end of the period already paid: the plan stays active until `subscriptionCancelAt`, and Stripe then ends the subscription, which its `customer.subscription.deleted` webhook records. Answers 503 when online payments are not configured and 409 when the account has no subscription.
56620
+ Cancel the Stripe subscription of the user's billing account of the request's site at the end of the period already paid: the plan stays active until `subscriptionCancelAt`, and Stripe then ends the subscription, which its `customer.subscription.deleted` webhook records. Answers 503 when online payments are not configured and 409 when the account has no subscription.
55914
56621
  </dd>
55915
56622
  </dl>
55916
56623
  </dd>
@@ -55964,7 +56671,7 @@ client.billing.subscription_cancel
55964
56671
  <dl>
55965
56672
  <dd>
55966
56673
 
55967
- Open a Stripe customer portal session that returns to the credits page in `locale`, and return its URL. Answers 503 when online payments are not configured and 400 when the user has no Stripe customer yet.
56674
+ Open a Stripe customer portal session for the billing account of the request's site that returns to that site's credits page (the plan page on the `invoice` site) in `locale`, and return its URL. Answers 503 when online payments are not configured and 400 when the account has no Stripe customer yet.
55968
56675
  </dd>
55969
56676
  </dl>
55970
56677
  </dd>
@@ -56026,7 +56733,7 @@ client.billing.portal_create
56026
56733
  <dl>
56027
56734
  <dd>
56028
56735
 
56029
- List the newest credit transactions of the user's billing account, up to `limit`: trial grants, top-ups, usage charges, activations and adjustments, each with the balance after it.
56736
+ List the newest credit transactions of the user's billing account of the request's site, up to `limit`: trial grants, top-ups, usage charges, activations and adjustments, each with the balance after it.
56030
56737
  </dd>
56031
56738
  </dl>
56032
56739
  </dd>
@@ -56088,7 +56795,7 @@ client.billing.transactions_list
56088
56795
  <dl>
56089
56796
  <dd>
56090
56797
 
56091
- List the daily usage records of the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices).
56798
+ List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one row per company, date and metric (API requests, OCR pages, file storage bytes, database bytes, sale invoices). Requests, OCR pages and invoices count on the site the request came from; storage counts on the `app` site.
56092
56799
  </dd>
56093
56800
  </dl>
56094
56801
  </dd>
@@ -56380,7 +57087,7 @@ client.account.logout
56380
57087
  <dl>
56381
57088
  <dd>
56382
57089
 
56383
- Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance.
57090
+ Return the signed-in user, their active company and role in it, the companies they belong to and their consent state. `billing` is the billing account of the request's site (the `x-nordlet-site` header, `app` when absent) that pays for the active company (its payer, or the user when there is none or no company), with `isPayer` saying whether that is the user; `referralPoints` is the user's current points balance. An API key may call it too: the active company is then the one named in the `x-nordlet-company` header, and `companies` lists every company the key works in.
56384
57091
  </dd>
56385
57092
  </dl>
56386
57093
  </dd>
@@ -56631,7 +57338,7 @@ client.account.members_transfer_ownership(user_id: "userId")
56631
57338
  <dl>
56632
57339
  <dd>
56633
57340
 
56634
- Remove a member from the active company; owners and admins may call it. Their sessions lose this company as the active one and the API keys they created for it are revoked. Refused with 422 for the caller themself and with 403 for the owner.
57341
+ Remove a member from the active company; owners and admins may call it. Their sessions lose this company as the active one and their API keys stop working in it. Refused with 422 for the caller themself and with 403 for the owner.
56635
57342
  </dd>
56636
57343
  </dl>
56637
57344
  </dd>
@@ -57458,7 +58165,7 @@ client.account.companies_create(name: "name")
57458
58165
  <dl>
57459
58166
  <dd>
57460
58167
 
57461
- Make one of the caller's companies the active company of the session. Refused with 403 when the caller is not a member and with 422 when the company is archived or deleted.
58168
+ Make one of the caller's companies the active company of the session. Refused with 403 when the caller is not a member, with 422 when the company is archived or deleted, and with 422 for an API key, which names the company in the `x-nordlet-company` header of each call instead.
57462
58169
  </dd>
57463
58170
  </dl>
57464
58171
  </dd>
@@ -58086,7 +58793,7 @@ client.account.companies_activate(company_id: "companyId")
58086
58793
  <dl>
58087
58794
  <dd>
58088
58795
 
58089
- Create an API key for the active company and return the key itself once; owners, admins and developers may call it. `scopes` defaults to the caller's own scopes and may not exceed them (403); without `expiresInDays` the key does not expire.
58796
+ Create an API key for the signed-in person and return the key itself once. Owners, admins and developers of the active company may call it. The key works in every company the person is a member of, with the rights of their role in each; every call names the company in the `x-nordlet-company` header. `scopes` defaults to the caller's scopes in the active company and may not exceed them (403); in each company the key's scopes are further limited to the person's role there. Without `expiresInDays` the key does not expire.
58090
58797
  </dd>
58091
58798
  </dl>
58092
58799
  </dd>
@@ -58164,7 +58871,7 @@ client.account.api_keys_create(name: "name")
58164
58871
  <dl>
58165
58872
  <dd>
58166
58873
 
58167
- List the API keys of the active company, including expired and revoked ones.
58874
+ List the signed-in person's API keys, including expired and revoked ones.
58168
58875
  </dd>
58169
58876
  </dl>
58170
58877
  </dd>
@@ -58218,7 +58925,7 @@ client.account.api_keys_list
58218
58925
  <dl>
58219
58926
  <dd>
58220
58927
 
58221
- Create a new key with the name and scopes of the key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked.
58928
+ Create a new key with the name and scopes of the signed-in person's key `id` and return it once; the old key keeps working for `overlapHours` and then expires, and its `replacedByKeyId` points to the new one. `expiresInDays` applies to the new key. Refused with 409 when the old key is revoked or belongs to an app connected through OAuth, which renews its own access.
58222
58929
  </dd>
58223
58930
  </dl>
58224
58931
  </dd>
@@ -58296,7 +59003,7 @@ client.account.api_keys_rotate(id: "id")
58296
59003
  <dl>
58297
59004
  <dd>
58298
59005
 
58299
- Revoke an API key of the active company at once.
59006
+ Revoke one of the signed-in person's API keys at once.
58300
59007
  </dd>
58301
59008
  </dl>
58302
59009
  </dd>
@@ -58346,7 +59053,328 @@ client.account.api_keys_revoke(id: "id")
58346
59053
  </dl>
58347
59054
  </details>
58348
59055
 
58349
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">consent_accept</a>(request) -> Nordlet::Account::Types::ConsentAcceptAccountResponse</code></summary>
59056
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">consent_accept</a>(request) -> Nordlet::Account::Types::ConsentAcceptAccountResponse</code></summary>
59057
+ <dl>
59058
+ <dd>
59059
+
59060
+ #### 📝 Description
59061
+
59062
+ <dl>
59063
+ <dd>
59064
+
59065
+ <dl>
59066
+ <dd>
59067
+
59068
+ Record the signed-in user's acceptance of the current Terms of Service and Data Processing Agreement versions and return the consent state.
59069
+ </dd>
59070
+ </dl>
59071
+ </dd>
59072
+ </dl>
59073
+
59074
+ #### 🔌 Usage
59075
+
59076
+ <dl>
59077
+ <dd>
59078
+
59079
+ <dl>
59080
+ <dd>
59081
+
59082
+ ```ruby
59083
+ client.account.consent_accept(
59084
+ accept_terms: true,
59085
+ accept_dpa: true
59086
+ )
59087
+ ```
59088
+ </dd>
59089
+ </dl>
59090
+ </dd>
59091
+ </dl>
59092
+
59093
+ #### ⚙️ Parameters
59094
+
59095
+ <dl>
59096
+ <dd>
59097
+
59098
+ <dl>
59099
+ <dd>
59100
+
59101
+ **accept_terms:** `Internal::Types::Boolean`
59102
+
59103
+ </dd>
59104
+ </dl>
59105
+
59106
+ <dl>
59107
+ <dd>
59108
+
59109
+ **accept_dpa:** `Internal::Types::Boolean`
59110
+
59111
+ </dd>
59112
+ </dl>
59113
+
59114
+ <dl>
59115
+ <dd>
59116
+
59117
+ **request_options:** `Nordlet::Account::RequestOptions`
59118
+
59119
+ </dd>
59120
+ </dl>
59121
+ </dd>
59122
+ </dl>
59123
+
59124
+
59125
+ </dd>
59126
+ </dl>
59127
+ </details>
59128
+
59129
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">profile_update</a>(request) -> Nordlet::Account::Types::ProfileUpdateAccountResponse</code></summary>
59130
+ <dl>
59131
+ <dd>
59132
+
59133
+ #### 📝 Description
59134
+
59135
+ <dl>
59136
+ <dd>
59137
+
59138
+ <dl>
59139
+ <dd>
59140
+
59141
+ Set the signed-in user's name; null or a blank string clears it.
59142
+ </dd>
59143
+ </dl>
59144
+ </dd>
59145
+ </dl>
59146
+
59147
+ #### 🔌 Usage
59148
+
59149
+ <dl>
59150
+ <dd>
59151
+
59152
+ <dl>
59153
+ <dd>
59154
+
59155
+ ```ruby
59156
+ client.account.profile_update
59157
+ ```
59158
+ </dd>
59159
+ </dl>
59160
+ </dd>
59161
+ </dl>
59162
+
59163
+ #### ⚙️ Parameters
59164
+
59165
+ <dl>
59166
+ <dd>
59167
+
59168
+ <dl>
59169
+ <dd>
59170
+
59171
+ **name:** `String`
59172
+
59173
+ </dd>
59174
+ </dl>
59175
+
59176
+ <dl>
59177
+ <dd>
59178
+
59179
+ **request_options:** `Nordlet::Account::RequestOptions`
59180
+
59181
+ </dd>
59182
+ </dl>
59183
+ </dd>
59184
+ </dl>
59185
+
59186
+
59187
+ </dd>
59188
+ </dl>
59189
+ </details>
59190
+
59191
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">email_change_request</a>(request) -> Nordlet::Account::Types::EmailChangeRequestAccountResponse</code></summary>
59192
+ <dl>
59193
+ <dd>
59194
+
59195
+ #### 📝 Description
59196
+
59197
+ <dl>
59198
+ <dd>
59199
+
59200
+ <dl>
59201
+ <dd>
59202
+
59203
+ Send a confirmation link to `newEmail`; the address changes when that link is consumed with `account/login-link/consume`. When an unused link was sent to the address within the last minute, the call answers `sent` without sending another. Refused with 422 when it is already the user's address and with 409 when another account has it.
59204
+ </dd>
59205
+ </dl>
59206
+ </dd>
59207
+ </dl>
59208
+
59209
+ #### 🔌 Usage
59210
+
59211
+ <dl>
59212
+ <dd>
59213
+
59214
+ <dl>
59215
+ <dd>
59216
+
59217
+ ```ruby
59218
+ client.account.email_change_request(new_email: "newEmail")
59219
+ ```
59220
+ </dd>
59221
+ </dl>
59222
+ </dd>
59223
+ </dl>
59224
+
59225
+ #### ⚙️ Parameters
59226
+
59227
+ <dl>
59228
+ <dd>
59229
+
59230
+ <dl>
59231
+ <dd>
59232
+
59233
+ **new_email:** `String`
59234
+
59235
+ </dd>
59236
+ </dl>
59237
+
59238
+ <dl>
59239
+ <dd>
59240
+
59241
+ **locale:** `Nordlet::Account::Types::EmailChangeRequestAccountRequestLocale`
59242
+
59243
+ </dd>
59244
+ </dl>
59245
+
59246
+ <dl>
59247
+ <dd>
59248
+
59249
+ **request_options:** `Nordlet::Account::RequestOptions`
59250
+
59251
+ </dd>
59252
+ </dl>
59253
+ </dd>
59254
+ </dl>
59255
+
59256
+
59257
+ </dd>
59258
+ </dl>
59259
+ </details>
59260
+
59261
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_list</a>(request) -> Nordlet::Account::Types::SessionsListAccountResponse</code></summary>
59262
+ <dl>
59263
+ <dd>
59264
+
59265
+ #### 📝 Description
59266
+
59267
+ <dl>
59268
+ <dd>
59269
+
59270
+ <dl>
59271
+ <dd>
59272
+
59273
+ List the signed-in user's sessions that have not expired; `current` marks the one the call was made with.
59274
+ </dd>
59275
+ </dl>
59276
+ </dd>
59277
+ </dl>
59278
+
59279
+ #### 🔌 Usage
59280
+
59281
+ <dl>
59282
+ <dd>
59283
+
59284
+ <dl>
59285
+ <dd>
59286
+
59287
+ ```ruby
59288
+ client.account.sessions_list
59289
+ ```
59290
+ </dd>
59291
+ </dl>
59292
+ </dd>
59293
+ </dl>
59294
+
59295
+ #### ⚙️ Parameters
59296
+
59297
+ <dl>
59298
+ <dd>
59299
+
59300
+ <dl>
59301
+ <dd>
59302
+
59303
+ **request_options:** `Nordlet::Account::RequestOptions`
59304
+
59305
+ </dd>
59306
+ </dl>
59307
+ </dd>
59308
+ </dl>
59309
+
59310
+
59311
+ </dd>
59312
+ </dl>
59313
+ </details>
59314
+
59315
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke</a>(request) -> Nordlet::Account::Types::SessionsRevokeAccountResponse</code></summary>
59316
+ <dl>
59317
+ <dd>
59318
+
59319
+ #### 📝 Description
59320
+
59321
+ <dl>
59322
+ <dd>
59323
+
59324
+ <dl>
59325
+ <dd>
59326
+
59327
+ Delete one of the signed-in user's sessions.
59328
+ </dd>
59329
+ </dl>
59330
+ </dd>
59331
+ </dl>
59332
+
59333
+ #### 🔌 Usage
59334
+
59335
+ <dl>
59336
+ <dd>
59337
+
59338
+ <dl>
59339
+ <dd>
59340
+
59341
+ ```ruby
59342
+ client.account.sessions_revoke(id: "id")
59343
+ ```
59344
+ </dd>
59345
+ </dl>
59346
+ </dd>
59347
+ </dl>
59348
+
59349
+ #### ⚙️ Parameters
59350
+
59351
+ <dl>
59352
+ <dd>
59353
+
59354
+ <dl>
59355
+ <dd>
59356
+
59357
+ **id:** `String`
59358
+
59359
+ </dd>
59360
+ </dl>
59361
+
59362
+ <dl>
59363
+ <dd>
59364
+
59365
+ **request_options:** `Nordlet::Account::RequestOptions`
59366
+
59367
+ </dd>
59368
+ </dl>
59369
+ </dd>
59370
+ </dl>
59371
+
59372
+
59373
+ </dd>
59374
+ </dl>
59375
+ </details>
59376
+
59377
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke_others</a>(request) -> Nordlet::Account::Types::SessionsRevokeOthersAccountResponse</code></summary>
58350
59378
  <dl>
58351
59379
  <dd>
58352
59380
 
@@ -58358,7 +59386,7 @@ client.account.api_keys_revoke(id: "id")
58358
59386
  <dl>
58359
59387
  <dd>
58360
59388
 
58361
- Record the signed-in user's acceptance of the current Terms of Service and Data Processing Agreement versions and return the consent state.
59389
+ Delete every session of the signed-in user except the one the call was made with, and return how many were deleted.
58362
59390
  </dd>
58363
59391
  </dl>
58364
59392
  </dd>
@@ -58373,10 +59401,7 @@ Record the signed-in user's acceptance of the current Terms of Service and Data
58373
59401
  <dd>
58374
59402
 
58375
59403
  ```ruby
58376
- client.account.consent_accept(
58377
- accept_terms: true,
58378
- accept_dpa: true
58379
- )
59404
+ client.account.sessions_revoke_others
58380
59405
  ```
58381
59406
  </dd>
58382
59407
  </dl>
@@ -58391,22 +59416,6 @@ client.account.consent_accept(
58391
59416
  <dl>
58392
59417
  <dd>
58393
59418
 
58394
- **accept_terms:** `Internal::Types::Boolean`
58395
-
58396
- </dd>
58397
- </dl>
58398
-
58399
- <dl>
58400
- <dd>
58401
-
58402
- **accept_dpa:** `Internal::Types::Boolean`
58403
-
58404
- </dd>
58405
- </dl>
58406
-
58407
- <dl>
58408
- <dd>
58409
-
58410
59419
  **request_options:** `Nordlet::Account::RequestOptions`
58411
59420
 
58412
59421
  </dd>
@@ -58419,7 +59428,7 @@ client.account.consent_accept(
58419
59428
  </dl>
58420
59429
  </details>
58421
59430
 
58422
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">profile_update</a>(request) -> Nordlet::Account::Types::ProfileUpdateAccountResponse</code></summary>
59431
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">export</a>(request) -> Nordlet::Account::Types::ExportAccountResponse</code></summary>
58423
59432
  <dl>
58424
59433
  <dd>
58425
59434
 
@@ -58431,7 +59440,7 @@ client.account.consent_accept(
58431
59440
  <dl>
58432
59441
  <dd>
58433
59442
 
58434
- Set the signed-in user's name; null or a blank string clears it.
59443
+ Return the user's profile, consent state, memberships, unexpired sessions, billing accounts (`billing` is the `app` site's, `billingAccounts` has one per site), credit transactions and the audit entries they made in their companies (the most recent 5000 of each of the last two).
58435
59444
  </dd>
58436
59445
  </dl>
58437
59446
  </dd>
@@ -58446,7 +59455,7 @@ Set the signed-in user's name; null or a blank string clears it.
58446
59455
  <dd>
58447
59456
 
58448
59457
  ```ruby
58449
- client.account.profile_update
59458
+ client.account.export
58450
59459
  ```
58451
59460
  </dd>
58452
59461
  </dl>
@@ -58461,14 +59470,6 @@ client.account.profile_update
58461
59470
  <dl>
58462
59471
  <dd>
58463
59472
 
58464
- **name:** `String`
58465
-
58466
- </dd>
58467
- </dl>
58468
-
58469
- <dl>
58470
- <dd>
58471
-
58472
59473
  **request_options:** `Nordlet::Account::RequestOptions`
58473
59474
 
58474
59475
  </dd>
@@ -58481,7 +59482,7 @@ client.account.profile_update
58481
59482
  </dl>
58482
59483
  </details>
58483
59484
 
58484
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">email_change_request</a>(request) -> Nordlet::Account::Types::EmailChangeRequestAccountResponse</code></summary>
59485
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">delete</a>(request) -> Nordlet::Account::Types::DeleteAccountResponse</code></summary>
58485
59486
  <dl>
58486
59487
  <dd>
58487
59488
 
@@ -58493,7 +59494,7 @@ client.account.profile_update
58493
59494
  <dl>
58494
59495
  <dd>
58495
59496
 
58496
- Send a confirmation link to `newEmail`; the address changes when that link is consumed with `account/login-link/consume`. When an unused link was sent to the address within the last minute, the call answers `sent` without sending another. Refused with 422 when it is already the user's address and with 409 when another account has it.
59497
+ Removes the user: sessions, sign-in links, memberships and pending invitations are deleted at once; the email and name are replaced by an anonymous placeholder immediately and the remaining row is removed after 30 days. Refused while the user still owns or pays for a company that is not deleted.
58497
59498
  </dd>
58498
59499
  </dl>
58499
59500
  </dd>
@@ -58508,7 +59509,7 @@ Send a confirmation link to `newEmail`; the address changes when that link is co
58508
59509
  <dd>
58509
59510
 
58510
59511
  ```ruby
58511
- client.account.email_change_request(new_email: "newEmail")
59512
+ client.account.delete(confirm_email: "confirmEmail")
58512
59513
  ```
58513
59514
  </dd>
58514
59515
  </dl>
@@ -58523,15 +59524,7 @@ client.account.email_change_request(new_email: "newEmail")
58523
59524
  <dl>
58524
59525
  <dd>
58525
59526
 
58526
- **new_email:** `String`
58527
-
58528
- </dd>
58529
- </dl>
58530
-
58531
- <dl>
58532
- <dd>
58533
-
58534
- **locale:** `Nordlet::Account::Types::EmailChangeRequestAccountRequestLocale`
59527
+ **confirm_email:** `String`
58535
59528
 
58536
59529
  </dd>
58537
59530
  </dl>
@@ -58551,7 +59544,7 @@ client.account.email_change_request(new_email: "newEmail")
58551
59544
  </dl>
58552
59545
  </details>
58553
59546
 
58554
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_list</a>(request) -> Nordlet::Account::Types::SessionsListAccountResponse</code></summary>
59547
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_get</a>(request) -> Nordlet::Account::Types::ReferralGetAccountResponse</code></summary>
58555
59548
  <dl>
58556
59549
  <dd>
58557
59550
 
@@ -58563,7 +59556,7 @@ client.account.email_change_request(new_email: "newEmail")
58563
59556
  <dl>
58564
59557
  <dd>
58565
59558
 
58566
- List the signed-in user's sessions that have not expired; `current` marks the one the call was made with.
59559
+ Return the user's referral code (allocated on first call) and sign-up link, their points balance, the number of accounts they referred and the last 50 points entries. `rates.perEur` is the points the referrer earns per euro a referred user tops up, `rates.pointCents` the credit one point converts to with `account/referral/convert`.
58567
59560
  </dd>
58568
59561
  </dl>
58569
59562
  </dd>
@@ -58578,7 +59571,7 @@ List the signed-in user's sessions that have not expired; `current` marks the on
58578
59571
  <dd>
58579
59572
 
58580
59573
  ```ruby
58581
- client.account.sessions_list
59574
+ client.account.referral_get
58582
59575
  ```
58583
59576
  </dd>
58584
59577
  </dl>
@@ -58605,7 +59598,7 @@ client.account.sessions_list
58605
59598
  </dl>
58606
59599
  </details>
58607
59600
 
58608
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke</a>(request) -> Nordlet::Account::Types::SessionsRevokeAccountResponse</code></summary>
59601
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_convert</a>(request) -> Nordlet::Account::Types::ReferralConvertAccountResponse</code></summary>
58609
59602
  <dl>
58610
59603
  <dd>
58611
59604
 
@@ -58617,7 +59610,7 @@ client.account.sessions_list
58617
59610
  <dl>
58618
59611
  <dd>
58619
59612
 
58620
- Delete one of the signed-in user's sessions.
59613
+ Convert `points` of the user's referral points into credit on their billing account at `rates.pointCents` per point, booked as an `adjustment` credit transaction; a billing account past its trial is set to active when the new balance allows. Refused with 422 when the user has fewer points than requested.
58621
59614
  </dd>
58622
59615
  </dl>
58623
59616
  </dd>
@@ -58632,7 +59625,7 @@ Delete one of the signed-in user's sessions.
58632
59625
  <dd>
58633
59626
 
58634
59627
  ```ruby
58635
- client.account.sessions_revoke(id: "id")
59628
+ client.account.referral_convert(points: 1000000)
58636
59629
  ```
58637
59630
  </dd>
58638
59631
  </dl>
@@ -58647,7 +59640,7 @@ client.account.sessions_revoke(id: "id")
58647
59640
  <dl>
58648
59641
  <dd>
58649
59642
 
58650
- **id:** `String`
59643
+ **points:** `Integer`
58651
59644
 
58652
59645
  </dd>
58653
59646
  </dl>
@@ -58667,7 +59660,7 @@ client.account.sessions_revoke(id: "id")
58667
59660
  </dl>
58668
59661
  </details>
58669
59662
 
58670
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke_others</a>(request) -> Nordlet::Account::Types::SessionsRevokeOthersAccountResponse</code></summary>
59663
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_get</a>(request) -> Nordlet::Account::Types::TableSettingsGetAccountResponse</code></summary>
58671
59664
  <dl>
58672
59665
  <dd>
58673
59666
 
@@ -58679,7 +59672,7 @@ client.account.sessions_revoke(id: "id")
58679
59672
  <dl>
58680
59673
  <dd>
58681
59674
 
58682
- Delete every session of the signed-in user except the one the call was made with, and return how many were deleted.
59675
+ Return the signed-in user's saved column list and page size for the table `tableKey`; both are null when nothing is saved.
58683
59676
  </dd>
58684
59677
  </dl>
58685
59678
  </dd>
@@ -58694,7 +59687,7 @@ Delete every session of the signed-in user except the one the call was made with
58694
59687
  <dd>
58695
59688
 
58696
59689
  ```ruby
58697
- client.account.sessions_revoke_others
59690
+ client.account.table_settings_get(table_key: "tableKey")
58698
59691
  ```
58699
59692
  </dd>
58700
59693
  </dl>
@@ -58709,6 +59702,14 @@ client.account.sessions_revoke_others
58709
59702
  <dl>
58710
59703
  <dd>
58711
59704
 
59705
+ **table_key:** `String`
59706
+
59707
+ </dd>
59708
+ </dl>
59709
+
59710
+ <dl>
59711
+ <dd>
59712
+
58712
59713
  **request_options:** `Nordlet::Account::RequestOptions`
58713
59714
 
58714
59715
  </dd>
@@ -58721,7 +59722,7 @@ client.account.sessions_revoke_others
58721
59722
  </dl>
58722
59723
  </details>
58723
59724
 
58724
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">export</a>(request) -> Nordlet::Account::Types::ExportAccountResponse</code></summary>
59725
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_set</a>(request) -> Nordlet::Account::Types::TableSettingsSetAccountResponse</code></summary>
58725
59726
  <dl>
58726
59727
  <dd>
58727
59728
 
@@ -58733,7 +59734,7 @@ client.account.sessions_revoke_others
58733
59734
  <dl>
58734
59735
  <dd>
58735
59736
 
58736
- Return the user's profile, consent state, memberships, unexpired sessions, billing account, credit transactions and the audit entries they made in their companies (the most recent 5000 of each of the last two).
59737
+ Save the signed-in user's column list and page size for the table `tableKey`; only the fields sent are changed, and null clears one.
58737
59738
  </dd>
58738
59739
  </dl>
58739
59740
  </dd>
@@ -58748,7 +59749,7 @@ Return the user's profile, consent state, memberships, unexpired sessions, billi
58748
59749
  <dd>
58749
59750
 
58750
59751
  ```ruby
58751
- client.account.export
59752
+ client.account.table_settings_set(table_key: "tableKey")
58752
59753
  ```
58753
59754
  </dd>
58754
59755
  </dl>
@@ -58763,6 +59764,30 @@ client.account.export
58763
59764
  <dl>
58764
59765
  <dd>
58765
59766
 
59767
+ **table_key:** `String`
59768
+
59769
+ </dd>
59770
+ </dl>
59771
+
59772
+ <dl>
59773
+ <dd>
59774
+
59775
+ **columns:** `Internal::Types::Array[String]`
59776
+
59777
+ </dd>
59778
+ </dl>
59779
+
59780
+ <dl>
59781
+ <dd>
59782
+
59783
+ **page_size:** `Integer`
59784
+
59785
+ </dd>
59786
+ </dl>
59787
+
59788
+ <dl>
59789
+ <dd>
59790
+
58766
59791
  **request_options:** `Nordlet::Account::RequestOptions`
58767
59792
 
58768
59793
  </dd>
@@ -58775,7 +59800,7 @@ client.account.export
58775
59800
  </dl>
58776
59801
  </details>
58777
59802
 
58778
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">delete</a>(request) -> Nordlet::Account::Types::DeleteAccountResponse</code></summary>
59803
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_list</a>(request) -> Nordlet::Account::Types::TableSettingsListAccountResponse</code></summary>
58779
59804
  <dl>
58780
59805
  <dd>
58781
59806
 
@@ -58787,7 +59812,7 @@ client.account.export
58787
59812
  <dl>
58788
59813
  <dd>
58789
59814
 
58790
- Removes the user: sessions, sign-in links, memberships and pending invitations are deleted at once; the email and name are replaced by an anonymous placeholder immediately and the remaining row is removed after 30 days. Refused while the user still owns or pays for a company that is not deleted.
59815
+ List the signed-in user's saved table settings.
58791
59816
  </dd>
58792
59817
  </dl>
58793
59818
  </dd>
@@ -58802,7 +59827,7 @@ Removes the user: sessions, sign-in links, memberships and pending invitations a
58802
59827
  <dd>
58803
59828
 
58804
59829
  ```ruby
58805
- client.account.delete(confirm_email: "confirmEmail")
59830
+ client.account.table_settings_list
58806
59831
  ```
58807
59832
  </dd>
58808
59833
  </dl>
@@ -58817,14 +59842,6 @@ client.account.delete(confirm_email: "confirmEmail")
58817
59842
  <dl>
58818
59843
  <dd>
58819
59844
 
58820
- **confirm_email:** `String`
58821
-
58822
- </dd>
58823
- </dl>
58824
-
58825
- <dl>
58826
- <dd>
58827
-
58828
59845
  **request_options:** `Nordlet::Account::RequestOptions`
58829
59846
 
58830
59847
  </dd>
@@ -58837,7 +59854,7 @@ client.account.delete(confirm_email: "confirmEmail")
58837
59854
  </dl>
58838
59855
  </details>
58839
59856
 
58840
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_get</a>(request) -> Nordlet::Account::Types::ReferralGetAccountResponse</code></summary>
59857
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_describe</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse</code></summary>
58841
59858
  <dl>
58842
59859
  <dd>
58843
59860
 
@@ -58849,7 +59866,7 @@ client.account.delete(confirm_email: "confirmEmail")
58849
59866
  <dl>
58850
59867
  <dd>
58851
59868
 
58852
- Return the user's referral code (allocated on first call) and sign-up link, their points balance, the number of accounts they referred and the last 50 points entries. `rates.perEur` is the points the referrer earns per euro a referred user tops up, `rates.pointCents` the credit one point converts to with `account/referral/convert`.
59869
+ Check an OAuth authorization request of an app that wants to connect to Nordlet (such as Claude) and return the name the app registered, the address the signed-in person is sent back to and the scopes asked for. Refused with 422 when the request is invalid: unknown app, redirect address not registered for it, no PKCE (S256), unknown scope or a resource other than the MCP server.
58853
59870
  </dd>
58854
59871
  </dl>
58855
59872
  </dd>
@@ -58864,7 +59881,7 @@ Return the user's referral code (allocated on first call) and sign-up link, thei
58864
59881
  <dd>
58865
59882
 
58866
59883
  ```ruby
58867
- client.account.referral_get
59884
+ client.account.oauth_authorize_describe(client_id: "clientId")
58868
59885
  ```
58869
59886
  </dd>
58870
59887
  </dl>
@@ -58879,61 +59896,63 @@ client.account.referral_get
58879
59896
  <dl>
58880
59897
  <dd>
58881
59898
 
58882
- **request_options:** `Nordlet::Account::RequestOptions`
59899
+ **client_id:** `String`
58883
59900
 
58884
59901
  </dd>
58885
59902
  </dl>
58886
- </dd>
58887
- </dl>
58888
59903
 
59904
+ <dl>
59905
+ <dd>
58889
59906
 
59907
+ **redirect_uri:** `String`
59908
+
58890
59909
  </dd>
58891
59910
  </dl>
58892
- </details>
58893
59911
 
58894
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_convert</a>(request) -> Nordlet::Account::Types::ReferralConvertAccountResponse</code></summary>
58895
59912
  <dl>
58896
59913
  <dd>
58897
59914
 
58898
- #### 📝 Description
58899
-
58900
- <dl>
58901
- <dd>
59915
+ **response_type:** `String`
59916
+
59917
+ </dd>
59918
+ </dl>
58902
59919
 
58903
59920
  <dl>
58904
59921
  <dd>
58905
59922
 
58906
- Convert `points` of the user's referral points into credit on their billing account at `rates.pointCents` per point, booked as an `adjustment` credit transaction; a billing account past its trial is set to active when the new balance allows. Refused with 422 when the user has fewer points than requested.
58907
- </dd>
58908
- </dl>
59923
+ **code_challenge:** `String`
59924
+
58909
59925
  </dd>
58910
59926
  </dl>
58911
59927
 
58912
- #### 🔌 Usage
58913
-
58914
59928
  <dl>
58915
59929
  <dd>
58916
59930
 
59931
+ **code_challenge_method:** `String`
59932
+
59933
+ </dd>
59934
+ </dl>
59935
+
58917
59936
  <dl>
58918
59937
  <dd>
58919
59938
 
58920
- ```ruby
58921
- client.account.referral_convert(points: 1000000)
58922
- ```
58923
- </dd>
58924
- </dl>
59939
+ **state:** `String`
59940
+
58925
59941
  </dd>
58926
59942
  </dl>
58927
59943
 
58928
- #### ⚙️ Parameters
58929
-
58930
59944
  <dl>
58931
59945
  <dd>
58932
59946
 
59947
+ **scope:** `String`
59948
+
59949
+ </dd>
59950
+ </dl>
59951
+
58933
59952
  <dl>
58934
59953
  <dd>
58935
59954
 
58936
- **points:** `Integer`
59955
+ **resource:** `String`
58937
59956
 
58938
59957
  </dd>
58939
59958
  </dl>
@@ -58953,7 +59972,7 @@ client.account.referral_convert(points: 1000000)
58953
59972
  </dl>
58954
59973
  </details>
58955
59974
 
58956
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_get</a>(request) -> Nordlet::Account::Types::TableSettingsGetAccountResponse</code></summary>
59975
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_approve</a>(request) -> Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse</code></summary>
58957
59976
  <dl>
58958
59977
  <dd>
58959
59978
 
@@ -58965,7 +59984,7 @@ client.account.referral_convert(points: 1000000)
58965
59984
  <dl>
58966
59985
  <dd>
58967
59986
 
58968
- Return the signed-in user's saved column list and page size for the table `tableKey`; both are null when nothing is saved.
59987
+ Allow the app of an OAuth authorization request to act for the signed-in person and return the app's redirect address with a one-time authorization code (valid for 5 minutes). The app exchanges the code at `/oauth/token` for an access token that works like an API key of the person: in every company they are a member of, with the rights of their role there. The connection is listed among the person's API keys under the app's name and is revoked there. Refused with 422 like `account/oauth/authorize/describe`.
58969
59988
  </dd>
58970
59989
  </dl>
58971
59990
  </dd>
@@ -58980,7 +59999,7 @@ Return the signed-in user's saved column list and page size for the table `table
58980
59999
  <dd>
58981
60000
 
58982
60001
  ```ruby
58983
- client.account.table_settings_get(table_key: "tableKey")
60002
+ client.account.oauth_authorize_approve(client_id: "clientId")
58984
60003
  ```
58985
60004
  </dd>
58986
60005
  </dl>
@@ -58995,7 +60014,63 @@ client.account.table_settings_get(table_key: "tableKey")
58995
60014
  <dl>
58996
60015
  <dd>
58997
60016
 
58998
- **table_key:** `String`
60017
+ **client_id:** `String`
60018
+
60019
+ </dd>
60020
+ </dl>
60021
+
60022
+ <dl>
60023
+ <dd>
60024
+
60025
+ **redirect_uri:** `String`
60026
+
60027
+ </dd>
60028
+ </dl>
60029
+
60030
+ <dl>
60031
+ <dd>
60032
+
60033
+ **response_type:** `String`
60034
+
60035
+ </dd>
60036
+ </dl>
60037
+
60038
+ <dl>
60039
+ <dd>
60040
+
60041
+ **code_challenge:** `String`
60042
+
60043
+ </dd>
60044
+ </dl>
60045
+
60046
+ <dl>
60047
+ <dd>
60048
+
60049
+ **code_challenge_method:** `String`
60050
+
60051
+ </dd>
60052
+ </dl>
60053
+
60054
+ <dl>
60055
+ <dd>
60056
+
60057
+ **state:** `String`
60058
+
60059
+ </dd>
60060
+ </dl>
60061
+
60062
+ <dl>
60063
+ <dd>
60064
+
60065
+ **scope:** `String`
60066
+
60067
+ </dd>
60068
+ </dl>
60069
+
60070
+ <dl>
60071
+ <dd>
60072
+
60073
+ **resource:** `String`
58999
60074
 
59000
60075
  </dd>
59001
60076
  </dl>
@@ -59015,7 +60090,7 @@ client.account.table_settings_get(table_key: "tableKey")
59015
60090
  </dl>
59016
60091
  </details>
59017
60092
 
59018
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_set</a>(request) -> Nordlet::Account::Types::TableSettingsSetAccountResponse</code></summary>
60093
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_deny</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse</code></summary>
59019
60094
  <dl>
59020
60095
  <dd>
59021
60096
 
@@ -59027,7 +60102,7 @@ client.account.table_settings_get(table_key: "tableKey")
59027
60102
  <dl>
59028
60103
  <dd>
59029
60104
 
59030
- Save the signed-in user's column list and page size for the table `tableKey`; only the fields sent are changed, and null clears one.
60105
+ Refuse an OAuth authorization request and return the app's redirect address with the error `access_denied`. Refused with 422 like `account/oauth/authorize/describe`.
59031
60106
  </dd>
59032
60107
  </dl>
59033
60108
  </dd>
@@ -59042,7 +60117,7 @@ Save the signed-in user's column list and page size for the table `tableKey`; on
59042
60117
  <dd>
59043
60118
 
59044
60119
  ```ruby
59045
- client.account.table_settings_set(table_key: "tableKey")
60120
+ client.account.oauth_authorize_deny(client_id: "clientId")
59046
60121
  ```
59047
60122
  </dd>
59048
60123
  </dl>
@@ -59057,7 +60132,7 @@ client.account.table_settings_set(table_key: "tableKey")
59057
60132
  <dl>
59058
60133
  <dd>
59059
60134
 
59060
- **table_key:** `String`
60135
+ **client_id:** `String`
59061
60136
 
59062
60137
  </dd>
59063
60138
  </dl>
@@ -59065,7 +60140,7 @@ client.account.table_settings_set(table_key: "tableKey")
59065
60140
  <dl>
59066
60141
  <dd>
59067
60142
 
59068
- **columns:** `Internal::Types::Array[String]`
60143
+ **redirect_uri:** `String`
59069
60144
 
59070
60145
  </dd>
59071
60146
  </dl>
@@ -59073,7 +60148,7 @@ client.account.table_settings_set(table_key: "tableKey")
59073
60148
  <dl>
59074
60149
  <dd>
59075
60150
 
59076
- **page_size:** `Integer`
60151
+ **response_type:** `String`
59077
60152
 
59078
60153
  </dd>
59079
60154
  </dl>
@@ -59081,57 +60156,43 @@ client.account.table_settings_set(table_key: "tableKey")
59081
60156
  <dl>
59082
60157
  <dd>
59083
60158
 
59084
- **request_options:** `Nordlet::Account::RequestOptions`
60159
+ **code_challenge:** `String`
59085
60160
 
59086
60161
  </dd>
59087
60162
  </dl>
59088
- </dd>
59089
- </dl>
59090
60163
 
60164
+ <dl>
60165
+ <dd>
59091
60166
 
60167
+ **code_challenge_method:** `String`
60168
+
59092
60169
  </dd>
59093
60170
  </dl>
59094
- </details>
59095
60171
 
59096
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_list</a>(request) -> Nordlet::Account::Types::TableSettingsListAccountResponse</code></summary>
59097
60172
  <dl>
59098
60173
  <dd>
59099
60174
 
59100
- #### 📝 Description
59101
-
59102
- <dl>
59103
- <dd>
60175
+ **state:** `String`
60176
+
60177
+ </dd>
60178
+ </dl>
59104
60179
 
59105
60180
  <dl>
59106
60181
  <dd>
59107
60182
 
59108
- List the signed-in user's saved table settings.
59109
- </dd>
59110
- </dl>
60183
+ **scope:** `String`
60184
+
59111
60185
  </dd>
59112
60186
  </dl>
59113
60187
 
59114
- #### 🔌 Usage
59115
-
59116
- <dl>
59117
- <dd>
59118
-
59119
60188
  <dl>
59120
60189
  <dd>
59121
60190
 
59122
- ```ruby
59123
- client.account.table_settings_list
59124
- ```
59125
- </dd>
59126
- </dl>
60191
+ **resource:** `String`
60192
+
59127
60193
  </dd>
59128
60194
  </dl>
59129
60195
 
59130
- #### ⚙️ Parameters
59131
-
59132
- <dl>
59133
- <dd>
59134
-
59135
60196
  <dl>
59136
60197
  <dd>
59137
60198