nordlet 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/bank/client.rb +19 -16
  3. data/lib/nordlet/billing/client.rb +3 -1
  4. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +2 -0
  5. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +2 -0
  6. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +2 -0
  7. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +2 -0
  8. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +2 -0
  9. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +2 -0
  10. data/lib/nordlet/calendar/types/submit_calendar_response.rb +2 -0
  11. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +2 -0
  12. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +2 -0
  13. data/lib/nordlet/capture/types/documents_confirm_capture_request_lines_item.rb +4 -0
  14. data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +4 -0
  15. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_lines_item.rb +8 -0
  16. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +8 -0
  17. data/lib/nordlet/cash/client.rb +7 -6
  18. data/lib/nordlet/catalog/client.rb +145 -2
  19. data/lib/nordlet/catalog/types/items_create_catalog_response.rb +2 -0
  20. data/lib/nordlet/catalog/types/items_create_catalog_response_alternative_units_item.rb +21 -0
  21. data/lib/nordlet/catalog/types/items_get_catalog_response.rb +2 -0
  22. data/lib/nordlet/catalog/types/items_get_catalog_response_alternative_units_item.rb +21 -0
  23. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item.rb +2 -0
  24. data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item_alternative_units_item.rb +21 -0
  25. data/lib/nordlet/catalog/types/items_units_create_catalog_request.rb +21 -0
  26. data/lib/nordlet/catalog/types/items_units_create_catalog_response.rb +27 -0
  27. data/lib/nordlet/catalog/types/items_units_delete_catalog_request.rb +11 -0
  28. data/lib/nordlet/catalog/types/items_units_delete_catalog_response.rb +11 -0
  29. data/lib/nordlet/catalog/types/items_units_list_catalog_request.rb +11 -0
  30. data/lib/nordlet/catalog/types/items_units_list_catalog_response.rb +11 -0
  31. data/lib/nordlet/catalog/types/items_units_list_catalog_response_rows_item.rb +27 -0
  32. data/lib/nordlet/catalog/types/items_units_update_catalog_request.rb +19 -0
  33. data/lib/nordlet/catalog/types/items_units_update_catalog_response.rb +27 -0
  34. data/lib/nordlet/catalog/types/items_update_catalog_response.rb +2 -0
  35. data/lib/nordlet/catalog/types/items_update_catalog_response_alternative_units_item.rb +21 -0
  36. data/lib/nordlet/catalog/types/units_create_catalog_request.rb +2 -0
  37. data/lib/nordlet/catalog/types/units_create_catalog_response.rb +2 -0
  38. data/lib/nordlet/catalog/types/units_list_catalog_response_rows_item.rb +2 -0
  39. data/lib/nordlet/catalog/types/units_update_catalog_request.rb +2 -0
  40. data/lib/nordlet/catalog/types/units_update_catalog_response.rb +2 -0
  41. data/lib/nordlet/declarations/client.rb +46 -5
  42. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request.rb +2 -0
  43. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item.rb +25 -0
  44. data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item_lines_item.rb +13 -0
  45. data/lib/nordlet/declarations/types/submissions_confirm_declarations_request.rb +11 -0
  46. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +71 -0
  47. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_environment.rb +14 -0
  48. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_status.rb +16 -0
  49. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +2 -0
  50. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +2 -0
  51. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +2 -0
  52. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +2 -0
  53. data/lib/nordlet/ecommerce/client.rb +12 -9
  54. data/lib/nordlet/fleet/client.rb +8 -4
  55. data/lib/nordlet/fleet/types/vehicles_create_fleet_request.rb +2 -0
  56. data/lib/nordlet/fleet/types/vehicles_create_fleet_response.rb +2 -0
  57. data/lib/nordlet/fleet/types/vehicles_get_fleet_response.rb +2 -0
  58. data/lib/nordlet/fleet/types/vehicles_list_fleet_response_rows_item.rb +2 -0
  59. data/lib/nordlet/fleet/types/vehicles_update_fleet_request.rb +2 -0
  60. data/lib/nordlet/fleet/types/vehicles_update_fleet_response.rb +2 -0
  61. data/lib/nordlet/inventory/client.rb +28 -23
  62. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +2 -0
  63. data/lib/nordlet/payroll/client.rb +16 -12
  64. data/lib/nordlet/pos/client.rb +126 -9
  65. data/lib/nordlet/pos/types/refunds_create_pos_request.rb +17 -0
  66. data/lib/nordlet/pos/types/refunds_create_pos_request_lines_item.rb +13 -0
  67. data/lib/nordlet/pos/types/refunds_create_pos_response.rb +33 -0
  68. data/lib/nordlet/pos/types/refunds_create_pos_response_lines_item.rb +23 -0
  69. data/lib/nordlet/pos/types/refunds_get_pos_request.rb +11 -0
  70. data/lib/nordlet/pos/types/refunds_get_pos_response.rb +33 -0
  71. data/lib/nordlet/pos/types/refunds_get_pos_response_lines_item.rb +23 -0
  72. data/lib/nordlet/pos/types/refunds_list_pos_request.rb +19 -0
  73. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item.rb +15 -0
  74. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_op.rb +18 -0
  75. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value.rb +19 -0
  76. data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value_three_item.rb +15 -0
  77. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item.rb +13 -0
  78. data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item_dir.rb +14 -0
  79. data/lib/nordlet/pos/types/refunds_list_pos_response.rb +21 -0
  80. data/lib/nordlet/pos/types/refunds_list_pos_response_rows_item.rb +31 -0
  81. data/lib/nordlet/production/client.rb +20 -14
  82. data/lib/nordlet/production/types/maintenance_cancel_production_response.rb +2 -0
  83. data/lib/nordlet/production/types/maintenance_complete_production_request.rb +2 -0
  84. data/lib/nordlet/production/types/maintenance_complete_production_response.rb +2 -0
  85. data/lib/nordlet/production/types/maintenance_create_production_request.rb +2 -0
  86. data/lib/nordlet/production/types/maintenance_create_production_response.rb +2 -0
  87. data/lib/nordlet/production/types/maintenance_list_production_response_rows_item.rb +2 -0
  88. data/lib/nordlet/public/client.rb +6 -5
  89. data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
  90. data/lib/nordlet/purchases/client.rb +12 -9
  91. data/lib/nordlet/purchases/types/invoices_create_purchases_request_lines_item.rb +4 -0
  92. data/lib/nordlet/purchases/types/invoices_create_purchases_response_lines_item.rb +8 -0
  93. data/lib/nordlet/purchases/types/invoices_get_purchases_response_lines_item.rb +8 -0
  94. data/lib/nordlet/purchases/types/invoices_register_purchases_response_lines_item.rb +8 -0
  95. data/lib/nordlet/purchases/types/invoices_update_purchases_request_lines_item.rb +4 -0
  96. data/lib/nordlet/purchases/types/invoices_update_purchases_response_lines_item.rb +8 -0
  97. data/lib/nordlet/purchases/types/orders_approve_purchases_response_lines_item.rb +4 -0
  98. data/lib/nordlet/purchases/types/orders_cancel_purchases_response_lines_item.rb +4 -0
  99. data/lib/nordlet/purchases/types/orders_close_purchases_response_lines_item.rb +4 -0
  100. data/lib/nordlet/purchases/types/orders_create_purchases_request_lines_item.rb +4 -0
  101. data/lib/nordlet/purchases/types/orders_create_purchases_response_lines_item.rb +4 -0
  102. data/lib/nordlet/purchases/types/orders_get_purchases_response_lines_item.rb +4 -0
  103. data/lib/nordlet/purchases/types/orders_reject_purchases_response_lines_item.rb +4 -0
  104. data/lib/nordlet/purchases/types/orders_submit_purchases_response_lines_item.rb +4 -0
  105. data/lib/nordlet/purchases/types/orders_update_purchases_request_lines_item.rb +4 -0
  106. data/lib/nordlet/purchases/types/orders_update_purchases_response_lines_item.rb +4 -0
  107. data/lib/nordlet/reports/client.rb +3 -3
  108. data/lib/nordlet/sales/client.rb +26 -19
  109. data/lib/nordlet/sales/types/acts_create_sales_response_lines_item.rb +4 -0
  110. data/lib/nordlet/sales/types/acts_get_sales_response_lines_item.rb +4 -0
  111. data/lib/nordlet/sales/types/acts_issue_sales_response_lines_item.rb +4 -0
  112. data/lib/nordlet/sales/types/acts_update_sales_response_lines_item.rb +4 -0
  113. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +4 -0
  114. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +4 -0
  115. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +4 -0
  116. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +4 -0
  117. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +2 -0
  118. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +4 -0
  119. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +4 -0
  120. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +4 -0
  121. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
  122. data/lib/nordlet/transport/types/waybills_create_transport_response_lines_item.rb +4 -0
  123. data/lib/nordlet/transport/types/waybills_get_transport_response_lines_item.rb +4 -0
  124. data/lib/nordlet/transport/types/waybills_issue_transport_response_lines_item.rb +4 -0
  125. data/lib/nordlet/transport/types/waybills_update_transport_response_lines_item.rb +4 -0
  126. data/lib/nordlet/version.rb +1 -1
  127. data/lib/nordlet.rb +35 -0
  128. data/reference.md +728 -37
  129. metadata +37 -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>
@@ -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>
@@ -45960,6 +46402,255 @@ client.pos.receipts_get(id: "id")
45960
46402
  </dl>
45961
46403
 
45962
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`
46467
+
46468
+ </dd>
46469
+ </dl>
46470
+
46471
+ <dl>
46472
+ <dd>
46473
+
46474
+ **date:** `String`
46475
+
46476
+ </dd>
46477
+ </dl>
46478
+
46479
+ <dl>
46480
+ <dd>
46481
+
46482
+ **lines:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsCreatePosRequestLinesItem]`
46483
+
46484
+ </dd>
46485
+ </dl>
46486
+
46487
+ <dl>
46488
+ <dd>
46489
+
46490
+ **request_options:** `Nordlet::Pos::RequestOptions`
46491
+
46492
+ </dd>
46493
+ </dl>
46494
+ </dd>
46495
+ </dl>
46496
+
46497
+
46498
+ </dd>
46499
+ </dl>
46500
+ </details>
46501
+
46502
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_get</a>(request) -> Nordlet::Pos::Types::RefundsGetPosResponse</code></summary>
46503
+ <dl>
46504
+ <dd>
46505
+
46506
+ #### 📝 Description
46507
+
46508
+ <dl>
46509
+ <dd>
46510
+
46511
+ <dl>
46512
+ <dd>
46513
+
46514
+ Read one POS refund with its lines.
46515
+ </dd>
46516
+ </dl>
46517
+ </dd>
46518
+ </dl>
46519
+
46520
+ #### 🔌 Usage
46521
+
46522
+ <dl>
46523
+ <dd>
46524
+
46525
+ <dl>
46526
+ <dd>
46527
+
46528
+ ```ruby
46529
+ client.pos.refunds_get(id: "id")
46530
+ ```
46531
+ </dd>
46532
+ </dl>
46533
+ </dd>
46534
+ </dl>
46535
+
46536
+ #### ⚙️ Parameters
46537
+
46538
+ <dl>
46539
+ <dd>
46540
+
46541
+ <dl>
46542
+ <dd>
46543
+
46544
+ **id:** `String`
46545
+
46546
+ </dd>
46547
+ </dl>
46548
+
46549
+ <dl>
46550
+ <dd>
46551
+
46552
+ **request_options:** `Nordlet::Pos::RequestOptions`
46553
+
46554
+ </dd>
46555
+ </dl>
46556
+ </dd>
46557
+ </dl>
46558
+
46559
+
46560
+ </dd>
46561
+ </dl>
46562
+ </details>
46563
+
46564
+ <details><summary><code>client.pos.<a href="/lib/nordlet/pos/client.rb">refunds_list</a>(request) -> Nordlet::Pos::Types::RefundsListPosResponse</code></summary>
46565
+ <dl>
46566
+ <dd>
46567
+
46568
+ #### 📝 Description
46569
+
46570
+ <dl>
46571
+ <dd>
46572
+
46573
+ <dl>
46574
+ <dd>
46575
+
46576
+ List POS refunds without their lines. Filterable by `shiftId` and `receiptId`; sortable by `date` and `createdAt`.
46577
+ </dd>
46578
+ </dl>
46579
+ </dd>
46580
+ </dl>
46581
+
46582
+ #### 🔌 Usage
46583
+
46584
+ <dl>
46585
+ <dd>
46586
+
46587
+ <dl>
46588
+ <dd>
46589
+
46590
+ ```ruby
46591
+ client.pos.refunds_list
46592
+ ```
46593
+ </dd>
46594
+ </dl>
46595
+ </dd>
46596
+ </dl>
46597
+
46598
+ #### ⚙️ Parameters
46599
+
46600
+ <dl>
46601
+ <dd>
46602
+
46603
+ <dl>
46604
+ <dd>
46605
+
46606
+ **page:** `Integer`
46607
+
46608
+ </dd>
46609
+ </dl>
46610
+
46611
+ <dl>
46612
+ <dd>
46613
+
46614
+ **page_size:** `Integer`
46615
+
46616
+ </dd>
46617
+ </dl>
46618
+
46619
+ <dl>
46620
+ <dd>
46621
+
46622
+ **sort:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestSortItem]`
46623
+
46624
+ </dd>
46625
+ </dl>
46626
+
46627
+ <dl>
46628
+ <dd>
46629
+
46630
+ **filter:** `Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestFilterItem]`
46631
+
46632
+ </dd>
46633
+ </dl>
46634
+
46635
+ <dl>
46636
+ <dd>
46637
+
46638
+ **totals:** `Internal::Types::Array[String]` — Numeric fields to sum over every row matching the filter (not only the current page)
46639
+
46640
+ </dd>
46641
+ </dl>
46642
+
46643
+ <dl>
46644
+ <dd>
46645
+
46646
+ **request_options:** `Nordlet::Pos::RequestOptions`
46647
+
46648
+ </dd>
46649
+ </dl>
46650
+ </dd>
46651
+ </dl>
46652
+
46653
+
45963
46654
  </dd>
45964
46655
  </dl>
45965
46656
  </details>
@@ -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>
@@ -47724,7 +48415,7 @@ client.bank.transactions_list
47724
48415
  <dl>
47725
48416
  <dd>
47726
48417
 
47727
- Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable, payable or net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. `invoiceAmount` states the amount settled on an invoice in another currency; in the same currency it must equal the payment (422). Answers 409 when the line is already matched, when the amount exceeds the remaining balance of the document or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
48418
+ Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing money. Posts the payment journal transaction between the bank account and the receivable or payable account the invoice was posted to (the account of its operation type, else the posting rule) or the net payable account, with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the line to matched. A payment in another currency is converted into the invoice currency at the rate of the line date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the amount settled instead; in the same currency it must equal the payment (422). Answers 409 when the line is already matched, when the amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document or when the accounting period of the line date is locked. A document that becomes fully paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
47728
48419
  </dd>
47729
48420
  </dl>
47730
48421
  </dd>
@@ -50343,7 +51034,7 @@ client.bank.settlements_unlink(id: "id")
50343
51034
  <dl>
50344
51035
  <dd>
50345
51036
 
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.
51037
+ Post a settlement batch dated `date` (default: the payout date, else today): the bank account receives the net payout, the matched sale invoices are settled against the receivable account each was posted to (its operation type's account, else the posting rule; the receivable of each partner in a journal transaction of its own when invoices of several partners are settled), the provider fees, the marketplace commission and the seller payable are booked, and a payout in another currency is converted at the rate of that date with the exchange difference against each invoice's own rate on the gain or loss account. A line without a matched invoice is split by its own rate or amount, else by `commissionPercent`, else parked on the suspense account; a line already imported as a movement of a bank account is posted against that account instead. Answers 409 when the batch is already posted or the period is locked, 422 when it has no lines. The payout is linked to the bank line a match rule recognises. Emits `settlement.posted`, `sale_invoice.paid` for each invoice that becomes paid and `refund_liability.actual` for refunds of invoices carrying a refund liability.
50347
51038
  </dd>
50348
51039
  </dl>
50349
51040
  </dd>
@@ -53722,7 +54413,7 @@ client.reports.cost_center_activity(
53722
54413
  <dl>
53723
54414
  <dd>
53724
54415
 
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.
54416
+ Net purchases in the base currency per cost centre and item for a period, from the lines of registered purchase invoices (by registration date) that carry a cost centre, credit notes counting negative; `costCenterId` limits the report to one cost centre. A line without an item is reported under its description.
53726
54417
  </dd>
53727
54418
  </dl>
53728
54419
  </dd>
@@ -55092,7 +55783,7 @@ client.public.integration_requests(
55092
55783
  <dl>
55093
55784
  <dd>
55094
55785
 
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.
55786
+ Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`). Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice has `payLinkEnabled` false or the company has no template, and 409 when the invoice is already paid.
55096
55787
  </dd>
55097
55788
  </dl>
55098
55789
  </dd>
@@ -55216,7 +55907,7 @@ client.public.invoices_get(token: "token")
55216
55907
  <dl>
55217
55908
  <dd>
55218
55909
 
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.
55910
+ Open a Stripe Checkout page on the company's connected Stripe account for the amount still unpaid on the issued invoice that carries this customer token, and return its `url`. Stripe sends the customer back to the public invoice page. Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice has `payLinkEnabled` false or the company has no Stripe account that can take charges, 409 when the invoice is already paid or a completed card payment for it was received and waits for the payout, and 422 when Stripe cannot take the amount in the invoice currency.
55220
55911
  </dd>
55221
55912
  </dl>
55222
55913
  </dd>
@@ -55395,7 +56086,7 @@ client.billing.account_get
55395
56086
  <dl>
55396
56087
  <dd>
55397
56088
 
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.
56089
+ Change the plan of the user's flat-rate billing account of the request's site; answers 422 when the plan is not one of that site's plans and 409 when the account type is not `flat_rate`. With a Stripe subscription and payments configured, the subscription is moved to the new plan. On the day of the change, the plan fee (without a subscription) and the storage are split by hour, each hour at the plan in force when the hour starts, and the sale invoices of the day count against the plan in force when they were made.
55399
56090
  </dd>
55400
56091
  </dl>
55401
56092
  </dd>