nordlet 0.6.11 → 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 (252) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +13 -7
  3. data/lib/nordlet/account/types/companies_context_account_response_profile.rb +11 -1
  4. data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +2 -0
  5. data/lib/nordlet/account/types/companies_context_account_response_profile_fiscal_year_week_rule.rb +14 -0
  6. data/lib/nordlet/account/types/companies_create_account_request.rb +10 -0
  7. data/lib/nordlet/account/types/companies_create_account_request_address.rb +2 -0
  8. data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +4 -221
  9. data/lib/nordlet/account/types/companies_create_account_request_fiscal_year_week_rule.rb +14 -0
  10. data/lib/nordlet/account/types/companies_profile_account_response.rb +11 -1
  11. data/lib/nordlet/account/types/companies_profile_account_response_address.rb +2 -0
  12. data/lib/nordlet/account/types/companies_profile_account_response_fiscal_year_week_rule.rb +14 -0
  13. data/lib/nordlet/account/types/companies_update_account_request.rb +10 -0
  14. data/lib/nordlet/account/types/companies_update_account_request_address.rb +2 -0
  15. data/lib/nordlet/account/types/companies_update_account_request_fiscal_year_week_rule.rb +14 -0
  16. data/lib/nordlet/account/types/companies_update_account_response.rb +11 -1
  17. data/lib/nordlet/account/types/companies_update_account_response_address.rb +2 -0
  18. data/lib/nordlet/account/types/companies_update_account_response_fiscal_year_week_rule.rb +14 -0
  19. data/lib/nordlet/bank/client.rb +96 -27
  20. data/lib/nordlet/bank/types/accounts_create_bank_request.rb +6 -0
  21. data/lib/nordlet/bank/types/accounts_create_bank_request_payment_file_settings.rb +27 -0
  22. data/lib/nordlet/bank/types/accounts_create_bank_response.rb +6 -0
  23. data/lib/nordlet/bank/types/accounts_create_bank_response_payment_file_settings.rb +25 -0
  24. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +6 -0
  25. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_payment_file_settings.rb +25 -0
  26. data/lib/nordlet/bank/types/accounts_update_bank_request.rb +6 -0
  27. data/lib/nordlet/bank/types/accounts_update_bank_request_payment_file_settings.rb +27 -0
  28. data/lib/nordlet/bank/types/accounts_update_bank_response.rb +6 -0
  29. data/lib/nordlet/bank/types/accounts_update_bank_response_payment_file_settings.rb +25 -0
  30. data/lib/nordlet/bank/types/direct_debits_export_bank_response.rb +7 -1
  31. data/lib/nordlet/bank/types/direct_debits_export_bank_response_format.rb +16 -0
  32. data/lib/nordlet/bank/types/mandates_auddis_export_bank_request.rb +15 -0
  33. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response.rb +29 -0
  34. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response_format.rb +16 -0
  35. data/lib/nordlet/bank/types/mandates_cancel_bank_response.rb +12 -2
  36. data/lib/nordlet/bank/types/mandates_cancel_bank_response_account_type.rb +14 -0
  37. data/lib/nordlet/bank/types/mandates_cancel_bank_response_scheme.rb +3 -0
  38. data/lib/nordlet/bank/types/mandates_create_bank_request.rb +7 -1
  39. data/lib/nordlet/bank/types/mandates_create_bank_request_account_type.rb +14 -0
  40. data/lib/nordlet/bank/types/mandates_create_bank_request_scheme.rb +3 -0
  41. data/lib/nordlet/bank/types/mandates_create_bank_response.rb +12 -2
  42. data/lib/nordlet/bank/types/mandates_create_bank_response_account_type.rb +14 -0
  43. data/lib/nordlet/bank/types/mandates_create_bank_response_scheme.rb +3 -0
  44. data/lib/nordlet/bank/types/mandates_get_bank_response.rb +12 -2
  45. data/lib/nordlet/bank/types/mandates_get_bank_response_account_type.rb +14 -0
  46. data/lib/nordlet/bank/types/mandates_get_bank_response_scheme.rb +3 -0
  47. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item.rb +12 -2
  48. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_account_type.rb +14 -0
  49. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_scheme.rb +3 -0
  50. data/lib/nordlet/bank/types/mandates_update_bank_response.rb +12 -2
  51. data/lib/nordlet/bank/types/mandates_update_bank_response_account_type.rb +14 -0
  52. data/lib/nordlet/bank/types/mandates_update_bank_response_scheme.rb +3 -0
  53. data/lib/nordlet/bank/types/payments_export_bank_response.rb +5 -1
  54. data/lib/nordlet/bank/types/payments_export_bank_response_format.rb +16 -0
  55. data/lib/nordlet/calendar/client.rb +2 -1
  56. data/lib/nordlet/calendar/types/submit_calendar_request.rb +2 -0
  57. data/lib/nordlet/calendar/types/submit_calendar_request_device.rb +22 -0
  58. data/lib/nordlet/calendar/types/submit_calendar_request_device_screens_item.rb +17 -0
  59. data/lib/nordlet/calendar/types/submit_calendar_request_device_window_size.rb +13 -0
  60. data/lib/nordlet/catalog/client.rb +4 -3
  61. data/lib/nordlet/declarations/client.rb +642 -3
  62. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +1 -1
  63. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +1 -1
  64. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_request.rb +21 -0
  65. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response.rb +29 -0
  66. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item.rb +33 -0
  67. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item_rate.rb +15 -0
  68. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_request.rb +9 -0
  69. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_response.rb +11 -0
  70. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_request.rb +13 -0
  71. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_response.rb +11 -0
  72. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
  73. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
  74. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
  75. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
  76. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
  77. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
  78. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
  79. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
  80. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
  81. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
  82. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
  83. data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_vat_obligations_list_declarations_request_status.rb} +3 -3
  84. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
  85. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
  86. 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
  87. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
  88. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
  89. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
  90. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
  91. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
  92. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
  93. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
  94. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
  95. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
  96. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
  97. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
  98. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
  99. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
  100. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
  101. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
  102. data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
  103. data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
  104. data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
  105. data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
  106. data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
  107. data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
  108. data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
  109. data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
  110. data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
  111. data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
  112. data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
  113. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
  114. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
  115. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
  116. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
  117. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
  118. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
  119. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
  120. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +13 -0
  121. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +23 -0
  122. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
  123. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
  124. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +19 -0
  125. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
  126. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
  127. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
  128. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
  129. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
  130. data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
  131. data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
  132. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
  133. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
  134. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
  135. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
  136. data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
  137. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
  138. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
  139. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
  140. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
  141. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
  142. data/lib/nordlet/hr/client.rb +6 -5
  143. data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
  144. data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
  145. data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
  146. data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
  147. data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
  148. data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
  149. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
  150. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
  151. data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
  152. data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
  153. data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
  154. data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
  155. data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
  156. data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
  157. data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
  158. data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
  159. data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
  160. data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
  161. data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
  162. data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
  163. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
  164. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
  165. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
  166. data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
  167. data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
  168. data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
  169. data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
  170. data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
  171. data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
  172. data/lib/nordlet/partners/client.rb +58 -14
  173. data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
  174. data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
  175. data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
  176. data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
  177. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
  178. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
  179. data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
  180. data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
  181. data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
  182. data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
  183. data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
  184. data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
  185. data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
  186. data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
  187. data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
  188. data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
  189. data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
  190. data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
  191. data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
  192. data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
  193. data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
  194. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
  195. data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
  196. data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
  197. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
  198. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
  199. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
  200. data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
  201. data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
  202. data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
  203. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
  204. data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
  205. data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
  206. data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
  207. data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
  208. data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
  209. data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
  210. data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
  211. data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
  212. data/lib/nordlet/payroll/client.rb +92 -37
  213. data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
  214. data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
  215. data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
  216. data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
  217. data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
  218. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +0 -4
  219. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
  220. data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
  221. data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
  222. data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
  223. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
  224. data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
  225. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
  226. data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
  227. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
  228. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
  229. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
  230. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
  231. data/lib/nordlet/reference/client.rb +14 -8
  232. data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
  233. data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
  234. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
  235. data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
  236. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
  237. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
  238. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
  239. data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
  240. data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
  241. data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
  242. data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
  243. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
  244. data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
  245. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +1 -0
  246. data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
  247. data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
  248. data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
  249. data/lib/nordlet/version.rb +1 -1
  250. data/lib/nordlet.rb +133 -2
  251. data/reference.md +6936 -5110
  252. metadata +135 -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
  #
@@ -3170,6 +3173,642 @@ module Nordlet
3170
3173
  end
3171
3174
  end
3172
3175
 
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.
3180
+ #
3181
+ # @param request_options [Hash]
3182
+ # @param params [Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsRequest]
3183
+ # @option request_options [String] :base_url
3184
+ # @option request_options [Hash{String => Object}] :additional_headers
3185
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3186
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3187
+ # @option request_options [Integer] :timeout_in_seconds
3188
+ #
3189
+ # @return [Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsResponse]
3190
+ def gb_hmrc_authorize_url_get(request_options: {}, **params)
3191
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3192
+ request = Nordlet::Internal::JSON::Request.new(
3193
+ base_url: request_options[:base_url],
3194
+ method: "POST",
3195
+ path: "v1/declarations/gb/hmrc/authorize-url/get",
3196
+ body: Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsRequest.new(params).to_h,
3197
+ request_options: request_options
3198
+ )
3199
+ begin
3200
+ response = @client.send(request)
3201
+ rescue Net::HTTPRequestTimeout
3202
+ raise Nordlet::Errors::TimeoutError
3203
+ end
3204
+ code = response.code.to_i
3205
+ if code.between?(200, 299)
3206
+ Nordlet::Declarations::Types::GbHmrcAuthorizeURLGetDeclarationsResponse.load(response.body)
3207
+ else
3208
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3209
+ raise error_class.new(response.body, code: code)
3210
+ end
3211
+ end
3212
+
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.
3217
+ #
3218
+ # @param request_options [Hash]
3219
+ # @param params [Nordlet::Declarations::Types::GbHmrcConnectDeclarationsRequest]
3220
+ # @option request_options [String] :base_url
3221
+ # @option request_options [Hash{String => Object}] :additional_headers
3222
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3223
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3224
+ # @option request_options [Integer] :timeout_in_seconds
3225
+ #
3226
+ # @return [Nordlet::Declarations::Types::GbHmrcConnectDeclarationsResponse]
3227
+ def gb_hmrc_connect(request_options: {}, **params)
3228
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3229
+ request = Nordlet::Internal::JSON::Request.new(
3230
+ base_url: request_options[:base_url],
3231
+ method: "POST",
3232
+ path: "v1/declarations/gb/hmrc/connect",
3233
+ body: Nordlet::Declarations::Types::GbHmrcConnectDeclarationsRequest.new(params).to_h,
3234
+ request_options: request_options
3235
+ )
3236
+ begin
3237
+ response = @client.send(request)
3238
+ rescue Net::HTTPRequestTimeout
3239
+ raise Nordlet::Errors::TimeoutError
3240
+ end
3241
+ code = response.code.to_i
3242
+ if code.between?(200, 299)
3243
+ Nordlet::Declarations::Types::GbHmrcConnectDeclarationsResponse.load(response.body)
3244
+ else
3245
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3246
+ raise error_class.new(response.body, code: code)
3247
+ end
3248
+ end
3249
+
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.
3257
+ #
3258
+ # @param request_options [Hash]
3259
+ # @param params [Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsRequest]
3260
+ # @option request_options [String] :base_url
3261
+ # @option request_options [Hash{String => Object}] :additional_headers
3262
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3263
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3264
+ # @option request_options [Integer] :timeout_in_seconds
3265
+ #
3266
+ # @return [Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsResponse]
3267
+ def gb_corporation_tax_compute(request_options: {}, **params)
3268
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3269
+ request = Nordlet::Internal::JSON::Request.new(
3270
+ base_url: request_options[:base_url],
3271
+ method: "POST",
3272
+ path: "v1/declarations/gb/corporation-tax/compute",
3273
+ body: Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsRequest.new(params).to_h,
3274
+ request_options: request_options
3275
+ )
3276
+ begin
3277
+ response = @client.send(request)
3278
+ rescue Net::HTTPRequestTimeout
3279
+ raise Nordlet::Errors::TimeoutError
3280
+ end
3281
+ code = response.code.to_i
3282
+ if code.between?(200, 299)
3283
+ Nordlet::Declarations::Types::GbCorporationTaxComputeDeclarationsResponse.load(response.body)
3284
+ else
3285
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3286
+ raise error_class.new(response.body, code: code)
3287
+ end
3288
+ end
3289
+
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.
3293
+ #
3294
+ # @param request_options [Hash]
3295
+ # @param params [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest]
3296
+ # @option request_options [String] :base_url
3297
+ # @option request_options [Hash{String => Object}] :additional_headers
3298
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3299
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3300
+ # @option request_options [Integer] :timeout_in_seconds
3301
+ #
3302
+ # @return [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse]
3303
+ def gb_vat_obligations_list(request_options: {}, **params)
3304
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3305
+ request = Nordlet::Internal::JSON::Request.new(
3306
+ base_url: request_options[:base_url],
3307
+ method: "POST",
3308
+ path: "v1/declarations/gb/vat/obligations/list",
3309
+ body: Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest.new(params).to_h,
3310
+ request_options: request_options
3311
+ )
3312
+ begin
3313
+ response = @client.send(request)
3314
+ rescue Net::HTTPRequestTimeout
3315
+ raise Nordlet::Errors::TimeoutError
3316
+ end
3317
+ code = response.code.to_i
3318
+ if code.between?(200, 299)
3319
+ Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse.load(response.body)
3320
+ else
3321
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3322
+ raise error_class.new(response.body, code: code)
3323
+ end
3324
+ end
3325
+
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.
3328
+ #
3329
+ # @param request_options [Hash]
3330
+ # @param params [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest]
3331
+ # @option request_options [String] :base_url
3332
+ # @option request_options [Hash{String => Object}] :additional_headers
3333
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3334
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3335
+ # @option request_options [Integer] :timeout_in_seconds
3336
+ #
3337
+ # @return [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse]
3338
+ def gb_vat_returns_get(request_options: {}, **params)
3339
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3340
+ request = Nordlet::Internal::JSON::Request.new(
3341
+ base_url: request_options[:base_url],
3342
+ method: "POST",
3343
+ path: "v1/declarations/gb/vat/returns/get",
3344
+ body: Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest.new(params).to_h,
3345
+ request_options: request_options
3346
+ )
3347
+ begin
3348
+ response = @client.send(request)
3349
+ rescue Net::HTTPRequestTimeout
3350
+ raise Nordlet::Errors::TimeoutError
3351
+ end
3352
+ code = response.code.to_i
3353
+ if code.between?(200, 299)
3354
+ Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse.load(response.body)
3355
+ else
3356
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3357
+ raise error_class.new(response.body, code: code)
3358
+ end
3359
+ end
3360
+
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.
3363
+ #
3364
+ # @param request_options [Hash]
3365
+ # @param params [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest]
3366
+ # @option request_options [String] :base_url
3367
+ # @option request_options [Hash{String => Object}] :additional_headers
3368
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3369
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3370
+ # @option request_options [Integer] :timeout_in_seconds
3371
+ #
3372
+ # @return [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse]
3373
+ def gb_vat_liabilities_list(request_options: {}, **params)
3374
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3375
+ request = Nordlet::Internal::JSON::Request.new(
3376
+ base_url: request_options[:base_url],
3377
+ method: "POST",
3378
+ path: "v1/declarations/gb/vat/liabilities/list",
3379
+ body: Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest.new(params).to_h,
3380
+ request_options: request_options
3381
+ )
3382
+ begin
3383
+ response = @client.send(request)
3384
+ rescue Net::HTTPRequestTimeout
3385
+ raise Nordlet::Errors::TimeoutError
3386
+ end
3387
+ code = response.code.to_i
3388
+ if code.between?(200, 299)
3389
+ Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse.load(response.body)
3390
+ else
3391
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3392
+ raise error_class.new(response.body, code: code)
3393
+ end
3394
+ end
3395
+
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.
3398
+ #
3399
+ # @param request_options [Hash]
3400
+ # @param params [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest]
3401
+ # @option request_options [String] :base_url
3402
+ # @option request_options [Hash{String => Object}] :additional_headers
3403
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3404
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3405
+ # @option request_options [Integer] :timeout_in_seconds
3406
+ #
3407
+ # @return [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse]
3408
+ def gb_vat_payments_list(request_options: {}, **params)
3409
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3410
+ request = Nordlet::Internal::JSON::Request.new(
3411
+ base_url: request_options[:base_url],
3412
+ method: "POST",
3413
+ path: "v1/declarations/gb/vat/payments/list",
3414
+ body: Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest.new(params).to_h,
3415
+ request_options: request_options
3416
+ )
3417
+ begin
3418
+ response = @client.send(request)
3419
+ rescue Net::HTTPRequestTimeout
3420
+ raise Nordlet::Errors::TimeoutError
3421
+ end
3422
+ code = response.code.to_i
3423
+ if code.between?(200, 299)
3424
+ Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse.load(response.body)
3425
+ else
3426
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3427
+ raise error_class.new(response.body, code: code)
3428
+ end
3429
+ end
3430
+
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`.
3433
+ #
3434
+ # @param request_options [Hash]
3435
+ # @param params [Nordlet::Declarations::Types::GbVatPenaltiesGetDeclarationsRequest]
3436
+ # @option request_options [String] :base_url
3437
+ # @option request_options [Hash{String => Object}] :additional_headers
3438
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3439
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3440
+ # @option request_options [Integer] :timeout_in_seconds
3441
+ #
3442
+ # @return [Hash[String, Object]]
3443
+ def gb_vat_penalties_get(request_options: {}, **params)
3444
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3445
+ request = Nordlet::Internal::JSON::Request.new(
3446
+ base_url: request_options[:base_url],
3447
+ method: "POST",
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,
3488
+ request_options: request_options
3489
+ )
3490
+ begin
3491
+ response = @client.send(request)
3492
+ rescue Net::HTTPRequestTimeout
3493
+ raise Nordlet::Errors::TimeoutError
3494
+ end
3495
+ code = response.code.to_i
3496
+ if code.between?(200, 299)
3497
+ Nordlet::Declarations::Types::Us941GetDeclarationsResponse.load(response.body)
3498
+ else
3499
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3500
+ raise error_class.new(response.body, code: code)
3501
+ end
3502
+ end
3503
+
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.
3510
+ #
3511
+ # @param request_options [Hash]
3512
+ # @param params [Nordlet::Declarations::Types::Us940GetDeclarationsRequest]
3513
+ # @option request_options [String] :base_url
3514
+ # @option request_options [Hash{String => Object}] :additional_headers
3515
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3516
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3517
+ # @option request_options [Integer] :timeout_in_seconds
3518
+ #
3519
+ # @return [Nordlet::Declarations::Types::Us940GetDeclarationsResponse]
3520
+ def us940get(request_options: {}, **params)
3521
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3522
+ request = Nordlet::Internal::JSON::Request.new(
3523
+ base_url: request_options[:base_url],
3524
+ method: "POST",
3525
+ path: "v1/declarations/us/940/get",
3526
+ body: Nordlet::Declarations::Types::Us940GetDeclarationsRequest.new(params).to_h,
3527
+ request_options: request_options
3528
+ )
3529
+ begin
3530
+ response = @client.send(request)
3531
+ rescue Net::HTTPRequestTimeout
3532
+ raise Nordlet::Errors::TimeoutError
3533
+ end
3534
+ code = response.code.to_i
3535
+ if code.between?(200, 299)
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
+
3173
3812
  # Lists the filing systems the company can configure: those of the company country (or of `country` when given),
3174
3813
  # the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
3175
3814
  # carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken
@@ -14,7 +14,7 @@ module Nordlet
14
14
 
15
15
  field :options, -> { Internal::Types::Array[String] }, optional: true, nullable: false
16
16
 
17
- field :company_field, -> { Nordlet::Declarations::Types::ConfigsListDeclarationsResponseRowsItemFieldsItemCompanyField }, optional: true, nullable: false, api_name: "companyField"
17
+ field :company_field, -> { String }, optional: true, nullable: false, api_name: "companyField"
18
18
  end
19
19
  end
20
20
  end