nordlet 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +252 -19
  3. data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +2 -0
  4. data/lib/nordlet/account/types/export_account_response.rb +8 -0
  5. data/lib/nordlet/account/types/export_account_response_api_keys_item.rb +25 -0
  6. data/lib/nordlet/account/types/export_account_response_auth_events_item.rb +17 -0
  7. data/lib/nordlet/account/types/export_account_response_oauth_grants_item.rb +17 -0
  8. data/lib/nordlet/account/types/export_account_response_referral_points_item.rb +15 -0
  9. data/lib/nordlet/account/types/invites_accept_account_response.rb +2 -0
  10. data/lib/nordlet/account/types/login_link_consume_account_response.rb +2 -0
  11. data/lib/nordlet/account/types/two_factor_disable_account_request.rb +11 -0
  12. data/lib/nordlet/account/types/two_factor_disable_account_response.rb +11 -0
  13. data/lib/nordlet/account/types/two_factor_enable_account_request.rb +11 -0
  14. data/lib/nordlet/account/types/two_factor_enable_account_response.rb +11 -0
  15. data/lib/nordlet/account/types/two_factor_get_account_request.rb +9 -0
  16. data/lib/nordlet/account/types/two_factor_get_account_response.rb +17 -0
  17. data/lib/nordlet/account/types/two_factor_get_account_response_setup.rb +13 -0
  18. data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_request.rb +11 -0
  19. data/lib/nordlet/account/types/two_factor_recovery_codes_regenerate_account_response.rb +11 -0
  20. data/lib/nordlet/account/types/two_factor_setup_account_request.rb +9 -0
  21. data/lib/nordlet/account/types/two_factor_setup_account_response.rb +13 -0
  22. data/lib/nordlet/account/types/two_factor_verify_account_request.rb +11 -0
  23. data/lib/nordlet/account/types/two_factor_verify_account_response.rb +11 -0
  24. data/lib/nordlet/bank/client.rb +19 -16
  25. data/lib/nordlet/billing/client.rb +3 -1
  26. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +2 -0
  27. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +2 -0
  28. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +2 -0
  29. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +2 -0
  30. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +2 -0
  31. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +2 -0
  32. data/lib/nordlet/calendar/types/submit_calendar_response.rb +2 -0
  33. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +2 -0
  34. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +2 -0
  35. data/lib/nordlet/capture/types/documents_confirm_capture_request_lines_item.rb +4 -0
  36. data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +4 -0
  37. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_lines_item.rb +8 -0
  38. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +8 -0
  39. data/lib/nordlet/cash/client.rb +7 -6
  40. data/lib/nordlet/catalog/client.rb +145 -2
  41. data/lib/nordlet/catalog/types/items_create_catalog_response.rb +2 -0
  42. data/lib/nordlet/catalog/types/items_create_catalog_response_alternative_units_item.rb +21 -0
  43. data/lib/nordlet/catalog/types/items_get_catalog_response.rb +2 -0
  44. data/lib/nordlet/catalog/types/items_get_catalog_response_alternative_units_item.rb +21 -0
  45. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item.rb +2 -0
  46. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item_alternative_units_item.rb +21 -0
  47. data/lib/nordlet/catalog/types/items_units_create_catalog_request.rb +21 -0
  48. data/lib/nordlet/catalog/types/items_units_create_catalog_response.rb +27 -0
  49. data/lib/nordlet/catalog/types/items_units_delete_catalog_request.rb +11 -0
  50. data/lib/nordlet/catalog/types/items_units_delete_catalog_response.rb +11 -0
  51. data/lib/nordlet/catalog/types/items_units_list_catalog_request.rb +11 -0
  52. data/lib/nordlet/catalog/types/items_units_list_catalog_response.rb +11 -0
  53. data/lib/nordlet/catalog/types/items_units_list_catalog_response_rows_item.rb +27 -0
  54. data/lib/nordlet/catalog/types/items_units_update_catalog_request.rb +19 -0
  55. data/lib/nordlet/catalog/types/items_units_update_catalog_response.rb +27 -0
  56. data/lib/nordlet/catalog/types/items_update_catalog_response.rb +2 -0
  57. data/lib/nordlet/catalog/types/items_update_catalog_response_alternative_units_item.rb +21 -0
  58. data/lib/nordlet/catalog/types/units_create_catalog_request.rb +2 -0
  59. data/lib/nordlet/catalog/types/units_create_catalog_response.rb +2 -0
  60. data/lib/nordlet/catalog/types/units_list_catalog_response_rows_item.rb +2 -0
  61. data/lib/nordlet/catalog/types/units_update_catalog_request.rb +2 -0
  62. data/lib/nordlet/catalog/types/units_update_catalog_response.rb +2 -0
  63. data/lib/nordlet/declarations/client.rb +46 -5
  64. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item_kind.rb +1 -0
  65. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item_kind.rb +1 -0
  66. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request.rb +2 -0
  67. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item.rb +25 -0
  68. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item_lines_item.rb +13 -0
  69. data/lib/nordlet/declarations/types/submissions_confirm_declarations_request.rb +11 -0
  70. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +71 -0
  71. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_environment.rb +14 -0
  72. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_status.rb +16 -0
  73. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +2 -0
  74. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +2 -0
  75. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +2 -0
  76. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +2 -0
  77. data/lib/nordlet/ecommerce/client.rb +12 -9
  78. data/lib/nordlet/fleet/client.rb +8 -4
  79. data/lib/nordlet/fleet/types/vehicles_create_fleet_request.rb +2 -0
  80. data/lib/nordlet/fleet/types/vehicles_create_fleet_response.rb +2 -0
  81. data/lib/nordlet/fleet/types/vehicles_get_fleet_response.rb +2 -0
  82. data/lib/nordlet/fleet/types/vehicles_list_fleet_response_rows_item.rb +2 -0
  83. data/lib/nordlet/fleet/types/vehicles_update_fleet_request.rb +2 -0
  84. data/lib/nordlet/fleet/types/vehicles_update_fleet_response.rb +2 -0
  85. data/lib/nordlet/inventory/client.rb +28 -23
  86. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +2 -0
  87. data/lib/nordlet/payroll/client.rb +16 -12
  88. data/lib/nordlet/peppol/client.rb +4 -1
  89. data/lib/nordlet/pos/client.rb +126 -9
  90. data/lib/nordlet/pos/types/refunds_create_pos_request.rb +17 -0
  91. data/lib/nordlet/pos/types/refunds_create_pos_request_lines_item.rb +13 -0
  92. data/lib/nordlet/pos/types/refunds_create_pos_response.rb +33 -0
  93. data/lib/nordlet/pos/types/refunds_create_pos_response_lines_item.rb +23 -0
  94. data/lib/nordlet/pos/types/refunds_get_pos_request.rb +11 -0
  95. data/lib/nordlet/pos/types/refunds_get_pos_response.rb +33 -0
  96. data/lib/nordlet/pos/types/refunds_get_pos_response_lines_item.rb +23 -0
  97. data/lib/nordlet/pos/types/refunds_list_pos_request.rb +19 -0
  98. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item.rb +15 -0
  99. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_op.rb +18 -0
  100. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value.rb +19 -0
  101. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value_three_item.rb +15 -0
  102. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item.rb +13 -0
  103. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item_dir.rb +14 -0
  104. data/lib/nordlet/pos/types/refunds_list_pos_response.rb +21 -0
  105. data/lib/nordlet/pos/types/refunds_list_pos_response_rows_item.rb +31 -0
  106. data/lib/nordlet/production/client.rb +20 -14
  107. data/lib/nordlet/production/types/maintenance_cancel_production_response.rb +2 -0
  108. data/lib/nordlet/production/types/maintenance_complete_production_request.rb +2 -0
  109. data/lib/nordlet/production/types/maintenance_complete_production_response.rb +2 -0
  110. data/lib/nordlet/production/types/maintenance_create_production_request.rb +2 -0
  111. data/lib/nordlet/production/types/maintenance_create_production_response.rb +2 -0
  112. data/lib/nordlet/production/types/maintenance_list_production_response_rows_item.rb +2 -0
  113. data/lib/nordlet/public/client.rb +6 -5
  114. data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
  115. data/lib/nordlet/purchases/client.rb +12 -9
  116. data/lib/nordlet/purchases/types/invoices_create_purchases_request_lines_item.rb +4 -0
  117. data/lib/nordlet/purchases/types/invoices_create_purchases_response_lines_item.rb +8 -0
  118. data/lib/nordlet/purchases/types/invoices_get_purchases_response_lines_item.rb +8 -0
  119. data/lib/nordlet/purchases/types/invoices_register_purchases_response_lines_item.rb +8 -0
  120. data/lib/nordlet/purchases/types/invoices_update_purchases_request_lines_item.rb +4 -0
  121. data/lib/nordlet/purchases/types/invoices_update_purchases_response_lines_item.rb +8 -0
  122. data/lib/nordlet/purchases/types/orders_approve_purchases_response_lines_item.rb +4 -0
  123. data/lib/nordlet/purchases/types/orders_cancel_purchases_response_lines_item.rb +4 -0
  124. data/lib/nordlet/purchases/types/orders_close_purchases_response_lines_item.rb +4 -0
  125. data/lib/nordlet/purchases/types/orders_create_purchases_request_lines_item.rb +4 -0
  126. data/lib/nordlet/purchases/types/orders_create_purchases_response_lines_item.rb +4 -0
  127. data/lib/nordlet/purchases/types/orders_get_purchases_response_lines_item.rb +4 -0
  128. data/lib/nordlet/purchases/types/orders_reject_purchases_response_lines_item.rb +4 -0
  129. data/lib/nordlet/purchases/types/orders_submit_purchases_response_lines_item.rb +4 -0
  130. data/lib/nordlet/purchases/types/orders_update_purchases_request_lines_item.rb +4 -0
  131. data/lib/nordlet/purchases/types/orders_update_purchases_response_lines_item.rb +4 -0
  132. data/lib/nordlet/reports/client.rb +3 -3
  133. data/lib/nordlet/sales/client.rb +26 -19
  134. data/lib/nordlet/sales/types/acts_create_sales_response_lines_item.rb +4 -0
  135. data/lib/nordlet/sales/types/acts_get_sales_response_lines_item.rb +4 -0
  136. data/lib/nordlet/sales/types/acts_issue_sales_response_lines_item.rb +4 -0
  137. data/lib/nordlet/sales/types/acts_update_sales_response_lines_item.rb +4 -0
  138. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +4 -0
  139. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +4 -0
  140. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +4 -0
  141. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +4 -0
  142. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +2 -0
  143. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +4 -0
  144. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +4 -0
  145. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +4 -0
  146. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
  147. data/lib/nordlet/transport/types/waybills_create_transport_response_lines_item.rb +4 -0
  148. data/lib/nordlet/transport/types/waybills_get_transport_response_lines_item.rb +4 -0
  149. data/lib/nordlet/transport/types/waybills_issue_transport_response_lines_item.rb +4 -0
  150. data/lib/nordlet/transport/types/waybills_update_transport_response_lines_item.rb +4 -0
  151. data/lib/nordlet/version.rb +1 -1
  152. data/lib/nordlet/webhooks/client.rb +41 -2
  153. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_request.rb +13 -0
  154. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response.rb +31 -0
  155. data/lib/nordlet/webhooks/types/subscriptions_rotate_secret_webhooks_response_last_delivery_status.rb +15 -0
  156. data/lib/nordlet.rb +55 -0
  157. data/reference.md +1380 -263
  158. metadata +57 -2
data/reference.md CHANGED
@@ -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>
@@ -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>
@@ -19635,7 +19975,7 @@ client.peppol.participants_lookup
19635
19975
  <dl>
19636
19976
  <dd>
19637
19977
 
19638
- Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. Answers 404 when no company uses that provider account, 401 when the signature does not match.
19978
+ Apply one event: a delivery status event updates the Peppol status of the sale invoice with that message id and, when the status changes, emits `sale_invoice.peppol_delivered`, `sale_invoice.peppol_rejected` or `sale_invoice.peppol_failed`; a received-document event fetches the document from the access point, stores it as a document capture with the matched supplier, emits `document_capture.peppol_received` and marks it read at the access point (a document already stored is skipped). `handled` is false when the event matched no invoice or document. A status is not moved back: pending, failed, delivered and rejected come in that order, and an event with an earlier status than the stored one changes nothing. Answers 401, with the same body, when no company uses that provider account, when the signature does not match and, for e-invoice.be, when the `created_at` of the event is more than 5 minutes from the server time.
19639
19979
  </dd>
19640
19980
  </dl>
19641
19981
  </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>
@@ -45772,7 +46214,256 @@ client.pos.receipts_create(
45772
46214
  <dl>
45773
46215
  <dd>
45774
46216
 
45775
- **lines:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsCreatePosRequestLinesItem]`
46217
+ **lines:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsCreatePosRequestLinesItem]`
46218
+
46219
+ </dd>
46220
+ </dl>
46221
+
46222
+ <dl>
46223
+ <dd>
46224
+
46225
+ **cash_amount:** `String`
46226
+
46227
+ </dd>
46228
+ </dl>
46229
+
46230
+ <dl>
46231
+ <dd>
46232
+
46233
+ **card_amount:** `String`
46234
+
46235
+ </dd>
46236
+ </dl>
46237
+
46238
+ <dl>
46239
+ <dd>
46240
+
46241
+ **request_options:** `Nordlet::Pos::RequestOptions`
46242
+
46243
+ </dd>
46244
+ </dl>
46245
+ </dd>
46246
+ </dl>
46247
+
46248
+
46249
+ </dd>
46250
+ </dl>
46251
+ </details>
46252
+
46253
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">receipts_list</a>(request) -> Nordlet::Pos::Types::ReceiptsListPosResponse</code></summary>
46254
+ <dl>
46255
+ <dd>
46256
+
46257
+ #### 📝 Description
46258
+
46259
+ <dl>
46260
+ <dd>
46261
+
46262
+ <dl>
46263
+ <dd>
46264
+
46265
+ List receipts without their lines. Filterable by `shiftId`; sortable by `number` and `createdAt`.
46266
+ </dd>
46267
+ </dl>
46268
+ </dd>
46269
+ </dl>
46270
+
46271
+ #### 🔌 Usage
46272
+
46273
+ <dl>
46274
+ <dd>
46275
+
46276
+ <dl>
46277
+ <dd>
46278
+
46279
+ ```ruby
46280
+ client.pos.receipts_list
46281
+ ```
46282
+ </dd>
46283
+ </dl>
46284
+ </dd>
46285
+ </dl>
46286
+
46287
+ #### ⚙️ Parameters
46288
+
46289
+ <dl>
46290
+ <dd>
46291
+
46292
+ <dl>
46293
+ <dd>
46294
+
46295
+ **page:** `Integer`
46296
+
46297
+ </dd>
46298
+ </dl>
46299
+
46300
+ <dl>
46301
+ <dd>
46302
+
46303
+ **page_size:** `Integer`
46304
+
46305
+ </dd>
46306
+ </dl>
46307
+
46308
+ <dl>
46309
+ <dd>
46310
+
46311
+ **sort:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsListPosRequestSortItem]`
46312
+
46313
+ </dd>
46314
+ </dl>
46315
+
46316
+ <dl>
46317
+ <dd>
46318
+
46319
+ **filter:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsListPosRequestFilterItem]`
46320
+
46321
+ </dd>
46322
+ </dl>
46323
+
46324
+ <dl>
46325
+ <dd>
46326
+
46327
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
46328
+
46329
+ </dd>
46330
+ </dl>
46331
+
46332
+ <dl>
46333
+ <dd>
46334
+
46335
+ **request_options:** `Nordlet::Pos::RequestOptions`
46336
+
46337
+ </dd>
46338
+ </dl>
46339
+ </dd>
46340
+ </dl>
46341
+
46342
+
46343
+ </dd>
46344
+ </dl>
46345
+ </details>
46346
+
46347
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">receipts_get</a>(request) -> Nordlet::Pos::Types::ReceiptsGetPosResponse</code></summary>
46348
+ <dl>
46349
+ <dd>
46350
+
46351
+ #### 📝 Description
46352
+
46353
+ <dl>
46354
+ <dd>
46355
+
46356
+ <dl>
46357
+ <dd>
46358
+
46359
+ Read one receipt with its lines.
46360
+ </dd>
46361
+ </dl>
46362
+ </dd>
46363
+ </dl>
46364
+
46365
+ #### 🔌 Usage
46366
+
46367
+ <dl>
46368
+ <dd>
46369
+
46370
+ <dl>
46371
+ <dd>
46372
+
46373
+ ```ruby
46374
+ client.pos.receipts_get(id: "id")
46375
+ ```
46376
+ </dd>
46377
+ </dl>
46378
+ </dd>
46379
+ </dl>
46380
+
46381
+ #### ⚙️ Parameters
46382
+
46383
+ <dl>
46384
+ <dd>
46385
+
46386
+ <dl>
46387
+ <dd>
46388
+
46389
+ **id:** `String`
46390
+
46391
+ </dd>
46392
+ </dl>
46393
+
46394
+ <dl>
46395
+ <dd>
46396
+
46397
+ **request_options:** `Nordlet::Pos::RequestOptions`
46398
+
46399
+ </dd>
46400
+ </dl>
46401
+ </dd>
46402
+ </dl>
46403
+
46404
+
46405
+ </dd>
46406
+ </dl>
46407
+ </details>
46408
+
46409
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_create</a>(request) -> Nordlet::Pos::Types::RefundsCreatePosResponse</code></summary>
46410
+ <dl>
46411
+ <dd>
46412
+
46413
+ #### 📝 Description
46414
+
46415
+ <dl>
46416
+ <dd>
46417
+
46418
+ <dl>
46419
+ <dd>
46420
+
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.
46422
+ </dd>
46423
+ </dl>
46424
+ </dd>
46425
+ </dl>
46426
+
46427
+ #### 🔌 Usage
46428
+
46429
+ <dl>
46430
+ <dd>
46431
+
46432
+ <dl>
46433
+ <dd>
46434
+
46435
+ ```ruby
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
+ }]
46443
+ )
46444
+ ```
46445
+ </dd>
46446
+ </dl>
46447
+ </dd>
46448
+ </dl>
46449
+
46450
+ #### ⚙️ Parameters
46451
+
46452
+ <dl>
46453
+ <dd>
46454
+
46455
+ <dl>
46456
+ <dd>
46457
+
46458
+ **shift_id:** `String`
46459
+
46460
+ </dd>
46461
+ </dl>
46462
+
46463
+ <dl>
46464
+ <dd>
46465
+
46466
+ **receipt_id:** `String`
45776
46467
 
45777
46468
  </dd>
45778
46469
  </dl>
@@ -45780,7 +46471,7 @@ client.pos.receipts_create(
45780
46471
  <dl>
45781
46472
  <dd>
45782
46473
 
45783
- **cash_amount:** `String`
46474
+ **date:** `String`
45784
46475
 
45785
46476
  </dd>
45786
46477
  </dl>
@@ -45788,7 +46479,7 @@ client.pos.receipts_create(
45788
46479
  <dl>
45789
46480
  <dd>
45790
46481
 
45791
- **card_amount:** `String`
46482
+ **lines:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsCreatePosRequestLinesItem]`
45792
46483
 
45793
46484
  </dd>
45794
46485
  </dl>
@@ -45808,7 +46499,7 @@ client.pos.receipts_create(
45808
46499
  </dl>
45809
46500
  </details>
45810
46501
 
45811
- <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">receipts_list</a>(request) -> Nordlet::Pos::Types::ReceiptsListPosResponse</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>
45812
46503
  <dl>
45813
46504
  <dd>
45814
46505
 
@@ -45820,7 +46511,7 @@ client.pos.receipts_create(
45820
46511
  <dl>
45821
46512
  <dd>
45822
46513
 
45823
- List receipts without their lines. Filterable by `shiftId`; sortable by `number` and `createdAt`.
46514
+ Read one POS refund with its lines.
45824
46515
  </dd>
45825
46516
  </dl>
45826
46517
  </dd>
@@ -45835,7 +46526,7 @@ List receipts without their lines. Filterable by `shiftId`; sortable by `number`
45835
46526
  <dd>
45836
46527
 
45837
46528
  ```ruby
45838
- client.pos.receipts_list
46529
+ client.pos.refunds_get(id: "id")
45839
46530
  ```
45840
46531
  </dd>
45841
46532
  </dl>
@@ -45850,7 +46541,7 @@ client.pos.receipts_list
45850
46541
  <dl>
45851
46542
  <dd>
45852
46543
 
45853
- **page:** `Integer`
46544
+ **id:** `String`
45854
46545
 
45855
46546
  </dd>
45856
46547
  </dl>
@@ -45858,55 +46549,37 @@ client.pos.receipts_list
45858
46549
  <dl>
45859
46550
  <dd>
45860
46551
 
45861
- **page_size:** `Integer`
46552
+ **request_options:** `Nordlet::Pos::RequestOptions`
45862
46553
 
45863
46554
  </dd>
45864
46555
  </dl>
46556
+ </dd>
46557
+ </dl>
45865
46558
 
45866
- <dl>
45867
- <dd>
45868
46559
 
45869
- **sort:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsListPosRequestSortItem]`
45870
-
45871
46560
  </dd>
45872
46561
  </dl>
46562
+ </details>
45873
46563
 
46564
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_list</a>(request) -> Nordlet::Pos::Types::RefundsListPosResponse</code></summary>
45874
46565
  <dl>
45875
46566
  <dd>
45876
46567
 
45877
- **filter:** `Internal::Types::Array[Nordlet::Pos::Types::ReceiptsListPosRequestFilterItem]`
45878
-
45879
- </dd>
45880
- </dl>
46568
+ #### 📝 Description
45881
46569
 
45882
46570
  <dl>
45883
46571
  <dd>
45884
46572
 
45885
- **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
45886
-
45887
- </dd>
45888
- </dl>
45889
-
45890
46573
  <dl>
45891
46574
  <dd>
45892
46575
 
45893
- **request_options:** `Nordlet::Pos::RequestOptions`
45894
-
45895
- </dd>
45896
- </dl>
46576
+ List POS refunds without their lines. Filterable by `shiftId` and `receiptId`; sortable by `date` and `createdAt`.
45897
46577
  </dd>
45898
46578
  </dl>
45899
-
45900
-
45901
46579
  </dd>
45902
46580
  </dl>
45903
- </details>
45904
46581
 
45905
- <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">receipts_get</a>(request) -> Nordlet::Pos::Types::ReceiptsGetPosResponse</code></summary>
45906
- <dl>
45907
- <dd>
45908
-
45909
- #### 📝 Description
46582
+ #### 🔌 Usage
45910
46583
 
45911
46584
  <dl>
45912
46585
  <dd>
@@ -45914,13 +46587,15 @@ client.pos.receipts_list
45914
46587
  <dl>
45915
46588
  <dd>
45916
46589
 
45917
- Read one receipt with its lines.
46590
+ ```ruby
46591
+ client.pos.refunds_list
46592
+ ```
45918
46593
  </dd>
45919
46594
  </dl>
45920
46595
  </dd>
45921
46596
  </dl>
45922
46597
 
45923
- #### 🔌 Usage
46598
+ #### ⚙️ Parameters
45924
46599
 
45925
46600
  <dl>
45926
46601
  <dd>
@@ -45928,23 +46603,39 @@ Read one receipt with its lines.
45928
46603
  <dl>
45929
46604
  <dd>
45930
46605
 
45931
- ```ruby
45932
- client.pos.receipts_get(id: "id")
45933
- ```
46606
+ **page:** `Integer`
46607
+
45934
46608
  </dd>
45935
46609
  </dl>
46610
+
46611
+ <dl>
46612
+ <dd>
46613
+
46614
+ **page_size:** `Integer`
46615
+
45936
46616
  </dd>
45937
46617
  </dl>
45938
46618
 
45939
- #### ⚙️ Parameters
46619
+ <dl>
46620
+ <dd>
46621
+
46622
+ **sort:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestSortItem]`
46623
+
46624
+ </dd>
46625
+ </dl>
45940
46626
 
45941
46627
  <dl>
45942
46628
  <dd>
45943
46629
 
46630
+ **filter:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestFilterItem]`
46631
+
46632
+ </dd>
46633
+ </dl>
46634
+
45944
46635
  <dl>
45945
46636
  <dd>
45946
46637
 
45947
- **id:** `String`
46638
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
45948
46639
 
45949
46640
  </dd>
45950
46641
  </dl>
@@ -45976,7 +46667,7 @@ client.pos.receipts_get(id: "id")
45976
46667
  <dl>
45977
46668
  <dd>
45978
46669
 
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.
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.
45980
46671
  </dd>
45981
46672
  </dl>
45982
46673
  </dd>
@@ -46679,7 +47370,7 @@ client.audit.list
46679
47370
  <dl>
46680
47371
  <dd>
46681
47372
 
46682
- Register a webhook endpoint for the given event types (`*` for every event). The URL must be an https address that resolves to a public network (422 otherwise). The signing secret is generated unless `secret` is given, and this call is the only one that returns it.
47373
+ Register a webhook endpoint for the given event types (`*` for every event). The URL must be an https address that resolves to a public network (422 otherwise). The signing secret is generated unless `secret` is given (at least 32 characters), and this call is the only one that returns it. Answers 503 when the platform encryption key is not configured.
46683
47374
  </dd>
46684
47375
  </dl>
46685
47376
  </dd>
@@ -46838,6 +47529,76 @@ client.webhooks.subscriptions_list
46838
47529
  </dl>
46839
47530
 
46840
47531
 
47532
+ </dd>
47533
+ </dl>
47534
+ </details>
47535
+
47536
+ <details><summary><code>client.webhooks.<a href="/lib/nordlet/webhooks/client.rb">subscriptions_rotate_secret</a>(request) -> Nordlet::Webhooks::Types::SubscriptionsRotateSecretWebhooksResponse</code></summary>
47537
+ <dl>
47538
+ <dd>
47539
+
47540
+ #### 📝 Description
47541
+
47542
+ <dl>
47543
+ <dd>
47544
+
47545
+ <dl>
47546
+ <dd>
47547
+
47548
+ Replace the signing secret of a subscription and return the new one; this call is the only one that returns it. The secret is generated unless `secret` is given (at least 32 characters). For 24 hours `x-nordlet-signature-v2` carries two `v1=` values, one with the new secret and one with the previous one, so a receiver can switch secrets without refusing deliveries; `x-nordlet-signature` uses the new secret only. Answers 404 for an unknown subscription and 503 when the platform encryption key is not configured.
47549
+ </dd>
47550
+ </dl>
47551
+ </dd>
47552
+ </dl>
47553
+
47554
+ #### 🔌 Usage
47555
+
47556
+ <dl>
47557
+ <dd>
47558
+
47559
+ <dl>
47560
+ <dd>
47561
+
47562
+ ```ruby
47563
+ client.webhooks.subscriptions_rotate_secret(id: "id")
47564
+ ```
47565
+ </dd>
47566
+ </dl>
47567
+ </dd>
47568
+ </dl>
47569
+
47570
+ #### ⚙️ Parameters
47571
+
47572
+ <dl>
47573
+ <dd>
47574
+
47575
+ <dl>
47576
+ <dd>
47577
+
47578
+ **id:** `String`
47579
+
47580
+ </dd>
47581
+ </dl>
47582
+
47583
+ <dl>
47584
+ <dd>
47585
+
47586
+ **secret:** `String`
47587
+
47588
+ </dd>
47589
+ </dl>
47590
+
47591
+ <dl>
47592
+ <dd>
47593
+
47594
+ **request_options:** `Nordlet::Webhooks::RequestOptions`
47595
+
47596
+ </dd>
47597
+ </dl>
47598
+ </dd>
47599
+ </dl>
47600
+
47601
+
46841
47602
  </dd>
46842
47603
  </dl>
46843
47604
  </details>
@@ -47724,7 +48485,7 @@ client.bank.transactions_list
47724
48485
  <dl>
47725
48486
  <dd>
47726
48487
 
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`.
48488
+ 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
48489
  </dd>
47729
48490
  </dl>
47730
48491
  </dd>
@@ -50343,7 +51104,7 @@ client.bank.settlements_unlink(id: "id")
50343
51104
  <dl>
50344
51105
  <dd>
50345
51106
 
50346
- 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.
51107
+ 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.
50347
51108
  </dd>
50348
51109
  </dl>
50349
51110
  </dd>
@@ -53722,7 +54483,7 @@ client.reports.cost_center_activity(
53722
54483
  <dl>
53723
54484
  <dd>
53724
54485
 
53725
- 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.
54486
+ 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.
53726
54487
  </dd>
53727
54488
  </dl>
53728
54489
  </dd>
@@ -55092,7 +55853,7 @@ client.public.integration_requests(
55092
55853
  <dl>
55093
55854
  <dd>
55094
55855
 
55095
- 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.
55856
+ 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.
55096
55857
  </dd>
55097
55858
  </dl>
55098
55859
  </dd>
@@ -55216,7 +55977,7 @@ client.public.invoices_get(token: "token")
55216
55977
  <dl>
55217
55978
  <dd>
55218
55979
 
55219
- 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.
55980
+ 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.
55220
55981
  </dd>
55221
55982
  </dl>
55222
55983
  </dd>
@@ -55395,7 +56156,7 @@ client.billing.account_get
55395
56156
  <dl>
55396
56157
  <dd>
55397
56158
 
55398
- 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.
56159
+ 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.
55399
56160
  </dd>
55400
56161
  </dl>
55401
56162
  </dd>
@@ -56178,7 +56939,7 @@ client.billing.usage_list(
56178
56939
  <dl>
56179
56940
  <dd>
56180
56941
 
56181
- Create a sign-in link for the e-mail address and send it; the link is valid for 15 minutes and is consumed with `account/login-link/consume`. When an unused link was requested for the same address within the last minute, the call answers `sent` without sending another. `locale` sets the language of the e-mail and of the link; `app` set to `invoice` makes the link open the invoice app instead of the Nordlet app; `acceptTerms`, `acceptDpa` and `referralCode` are stored with the link and used when the address has no account yet.
56942
+ Create a sign-in link for the e-mail address and send it; the link is valid for 15 minutes and is consumed with `account/login-link/consume`. When an unused link was requested for the same address within the last minute, the call answers `sent` without sending another; after five links for the address within an hour it answers 429; otherwise the earlier unused sign-in links for the address stop working. `locale` sets the language of the e-mail and of the link; `app` set to `invoice` makes the link open the invoice app instead of the Nordlet app; `acceptTerms`, `acceptDpa` and `referralCode` are stored with the link and used when the address has no account yet.
56182
56943
  </dd>
56183
56944
  </dl>
56184
56945
  </dd>
@@ -56280,7 +57041,7 @@ client.account.login_link_request(email: "email")
56280
57041
  <dl>
56281
57042
  <dd>
56282
57043
 
56283
- Exchange a sign-in link token for a session; an unknown, used or expired token is refused with 401. When no account has the address, one is created (`isNewUser`), which is refused with 422 unless the link was requested with `acceptTerms` and `acceptDpa`; a `referralCode` on the link records who referred the new user. A link from `account/email/change-request` changes the signed-in user's address instead, refused with 409 when another account has it.
57044
+ Exchange a sign-in link token for a session; an unknown, used or expired token is refused with 401. When no account has the address, one is created (`isNewUser`), which is refused with 422 unless the link was requested with `acceptTerms` and `acceptDpa`; a `referralCode` on the link records who referred the new user. The link `account/email/change-request` sends to the current address signs that user in and sends a confirmation link to the new address; that second link changes the address, deletes the user's other sessions and sends the previous address a link, valid for 24 hours, that changes the address back and deletes every session of the user. No link goes to the new address when another account has it, and the change and the change back are refused with 409 when another account has the address. When the user has two-factor authentication on, `twoFactorRequired` is true and the session can make no call other than `account/two-factor/verify` and `account/logout` until a code is entered.
56284
57045
  </dd>
56285
57046
  </dl>
56286
57047
  </dd>
@@ -56709,7 +57470,7 @@ client.account.members_remove(user_id: "userId")
56709
57470
  <dl>
56710
57471
  <dd>
56711
57472
 
56712
- Create an invitation to the active company for an e-mail address with the given role and send it by e-mail in `locale`; owners and admins may call it. The invitation is valid for 7 days and replaces an earlier pending one for the same address. Refused with 409 when the address already belongs to a member.
57473
+ Create an invitation to the active company for an e-mail address with the given role and send it by e-mail in `locale`; owners and admins may call it. The invitation is valid for 7 days and replaces an earlier pending one for the same address. Refused with 409 when the address already belongs to a member and with 429 (`rate_limited`) after 50 invitations by the user, in all their companies, within 24 hours.
56713
57474
  </dd>
56714
57475
  </dl>
56715
57476
  </dd>
@@ -57966,7 +58727,131 @@ client.account.companies_archive(company_id: "companyId")
57966
58727
  </dl>
57967
58728
  </details>
57968
58729
 
57969
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_delete</a>(request) -> Nordlet::Account::Types::CompaniesDeleteAccountResponse</code></summary>
58730
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_delete</a>(request) -> Nordlet::Account::Types::CompaniesDeleteAccountResponse</code></summary>
58731
+ <dl>
58732
+ <dd>
58733
+
58734
+ #### 📝 Description
58735
+
58736
+ <dl>
58737
+ <dd>
58738
+
58739
+ <dl>
58740
+ <dd>
58741
+
58742
+ Set the company named by `companyId` to `deleted`; the caller must be its owner, and every session that had it active loses it. A sandbox company is purged at once; any other is purged by the scheduled purge after `purgeAfter` (10 days) and can be restored until then with `account/companies/activate`. Refused with 409 when it is already deleted.
58743
+ </dd>
58744
+ </dl>
58745
+ </dd>
58746
+ </dl>
58747
+
58748
+ #### 🔌 Usage
58749
+
58750
+ <dl>
58751
+ <dd>
58752
+
58753
+ <dl>
58754
+ <dd>
58755
+
58756
+ ```ruby
58757
+ client.account.companies_delete(company_id: "companyId")
58758
+ ```
58759
+ </dd>
58760
+ </dl>
58761
+ </dd>
58762
+ </dl>
58763
+
58764
+ #### ⚙️ Parameters
58765
+
58766
+ <dl>
58767
+ <dd>
58768
+
58769
+ <dl>
58770
+ <dd>
58771
+
58772
+ **company_id:** `String`
58773
+
58774
+ </dd>
58775
+ </dl>
58776
+
58777
+ <dl>
58778
+ <dd>
58779
+
58780
+ **request_options:** `Nordlet::Account::RequestOptions`
58781
+
58782
+ </dd>
58783
+ </dl>
58784
+ </dd>
58785
+ </dl>
58786
+
58787
+
58788
+ </dd>
58789
+ </dl>
58790
+ </details>
58791
+
58792
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_activate</a>(request) -> Nordlet::Account::Types::CompaniesActivateAccountResponse</code></summary>
58793
+ <dl>
58794
+ <dd>
58795
+
58796
+ #### 📝 Description
58797
+
58798
+ <dl>
58799
+ <dd>
58800
+
58801
+ <dl>
58802
+ <dd>
58803
+
58804
+ Set an archived or deleted company named by `companyId` back to `active`; the caller must be its owner. Refused with 409 when it is already active.
58805
+ </dd>
58806
+ </dl>
58807
+ </dd>
58808
+ </dl>
58809
+
58810
+ #### 🔌 Usage
58811
+
58812
+ <dl>
58813
+ <dd>
58814
+
58815
+ <dl>
58816
+ <dd>
58817
+
58818
+ ```ruby
58819
+ client.account.companies_activate(company_id: "companyId")
58820
+ ```
58821
+ </dd>
58822
+ </dl>
58823
+ </dd>
58824
+ </dl>
58825
+
58826
+ #### ⚙️ Parameters
58827
+
58828
+ <dl>
58829
+ <dd>
58830
+
58831
+ <dl>
58832
+ <dd>
58833
+
58834
+ **company_id:** `String`
58835
+
58836
+ </dd>
58837
+ </dl>
58838
+
58839
+ <dl>
58840
+ <dd>
58841
+
58842
+ **request_options:** `Nordlet::Account::RequestOptions`
58843
+
58844
+ </dd>
58845
+ </dl>
58846
+ </dd>
58847
+ </dl>
58848
+
58849
+
58850
+ </dd>
58851
+ </dl>
58852
+ </details>
58853
+
58854
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_create</a>(request) -> Nordlet::Account::Types::APIKeysCreateAccountResponse</code></summary>
57970
58855
  <dl>
57971
58856
  <dd>
57972
58857
 
@@ -57978,7 +58863,7 @@ client.account.companies_archive(company_id: "companyId")
57978
58863
  <dl>
57979
58864
  <dd>
57980
58865
 
57981
- Set the company named by `companyId` to `deleted`; the caller must be its owner, and every session that had it active loses it. A sandbox company is purged at once; any other is purged by the scheduled purge after `purgeAfter` (10 days) and can be restored until then with `account/companies/activate`. Refused with 409 when it is already deleted.
58866
+ 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. `expiresInDays` defaults to 90. The list shows the key's last four characters as `lastFour`.
57982
58867
  </dd>
57983
58868
  </dl>
57984
58869
  </dd>
@@ -57993,7 +58878,7 @@ Set the company named by `companyId` to `deleted`; the caller must be its owner,
57993
58878
  <dd>
57994
58879
 
57995
58880
  ```ruby
57996
- client.account.companies_delete(company_id: "companyId")
58881
+ client.account.api_keys_create(name: "name")
57997
58882
  ```
57998
58883
  </dd>
57999
58884
  </dl>
@@ -58008,7 +58893,23 @@ client.account.companies_delete(company_id: "companyId")
58008
58893
  <dl>
58009
58894
  <dd>
58010
58895
 
58011
- **company_id:** `String`
58896
+ **name:** `String`
58897
+
58898
+ </dd>
58899
+ </dl>
58900
+
58901
+ <dl>
58902
+ <dd>
58903
+
58904
+ **scopes:** `Internal::Types::Array[String]`
58905
+
58906
+ </dd>
58907
+ </dl>
58908
+
58909
+ <dl>
58910
+ <dd>
58911
+
58912
+ **expires_in_days:** `Integer`
58012
58913
 
58013
58914
  </dd>
58014
58915
  </dl>
@@ -58028,7 +58929,7 @@ client.account.companies_delete(company_id: "companyId")
58028
58929
  </dl>
58029
58930
  </details>
58030
58931
 
58031
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">companies_activate</a>(request) -> Nordlet::Account::Types::CompaniesActivateAccountResponse</code></summary>
58932
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_list</a>(request) -> Nordlet::Account::Types::APIKeysListAccountResponse</code></summary>
58032
58933
  <dl>
58033
58934
  <dd>
58034
58935
 
@@ -58040,7 +58941,7 @@ client.account.companies_delete(company_id: "companyId")
58040
58941
  <dl>
58041
58942
  <dd>
58042
58943
 
58043
- Set an archived or deleted company named by `companyId` back to `active`; the caller must be its owner. Refused with 409 when it is already active.
58944
+ List the signed-in person's API keys, including expired and revoked ones. `lastFour` is the last four characters of the key (null for keys created before it was recorded); for an app connected through OAuth it is those of the current access token.
58044
58945
  </dd>
58045
58946
  </dl>
58046
58947
  </dd>
@@ -58055,7 +58956,7 @@ Set an archived or deleted company named by `companyId` back to `active`; the ca
58055
58956
  <dd>
58056
58957
 
58057
58958
  ```ruby
58058
- client.account.companies_activate(company_id: "companyId")
58959
+ client.account.api_keys_list
58059
58960
  ```
58060
58961
  </dd>
58061
58962
  </dl>
@@ -58070,14 +58971,6 @@ client.account.companies_activate(company_id: "companyId")
58070
58971
  <dl>
58071
58972
  <dd>
58072
58973
 
58073
- **company_id:** `String`
58074
-
58075
- </dd>
58076
- </dl>
58077
-
58078
- <dl>
58079
- <dd>
58080
-
58081
58974
  **request_options:** `Nordlet::Account::RequestOptions`
58082
58975
 
58083
58976
  </dd>
@@ -58090,7 +58983,7 @@ client.account.companies_activate(company_id: "companyId")
58090
58983
  </dl>
58091
58984
  </details>
58092
58985
 
58093
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_create</a>(request) -> Nordlet::Account::Types::APIKeysCreateAccountResponse</code></summary>
58986
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_rotate</a>(request) -> Nordlet::Account::Types::APIKeysRotateAccountResponse</code></summary>
58094
58987
  <dl>
58095
58988
  <dd>
58096
58989
 
@@ -58102,7 +58995,7 @@ client.account.companies_activate(company_id: "companyId")
58102
58995
  <dl>
58103
58996
  <dd>
58104
58997
 
58105
- 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.
58998
+ 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 and defaults to 90. Refused with 409 when the old key is revoked or belongs to an app connected through OAuth, which renews its own access.
58106
58999
  </dd>
58107
59000
  </dl>
58108
59001
  </dd>
@@ -58117,7 +59010,7 @@ Create an API key for the signed-in person and return the key itself once. Owner
58117
59010
  <dd>
58118
59011
 
58119
59012
  ```ruby
58120
- client.account.api_keys_create(name: "name")
59013
+ client.account.api_keys_rotate(id: "id")
58121
59014
  ```
58122
59015
  </dd>
58123
59016
  </dl>
@@ -58132,7 +59025,7 @@ client.account.api_keys_create(name: "name")
58132
59025
  <dl>
58133
59026
  <dd>
58134
59027
 
58135
- **name:** `String`
59028
+ **id:** `String`
58136
59029
 
58137
59030
  </dd>
58138
59031
  </dl>
@@ -58140,7 +59033,7 @@ client.account.api_keys_create(name: "name")
58140
59033
  <dl>
58141
59034
  <dd>
58142
59035
 
58143
- **scopes:** `Internal::Types::Array[String]`
59036
+ **overlap_hours:** `Integer`
58144
59037
 
58145
59038
  </dd>
58146
59039
  </dl>
@@ -58168,7 +59061,7 @@ client.account.api_keys_create(name: "name")
58168
59061
  </dl>
58169
59062
  </details>
58170
59063
 
58171
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_list</a>(request) -> Nordlet::Account::Types::APIKeysListAccountResponse</code></summary>
59064
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_revoke</a>(request) -> Nordlet::Account::Types::APIKeysRevokeAccountResponse</code></summary>
58172
59065
  <dl>
58173
59066
  <dd>
58174
59067
 
@@ -58180,7 +59073,7 @@ client.account.api_keys_create(name: "name")
58180
59073
  <dl>
58181
59074
  <dd>
58182
59075
 
58183
- List the signed-in person's API keys, including expired and revoked ones.
59076
+ Revoke one of the signed-in person's API keys at once.
58184
59077
  </dd>
58185
59078
  </dl>
58186
59079
  </dd>
@@ -58195,7 +59088,7 @@ List the signed-in person's API keys, including expired and revoked ones.
58195
59088
  <dd>
58196
59089
 
58197
59090
  ```ruby
58198
- client.account.api_keys_list
59091
+ client.account.api_keys_revoke(id: "id")
58199
59092
  ```
58200
59093
  </dd>
58201
59094
  </dl>
@@ -58210,6 +59103,14 @@ client.account.api_keys_list
58210
59103
  <dl>
58211
59104
  <dd>
58212
59105
 
59106
+ **id:** `String`
59107
+
59108
+ </dd>
59109
+ </dl>
59110
+
59111
+ <dl>
59112
+ <dd>
59113
+
58213
59114
  **request_options:** `Nordlet::Account::RequestOptions`
58214
59115
 
58215
59116
  </dd>
@@ -58222,7 +59123,7 @@ client.account.api_keys_list
58222
59123
  </dl>
58223
59124
  </details>
58224
59125
 
58225
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_rotate</a>(request) -> Nordlet::Account::Types::APIKeysRotateAccountResponse</code></summary>
59126
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">consent_accept</a>(request) -> Nordlet::Account::Types::ConsentAcceptAccountResponse</code></summary>
58226
59127
  <dl>
58227
59128
  <dd>
58228
59129
 
@@ -58234,7 +59135,7 @@ client.account.api_keys_list
58234
59135
  <dl>
58235
59136
  <dd>
58236
59137
 
58237
- 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.
59138
+ Record the signed-in user's acceptance of the current Terms of Service and Data Processing Agreement versions and return the consent state.
58238
59139
  </dd>
58239
59140
  </dl>
58240
59141
  </dd>
@@ -58249,7 +59150,10 @@ Create a new key with the name and scopes of the signed-in person's key `id` and
58249
59150
  <dd>
58250
59151
 
58251
59152
  ```ruby
58252
- client.account.api_keys_rotate(id: "id")
59153
+ client.account.consent_accept(
59154
+ accept_terms: true,
59155
+ accept_dpa: true
59156
+ )
58253
59157
  ```
58254
59158
  </dd>
58255
59159
  </dl>
@@ -58264,15 +59168,7 @@ client.account.api_keys_rotate(id: "id")
58264
59168
  <dl>
58265
59169
  <dd>
58266
59170
 
58267
- **id:** `String`
58268
-
58269
- </dd>
58270
- </dl>
58271
-
58272
- <dl>
58273
- <dd>
58274
-
58275
- **overlap_hours:** `Integer`
59171
+ **accept_terms:** `Internal::Types::Boolean`
58276
59172
 
58277
59173
  </dd>
58278
59174
  </dl>
@@ -58280,7 +59176,7 @@ client.account.api_keys_rotate(id: "id")
58280
59176
  <dl>
58281
59177
  <dd>
58282
59178
 
58283
- **expires_in_days:** `Integer`
59179
+ **accept_dpa:** `Internal::Types::Boolean`
58284
59180
 
58285
59181
  </dd>
58286
59182
  </dl>
@@ -58300,7 +59196,7 @@ client.account.api_keys_rotate(id: "id")
58300
59196
  </dl>
58301
59197
  </details>
58302
59198
 
58303
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">api_keys_revoke</a>(request) -> Nordlet::Account::Types::APIKeysRevokeAccountResponse</code></summary>
59199
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">profile_update</a>(request) -> Nordlet::Account::Types::ProfileUpdateAccountResponse</code></summary>
58304
59200
  <dl>
58305
59201
  <dd>
58306
59202
 
@@ -58312,7 +59208,7 @@ client.account.api_keys_rotate(id: "id")
58312
59208
  <dl>
58313
59209
  <dd>
58314
59210
 
58315
- Revoke one of the signed-in person's API keys at once.
59211
+ Set the signed-in user's name; null or a blank string clears it.
58316
59212
  </dd>
58317
59213
  </dl>
58318
59214
  </dd>
@@ -58327,7 +59223,7 @@ Revoke one of the signed-in person's API keys at once.
58327
59223
  <dd>
58328
59224
 
58329
59225
  ```ruby
58330
- client.account.api_keys_revoke(id: "id")
59226
+ client.account.profile_update
58331
59227
  ```
58332
59228
  </dd>
58333
59229
  </dl>
@@ -58342,7 +59238,7 @@ client.account.api_keys_revoke(id: "id")
58342
59238
  <dl>
58343
59239
  <dd>
58344
59240
 
58345
- **id:** `String`
59241
+ **name:** `String`
58346
59242
 
58347
59243
  </dd>
58348
59244
  </dl>
@@ -58362,7 +59258,7 @@ client.account.api_keys_revoke(id: "id")
58362
59258
  </dl>
58363
59259
  </details>
58364
59260
 
58365
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">consent_accept</a>(request) -> Nordlet::Account::Types::ConsentAcceptAccountResponse</code></summary>
59261
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">email_change_request</a>(request) -> Nordlet::Account::Types::EmailChangeRequestAccountResponse</code></summary>
58366
59262
  <dl>
58367
59263
  <dd>
58368
59264
 
@@ -58374,7 +59270,7 @@ client.account.api_keys_revoke(id: "id")
58374
59270
  <dl>
58375
59271
  <dd>
58376
59272
 
58377
- Record the signed-in user's acceptance of the current Terms of Service and Data Processing Agreement versions and return the consent state.
59273
+ Send a confirmation link for the change to `newEmail` to the user's current address. When it is consumed with `account/login-link/consume`, a second link goes to `newEmail`, and the address changes when that one is consumed. When an unused link for `newEmail` was created within the last minute, the call answers `sent` without sending another. Refused with 422 when it is already the user's address and with 429 (`rate_limited`) after five requests by the user within 24 hours. When another account has `newEmail`, the call answers the same, the confirmation link signs the user in and no link goes to `newEmail`.
58378
59274
  </dd>
58379
59275
  </dl>
58380
59276
  </dd>
@@ -58389,10 +59285,7 @@ Record the signed-in user's acceptance of the current Terms of Service and Data
58389
59285
  <dd>
58390
59286
 
58391
59287
  ```ruby
58392
- client.account.consent_accept(
58393
- accept_terms: true,
58394
- accept_dpa: true
58395
- )
59288
+ client.account.email_change_request(new_email: "newEmail")
58396
59289
  ```
58397
59290
  </dd>
58398
59291
  </dl>
@@ -58407,7 +59300,7 @@ client.account.consent_accept(
58407
59300
  <dl>
58408
59301
  <dd>
58409
59302
 
58410
- **accept_terms:** `Internal::Types::Boolean`
59303
+ **new_email:** `String`
58411
59304
 
58412
59305
  </dd>
58413
59306
  </dl>
@@ -58415,7 +59308,7 @@ client.account.consent_accept(
58415
59308
  <dl>
58416
59309
  <dd>
58417
59310
 
58418
- **accept_dpa:** `Internal::Types::Boolean`
59311
+ **locale:** `Nordlet::Account::Types::EmailChangeRequestAccountRequestLocale`
58419
59312
 
58420
59313
  </dd>
58421
59314
  </dl>
@@ -58435,7 +59328,7 @@ client.account.consent_accept(
58435
59328
  </dl>
58436
59329
  </details>
58437
59330
 
58438
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">profile_update</a>(request) -> Nordlet::Account::Types::ProfileUpdateAccountResponse</code></summary>
59331
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_list</a>(request) -> Nordlet::Account::Types::SessionsListAccountResponse</code></summary>
58439
59332
  <dl>
58440
59333
  <dd>
58441
59334
 
@@ -58447,7 +59340,7 @@ client.account.consent_accept(
58447
59340
  <dl>
58448
59341
  <dd>
58449
59342
 
58450
- Set the signed-in user's name; null or a blank string clears it.
59343
+ List the signed-in user's sessions that have not expired: a session ends 30 days after sign-in or after 7 days without a call. `current` marks the one the call was made with.
58451
59344
  </dd>
58452
59345
  </dl>
58453
59346
  </dd>
@@ -58462,7 +59355,7 @@ Set the signed-in user's name; null or a blank string clears it.
58462
59355
  <dd>
58463
59356
 
58464
59357
  ```ruby
58465
- client.account.profile_update
59358
+ client.account.sessions_list
58466
59359
  ```
58467
59360
  </dd>
58468
59361
  </dl>
@@ -58477,14 +59370,6 @@ client.account.profile_update
58477
59370
  <dl>
58478
59371
  <dd>
58479
59372
 
58480
- **name:** `String`
58481
-
58482
- </dd>
58483
- </dl>
58484
-
58485
- <dl>
58486
- <dd>
58487
-
58488
59373
  **request_options:** `Nordlet::Account::RequestOptions`
58489
59374
 
58490
59375
  </dd>
@@ -58497,7 +59382,7 @@ client.account.profile_update
58497
59382
  </dl>
58498
59383
  </details>
58499
59384
 
58500
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">email_change_request</a>(request) -> Nordlet::Account::Types::EmailChangeRequestAccountResponse</code></summary>
59385
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke</a>(request) -> Nordlet::Account::Types::SessionsRevokeAccountResponse</code></summary>
58501
59386
  <dl>
58502
59387
  <dd>
58503
59388
 
@@ -58509,7 +59394,7 @@ client.account.profile_update
58509
59394
  <dl>
58510
59395
  <dd>
58511
59396
 
58512
- 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.
59397
+ Delete one of the signed-in user's sessions.
58513
59398
  </dd>
58514
59399
  </dl>
58515
59400
  </dd>
@@ -58524,7 +59409,7 @@ Send a confirmation link to `newEmail`; the address changes when that link is co
58524
59409
  <dd>
58525
59410
 
58526
59411
  ```ruby
58527
- client.account.email_change_request(new_email: "newEmail")
59412
+ client.account.sessions_revoke(id: "id")
58528
59413
  ```
58529
59414
  </dd>
58530
59415
  </dl>
@@ -58539,7 +59424,7 @@ client.account.email_change_request(new_email: "newEmail")
58539
59424
  <dl>
58540
59425
  <dd>
58541
59426
 
58542
- **new_email:** `String`
59427
+ **id:** `String`
58543
59428
 
58544
59429
  </dd>
58545
59430
  </dl>
@@ -58547,11 +59432,57 @@ client.account.email_change_request(new_email: "newEmail")
58547
59432
  <dl>
58548
59433
  <dd>
58549
59434
 
58550
- **locale:** `Nordlet::Account::Types::EmailChangeRequestAccountRequestLocale`
59435
+ **request_options:** `Nordlet::Account::RequestOptions`
58551
59436
 
59437
+ </dd>
59438
+ </dl>
59439
+ </dd>
59440
+ </dl>
59441
+
59442
+
59443
+ </dd>
59444
+ </dl>
59445
+ </details>
59446
+
59447
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke_others</a>(request) -> Nordlet::Account::Types::SessionsRevokeOthersAccountResponse</code></summary>
59448
+ <dl>
59449
+ <dd>
59450
+
59451
+ #### 📝 Description
59452
+
59453
+ <dl>
59454
+ <dd>
59455
+
59456
+ <dl>
59457
+ <dd>
59458
+
59459
+ Delete every session of the signed-in user except the one the call was made with, and return how many were deleted.
59460
+ </dd>
59461
+ </dl>
58552
59462
  </dd>
58553
59463
  </dl>
58554
59464
 
59465
+ #### 🔌 Usage
59466
+
59467
+ <dl>
59468
+ <dd>
59469
+
59470
+ <dl>
59471
+ <dd>
59472
+
59473
+ ```ruby
59474
+ client.account.sessions_revoke_others
59475
+ ```
59476
+ </dd>
59477
+ </dl>
59478
+ </dd>
59479
+ </dl>
59480
+
59481
+ #### ⚙️ Parameters
59482
+
59483
+ <dl>
59484
+ <dd>
59485
+
58555
59486
  <dl>
58556
59487
  <dd>
58557
59488
 
@@ -58567,7 +59498,7 @@ client.account.email_change_request(new_email: "newEmail")
58567
59498
  </dl>
58568
59499
  </details>
58569
59500
 
58570
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_list</a>(request) -> Nordlet::Account::Types::SessionsListAccountResponse</code></summary>
59501
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">export</a>(request) -> Nordlet::Account::Types::ExportAccountResponse</code></summary>
58571
59502
  <dl>
58572
59503
  <dd>
58573
59504
 
@@ -58579,7 +59510,7 @@ client.account.email_change_request(new_email: "newEmail")
58579
59510
  <dl>
58580
59511
  <dd>
58581
59512
 
58582
- List the signed-in user's sessions that have not expired; `current` marks the one the call was made with.
59513
+ Return the user's profile, consent state, memberships, unexpired sessions, sign-in events, API keys (without the keys), connected OAuth apps, referral points, billing accounts (`billing` is the `app` site's, `billingAccounts` has one per site), credit transactions and every audit entry they made in their companies.
58583
59514
  </dd>
58584
59515
  </dl>
58585
59516
  </dd>
@@ -58594,7 +59525,7 @@ List the signed-in user's sessions that have not expired; `current` marks the on
58594
59525
  <dd>
58595
59526
 
58596
59527
  ```ruby
58597
- client.account.sessions_list
59528
+ client.account.export
58598
59529
  ```
58599
59530
  </dd>
58600
59531
  </dl>
@@ -58621,7 +59552,7 @@ client.account.sessions_list
58621
59552
  </dl>
58622
59553
  </details>
58623
59554
 
58624
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke</a>(request) -> Nordlet::Account::Types::SessionsRevokeAccountResponse</code></summary>
59555
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">delete</a>(request) -> Nordlet::Account::Types::DeleteAccountResponse</code></summary>
58625
59556
  <dl>
58626
59557
  <dd>
58627
59558
 
@@ -58633,7 +59564,7 @@ client.account.sessions_list
58633
59564
  <dl>
58634
59565
  <dd>
58635
59566
 
58636
- Delete one of the signed-in user's sessions.
59567
+ 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.
58637
59568
  </dd>
58638
59569
  </dl>
58639
59570
  </dd>
@@ -58648,7 +59579,7 @@ Delete one of the signed-in user's sessions.
58648
59579
  <dd>
58649
59580
 
58650
59581
  ```ruby
58651
- client.account.sessions_revoke(id: "id")
59582
+ client.account.delete(confirm_email: "confirmEmail")
58652
59583
  ```
58653
59584
  </dd>
58654
59585
  </dl>
@@ -58663,7 +59594,7 @@ client.account.sessions_revoke(id: "id")
58663
59594
  <dl>
58664
59595
  <dd>
58665
59596
 
58666
- **id:** `String`
59597
+ **confirm_email:** `String`
58667
59598
 
58668
59599
  </dd>
58669
59600
  </dl>
@@ -58683,7 +59614,7 @@ client.account.sessions_revoke(id: "id")
58683
59614
  </dl>
58684
59615
  </details>
58685
59616
 
58686
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">sessions_revoke_others</a>(request) -> Nordlet::Account::Types::SessionsRevokeOthersAccountResponse</code></summary>
59617
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_get</a>(request) -> Nordlet::Account::Types::ReferralGetAccountResponse</code></summary>
58687
59618
  <dl>
58688
59619
  <dd>
58689
59620
 
@@ -58695,7 +59626,7 @@ client.account.sessions_revoke(id: "id")
58695
59626
  <dl>
58696
59627
  <dd>
58697
59628
 
58698
- Delete every session of the signed-in user except the one the call was made with, and return how many were deleted.
59629
+ 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`.
58699
59630
  </dd>
58700
59631
  </dl>
58701
59632
  </dd>
@@ -58710,7 +59641,7 @@ Delete every session of the signed-in user except the one the call was made with
58710
59641
  <dd>
58711
59642
 
58712
59643
  ```ruby
58713
- client.account.sessions_revoke_others
59644
+ client.account.referral_get
58714
59645
  ```
58715
59646
  </dd>
58716
59647
  </dl>
@@ -58737,7 +59668,7 @@ client.account.sessions_revoke_others
58737
59668
  </dl>
58738
59669
  </details>
58739
59670
 
58740
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">export</a>(request) -> Nordlet::Account::Types::ExportAccountResponse</code></summary>
59671
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_convert</a>(request) -> Nordlet::Account::Types::ReferralConvertAccountResponse</code></summary>
58741
59672
  <dl>
58742
59673
  <dd>
58743
59674
 
@@ -58749,7 +59680,7 @@ client.account.sessions_revoke_others
58749
59680
  <dl>
58750
59681
  <dd>
58751
59682
 
58752
- 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).
59683
+ 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.
58753
59684
  </dd>
58754
59685
  </dl>
58755
59686
  </dd>
@@ -58764,7 +59695,7 @@ Return the user's profile, consent state, memberships, unexpired sessions, billi
58764
59695
  <dd>
58765
59696
 
58766
59697
  ```ruby
58767
- client.account.export
59698
+ client.account.referral_convert(points: 1000000)
58768
59699
  ```
58769
59700
  </dd>
58770
59701
  </dl>
@@ -58779,6 +59710,14 @@ client.account.export
58779
59710
  <dl>
58780
59711
  <dd>
58781
59712
 
59713
+ **points:** `Integer`
59714
+
59715
+ </dd>
59716
+ </dl>
59717
+
59718
+ <dl>
59719
+ <dd>
59720
+
58782
59721
  **request_options:** `Nordlet::Account::RequestOptions`
58783
59722
 
58784
59723
  </dd>
@@ -58791,7 +59730,7 @@ client.account.export
58791
59730
  </dl>
58792
59731
  </details>
58793
59732
 
58794
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">delete</a>(request) -> Nordlet::Account::Types::DeleteAccountResponse</code></summary>
59733
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_get</a>(request) -> Nordlet::Account::Types::TableSettingsGetAccountResponse</code></summary>
58795
59734
  <dl>
58796
59735
  <dd>
58797
59736
 
@@ -58803,7 +59742,7 @@ client.account.export
58803
59742
  <dl>
58804
59743
  <dd>
58805
59744
 
58806
- 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.
59745
+ Return the signed-in user's saved column list and page size for the table `tableKey`; both are null when nothing is saved.
58807
59746
  </dd>
58808
59747
  </dl>
58809
59748
  </dd>
@@ -58818,7 +59757,7 @@ Removes the user: sessions, sign-in links, memberships and pending invitations a
58818
59757
  <dd>
58819
59758
 
58820
59759
  ```ruby
58821
- client.account.delete(confirm_email: "confirmEmail")
59760
+ client.account.table_settings_get(table_key: "tableKey")
58822
59761
  ```
58823
59762
  </dd>
58824
59763
  </dl>
@@ -58833,7 +59772,7 @@ client.account.delete(confirm_email: "confirmEmail")
58833
59772
  <dl>
58834
59773
  <dd>
58835
59774
 
58836
- **confirm_email:** `String`
59775
+ **table_key:** `String`
58837
59776
 
58838
59777
  </dd>
58839
59778
  </dl>
@@ -58853,7 +59792,7 @@ client.account.delete(confirm_email: "confirmEmail")
58853
59792
  </dl>
58854
59793
  </details>
58855
59794
 
58856
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_get</a>(request) -> Nordlet::Account::Types::ReferralGetAccountResponse</code></summary>
59795
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_set</a>(request) -> Nordlet::Account::Types::TableSettingsSetAccountResponse</code></summary>
58857
59796
  <dl>
58858
59797
  <dd>
58859
59798
 
@@ -58865,7 +59804,7 @@ client.account.delete(confirm_email: "confirmEmail")
58865
59804
  <dl>
58866
59805
  <dd>
58867
59806
 
58868
- 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`.
59807
+ 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.
58869
59808
  </dd>
58870
59809
  </dl>
58871
59810
  </dd>
@@ -58880,7 +59819,85 @@ Return the user's referral code (allocated on first call) and sign-up link, thei
58880
59819
  <dd>
58881
59820
 
58882
59821
  ```ruby
58883
- client.account.referral_get
59822
+ client.account.table_settings_set(table_key: "tableKey")
59823
+ ```
59824
+ </dd>
59825
+ </dl>
59826
+ </dd>
59827
+ </dl>
59828
+
59829
+ #### ⚙️ Parameters
59830
+
59831
+ <dl>
59832
+ <dd>
59833
+
59834
+ <dl>
59835
+ <dd>
59836
+
59837
+ **table_key:** `String`
59838
+
59839
+ </dd>
59840
+ </dl>
59841
+
59842
+ <dl>
59843
+ <dd>
59844
+
59845
+ **columns:** `Internal::Types::Array[String]`
59846
+
59847
+ </dd>
59848
+ </dl>
59849
+
59850
+ <dl>
59851
+ <dd>
59852
+
59853
+ **page_size:** `Integer`
59854
+
59855
+ </dd>
59856
+ </dl>
59857
+
59858
+ <dl>
59859
+ <dd>
59860
+
59861
+ **request_options:** `Nordlet::Account::RequestOptions`
59862
+
59863
+ </dd>
59864
+ </dl>
59865
+ </dd>
59866
+ </dl>
59867
+
59868
+
59869
+ </dd>
59870
+ </dl>
59871
+ </details>
59872
+
59873
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_list</a>(request) -> Nordlet::Account::Types::TableSettingsListAccountResponse</code></summary>
59874
+ <dl>
59875
+ <dd>
59876
+
59877
+ #### 📝 Description
59878
+
59879
+ <dl>
59880
+ <dd>
59881
+
59882
+ <dl>
59883
+ <dd>
59884
+
59885
+ List the signed-in user's saved table settings.
59886
+ </dd>
59887
+ </dl>
59888
+ </dd>
59889
+ </dl>
59890
+
59891
+ #### 🔌 Usage
59892
+
59893
+ <dl>
59894
+ <dd>
59895
+
59896
+ <dl>
59897
+ <dd>
59898
+
59899
+ ```ruby
59900
+ client.account.table_settings_list
58884
59901
  ```
58885
59902
  </dd>
58886
59903
  </dl>
@@ -58907,7 +59924,7 @@ client.account.referral_get
58907
59924
  </dl>
58908
59925
  </details>
58909
59926
 
58910
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">referral_convert</a>(request) -> Nordlet::Account::Types::ReferralConvertAccountResponse</code></summary>
59927
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_describe</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse</code></summary>
58911
59928
  <dl>
58912
59929
  <dd>
58913
59930
 
@@ -58919,7 +59936,7 @@ client.account.referral_get
58919
59936
  <dl>
58920
59937
  <dd>
58921
59938
 
58922
- 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.
59939
+ 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.
58923
59940
  </dd>
58924
59941
  </dl>
58925
59942
  </dd>
@@ -58934,7 +59951,7 @@ Convert `points` of the user's referral points into credit on their billing acco
58934
59951
  <dd>
58935
59952
 
58936
59953
  ```ruby
58937
- client.account.referral_convert(points: 1000000)
59954
+ client.account.oauth_authorize_describe(client_id: "clientId")
58938
59955
  ```
58939
59956
  </dd>
58940
59957
  </dl>
@@ -58949,7 +59966,7 @@ client.account.referral_convert(points: 1000000)
58949
59966
  <dl>
58950
59967
  <dd>
58951
59968
 
58952
- **points:** `Integer`
59969
+ **client_id:** `String`
58953
59970
 
58954
59971
  </dd>
58955
59972
  </dl>
@@ -58957,61 +59974,55 @@ client.account.referral_convert(points: 1000000)
58957
59974
  <dl>
58958
59975
  <dd>
58959
59976
 
58960
- **request_options:** `Nordlet::Account::RequestOptions`
59977
+ **redirect_uri:** `String`
58961
59978
 
58962
59979
  </dd>
58963
59980
  </dl>
58964
- </dd>
58965
- </dl>
58966
59981
 
59982
+ <dl>
59983
+ <dd>
58967
59984
 
59985
+ **response_type:** `String`
59986
+
58968
59987
  </dd>
58969
59988
  </dl>
58970
- </details>
58971
59989
 
58972
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_get</a>(request) -> Nordlet::Account::Types::TableSettingsGetAccountResponse</code></summary>
58973
59990
  <dl>
58974
59991
  <dd>
58975
59992
 
58976
- #### 📝 Description
58977
-
58978
- <dl>
58979
- <dd>
59993
+ **code_challenge:** `String`
59994
+
59995
+ </dd>
59996
+ </dl>
58980
59997
 
58981
59998
  <dl>
58982
59999
  <dd>
58983
60000
 
58984
- Return the signed-in user's saved column list and page size for the table `tableKey`; both are null when nothing is saved.
58985
- </dd>
58986
- </dl>
60001
+ **code_challenge_method:** `String`
60002
+
58987
60003
  </dd>
58988
60004
  </dl>
58989
60005
 
58990
- #### 🔌 Usage
58991
-
58992
60006
  <dl>
58993
60007
  <dd>
58994
60008
 
58995
- <dl>
58996
- <dd>
58997
-
58998
- ```ruby
58999
- client.account.table_settings_get(table_key: "tableKey")
59000
- ```
59001
- </dd>
59002
- </dl>
60009
+ **state:** `String`
60010
+
59003
60011
  </dd>
59004
60012
  </dl>
59005
60013
 
59006
- #### ⚙️ Parameters
59007
-
59008
60014
  <dl>
59009
60015
  <dd>
59010
60016
 
60017
+ **scope:** `String`
60018
+
60019
+ </dd>
60020
+ </dl>
60021
+
59011
60022
  <dl>
59012
60023
  <dd>
59013
60024
 
59014
- **table_key:** `String`
60025
+ **resource:** `String`
59015
60026
 
59016
60027
  </dd>
59017
60028
  </dl>
@@ -59031,7 +60042,7 @@ client.account.table_settings_get(table_key: "tableKey")
59031
60042
  </dl>
59032
60043
  </details>
59033
60044
 
59034
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_set</a>(request) -> Nordlet::Account::Types::TableSettingsSetAccountResponse</code></summary>
60045
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_approve</a>(request) -> Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse</code></summary>
59035
60046
  <dl>
59036
60047
  <dd>
59037
60048
 
@@ -59043,7 +60054,7 @@ client.account.table_settings_get(table_key: "tableKey")
59043
60054
  <dl>
59044
60055
  <dd>
59045
60056
 
59046
- 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.
60057
+ 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`.
59047
60058
  </dd>
59048
60059
  </dl>
59049
60060
  </dd>
@@ -59058,7 +60069,7 @@ Save the signed-in user's column list and page size for the table `tableKey`; on
59058
60069
  <dd>
59059
60070
 
59060
60071
  ```ruby
59061
- client.account.table_settings_set(table_key: "tableKey")
60072
+ client.account.oauth_authorize_approve(client_id: "clientId")
59062
60073
  ```
59063
60074
  </dd>
59064
60075
  </dl>
@@ -59073,7 +60084,7 @@ client.account.table_settings_set(table_key: "tableKey")
59073
60084
  <dl>
59074
60085
  <dd>
59075
60086
 
59076
- **table_key:** `String`
60087
+ **client_id:** `String`
59077
60088
 
59078
60089
  </dd>
59079
60090
  </dl>
@@ -59081,7 +60092,7 @@ client.account.table_settings_set(table_key: "tableKey")
59081
60092
  <dl>
59082
60093
  <dd>
59083
60094
 
59084
- **columns:** `Internal::Types::Array[String]`
60095
+ **redirect_uri:** `String`
59085
60096
 
59086
60097
  </dd>
59087
60098
  </dl>
@@ -59089,7 +60100,7 @@ client.account.table_settings_set(table_key: "tableKey")
59089
60100
  <dl>
59090
60101
  <dd>
59091
60102
 
59092
- **page_size:** `Integer`
60103
+ **response_type:** `String`
59093
60104
 
59094
60105
  </dd>
59095
60106
  </dl>
@@ -59097,57 +60108,43 @@ client.account.table_settings_set(table_key: "tableKey")
59097
60108
  <dl>
59098
60109
  <dd>
59099
60110
 
59100
- **request_options:** `Nordlet::Account::RequestOptions`
60111
+ **code_challenge:** `String`
59101
60112
 
59102
60113
  </dd>
59103
60114
  </dl>
59104
- </dd>
59105
- </dl>
59106
60115
 
60116
+ <dl>
60117
+ <dd>
59107
60118
 
60119
+ **code_challenge_method:** `String`
60120
+
59108
60121
  </dd>
59109
60122
  </dl>
59110
- </details>
59111
60123
 
59112
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">table_settings_list</a>(request) -> Nordlet::Account::Types::TableSettingsListAccountResponse</code></summary>
59113
60124
  <dl>
59114
60125
  <dd>
59115
60126
 
59116
- #### 📝 Description
59117
-
59118
- <dl>
59119
- <dd>
60127
+ **state:** `String`
60128
+
60129
+ </dd>
60130
+ </dl>
59120
60131
 
59121
60132
  <dl>
59122
60133
  <dd>
59123
60134
 
59124
- List the signed-in user's saved table settings.
59125
- </dd>
59126
- </dl>
60135
+ **scope:** `String`
60136
+
59127
60137
  </dd>
59128
60138
  </dl>
59129
60139
 
59130
- #### 🔌 Usage
59131
-
59132
- <dl>
59133
- <dd>
59134
-
59135
60140
  <dl>
59136
60141
  <dd>
59137
60142
 
59138
- ```ruby
59139
- client.account.table_settings_list
59140
- ```
59141
- </dd>
59142
- </dl>
60143
+ **resource:** `String`
60144
+
59143
60145
  </dd>
59144
60146
  </dl>
59145
60147
 
59146
- #### ⚙️ Parameters
59147
-
59148
- <dl>
59149
- <dd>
59150
-
59151
60148
  <dl>
59152
60149
  <dd>
59153
60150
 
@@ -59163,7 +60160,7 @@ client.account.table_settings_list
59163
60160
  </dl>
59164
60161
  </details>
59165
60162
 
59166
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_describe</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDescribeAccountResponse</code></summary>
60163
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_deny</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse</code></summary>
59167
60164
  <dl>
59168
60165
  <dd>
59169
60166
 
@@ -59175,7 +60172,7 @@ client.account.table_settings_list
59175
60172
  <dl>
59176
60173
  <dd>
59177
60174
 
59178
- 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.
60175
+ 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`.
59179
60176
  </dd>
59180
60177
  </dl>
59181
60178
  </dd>
@@ -59190,7 +60187,7 @@ Check an OAuth authorization request of an app that wants to connect to Nordlet
59190
60187
  <dd>
59191
60188
 
59192
60189
  ```ruby
59193
- client.account.oauth_authorize_describe(client_id: "clientId")
60190
+ client.account.oauth_authorize_deny(client_id: "clientId")
59194
60191
  ```
59195
60192
  </dd>
59196
60193
  </dl>
@@ -59281,7 +60278,7 @@ client.account.oauth_authorize_describe(client_id: "clientId")
59281
60278
  </dl>
59282
60279
  </details>
59283
60280
 
59284
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_approve</a>(request) -> Nordlet::Account::Types::OauthAuthorizeApproveAccountResponse</code></summary>
60281
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_get</a>(request) -> Nordlet::Account::Types::TwoFactorGetAccountResponse</code></summary>
59285
60282
  <dl>
59286
60283
  <dd>
59287
60284
 
@@ -59293,7 +60290,7 @@ client.account.oauth_authorize_describe(client_id: "clientId")
59293
60290
  <dl>
59294
60291
  <dd>
59295
60292
 
59296
- 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`.
60293
+ Return the signed-in user's two-factor authentication state: `enabled`, `required` (true for platform administrators, who cannot use platform administration without it), the number of unused recovery codes and, while a setup started with `two-factor/setup` is not finished, the key to add to an authenticator app as `setup`.
59297
60294
  </dd>
59298
60295
  </dl>
59299
60296
  </dd>
@@ -59308,7 +60305,7 @@ Allow the app of an OAuth authorization request to act for the signed-in person
59308
60305
  <dd>
59309
60306
 
59310
60307
  ```ruby
59311
- client.account.oauth_authorize_approve(client_id: "clientId")
60308
+ client.account.two_factor_get
59312
60309
  ```
59313
60310
  </dd>
59314
60311
  </dl>
@@ -59323,63 +60320,115 @@ client.account.oauth_authorize_approve(client_id: "clientId")
59323
60320
  <dl>
59324
60321
  <dd>
59325
60322
 
59326
- **client_id:** `String`
60323
+ **request_options:** `Nordlet::Account::RequestOptions`
59327
60324
 
59328
60325
  </dd>
59329
60326
  </dl>
60327
+ </dd>
60328
+ </dl>
59330
60329
 
59331
- <dl>
59332
- <dd>
59333
60330
 
59334
- **redirect_uri:** `String`
59335
-
59336
60331
  </dd>
59337
60332
  </dl>
60333
+ </details>
59338
60334
 
60335
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_setup</a>(request) -> Nordlet::Account::Types::TwoFactorSetupAccountResponse</code></summary>
59339
60336
  <dl>
59340
60337
  <dd>
59341
60338
 
59342
- **response_type:** `String`
59343
-
60339
+ #### 📝 Description
60340
+
60341
+ <dl>
60342
+ <dd>
60343
+
60344
+ <dl>
60345
+ <dd>
60346
+
60347
+ Start setting up two-factor authentication: create a new key for an authenticator app (time-based codes, RFC 6238: SHA-1, 6 digits, 30 seconds) and return it with its `otpauth://` address. Nothing changes at sign-in until `two-factor/enable` is called with a code from the app. Refused with 409 when two-factor authentication is already on.
60348
+ </dd>
60349
+ </dl>
59344
60350
  </dd>
59345
60351
  </dl>
59346
60352
 
60353
+ #### 🔌 Usage
60354
+
59347
60355
  <dl>
59348
60356
  <dd>
59349
60357
 
59350
- **code_challenge:** `String`
59351
-
60358
+ <dl>
60359
+ <dd>
60360
+
60361
+ ```ruby
60362
+ client.account.two_factor_setup
60363
+ ```
59352
60364
  </dd>
59353
60365
  </dl>
60366
+ </dd>
60367
+ </dl>
60368
+
60369
+ #### ⚙️ Parameters
59354
60370
 
59355
60371
  <dl>
59356
60372
  <dd>
59357
60373
 
59358
- **code_challenge_method:** `String`
60374
+ <dl>
60375
+ <dd>
60376
+
60377
+ **request_options:** `Nordlet::Account::RequestOptions`
59359
60378
 
59360
60379
  </dd>
59361
60380
  </dl>
60381
+ </dd>
60382
+ </dl>
59362
60383
 
60384
+
60385
+ </dd>
60386
+ </dl>
60387
+ </details>
60388
+
60389
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_enable</a>(request) -> Nordlet::Account::Types::TwoFactorEnableAccountResponse</code></summary>
59363
60390
  <dl>
59364
60391
  <dd>
59365
60392
 
59366
- **state:** `String`
59367
-
60393
+ #### 📝 Description
60394
+
60395
+ <dl>
60396
+ <dd>
60397
+
60398
+ <dl>
60399
+ <dd>
60400
+
60401
+ Turn on two-factor authentication with a current code from the authenticator app set up by `two-factor/setup`. Returns 10 recovery codes, shown only this once; each one works once in place of a code. The user's other sessions are deleted. From then on a session created by a sign-in link can make no call other than `two-factor/verify` and `account/logout` until a code is entered. A wrong code answers 422; after 5 wrong codes the session is deleted (401).
59368
60402
  </dd>
59369
60403
  </dl>
60404
+ </dd>
60405
+ </dl>
60406
+
60407
+ #### 🔌 Usage
59370
60408
 
59371
60409
  <dl>
59372
60410
  <dd>
59373
60411
 
59374
- **scope:** `String`
59375
-
60412
+ <dl>
60413
+ <dd>
60414
+
60415
+ ```ruby
60416
+ client.account.two_factor_enable(code: "code")
60417
+ ```
60418
+ </dd>
60419
+ </dl>
59376
60420
  </dd>
59377
60421
  </dl>
59378
60422
 
60423
+ #### ⚙️ Parameters
60424
+
59379
60425
  <dl>
59380
60426
  <dd>
59381
60427
 
59382
- **resource:** `String`
60428
+ <dl>
60429
+ <dd>
60430
+
60431
+ **code:** `String`
59383
60432
 
59384
60433
  </dd>
59385
60434
  </dl>
@@ -59399,7 +60448,7 @@ client.account.oauth_authorize_approve(client_id: "clientId")
59399
60448
  </dl>
59400
60449
  </details>
59401
60450
 
59402
- <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">oauth_authorize_deny</a>(request) -> Nordlet::Account::Types::OauthAuthorizeDenyAccountResponse</code></summary>
60451
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_verify</a>(request) -> Nordlet::Account::Types::TwoFactorVerifyAccountResponse</code></summary>
59403
60452
  <dl>
59404
60453
  <dd>
59405
60454
 
@@ -59411,7 +60460,7 @@ client.account.oauth_authorize_approve(client_id: "clientId")
59411
60460
  <dl>
59412
60461
  <dd>
59413
60462
 
59414
- 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`.
60463
+ Finish signing in when `account/login-link/consume` answered `twoFactorRequired`: send a current code from the authenticator app or an unused recovery code. A wrong code answers 422; after 5 wrong codes the session is deleted (401) and the user signs in again with a new link.
59415
60464
  </dd>
59416
60465
  </dl>
59417
60466
  </dd>
@@ -59426,7 +60475,7 @@ Refuse an OAuth authorization request and return the app's redirect address with
59426
60475
  <dd>
59427
60476
 
59428
60477
  ```ruby
59429
- client.account.oauth_authorize_deny(client_id: "clientId")
60478
+ client.account.two_factor_verify(code: "code")
59430
60479
  ```
59431
60480
  </dd>
59432
60481
  </dl>
@@ -59441,7 +60490,7 @@ client.account.oauth_authorize_deny(client_id: "clientId")
59441
60490
  <dl>
59442
60491
  <dd>
59443
60492
 
59444
- **client_id:** `String`
60493
+ **code:** `String`
59445
60494
 
59446
60495
  </dd>
59447
60496
  </dl>
@@ -59449,31 +60498,61 @@ client.account.oauth_authorize_deny(client_id: "clientId")
59449
60498
  <dl>
59450
60499
  <dd>
59451
60500
 
59452
- **redirect_uri:** `String`
60501
+ **request_options:** `Nordlet::Account::RequestOptions`
59453
60502
 
59454
60503
  </dd>
59455
60504
  </dl>
60505
+ </dd>
60506
+ </dl>
60507
+
59456
60508
 
60509
+ </dd>
60510
+ </dl>
60511
+ </details>
60512
+
60513
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_recovery_codes_regenerate</a>(request) -> Nordlet::Account::Types::TwoFactorRecoveryCodesRegenerateAccountResponse</code></summary>
59457
60514
  <dl>
59458
60515
  <dd>
59459
60516
 
59460
- **response_type:** `String`
59461
-
60517
+ #### 📝 Description
60518
+
60519
+ <dl>
60520
+ <dd>
60521
+
60522
+ <dl>
60523
+ <dd>
60524
+
60525
+ Replace the recovery codes with 10 new ones, shown only this once, after a current code from the authenticator app. The earlier codes stop working.
60526
+ </dd>
60527
+ </dl>
59462
60528
  </dd>
59463
60529
  </dl>
59464
60530
 
60531
+ #### 🔌 Usage
60532
+
59465
60533
  <dl>
59466
60534
  <dd>
59467
60535
 
59468
- **code_challenge:** `String`
59469
-
60536
+ <dl>
60537
+ <dd>
60538
+
60539
+ ```ruby
60540
+ client.account.two_factor_recovery_codes_regenerate(code: "code")
60541
+ ```
59470
60542
  </dd>
59471
60543
  </dl>
60544
+ </dd>
60545
+ </dl>
60546
+
60547
+ #### ⚙️ Parameters
59472
60548
 
59473
60549
  <dl>
59474
60550
  <dd>
59475
60551
 
59476
- **code_challenge_method:** `String`
60552
+ <dl>
60553
+ <dd>
60554
+
60555
+ **code:** `String`
59477
60556
 
59478
60557
  </dd>
59479
60558
  </dl>
@@ -59481,23 +60560,61 @@ client.account.oauth_authorize_deny(client_id: "clientId")
59481
60560
  <dl>
59482
60561
  <dd>
59483
60562
 
59484
- **state:** `String`
60563
+ **request_options:** `Nordlet::Account::RequestOptions`
59485
60564
 
59486
60565
  </dd>
59487
60566
  </dl>
60567
+ </dd>
60568
+ </dl>
60569
+
60570
+
60571
+ </dd>
60572
+ </dl>
60573
+ </details>
59488
60574
 
60575
+ <details><summary><code>client.account.<a href="/lib/nordlet/account/client.rb">two_factor_disable</a>(request) -> Nordlet::Account::Types::TwoFactorDisableAccountResponse</code></summary>
59489
60576
  <dl>
59490
60577
  <dd>
59491
60578
 
59492
- **scope:** `String`
59493
-
60579
+ #### 📝 Description
60580
+
60581
+ <dl>
60582
+ <dd>
60583
+
60584
+ <dl>
60585
+ <dd>
60586
+
60587
+ Turn off two-factor authentication after a current code from the authenticator app or an unused recovery code; the key and the recovery codes are deleted. Refused with 422 for a platform administrator, for whom it is required.
60588
+ </dd>
60589
+ </dl>
59494
60590
  </dd>
59495
60591
  </dl>
59496
60592
 
60593
+ #### 🔌 Usage
60594
+
59497
60595
  <dl>
59498
60596
  <dd>
59499
60597
 
59500
- **resource:** `String`
60598
+ <dl>
60599
+ <dd>
60600
+
60601
+ ```ruby
60602
+ client.account.two_factor_disable(code: "code")
60603
+ ```
60604
+ </dd>
60605
+ </dl>
60606
+ </dd>
60607
+ </dl>
60608
+
60609
+ #### ⚙️ Parameters
60610
+
60611
+ <dl>
60612
+ <dd>
60613
+
60614
+ <dl>
60615
+ <dd>
60616
+
60617
+ **code:** `String`
59501
60618
 
59502
60619
  </dd>
59503
60620
  </dl>