nordlet 0.6.11 → 0.7.1

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 (430) 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 +1078 -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_p11d_items_create_declarations_request.rb +15 -0
  73. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item.rb +55 -0
  74. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_available.rb +17 -0
  75. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_available_asset.rb +19 -0
  76. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_transferred.rb +17 -0
  77. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_asset_transferred_asset.rb +17 -0
  78. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_car.rb +43 -0
  79. data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_p11d_items_create_declarations_request_item_car_fuel.rb} +4 -3
  80. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_entertainment.rb +15 -0
  81. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_home_telephone.rb +13 -0
  82. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_non_qualifying_relocation.rb +13 -0
  83. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_other.rb +15 -0
  84. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_expenses_travel_and_subsistence.rb +13 -0
  85. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_living_accommodation.rb +11 -0
  86. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_loan.rb +25 -0
  87. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_medical.rb +13 -0
  88. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_mileage_allowance.rb +11 -0
  89. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_class1a.rb +17 -0
  90. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_class1a_item.rb +18 -0
  91. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_non_class1a.rb +17 -0
  92. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_other_non_class1a_item.rb +18 -0
  93. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_payment.rb +15 -0
  94. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_payment_payment.rb +19 -0
  95. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_relocation.rb +11 -0
  96. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_services.rb +13 -0
  97. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_tax_on_notional_payments.rb +11 -0
  98. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_tax_paid_not_deducted.rb +11 -0
  99. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_vans.rb +13 -0
  100. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_request_item_vouchers_or_credit_cards.rb +13 -0
  101. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response.rb +23 -0
  102. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item.rb +55 -0
  103. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_available.rb +17 -0
  104. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_available_asset.rb +19 -0
  105. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_transferred.rb +17 -0
  106. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_asset_transferred_asset.rb +17 -0
  107. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_car.rb +43 -0
  108. data/lib/nordlet/declarations/types/{configs_list_declarations_response_rows_item_fields_item_company_field.rb → gb_p11d_items_create_declarations_response_item_car_fuel.rb} +4 -3
  109. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_entertainment.rb +15 -0
  110. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_home_telephone.rb +13 -0
  111. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_non_qualifying_relocation.rb +13 -0
  112. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_other.rb +15 -0
  113. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_expenses_travel_and_subsistence.rb +13 -0
  114. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_living_accommodation.rb +11 -0
  115. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_loan.rb +25 -0
  116. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_medical.rb +13 -0
  117. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_mileage_allowance.rb +11 -0
  118. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_class1a.rb +17 -0
  119. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_class1a_item.rb +18 -0
  120. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_non_class1a.rb +17 -0
  121. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_other_non_class1a_item.rb +18 -0
  122. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_payment.rb +15 -0
  123. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_payment_payment.rb +19 -0
  124. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_relocation.rb +11 -0
  125. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_services.rb +13 -0
  126. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_tax_on_notional_payments.rb +11 -0
  127. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_tax_paid_not_deducted.rb +11 -0
  128. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_vans.rb +13 -0
  129. data/lib/nordlet/declarations/types/gb_p11d_items_create_declarations_response_item_vouchers_or_credit_cards.rb +13 -0
  130. data/lib/nordlet/declarations/types/gb_p11d_items_delete_declarations_request.rb +11 -0
  131. data/lib/nordlet/declarations/types/gb_p11d_items_delete_declarations_response.rb +11 -0
  132. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_request.rb +13 -0
  133. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response.rb +11 -0
  134. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item.rb +23 -0
  135. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item.rb +55 -0
  136. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_available.rb +17 -0
  137. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_available_asset.rb +19 -0
  138. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_transferred.rb +17 -0
  139. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_asset_transferred_asset.rb +17 -0
  140. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_car.rb +43 -0
  141. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_car_fuel.rb +15 -0
  142. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_entertainment.rb +15 -0
  143. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_home_telephone.rb +13 -0
  144. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_non_qualifying_relocation.rb +13 -0
  145. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_other.rb +15 -0
  146. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_expenses_travel_and_subsistence.rb +13 -0
  147. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_living_accommodation.rb +11 -0
  148. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_loan.rb +25 -0
  149. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_medical.rb +13 -0
  150. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_mileage_allowance.rb +11 -0
  151. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_class1a.rb +17 -0
  152. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_class1a_item.rb +18 -0
  153. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_non_class1a.rb +17 -0
  154. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_other_non_class1a_item.rb +18 -0
  155. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_payment.rb +15 -0
  156. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_payment_payment.rb +19 -0
  157. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_relocation.rb +11 -0
  158. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_services.rb +13 -0
  159. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_tax_on_notional_payments.rb +11 -0
  160. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_tax_paid_not_deducted.rb +11 -0
  161. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_vans.rb +13 -0
  162. data/lib/nordlet/declarations/types/gb_p11d_items_list_declarations_response_items_item_item_vouchers_or_credit_cards.rb +13 -0
  163. data/lib/nordlet/declarations/types/gb_p45get_declarations_request.rb +11 -0
  164. data/lib/nordlet/declarations/types/gb_p45get_declarations_response.rb +31 -0
  165. data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employee.rb +27 -0
  166. data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employee_gender.rb +14 -0
  167. data/lib/nordlet/declarations/types/gb_p45get_declarations_response_employer.rb +19 -0
  168. data/lib/nordlet/declarations/types/gb_p45get_declarations_response_last_entries.rb +17 -0
  169. data/lib/nordlet/declarations/types/gb_p45get_declarations_response_this_employment.rb +13 -0
  170. data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_request.rb +11 -0
  171. data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response.rb +13 -0
  172. data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts.rb +57 -0
  173. data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts_balancing_charges.rb +17 -0
  174. data/lib/nordlet/declarations/types/gb_return_facts_get_declarations_response_facts_capital_allowances.rb +21 -0
  175. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request.rb +13 -0
  176. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts.rb +57 -0
  177. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts_balancing_charges.rb +17 -0
  178. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_request_facts_capital_allowances.rb +21 -0
  179. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response.rb +13 -0
  180. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts.rb +57 -0
  181. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts_balancing_charges.rb +17 -0
  182. data/lib/nordlet/declarations/types/gb_return_facts_set_declarations_response_facts_capital_allowances.rb +21 -0
  183. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
  184. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
  185. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
  186. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
  187. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
  188. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
  189. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
  190. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
  191. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
  192. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
  193. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
  194. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_status.rb +14 -0
  195. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
  196. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
  197. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item_status.rb +14 -0
  198. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
  199. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
  200. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
  201. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
  202. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
  203. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
  204. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
  205. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
  206. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
  207. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
  208. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
  209. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
  210. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
  211. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
  212. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
  213. data/lib/nordlet/declarations/types/us1099nec_list_declarations_request.rb +11 -0
  214. data/lib/nordlet/declarations/types/us1099nec_list_declarations_response.rb +19 -0
  215. data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_excluded_item.rb +17 -0
  216. data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_forms_item.rb +23 -0
  217. data/lib/nordlet/declarations/types/us1099nec_list_declarations_response_forms_item_name_type.rb +14 -0
  218. data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
  219. data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
  220. data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
  221. data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
  222. data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
  223. data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
  224. data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
  225. data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
  226. data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
  227. data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
  228. data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
  229. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
  230. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
  231. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
  232. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
  233. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
  234. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
  235. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
  236. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +19 -0
  237. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +31 -0
  238. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
  239. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8.rb +37 -0
  240. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a.rb +15 -0
  241. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a_pages_item.rb +13 -0
  242. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_uc8a_pages_item_rows_item.rb +21 -0
  243. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
  244. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +21 -0
  245. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response_wth_tax.rb +19 -0
  246. data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_request.rb +13 -0
  247. data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_response.rb +39 -0
  248. data/lib/nordlet/declarations/types/us_de_withholding_reconciliation_get_declarations_response_worksheet_item.rb +15 -0
  249. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_request.rb +15 -0
  250. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response.rb +19 -0
  251. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item.rb +33 -0
  252. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_address.rb +17 -0
  253. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item.rb +37 -0
  254. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_additions_item.rb +17 -0
  255. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_basis_of_pay.rb +13 -0
  256. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_pay_periods_item_deductions_item.rb +13 -0
  257. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_sex.rb +14 -0
  258. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweek_start.rb +13 -0
  259. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweeks_item.rb +23 -0
  260. data/lib/nordlet/declarations/types/us_flsa_records_list_declarations_response_employees_item_workweeks_item_days_item.rb +13 -0
  261. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_request.rb +11 -0
  262. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response.rb +25 -0
  263. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_form.rb +15 -0
  264. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_other_lines_item.rb +15 -0
  265. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_page1item.rb +15 -0
  266. data/lib/nordlet/declarations/types/us_income_tax_return_get_declarations_response_schedule_l_item.rb +17 -0
  267. data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_request.rb +13 -0
  268. data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_response.rb +19 -0
  269. data/lib/nordlet/declarations/types/us_sales_tax_get_declarations_response_jurisdictions_item.rb +19 -0
  270. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
  271. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
  272. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
  273. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
  274. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
  275. data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
  276. data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
  277. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
  278. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
  279. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
  280. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
  281. data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
  282. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
  283. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
  284. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
  285. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
  286. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
  287. data/lib/nordlet/hr/client.rb +6 -5
  288. data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
  289. data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
  290. data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
  291. data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
  292. data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
  293. data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
  294. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
  295. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
  296. data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
  297. data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
  298. data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
  299. data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
  300. data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
  301. data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
  302. data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
  303. data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
  304. data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
  305. data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
  306. data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
  307. data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
  308. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
  309. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
  310. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
  311. data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
  312. data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
  313. data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
  314. data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
  315. data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
  316. data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
  317. data/lib/nordlet/partners/client.rb +178 -18
  318. data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
  319. data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
  320. data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
  321. data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
  322. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
  323. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
  324. data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
  325. data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
  326. data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
  327. data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
  328. data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
  329. data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
  330. data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
  331. data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
  332. data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
  333. data/lib/nordlet/partners/types/create_partners_request.rb +4 -0
  334. data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
  335. data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
  336. data/lib/nordlet/partners/types/create_partners_response.rb +4 -0
  337. data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
  338. data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
  339. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +4 -0
  340. data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
  341. data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
  342. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +4 -0
  343. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
  344. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
  345. data/lib/nordlet/partners/types/get_partners_response.rb +4 -0
  346. data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
  347. data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
  348. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +4 -0
  349. data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
  350. data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
  351. data/lib/nordlet/partners/types/sales_tax_exemptions_cancel_partners_request.rb +13 -0
  352. data/lib/nordlet/partners/types/sales_tax_exemptions_cancel_partners_response.rb +41 -0
  353. data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request.rb +37 -0
  354. data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_business_type.rb +32 -0
  355. data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_reasons_item.rb +25 -0
  356. data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_request_state.rb +36 -0
  357. data/lib/nordlet/partners/types/sales_tax_exemptions_create_partners_response.rb +41 -0
  358. data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_request.rb +11 -0
  359. data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_response.rb +11 -0
  360. data/lib/nordlet/partners/types/sales_tax_exemptions_list_partners_response_items_item.rb +41 -0
  361. data/lib/nordlet/partners/types/update_partners_request.rb +4 -0
  362. data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
  363. data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
  364. data/lib/nordlet/partners/types/update_partners_response.rb +4 -0
  365. data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
  366. data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
  367. data/lib/nordlet/payroll/client.rb +96 -37
  368. data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
  369. data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
  370. data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
  371. data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
  372. data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
  373. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +0 -4
  374. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
  375. data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
  376. data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
  377. data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
  378. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
  379. data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
  380. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
  381. data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
  382. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
  383. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
  384. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
  385. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
  386. data/lib/nordlet/reference/client.rb +14 -8
  387. data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
  388. data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
  389. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
  390. data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
  391. data/lib/nordlet/sales/client.rb +6 -4
  392. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
  393. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
  394. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
  395. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_delivery_address.rb +19 -0
  396. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
  397. data/lib/nordlet/sales/types/invoices_create_sales_request.rb +4 -0
  398. data/lib/nordlet/sales/types/invoices_create_sales_request_delivery_address.rb +21 -0
  399. data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
  400. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
  401. data/lib/nordlet/sales/types/invoices_create_sales_response_delivery_address.rb +19 -0
  402. data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
  403. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
  404. data/lib/nordlet/sales/types/invoices_get_sales_response_delivery_address.rb +19 -0
  405. data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
  406. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
  407. data/lib/nordlet/sales/types/invoices_issue_sales_response_delivery_address.rb +19 -0
  408. data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
  409. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
  410. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_delivery_address.rb +19 -0
  411. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
  412. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
  413. data/lib/nordlet/sales/types/invoices_lock_sales_response_delivery_address.rb +19 -0
  414. data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
  415. data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +6 -0
  416. data/lib/nordlet/sales/types/invoices_reverse_sales_response_delivery_address.rb +19 -0
  417. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +1 -0
  418. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
  419. data/lib/nordlet/sales/types/invoices_unlock_sales_response_delivery_address.rb +19 -0
  420. data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
  421. data/lib/nordlet/sales/types/invoices_update_sales_request.rb +4 -0
  422. data/lib/nordlet/sales/types/invoices_update_sales_request_delivery_address.rb +19 -0
  423. data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
  424. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
  425. data/lib/nordlet/sales/types/invoices_update_sales_response_delivery_address.rb +19 -0
  426. data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
  427. data/lib/nordlet/version.rb +1 -1
  428. data/lib/nordlet.rb +299 -2
  429. data/reference.md +6013 -3040
  430. metadata +301 -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,1078 @@ 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
+ # The facts of one accounting period that the Company Tax Return (CT600) and its computations need and the ledger
3291
+ # does not hold: the company type (box 4), the associated companies, the small companies regime and the section
3292
+ # 477 audit exemption of the accounts, the tax adjustments to the profit per the accounts, the capital allowances
3293
+ # and balancing charges, the trading losses brought forward, the chargeable gains, the qualifying donations, the
3294
+ # tax already paid, the declarant and the senior statutory auditor who signed the auditor’s report. The annual
3295
+ # accounts to Companies House read the small companies regime, the section 477 audit exemption and the senior
3296
+ # statutory auditor too. `year` is the fiscal year by the year in which it ends. A key that is absent has not been
3297
+ # answered.
3298
+ #
3299
+ # @param request_options [Hash]
3300
+ # @param params [Nordlet::Declarations::Types::GbReturnFactsGetDeclarationsRequest]
3301
+ # @option request_options [String] :base_url
3302
+ # @option request_options [Hash{String => Object}] :additional_headers
3303
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3304
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3305
+ # @option request_options [Integer] :timeout_in_seconds
3306
+ #
3307
+ # @return [Nordlet::Declarations::Types::GbReturnFactsGetDeclarationsResponse]
3308
+ def gb_return_facts_get(request_options: {}, **params)
3309
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3310
+ request = Nordlet::Internal::JSON::Request.new(
3311
+ base_url: request_options[:base_url],
3312
+ method: "POST",
3313
+ path: "v1/declarations/gb/return-facts/get",
3314
+ body: Nordlet::Declarations::Types::GbReturnFactsGetDeclarationsRequest.new(params).to_h,
3315
+ request_options: request_options
3316
+ )
3317
+ begin
3318
+ response = @client.send(request)
3319
+ rescue Net::HTTPRequestTimeout
3320
+ raise Nordlet::Errors::TimeoutError
3321
+ end
3322
+ code = response.code.to_i
3323
+ if code.between?(200, 299)
3324
+ Nordlet::Declarations::Types::GbReturnFactsGetDeclarationsResponse.load(response.body)
3325
+ else
3326
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3327
+ raise error_class.new(response.body, code: code)
3328
+ end
3329
+ end
3330
+
3331
+ # Replace the facts of one accounting period for the Company Tax Return. The `gb-ct-return` and
3332
+ # `gb-annual-accounts` filings built afterwards read them; a key left out stays unanswered.
3333
+ #
3334
+ # @param request_options [Hash]
3335
+ # @param params [Nordlet::Declarations::Types::GbReturnFactsSetDeclarationsRequest]
3336
+ # @option request_options [String] :base_url
3337
+ # @option request_options [Hash{String => Object}] :additional_headers
3338
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3339
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3340
+ # @option request_options [Integer] :timeout_in_seconds
3341
+ #
3342
+ # @return [Nordlet::Declarations::Types::GbReturnFactsSetDeclarationsResponse]
3343
+ def gb_return_facts_set(request_options: {}, **params)
3344
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3345
+ request = Nordlet::Internal::JSON::Request.new(
3346
+ base_url: request_options[:base_url],
3347
+ method: "POST",
3348
+ path: "v1/declarations/gb/return-facts/set",
3349
+ body: Nordlet::Declarations::Types::GbReturnFactsSetDeclarationsRequest.new(params).to_h,
3350
+ request_options: request_options
3351
+ )
3352
+ begin
3353
+ response = @client.send(request)
3354
+ rescue Net::HTTPRequestTimeout
3355
+ raise Nordlet::Errors::TimeoutError
3356
+ end
3357
+ code = response.code.to_i
3358
+ if code.between?(200, 299)
3359
+ Nordlet::Declarations::Types::GbReturnFactsSetDeclarationsResponse.load(response.body)
3360
+ else
3361
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3362
+ raise error_class.new(response.body, code: code)
3363
+ end
3364
+ end
3365
+
3366
+ # Records a benefit or expense of an employee that is not taxed through the payroll, for the P11D of the tax year
3367
+ # that starts on 6 April of `taxYear`. `item.type` chooses the P11D section (A `asset-transferred`; B `payment`,
3368
+ # `tax-on-notional-payments`; C `vouchers-or-credit-cards`; D `living-accommodation`; E `mileage-allowance`; F
3369
+ # `car`; G `vans`; H `loan`; I `medical`; J `relocation`; K `services`; L `asset-available`; M `other-class-1a`,
3370
+ # `other-non-class-1a`, `tax-paid-not-deducted`; N `expenses-travel-and-subsistence`, `expenses-entertainment`,
3371
+ # `expenses-home-telephone`, `expenses-non-qualifying-relocation`, `expenses-other`). Amounts are the cash
3372
+ # equivalents the employer works out; for a cost item the cash equivalent is the cost less the amount made good.
3373
+ # The `gb-p11db` filing sends these P11Ds with the P11D(b), whose total benefit adds the items liable to Class 1A.
3374
+ # Answers 422 for a rule of HMRC's business rules the item breaks and 409 for a second item of a kind HMRC takes
3375
+ # once per employee.
3376
+ #
3377
+ # @param request_options [Hash]
3378
+ # @param params [Nordlet::Declarations::Types::GbP11DItemsCreateDeclarationsRequest]
3379
+ # @option request_options [String] :base_url
3380
+ # @option request_options [Hash{String => Object}] :additional_headers
3381
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3382
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3383
+ # @option request_options [Integer] :timeout_in_seconds
3384
+ #
3385
+ # @return [Nordlet::Declarations::Types::GbP11DItemsCreateDeclarationsResponse]
3386
+ def gb_p11d_items_create(request_options: {}, **params)
3387
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3388
+ request = Nordlet::Internal::JSON::Request.new(
3389
+ base_url: request_options[:base_url],
3390
+ method: "POST",
3391
+ path: "v1/declarations/gb/p11d/items/create",
3392
+ body: Nordlet::Declarations::Types::GbP11DItemsCreateDeclarationsRequest.new(params).to_h,
3393
+ request_options: request_options
3394
+ )
3395
+ begin
3396
+ response = @client.send(request)
3397
+ rescue Net::HTTPRequestTimeout
3398
+ raise Nordlet::Errors::TimeoutError
3399
+ end
3400
+ code = response.code.to_i
3401
+ if code.between?(200, 299)
3402
+ Nordlet::Declarations::Types::GbP11DItemsCreateDeclarationsResponse.load(response.body)
3403
+ else
3404
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3405
+ raise error_class.new(response.body, code: code)
3406
+ end
3407
+ end
3408
+
3409
+ # Lists the P11D items of a tax year, optionally of one employee, with their section, cash equivalent and whether
3410
+ # they count for Class 1A.
3411
+ #
3412
+ # @param request_options [Hash]
3413
+ # @param params [Nordlet::Declarations::Types::GbP11DItemsListDeclarationsRequest]
3414
+ # @option request_options [String] :base_url
3415
+ # @option request_options [Hash{String => Object}] :additional_headers
3416
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3417
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3418
+ # @option request_options [Integer] :timeout_in_seconds
3419
+ #
3420
+ # @return [Nordlet::Declarations::Types::GbP11DItemsListDeclarationsResponse]
3421
+ def gb_p11d_items_list(request_options: {}, **params)
3422
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3423
+ request = Nordlet::Internal::JSON::Request.new(
3424
+ base_url: request_options[:base_url],
3425
+ method: "POST",
3426
+ path: "v1/declarations/gb/p11d/items/list",
3427
+ body: Nordlet::Declarations::Types::GbP11DItemsListDeclarationsRequest.new(params).to_h,
3428
+ request_options: request_options
3429
+ )
3430
+ begin
3431
+ response = @client.send(request)
3432
+ rescue Net::HTTPRequestTimeout
3433
+ raise Nordlet::Errors::TimeoutError
3434
+ end
3435
+ code = response.code.to_i
3436
+ if code.between?(200, 299)
3437
+ Nordlet::Declarations::Types::GbP11DItemsListDeclarationsResponse.load(response.body)
3438
+ else
3439
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3440
+ raise error_class.new(response.body, code: code)
3441
+ end
3442
+ end
3443
+
3444
+ # Deletes a P11D item.
3445
+ #
3446
+ # @param request_options [Hash]
3447
+ # @param params [Nordlet::Declarations::Types::GbP11DItemsDeleteDeclarationsRequest]
3448
+ # @option request_options [String] :base_url
3449
+ # @option request_options [Hash{String => Object}] :additional_headers
3450
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3451
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3452
+ # @option request_options [Integer] :timeout_in_seconds
3453
+ #
3454
+ # @return [Nordlet::Declarations::Types::GbP11DItemsDeleteDeclarationsResponse]
3455
+ def gb_p11d_items_delete(request_options: {}, **params)
3456
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3457
+ request = Nordlet::Internal::JSON::Request.new(
3458
+ base_url: request_options[:base_url],
3459
+ method: "POST",
3460
+ path: "v1/declarations/gb/p11d/items/delete",
3461
+ body: Nordlet::Declarations::Types::GbP11DItemsDeleteDeclarationsRequest.new(params).to_h,
3462
+ request_options: request_options
3463
+ )
3464
+ begin
3465
+ response = @client.send(request)
3466
+ rescue Net::HTTPRequestTimeout
3467
+ raise Nordlet::Errors::TimeoutError
3468
+ end
3469
+ code = response.code.to_i
3470
+ if code.between?(200, 299)
3471
+ Nordlet::Declarations::Types::GbP11DItemsDeleteDeclarationsResponse.load(response.body)
3472
+ else
3473
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3474
+ raise error_class.new(response.body, code: code)
3475
+ end
3476
+ end
3477
+
3478
+ # Gives the P45 figures of an employee who has left (`terminationDate` set): the employer PAYE reference, the
3479
+ # employee's National Insurance number, name, leaving date, payroll number, gender, date of birth and address,
3480
+ # whether Student Loan deductions are to continue, the tax code at the leaving date with the Week 1/Month 1 mark,
3481
+ # and the pay and tax of the tax year of the leaving date from the approved payroll runs. With a cumulative code
3482
+ # the totals are the last entries of box 7 with the tax week or month of the last payment; with a Week 1/Month 1
3483
+ # code they are this employment's pay and tax of box 8. Nordlet does not print the P45 form.
3484
+ #
3485
+ # @param request_options [Hash]
3486
+ # @param params [Nordlet::Declarations::Types::GbP45GetDeclarationsRequest]
3487
+ # @option request_options [String] :base_url
3488
+ # @option request_options [Hash{String => Object}] :additional_headers
3489
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3490
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3491
+ # @option request_options [Integer] :timeout_in_seconds
3492
+ #
3493
+ # @return [Nordlet::Declarations::Types::GbP45GetDeclarationsResponse]
3494
+ def gb_p45get(request_options: {}, **params)
3495
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3496
+ request = Nordlet::Internal::JSON::Request.new(
3497
+ base_url: request_options[:base_url],
3498
+ method: "POST",
3499
+ path: "v1/declarations/gb/p45/get",
3500
+ body: Nordlet::Declarations::Types::GbP45GetDeclarationsRequest.new(params).to_h,
3501
+ request_options: request_options
3502
+ )
3503
+ begin
3504
+ response = @client.send(request)
3505
+ rescue Net::HTTPRequestTimeout
3506
+ raise Nordlet::Errors::TimeoutError
3507
+ end
3508
+ code = response.code.to_i
3509
+ if code.between?(200, 299)
3510
+ Nordlet::Declarations::Types::GbP45GetDeclarationsResponse.load(response.body)
3511
+ else
3512
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3513
+ raise error_class.new(response.body, code: code)
3514
+ end
3515
+ end
3516
+
3517
+ # Lists the company's VAT return periods as HMRC holds them: open (`status` O) or fulfilled (F). Without `status`,
3518
+ # `from` and `to` are required and at most 366 days apart. `device` carries the facts of the user's browser that
3519
+ # HMRC requires.
3520
+ #
3521
+ # @param request_options [Hash]
3522
+ # @param params [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest]
3523
+ # @option request_options [String] :base_url
3524
+ # @option request_options [Hash{String => Object}] :additional_headers
3525
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3526
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3527
+ # @option request_options [Integer] :timeout_in_seconds
3528
+ #
3529
+ # @return [Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse]
3530
+ def gb_vat_obligations_list(request_options: {}, **params)
3531
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3532
+ request = Nordlet::Internal::JSON::Request.new(
3533
+ base_url: request_options[:base_url],
3534
+ method: "POST",
3535
+ path: "v1/declarations/gb/vat/obligations/list",
3536
+ body: Nordlet::Declarations::Types::GbVatObligationsListDeclarationsRequest.new(params).to_h,
3537
+ request_options: request_options
3538
+ )
3539
+ begin
3540
+ response = @client.send(request)
3541
+ rescue Net::HTTPRequestTimeout
3542
+ raise Nordlet::Errors::TimeoutError
3543
+ end
3544
+ code = response.code.to_i
3545
+ if code.between?(200, 299)
3546
+ Nordlet::Declarations::Types::GbVatObligationsListDeclarationsResponse.load(response.body)
3547
+ else
3548
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3549
+ raise error_class.new(response.body, code: code)
3550
+ end
3551
+ end
3552
+
3553
+ # Reads a VAT return the company submitted to HMRC, by the `periodKey` of its obligation. Answers 404 when HMRC
3554
+ # has no return for the period.
3555
+ #
3556
+ # @param request_options [Hash]
3557
+ # @param params [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest]
3558
+ # @option request_options [String] :base_url
3559
+ # @option request_options [Hash{String => Object}] :additional_headers
3560
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3561
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3562
+ # @option request_options [Integer] :timeout_in_seconds
3563
+ #
3564
+ # @return [Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse]
3565
+ def gb_vat_returns_get(request_options: {}, **params)
3566
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3567
+ request = Nordlet::Internal::JSON::Request.new(
3568
+ base_url: request_options[:base_url],
3569
+ method: "POST",
3570
+ path: "v1/declarations/gb/vat/returns/get",
3571
+ body: Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsRequest.new(params).to_h,
3572
+ request_options: request_options
3573
+ )
3574
+ begin
3575
+ response = @client.send(request)
3576
+ rescue Net::HTTPRequestTimeout
3577
+ raise Nordlet::Errors::TimeoutError
3578
+ end
3579
+ code = response.code.to_i
3580
+ if code.between?(200, 299)
3581
+ Nordlet::Declarations::Types::GbVatReturnsGetDeclarationsResponse.load(response.body)
3582
+ else
3583
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3584
+ raise error_class.new(response.body, code: code)
3585
+ end
3586
+ end
3587
+
3588
+ # Lists the company's VAT liabilities HMRC holds whose period ends between `from` (2017-12-01 or later) and `to`
3589
+ # (today or earlier), at most 365 days apart.
3590
+ #
3591
+ # @param request_options [Hash]
3592
+ # @param params [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest]
3593
+ # @option request_options [String] :base_url
3594
+ # @option request_options [Hash{String => Object}] :additional_headers
3595
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3596
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3597
+ # @option request_options [Integer] :timeout_in_seconds
3598
+ #
3599
+ # @return [Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse]
3600
+ def gb_vat_liabilities_list(request_options: {}, **params)
3601
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3602
+ request = Nordlet::Internal::JSON::Request.new(
3603
+ base_url: request_options[:base_url],
3604
+ method: "POST",
3605
+ path: "v1/declarations/gb/vat/liabilities/list",
3606
+ body: Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsRequest.new(params).to_h,
3607
+ request_options: request_options
3608
+ )
3609
+ begin
3610
+ response = @client.send(request)
3611
+ rescue Net::HTTPRequestTimeout
3612
+ raise Nordlet::Errors::TimeoutError
3613
+ end
3614
+ code = response.code.to_i
3615
+ if code.between?(200, 299)
3616
+ Nordlet::Declarations::Types::GbVatLiabilitiesListDeclarationsResponse.load(response.body)
3617
+ else
3618
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3619
+ raise error_class.new(response.body, code: code)
3620
+ end
3621
+ end
3622
+
3623
+ # Lists the VAT payments HMRC received from the company between `from` (2017-12-01 or later) and `to` (today or
3624
+ # earlier), at most 365 days apart.
3625
+ #
3626
+ # @param request_options [Hash]
3627
+ # @param params [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest]
3628
+ # @option request_options [String] :base_url
3629
+ # @option request_options [Hash{String => Object}] :additional_headers
3630
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3631
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3632
+ # @option request_options [Integer] :timeout_in_seconds
3633
+ #
3634
+ # @return [Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse]
3635
+ def gb_vat_payments_list(request_options: {}, **params)
3636
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3637
+ request = Nordlet::Internal::JSON::Request.new(
3638
+ base_url: request_options[:base_url],
3639
+ method: "POST",
3640
+ path: "v1/declarations/gb/vat/payments/list",
3641
+ body: Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsRequest.new(params).to_h,
3642
+ request_options: request_options
3643
+ )
3644
+ begin
3645
+ response = @client.send(request)
3646
+ rescue Net::HTTPRequestTimeout
3647
+ raise Nordlet::Errors::TimeoutError
3648
+ end
3649
+ code = response.code.to_i
3650
+ if code.between?(200, 299)
3651
+ Nordlet::Declarations::Types::GbVatPaymentsListDeclarationsResponse.load(response.body)
3652
+ else
3653
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3654
+ raise error_class.new(response.body, code: code)
3655
+ end
3656
+ end
3657
+
3658
+ # Returns the penalties HMRC applied to the company's VAT account in the last 24 months as HMRC answers them:
3659
+ # `totalisations`, `lateSubmissionPenalty` and `latePaymentPenalty`.
3660
+ #
3661
+ # @param request_options [Hash]
3662
+ # @param params [Nordlet::Declarations::Types::GbVatPenaltiesGetDeclarationsRequest]
3663
+ # @option request_options [String] :base_url
3664
+ # @option request_options [Hash{String => Object}] :additional_headers
3665
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3666
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3667
+ # @option request_options [Integer] :timeout_in_seconds
3668
+ #
3669
+ # @return [Hash[String, Object]]
3670
+ def gb_vat_penalties_get(request_options: {}, **params)
3671
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3672
+ request = Nordlet::Internal::JSON::Request.new(
3673
+ base_url: request_options[:base_url],
3674
+ method: "POST",
3675
+ path: "v1/declarations/gb/vat/penalties/get",
3676
+ body: Nordlet::Declarations::Types::GbVatPenaltiesGetDeclarationsRequest.new(params).to_h,
3677
+ request_options: request_options
3678
+ )
3679
+ begin
3680
+ response = @client.send(request)
3681
+ rescue Net::HTTPRequestTimeout
3682
+ raise Nordlet::Errors::TimeoutError
3683
+ end
3684
+ code = response.code.to_i
3685
+ return if code.between?(200, 299)
3686
+
3687
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3688
+ raise error_class.new(response.body, code: code)
3689
+ end
3690
+
3691
+ # The Form 941 figures of a quarter from the approved US payroll runs whose pay date (the period end without one)
3692
+ # falls in it: line 1 the employees paid for the pay period that includes the 12th of the quarter's last month,
3693
+ # line 2 the wages, line 3 the federal income tax withheld, lines 5a, 5c and 5d the social security, Medicare and
3694
+ # Additional Medicare wages with their tax at 12.4%, 2.9% and 0.9%, line 7 the fractions of cents between those
3695
+ # and the amounts withheld and owed, lines 10 and 12, and line 16 the liability of each month by pay date with the
3696
+ # liability of each pay date for Schedule B. `deposits` (the deposits made for the quarter) fills line 13 and line
3697
+ # 14 or 15. Lines 5b, 5f, 8, 9 and 11 are not filled. Answers 422 for a company outside the US.
3698
+ #
3699
+ # @param request_options [Hash]
3700
+ # @param params [Nordlet::Declarations::Types::Us941GetDeclarationsRequest]
3701
+ # @option request_options [String] :base_url
3702
+ # @option request_options [Hash{String => Object}] :additional_headers
3703
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3704
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3705
+ # @option request_options [Integer] :timeout_in_seconds
3706
+ #
3707
+ # @return [Nordlet::Declarations::Types::Us941GetDeclarationsResponse]
3708
+ def us941get(request_options: {}, **params)
3709
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3710
+ request = Nordlet::Internal::JSON::Request.new(
3711
+ base_url: request_options[:base_url],
3712
+ method: "POST",
3713
+ path: "v1/declarations/us/941/get",
3714
+ body: Nordlet::Declarations::Types::Us941GetDeclarationsRequest.new(params).to_h,
3715
+ request_options: request_options
3716
+ )
3717
+ begin
3718
+ response = @client.send(request)
3719
+ rescue Net::HTTPRequestTimeout
3720
+ raise Nordlet::Errors::TimeoutError
3721
+ end
3722
+ code = response.code.to_i
3723
+ if code.between?(200, 299)
3724
+ Nordlet::Declarations::Types::Us941GetDeclarationsResponse.load(response.body)
3725
+ else
3726
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3727
+ raise error_class.new(response.body, code: code)
3728
+ end
3729
+ end
3730
+
3731
+ # The Form 940 figures of a year from the approved US payroll runs paid in it: line 1a the state of the employees
3732
+ # paid (the `usWorkState` employee option) or line 1b when there are several, line 3 the payments to employees,
3733
+ # line 5 the part of each employee's payments above $7,000, line 7 the taxable FUTA wages, line 8 at 0.6%, line
3734
+ # 12, and Part 5 with the liability of each quarter when line 12 is more than $500. Exempt payments (line 4), the
3735
+ # state unemployment tax adjustments (lines 9 and 10) and the credit reduction of Schedule A (line 11) are not
3736
+ # filled. Answers 422 for a company outside the US.
3737
+ #
3738
+ # @param request_options [Hash]
3739
+ # @param params [Nordlet::Declarations::Types::Us940GetDeclarationsRequest]
3740
+ # @option request_options [String] :base_url
3741
+ # @option request_options [Hash{String => Object}] :additional_headers
3742
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3743
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3744
+ # @option request_options [Integer] :timeout_in_seconds
3745
+ #
3746
+ # @return [Nordlet::Declarations::Types::Us940GetDeclarationsResponse]
3747
+ def us940get(request_options: {}, **params)
3748
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3749
+ request = Nordlet::Internal::JSON::Request.new(
3750
+ base_url: request_options[:base_url],
3751
+ method: "POST",
3752
+ path: "v1/declarations/us/940/get",
3753
+ body: Nordlet::Declarations::Types::Us940GetDeclarationsRequest.new(params).to_h,
3754
+ request_options: request_options
3755
+ )
3756
+ begin
3757
+ response = @client.send(request)
3758
+ rescue Net::HTTPRequestTimeout
3759
+ raise Nordlet::Errors::TimeoutError
3760
+ end
3761
+ code = response.code.to_i
3762
+ if code.between?(200, 299)
3763
+ Nordlet::Declarations::Types::Us940GetDeclarationsResponse.load(response.body)
3764
+ else
3765
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3766
+ raise error_class.new(response.body, code: code)
3767
+ end
3768
+ end
3769
+
3770
+ # 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
3771
+ # totals: box a the employee's `personalCode` (the social security number), box e the name, boxes 1 to 6 the
3772
+ # wages, the federal income tax, the social security wages and tax and the Medicare wages and tax (with the
3773
+ # Additional Medicare Tax), and boxes 15 to 17 for Delaware with the company's `deWithholdingAccount`; W-3 box c
3774
+ # the number of forms and box e the company's `ein`. Answers 422 for a company outside the US.
3775
+ #
3776
+ # @param request_options [Hash]
3777
+ # @param params [Nordlet::Declarations::Types::UsW2ListDeclarationsRequest]
3778
+ # @option request_options [String] :base_url
3779
+ # @option request_options [Hash{String => Object}] :additional_headers
3780
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3781
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3782
+ # @option request_options [Integer] :timeout_in_seconds
3783
+ #
3784
+ # @return [Nordlet::Declarations::Types::UsW2ListDeclarationsResponse]
3785
+ def us_w2list(request_options: {}, **params)
3786
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3787
+ request = Nordlet::Internal::JSON::Request.new(
3788
+ base_url: request_options[:base_url],
3789
+ method: "POST",
3790
+ path: "v1/declarations/us/w2/list",
3791
+ body: Nordlet::Declarations::Types::UsW2ListDeclarationsRequest.new(params).to_h,
3792
+ request_options: request_options
3793
+ )
3794
+ begin
3795
+ response = @client.send(request)
3796
+ rescue Net::HTTPRequestTimeout
3797
+ raise Nordlet::Errors::TimeoutError
3798
+ end
3799
+ code = response.code.to_i
3800
+ if code.between?(200, 299)
3801
+ Nordlet::Declarations::Types::UsW2ListDeclarationsResponse.load(response.body)
3802
+ else
3803
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3804
+ raise error_class.new(response.body, code: code)
3805
+ end
3806
+ end
3807
+
3808
+ # The federal income tax return of the fiscal year that ends in `year`, chosen by the legal form: Form 1120 for a
3809
+ # corporation, Form 1120-S for an S corporation, Form 1065 for a partnership, and for an LLC the return of the
3810
+ # filing option `usLlcTaxReturn`. `page1` gives the income and deduction lines filled from the statement rows of
3811
+ # the form (`ledger/statement-rows/list` with `scheme`) and the total lines computed as the form says (Form 1120
3812
+ # lines 1c, 3, 11, 27 and 28; Form 1120-S lines 1c, 3, 6, 21 and 22; Form 1065 lines 1c, 3, 8, 16c, 22 and 23);
3813
+ # line 1b is the debit balance of the returns and allowances accounts. `scheduleL` gives each Schedule L line at
3814
+ # the beginning and end of the year, `otherLines` the Schedule K and M-1 lines. Answers 422 for a company outside
3815
+ # the US, a sole proprietorship, and an LLC without `usLlcTaxReturn`.
3816
+ #
3817
+ # @param request_options [Hash]
3818
+ # @param params [Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsRequest]
3819
+ # @option request_options [String] :base_url
3820
+ # @option request_options [Hash{String => Object}] :additional_headers
3821
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3822
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3823
+ # @option request_options [Integer] :timeout_in_seconds
3824
+ #
3825
+ # @return [Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponse]
3826
+ def us_income_tax_return_get(request_options: {}, **params)
3827
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3828
+ request = Nordlet::Internal::JSON::Request.new(
3829
+ base_url: request_options[:base_url],
3830
+ method: "POST",
3831
+ path: "v1/declarations/us/income-tax-return/get",
3832
+ body: Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsRequest.new(params).to_h,
3833
+ request_options: request_options
3834
+ )
3835
+ begin
3836
+ response = @client.send(request)
3837
+ rescue Net::HTTPRequestTimeout
3838
+ raise Nordlet::Errors::TimeoutError
3839
+ end
3840
+ code = response.code.to_i
3841
+ if code.between?(200, 299)
3842
+ Nordlet::Declarations::Types::UsIncomeTaxReturnGetDeclarationsResponse.load(response.body)
3843
+ else
3844
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3845
+ raise error_class.new(response.body, code: code)
3846
+ end
3847
+ end
3848
+
3849
+ # The Forms 1099-NEC of a calendar year: one per partner marked with `identifiers.nonemployeeCompensation` = `yes`
3850
+ # whose payments in the year reach the threshold (2026: $2,000), box 1 the payments on its registered purchase
3851
+ # invoices less those on its credit notes, by payment date, in the company currency at the invoice rate, without
3852
+ # settlements by credit note or advance. A partner whose Form W-9 tax classification is a C or S corporation
3853
+ # (`c-corporation`, `s-corporation`, `llc-c`, `llc-s`) is listed in `excluded`. The recipient name type is `I` for
3854
+ # a partner of type `person` and `B` otherwise. Answers 422 for a company outside the US and for a year whose
3855
+ # threshold Nordlet does not have.
3856
+ #
3857
+ # @param request_options [Hash]
3858
+ # @param params [Nordlet::Declarations::Types::Us1099NecListDeclarationsRequest]
3859
+ # @option request_options [String] :base_url
3860
+ # @option request_options [Hash{String => Object}] :additional_headers
3861
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3862
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3863
+ # @option request_options [Integer] :timeout_in_seconds
3864
+ #
3865
+ # @return [Nordlet::Declarations::Types::Us1099NecListDeclarationsResponse]
3866
+ def us1099nec_list(request_options: {}, **params)
3867
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3868
+ request = Nordlet::Internal::JSON::Request.new(
3869
+ base_url: request_options[:base_url],
3870
+ method: "POST",
3871
+ path: "v1/declarations/us/1099-nec/list",
3872
+ body: Nordlet::Declarations::Types::Us1099NecListDeclarationsRequest.new(params).to_h,
3873
+ request_options: request_options
3874
+ )
3875
+ begin
3876
+ response = @client.send(request)
3877
+ rescue Net::HTTPRequestTimeout
3878
+ raise Nordlet::Errors::TimeoutError
3879
+ end
3880
+ code = response.code.to_i
3881
+ if code.between?(200, 299)
3882
+ Nordlet::Declarations::Types::Us1099NecListDeclarationsResponse.load(response.body)
3883
+ else
3884
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3885
+ raise error_class.new(response.body, code: code)
3886
+ end
3887
+ end
3888
+
3889
+ # The Delaware withholding of a month (YYYY-MM), a quarter (YYYY-Qn) or a year (YYYY) from the approved US payroll
3890
+ # runs paid in it: the employees with Delaware income tax withheld, their wages and the tax withheld, and
3891
+ # `wthTax`, the boxes of Form WTH-TAX (taxpayer ID `deWithholdingAccount`, the tax period, line 1 the tax
3892
+ # withheld, line 2 the amount remitted, here equal to line 1). Answers 422 for a company outside the US.
3893
+ #
3894
+ # @param request_options [Hash]
3895
+ # @param params [Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsRequest]
3896
+ # @option request_options [String] :base_url
3897
+ # @option request_options [Hash{String => Object}] :additional_headers
3898
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3899
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3900
+ # @option request_options [Integer] :timeout_in_seconds
3901
+ #
3902
+ # @return [Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsResponse]
3903
+ def us_de_withholding_get(request_options: {}, **params)
3904
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3905
+ request = Nordlet::Internal::JSON::Request.new(
3906
+ base_url: request_options[:base_url],
3907
+ method: "POST",
3908
+ path: "v1/declarations/us/de/withholding/get",
3909
+ body: Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsRequest.new(params).to_h,
3910
+ request_options: request_options
3911
+ )
3912
+ begin
3913
+ response = @client.send(request)
3914
+ rescue Net::HTTPRequestTimeout
3915
+ raise Nordlet::Errors::TimeoutError
3916
+ end
3917
+ code = response.code.to_i
3918
+ if code.between?(200, 299)
3919
+ Nordlet::Declarations::Types::UsDeWithholdingGetDeclarationsResponse.load(response.body)
3920
+ else
3921
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3922
+ raise error_class.new(response.body, code: code)
3923
+ end
3924
+ end
3925
+
3926
+ # The lines of the Delaware annual reconciliation, Form WTH-REC, of a year from the approved US payroll runs paid
3927
+ # in it: line 1 the Delaware wages, line 2 the number of Forms W-2, line 3 the Delaware income tax withheld, and
3928
+ # the withholding worksheet of tax withheld by month of the pay date. `taxPaid` is the tax paid to the Division of
3929
+ # Revenue in each month, January to December; with it the response fills the tax paid column, line 4, line 5a
3930
+ # (overpayment), line 5b (balance due) and line 6 (total remittance), without it those are null. Answers 422 for a
3931
+ # company outside the US.
3932
+ #
3933
+ # @param request_options [Hash]
3934
+ # @param params [Nordlet::Declarations::Types::UsDeWithholdingReconciliationGetDeclarationsRequest]
3935
+ # @option request_options [String] :base_url
3936
+ # @option request_options [Hash{String => Object}] :additional_headers
3937
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3938
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3939
+ # @option request_options [Integer] :timeout_in_seconds
3940
+ #
3941
+ # @return [Nordlet::Declarations::Types::UsDeWithholdingReconciliationGetDeclarationsResponse]
3942
+ def us_de_withholding_reconciliation_get(request_options: {}, **params)
3943
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3944
+ request = Nordlet::Internal::JSON::Request.new(
3945
+ base_url: request_options[:base_url],
3946
+ method: "POST",
3947
+ path: "v1/declarations/us/de/withholding-reconciliation/get",
3948
+ body: Nordlet::Declarations::Types::UsDeWithholdingReconciliationGetDeclarationsRequest.new(params).to_h,
3949
+ request_options: request_options
3950
+ )
3951
+ begin
3952
+ response = @client.send(request)
3953
+ rescue Net::HTTPRequestTimeout
3954
+ raise Nordlet::Errors::TimeoutError
3955
+ end
3956
+ code = response.code.to_i
3957
+ if code.between?(200, 299)
3958
+ Nordlet::Declarations::Types::UsDeWithholdingReconciliationGetDeclarationsResponse.load(response.body)
3959
+ else
3960
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
3961
+ raise error_class.new(response.body, code: code)
3962
+ end
3963
+ end
3964
+
3965
+ # The Delaware unemployment insurance figures of a quarter from the approved US payroll runs paid in it, for the
3966
+ # employees charged Delaware unemployment insurance: the total wages, the wages above each employee's yearly wage
3967
+ # base, the taxable wages, the contributions, and each employee with the social security number (`personalCode`)
3968
+ # and the wages of the quarter. `uc8` gives the lines of Form UC-8: line 1 the covered workers of each month in a
3969
+ # payroll period that includes the 12th, lines 2 to 4 the gross covered, excess and taxable wages, line 5 the
3970
+ # taxable wages multiplied by the rate of the runs, line 7 line 5 less line 6 and line 10 lines 7, 8 and 9; lines
3971
+ # 6 (approved credit), 8 (interest) and 9 (penalty) are `approvedCredit`, `interest` and `penalty` when given,
3972
+ # otherwise null and counted as zero. `uc8a` gives Form UC-8A in pages of 30 rows (social security number, first
3973
+ # initial, last name, gross covered wages; Nordlet keeps no middle initial) with line 31 of each page, line 32 the
3974
+ # total of the pages after the first and line 33 the grand total. Answers 422 for a company outside the US.
3975
+ #
3976
+ # @param request_options [Hash]
3977
+ # @param params [Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsRequest]
3978
+ # @option request_options [String] :base_url
3979
+ # @option request_options [Hash{String => Object}] :additional_headers
3980
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
3981
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
3982
+ # @option request_options [Integer] :timeout_in_seconds
3983
+ #
3984
+ # @return [Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsResponse]
3985
+ def us_de_unemployment_get(request_options: {}, **params)
3986
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
3987
+ request = Nordlet::Internal::JSON::Request.new(
3988
+ base_url: request_options[:base_url],
3989
+ method: "POST",
3990
+ path: "v1/declarations/us/de/unemployment/get",
3991
+ body: Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsRequest.new(params).to_h,
3992
+ request_options: request_options
3993
+ )
3994
+ begin
3995
+ response = @client.send(request)
3996
+ rescue Net::HTTPRequestTimeout
3997
+ raise Nordlet::Errors::TimeoutError
3998
+ end
3999
+ code = response.code.to_i
4000
+ if code.between?(200, 299)
4001
+ Nordlet::Declarations::Types::UsDeUnemploymentGetDeclarationsResponse.load(response.body)
4002
+ else
4003
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4004
+ raise error_class.new(response.body, code: code)
4005
+ end
4006
+ end
4007
+
4008
+ # The Delaware gross receipts tax of a month (YYYY-MM) or a quarter (YYYY-Qn) for one business activity of the
4009
+ # company's license: the net amounts of the sale invoices issued in the period (credit notes subtracted, advance
4010
+ # invoices left out because the final invoice carries the sale, amounts in another currency at the rate stored on
4011
+ # the invoice), less `excludedReceipts` (receipts from outside Delaware and from related entities, which the
4012
+ # caller states), less the monthly or quarterly deduction of the activity, at the rate of the activity in 30 Del.
4013
+ # C. chapters 23, 25, 27 and 29. An invoice in another currency without a stored rate is left out with a warning.
4014
+ # Answers 422 for a company outside the US.
4015
+ #
4016
+ # @param request_options [Hash]
4017
+ # @param params [Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsRequest]
4018
+ # @option request_options [String] :base_url
4019
+ # @option request_options [Hash{String => Object}] :additional_headers
4020
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4021
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4022
+ # @option request_options [Integer] :timeout_in_seconds
4023
+ #
4024
+ # @return [Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsResponse]
4025
+ def us_de_gross_receipts_get(request_options: {}, **params)
4026
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4027
+ request = Nordlet::Internal::JSON::Request.new(
4028
+ base_url: request_options[:base_url],
4029
+ method: "POST",
4030
+ path: "v1/declarations/us/de/gross-receipts/get",
4031
+ body: Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsRequest.new(params).to_h,
4032
+ request_options: request_options
4033
+ )
4034
+ begin
4035
+ response = @client.send(request)
4036
+ rescue Net::HTTPRequestTimeout
4037
+ raise Nordlet::Errors::TimeoutError
4038
+ end
4039
+ code = response.code.to_i
4040
+ if code.between?(200, 299)
4041
+ Nordlet::Declarations::Types::UsDeGrossReceiptsGetDeclarationsResponse.load(response.body)
4042
+ else
4043
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4044
+ raise error_class.new(response.body, code: code)
4045
+ end
4046
+ end
4047
+
4048
+ # The sales of a US company per state between two issue dates, to see where its sales may oblige it to collect a
4049
+ # state's sales tax: the number and net amount of the issued sale invoices and credit notes (subtracted) by the
4050
+ # state of the document's `deliveryAddress`, else of the customer's address (`subdivision`), the sales delivered
4051
+ # in the US without a state, and the sales delivered outside the US. Advance invoices are left out because the
4052
+ # final invoice carries the sale; amounts in another currency are at the rate stored on the invoice, and an
4053
+ # invoice without one is left out with a warning. Answers 422 for a company outside the US.
4054
+ #
4055
+ # @param request_options [Hash]
4056
+ # @param params [Nordlet::Declarations::Types::UsStateSalesGetDeclarationsRequest]
4057
+ # @option request_options [String] :base_url
4058
+ # @option request_options [Hash{String => Object}] :additional_headers
4059
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4060
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4061
+ # @option request_options [Integer] :timeout_in_seconds
4062
+ #
4063
+ # @return [Nordlet::Declarations::Types::UsStateSalesGetDeclarationsResponse]
4064
+ def us_state_sales_get(request_options: {}, **params)
4065
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4066
+ request = Nordlet::Internal::JSON::Request.new(
4067
+ base_url: request_options[:base_url],
4068
+ method: "POST",
4069
+ path: "v1/declarations/us/state-sales/get",
4070
+ body: Nordlet::Declarations::Types::UsStateSalesGetDeclarationsRequest.new(params).to_h,
4071
+ request_options: request_options
4072
+ )
4073
+ begin
4074
+ response = @client.send(request)
4075
+ rescue Net::HTTPRequestTimeout
4076
+ raise Nordlet::Errors::TimeoutError
4077
+ end
4078
+ code = response.code.to_i
4079
+ if code.between?(200, 299)
4080
+ Nordlet::Declarations::Types::UsStateSalesGetDeclarationsResponse.load(response.body)
4081
+ else
4082
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4083
+ raise error_class.new(response.body, code: code)
4084
+ end
4085
+ end
4086
+
4087
+ # The sales tax a US company charged between two issue dates, per state (`salesTaxJurisdiction` of the document),
4088
+ # for its state sales tax returns: the number of issued invoices and credit notes (subtracted) with sales tax,
4089
+ # their net amount split into `taxableSales` and `exemptSales` (documents charged no sales tax under the
4090
+ # customer's certificate of exemption, `salesTaxExemptionId`), and their sales tax, which `sales/invoices/issue`
4091
+ # credited to the sales tax payable account. Amounts in another currency are at the rate stored on the document,
4092
+ # and a document without one is left out with a warning. Answers 422 for a company outside the US.
4093
+ #
4094
+ # @param request_options [Hash]
4095
+ # @param params [Nordlet::Declarations::Types::UsSalesTaxGetDeclarationsRequest]
4096
+ # @option request_options [String] :base_url
4097
+ # @option request_options [Hash{String => Object}] :additional_headers
4098
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4099
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4100
+ # @option request_options [Integer] :timeout_in_seconds
4101
+ #
4102
+ # @return [Nordlet::Declarations::Types::UsSalesTaxGetDeclarationsResponse]
4103
+ def us_sales_tax_get(request_options: {}, **params)
4104
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4105
+ request = Nordlet::Internal::JSON::Request.new(
4106
+ base_url: request_options[:base_url],
4107
+ method: "POST",
4108
+ path: "v1/declarations/us/sales-tax/get",
4109
+ body: Nordlet::Declarations::Types::UsSalesTaxGetDeclarationsRequest.new(params).to_h,
4110
+ request_options: request_options
4111
+ )
4112
+ begin
4113
+ response = @client.send(request)
4114
+ rescue Net::HTTPRequestTimeout
4115
+ raise Nordlet::Errors::TimeoutError
4116
+ end
4117
+ code = response.code.to_i
4118
+ if code.between?(200, 299)
4119
+ Nordlet::Declarations::Types::UsSalesTaxGetDeclarationsResponse.load(response.body)
4120
+ else
4121
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4122
+ raise error_class.new(response.body, code: code)
4123
+ end
4124
+ end
4125
+
4126
+ # The Delaware franchise tax of a domestic corporation for its annual franchise tax report, by 8 Del. C. § 503:
4127
+ # the authorized shares method on the total of `authorizedShares`, and, when `issuedShares` and `totalGrossAssets`
4128
+ # (the total assets of Form 1120 Schedule L) are given, the assumed par value capital method, where a share class
4129
+ # without `parValue` has no par value; `tax` is the lesser of the two (at least $175 and $400, at most $200,000),
4130
+ # or $250,000 for a Large Corporate Filer. `annualReportFee` is the filing fee of a non-exempt domestic
4131
+ # corporation, paid with the report. Answers 422 for a company outside the US.
4132
+ #
4133
+ # @param request_options [Hash]
4134
+ # @param params [Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsRequest]
4135
+ # @option request_options [String] :base_url
4136
+ # @option request_options [Hash{String => Object}] :additional_headers
4137
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4138
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4139
+ # @option request_options [Integer] :timeout_in_seconds
4140
+ #
4141
+ # @return [Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsResponse]
4142
+ def us_de_franchise_tax_compute(request_options: {}, **params)
4143
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4144
+ request = Nordlet::Internal::JSON::Request.new(
4145
+ base_url: request_options[:base_url],
4146
+ method: "POST",
4147
+ path: "v1/declarations/us/de/franchise-tax/compute",
4148
+ body: Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsRequest.new(params).to_h,
4149
+ request_options: request_options
4150
+ )
4151
+ begin
4152
+ response = @client.send(request)
4153
+ rescue Net::HTTPRequestTimeout
4154
+ raise Nordlet::Errors::TimeoutError
4155
+ end
4156
+ code = response.code.to_i
4157
+ if code.between?(200, 299)
4158
+ Nordlet::Declarations::Types::UsDeFranchiseTaxComputeDeclarationsResponse.load(response.body)
4159
+ else
4160
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4161
+ raise error_class.new(response.body, code: code)
4162
+ end
4163
+ end
4164
+
4165
+ # The hours worked in each workweek that touches the period, per employee of a US company (or the one
4166
+ # `employeeId`), for the overtime and records of the Fair Labor Standards Act: the workweek starts on the
4167
+ # employee's `usWorkweekStart` day and runs 7 days; the hours are those entered on the work and business-trip days
4168
+ # of the timesheets; `overtimeHours` are the hours above 40 in the workweek, 0 for an employee whose
4169
+ # `usFlsaExempt` is yes. An employee without `usWorkweekStart` is left out with a warning. Overtime pay is entered
4170
+ # on the payroll run as an addition of payment type `overtime-pay` with its hours. Answers 422 for a company
4171
+ # outside the US.
4172
+ #
4173
+ # @param request_options [Hash]
4174
+ # @param params [Nordlet::Declarations::Types::UsWorkweeksListDeclarationsRequest]
4175
+ # @option request_options [String] :base_url
4176
+ # @option request_options [Hash{String => Object}] :additional_headers
4177
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4178
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4179
+ # @option request_options [Integer] :timeout_in_seconds
4180
+ #
4181
+ # @return [Nordlet::Declarations::Types::UsWorkweeksListDeclarationsResponse]
4182
+ def us_workweeks_list(request_options: {}, **params)
4183
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4184
+ request = Nordlet::Internal::JSON::Request.new(
4185
+ base_url: request_options[:base_url],
4186
+ method: "POST",
4187
+ path: "v1/declarations/us/workweeks/list",
4188
+ body: Nordlet::Declarations::Types::UsWorkweeksListDeclarationsRequest.new(params).to_h,
4189
+ request_options: request_options
4190
+ )
4191
+ begin
4192
+ response = @client.send(request)
4193
+ rescue Net::HTTPRequestTimeout
4194
+ raise Nordlet::Errors::TimeoutError
4195
+ end
4196
+ code = response.code.to_i
4197
+ if code.between?(200, 299)
4198
+ Nordlet::Declarations::Types::UsWorkweeksListDeclarationsResponse.load(response.body)
4199
+ else
4200
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4201
+ raise error_class.new(response.body, code: code)
4202
+ end
4203
+ end
4204
+
4205
+ # The payroll and time records that 29 CFR 516.2(a) requires for each employee of a US company (or the one
4206
+ # `employeeId`) over the period: name and `code`, home address with zip code, date of birth when the employee is
4207
+ # under 19 on `from`, `usSex`, the occupation (the position of a contract of the period), the day and time the
4208
+ # workweek begins (`usWorkweekStart`, `usWorkweekStartTime`), the hours of each workday and workweek with the
4209
+ # regular hourly rate of a workweek with overtime and the straight-time earnings of the workweek (hourly
4210
+ # contracts), and for each approved payroll run that overlaps the period the basis of pay, the regular pay, the
4211
+ # overtime pay and hours, the straight-time earnings and the overtime premium (the overtime pay less the overtime
4212
+ # hours at the hourly rate), the additions and deductions, the total wages, the pay date and the pay period.
4213
+ # Figures that need an hourly contract are null without one, with a warning; missing employee data is listed in
4214
+ # `warnings`. Answers 422 for a company outside the US.
4215
+ #
4216
+ # @param request_options [Hash]
4217
+ # @param params [Nordlet::Declarations::Types::UsFlsaRecordsListDeclarationsRequest]
4218
+ # @option request_options [String] :base_url
4219
+ # @option request_options [Hash{String => Object}] :additional_headers
4220
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
4221
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
4222
+ # @option request_options [Integer] :timeout_in_seconds
4223
+ #
4224
+ # @return [Nordlet::Declarations::Types::UsFlsaRecordsListDeclarationsResponse]
4225
+ def us_flsa_records_list(request_options: {}, **params)
4226
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
4227
+ request = Nordlet::Internal::JSON::Request.new(
4228
+ base_url: request_options[:base_url],
4229
+ method: "POST",
4230
+ path: "v1/declarations/us/flsa-records/list",
4231
+ body: Nordlet::Declarations::Types::UsFlsaRecordsListDeclarationsRequest.new(params).to_h,
4232
+ request_options: request_options
4233
+ )
4234
+ begin
4235
+ response = @client.send(request)
4236
+ rescue Net::HTTPRequestTimeout
4237
+ raise Nordlet::Errors::TimeoutError
4238
+ end
4239
+ code = response.code.to_i
4240
+ if code.between?(200, 299)
4241
+ Nordlet::Declarations::Types::UsFlsaRecordsListDeclarationsResponse.load(response.body)
4242
+ else
4243
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
4244
+ raise error_class.new(response.body, code: code)
4245
+ end
4246
+ end
4247
+
3173
4248
  # Lists the filing systems the company can configure: those of the company country (or of `country` when given),
3174
4249
  # the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
3175
4250
  # carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken