nordlet 0.6.11 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +13 -7
  3. data/lib/nordlet/account/types/companies_context_account_response_profile.rb +11 -1
  4. data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +2 -0
  5. data/lib/nordlet/account/types/companies_context_account_response_profile_fiscal_year_week_rule.rb +14 -0
  6. data/lib/nordlet/account/types/companies_create_account_request.rb +10 -0
  7. data/lib/nordlet/account/types/companies_create_account_request_address.rb +2 -0
  8. data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +4 -221
  9. data/lib/nordlet/account/types/companies_create_account_request_fiscal_year_week_rule.rb +14 -0
  10. data/lib/nordlet/account/types/companies_profile_account_response.rb +11 -1
  11. data/lib/nordlet/account/types/companies_profile_account_response_address.rb +2 -0
  12. data/lib/nordlet/account/types/companies_profile_account_response_fiscal_year_week_rule.rb +14 -0
  13. data/lib/nordlet/account/types/companies_update_account_request.rb +10 -0
  14. data/lib/nordlet/account/types/companies_update_account_request_address.rb +2 -0
  15. data/lib/nordlet/account/types/companies_update_account_request_fiscal_year_week_rule.rb +14 -0
  16. data/lib/nordlet/account/types/companies_update_account_response.rb +11 -1
  17. data/lib/nordlet/account/types/companies_update_account_response_address.rb +2 -0
  18. data/lib/nordlet/account/types/companies_update_account_response_fiscal_year_week_rule.rb +14 -0
  19. data/lib/nordlet/bank/client.rb +96 -27
  20. data/lib/nordlet/bank/types/accounts_create_bank_request.rb +6 -0
  21. data/lib/nordlet/bank/types/accounts_create_bank_request_payment_file_settings.rb +27 -0
  22. data/lib/nordlet/bank/types/accounts_create_bank_response.rb +6 -0
  23. data/lib/nordlet/bank/types/accounts_create_bank_response_payment_file_settings.rb +25 -0
  24. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +6 -0
  25. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_payment_file_settings.rb +25 -0
  26. data/lib/nordlet/bank/types/accounts_update_bank_request.rb +6 -0
  27. data/lib/nordlet/bank/types/accounts_update_bank_request_payment_file_settings.rb +27 -0
  28. data/lib/nordlet/bank/types/accounts_update_bank_response.rb +6 -0
  29. data/lib/nordlet/bank/types/accounts_update_bank_response_payment_file_settings.rb +25 -0
  30. data/lib/nordlet/bank/types/direct_debits_export_bank_response.rb +7 -1
  31. data/lib/nordlet/bank/types/direct_debits_export_bank_response_format.rb +16 -0
  32. data/lib/nordlet/bank/types/mandates_auddis_export_bank_request.rb +15 -0
  33. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response.rb +29 -0
  34. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response_format.rb +16 -0
  35. data/lib/nordlet/bank/types/mandates_cancel_bank_response.rb +12 -2
  36. data/lib/nordlet/bank/types/mandates_cancel_bank_response_account_type.rb +14 -0
  37. data/lib/nordlet/bank/types/mandates_cancel_bank_response_scheme.rb +3 -0
  38. data/lib/nordlet/bank/types/mandates_create_bank_request.rb +7 -1
  39. data/lib/nordlet/bank/types/mandates_create_bank_request_account_type.rb +14 -0
  40. data/lib/nordlet/bank/types/mandates_create_bank_request_scheme.rb +3 -0
  41. data/lib/nordlet/bank/types/mandates_create_bank_response.rb +12 -2
  42. data/lib/nordlet/bank/types/mandates_create_bank_response_account_type.rb +14 -0
  43. data/lib/nordlet/bank/types/mandates_create_bank_response_scheme.rb +3 -0
  44. data/lib/nordlet/bank/types/mandates_get_bank_response.rb +12 -2
  45. data/lib/nordlet/bank/types/mandates_get_bank_response_account_type.rb +14 -0
  46. data/lib/nordlet/bank/types/mandates_get_bank_response_scheme.rb +3 -0
  47. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item.rb +12 -2
  48. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_account_type.rb +14 -0
  49. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_scheme.rb +3 -0
  50. data/lib/nordlet/bank/types/mandates_update_bank_response.rb +12 -2
  51. data/lib/nordlet/bank/types/mandates_update_bank_response_account_type.rb +14 -0
  52. data/lib/nordlet/bank/types/mandates_update_bank_response_scheme.rb +3 -0
  53. data/lib/nordlet/bank/types/payments_export_bank_response.rb +5 -1
  54. data/lib/nordlet/bank/types/payments_export_bank_response_format.rb +16 -0
  55. data/lib/nordlet/calendar/client.rb +2 -1
  56. data/lib/nordlet/calendar/types/submit_calendar_request.rb +2 -0
  57. data/lib/nordlet/calendar/types/submit_calendar_request_device.rb +22 -0
  58. data/lib/nordlet/calendar/types/submit_calendar_request_device_screens_item.rb +17 -0
  59. data/lib/nordlet/calendar/types/submit_calendar_request_device_window_size.rb +13 -0
  60. data/lib/nordlet/catalog/client.rb +4 -3
  61. data/lib/nordlet/declarations/client.rb +642 -3
  62. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +1 -1
  63. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +1 -1
  64. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_request.rb +21 -0
  65. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response.rb +29 -0
  66. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item.rb +33 -0
  67. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item_rate.rb +15 -0
  68. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_request.rb +9 -0
  69. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_response.rb +11 -0
  70. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_request.rb +13 -0
  71. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_response.rb +11 -0
  72. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
  73. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
  74. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
  75. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
  76. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
  77. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
  78. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
  79. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
  80. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
  81. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
  82. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
  83. data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_vat_obligations_list_declarations_request_status.rb} +3 -3
  84. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
  85. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
  86. data/lib/nordlet/declarations/types/{configs_list_declarations_response_rows_item_fields_item_company_field.rb → gb_vat_obligations_list_declarations_response_obligations_item_status.rb} +3 -3
  87. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
  88. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
  89. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
  90. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
  91. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
  92. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
  93. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
  94. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
  95. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
  96. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
  97. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
  98. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
  99. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
  100. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
  101. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
  102. data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
  103. data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
  104. data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
  105. data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
  106. data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
  107. data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
  108. data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
  109. data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
  110. data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
  111. data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
  112. data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
  113. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
  114. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
  115. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
  116. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
  117. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
  118. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
  119. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
  120. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +13 -0
  121. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +23 -0
  122. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
  123. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
  124. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +19 -0
  125. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
  126. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
  127. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
  128. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
  129. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
  130. data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
  131. data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
  132. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
  133. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
  134. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
  135. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
  136. data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
  137. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
  138. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
  139. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
  140. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
  141. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
  142. data/lib/nordlet/hr/client.rb +6 -5
  143. data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
  144. data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
  145. data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
  146. data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
  147. data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
  148. data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
  149. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
  150. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
  151. data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
  152. data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
  153. data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
  154. data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
  155. data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
  156. data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
  157. data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
  158. data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
  159. data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
  160. data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
  161. data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
  162. data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
  163. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
  164. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
  165. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
  166. data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
  167. data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
  168. data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
  169. data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
  170. data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
  171. data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
  172. data/lib/nordlet/partners/client.rb +58 -14
  173. data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
  174. data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
  175. data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
  176. data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
  177. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
  178. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
  179. data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
  180. data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
  181. data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
  182. data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
  183. data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
  184. data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
  185. data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
  186. data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
  187. data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
  188. data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
  189. data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
  190. data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
  191. data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
  192. data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
  193. data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
  194. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
  195. data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
  196. data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
  197. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
  198. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
  199. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
  200. data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
  201. data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
  202. data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
  203. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
  204. data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
  205. data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
  206. data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
  207. data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
  208. data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
  209. data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
  210. data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
  211. data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
  212. data/lib/nordlet/payroll/client.rb +92 -37
  213. data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
  214. data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
  215. data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
  216. data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
  217. data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
  218. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +0 -4
  219. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
  220. data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
  221. data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
  222. data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
  223. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
  224. data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
  225. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
  226. data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
  227. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
  228. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
  229. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
  230. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
  231. data/lib/nordlet/reference/client.rb +14 -8
  232. data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
  233. data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
  234. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
  235. data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
  236. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
  237. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
  238. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
  239. data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
  240. data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
  241. data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
  242. data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
  243. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
  244. data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
  245. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +1 -0
  246. data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
  247. data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
  248. data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
  249. data/lib/nordlet/version.rb +1 -1
  250. data/lib/nordlet.rb +133 -2
  251. data/reference.md +6936 -5110
  252. metadata +135 -4
@@ -184,6 +184,42 @@ module Nordlet
184
184
  end
185
185
  end
186
186
 
187
+ # Reads the pay frequencies the company country's payroll engine calculates, the values `payroll/runs/create`
188
+ # takes as `frequency` and `hr/contracts/create` as `payFrequency`. Answers 422 when Nordlet has no payroll engine
189
+ # for the company's country.
190
+ #
191
+ # @param request_options [Hash]
192
+ # @param params [Nordlet::Payroll::Types::FrequenciesListPayrollRequest]
193
+ # @option request_options [String] :base_url
194
+ # @option request_options [Hash{String => Object}] :additional_headers
195
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
196
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
197
+ # @option request_options [Integer] :timeout_in_seconds
198
+ #
199
+ # @return [Nordlet::Payroll::Types::FrequenciesListPayrollResponse]
200
+ def frequencies_list(request_options: {}, **params)
201
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
202
+ request = Nordlet::Internal::JSON::Request.new(
203
+ base_url: request_options[:base_url],
204
+ method: "POST",
205
+ path: "v1/payroll/frequencies/list",
206
+ body: Nordlet::Payroll::Types::FrequenciesListPayrollRequest.new(params).to_h,
207
+ request_options: request_options
208
+ )
209
+ begin
210
+ response = @client.send(request)
211
+ rescue Net::HTTPRequestTimeout
212
+ raise Nordlet::Errors::TimeoutError
213
+ end
214
+ code = response.code.to_i
215
+ if code.between?(200, 299)
216
+ Nordlet::Payroll::Types::FrequenciesListPayrollResponse.load(response.body)
217
+ else
218
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
219
+ raise error_class.new(response.body, code: code)
220
+ end
221
+ end
222
+
187
223
  # Runs the company country's payroll engine once on a taxable base at a date, with the employee settings given in
188
224
  # the body instead of an employee record, and returns the allowance, income tax, contributions, components and
189
225
  # net; nothing is saved. `payments` passes typed payments to the engine; each `paymentType` must be a code from
@@ -222,19 +258,27 @@ module Nordlet
222
258
  end
223
259
  end
224
260
 
225
- # Creates a draft payroll run for a month, computing each line with the company country's payroll engine, the
226
- # employee's approved runs of the year so far and of the two previous years, the month's timesheet and `payDate`
227
- # (default the last day of the month). Without `lines`, every employee whose contract overlaps the month gets a
228
- # line, whatever the employee's status: the gross is the contract's monthly salary reduced to the paid working
229
- # days of the contract and the timesheet, unless `grossOverrides` sets it; the per diems of approved business
230
- # trips ending in the month are added untaxed and the trips linked to the run; for a Lithuanian company the car
231
- # benefit in kind (`includeNatura`) and the compensation for unused leave of a contract ending in the month are
232
- # added. With `lines`, only the given employees are computed with their gross, additions and deductions, and the
233
- # per diems of their approved, unlinked business trips ending in the month are added untaxed and the trips linked
234
- # to the run; a taxable addition may carry a `paymentType` from `payroll/payment-types/list` and `hours`. Answers
235
- # 422 when the country has no engine, an employee is given twice, has two contracts in the month, has no contract
236
- # and no gross, or is paid by the hour or day without a gross; 409 when a run for the month already exists or the
237
- # accounting period is locked.
261
+ # Creates a draft payroll run for a pay period, computing each line with the company country's payroll engine, the
262
+ # employee's approved runs of the tax year before the period and of the two previous tax years, the timesheets of
263
+ # the period and `payDate` (default the last day of the period). A `monthly` run (the default `frequency`) takes
264
+ # `year` and `month`; a `semimonthly` run takes a `periodStart` on the 1st (to the 15th) or the 16th (to the month
265
+ # end), and a `weekly`, `biweekly` or `four_weekly` run a `periodStart` from which the period runs 7, 14 or 28
266
+ # days. `payroll/frequencies/list` gives the frequencies the company country's engine calculates; the engine also
267
+ # sets the run's `taxYear` and `taxPeriod` (by default the calendar year and the month). A run of a frequency
268
+ # other than monthly gets the year and month of its period end. Without `lines`, every employee whose contract has
269
+ # the run's pay frequency and overlaps the period gets a line, whatever the employee's status: the gross is the
270
+ # contract's salary for one period (a monthly, weekly or yearly salary brought to a year and divided by the
271
+ # periods of the year: 12, 24, 13, 26 or 52) reduced to the paid working days of the contract and the timesheets,
272
+ # unless `grossOverrides` sets it; the per diems of approved business trips ending in the period are added untaxed
273
+ # and the trips linked to the run; for a Lithuanian company the car benefit in kind (`includeNatura`) and the
274
+ # compensation for unused leave of a contract ending in the period are added. The timesheets count only when every
275
+ # month the period touches has one. With `lines`, only the given employees are computed with their gross,
276
+ # additions and deductions, and the per diems of their approved, unlinked business trips ending in the period are
277
+ # added untaxed and the trips linked to the run; a taxable addition may carry a `paymentType` from
278
+ # `payroll/payment-types/list` and `hours`. Answers 422 when the country has no engine or its engine does not
279
+ # calculate the frequency, the period is not given the way its frequency needs, an employee is given twice, has
280
+ # two contracts in the period, has no contract and no gross, or is paid by the hour or day without a gross; 409
281
+ # when a run of the same frequency already covers part of the period or the accounting period is locked.
238
282
  #
239
283
  # @param request_options [Hash]
240
284
  # @param params [Nordlet::Payroll::Types::RunsCreatePayrollRequest]
@@ -302,9 +346,9 @@ module Nordlet
302
346
  end
303
347
  end
304
348
 
305
- # Lists payroll runs without their lines; filterable by `status`, `year` and `month`, sortable by `createdAt`,
306
- # `year`, `month`, `period` (the year, then the month), `status`, `grossTotal`, `incomeTaxTotal`, `contributions`
307
- # (the employee plus the employer contributions) and `netTotal`.
349
+ # Lists payroll runs without their lines; filterable by `status`, `year`, `month`, `frequency` and `taxYear`,
350
+ # sortable by `createdAt`, `year`, `month`, `period` (the year, then the month), `periodStart`, `status`,
351
+ # `grossTotal`, `incomeTaxTotal`, `contributions` (the employee plus the employer contributions) and `netTotal`.
308
352
  #
309
353
  # @param request_options [Hash]
310
354
  # @param params [Nordlet::Payroll::Types::RunsListPayrollRequest]
@@ -373,18 +417,20 @@ module Nordlet
373
417
  end
374
418
  end
375
419
 
376
- # Posts the run's journal entry dated the last day of the month and sets the status to `approved`: the wage
420
+ # Posts the run's journal entry dated the last day of the run's period and sets the status to `approved`: the wage
377
421
  # expense (net pay, income tax, employee contributions and deductions) and the employer contributions are debited;
378
422
  # the net payable, the income tax, the social contributions (on one account, or split between the employee and
379
423
  # employer accounts when their codes differ) and the deductions are credited. The accounts default to the payroll
380
424
  # accounts of the company's chart template; each can be given per call (`incomeTaxAccountCode` and
381
- # `socialContributionsAccountCode`; the older names `gpmAccountCode` and `sodraAccountCode` are still accepted).
382
- # Answers 409 when the run is not a draft or the accounting period is locked, 422 when the run has no lines or
383
- # nothing to post, and emits `payroll_run.approved`. For an Irish company with the automation of the
384
- # `ie-payroll-withholding` deadline switched on, the month's payroll submission is sent at once and a failure is
385
- # added to the run's `warnings`. For a Lithuanian company the unused leave days a line paid as compensation,
386
- # recorded per balance year when the run was created, are added to the used days of the leave balances. Undo with
387
- # `payroll/runs/reverse`, pay with `payroll/payments/export`.
425
+ # `socialContributionsAccountCode` among them). Answers 409 when the run is not a draft or the accounting period
426
+ # is locked, 422 when the run has no lines or nothing to post, and emits `payroll_run.approved`. For an Irish
427
+ # company with the automation of the `ie-payroll-withholding` deadline switched on, the month's payroll submission
428
+ # is sent at once and a failure is added to the run's `warnings`. For a Lithuanian company the unused leave days a
429
+ # line paid as compensation, recorded per balance year when the run was created, are added to the used days of the
430
+ # leave balances. For a US company whose filing option `usDepositSchedule` is `semiweekly`, the federal tax
431
+ # deposit of the run's pay date is added to the calendar (`us-tax-deposit-semiweekly`, the pay date as period),
432
+ # due on the Wednesday after a Wednesday to Friday payday and the Friday after a Saturday to Tuesday payday, moved
433
+ # past District of Columbia legal holidays. Undo with `payroll/runs/reverse`, pay with `payroll/payments/export`.
388
434
  #
389
435
  # @param request_options [Hash]
390
436
  # @param params [Nordlet::Payroll::Types::RunsApprovePayrollRequest]
@@ -418,11 +464,13 @@ module Nordlet
418
464
  end
419
465
  end
420
466
 
421
- # Posts a journal entry dated the last day of the month that mirrors the run's entry (debits and credits swapped),
422
- # sets the status to `reversed` with the reason, and releases the business trips the run paid so the next run
423
- # picks them up again; the leave days the run marked used as compensation for unused leave are given back to the
424
- # leave balances. Answers 409 when the run is not approved, when part of it is matched to bank payments
425
- # (`paidAmount`, unmatch them first) or when the accounting period is locked. Emits `payroll_run.reversed`.
467
+ # Posts a journal entry dated the last day of the run's period that mirrors the run's entry (debits and credits
468
+ # swapped), sets the status to `reversed` with the reason, and releases the business trips the run paid so the
469
+ # next run picks them up again; the leave days the run marked used as compensation for unused leave are given back
470
+ # to the leave balances. A US run removes the semiweekly federal tax deposit of its pay date from the calendar
471
+ # unless another approved run has the same pay date. Answers 409 when the run is not approved, when part of it is
472
+ # matched to bank payments (`paidAmount`, unmatch them first) or when the accounting period is locked. Emits
473
+ # `payroll_run.reversed`.
426
474
  #
427
475
  # @param request_options [Hash]
428
476
  # @param params [Nordlet::Payroll::Types::RunsReversePayrollRequest]
@@ -491,14 +539,21 @@ module Nordlet
491
539
  end
492
540
  end
493
541
 
494
- # Builds a credit transfer file (ISO 20022 pain.001.001.03) for an approved run, a SEPA credit transfer in EUR and
495
- # a generic pain.001 without the SEPA service level in any other currency, in the currency of the bank account:
496
- # one transfer from the chosen bank account to each employee's IBAN for the line's net when it is positive, with a
497
- # remittance text in `locale` (default the locale of the calling user) and the run period, executed on
498
- # `executionDate` (default the company's current date). Answers 409 when the run is not approved, and 422 when the
499
- # bank account has no IBAN or is not in the company's base currency, an employee has no IBAN
500
- # (`hr/employees/update`) or no line has a positive net. The file is returned in `xml`; nothing is sent to the
501
- # bank.
542
+ # Builds a payment file for an approved run: one transfer from the chosen bank account to each employee's account
543
+ # for the line's net when it is positive, with a remittance text in `locale` (default the locale of the calling
544
+ # user) and the run period. The format follows the bank account: a GBP account of a UK company with a sort code
545
+ # and account number gets a Bacs Standard 18 Direct Credit file (needs `paymentFileSettings.serviceUserNumber`;
546
+ # the employee's `bankCode` is the 6-digit sort code and `bankAccountNumber` the 8-digit account number;
547
+ # `executionDate` is the day the pay arrives, a Bacs working day whose processing day is after today, default the
548
+ # earliest), a USD account of a US company with a routing number and account number gets a Nacha ACH file of PPD
549
+ # credits with the entry description PAYROLL (needs `paymentFileSettings.immediateOrigin` and
550
+ # `companyIdentification`; the employee's `bankCode` is the 9-digit routing number, plus `bankAccountNumber` and
551
+ # `bankAccountType`; default `executionDate` the company's current date), and an account with an IBAN gets ISO
552
+ # 20022 pain.001.001.03, a SEPA credit transfer in EUR and a generic pain.001 in other currencies (the employee's
553
+ # IBAN; default `executionDate` the company's current date). Answers 409 when the run is not approved, and 422
554
+ # when the bank account fits no format or is not in the company's base currency, an employee lacks the account
555
+ # details the format needs (`hr/employees/update`) or no line has a positive net. The file is returned in
556
+ # `content`, with `format`, `fileName` and `contentType`; nothing is sent to the bank.
502
557
  #
503
558
  # @param request_options [Hash]
504
559
  # @param params [Nordlet::Payroll::Types::PaymentsExportPayrollRequest]
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class FrequenciesListPayrollRequest < Internal::Types::Model; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class FrequenciesListPayrollResponse < Internal::Types::Model
7
+ field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
8
+
9
+ field :frequencies, -> { Internal::Types::Array[Nordlet::Payroll::Types::FrequenciesListPayrollResponseFrequenciesItem] }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module FrequenciesListPayrollResponseFrequenciesItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -4,15 +4,19 @@ module Nordlet
4
4
  module Payroll
5
5
  module Types
6
6
  class PaymentsExportPayrollResponse < Internal::Types::Model
7
+ field :format, -> { Nordlet::Payroll::Types::PaymentsExportPayrollResponseFormat }, optional: false, nullable: false
8
+
7
9
  field :message_id, -> { String }, optional: false, nullable: false, api_name: "messageId"
8
10
 
9
11
  field :file_name, -> { String }, optional: false, nullable: false, api_name: "fileName"
10
12
 
13
+ field :content_type, -> { String }, optional: false, nullable: false, api_name: "contentType"
14
+
11
15
  field :transaction_count, -> { Integer }, optional: false, nullable: false, api_name: "transactionCount"
12
16
 
13
17
  field :control_sum, -> { String }, optional: false, nullable: false, api_name: "controlSum"
14
18
 
15
- field :xml, -> { String }, optional: false, nullable: false
19
+ field :content, -> { String }, optional: false, nullable: false
16
20
  end
17
21
  end
18
22
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module PaymentsExportPayrollResponseFormat
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ PAIN00100103 = "pain.001.001.03"
10
+ PAIN00800102 = "pain.008.001.02"
11
+ BACS_STANDARD18 = "bacs-standard-18"
12
+ NACHA = "nacha"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -16,10 +16,6 @@ module Nordlet
16
16
 
17
17
  field :social_contributions_account_code, -> { String }, optional: true, nullable: false, api_name: "socialContributionsAccountCode"
18
18
 
19
- field :gpm_account_code, -> { String }, optional: true, nullable: false, api_name: "gpmAccountCode"
20
-
21
- field :sodra_account_code, -> { String }, optional: true, nullable: false, api_name: "sodraAccountCode"
22
-
23
19
  field :employer_social_account_code, -> { String }, optional: true, nullable: false, api_name: "employerSocialAccountCode"
24
20
 
25
21
  field :deduction_account_code, -> { String }, optional: true, nullable: false, api_name: "deductionAccountCode"
@@ -10,6 +10,16 @@ module Nordlet
10
10
 
11
11
  field :month, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :frequency, -> { Nordlet::Payroll::Types::RunsApprovePayrollResponseFrequency }, optional: false, nullable: false
14
+
15
+ field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
16
+
17
+ field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
18
+
19
+ field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
20
+
21
+ field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
22
+
13
23
  field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
14
24
 
15
25
  field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsApprovePayrollResponseFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -4,9 +4,13 @@ module Nordlet
4
4
  module Payroll
5
5
  module Types
6
6
  class RunsCreatePayrollRequest < Internal::Types::Model
7
- field :year, -> { Integer }, optional: false, nullable: false
7
+ field :frequency, -> { Nordlet::Payroll::Types::RunsCreatePayrollRequestFrequency }, optional: true, nullable: false
8
8
 
9
- field :month, -> { Integer }, optional: false, nullable: false
9
+ field :year, -> { Integer }, optional: true, nullable: false
10
+
11
+ field :month, -> { Integer }, optional: true, nullable: false
12
+
13
+ field :period_start, -> { String }, optional: true, nullable: false, api_name: "periodStart"
10
14
 
11
15
  field :include_natura, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "includeNatura"
12
16
 
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsCreatePayrollRequestFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -10,6 +10,16 @@ module Nordlet
10
10
 
11
11
  field :month, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :frequency, -> { Nordlet::Payroll::Types::RunsCreatePayrollResponseFrequency }, optional: false, nullable: false
14
+
15
+ field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
16
+
17
+ field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
18
+
19
+ field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
20
+
21
+ field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
22
+
13
23
  field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
14
24
 
15
25
  field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsCreatePayrollResponseFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -10,6 +10,16 @@ module Nordlet
10
10
 
11
11
  field :month, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :frequency, -> { Nordlet::Payroll::Types::RunsGetPayrollResponseFrequency }, optional: false, nullable: false
14
+
15
+ field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
16
+
17
+ field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
18
+
19
+ field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
20
+
21
+ field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
22
+
13
23
  field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
14
24
 
15
25
  field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsGetPayrollResponseFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -10,6 +10,16 @@ module Nordlet
10
10
 
11
11
  field :month, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :frequency, -> { Nordlet::Payroll::Types::RunsListPayrollResponseRowsItemFrequency }, optional: false, nullable: false
14
+
15
+ field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
16
+
17
+ field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
18
+
19
+ field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
20
+
21
+ field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
22
+
13
23
  field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
14
24
 
15
25
  field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsListPayrollResponseRowsItemFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -10,6 +10,16 @@ module Nordlet
10
10
 
11
11
  field :month, -> { Integer }, optional: false, nullable: false
12
12
 
13
+ field :frequency, -> { Nordlet::Payroll::Types::RunsReversePayrollResponseFrequency }, optional: false, nullable: false
14
+
15
+ field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
16
+
17
+ field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
18
+
19
+ field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
20
+
21
+ field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
22
+
13
23
  field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
14
24
 
15
25
  field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ module RunsReversePayrollResponseFrequency
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ MONTHLY = "monthly"
10
+ SEMIMONTHLY = "semimonthly"
11
+ FOUR_WEEKLY = "four_weekly"
12
+ BIWEEKLY = "biweekly"
13
+ WEEKLY = "weekly"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -10,9 +10,13 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
- # Fetches the euro exchange rates the Bank of Lithuania web service publishes for `date` (default: the company's
14
- # current date) and stores them in the rate table shared by all companies, replacing the rates already stored for
15
- # that date. Answers 404 when no rates are published for the date.
13
+ # Fetches the official exchange rates for `date` (default: the company's current date) quoted against the
14
+ # company's base currency and stores them in the rate table shared by all companies, replacing the rates already
15
+ # stored for the same base, currency and date. A company that keeps its books in GBP gets the HMRC monthly rates
16
+ # of the month of `date` (units per 1 GBP, dated the first day of the month), one in USD the Federal Reserve H.10
17
+ # rates of the two weeks up to `date` (units per 1 USD), and every other company the euro rates the Bank of
18
+ # Lithuania publishes for `date` (units per 1 EUR). `baseCurrency` in the answer names the base the rates are
19
+ # quoted against. Answers 404 when no rates are published for the date.
16
20
  #
17
21
  # @param request_options [Hash]
18
22
  # @param params [Nordlet::Reference::Types::ExchangeRatesSyncReferenceRequest]
@@ -46,8 +50,10 @@ module Nordlet
46
50
  end
47
51
  end
48
52
 
49
- # Lists the stored euro exchange rates, which are shared by all companies. Filterable by `currencyCode` and
50
- # `date`; sortable by `date` and `currencyCode`.
53
+ # Lists the stored official exchange rates, which are shared by all companies. `rate` is the units of
54
+ # `currencyCode` per one unit of `baseCurrency`: EUR rates come from the Bank of Lithuania, GBP rates from HMRC,
55
+ # USD rates from the Federal Reserve. Filterable by `baseCurrency`, `currencyCode` and `date`; sortable by `date`,
56
+ # `baseCurrency` and `currencyCode`.
51
57
  #
52
58
  # @param request_options [Hash]
53
59
  # @param params [Nordlet::Reference::Types::ExchangeRatesListReferenceRequest]
@@ -574,9 +580,9 @@ module Nordlet
574
580
  end
575
581
  end
576
582
 
577
- # Replace the VAT rate mapping this company uses for one EU country. Pass an empty rates array to drop the
578
- # overrides and return to the TEDB defaults. Overrides feed rate suggestions (vat/resolve) and OSS/IOSS return
579
- # rate classification.
583
+ # Replace the VAT rate mapping this company uses for one EU country, or for a country outside the EEA whose rates
584
+ # come from its VAT types (GB). Pass an empty rates array to drop the overrides and return to the TEDB defaults.
585
+ # Overrides feed rate suggestions (vat/resolve) and OSS/IOSS return rate classification.
580
586
  #
581
587
  # @param request_options [Hash]
582
588
  # @param params [Nordlet::Reference::Types::EuVatRatesSetOverridesReferenceRequest]
@@ -4,6 +4,8 @@ module Nordlet
4
4
  module Reference
5
5
  module Types
6
6
  class ExchangeRatesListReferenceResponseRowsItem < Internal::Types::Model
7
+ field :base_currency, -> { String }, optional: false, nullable: false, api_name: "baseCurrency"
8
+
7
9
  field :currency_code, -> { String }, optional: false, nullable: false, api_name: "currencyCode"
8
10
 
9
11
  field :date, -> { String }, optional: false, nullable: false
@@ -6,6 +6,8 @@ module Nordlet
6
6
  class ExchangeRatesSyncReferenceResponse < Internal::Types::Model
7
7
  field :date, -> { String }, optional: false, nullable: false
8
8
 
9
+ field :base_currency, -> { String }, optional: false, nullable: false, api_name: "baseCurrency"
10
+
9
11
  field :imported, -> { Integer }, optional: false, nullable: false
10
12
  end
11
13
  end
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"
@@ -10,6 +10,7 @@ module Nordlet
10
10
  INTRA_EU_B2B = "intra_eu_b2b"
11
11
  REVERSE_CHARGE = "reverse_charge"
12
12
  OSS_UNION = "oss_union"
13
+ OSS_NON_UNION = "oss_non_union"
13
14
  IOSS = "ioss"
14
15
  MARKETPLACE_DEEMED = "marketplace_deemed"
15
16
  EXPORT = "export"