nordlet 0.6.10 → 0.7.0

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 (429) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +55 -7
  3. data/lib/nordlet/account/types/companies_context_account_request.rb +9 -0
  4. data/lib/nordlet/account/types/companies_context_account_response.rb +23 -0
  5. data/lib/nordlet/account/types/companies_context_account_response_bank_accounts_item.rb +23 -0
  6. data/lib/nordlet/account/types/companies_context_account_response_filings_item.rb +27 -0
  7. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings.rb +17 -0
  8. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings_operation.rb +13 -0
  9. data/lib/nordlet/account/types/companies_context_account_response_payroll.rb +15 -0
  10. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item.rb +17 -0
  11. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item_kind.rb +15 -0
  12. data/lib/nordlet/account/types/companies_context_account_response_periods.rb +13 -0
  13. data/lib/nordlet/account/types/companies_context_account_response_periods_locked_item.rb +13 -0
  14. data/lib/nordlet/account/types/companies_context_account_response_periods_open_item.rb +13 -0
  15. data/lib/nordlet/account/types/companies_context_account_response_profile.rb +105 -0
  16. data/lib/nordlet/account/types/companies_context_account_response_profile_accounts_kept_by.rb +14 -0
  17. data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +19 -0
  18. data/lib/nordlet/account/types/companies_context_account_response_profile_fiscal_year_week_rule.rb +14 -0
  19. data/lib/nordlet/account/types/companies_context_account_response_profile_status.rb +15 -0
  20. data/lib/nordlet/account/types/companies_context_account_response_profile_vat_period.rb +17 -0
  21. data/lib/nordlet/account/types/companies_context_account_response_vat_types_used_item.rb +19 -0
  22. data/lib/nordlet/account/types/companies_create_account_request.rb +10 -0
  23. data/lib/nordlet/account/types/companies_create_account_request_address.rb +2 -0
  24. data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +4 -221
  25. data/lib/nordlet/account/types/companies_create_account_request_fiscal_year_week_rule.rb +14 -0
  26. data/lib/nordlet/account/types/companies_profile_account_response.rb +11 -1
  27. data/lib/nordlet/account/types/companies_profile_account_response_address.rb +2 -0
  28. data/lib/nordlet/account/types/companies_profile_account_response_fiscal_year_week_rule.rb +14 -0
  29. data/lib/nordlet/account/types/companies_update_account_request.rb +10 -0
  30. data/lib/nordlet/account/types/companies_update_account_request_address.rb +2 -0
  31. data/lib/nordlet/account/types/companies_update_account_request_fiscal_year_week_rule.rb +14 -0
  32. data/lib/nordlet/account/types/companies_update_account_response.rb +11 -1
  33. data/lib/nordlet/account/types/companies_update_account_response_address.rb +2 -0
  34. data/lib/nordlet/account/types/companies_update_account_response_fiscal_year_week_rule.rb +14 -0
  35. data/lib/nordlet/agreements/client.rb +3 -1
  36. data/lib/nordlet/assets/client.rb +9 -2
  37. data/lib/nordlet/assets/types/assets_create_assets_response.rb +2 -0
  38. data/lib/nordlet/assets/types/assets_dispose_assets_request.rb +2 -0
  39. data/lib/nordlet/assets/types/assets_dispose_assets_response.rb +2 -0
  40. data/lib/nordlet/assets/types/assets_get_assets_response.rb +2 -0
  41. data/lib/nordlet/assets/types/assets_input_vat_assets_response.rb +2 -0
  42. data/lib/nordlet/assets/types/assets_list_assets_response_rows_item.rb +2 -0
  43. data/lib/nordlet/assets/types/assets_modernize_assets_response.rb +2 -0
  44. data/lib/nordlet/assets/types/assets_update_assets_response.rb +2 -0
  45. data/lib/nordlet/audit/client.rb +3 -2
  46. data/lib/nordlet/bank/client.rb +127 -47
  47. data/lib/nordlet/bank/types/accounts_create_bank_request.rb +6 -0
  48. data/lib/nordlet/bank/types/accounts_create_bank_request_payment_file_settings.rb +27 -0
  49. data/lib/nordlet/bank/types/accounts_create_bank_response.rb +6 -0
  50. data/lib/nordlet/bank/types/accounts_create_bank_response_payment_file_settings.rb +25 -0
  51. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +6 -0
  52. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_payment_file_settings.rb +25 -0
  53. data/lib/nordlet/bank/types/accounts_update_bank_request.rb +6 -0
  54. data/lib/nordlet/bank/types/accounts_update_bank_request_payment_file_settings.rb +27 -0
  55. data/lib/nordlet/bank/types/accounts_update_bank_response.rb +6 -0
  56. data/lib/nordlet/bank/types/accounts_update_bank_response_payment_file_settings.rb +25 -0
  57. data/lib/nordlet/bank/types/direct_debits_export_bank_response.rb +7 -1
  58. data/lib/nordlet/bank/types/direct_debits_export_bank_response_format.rb +16 -0
  59. data/lib/nordlet/bank/types/mandates_auddis_export_bank_request.rb +15 -0
  60. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response.rb +29 -0
  61. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response_format.rb +16 -0
  62. data/lib/nordlet/bank/types/mandates_cancel_bank_response.rb +12 -2
  63. data/lib/nordlet/bank/types/mandates_cancel_bank_response_account_type.rb +14 -0
  64. data/lib/nordlet/bank/types/mandates_cancel_bank_response_scheme.rb +3 -0
  65. data/lib/nordlet/bank/types/mandates_create_bank_request.rb +7 -1
  66. data/lib/nordlet/bank/types/mandates_create_bank_request_account_type.rb +14 -0
  67. data/lib/nordlet/bank/types/mandates_create_bank_request_scheme.rb +3 -0
  68. data/lib/nordlet/bank/types/mandates_create_bank_response.rb +12 -2
  69. data/lib/nordlet/bank/types/mandates_create_bank_response_account_type.rb +14 -0
  70. data/lib/nordlet/bank/types/mandates_create_bank_response_scheme.rb +3 -0
  71. data/lib/nordlet/bank/types/mandates_get_bank_response.rb +12 -2
  72. data/lib/nordlet/bank/types/mandates_get_bank_response_account_type.rb +14 -0
  73. data/lib/nordlet/bank/types/mandates_get_bank_response_scheme.rb +3 -0
  74. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item.rb +12 -2
  75. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_account_type.rb +14 -0
  76. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_scheme.rb +3 -0
  77. data/lib/nordlet/bank/types/mandates_update_bank_response.rb +12 -2
  78. data/lib/nordlet/bank/types/mandates_update_bank_response_account_type.rb +14 -0
  79. data/lib/nordlet/bank/types/mandates_update_bank_response_scheme.rb +3 -0
  80. data/lib/nordlet/bank/types/payments_export_bank_response.rb +5 -1
  81. data/lib/nordlet/bank/types/payments_export_bank_response_format.rb +16 -0
  82. data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
  83. data/lib/nordlet/calendar/client.rb +7 -1
  84. data/lib/nordlet/calendar/types/create_calendar_response.rb +2 -0
  85. data/lib/nordlet/calendar/types/create_calendar_response_correction.rb +17 -0
  86. data/lib/nordlet/calendar/types/create_calendar_response_correction_optional_item.rb +16 -0
  87. data/lib/nordlet/calendar/types/create_calendar_response_correction_reason_codes_item.rb +13 -0
  88. data/lib/nordlet/calendar/types/create_calendar_response_correction_required_item.rb +16 -0
  89. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +4 -0
  90. data/lib/nordlet/calendar/types/create_calendar_response_submission_correction_input.rb +17 -0
  91. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +4 -0
  92. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item_correction_input.rb +17 -0
  93. data/lib/nordlet/calendar/types/get_calendar_response.rb +2 -0
  94. data/lib/nordlet/calendar/types/get_calendar_response_correction.rb +17 -0
  95. data/lib/nordlet/calendar/types/get_calendar_response_correction_optional_item.rb +16 -0
  96. data/lib/nordlet/calendar/types/get_calendar_response_correction_reason_codes_item.rb +13 -0
  97. data/lib/nordlet/calendar/types/get_calendar_response_correction_required_item.rb +16 -0
  98. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +4 -0
  99. data/lib/nordlet/calendar/types/get_calendar_response_submission_correction_input.rb +17 -0
  100. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +4 -0
  101. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item_correction_input.rb +17 -0
  102. data/lib/nordlet/calendar/types/list_calendar_response_rows_item.rb +2 -0
  103. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction.rb +17 -0
  104. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_optional_item.rb +16 -0
  105. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_reason_codes_item.rb +13 -0
  106. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_required_item.rb +16 -0
  107. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +4 -0
  108. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission_correction_input.rb +17 -0
  109. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +4 -0
  110. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item_correction_input.rb +17 -0
  111. data/lib/nordlet/calendar/types/submit_calendar_request.rb +6 -0
  112. data/lib/nordlet/calendar/types/submit_calendar_request_correction.rb +17 -0
  113. data/lib/nordlet/calendar/types/submit_calendar_request_device.rb +22 -0
  114. data/lib/nordlet/calendar/types/submit_calendar_request_device_screens_item.rb +17 -0
  115. data/lib/nordlet/calendar/types/submit_calendar_request_device_window_size.rb +13 -0
  116. data/lib/nordlet/calendar/types/submit_calendar_response.rb +4 -0
  117. data/lib/nordlet/calendar/types/submit_calendar_response_correction_input.rb +17 -0
  118. data/lib/nordlet/calendar/types/update_calendar_response.rb +2 -0
  119. data/lib/nordlet/calendar/types/update_calendar_response_correction.rb +17 -0
  120. data/lib/nordlet/calendar/types/update_calendar_response_correction_optional_item.rb +16 -0
  121. data/lib/nordlet/calendar/types/update_calendar_response_correction_reason_codes_item.rb +13 -0
  122. data/lib/nordlet/calendar/types/update_calendar_response_correction_required_item.rb +16 -0
  123. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +4 -0
  124. data/lib/nordlet/calendar/types/update_calendar_response_submission_correction_input.rb +17 -0
  125. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +4 -0
  126. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item_correction_input.rb +17 -0
  127. data/lib/nordlet/cash/client.rb +7 -5
  128. data/lib/nordlet/catalog/client.rb +7 -5
  129. data/lib/nordlet/client.rb +5 -0
  130. data/lib/nordlet/declarations/client.rb +881 -89
  131. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +1 -1
  132. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +1 -1
  133. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_request.rb +21 -0
  134. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response.rb +29 -0
  135. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item.rb +33 -0
  136. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item_rate.rb +15 -0
  137. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_request.rb +9 -0
  138. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_response.rb +11 -0
  139. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_request.rb +13 -0
  140. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_response.rb +11 -0
  141. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
  142. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
  143. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
  144. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
  145. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
  146. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
  147. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
  148. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
  149. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
  150. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
  151. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
  152. data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_vat_obligations_list_declarations_request_status.rb} +3 -3
  153. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
  154. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
  155. data/lib/nordlet/declarations/types/{configs_list_declarations_response_rows_item_fields_item_company_field.rb → gb_vat_obligations_list_declarations_response_obligations_item_status.rb} +3 -3
  156. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
  157. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
  158. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
  159. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
  160. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
  161. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
  162. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
  163. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
  164. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
  165. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
  166. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
  167. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
  168. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
  169. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
  170. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
  171. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +4 -0
  172. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_correction_input.rb +17 -0
  173. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_request.rb +11 -0
  174. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response.rb +15 -0
  175. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response_changes_item.rb +17 -0
  176. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +4 -0
  177. data/lib/nordlet/declarations/types/submissions_create_declarations_response_correction_input.rb +17 -0
  178. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +8 -0
  179. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction.rb +17 -0
  180. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_input.rb +17 -0
  181. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_optional_item.rb +16 -0
  182. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_reason_codes_item.rb +13 -0
  183. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_required_item.rb +16 -0
  184. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +4 -0
  185. data/lib/nordlet/declarations/types/submissions_mark_declarations_response_correction_input.rb +17 -0
  186. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +4 -0
  187. data/lib/nordlet/declarations/types/submissions_retry_declarations_response_correction_input.rb +17 -0
  188. data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
  189. data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
  190. data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
  191. data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
  192. data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
  193. data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
  194. data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
  195. data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
  196. data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
  197. data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
  198. data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
  199. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
  200. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
  201. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
  202. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
  203. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
  204. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
  205. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
  206. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +13 -0
  207. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +23 -0
  208. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
  209. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
  210. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +19 -0
  211. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
  212. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
  213. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
  214. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
  215. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
  216. data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
  217. data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
  218. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
  219. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
  220. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
  221. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
  222. data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
  223. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
  224. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
  225. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
  226. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
  227. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
  228. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_request.rb +11 -0
  229. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_response.rb +13 -0
  230. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_request.rb +9 -0
  231. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response.rb +11 -0
  232. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response_rows_item.rb +13 -0
  233. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_request.rb +13 -0
  234. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_response.rb +13 -0
  235. data/lib/nordlet/document_series/client.rb +2 -1
  236. data/lib/nordlet/files/client.rb +2 -2
  237. data/lib/nordlet/fleet/client.rb +3 -1
  238. data/lib/nordlet/hr/client.rb +15 -10
  239. data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
  240. data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
  241. data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
  242. data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
  243. data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
  244. data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
  245. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
  246. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
  247. data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
  248. data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
  249. data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
  250. data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
  251. data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
  252. data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
  253. data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
  254. data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
  255. data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
  256. data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
  257. data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
  258. data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
  259. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
  260. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
  261. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
  262. data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
  263. data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
  264. data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
  265. data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
  266. data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
  267. data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
  268. data/lib/nordlet/inventory/client.rb +14 -6
  269. data/lib/nordlet/inventory/types/stock_receive_inventory_request.rb +2 -0
  270. data/lib/nordlet/inventory/types/stock_receive_inventory_response.rb +4 -0
  271. data/lib/nordlet/inventory/types/stock_receive_inventory_response_warnings_item.rb +15 -0
  272. data/lib/nordlet/leads/client.rb +2 -1
  273. data/lib/nordlet/ledger/client.rb +176 -11
  274. data/lib/nordlet/ledger/types/accruals_create_ledger_request.rb +15 -0
  275. data/lib/nordlet/ledger/types/accruals_create_ledger_request_lines_item.rb +19 -0
  276. data/lib/nordlet/ledger/types/accruals_create_ledger_response.rb +17 -0
  277. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_request.rb +13 -0
  278. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_response.rb +13 -0
  279. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_request.rb +11 -0
  280. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response.rb +25 -0
  281. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item.rb +19 -0
  282. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item_kind.rb +15 -0
  283. data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request_entries_item.rb +2 -0
  284. data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response_entries_item.rb +2 -0
  285. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +5 -0
  286. data/lib/nordlet/ledger/types/tax_provision_post_ledger_request.rb +13 -0
  287. data/lib/nordlet/ledger/types/tax_provision_post_ledger_response.rb +17 -0
  288. data/lib/nordlet/migration/client.rb +5 -1
  289. data/lib/nordlet/operation_types/client.rb +4 -1
  290. data/lib/nordlet/partners/client.rb +68 -20
  291. data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
  292. data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
  293. data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
  294. data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
  295. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
  296. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
  297. data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
  298. data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
  299. data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
  300. data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
  301. data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
  302. data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
  303. data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
  304. data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
  305. data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
  306. data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
  307. data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
  308. data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
  309. data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
  310. data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
  311. data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
  312. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +4 -0
  313. data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
  314. data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
  315. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
  316. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
  317. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
  318. data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
  319. data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
  320. data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
  321. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
  322. data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
  323. data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
  324. data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
  325. data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
  326. data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
  327. data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
  328. data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
  329. data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
  330. data/lib/nordlet/payroll/client.rb +93 -33
  331. data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
  332. data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
  333. data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
  334. data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
  335. data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
  336. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +2 -2
  337. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
  338. data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
  339. data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
  340. data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
  341. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
  342. data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
  343. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
  344. data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
  345. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
  346. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
  347. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
  348. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
  349. data/lib/nordlet/platform_sellers/client.rb +3 -1
  350. data/lib/nordlet/production/client.rb +4 -2
  351. data/lib/nordlet/projects/client.rb +3 -2
  352. data/lib/nordlet/public/types/invoices_get_public_response_status.rb +1 -0
  353. data/lib/nordlet/purchases/client.rb +20 -12
  354. data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +2 -0
  355. data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +2 -0
  356. data/lib/nordlet/reference/client.rb +18 -9
  357. data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
  358. data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
  359. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
  360. data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
  361. data/lib/nordlet/review/client.rb +55 -0
  362. data/lib/nordlet/review/types/queue_list_review_request.rb +9 -0
  363. data/lib/nordlet/review/types/queue_list_review_response.rb +13 -0
  364. data/lib/nordlet/review/types/queue_list_review_response_items_item.rb +19 -0
  365. data/lib/nordlet/review/types/queue_list_review_response_items_item_kind.rb +16 -0
  366. data/lib/nordlet/sales/client.rb +65 -17
  367. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
  368. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
  369. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
  370. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +2 -0
  371. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_status.rb +1 -0
  372. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
  373. data/lib/nordlet/sales/types/invoices_create_sales_request_lines_item.rb +2 -0
  374. data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
  375. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
  376. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +2 -0
  377. data/lib/nordlet/sales/types/invoices_create_sales_response_status.rb +1 -0
  378. data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
  379. data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +2 -0
  380. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
  381. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +2 -0
  382. data/lib/nordlet/sales/types/invoices_get_sales_response_status.rb +1 -0
  383. data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
  384. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
  385. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +2 -0
  386. data/lib/nordlet/sales/types/invoices_issue_sales_response_status.rb +1 -0
  387. data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
  388. data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +2 -0
  389. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
  390. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_status.rb +1 -0
  391. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
  392. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
  393. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +2 -0
  394. data/lib/nordlet/sales/types/invoices_lock_sales_response_status.rb +1 -0
  395. data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
  396. data/lib/nordlet/sales/types/invoices_reverse_sales_request.rb +13 -0
  397. data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +149 -0
  398. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item.rb +61 -0
  399. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_method.rb +16 -0
  400. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_milestones_item.rb +15 -0
  401. data/lib/nordlet/sales/types/invoices_reverse_sales_response_payment_status.rb +15 -0
  402. data/lib/nordlet/sales/types/invoices_reverse_sales_response_status.rb +15 -0
  403. data/lib/nordlet/sales/types/invoices_reverse_sales_response_type.rb +16 -0
  404. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence.rb +25 -0
  405. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_location.rb +13 -0
  406. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_partner.rb +17 -0
  407. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rate_table.rb +17 -0
  408. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rates_item.rb +15 -0
  409. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_scheme.rb +15 -0
  410. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_vies.rb +23 -0
  411. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +22 -0
  412. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
  413. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +2 -0
  414. data/lib/nordlet/sales/types/invoices_unlock_sales_response_status.rb +1 -0
  415. data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
  416. data/lib/nordlet/sales/types/invoices_update_sales_request_lines_item.rb +2 -0
  417. data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
  418. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
  419. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +2 -0
  420. data/lib/nordlet/sales/types/invoices_update_sales_response_status.rb +1 -0
  421. data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
  422. data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +1 -0
  423. data/lib/nordlet/transport/client.rb +2 -1
  424. data/lib/nordlet/version.rb +1 -1
  425. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +3 -0
  426. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +3 -0
  427. data/lib/nordlet.rb +229 -2
  428. data/reference.md +3694 -1090
  429. metadata +231 -4
@@ -677,8 +677,10 @@ module Nordlet
677
677
  end
678
678
  end
679
679
 
680
- # Which platform sellers are reportable for the year (Council Directive (EU) 2021/514, Annex V) and why the others
681
- # are excluded, the data still missing, and how the company files the report in its Member State.
680
+ # Which platform sellers are reportable for the year (Council Directive (EU) 2021/514, Annex V; for a UK company,
681
+ # the HMRC digital platform reporting rules and the jurisdictions HMRC lists as reportable for the year) and why
682
+ # the others are excluded, the data still missing, and how the company files the report in its Member State or
683
+ # with HMRC.
682
684
  #
683
685
  # @param request_options [Hash]
684
686
  # @param params [Nordlet::Declarations::Types::EuDac7PreviewDeclarationsRequest]
@@ -712,7 +714,8 @@ module Nordlet
712
714
  end
713
715
  end
714
716
 
715
- # Builds the DAC7 (DPI) XML report of a year for the Member State of the company and returns it base64-encoded
717
+ # Builds the DAC7 (DPI) XML report of a year for the Member State of the company, or the HMRC digital platform
718
+ # report (OECD DPI XML 1.0, file name equal to the MessageRefId) for a UK company, and returns it base64-encoded
716
719
  # with the file name the administration expects. Answers 422 when no DAC7 filing channel exists for the company
717
720
  # country. The sellers and the missing data behind it come from `declarations/eu/dac7/preview`.
718
721
  #
@@ -1503,6 +1506,113 @@ module Nordlet
1503
1506
  end
1504
1507
  end
1505
1508
 
1509
+ # Sets the provisional pro-rata percentage of the company for a fiscal year (the year in which it ends, by the
1510
+ # company's fiscal year end month). Purchase lines on a VAT type marked pro-rata (`prorata`) deduct that share of
1511
+ # their VAT, book the rest into the line's expense, and the VAT returns declare only the deductible part. Without
1512
+ # a percentage for the year such a line deducts 100 % and `purchases/invoices/register` answers the warning
1513
+ # `prorata_not_set`. Setting it again replaces the percentage for documents registered afterwards; documents
1514
+ # already registered are not changed and the year-end adjustment is not built.
1515
+ #
1516
+ # @param request_options [Hash]
1517
+ # @param params [Nordlet::Declarations::Types::VatProrataSetDeclarationsRequest]
1518
+ # @option request_options [String] :base_url
1519
+ # @option request_options [Hash{String => Object}] :additional_headers
1520
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1521
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1522
+ # @option request_options [Integer] :timeout_in_seconds
1523
+ #
1524
+ # @return [Nordlet::Declarations::Types::VatProrataSetDeclarationsResponse]
1525
+ def vat_prorata_set(request_options: {}, **params)
1526
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1527
+ request = Nordlet::Internal::JSON::Request.new(
1528
+ base_url: request_options[:base_url],
1529
+ method: "POST",
1530
+ path: "v1/declarations/vat-prorata/set",
1531
+ body: Nordlet::Declarations::Types::VatProrataSetDeclarationsRequest.new(params).to_h,
1532
+ request_options: request_options
1533
+ )
1534
+ begin
1535
+ response = @client.send(request)
1536
+ rescue Net::HTTPRequestTimeout
1537
+ raise Nordlet::Errors::TimeoutError
1538
+ end
1539
+ code = response.code.to_i
1540
+ if code.between?(200, 299)
1541
+ Nordlet::Declarations::Types::VatProrataSetDeclarationsResponse.load(response.body)
1542
+ else
1543
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1544
+ raise error_class.new(response.body, code: code)
1545
+ end
1546
+ end
1547
+
1548
+ # Answers the percentage set with `declarations/vat-prorata/set` for the fiscal year; 404 when none is set.
1549
+ #
1550
+ # @param request_options [Hash]
1551
+ # @param params [Nordlet::Declarations::Types::VatProrataGetDeclarationsRequest]
1552
+ # @option request_options [String] :base_url
1553
+ # @option request_options [Hash{String => Object}] :additional_headers
1554
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1555
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1556
+ # @option request_options [Integer] :timeout_in_seconds
1557
+ #
1558
+ # @return [Nordlet::Declarations::Types::VatProrataGetDeclarationsResponse]
1559
+ def vat_prorata_get(request_options: {}, **params)
1560
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1561
+ request = Nordlet::Internal::JSON::Request.new(
1562
+ base_url: request_options[:base_url],
1563
+ method: "POST",
1564
+ path: "v1/declarations/vat-prorata/get",
1565
+ body: Nordlet::Declarations::Types::VatProrataGetDeclarationsRequest.new(params).to_h,
1566
+ request_options: request_options
1567
+ )
1568
+ begin
1569
+ response = @client.send(request)
1570
+ rescue Net::HTTPRequestTimeout
1571
+ raise Nordlet::Errors::TimeoutError
1572
+ end
1573
+ code = response.code.to_i
1574
+ if code.between?(200, 299)
1575
+ Nordlet::Declarations::Types::VatProrataGetDeclarationsResponse.load(response.body)
1576
+ else
1577
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1578
+ raise error_class.new(response.body, code: code)
1579
+ end
1580
+ end
1581
+
1582
+ # Lists the percentages set with `declarations/vat-prorata/set`, oldest fiscal year first.
1583
+ #
1584
+ # @param request_options [Hash]
1585
+ # @param params [Nordlet::Declarations::Types::VatProrataListDeclarationsRequest]
1586
+ # @option request_options [String] :base_url
1587
+ # @option request_options [Hash{String => Object}] :additional_headers
1588
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1589
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1590
+ # @option request_options [Integer] :timeout_in_seconds
1591
+ #
1592
+ # @return [Nordlet::Declarations::Types::VatProrataListDeclarationsResponse]
1593
+ def vat_prorata_list(request_options: {}, **params)
1594
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1595
+ request = Nordlet::Internal::JSON::Request.new(
1596
+ base_url: request_options[:base_url],
1597
+ method: "POST",
1598
+ path: "v1/declarations/vat-prorata/list",
1599
+ body: Nordlet::Declarations::Types::VatProrataListDeclarationsRequest.new(params).to_h,
1600
+ request_options: request_options
1601
+ )
1602
+ begin
1603
+ response = @client.send(request)
1604
+ rescue Net::HTTPRequestTimeout
1605
+ raise Nordlet::Errors::TimeoutError
1606
+ end
1607
+ code = response.code.to_i
1608
+ if code.between?(200, 299)
1609
+ Nordlet::Declarations::Types::VatProrataListDeclarationsResponse.load(response.body)
1610
+ else
1611
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1612
+ raise error_class.new(response.body, code: code)
1613
+ end
1614
+ end
1615
+
1506
1616
  # Whether the general meeting adopted the annual accounts and on which date, the date the accounts were prepared,
1507
1617
  # and which directors signed them. The annual accounts filed with the trade register are built from these facts.
1508
1618
  #
@@ -3063,29 +3173,27 @@ module Nordlet
3063
3173
  end
3064
3174
  end
3065
3175
 
3066
- # Lists the filing systems the company can configure: those of the company country (or of `country` when given),
3067
- # the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
3068
- # carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken
3069
- # from the company profile filled from it. Each field carries its `label` in the language of `Accept-Language`
3070
- # (English otherwise) when Nordlet has one, and a `select` field its allowed values in `options`. Set the values
3071
- # with `declarations/configs/update` {system, config: {key: value}}.
3176
+ # Starts connecting the company to HMRC's VAT (MTD) API: returns the HMRC sign-in address the user opens in the
3177
+ # browser to grant Nordlet the `read:vat` and `write:vat` scopes. HMRC sends the browser back to Nordlet's
3178
+ # registered address with `code` and `state`, which are passed to `declarations/gb/hmrc/connect`. Answers 503 when
3179
+ # Nordlet's HMRC application is not set up.
3072
3180
  #
3073
3181
  # @param request_options [Hash]
3074
- # @param params [Nordlet::Declarations::Types::ConfigsListDeclarationsRequest]
3182
+ # @param params [Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsRequest]
3075
3183
  # @option request_options [String] :base_url
3076
3184
  # @option request_options [Hash{String => Object}] :additional_headers
3077
3185
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3078
3186
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3079
3187
  # @option request_options [Integer] :timeout_in_seconds
3080
3188
  #
3081
- # @return [Nordlet::Declarations::Types::ConfigsListDeclarationsResponse]
3082
- def configs_list(request_options: {}, **params)
3189
+ # @return [Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsResponse]
3190
+ def gb_hmrc_authorize_url_get(request_options: {}, **params)
3083
3191
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3084
3192
  request = Nordlet::Internal::JSON::Request.new(
3085
3193
  base_url: request_options[:base_url],
3086
3194
  method: "POST",
3087
- path: "v1/declarations/configs/list",
3088
- body: Nordlet::Declarations::Types::ConfigsListDeclarationsRequest.new(params).to_h,
3195
+ path: "v1/declarations/gb/hmrc/authorize-url/get",
3196
+ body: Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsRequest.new(params).to_h,
3089
3197
  request_options: request_options
3090
3198
  )
3091
3199
  begin
@@ -3095,33 +3203,34 @@ module Nordlet
3095
3203
  end
3096
3204
  code = response.code.to_i
3097
3205
  if code.between?(200, 299)
3098
- Nordlet::Declarations::Types::ConfigsListDeclarationsResponse.load(response.body)
3206
+ Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsResponse.load(response.body)
3099
3207
  else
3100
3208
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3101
3209
  raise error_class.new(response.body, code: code)
3102
3210
  end
3103
3211
  end
3104
3212
 
3105
- # Stores the settings of one filing system for the company, merging the given fields into the stored ones. A
3106
- # secret or certificate value is encrypted before it is stored, an empty string clears a field, and
3107
- # `__secret_set__` leaves a stored secret unchanged. Answers 422 for an unknown system.
3213
+ # Finishes connecting the company to HMRC: trades the `code` HMRC returned for the company's tokens and stores
3214
+ # them in the `gb-hmrc-vat` settings. `state` must be the one of the sign-in address from
3215
+ # `declarations/gb/hmrc/authorize-url/get`, else 422. HMRC lets the connection last 18 months; Nordlet renews the
3216
+ # 4-hour access token itself.
3108
3217
  #
3109
3218
  # @param request_options [Hash]
3110
- # @param params [Nordlet::Declarations::Types::ConfigsUpdateDeclarationsRequest]
3219
+ # @param params [Nordlet::Declarations::Types::GbHmrcConnectDeclarationsRequest]
3111
3220
  # @option request_options [String] :base_url
3112
3221
  # @option request_options [Hash{String => Object}] :additional_headers
3113
3222
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3114
3223
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3115
3224
  # @option request_options [Integer] :timeout_in_seconds
3116
3225
  #
3117
- # @return [Nordlet::Declarations::Types::ConfigsUpdateDeclarationsResponse]
3118
- def configs_update(request_options: {}, **params)
3226
+ # @return [Nordlet::Declarations::Types::GbHmrcConnectDeclarationsResponse]
3227
+ def gb_hmrc_connect(request_options: {}, **params)
3119
3228
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3120
3229
  request = Nordlet::Internal::JSON::Request.new(
3121
3230
  base_url: request_options[:base_url],
3122
3231
  method: "POST",
3123
- path: "v1/declarations/configs/update",
3124
- body: Nordlet::Declarations::Types::ConfigsUpdateDeclarationsRequest.new(params).to_h,
3232
+ path: "v1/declarations/gb/hmrc/connect",
3233
+ body: Nordlet::Declarations::Types::GbHmrcConnectDeclarationsRequest.new(params).to_h,
3125
3234
  request_options: request_options
3126
3235
  )
3127
3236
  begin
@@ -3131,34 +3240,37 @@ module Nordlet
3131
3240
  end
3132
3241
  code = response.code.to_i
3133
3242
  if code.between?(200, 299)
3134
- Nordlet::Declarations::Types::ConfigsUpdateDeclarationsResponse.load(response.body)
3243
+ Nordlet::Declarations::Types::GbHmrcConnectDeclarationsResponse.load(response.body)
3135
3244
  else
3136
3245
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3137
3246
  raise error_class.new(response.body, code: code)
3138
3247
  end
3139
3248
  end
3140
3249
 
3141
- # Stores a PEM certificate, a PEM private key or a PKCS#12 bundle (base64 in `content`, opened with `passphrase`
3142
- # when it needs one) in the settings of the filing system and replaces the earlier upload of the same kind; for a
3143
- # PEM certificate the fingerprint, subject, issuer and validity dates are recorded. Answers 422 when the system is
3144
- # unknown or does not authenticate with a certificate. Returns the full certificate list of the company.
3250
+ # Computes UK Corporation Tax for an accounting period of at most 12 months from its taxable total profits: the
3251
+ # small profits rate when the augmented profits (taxable total profits plus `exemptDistributions`) do not exceed
3252
+ # the lower limit, the main rate less marginal relief between the limits, the main rate above the upper limit. The
3253
+ # limits are reduced by days for a period shorter than 12 months and divided by one plus `associatedCompanies`
3254
+ # (those that carried on a trade or business in the period). A period that straddles 1 April of a year whose
3255
+ # limits differ is split into parts by financial year. A `closeInvestmentHolding` company pays the main rate.
3256
+ # Financial years 2022 to 2026 are known; another answers 422.
3145
3257
  #
3146
3258
  # @param request_options [Hash]
3147
- # @param params [Nordlet::Declarations::Types::CertificatesUploadDeclarationsRequest]
3259
+ # @param params [Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsRequest]
3148
3260
  # @option request_options [String] :base_url
3149
3261
  # @option request_options [Hash{String => Object}] :additional_headers
3150
3262
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3151
3263
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3152
3264
  # @option request_options [Integer] :timeout_in_seconds
3153
3265
  #
3154
- # @return [Nordlet::Declarations::Types::CertificatesUploadDeclarationsResponse]
3155
- def certificates_upload(request_options: {}, **params)
3266
+ # @return [Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsResponse]
3267
+ def gb_corporation_tax_compute(request_options: {}, **params)
3156
3268
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3157
3269
  request = Nordlet::Internal::JSON::Request.new(
3158
3270
  base_url: request_options[:base_url],
3159
3271
  method: "POST",
3160
- path: "v1/declarations/certificates/upload",
3161
- body: Nordlet::Declarations::Types::CertificatesUploadDeclarationsRequest.new(params).to_h,
3272
+ path: "v1/declarations/gb/corporation-tax/compute",
3273
+ body: Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsRequest.new(params).to_h,
3162
3274
  request_options: request_options
3163
3275
  )
3164
3276
  begin
@@ -3168,32 +3280,33 @@ module Nordlet
3168
3280
  end
3169
3281
  code = response.code.to_i
3170
3282
  if code.between?(200, 299)
3171
- Nordlet::Declarations::Types::CertificatesUploadDeclarationsResponse.load(response.body)
3283
+ Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsResponse.load(response.body)
3172
3284
  else
3173
3285
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3174
3286
  raise error_class.new(response.body, code: code)
3175
3287
  end
3176
3288
  end
3177
3289
 
3178
- # Lists the certificates and private keys stored for the filing systems of the company, ordered by system and
3179
- # field, each with its validity facts and health (`ok`, `expiring`, `expired` or `unknown`).
3290
+ # Lists the company's VAT return periods as HMRC holds them: open (`status` O) or fulfilled (F). Without `status`,
3291
+ # `from` and `to` are required and at most 366 days apart. `device` carries the facts of the user's browser that
3292
+ # HMRC requires.
3180
3293
  #
3181
3294
  # @param request_options [Hash]
3182
- # @param params [Nordlet::Declarations::Types::CertificatesListDeclarationsRequest]
3295
+ # @param params [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest]
3183
3296
  # @option request_options [String] :base_url
3184
3297
  # @option request_options [Hash{String => Object}] :additional_headers
3185
3298
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3186
3299
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3187
3300
  # @option request_options [Integer] :timeout_in_seconds
3188
3301
  #
3189
- # @return [Nordlet::Declarations::Types::CertificatesListDeclarationsResponse]
3190
- def certificates_list(request_options: {}, **params)
3302
+ # @return [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse]
3303
+ def gb_vat_obligations_list(request_options: {}, **params)
3191
3304
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3192
3305
  request = Nordlet::Internal::JSON::Request.new(
3193
3306
  base_url: request_options[:base_url],
3194
3307
  method: "POST",
3195
- path: "v1/declarations/certificates/list",
3196
- body: Nordlet::Declarations::Types::CertificatesListDeclarationsRequest.new(params).to_h,
3308
+ path: "v1/declarations/gb/vat/obligations/list",
3309
+ body: Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest.new(params).to_h,
3197
3310
  request_options: request_options
3198
3311
  )
3199
3312
  begin
@@ -3203,32 +3316,32 @@ module Nordlet
3203
3316
  end
3204
3317
  code = response.code.to_i
3205
3318
  if code.between?(200, 299)
3206
- Nordlet::Declarations::Types::CertificatesListDeclarationsResponse.load(response.body)
3319
+ Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse.load(response.body)
3207
3320
  else
3208
3321
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3209
3322
  raise error_class.new(response.body, code: code)
3210
3323
  end
3211
3324
  end
3212
3325
 
3213
- # Removes the certificate or the private key (`fieldKey`) of a filing system from the settings of the company and
3214
- # from the certificate list, and returns the remaining certificates.
3326
+ # Reads a VAT return the company submitted to HMRC, by the `periodKey` of its obligation. Answers 404 when HMRC
3327
+ # has no return for the period.
3215
3328
  #
3216
3329
  # @param request_options [Hash]
3217
- # @param params [Nordlet::Declarations::Types::CertificatesDeleteDeclarationsRequest]
3330
+ # @param params [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest]
3218
3331
  # @option request_options [String] :base_url
3219
3332
  # @option request_options [Hash{String => Object}] :additional_headers
3220
3333
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3221
3334
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3222
3335
  # @option request_options [Integer] :timeout_in_seconds
3223
3336
  #
3224
- # @return [Nordlet::Declarations::Types::CertificatesDeleteDeclarationsResponse]
3225
- def certificates_delete(request_options: {}, **params)
3337
+ # @return [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse]
3338
+ def gb_vat_returns_get(request_options: {}, **params)
3226
3339
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3227
3340
  request = Nordlet::Internal::JSON::Request.new(
3228
3341
  base_url: request_options[:base_url],
3229
3342
  method: "POST",
3230
- path: "v1/declarations/certificates/delete",
3231
- body: Nordlet::Declarations::Types::CertificatesDeleteDeclarationsRequest.new(params).to_h,
3343
+ path: "v1/declarations/gb/vat/returns/get",
3344
+ body: Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest.new(params).to_h,
3232
3345
  request_options: request_options
3233
3346
  )
3234
3347
  begin
@@ -3238,33 +3351,32 @@ module Nordlet
3238
3351
  end
3239
3352
  code = response.code.to_i
3240
3353
  if code.between?(200, 299)
3241
- Nordlet::Declarations::Types::CertificatesDeleteDeclarationsResponse.load(response.body)
3354
+ Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse.load(response.body)
3242
3355
  else
3243
3356
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3244
3357
  raise error_class.new(response.body, code: code)
3245
3358
  end
3246
3359
  end
3247
3360
 
3248
- # Lists the filing deadlines Nordlet can file by itself for the country of the company: for each, whether
3249
- # automatic filing is switched on, whether the rule applies to the company profile, whether its filing system is
3250
- # configured, the state of its certificate and whether it would go to the test or the production service.
3361
+ # Lists the company's VAT liabilities HMRC holds whose period ends between `from` (2017-12-01 or later) and `to`
3362
+ # (today or earlier), at most 365 days apart.
3251
3363
  #
3252
3364
  # @param request_options [Hash]
3253
- # @param params [Nordlet::Declarations::Types::AutomationListDeclarationsRequest]
3365
+ # @param params [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest]
3254
3366
  # @option request_options [String] :base_url
3255
3367
  # @option request_options [Hash{String => Object}] :additional_headers
3256
3368
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3257
3369
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3258
3370
  # @option request_options [Integer] :timeout_in_seconds
3259
3371
  #
3260
- # @return [Nordlet::Declarations::Types::AutomationListDeclarationsResponse]
3261
- def automation_list(request_options: {}, **params)
3372
+ # @return [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse]
3373
+ def gb_vat_liabilities_list(request_options: {}, **params)
3262
3374
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3263
3375
  request = Nordlet::Internal::JSON::Request.new(
3264
3376
  base_url: request_options[:base_url],
3265
3377
  method: "POST",
3266
- path: "v1/declarations/automation/list",
3267
- body: Nordlet::Declarations::Types::AutomationListDeclarationsRequest.new(params).to_h,
3378
+ path: "v1/declarations/gb/vat/liabilities/list",
3379
+ body: Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest.new(params).to_h,
3268
3380
  request_options: request_options
3269
3381
  )
3270
3382
  begin
@@ -3274,34 +3386,32 @@ module Nordlet
3274
3386
  end
3275
3387
  code = response.code.to_i
3276
3388
  if code.between?(200, 299)
3277
- Nordlet::Declarations::Types::AutomationListDeclarationsResponse.load(response.body)
3389
+ Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse.load(response.body)
3278
3390
  else
3279
3391
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3280
3392
  raise error_class.new(response.body, code: code)
3281
3393
  end
3282
3394
  end
3283
3395
 
3284
- # Switches automatic filing of one deadline on or off for the company and returns the list of
3285
- # `declarations/automation/list`. Answers 422 when the deadline is not one Nordlet files, or when switching on
3286
- # while the filing system is connected to the test service of the administration (unless the company is a
3287
- # sandbox), is not configured, or has no valid certificate.
3396
+ # Lists the VAT payments HMRC received from the company between `from` (2017-12-01 or later) and `to` (today or
3397
+ # earlier), at most 365 days apart.
3288
3398
  #
3289
3399
  # @param request_options [Hash]
3290
- # @param params [Nordlet::Declarations::Types::AutomationUpdateDeclarationsRequest]
3400
+ # @param params [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest]
3291
3401
  # @option request_options [String] :base_url
3292
3402
  # @option request_options [Hash{String => Object}] :additional_headers
3293
3403
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3294
3404
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3295
3405
  # @option request_options [Integer] :timeout_in_seconds
3296
3406
  #
3297
- # @return [Nordlet::Declarations::Types::AutomationUpdateDeclarationsResponse]
3298
- def automation_update(request_options: {}, **params)
3407
+ # @return [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse]
3408
+ def gb_vat_payments_list(request_options: {}, **params)
3299
3409
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3300
3410
  request = Nordlet::Internal::JSON::Request.new(
3301
3411
  base_url: request_options[:base_url],
3302
3412
  method: "POST",
3303
- path: "v1/declarations/automation/update",
3304
- body: Nordlet::Declarations::Types::AutomationUpdateDeclarationsRequest.new(params).to_h,
3413
+ path: "v1/declarations/gb/vat/payments/list",
3414
+ body: Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest.new(params).to_h,
3305
3415
  request_options: request_options
3306
3416
  )
3307
3417
  begin
@@ -3311,33 +3421,70 @@ module Nordlet
3311
3421
  end
3312
3422
  code = response.code.to_i
3313
3423
  if code.between?(200, 299)
3314
- Nordlet::Declarations::Types::AutomationUpdateDeclarationsResponse.load(response.body)
3424
+ Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse.load(response.body)
3315
3425
  else
3316
3426
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3317
3427
  raise error_class.new(response.body, code: code)
3318
3428
  end
3319
3429
  end
3320
3430
 
3321
- # Sends a submission that is still in status `generated` through its filing system once more, with the stored file
3322
- # or, when none was stored yet, a freshly generated one, and returns the updated submission. Answers 409 when the
3323
- # submission is already submitted, accepted or rejected.
3431
+ # Returns the penalties HMRC applied to the company's VAT account in the last 24 months as HMRC answers them:
3432
+ # `totalisations`, `lateSubmissionPenalty` and `latePaymentPenalty`.
3324
3433
  #
3325
3434
  # @param request_options [Hash]
3326
- # @param params [Nordlet::Declarations::Types::SubmissionsRetryDeclarationsRequest]
3435
+ # @param params [Nordlet::Declarations::Types::GbVatPenaltiesGetDeclarationsRequest]
3327
3436
  # @option request_options [String] :base_url
3328
3437
  # @option request_options [Hash{String => Object}] :additional_headers
3329
3438
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3330
3439
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3331
3440
  # @option request_options [Integer] :timeout_in_seconds
3332
3441
  #
3333
- # @return [Nordlet::Declarations::Types::SubmissionsRetryDeclarationsResponse]
3334
- def submissions_retry(request_options: {}, **params)
3442
+ # @return [Hash[String, Object]]
3443
+ def gb_vat_penalties_get(request_options: {}, **params)
3335
3444
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3336
3445
  request = Nordlet::Internal::JSON::Request.new(
3337
3446
  base_url: request_options[:base_url],
3338
3447
  method: "POST",
3339
- path: "v1/declarations/submissions/retry",
3340
- body: Nordlet::Declarations::Types::SubmissionsRetryDeclarationsRequest.new(params).to_h,
3448
+ path: "v1/declarations/gb/vat/penalties/get",
3449
+ body: Nordlet::Declarations::Types::GbVatPenaltiesGetDeclarationsRequest.new(params).to_h,
3450
+ request_options: request_options
3451
+ )
3452
+ begin
3453
+ response = @client.send(request)
3454
+ rescue Net::HTTPRequestTimeout
3455
+ raise Nordlet::Errors::TimeoutError
3456
+ end
3457
+ code = response.code.to_i
3458
+ return if code.between?(200, 299)
3459
+
3460
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3461
+ raise error_class.new(response.body, code: code)
3462
+ end
3463
+
3464
+ # The Form 941 figures of a quarter from the approved US payroll runs whose pay date (the period end without one)
3465
+ # falls in it: line 1 the employees paid for the pay period that includes the 12th of the quarter's last month,
3466
+ # line 2 the wages, line 3 the federal income tax withheld, lines 5a, 5c and 5d the social security, Medicare and
3467
+ # Additional Medicare wages with their tax at 12.4%, 2.9% and 0.9%, line 7 the fractions of cents between those
3468
+ # and the amounts withheld and owed, lines 10 and 12, and line 16 the liability of each month by pay date with the
3469
+ # liability of each pay date for Schedule B. `deposits` (the deposits made for the quarter) fills line 13 and line
3470
+ # 14 or 15. Lines 5b, 5f, 8, 9 and 11 are not filled. Answers 422 for a company outside the US.
3471
+ #
3472
+ # @param request_options [Hash]
3473
+ # @param params [Nordlet::Declarations::Types::Us941GetDeclarationsRequest]
3474
+ # @option request_options [String] :base_url
3475
+ # @option request_options [Hash{String => Object}] :additional_headers
3476
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3477
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3478
+ # @option request_options [Integer] :timeout_in_seconds
3479
+ #
3480
+ # @return [Nordlet::Declarations::Types::Us941GetDeclarationsResponse]
3481
+ def us941get(request_options: {}, **params)
3482
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3483
+ request = Nordlet::Internal::JSON::Request.new(
3484
+ base_url: request_options[:base_url],
3485
+ method: "POST",
3486
+ path: "v1/declarations/us/941/get",
3487
+ body: Nordlet::Declarations::Types::Us941GetDeclarationsRequest.new(params).to_h,
3341
3488
  request_options: request_options
3342
3489
  )
3343
3490
  begin
@@ -3347,34 +3494,36 @@ module Nordlet
3347
3494
  end
3348
3495
  code = response.code.to_i
3349
3496
  if code.between?(200, 299)
3350
- Nordlet::Declarations::Types::SubmissionsRetryDeclarationsResponse.load(response.body)
3497
+ Nordlet::Declarations::Types::Us941GetDeclarationsResponse.load(response.body)
3351
3498
  else
3352
3499
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3353
3500
  raise error_class.new(response.body, code: code)
3354
3501
  end
3355
3502
  end
3356
3503
 
3357
- # Sends a submission whose `confirmationPending` is true once more with the stored file and the token the
3358
- # administration handed back with its warnings (the advis of Erhvervsstyrelsen's Regnskab Indberet, which files
3359
- # the annual report only when it is sent again with that token), and returns the updated submission. Answers 409
3360
- # when the submission is not waiting for a confirmation.
3504
+ # The Form 940 figures of a year from the approved US payroll runs paid in it: line 1a the state of the employees
3505
+ # paid (the `usWorkState` employee option) or line 1b when there are several, line 3 the payments to employees,
3506
+ # line 5 the part of each employee's payments above $7,000, line 7 the taxable FUTA wages, line 8 at 0.6%, line
3507
+ # 12, and Part 5 with the liability of each quarter when line 12 is more than $500. Exempt payments (line 4), the
3508
+ # state unemployment tax adjustments (lines 9 and 10) and the credit reduction of Schedule A (line 11) are not
3509
+ # filled. Answers 422 for a company outside the US.
3361
3510
  #
3362
3511
  # @param request_options [Hash]
3363
- # @param params [Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsRequest]
3512
+ # @param params [Nordlet::Declarations::Types::Us940GetDeclarationsRequest]
3364
3513
  # @option request_options [String] :base_url
3365
3514
  # @option request_options [Hash{String => Object}] :additional_headers
3366
3515
  # @option request_options [Hash{String => Object}] :additional_query_parameters
3367
3516
  # @option request_options [Hash{String => Object}] :additional_body_parameters
3368
3517
  # @option request_options [Integer] :timeout_in_seconds
3369
3518
  #
3370
- # @return [Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponse]
3371
- def submissions_confirm(request_options: {}, **params)
3519
+ # @return [Nordlet::Declarations::Types::Us940GetDeclarationsResponse]
3520
+ def us940get(request_options: {}, **params)
3372
3521
  params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3373
3522
  request = Nordlet::Internal::JSON::Request.new(
3374
3523
  base_url: request_options[:base_url],
3375
3524
  method: "POST",
3376
- path: "v1/declarations/submissions/confirm",
3377
- body: Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsRequest.new(params).to_h,
3525
+ path: "v1/declarations/us/940/get",
3526
+ body: Nordlet::Declarations::Types::Us940GetDeclarationsRequest.new(params).to_h,
3378
3527
  request_options: request_options
3379
3528
  )
3380
3529
  begin
@@ -3384,7 +3533,647 @@ module Nordlet
3384
3533
  end
3385
3534
  code = response.code.to_i
3386
3535
  if code.between?(200, 299)
3387
- Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponse.load(response.body)
3536
+ Nordlet::Declarations::Types::Us940GetDeclarationsResponse.load(response.body)
3537
+ else
3538
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3539
+ raise error_class.new(response.body, code: code)
3540
+ end
3541
+ end
3542
+
3543
+ # The Forms W-2 of a year, one per employee paid in an approved US payroll run of the year, and the Form W-3
3544
+ # totals: box a the employee's `personalCode` (the social security number), box e the name, boxes 1 to 6 the
3545
+ # wages, the federal income tax, the social security wages and tax and the Medicare wages and tax (with the
3546
+ # Additional Medicare Tax), and boxes 15 to 17 for Delaware with the company's `deWithholdingAccount`; W-3 box c
3547
+ # the number of forms and box e the company's `ein`. Answers 422 for a company outside the US.
3548
+ #
3549
+ # @param request_options [Hash]
3550
+ # @param params [Nordlet::Declarations::Types::UsW2ListDeclarationsRequest]
3551
+ # @option request_options [String] :base_url
3552
+ # @option request_options [Hash{String => Object}] :additional_headers
3553
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3554
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3555
+ # @option request_options [Integer] :timeout_in_seconds
3556
+ #
3557
+ # @return [Nordlet::Declarations::Types::UsW2ListDeclarationsResponse]
3558
+ def us_w2list(request_options: {}, **params)
3559
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3560
+ request = Nordlet::Internal::JSON::Request.new(
3561
+ base_url: request_options[:base_url],
3562
+ method: "POST",
3563
+ path: "v1/declarations/us/w2/list",
3564
+ body: Nordlet::Declarations::Types::UsW2ListDeclarationsRequest.new(params).to_h,
3565
+ request_options: request_options
3566
+ )
3567
+ begin
3568
+ response = @client.send(request)
3569
+ rescue Net::HTTPRequestTimeout
3570
+ raise Nordlet::Errors::TimeoutError
3571
+ end
3572
+ code = response.code.to_i
3573
+ if code.between?(200, 299)
3574
+ Nordlet::Declarations::Types::UsW2ListDeclarationsResponse.load(response.body)
3575
+ else
3576
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3577
+ raise error_class.new(response.body, code: code)
3578
+ end
3579
+ end
3580
+
3581
+ # The Delaware withholding of a month (YYYY-MM), a quarter (YYYY-Qn) or a year (YYYY, for the annual
3582
+ # reconciliation) from the approved US payroll runs paid in it: the employees with Delaware income tax withheld,
3583
+ # their wages and the tax withheld. Answers 422 for a company outside the US.
3584
+ #
3585
+ # @param request_options [Hash]
3586
+ # @param params [Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsRequest]
3587
+ # @option request_options [String] :base_url
3588
+ # @option request_options [Hash{String => Object}] :additional_headers
3589
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3590
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3591
+ # @option request_options [Integer] :timeout_in_seconds
3592
+ #
3593
+ # @return [Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsResponse]
3594
+ def us_de_withholding_get(request_options: {}, **params)
3595
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3596
+ request = Nordlet::Internal::JSON::Request.new(
3597
+ base_url: request_options[:base_url],
3598
+ method: "POST",
3599
+ path: "v1/declarations/us/de/withholding/get",
3600
+ body: Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsRequest.new(params).to_h,
3601
+ request_options: request_options
3602
+ )
3603
+ begin
3604
+ response = @client.send(request)
3605
+ rescue Net::HTTPRequestTimeout
3606
+ raise Nordlet::Errors::TimeoutError
3607
+ end
3608
+ code = response.code.to_i
3609
+ if code.between?(200, 299)
3610
+ Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsResponse.load(response.body)
3611
+ else
3612
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3613
+ raise error_class.new(response.body, code: code)
3614
+ end
3615
+ end
3616
+
3617
+ # The Delaware unemployment insurance figures of a quarter from the approved US payroll runs paid in it, for the
3618
+ # employees charged Delaware unemployment insurance: the total wages, the wages above each employee's yearly wage
3619
+ # base, the taxable wages, the contributions, and each employee with the social security number (`personalCode`)
3620
+ # and the wages of the quarter. Answers 422 for a company outside the US.
3621
+ #
3622
+ # @param request_options [Hash]
3623
+ # @param params [Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsRequest]
3624
+ # @option request_options [String] :base_url
3625
+ # @option request_options [Hash{String => Object}] :additional_headers
3626
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3627
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3628
+ # @option request_options [Integer] :timeout_in_seconds
3629
+ #
3630
+ # @return [Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsResponse]
3631
+ def us_de_unemployment_get(request_options: {}, **params)
3632
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3633
+ request = Nordlet::Internal::JSON::Request.new(
3634
+ base_url: request_options[:base_url],
3635
+ method: "POST",
3636
+ path: "v1/declarations/us/de/unemployment/get",
3637
+ body: Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsRequest.new(params).to_h,
3638
+ request_options: request_options
3639
+ )
3640
+ begin
3641
+ response = @client.send(request)
3642
+ rescue Net::HTTPRequestTimeout
3643
+ raise Nordlet::Errors::TimeoutError
3644
+ end
3645
+ code = response.code.to_i
3646
+ if code.between?(200, 299)
3647
+ Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsResponse.load(response.body)
3648
+ else
3649
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3650
+ raise error_class.new(response.body, code: code)
3651
+ end
3652
+ end
3653
+
3654
+ # The Delaware gross receipts tax of a month (YYYY-MM) or a quarter (YYYY-Qn) for one business activity of the
3655
+ # company's license: the net amounts of the sale invoices issued in the period (credit notes subtracted, advance
3656
+ # invoices left out because the final invoice carries the sale, amounts in another currency at the rate stored on
3657
+ # the invoice), less `excludedReceipts` (receipts from outside Delaware and from related entities, which the
3658
+ # caller states), less the monthly or quarterly deduction of the activity, at the rate of the activity in 30 Del.
3659
+ # C. chapters 23, 25, 27 and 29. An invoice in another currency without a stored rate is left out with a warning.
3660
+ # Answers 422 for a company outside the US.
3661
+ #
3662
+ # @param request_options [Hash]
3663
+ # @param params [Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsRequest]
3664
+ # @option request_options [String] :base_url
3665
+ # @option request_options [Hash{String => Object}] :additional_headers
3666
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3667
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3668
+ # @option request_options [Integer] :timeout_in_seconds
3669
+ #
3670
+ # @return [Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsResponse]
3671
+ def us_de_gross_receipts_get(request_options: {}, **params)
3672
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3673
+ request = Nordlet::Internal::JSON::Request.new(
3674
+ base_url: request_options[:base_url],
3675
+ method: "POST",
3676
+ path: "v1/declarations/us/de/gross-receipts/get",
3677
+ body: Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsRequest.new(params).to_h,
3678
+ request_options: request_options
3679
+ )
3680
+ begin
3681
+ response = @client.send(request)
3682
+ rescue Net::HTTPRequestTimeout
3683
+ raise Nordlet::Errors::TimeoutError
3684
+ end
3685
+ code = response.code.to_i
3686
+ if code.between?(200, 299)
3687
+ Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsResponse.load(response.body)
3688
+ else
3689
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3690
+ raise error_class.new(response.body, code: code)
3691
+ end
3692
+ end
3693
+
3694
+ # The sales of a US company per state between two issue dates, to see where its sales may oblige it to collect a
3695
+ # state's sales tax: the number and net amount of the issued sale invoices and credit notes (subtracted) by the
3696
+ # state of the customer's address (`subdivision`, since invoices carry no delivery address), the sales to
3697
+ # customers in the US without a state, and the sales to customers outside the US. Advance invoices are left out
3698
+ # because the final invoice carries the sale; amounts in another currency are at the rate stored on the invoice,
3699
+ # and an invoice without one is left out with a warning. Answers 422 for a company outside the US.
3700
+ #
3701
+ # @param request_options [Hash]
3702
+ # @param params [Nordlet::Declarations::Types::UsStateSalesGetDeclarationsRequest]
3703
+ # @option request_options [String] :base_url
3704
+ # @option request_options [Hash{String => Object}] :additional_headers
3705
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3706
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3707
+ # @option request_options [Integer] :timeout_in_seconds
3708
+ #
3709
+ # @return [Nordlet::Declarations::Types::UsStateSalesGetDeclarationsResponse]
3710
+ def us_state_sales_get(request_options: {}, **params)
3711
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3712
+ request = Nordlet::Internal::JSON::Request.new(
3713
+ base_url: request_options[:base_url],
3714
+ method: "POST",
3715
+ path: "v1/declarations/us/state-sales/get",
3716
+ body: Nordlet::Declarations::Types::UsStateSalesGetDeclarationsRequest.new(params).to_h,
3717
+ request_options: request_options
3718
+ )
3719
+ begin
3720
+ response = @client.send(request)
3721
+ rescue Net::HTTPRequestTimeout
3722
+ raise Nordlet::Errors::TimeoutError
3723
+ end
3724
+ code = response.code.to_i
3725
+ if code.between?(200, 299)
3726
+ Nordlet::Declarations::Types::UsStateSalesGetDeclarationsResponse.load(response.body)
3727
+ else
3728
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3729
+ raise error_class.new(response.body, code: code)
3730
+ end
3731
+ end
3732
+
3733
+ # The Delaware franchise tax of a domestic corporation for its annual franchise tax report, by 8 Del. C. § 503:
3734
+ # the authorized shares method on the total of `authorizedShares`, and, when `issuedShares` and `totalGrossAssets`
3735
+ # (the total assets of Form 1120 Schedule L) are given, the assumed par value capital method, where a share class
3736
+ # without `parValue` has no par value; `tax` is the lesser of the two (at least $175 and $400, at most $200,000),
3737
+ # or $250,000 for a Large Corporate Filer. `annualReportFee` is the filing fee of a non-exempt domestic
3738
+ # corporation, paid with the report. Answers 422 for a company outside the US.
3739
+ #
3740
+ # @param request_options [Hash]
3741
+ # @param params [Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsRequest]
3742
+ # @option request_options [String] :base_url
3743
+ # @option request_options [Hash{String => Object}] :additional_headers
3744
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3745
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3746
+ # @option request_options [Integer] :timeout_in_seconds
3747
+ #
3748
+ # @return [Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsResponse]
3749
+ def us_de_franchise_tax_compute(request_options: {}, **params)
3750
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3751
+ request = Nordlet::Internal::JSON::Request.new(
3752
+ base_url: request_options[:base_url],
3753
+ method: "POST",
3754
+ path: "v1/declarations/us/de/franchise-tax/compute",
3755
+ body: Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsRequest.new(params).to_h,
3756
+ request_options: request_options
3757
+ )
3758
+ begin
3759
+ response = @client.send(request)
3760
+ rescue Net::HTTPRequestTimeout
3761
+ raise Nordlet::Errors::TimeoutError
3762
+ end
3763
+ code = response.code.to_i
3764
+ if code.between?(200, 299)
3765
+ Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsResponse.load(response.body)
3766
+ else
3767
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3768
+ raise error_class.new(response.body, code: code)
3769
+ end
3770
+ end
3771
+
3772
+ # The hours worked in each workweek that touches the period, per employee of a US company (or the one
3773
+ # `employeeId`), for the overtime and records of the Fair Labor Standards Act: the workweek starts on the
3774
+ # employee's `usWorkweekStart` day and runs 7 days; the hours are those entered on the work and business-trip days
3775
+ # of the timesheets; `overtimeHours` are the hours above 40 in the workweek, 0 for an employee whose
3776
+ # `usFlsaExempt` is yes. An employee without `usWorkweekStart` is left out with a warning. Overtime pay is entered
3777
+ # on the payroll run as an addition of payment type `overtime-pay` with its hours. Answers 422 for a company
3778
+ # outside the US.
3779
+ #
3780
+ # @param request_options [Hash]
3781
+ # @param params [Nordlet::Declarations::Types::UsWorkweeksListDeclarationsRequest]
3782
+ # @option request_options [String] :base_url
3783
+ # @option request_options [Hash{String => Object}] :additional_headers
3784
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3785
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3786
+ # @option request_options [Integer] :timeout_in_seconds
3787
+ #
3788
+ # @return [Nordlet::Declarations::Types::UsWorkweeksListDeclarationsResponse]
3789
+ def us_workweeks_list(request_options: {}, **params)
3790
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3791
+ request = Nordlet::Internal::JSON::Request.new(
3792
+ base_url: request_options[:base_url],
3793
+ method: "POST",
3794
+ path: "v1/declarations/us/workweeks/list",
3795
+ body: Nordlet::Declarations::Types::UsWorkweeksListDeclarationsRequest.new(params).to_h,
3796
+ request_options: request_options
3797
+ )
3798
+ begin
3799
+ response = @client.send(request)
3800
+ rescue Net::HTTPRequestTimeout
3801
+ raise Nordlet::Errors::TimeoutError
3802
+ end
3803
+ code = response.code.to_i
3804
+ if code.between?(200, 299)
3805
+ Nordlet::Declarations::Types::UsWorkweeksListDeclarationsResponse.load(response.body)
3806
+ else
3807
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3808
+ raise error_class.new(response.body, code: code)
3809
+ end
3810
+ end
3811
+
3812
+ # Lists the filing systems the company can configure: those of the company country (or of `country` when given),
3813
+ # the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
3814
+ # carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken
3815
+ # from the company profile filled from it. Each field carries its `label` in the language of `Accept-Language`
3816
+ # (English otherwise) when Nordlet has one, and a `select` field its allowed values in `options`. Set the values
3817
+ # with `declarations/configs/update` {system, config: {key: value}}.
3818
+ #
3819
+ # @param request_options [Hash]
3820
+ # @param params [Nordlet::Declarations::Types::ConfigsListDeclarationsRequest]
3821
+ # @option request_options [String] :base_url
3822
+ # @option request_options [Hash{String => Object}] :additional_headers
3823
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3824
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3825
+ # @option request_options [Integer] :timeout_in_seconds
3826
+ #
3827
+ # @return [Nordlet::Declarations::Types::ConfigsListDeclarationsResponse]
3828
+ def configs_list(request_options: {}, **params)
3829
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3830
+ request = Nordlet::Internal::JSON::Request.new(
3831
+ base_url: request_options[:base_url],
3832
+ method: "POST",
3833
+ path: "v1/declarations/configs/list",
3834
+ body: Nordlet::Declarations::Types::ConfigsListDeclarationsRequest.new(params).to_h,
3835
+ request_options: request_options
3836
+ )
3837
+ begin
3838
+ response = @client.send(request)
3839
+ rescue Net::HTTPRequestTimeout
3840
+ raise Nordlet::Errors::TimeoutError
3841
+ end
3842
+ code = response.code.to_i
3843
+ if code.between?(200, 299)
3844
+ Nordlet::Declarations::Types::ConfigsListDeclarationsResponse.load(response.body)
3845
+ else
3846
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3847
+ raise error_class.new(response.body, code: code)
3848
+ end
3849
+ end
3850
+
3851
+ # Stores the settings of one filing system for the company, merging the given fields into the stored ones. A
3852
+ # secret or certificate value is encrypted before it is stored, an empty string clears a field, and
3853
+ # `__secret_set__` leaves a stored secret unchanged. Answers 422 for an unknown system.
3854
+ #
3855
+ # @param request_options [Hash]
3856
+ # @param params [Nordlet::Declarations::Types::ConfigsUpdateDeclarationsRequest]
3857
+ # @option request_options [String] :base_url
3858
+ # @option request_options [Hash{String => Object}] :additional_headers
3859
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3860
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3861
+ # @option request_options [Integer] :timeout_in_seconds
3862
+ #
3863
+ # @return [Nordlet::Declarations::Types::ConfigsUpdateDeclarationsResponse]
3864
+ def configs_update(request_options: {}, **params)
3865
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3866
+ request = Nordlet::Internal::JSON::Request.new(
3867
+ base_url: request_options[:base_url],
3868
+ method: "POST",
3869
+ path: "v1/declarations/configs/update",
3870
+ body: Nordlet::Declarations::Types::ConfigsUpdateDeclarationsRequest.new(params).to_h,
3871
+ request_options: request_options
3872
+ )
3873
+ begin
3874
+ response = @client.send(request)
3875
+ rescue Net::HTTPRequestTimeout
3876
+ raise Nordlet::Errors::TimeoutError
3877
+ end
3878
+ code = response.code.to_i
3879
+ if code.between?(200, 299)
3880
+ Nordlet::Declarations::Types::ConfigsUpdateDeclarationsResponse.load(response.body)
3881
+ else
3882
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3883
+ raise error_class.new(response.body, code: code)
3884
+ end
3885
+ end
3886
+
3887
+ # Stores a PEM certificate, a PEM private key or a PKCS#12 bundle (base64 in `content`, opened with `passphrase`
3888
+ # when it needs one) in the settings of the filing system and replaces the earlier upload of the same kind; for a
3889
+ # PEM certificate the fingerprint, subject, issuer and validity dates are recorded. Answers 422 when the system is
3890
+ # unknown or does not authenticate with a certificate. Returns the full certificate list of the company.
3891
+ #
3892
+ # @param request_options [Hash]
3893
+ # @param params [Nordlet::Declarations::Types::CertificatesUploadDeclarationsRequest]
3894
+ # @option request_options [String] :base_url
3895
+ # @option request_options [Hash{String => Object}] :additional_headers
3896
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3897
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3898
+ # @option request_options [Integer] :timeout_in_seconds
3899
+ #
3900
+ # @return [Nordlet::Declarations::Types::CertificatesUploadDeclarationsResponse]
3901
+ def certificates_upload(request_options: {}, **params)
3902
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3903
+ request = Nordlet::Internal::JSON::Request.new(
3904
+ base_url: request_options[:base_url],
3905
+ method: "POST",
3906
+ path: "v1/declarations/certificates/upload",
3907
+ body: Nordlet::Declarations::Types::CertificatesUploadDeclarationsRequest.new(params).to_h,
3908
+ request_options: request_options
3909
+ )
3910
+ begin
3911
+ response = @client.send(request)
3912
+ rescue Net::HTTPRequestTimeout
3913
+ raise Nordlet::Errors::TimeoutError
3914
+ end
3915
+ code = response.code.to_i
3916
+ if code.between?(200, 299)
3917
+ Nordlet::Declarations::Types::CertificatesUploadDeclarationsResponse.load(response.body)
3918
+ else
3919
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3920
+ raise error_class.new(response.body, code: code)
3921
+ end
3922
+ end
3923
+
3924
+ # Lists the certificates and private keys stored for the filing systems of the company, ordered by system and
3925
+ # field, each with its validity facts and health (`ok`, `expiring`, `expired` or `unknown`).
3926
+ #
3927
+ # @param request_options [Hash]
3928
+ # @param params [Nordlet::Declarations::Types::CertificatesListDeclarationsRequest]
3929
+ # @option request_options [String] :base_url
3930
+ # @option request_options [Hash{String => Object}] :additional_headers
3931
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3932
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3933
+ # @option request_options [Integer] :timeout_in_seconds
3934
+ #
3935
+ # @return [Nordlet::Declarations::Types::CertificatesListDeclarationsResponse]
3936
+ def certificates_list(request_options: {}, **params)
3937
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3938
+ request = Nordlet::Internal::JSON::Request.new(
3939
+ base_url: request_options[:base_url],
3940
+ method: "POST",
3941
+ path: "v1/declarations/certificates/list",
3942
+ body: Nordlet::Declarations::Types::CertificatesListDeclarationsRequest.new(params).to_h,
3943
+ request_options: request_options
3944
+ )
3945
+ begin
3946
+ response = @client.send(request)
3947
+ rescue Net::HTTPRequestTimeout
3948
+ raise Nordlet::Errors::TimeoutError
3949
+ end
3950
+ code = response.code.to_i
3951
+ if code.between?(200, 299)
3952
+ Nordlet::Declarations::Types::CertificatesListDeclarationsResponse.load(response.body)
3953
+ else
3954
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3955
+ raise error_class.new(response.body, code: code)
3956
+ end
3957
+ end
3958
+
3959
+ # Removes the certificate or the private key (`fieldKey`) of a filing system from the settings of the company and
3960
+ # from the certificate list, and returns the remaining certificates.
3961
+ #
3962
+ # @param request_options [Hash]
3963
+ # @param params [Nordlet::Declarations::Types::CertificatesDeleteDeclarationsRequest]
3964
+ # @option request_options [String] :base_url
3965
+ # @option request_options [Hash{String => Object}] :additional_headers
3966
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3967
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3968
+ # @option request_options [Integer] :timeout_in_seconds
3969
+ #
3970
+ # @return [Nordlet::Declarations::Types::CertificatesDeleteDeclarationsResponse]
3971
+ def certificates_delete(request_options: {}, **params)
3972
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3973
+ request = Nordlet::Internal::JSON::Request.new(
3974
+ base_url: request_options[:base_url],
3975
+ method: "POST",
3976
+ path: "v1/declarations/certificates/delete",
3977
+ body: Nordlet::Declarations::Types::CertificatesDeleteDeclarationsRequest.new(params).to_h,
3978
+ request_options: request_options
3979
+ )
3980
+ begin
3981
+ response = @client.send(request)
3982
+ rescue Net::HTTPRequestTimeout
3983
+ raise Nordlet::Errors::TimeoutError
3984
+ end
3985
+ code = response.code.to_i
3986
+ if code.between?(200, 299)
3987
+ Nordlet::Declarations::Types::CertificatesDeleteDeclarationsResponse.load(response.body)
3988
+ else
3989
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3990
+ raise error_class.new(response.body, code: code)
3991
+ end
3992
+ end
3993
+
3994
+ # Lists the filing deadlines Nordlet can file by itself for the country of the company: for each, whether
3995
+ # automatic filing is switched on, whether the rule applies to the company profile, whether its filing system is
3996
+ # configured, the state of its certificate and whether it would go to the test or the production service.
3997
+ #
3998
+ # @param request_options [Hash]
3999
+ # @param params [Nordlet::Declarations::Types::AutomationListDeclarationsRequest]
4000
+ # @option request_options [String] :base_url
4001
+ # @option request_options [Hash{String => Object}] :additional_headers
4002
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4003
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4004
+ # @option request_options [Integer] :timeout_in_seconds
4005
+ #
4006
+ # @return [Nordlet::Declarations::Types::AutomationListDeclarationsResponse]
4007
+ def automation_list(request_options: {}, **params)
4008
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4009
+ request = Nordlet::Internal::JSON::Request.new(
4010
+ base_url: request_options[:base_url],
4011
+ method: "POST",
4012
+ path: "v1/declarations/automation/list",
4013
+ body: Nordlet::Declarations::Types::AutomationListDeclarationsRequest.new(params).to_h,
4014
+ request_options: request_options
4015
+ )
4016
+ begin
4017
+ response = @client.send(request)
4018
+ rescue Net::HTTPRequestTimeout
4019
+ raise Nordlet::Errors::TimeoutError
4020
+ end
4021
+ code = response.code.to_i
4022
+ if code.between?(200, 299)
4023
+ Nordlet::Declarations::Types::AutomationListDeclarationsResponse.load(response.body)
4024
+ else
4025
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4026
+ raise error_class.new(response.body, code: code)
4027
+ end
4028
+ end
4029
+
4030
+ # Switches automatic filing of one deadline on or off for the company and returns the list of
4031
+ # `declarations/automation/list`. Answers 422 when the deadline is not one Nordlet files, or when switching on
4032
+ # while the filing system is connected to the test service of the administration (unless the company is a
4033
+ # sandbox), is not configured, or has no valid certificate.
4034
+ #
4035
+ # @param request_options [Hash]
4036
+ # @param params [Nordlet::Declarations::Types::AutomationUpdateDeclarationsRequest]
4037
+ # @option request_options [String] :base_url
4038
+ # @option request_options [Hash{String => Object}] :additional_headers
4039
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4040
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4041
+ # @option request_options [Integer] :timeout_in_seconds
4042
+ #
4043
+ # @return [Nordlet::Declarations::Types::AutomationUpdateDeclarationsResponse]
4044
+ def automation_update(request_options: {}, **params)
4045
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4046
+ request = Nordlet::Internal::JSON::Request.new(
4047
+ base_url: request_options[:base_url],
4048
+ method: "POST",
4049
+ path: "v1/declarations/automation/update",
4050
+ body: Nordlet::Declarations::Types::AutomationUpdateDeclarationsRequest.new(params).to_h,
4051
+ request_options: request_options
4052
+ )
4053
+ begin
4054
+ response = @client.send(request)
4055
+ rescue Net::HTTPRequestTimeout
4056
+ raise Nordlet::Errors::TimeoutError
4057
+ end
4058
+ code = response.code.to_i
4059
+ if code.between?(200, 299)
4060
+ Nordlet::Declarations::Types::AutomationUpdateDeclarationsResponse.load(response.body)
4061
+ else
4062
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4063
+ raise error_class.new(response.body, code: code)
4064
+ end
4065
+ end
4066
+
4067
+ # Sends a submission that is still in status `generated` through its filing system once more, with the stored file
4068
+ # or, when none was stored yet, a freshly generated one, and returns the updated submission. Answers 409 when the
4069
+ # submission is already submitted, accepted or rejected.
4070
+ #
4071
+ # @param request_options [Hash]
4072
+ # @param params [Nordlet::Declarations::Types::SubmissionsRetryDeclarationsRequest]
4073
+ # @option request_options [String] :base_url
4074
+ # @option request_options [Hash{String => Object}] :additional_headers
4075
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4076
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4077
+ # @option request_options [Integer] :timeout_in_seconds
4078
+ #
4079
+ # @return [Nordlet::Declarations::Types::SubmissionsRetryDeclarationsResponse]
4080
+ def submissions_retry(request_options: {}, **params)
4081
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4082
+ request = Nordlet::Internal::JSON::Request.new(
4083
+ base_url: request_options[:base_url],
4084
+ method: "POST",
4085
+ path: "v1/declarations/submissions/retry",
4086
+ body: Nordlet::Declarations::Types::SubmissionsRetryDeclarationsRequest.new(params).to_h,
4087
+ request_options: request_options
4088
+ )
4089
+ begin
4090
+ response = @client.send(request)
4091
+ rescue Net::HTTPRequestTimeout
4092
+ raise Nordlet::Errors::TimeoutError
4093
+ end
4094
+ code = response.code.to_i
4095
+ if code.between?(200, 299)
4096
+ Nordlet::Declarations::Types::SubmissionsRetryDeclarationsResponse.load(response.body)
4097
+ else
4098
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4099
+ raise error_class.new(response.body, code: code)
4100
+ end
4101
+ end
4102
+
4103
+ # Sends a submission whose `confirmationPending` is true once more with the stored file and the token the
4104
+ # administration handed back with its warnings (the advis of Erhvervsstyrelsen's Regnskab Indberet, which files
4105
+ # the annual report only when it is sent again with that token), and returns the updated submission. Answers 409
4106
+ # when the submission is not waiting for a confirmation.
4107
+ #
4108
+ # @param request_options [Hash]
4109
+ # @param params [Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsRequest]
4110
+ # @option request_options [String] :base_url
4111
+ # @option request_options [Hash{String => Object}] :additional_headers
4112
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4113
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4114
+ # @option request_options [Integer] :timeout_in_seconds
4115
+ #
4116
+ # @return [Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponse]
4117
+ def submissions_confirm(request_options: {}, **params)
4118
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4119
+ request = Nordlet::Internal::JSON::Request.new(
4120
+ base_url: request_options[:base_url],
4121
+ method: "POST",
4122
+ path: "v1/declarations/submissions/confirm",
4123
+ body: Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsRequest.new(params).to_h,
4124
+ request_options: request_options
4125
+ )
4126
+ begin
4127
+ response = @client.send(request)
4128
+ rescue Net::HTTPRequestTimeout
4129
+ raise Nordlet::Errors::TimeoutError
4130
+ end
4131
+ code = response.code.to_i
4132
+ if code.between?(200, 299)
4133
+ Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponse.load(response.body)
4134
+ else
4135
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4136
+ raise error_class.new(response.body, code: code)
4137
+ end
4138
+ end
4139
+
4140
+ # Builds the file of a submitted or accepted submission again from the current data, the way it was built for that
4141
+ # submission, and compares it with the file that was filed. `needed` is false when the two carry the same data: a
4142
+ # correction would file the same return again. `changes` lists what differs, at most 500 entries (`changeCount`
4143
+ # counts them all): for an XML file each element or attribute by its path below the root element (`field`), for
4144
+ # another text file each line that is only in the filed file or only in the new one (`line`, its line number in
4145
+ # that file); `filed` and `current` are the two values, null where the field or line is missing on that side.
4146
+ # Dates and times of the moment a file was built (ISO date-times, and the dates of both builds written as
4147
+ # YYYY-MM-DD, YYYYMMDD, DD.MM.YYYY or DDMMYYYY) are not counted as differences. A ZIP or PDF file is compared byte
4148
+ # by byte and lists no `changes`. Answers 422 for a submission that is not submitted or accepted, whose deadline
4149
+ # Nordlet cannot correct, or that has no stored file.
4150
+ #
4151
+ # @param request_options [Hash]
4152
+ # @param params [Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsRequest]
4153
+ # @option request_options [String] :base_url
4154
+ # @option request_options [Hash{String => Object}] :additional_headers
4155
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4156
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4157
+ # @option request_options [Integer] :timeout_in_seconds
4158
+ #
4159
+ # @return [Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsResponse]
4160
+ def submissions_correction_preview(request_options: {}, **params)
4161
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4162
+ request = Nordlet::Internal::JSON::Request.new(
4163
+ base_url: request_options[:base_url],
4164
+ method: "POST",
4165
+ path: "v1/declarations/submissions/correction-preview",
4166
+ body: Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsRequest.new(params).to_h,
4167
+ request_options: request_options
4168
+ )
4169
+ begin
4170
+ response = @client.send(request)
4171
+ rescue Net::HTTPRequestTimeout
4172
+ raise Nordlet::Errors::TimeoutError
4173
+ end
4174
+ code = response.code.to_i
4175
+ if code.between?(200, 299)
4176
+ Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsResponse.load(response.body)
3388
4177
  else
3389
4178
  error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3390
4179
  raise error_class.new(response.body, code: code)
@@ -3465,7 +4254,10 @@ module Nordlet
3465
4254
  end
3466
4255
 
3467
4256
  # Lists the declaration submissions of the company, newest first, filterable by `obligation`, `status`,
3468
- # `periodYear` and `periodMonth` and sortable by `createdAt` or `periodYear`.
4257
+ # `periodYear` and `periodMonth` and sortable by `createdAt`, `periodYear`, `obligation`, `period` (the year, then
4258
+ # the month), `fileName`, `status` and `externalRef`. `canAmend` is true on the newest submitted or accepted send
4259
+ # of a period (per document for a deadline filed as one document per person) whose filing can be corrected;
4260
+ # `correction` names the fields `calendar/submit` with `amend: true` takes for it.
3469
4261
  #
3470
4262
  # @param request_options [Hash]
3471
4263
  # @param params [Nordlet::Declarations::Types::SubmissionsListDeclarationsRequest]