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
@@ -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]
@@ -567,13 +569,19 @@ module Nordlet
567
569
  end
568
570
  end
569
571
 
570
- # Build a credit transfer file (ISO 20022 pain.001.001.03) that pays the remaining amount of each registered
571
- # purchase invoice from the bank account on `executionDate` (default: today), to the partner's default bank
572
- # account. The bank account needs an IBAN and every invoice must be in the currency of the bank account and have a
573
- # partner bank account on file (422 otherwise, see `partners/bank-accounts/create`); an invoice that is already
574
- # paid answers 409. A file in EUR is a SEPA credit transfer (service level SEPA); a file in another currency is a
575
- # generic pain.001 without the SEPA service level, in the currency of the account. The file is returned as `xml`;
576
- # 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.
577
585
  #
578
586
  # @param request_options [Hash]
579
587
  # @param params [Nordlet::Bank::Types::PaymentsExportBankRequest]
@@ -964,10 +972,17 @@ module Nordlet
964
972
  end
965
973
  end
966
974
 
967
- # Record a SEPA direct debit mandate a partner has signed: debtor IBAN and BIC, scheme (CORE or B2B), recurrent or
968
- # one-off, and the signature date. `reference` is the mandate reference written into the collection files; without
969
- # one `MNDT-` followed by a generated id is used. `debtorName` defaults to the partner name. A reference already
970
- # 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.
971
986
  #
972
987
  # @param request_options [Hash]
973
988
  # @param params [Nordlet::Bank::Types::MandatesCreateBankRequest]
@@ -1035,7 +1050,8 @@ module Nordlet
1035
1050
  end
1036
1051
  end
1037
1052
 
1038
- # 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.
1039
1055
  #
1040
1056
  # @param request_options [Hash]
1041
1057
  # @param params [Nordlet::Bank::Types::MandatesCancelBankRequest]
@@ -1140,8 +1156,9 @@ module Nordlet
1140
1156
  end
1141
1157
  end
1142
1158
 
1143
- # List the issued EUR sale invoices that are unpaid or partly paid and whose partner holds an active mandate, each
1144
- # with the mandate `bank/direct-debits/export` would use (the most recently signed active one). Filterable by
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
1145
1162
  # partnerId, fullNumber, issueDate and dueDate; sortable by issueDate, dueDate, fullNumber, grossTotal, createdAt,
1146
1163
  # partnerName (the name of the partner), remaining (the gross total less the paid amount) and mandateReference
1147
1164
  # (the reference of the mandate shown).
@@ -1178,14 +1195,24 @@ module Nordlet
1178
1195
  end
1179
1196
  end
1180
1197
 
1181
- # Build a SEPA direct debit file (pain.008.001.02) that collects the remaining amount of each issued EUR sale
1182
- # invoice into the bank account on `collectionDate` (default: today) under the partner's most recently signed
1183
- # active mandate. The bank account needs an IBAN and the company a valid `sepaCreditorId` (422, see
1184
- # `account/companies/update`); an invoice whose partner has no active mandate, or whose mandate expired (36 months
1185
- # without a collection), answers 422; an invoice already paid, or a one-off mandate asked to collect more than one
1186
- # invoice, answers 409. The sequence type is OOFF for a one-off mandate, FRST for the first collection under a
1187
- # recurrent one and RCUR after that. On success the collection count and last collection date of each mandate are
1188
- # 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.
1189
1216
  #
1190
1217
  # @param request_options [Hash]
1191
1218
  # @param params [Nordlet::Bank::Types::DirectDebitsExportBankRequest]
@@ -1219,6 +1246,48 @@ module Nordlet
1219
1246
  end
1220
1247
  end
1221
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
+
1222
1291
  # Suggest documents for a new bank transaction: issued sale invoices and advances for incoming money; registered
1223
1292
  # purchase invoices, issued sale credit notes and approved payroll runs for outgoing money. Candidates are unpaid
1224
1293
  # documents with any remaining balance, also one below the payment, scored by an equal remaining balance, the
@@ -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
 
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ module MandatesCancelBankResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ CHECKING = "checking"
10
+ SAVINGS = "savings"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -8,6 +8,9 @@ module Nordlet
8
8
 
9
9
  CORE = "CORE"
10
10
  B2B = "B2B"
11
+ BACS = "BACS"
12
+ PPD = "PPD"
13
+ CCD = "CCD"
11
14
  end
12
15
  end
13
16
  end
@@ -6,10 +6,16 @@ module Nordlet
6
6
  class MandatesCreateBankRequest < Internal::Types::Model
7
7
  field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
8
8
 
9
- field :iban, -> { String }, optional: false, nullable: false
9
+ field :iban, -> { String }, optional: true, nullable: false
10
10
 
11
11
  field :bic, -> { 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 :account_type, -> { Nordlet::Bank::Types::MandatesCreateBankRequestAccountType }, optional: true, nullable: false, api_name: "accountType"
18
+
13
19
  field :scheme, -> { Nordlet::Bank::Types::MandatesCreateBankRequestScheme }, optional: true, nullable: false
14
20
 
15
21
  field :sequence_type, -> { Nordlet::Bank::Types::MandatesCreateBankRequestSequenceType }, optional: true, nullable: false, api_name: "sequenceType"
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ module MandatesCreateBankRequestAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ CHECKING = "checking"
10
+ SAVINGS = "savings"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -8,6 +8,9 @@ module Nordlet
8
8
 
9
9
  CORE = "CORE"
10
10
  B2B = "B2B"
11
+ BACS = "BACS"
12
+ PPD = "PPD"
13
+ CCD = "CCD"
11
14
  end
12
15
  end
13
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::MandatesCreateBankResponseAccountType }, 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