nordlet 0.6.10 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +55 -7
  3. data/lib/nordlet/account/types/companies_context_account_request.rb +9 -0
  4. data/lib/nordlet/account/types/companies_context_account_response.rb +23 -0
  5. data/lib/nordlet/account/types/companies_context_account_response_bank_accounts_item.rb +23 -0
  6. data/lib/nordlet/account/types/companies_context_account_response_filings_item.rb +27 -0
  7. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings.rb +17 -0
  8. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings_operation.rb +13 -0
  9. data/lib/nordlet/account/types/companies_context_account_response_payroll.rb +15 -0
  10. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item.rb +17 -0
  11. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item_kind.rb +15 -0
  12. data/lib/nordlet/account/types/companies_context_account_response_periods.rb +13 -0
  13. data/lib/nordlet/account/types/companies_context_account_response_periods_locked_item.rb +13 -0
  14. data/lib/nordlet/account/types/companies_context_account_response_periods_open_item.rb +13 -0
  15. data/lib/nordlet/account/types/companies_context_account_response_profile.rb +105 -0
  16. data/lib/nordlet/account/types/companies_context_account_response_profile_accounts_kept_by.rb +14 -0
  17. data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +19 -0
  18. data/lib/nordlet/account/types/companies_context_account_response_profile_fiscal_year_week_rule.rb +14 -0
  19. data/lib/nordlet/account/types/companies_context_account_response_profile_status.rb +15 -0
  20. data/lib/nordlet/account/types/companies_context_account_response_profile_vat_period.rb +17 -0
  21. data/lib/nordlet/account/types/companies_context_account_response_vat_types_used_item.rb +19 -0
  22. data/lib/nordlet/account/types/companies_create_account_request.rb +10 -0
  23. data/lib/nordlet/account/types/companies_create_account_request_address.rb +2 -0
  24. data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +4 -221
  25. data/lib/nordlet/account/types/companies_create_account_request_fiscal_year_week_rule.rb +14 -0
  26. data/lib/nordlet/account/types/companies_profile_account_response.rb +11 -1
  27. data/lib/nordlet/account/types/companies_profile_account_response_address.rb +2 -0
  28. data/lib/nordlet/account/types/companies_profile_account_response_fiscal_year_week_rule.rb +14 -0
  29. data/lib/nordlet/account/types/companies_update_account_request.rb +10 -0
  30. data/lib/nordlet/account/types/companies_update_account_request_address.rb +2 -0
  31. data/lib/nordlet/account/types/companies_update_account_request_fiscal_year_week_rule.rb +14 -0
  32. data/lib/nordlet/account/types/companies_update_account_response.rb +11 -1
  33. data/lib/nordlet/account/types/companies_update_account_response_address.rb +2 -0
  34. data/lib/nordlet/account/types/companies_update_account_response_fiscal_year_week_rule.rb +14 -0
  35. data/lib/nordlet/agreements/client.rb +3 -1
  36. data/lib/nordlet/assets/client.rb +9 -2
  37. data/lib/nordlet/assets/types/assets_create_assets_response.rb +2 -0
  38. data/lib/nordlet/assets/types/assets_dispose_assets_request.rb +2 -0
  39. data/lib/nordlet/assets/types/assets_dispose_assets_response.rb +2 -0
  40. data/lib/nordlet/assets/types/assets_get_assets_response.rb +2 -0
  41. data/lib/nordlet/assets/types/assets_input_vat_assets_response.rb +2 -0
  42. data/lib/nordlet/assets/types/assets_list_assets_response_rows_item.rb +2 -0
  43. data/lib/nordlet/assets/types/assets_modernize_assets_response.rb +2 -0
  44. data/lib/nordlet/assets/types/assets_update_assets_response.rb +2 -0
  45. data/lib/nordlet/audit/client.rb +3 -2
  46. data/lib/nordlet/bank/client.rb +127 -47
  47. data/lib/nordlet/bank/types/accounts_create_bank_request.rb +6 -0
  48. data/lib/nordlet/bank/types/accounts_create_bank_request_payment_file_settings.rb +27 -0
  49. data/lib/nordlet/bank/types/accounts_create_bank_response.rb +6 -0
  50. data/lib/nordlet/bank/types/accounts_create_bank_response_payment_file_settings.rb +25 -0
  51. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +6 -0
  52. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_payment_file_settings.rb +25 -0
  53. data/lib/nordlet/bank/types/accounts_update_bank_request.rb +6 -0
  54. data/lib/nordlet/bank/types/accounts_update_bank_request_payment_file_settings.rb +27 -0
  55. data/lib/nordlet/bank/types/accounts_update_bank_response.rb +6 -0
  56. data/lib/nordlet/bank/types/accounts_update_bank_response_payment_file_settings.rb +25 -0
  57. data/lib/nordlet/bank/types/direct_debits_export_bank_response.rb +7 -1
  58. data/lib/nordlet/bank/types/direct_debits_export_bank_response_format.rb +16 -0
  59. data/lib/nordlet/bank/types/mandates_auddis_export_bank_request.rb +15 -0
  60. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response.rb +29 -0
  61. data/lib/nordlet/bank/types/mandates_auddis_export_bank_response_format.rb +16 -0
  62. data/lib/nordlet/bank/types/mandates_cancel_bank_response.rb +12 -2
  63. data/lib/nordlet/bank/types/mandates_cancel_bank_response_account_type.rb +14 -0
  64. data/lib/nordlet/bank/types/mandates_cancel_bank_response_scheme.rb +3 -0
  65. data/lib/nordlet/bank/types/mandates_create_bank_request.rb +7 -1
  66. data/lib/nordlet/bank/types/mandates_create_bank_request_account_type.rb +14 -0
  67. data/lib/nordlet/bank/types/mandates_create_bank_request_scheme.rb +3 -0
  68. data/lib/nordlet/bank/types/mandates_create_bank_response.rb +12 -2
  69. data/lib/nordlet/bank/types/mandates_create_bank_response_account_type.rb +14 -0
  70. data/lib/nordlet/bank/types/mandates_create_bank_response_scheme.rb +3 -0
  71. data/lib/nordlet/bank/types/mandates_get_bank_response.rb +12 -2
  72. data/lib/nordlet/bank/types/mandates_get_bank_response_account_type.rb +14 -0
  73. data/lib/nordlet/bank/types/mandates_get_bank_response_scheme.rb +3 -0
  74. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item.rb +12 -2
  75. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_account_type.rb +14 -0
  76. data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_scheme.rb +3 -0
  77. data/lib/nordlet/bank/types/mandates_update_bank_response.rb +12 -2
  78. data/lib/nordlet/bank/types/mandates_update_bank_response_account_type.rb +14 -0
  79. data/lib/nordlet/bank/types/mandates_update_bank_response_scheme.rb +3 -0
  80. data/lib/nordlet/bank/types/payments_export_bank_response.rb +5 -1
  81. data/lib/nordlet/bank/types/payments_export_bank_response_format.rb +16 -0
  82. data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
  83. data/lib/nordlet/calendar/client.rb +7 -1
  84. data/lib/nordlet/calendar/types/create_calendar_response.rb +2 -0
  85. data/lib/nordlet/calendar/types/create_calendar_response_correction.rb +17 -0
  86. data/lib/nordlet/calendar/types/create_calendar_response_correction_optional_item.rb +16 -0
  87. data/lib/nordlet/calendar/types/create_calendar_response_correction_reason_codes_item.rb +13 -0
  88. data/lib/nordlet/calendar/types/create_calendar_response_correction_required_item.rb +16 -0
  89. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +4 -0
  90. data/lib/nordlet/calendar/types/create_calendar_response_submission_correction_input.rb +17 -0
  91. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +4 -0
  92. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item_correction_input.rb +17 -0
  93. data/lib/nordlet/calendar/types/get_calendar_response.rb +2 -0
  94. data/lib/nordlet/calendar/types/get_calendar_response_correction.rb +17 -0
  95. data/lib/nordlet/calendar/types/get_calendar_response_correction_optional_item.rb +16 -0
  96. data/lib/nordlet/calendar/types/get_calendar_response_correction_reason_codes_item.rb +13 -0
  97. data/lib/nordlet/calendar/types/get_calendar_response_correction_required_item.rb +16 -0
  98. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +4 -0
  99. data/lib/nordlet/calendar/types/get_calendar_response_submission_correction_input.rb +17 -0
  100. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +4 -0
  101. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item_correction_input.rb +17 -0
  102. data/lib/nordlet/calendar/types/list_calendar_response_rows_item.rb +2 -0
  103. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction.rb +17 -0
  104. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_optional_item.rb +16 -0
  105. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_reason_codes_item.rb +13 -0
  106. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_required_item.rb +16 -0
  107. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +4 -0
  108. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission_correction_input.rb +17 -0
  109. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +4 -0
  110. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item_correction_input.rb +17 -0
  111. data/lib/nordlet/calendar/types/submit_calendar_request.rb +6 -0
  112. data/lib/nordlet/calendar/types/submit_calendar_request_correction.rb +17 -0
  113. data/lib/nordlet/calendar/types/submit_calendar_request_device.rb +22 -0
  114. data/lib/nordlet/calendar/types/submit_calendar_request_device_screens_item.rb +17 -0
  115. data/lib/nordlet/calendar/types/submit_calendar_request_device_window_size.rb +13 -0
  116. data/lib/nordlet/calendar/types/submit_calendar_response.rb +4 -0
  117. data/lib/nordlet/calendar/types/submit_calendar_response_correction_input.rb +17 -0
  118. data/lib/nordlet/calendar/types/update_calendar_response.rb +2 -0
  119. data/lib/nordlet/calendar/types/update_calendar_response_correction.rb +17 -0
  120. data/lib/nordlet/calendar/types/update_calendar_response_correction_optional_item.rb +16 -0
  121. data/lib/nordlet/calendar/types/update_calendar_response_correction_reason_codes_item.rb +13 -0
  122. data/lib/nordlet/calendar/types/update_calendar_response_correction_required_item.rb +16 -0
  123. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +4 -0
  124. data/lib/nordlet/calendar/types/update_calendar_response_submission_correction_input.rb +17 -0
  125. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +4 -0
  126. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item_correction_input.rb +17 -0
  127. data/lib/nordlet/cash/client.rb +7 -5
  128. data/lib/nordlet/catalog/client.rb +7 -5
  129. data/lib/nordlet/client.rb +5 -0
  130. data/lib/nordlet/declarations/client.rb +881 -89
  131. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +1 -1
  132. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +1 -1
  133. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_request.rb +21 -0
  134. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response.rb +29 -0
  135. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item.rb +33 -0
  136. data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item_rate.rb +15 -0
  137. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_request.rb +9 -0
  138. data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_response.rb +11 -0
  139. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_request.rb +13 -0
  140. data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_response.rb +11 -0
  141. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
  142. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
  143. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
  144. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
  145. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
  146. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
  147. data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
  148. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
  149. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
  150. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
  151. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
  152. data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_vat_obligations_list_declarations_request_status.rb} +3 -3
  153. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
  154. data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
  155. data/lib/nordlet/declarations/types/{configs_list_declarations_response_rows_item_fields_item_company_field.rb → gb_vat_obligations_list_declarations_response_obligations_item_status.rb} +3 -3
  156. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
  157. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
  158. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
  159. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
  160. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
  161. data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
  162. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
  163. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
  164. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
  165. data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
  166. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
  167. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
  168. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
  169. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
  170. data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
  171. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +4 -0
  172. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_correction_input.rb +17 -0
  173. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_request.rb +11 -0
  174. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response.rb +15 -0
  175. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response_changes_item.rb +17 -0
  176. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +4 -0
  177. data/lib/nordlet/declarations/types/submissions_create_declarations_response_correction_input.rb +17 -0
  178. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +8 -0
  179. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction.rb +17 -0
  180. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_input.rb +17 -0
  181. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_optional_item.rb +16 -0
  182. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_reason_codes_item.rb +13 -0
  183. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_required_item.rb +16 -0
  184. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +4 -0
  185. data/lib/nordlet/declarations/types/submissions_mark_declarations_response_correction_input.rb +17 -0
  186. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +4 -0
  187. data/lib/nordlet/declarations/types/submissions_retry_declarations_response_correction_input.rb +17 -0
  188. data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
  189. data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
  190. data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
  191. data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
  192. data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
  193. data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
  194. data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
  195. data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
  196. data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
  197. data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
  198. data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
  199. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
  200. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
  201. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
  202. data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
  203. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
  204. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
  205. data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
  206. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +13 -0
  207. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +23 -0
  208. data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
  209. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
  210. data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +19 -0
  211. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
  212. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
  213. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
  214. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
  215. data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
  216. data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
  217. data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
  218. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
  219. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
  220. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
  221. data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
  222. data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
  223. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
  224. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
  225. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
  226. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
  227. data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
  228. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_request.rb +11 -0
  229. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_response.rb +13 -0
  230. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_request.rb +9 -0
  231. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response.rb +11 -0
  232. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response_rows_item.rb +13 -0
  233. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_request.rb +13 -0
  234. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_response.rb +13 -0
  235. data/lib/nordlet/document_series/client.rb +2 -1
  236. data/lib/nordlet/files/client.rb +2 -2
  237. data/lib/nordlet/fleet/client.rb +3 -1
  238. data/lib/nordlet/hr/client.rb +15 -10
  239. data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
  240. data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
  241. data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
  242. data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
  243. data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
  244. data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
  245. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
  246. data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
  247. data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
  248. data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
  249. data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
  250. data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
  251. data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
  252. data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
  253. data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
  254. data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
  255. data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
  256. data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
  257. data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
  258. data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
  259. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
  260. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
  261. data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
  262. data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
  263. data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
  264. data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
  265. data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
  266. data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
  267. data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
  268. data/lib/nordlet/inventory/client.rb +14 -6
  269. data/lib/nordlet/inventory/types/stock_receive_inventory_request.rb +2 -0
  270. data/lib/nordlet/inventory/types/stock_receive_inventory_response.rb +4 -0
  271. data/lib/nordlet/inventory/types/stock_receive_inventory_response_warnings_item.rb +15 -0
  272. data/lib/nordlet/leads/client.rb +2 -1
  273. data/lib/nordlet/ledger/client.rb +176 -11
  274. data/lib/nordlet/ledger/types/accruals_create_ledger_request.rb +15 -0
  275. data/lib/nordlet/ledger/types/accruals_create_ledger_request_lines_item.rb +19 -0
  276. data/lib/nordlet/ledger/types/accruals_create_ledger_response.rb +17 -0
  277. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_request.rb +13 -0
  278. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_response.rb +13 -0
  279. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_request.rb +11 -0
  280. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response.rb +25 -0
  281. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item.rb +19 -0
  282. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item_kind.rb +15 -0
  283. data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request_entries_item.rb +2 -0
  284. data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response_entries_item.rb +2 -0
  285. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +5 -0
  286. data/lib/nordlet/ledger/types/tax_provision_post_ledger_request.rb +13 -0
  287. data/lib/nordlet/ledger/types/tax_provision_post_ledger_response.rb +17 -0
  288. data/lib/nordlet/migration/client.rb +5 -1
  289. data/lib/nordlet/operation_types/client.rb +4 -1
  290. data/lib/nordlet/partners/client.rb +68 -20
  291. data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
  292. data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
  293. data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
  294. data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
  295. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
  296. data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
  297. data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
  298. data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
  299. data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
  300. data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
  301. data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
  302. data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
  303. data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
  304. data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
  305. data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
  306. data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
  307. data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
  308. data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
  309. data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
  310. data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
  311. data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
  312. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +4 -0
  313. data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
  314. data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
  315. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
  316. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
  317. data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
  318. data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
  319. data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
  320. data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
  321. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
  322. data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
  323. data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
  324. data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
  325. data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
  326. data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
  327. data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
  328. data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
  329. data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
  330. data/lib/nordlet/payroll/client.rb +93 -33
  331. data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
  332. data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
  333. data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
  334. data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
  335. data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
  336. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +2 -2
  337. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
  338. data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
  339. data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
  340. data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
  341. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
  342. data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
  343. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
  344. data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
  345. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
  346. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
  347. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
  348. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
  349. data/lib/nordlet/platform_sellers/client.rb +3 -1
  350. data/lib/nordlet/production/client.rb +4 -2
  351. data/lib/nordlet/projects/client.rb +3 -2
  352. data/lib/nordlet/public/types/invoices_get_public_response_status.rb +1 -0
  353. data/lib/nordlet/purchases/client.rb +20 -12
  354. data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +2 -0
  355. data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +2 -0
  356. data/lib/nordlet/reference/client.rb +18 -9
  357. data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
  358. data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
  359. data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
  360. data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
  361. data/lib/nordlet/review/client.rb +55 -0
  362. data/lib/nordlet/review/types/queue_list_review_request.rb +9 -0
  363. data/lib/nordlet/review/types/queue_list_review_response.rb +13 -0
  364. data/lib/nordlet/review/types/queue_list_review_response_items_item.rb +19 -0
  365. data/lib/nordlet/review/types/queue_list_review_response_items_item_kind.rb +16 -0
  366. data/lib/nordlet/sales/client.rb +65 -17
  367. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
  368. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
  369. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
  370. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +2 -0
  371. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_status.rb +1 -0
  372. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
  373. data/lib/nordlet/sales/types/invoices_create_sales_request_lines_item.rb +2 -0
  374. data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
  375. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
  376. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +2 -0
  377. data/lib/nordlet/sales/types/invoices_create_sales_response_status.rb +1 -0
  378. data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
  379. data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +2 -0
  380. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
  381. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +2 -0
  382. data/lib/nordlet/sales/types/invoices_get_sales_response_status.rb +1 -0
  383. data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
  384. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
  385. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +2 -0
  386. data/lib/nordlet/sales/types/invoices_issue_sales_response_status.rb +1 -0
  387. data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
  388. data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +2 -0
  389. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
  390. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_status.rb +1 -0
  391. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
  392. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
  393. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +2 -0
  394. data/lib/nordlet/sales/types/invoices_lock_sales_response_status.rb +1 -0
  395. data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
  396. data/lib/nordlet/sales/types/invoices_reverse_sales_request.rb +13 -0
  397. data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +149 -0
  398. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item.rb +61 -0
  399. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_method.rb +16 -0
  400. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_milestones_item.rb +15 -0
  401. data/lib/nordlet/sales/types/invoices_reverse_sales_response_payment_status.rb +15 -0
  402. data/lib/nordlet/sales/types/invoices_reverse_sales_response_status.rb +15 -0
  403. data/lib/nordlet/sales/types/invoices_reverse_sales_response_type.rb +16 -0
  404. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence.rb +25 -0
  405. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_location.rb +13 -0
  406. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_partner.rb +17 -0
  407. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rate_table.rb +17 -0
  408. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rates_item.rb +15 -0
  409. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_scheme.rb +15 -0
  410. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_vies.rb +23 -0
  411. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +22 -0
  412. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
  413. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +2 -0
  414. data/lib/nordlet/sales/types/invoices_unlock_sales_response_status.rb +1 -0
  415. data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
  416. data/lib/nordlet/sales/types/invoices_update_sales_request_lines_item.rb +2 -0
  417. data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
  418. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
  419. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +2 -0
  420. data/lib/nordlet/sales/types/invoices_update_sales_response_status.rb +1 -0
  421. data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
  422. data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +1 -0
  423. data/lib/nordlet/transport/client.rb +2 -1
  424. data/lib/nordlet/version.rb +1 -1
  425. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +3 -0
  426. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +3 -0
  427. data/lib/nordlet.rb +229 -2
  428. data/reference.md +3694 -1090
  429. metadata +231 -4
@@ -11,9 +11,10 @@ module Nordlet
11
11
  end
12
12
 
13
13
  # Create a bank, Stripe or broker account. `currency` defaults to the company base currency and `accountCode` to
14
- # the default bank account of the chart of accounts. A `documentRef` also creates a bank agreement with that
15
- # document attached. A Stripe account with an `iban` is refused with 422; an account with the same IBAN already
16
- # existing answers 409.
14
+ # the default bank account of the chart of accounts. Where the country has no IBAN the account is identified by
15
+ # `bankCode` (sort code, routing number) and `bankAccountNumber`, stored without spaces and hyphens. A
16
+ # `documentRef` also creates a bank agreement with that document attached. A Stripe account with an `iban` or an
17
+ # account number is refused with 422; an account with the same IBAN already existing answers 409.
17
18
  #
18
19
  # @param request_options [Hash]
19
20
  # @param params [Nordlet::Bank::Types::AccountsCreateBankRequest]
@@ -82,8 +83,9 @@ module Nordlet
82
83
  end
83
84
  end
84
85
 
85
- # Change the name, type, IBAN, ledger account code or active flag of a bank account. Setting type to stripe clears
86
- # the IBAN, and sending an `iban` together with it is refused with 422.
86
+ # Change the name, type, IBAN, bank code and account number, payment file settings (`paymentFileSettings` replaces
87
+ # the stored settings as a whole), ledger account code or active flag of a bank account. Setting type to stripe
88
+ # clears the IBAN and the account number, and sending an `iban` together with it is refused with 422.
87
89
  #
88
90
  # @param request_options [Hash]
89
91
  # @param params [Nordlet::Bank::Types::AccountsUpdateBankRequest]
@@ -205,9 +207,10 @@ module Nordlet
205
207
  end
206
208
 
207
209
  # List the bank transactions of the company. Filterable by id, bankAccountId, status, matchedDocumentId, date,
208
- # amount, counterpartyIban, counterpartyName, partnerId and externalId; sortable by date, createdAt and amount.
209
- # `counterpartyName` is the name as the bank wrote it; `partnerId` and `partnerName` are the partner the line
210
- # belongs to.
210
+ # amount, counterpartyIban, counterpartyName, partnerId and externalId; sortable by date, createdAt, amount,
211
+ # bankAccountName (the name of the bank account), partnerName (the name of the partner, else the counterparty
212
+ # name), description and status. `counterpartyName` is the name as the bank wrote it; `partnerId` and
213
+ # `partnerName` are the partner the line belongs to.
211
214
  #
212
215
  # @param request_options [Hash]
213
216
  # @param params [Nordlet::Bank::Types::TransactionsListBankRequest]
@@ -242,24 +245,27 @@ module Nordlet
242
245
  end
243
246
 
244
247
  # Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued
245
- # sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing
246
- # money. Posts the payment journal transaction between the bank account and the receivable or payable account the
248
+ # sale credit note, a registered purchase invoice, an approved payroll run or an expense report (the last two in
249
+ # company currency only) for outgoing money. An expense report is paid to the employee by debiting the cash
250
+ # advances account (`cash.advances`) against the bank account, which settles the employee's advance balance in
251
+ # `cash/advance-holders/balances`; a report already paid in full or a payment above its remaining amount answers
252
+ # 409. Posts the payment journal transaction between the bank account and the receivable or payable account the
247
253
  # invoice was posted to (the account of its operation type, else the posting rule) or the net payable account,
248
254
  # with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the
249
255
  # line to matched. A payment in another currency is converted into the invoice currency at the rate of the line
250
256
  # date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the
251
257
  # amount settled instead; in the same currency it must equal the payment (422). `remainder` settles a payment that
252
258
  # differs from the remaining balance of a sale or purchase invoice in its own currency: `advance` books an
253
- # overpayment beyond the balance to the advances-received posting rule (customer payments) or to
254
- # `remainder.accountCode`, which a supplier overpayment must name, on the line's partner; `write_off` books the
255
- # over- or underpayment to `remainder.accountCode`, else to the `bank.paymentDifferenceLoss` posting rule (a
256
- # customer underpayment, a supplier overpayment, a credit note refund beyond its balance) or the
257
- # `bank.paymentDifferenceGain` rule (a supplier underpayment, a customer overpayment, a credit note refund below
258
- # its balance), and settles the invoice in full; `leave_open` settles an underpayment as a partial payment and
259
- # leaves the rest open. Answers 409 when the line is already matched or ignored, when the amount (converted,
260
- # beyond one cent of the payment) exceeds the remaining balance of the document and no `remainder` is given, or
261
- # when the accounting period of the line date is locked. A document that becomes fully paid is announced as
262
- # `sale_invoice.paid` or `purchase_invoice.paid`.
259
+ # overpayment beyond the balance to the advances-received posting rule (customer payments) or, for a supplier
260
+ # overpayment, to the `purchases.advancesPaid` posting rule, or to `remainder.accountCode` when given, on the
261
+ # line's partner; `write_off` books the over- or underpayment to `remainder.accountCode`, else to the
262
+ # `bank.paymentDifferenceLoss` posting rule (a customer underpayment, a supplier overpayment, a credit note refund
263
+ # beyond its balance) or the `bank.paymentDifferenceGain` rule (a supplier underpayment, a customer overpayment, a
264
+ # credit note refund below its balance), and settles the invoice in full; `leave_open` settles an underpayment as
265
+ # a partial payment and leaves the rest open. Answers 409 when the line is already matched or ignored, when the
266
+ # amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document and no
267
+ # `remainder` is given, or when the accounting period of the line date is locked. A document that becomes fully
268
+ # paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
263
269
  #
264
270
  # @param request_options [Hash]
265
271
  # @param params [Nordlet::Bank::Types::TransactionsMatchBankRequest]
@@ -563,11 +569,19 @@ module Nordlet
563
569
  end
564
570
  end
565
571
 
566
- # Build a SEPA credit transfer file (pain.001.001.03) that pays the remaining amount of each registered purchase
567
- # invoice from the bank account on `executionDate` (default: today), to the partner's default bank account. The
568
- # bank account needs an IBAN and every invoice must be in EUR and have a partner bank account on file (422
569
- # otherwise, see `partners/bank-accounts/create`); an invoice that is already paid answers 409. The file is
570
- # returned as `xml`; nothing is posted or marked paid.
572
+ # Build a payment file that pays the remaining amount of each registered purchase invoice from the bank account on
573
+ # `executionDate`, to the partner's default bank account that the format can use. The format follows the bank
574
+ # account: a GBP account of a UK company with a sort code and account number gets a Bacs Standard 18 Direct Credit
575
+ # file (needs `paymentFileSettings.serviceUserNumber`; `executionDate` is the day the money arrives, a Bacs
576
+ # working day whose processing day is after today, default the earliest), a USD account of a US company with a
577
+ # routing number and account number gets a Nacha ACH credit file (needs `paymentFileSettings.immediateOrigin` and
578
+ # `companyIdentification`; CCD for a business partner, PPD for a partner that is not one, see `partners/update`
579
+ # `isBusiness`; default `executionDate` today), and an account with an IBAN gets ISO 20022 pain.001.001.03, a SEPA
580
+ # credit transfer in EUR and a generic pain.001 in other currencies (default `executionDate` today). Every invoice
581
+ # must be in the currency of the bank account and the partner must have a bank account the format can use (IBAN;
582
+ # sort code and account number; routing number, account number and `accountType`), 422 otherwise, see
583
+ # `partners/bank-accounts/create`; an invoice that is already paid answers 409. The file is returned in `content`,
584
+ # with `format`, `fileName` and `contentType`; nothing is posted or marked paid.
571
585
  #
572
586
  # @param request_options [Hash]
573
587
  # @param params [Nordlet::Bank::Types::PaymentsExportBankRequest]
@@ -958,10 +972,17 @@ module Nordlet
958
972
  end
959
973
  end
960
974
 
961
- # Record a SEPA direct debit mandate a partner has signed: debtor IBAN and BIC, scheme (CORE or B2B), recurrent or
962
- # one-off, and the signature date. `reference` is the mandate reference written into the collection files; without
963
- # one `MNDT-` followed by a generated id is used. `debtorName` defaults to the partner name. A reference already
964
- # in use answers 409.
975
+ # Record a direct debit mandate a partner has signed, with the signature date. Schemes: `CORE` and `B2B` are SEPA
976
+ # mandates on the debtor's IBAN (and BIC), recurrent or one-off; `BACS` is a UK Direct Debit Instruction on a
977
+ # 6-digit sort code (`bankCode`) and an 8-digit account number, recurrent only, lodged with AUDDIS through
978
+ # `bank/mandates/auddis-export` before the first collection; `PPD` (consumer) and `CCD` (business) are US ACH
979
+ # debit authorizations on a 9-digit routing number (`bankCode`), an account number and `accountType`. Without
980
+ # `scheme`, an IBAN gives `CORE`, a UK company `BACS`, and a US company `CCD` for a business partner or `PPD` for
981
+ # one that is not (see `partners/update` `isBusiness`). `reference` is the mandate reference written into the
982
+ # collection files; without one `MNDT-` followed by a generated id is used (for `BACS` `MNDT` and the start of a
983
+ # generated id, upper case; a Bacs reference has 6 to 18 characters of A-Z, 0-9, . & / - and space, with at least
984
+ # six letters or digits, not one repeated character, not starting with DDIC). `debtorName` defaults to the partner
985
+ # name. A reference already in use answers 409.
965
986
  #
966
987
  # @param request_options [Hash]
967
988
  # @param params [Nordlet::Bank::Types::MandatesCreateBankRequest]
@@ -1029,7 +1050,8 @@ module Nordlet
1029
1050
  end
1030
1051
  end
1031
1052
 
1032
- # Cancel an active mandate. A mandate that is already cancelled or completed answers 409.
1053
+ # Cancel an active mandate. A BACS mandate that was lodged with AUDDIS is then reported cancelled by the next
1054
+ # `bank/mandates/auddis-export`. A mandate that is already cancelled or completed answers 409.
1033
1055
  #
1034
1056
  # @param request_options [Hash]
1035
1057
  # @param params [Nordlet::Bank::Types::MandatesCancelBankRequest]
@@ -1099,7 +1121,8 @@ module Nordlet
1099
1121
  end
1100
1122
 
1101
1123
  # List the mandates of the company. Filterable by partnerId, status, scheme, reference and iban; sortable by
1102
- # createdAt and signatureDate.
1124
+ # createdAt, signatureDate, reference, partnerName (the name of the partner, else the debtor name), iban, scheme,
1125
+ # sequenceType, collectionsCount, expiresOn (the last collection date, else the signature date) and status.
1103
1126
  #
1104
1127
  # @param request_options [Hash]
1105
1128
  # @param params [Nordlet::Bank::Types::MandatesListBankRequest]
@@ -1133,10 +1156,12 @@ module Nordlet
1133
1156
  end
1134
1157
  end
1135
1158
 
1136
- # List the issued EUR sale invoices that are unpaid or partly paid and whose partner holds an active mandate, each
1137
- # with the mandate `bank/direct-debits/export` would use (the most recently signed active one). Filterable by
1138
- # partnerId, fullNumber, issueDate and dueDate; sortable by issueDate, dueDate, fullNumber, grossTotal and
1139
- # createdAt.
1159
+ # List the issued sale invoices that are unpaid or partly paid and whose partner holds an active mandate of a
1160
+ # scheme in the invoice currency (CORE and B2B for EUR, BACS for GBP, PPD and CCD for USD), each with the mandate
1161
+ # `bank/direct-debits/export` would use (the most recently signed active one of those schemes). Filterable by
1162
+ # partnerId, fullNumber, issueDate and dueDate; sortable by issueDate, dueDate, fullNumber, grossTotal, createdAt,
1163
+ # partnerName (the name of the partner), remaining (the gross total less the paid amount) and mandateReference
1164
+ # (the reference of the mandate shown).
1140
1165
  #
1141
1166
  # @param request_options [Hash]
1142
1167
  # @param params [Nordlet::Bank::Types::DirectDebitsCandidatesBankRequest]
@@ -1170,14 +1195,24 @@ module Nordlet
1170
1195
  end
1171
1196
  end
1172
1197
 
1173
- # Build a SEPA direct debit file (pain.008.001.02) that collects the remaining amount of each issued EUR sale
1174
- # invoice into the bank account on `collectionDate` (default: today) under the partner's most recently signed
1175
- # active mandate. The bank account needs an IBAN and the company a valid `sepaCreditorId` (422, see
1176
- # `account/companies/update`); an invoice whose partner has no active mandate, or whose mandate expired (36 months
1177
- # without a collection), answers 422; an invoice already paid, or a one-off mandate asked to collect more than one
1178
- # invoice, answers 409. The sequence type is OOFF for a one-off mandate, FRST for the first collection under a
1179
- # recurrent one and RCUR after that. On success the collection count and last collection date of each mandate are
1180
- # advanced and a one-off mandate is completed; nothing is posted.
1198
+ # Build a direct debit file that collects the remaining amount of each issued sale invoice into the bank account
1199
+ # on `collectionDate` under the partner's most recently signed active mandate of a scheme the file carries. The
1200
+ # format follows the bank account: a GBP account of a UK company with a sort code and account number gets a Bacs
1201
+ # Standard 18 Direct Debit file (BACS mandates; needs `paymentFileSettings.serviceUserNumber`; each mandate must
1202
+ # have been lodged with `bank/mandates/auddis-export` and the collection processed at least two Bacs working days
1203
+ # after the lodgement; `collectionDate` is the day the money is collected, a Bacs working day whose processing day
1204
+ # is after today, default the earliest; transaction code 01 for the first collection under a mandate and 17 after
1205
+ # that), a USD account of a US company with a routing number and account number gets a Nacha ACH debit file (PPD
1206
+ # and CCD mandates; needs `paymentFileSettings.immediateOrigin` and `companyIdentification`; `collectionDate` not
1207
+ # before the mandate's signature date; default today), and an account with an IBAN gets a SEPA direct debit file
1208
+ # pain.008.001.02 (CORE and B2B mandates; needs a valid `sepaCreditorId`, see `account/companies/update`; a
1209
+ # mandate expires after 36 months without a collection; sequence type OOFF for a one-off mandate, FRST for the
1210
+ # first collection under a recurrent one and RCUR after that; default today). Each invoice must be in the currency
1211
+ # of the format (EUR, GBP, USD), 422 otherwise; an invoice whose partner has no usable active mandate answers 422;
1212
+ # an invoice already paid, or a one-off mandate asked to collect more than one invoice, answers 409. On success
1213
+ # the collection count and last collection date of each mandate are advanced and a one-off mandate is completed;
1214
+ # nothing is posted. The file is returned in `content`, with `format`, `fileName`, `contentType` and the
1215
+ # `collectionDate` used.
1181
1216
  #
1182
1217
  # @param request_options [Hash]
1183
1218
  # @param params [Nordlet::Bank::Types::DirectDebitsExportBankRequest]
@@ -1211,12 +1246,54 @@ module Nordlet
1211
1246
  end
1212
1247
  end
1213
1248
 
1249
+ # Build a Bacs AUDDIS file that lodges new Bacs Direct Debit Instructions (transaction code 0N, each active BACS
1250
+ # mandate not yet lodged) and cancels lodged ones (0C, each cancelled BACS mandate whose cancellation was not yet
1251
+ # lodged) with the paying banks. Without `mandateIds` every such mandate of the company is included. The bank
1252
+ # account must be a GBP account of a UK company with a sort code, an account number and
1253
+ # `paymentFileSettings.serviceUserNumber` (422 otherwise). `processingDate` is the Bacs processing day of the
1254
+ # file, a Bacs working day after today (default the next one); it is stored as the mandate's `lodgedOn` or
1255
+ # `cancellationLodgedOn`, and a first collection can be processed two Bacs working days after `lodgedOn`. Nothing
1256
+ # to lodge answers 409. The file is returned in `content`, with `format`, `fileName` and `contentType`; nothing is
1257
+ # sent to the bank.
1258
+ #
1259
+ # @param request_options [Hash]
1260
+ # @param params [Nordlet::Bank::Types::MandatesAuddisExportBankRequest]
1261
+ # @option request_options [String] :base_url
1262
+ # @option request_options [Hash{String => Object}] :additional_headers
1263
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1264
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1265
+ # @option request_options [Integer] :timeout_in_seconds
1266
+ #
1267
+ # @return [Nordlet::Bank::Types::MandatesAuddisExportBankResponse]
1268
+ def mandates_auddis_export(request_options: {}, **params)
1269
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1270
+ request = Nordlet::Internal::JSON::Request.new(
1271
+ base_url: request_options[:base_url],
1272
+ method: "POST",
1273
+ path: "v1/bank/mandates/auddis-export",
1274
+ body: Nordlet::Bank::Types::MandatesAuddisExportBankRequest.new(params).to_h,
1275
+ request_options: request_options
1276
+ )
1277
+ begin
1278
+ response = @client.send(request)
1279
+ rescue Net::HTTPRequestTimeout
1280
+ raise Nordlet::Errors::TimeoutError
1281
+ end
1282
+ code = response.code.to_i
1283
+ if code.between?(200, 299)
1284
+ Nordlet::Bank::Types::MandatesAuddisExportBankResponse.load(response.body)
1285
+ else
1286
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1287
+ raise error_class.new(response.body, code: code)
1288
+ end
1289
+ end
1290
+
1214
1291
  # Suggest documents for a new bank transaction: issued sale invoices and advances for incoming money; registered
1215
1292
  # purchase invoices, issued sale credit notes and approved payroll runs for outgoing money. Candidates are unpaid
1216
1293
  # documents with any remaining balance, also one below the payment, scored by an equal remaining balance, the
1217
1294
  # document number or payroll period in the payment description and a counterparty IBAN or name matching the
1218
- # partner or an employee on the run; the best `limit` come back with their reasons. A transaction that is already
1219
- # matched answers 409.
1295
+ # partner or an employee on the run; the best `limit` come back with their reasons; a candidate with no matching
1296
+ # reason (score 0) is left out. A transaction that is already matched answers 409.
1220
1297
  #
1221
1298
  # @param request_options [Hash]
1222
1299
  # @param params [Nordlet::Bank::Types::TransactionsSuggestMatchesBankRequest]
@@ -1292,7 +1369,9 @@ module Nordlet
1292
1369
  end
1293
1370
 
1294
1371
  # List the settlement batches with their line counts and the clearing figures against the bank lines. Filterable
1295
- # by provider, payoutId, status, currency and bankAccountId; sortable by payoutDate, createdAt and netTotal.
1372
+ # by provider, payoutId, status, currency and bankAccountId; sortable by payoutDate, createdAt, netTotal,
1373
+ # payoutId, provider, bankAccountName (the name of the bank account), grossTotal, feeTotal, lineCount (the number
1374
+ # of lines) and status.
1296
1375
  #
1297
1376
  # @param request_options [Hash]
1298
1377
  # @param params [Nordlet::Bank::Types::SettlementsListBankRequest]
@@ -1657,7 +1736,8 @@ module Nordlet
1657
1736
  end
1658
1737
 
1659
1738
  # List the imported securities operations, newest first; filterable by `bankAccountId`, `kind`, `status`, `symbol`
1660
- # and `date`, sortable by `date` and `createdAt`.
1739
+ # and `date`, sortable by `date`, `createdAt`, `bankAccountName` (the name of the bank account), `kind`, `symbol`,
1740
+ # `quantity`, `amount`, `fee`, `cashBase`, `costBase`, `realizedBase` and `status`.
1661
1741
  #
1662
1742
  # @param request_options [Hash]
1663
1743
  # @param params [Nordlet::Bank::Types::SecuritiesOperationsListBankRequest]
@@ -10,6 +10,12 @@ module Nordlet
10
10
 
11
11
  field :iban, -> { String }, optional: true, nullable: false
12
12
 
13
+ field :bank_code, -> { String }, optional: true, nullable: false, api_name: "bankCode"
14
+
15
+ field :bank_account_number, -> { String }, optional: true, nullable: false, api_name: "bankAccountNumber"
16
+
17
+ field :payment_file_settings, -> { Nordlet::Bank::Types::AccountsCreateBankRequestPaymentFileSettings }, optional: true, nullable: false, api_name: "paymentFileSettings"
18
+
13
19
  field :currency, -> { String }, optional: true, nullable: false
14
20
 
15
21
  field :account_code, -> { String }, optional: true, nullable: false, api_name: "accountCode"
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ # What the bank gave the company for payment files from this account: the Bacs service user number for a UK
7
+ # account, the ACH Immediate Origin and Company Identification for a US account
8
+ class AccountsCreateBankRequestPaymentFileSettings < Internal::Types::Model
9
+ field :service_user_number, -> { String }, optional: true, nullable: false, api_name: "serviceUserNumber"
10
+
11
+ field :service_user_name, -> { String }, optional: true, nullable: false, api_name: "serviceUserName"
12
+
13
+ field :odfi_routing_number, -> { String }, optional: true, nullable: false, api_name: "odfiRoutingNumber"
14
+
15
+ field :immediate_origin, -> { String }, optional: true, nullable: false, api_name: "immediateOrigin"
16
+
17
+ field :immediate_destination_name, -> { String }, optional: true, nullable: false, api_name: "immediateDestinationName"
18
+
19
+ field :company_identification, -> { String }, optional: true, nullable: false, api_name: "companyIdentification"
20
+
21
+ field :company_name, -> { String }, optional: true, nullable: false, api_name: "companyName"
22
+
23
+ field :company_discretionary_data, -> { String }, optional: true, nullable: false, api_name: "companyDiscretionaryData"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -12,6 +12,12 @@ module Nordlet
12
12
 
13
13
  field :iban, -> { String }, optional: false, nullable: true
14
14
 
15
+ field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
16
+
17
+ field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
18
+
19
+ field :payment_file_settings, -> { Nordlet::Bank::Types::AccountsCreateBankResponsePaymentFileSettings }, optional: false, nullable: false, api_name: "paymentFileSettings"
20
+
15
21
  field :currency, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class AccountsCreateBankResponsePaymentFileSettings < Internal::Types::Model
7
+ field :service_user_number, -> { String }, optional: true, nullable: false, api_name: "serviceUserNumber"
8
+
9
+ field :service_user_name, -> { String }, optional: true, nullable: false, api_name: "serviceUserName"
10
+
11
+ field :odfi_routing_number, -> { String }, optional: true, nullable: false, api_name: "odfiRoutingNumber"
12
+
13
+ field :immediate_origin, -> { String }, optional: true, nullable: false, api_name: "immediateOrigin"
14
+
15
+ field :immediate_destination_name, -> { String }, optional: true, nullable: false, api_name: "immediateDestinationName"
16
+
17
+ field :company_identification, -> { String }, optional: true, nullable: false, api_name: "companyIdentification"
18
+
19
+ field :company_name, -> { String }, optional: true, nullable: false, api_name: "companyName"
20
+
21
+ field :company_discretionary_data, -> { String }, optional: true, nullable: false, api_name: "companyDiscretionaryData"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -12,6 +12,12 @@ module Nordlet
12
12
 
13
13
  field :iban, -> { String }, optional: false, nullable: true
14
14
 
15
+ field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
16
+
17
+ field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
18
+
19
+ field :payment_file_settings, -> { Nordlet::Bank::Types::AccountsListBankResponseRowsItemPaymentFileSettings }, optional: false, nullable: false, api_name: "paymentFileSettings"
20
+
15
21
  field :currency, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class AccountsListBankResponseRowsItemPaymentFileSettings < Internal::Types::Model
7
+ field :service_user_number, -> { String }, optional: true, nullable: false, api_name: "serviceUserNumber"
8
+
9
+ field :service_user_name, -> { String }, optional: true, nullable: false, api_name: "serviceUserName"
10
+
11
+ field :odfi_routing_number, -> { String }, optional: true, nullable: false, api_name: "odfiRoutingNumber"
12
+
13
+ field :immediate_origin, -> { String }, optional: true, nullable: false, api_name: "immediateOrigin"
14
+
15
+ field :immediate_destination_name, -> { String }, optional: true, nullable: false, api_name: "immediateDestinationName"
16
+
17
+ field :company_identification, -> { String }, optional: true, nullable: false, api_name: "companyIdentification"
18
+
19
+ field :company_name, -> { String }, optional: true, nullable: false, api_name: "companyName"
20
+
21
+ field :company_discretionary_data, -> { String }, optional: true, nullable: false, api_name: "companyDiscretionaryData"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -12,6 +12,12 @@ module Nordlet
12
12
 
13
13
  field :iban, -> { String }, optional: true, nullable: false
14
14
 
15
+ field :bank_code, -> { String }, optional: true, nullable: false, api_name: "bankCode"
16
+
17
+ field :bank_account_number, -> { String }, optional: true, nullable: false, api_name: "bankAccountNumber"
18
+
19
+ field :payment_file_settings, -> { Nordlet::Bank::Types::AccountsUpdateBankRequestPaymentFileSettings }, optional: true, nullable: false, api_name: "paymentFileSettings"
20
+
15
21
  field :account_code, -> { String }, optional: true, nullable: false, api_name: "accountCode"
16
22
 
17
23
  field :is_active, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isActive"
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ # What the bank gave the company for payment files from this account: the Bacs service user number for a UK
7
+ # account, the ACH Immediate Origin and Company Identification for a US account
8
+ class AccountsUpdateBankRequestPaymentFileSettings < Internal::Types::Model
9
+ field :service_user_number, -> { String }, optional: true, nullable: false, api_name: "serviceUserNumber"
10
+
11
+ field :service_user_name, -> { String }, optional: true, nullable: false, api_name: "serviceUserName"
12
+
13
+ field :odfi_routing_number, -> { String }, optional: true, nullable: false, api_name: "odfiRoutingNumber"
14
+
15
+ field :immediate_origin, -> { String }, optional: true, nullable: false, api_name: "immediateOrigin"
16
+
17
+ field :immediate_destination_name, -> { String }, optional: true, nullable: false, api_name: "immediateDestinationName"
18
+
19
+ field :company_identification, -> { String }, optional: true, nullable: false, api_name: "companyIdentification"
20
+
21
+ field :company_name, -> { String }, optional: true, nullable: false, api_name: "companyName"
22
+
23
+ field :company_discretionary_data, -> { String }, optional: true, nullable: false, api_name: "companyDiscretionaryData"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -12,6 +12,12 @@ module Nordlet
12
12
 
13
13
  field :iban, -> { String }, optional: false, nullable: true
14
14
 
15
+ field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
16
+
17
+ field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
18
+
19
+ field :payment_file_settings, -> { Nordlet::Bank::Types::AccountsUpdateBankResponsePaymentFileSettings }, optional: false, nullable: false, api_name: "paymentFileSettings"
20
+
15
21
  field :currency, -> { String }, optional: false, nullable: false
16
22
 
17
23
  field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class AccountsUpdateBankResponsePaymentFileSettings < Internal::Types::Model
7
+ field :service_user_number, -> { String }, optional: true, nullable: false, api_name: "serviceUserNumber"
8
+
9
+ field :service_user_name, -> { String }, optional: true, nullable: false, api_name: "serviceUserName"
10
+
11
+ field :odfi_routing_number, -> { String }, optional: true, nullable: false, api_name: "odfiRoutingNumber"
12
+
13
+ field :immediate_origin, -> { String }, optional: true, nullable: false, api_name: "immediateOrigin"
14
+
15
+ field :immediate_destination_name, -> { String }, optional: true, nullable: false, api_name: "immediateDestinationName"
16
+
17
+ field :company_identification, -> { String }, optional: true, nullable: false, api_name: "companyIdentification"
18
+
19
+ field :company_name, -> { String }, optional: true, nullable: false, api_name: "companyName"
20
+
21
+ field :company_discretionary_data, -> { String }, optional: true, nullable: false, api_name: "companyDiscretionaryData"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -4,15 +4,21 @@ module Nordlet
4
4
  module Bank
5
5
  module Types
6
6
  class DirectDebitsExportBankResponse < Internal::Types::Model
7
+ field :format, -> { Nordlet::Bank::Types::DirectDebitsExportBankResponseFormat }, 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
20
+
21
+ field :collection_date, -> { String }, optional: false, nullable: false, api_name: "collectionDate"
16
22
  end
17
23
  end
18
24
  end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ module DirectDebitsExportBankResponseFormat
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
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class MandatesAuddisExportBankRequest < Internal::Types::Model
7
+ field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
8
+
9
+ field :mandate_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "mandateIds"
10
+
11
+ field :processing_date, -> { String }, optional: true, nullable: false, api_name: "processingDate"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class MandatesAuddisExportBankResponse < Internal::Types::Model
7
+ field :format, -> { Nordlet::Bank::Types::MandatesAuddisExportBankResponseFormat }, optional: false, nullable: false
8
+
9
+ field :message_id, -> { String }, optional: false, nullable: false, api_name: "messageId"
10
+
11
+ field :file_name, -> { String }, optional: false, nullable: false, api_name: "fileName"
12
+
13
+ field :content_type, -> { String }, optional: false, nullable: false, api_name: "contentType"
14
+
15
+ field :transaction_count, -> { Integer }, optional: false, nullable: false, api_name: "transactionCount"
16
+
17
+ field :control_sum, -> { String }, optional: false, nullable: false, api_name: "controlSum"
18
+
19
+ field :content, -> { String }, optional: false, nullable: false
20
+
21
+ field :processing_date, -> { String }, optional: false, nullable: false, api_name: "processingDate"
22
+
23
+ field :lodged, -> { Internal::Types::Array[String] }, optional: false, nullable: false
24
+
25
+ field :cancelled, -> { Internal::Types::Array[String] }, optional: false, nullable: false
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ module MandatesAuddisExportBankResponseFormat
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
@@ -18,17 +18,27 @@ module Nordlet
18
18
 
19
19
  field :debtor_name, -> { String }, optional: false, nullable: false, api_name: "debtorName"
20
20
 
21
- field :iban, -> { String }, optional: false, nullable: false
21
+ field :iban, -> { String }, optional: false, nullable: true
22
22
 
23
23
  field :bic, -> { String }, optional: false, nullable: true
24
24
 
25
+ field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
26
+
27
+ field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
28
+
29
+ field :account_type, -> { Nordlet::Bank::Types::MandatesCancelBankResponseAccountType }, optional: false, nullable: true, api_name: "accountType"
30
+
25
31
  field :signature_date, -> { String }, optional: false, nullable: false, api_name: "signatureDate"
26
32
 
27
33
  field :collections_count, -> { Integer }, optional: false, nullable: false, api_name: "collectionsCount"
28
34
 
29
35
  field :last_collection_date, -> { String }, optional: false, nullable: true, api_name: "lastCollectionDate"
30
36
 
31
- field :expires_on, -> { String }, optional: false, nullable: false, api_name: "expiresOn"
37
+ field :expires_on, -> { String }, optional: false, nullable: true, api_name: "expiresOn"
38
+
39
+ field :lodged_on, -> { String }, optional: false, nullable: true, api_name: "lodgedOn"
40
+
41
+ field :cancellation_lodged_on, -> { String }, optional: false, nullable: true, api_name: "cancellationLodgedOn"
32
42
 
33
43
  field :cancelled_at, -> { String }, optional: false, nullable: true, api_name: "cancelledAt"
34
44