nordlet 0.3.9 → 0.4.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 (303) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/types/me_account_response_billing.rb +6 -0
  3. data/lib/nordlet/bank/client.rb +96 -0
  4. data/lib/nordlet/bank/types/accounts_create_bank_request.rb +2 -0
  5. data/lib/nordlet/bank/types/accounts_create_bank_request_type.rb +15 -0
  6. data/lib/nordlet/bank/types/accounts_create_bank_response.rb +2 -0
  7. data/lib/nordlet/bank/types/accounts_create_bank_response_type.rb +15 -0
  8. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +2 -0
  9. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_type.rb +15 -0
  10. data/lib/nordlet/bank/types/accounts_update_bank_request.rb +2 -0
  11. data/lib/nordlet/bank/types/accounts_update_bank_request_type.rb +15 -0
  12. data/lib/nordlet/bank/types/accounts_update_bank_response.rb +2 -0
  13. data/lib/nordlet/bank/types/accounts_update_bank_response_type.rb +15 -0
  14. data/lib/nordlet/bank/types/securities_get_bank_request.rb +11 -0
  15. data/lib/nordlet/bank/types/securities_get_bank_response.rb +35 -0
  16. data/lib/nordlet/bank/types/securities_get_bank_response_operations_item.rb +51 -0
  17. data/lib/nordlet/bank/types/securities_get_bank_response_operations_item_status.rb +14 -0
  18. data/lib/nordlet/bank/types/securities_import_bank_request.rb +15 -0
  19. data/lib/nordlet/bank/types/securities_import_bank_response.rb +33 -0
  20. data/lib/nordlet/bank/types/securities_list_bank_request.rb +19 -0
  21. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item.rb +15 -0
  22. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_op.rb +18 -0
  23. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value.rb +19 -0
  24. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value_three_item.rb +15 -0
  25. data/lib/nordlet/bank/types/securities_list_bank_request_sort_item.rb +13 -0
  26. data/lib/nordlet/bank/types/securities_list_bank_request_sort_item_dir.rb +14 -0
  27. data/lib/nordlet/bank/types/securities_list_bank_response.rb +21 -0
  28. data/lib/nordlet/bank/types/securities_list_bank_response_rows_item.rb +33 -0
  29. data/lib/nordlet/bank/types/settlements_commission_bank_response.rb +8 -0
  30. data/lib/nordlet/bank/types/settlements_get_bank_response.rb +6 -0
  31. data/lib/nordlet/bank/types/settlements_get_bank_response_lines_item.rb +8 -0
  32. data/lib/nordlet/bank/types/settlements_import_bank_response_batches_item.rb +6 -0
  33. data/lib/nordlet/bank/types/settlements_link_bank_response.rb +6 -0
  34. data/lib/nordlet/bank/types/settlements_list_bank_response_rows_item.rb +6 -0
  35. data/lib/nordlet/bank/types/settlements_match_bank_response.rb +8 -0
  36. data/lib/nordlet/bank/types/settlements_post_bank_response.rb +6 -0
  37. data/lib/nordlet/bank/types/settlements_post_bank_response_summary.rb +2 -0
  38. data/lib/nordlet/bank/types/settlements_unlink_bank_response.rb +6 -0
  39. data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
  40. data/lib/nordlet/bank/types/transactions_match_many_bank_request_allocations_item_document_type.rb +1 -0
  41. data/lib/nordlet/bank/types/transactions_record_bank_request_document_type.rb +1 -0
  42. data/lib/nordlet/bank/types/transactions_suggest_matches_bank_response_suggestions_item_document_type.rb +1 -0
  43. data/lib/nordlet/billing/client.rb +192 -0
  44. data/lib/nordlet/billing/types/account_get_billing_response.rb +10 -0
  45. data/lib/nordlet/billing/types/account_get_billing_response_account_type.rb +14 -0
  46. data/lib/nordlet/billing/types/account_get_billing_response_auto_top_up.rb +15 -0
  47. data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +2 -0
  48. data/lib/nordlet/billing/types/account_get_billing_response_plans_value.rb +2 -2
  49. data/lib/nordlet/billing/types/account_set_account_type_billing_request.rb +11 -0
  50. data/lib/nordlet/billing/types/account_set_account_type_billing_request_account_type.rb +14 -0
  51. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +49 -0
  52. data/lib/nordlet/billing/types/account_set_account_type_billing_response_account_type.rb +14 -0
  53. data/lib/nordlet/billing/types/account_set_account_type_billing_response_auto_top_up.rb +15 -0
  54. data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +27 -0
  55. data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +15 -0
  56. data/lib/nordlet/billing/types/account_set_account_type_billing_response_plans_value.rb +19 -0
  57. data/lib/nordlet/billing/types/account_set_account_type_billing_response_status.rb +15 -0
  58. data/lib/nordlet/billing/types/account_set_account_type_billing_response_top_up.rb +13 -0
  59. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_request.rb +13 -0
  60. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +49 -0
  61. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_account_type.rb +14 -0
  62. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_auto_top_up.rb +15 -0
  63. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +27 -0
  64. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +15 -0
  65. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plans_value.rb +19 -0
  66. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_status.rb +15 -0
  67. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_top_up.rb +13 -0
  68. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_request.rb +11 -0
  69. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +49 -0
  70. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_account_type.rb +14 -0
  71. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_auto_top_up.rb +15 -0
  72. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +27 -0
  73. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +15 -0
  74. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plans_value.rb +19 -0
  75. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_status.rb +15 -0
  76. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_top_up.rb +13 -0
  77. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +10 -0
  78. data/lib/nordlet/billing/types/account_set_plan_billing_response_account_type.rb +14 -0
  79. data/lib/nordlet/billing/types/account_set_plan_billing_response_auto_top_up.rb +15 -0
  80. data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +2 -0
  81. data/lib/nordlet/billing/types/account_set_plan_billing_response_plans_value.rb +2 -2
  82. data/lib/nordlet/billing/types/flat_rate_confirm_billing_request.rb +11 -0
  83. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +49 -0
  84. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_account_type.rb +14 -0
  85. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_auto_top_up.rb +15 -0
  86. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +27 -0
  87. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +15 -0
  88. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plans_value.rb +19 -0
  89. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_status.rb +15 -0
  90. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_top_up.rb +13 -0
  91. data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +13 -0
  92. data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +15 -0
  93. data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +15 -0
  94. data/lib/nordlet/billing/types/flat_rate_create_billing_response.rb +13 -0
  95. data/lib/nordlet/billing/types/topup_confirm_billing_request.rb +11 -0
  96. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +49 -0
  97. data/lib/nordlet/billing/types/topup_confirm_billing_response_account_type.rb +14 -0
  98. data/lib/nordlet/billing/types/topup_confirm_billing_response_auto_top_up.rb +15 -0
  99. data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +27 -0
  100. data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +15 -0
  101. data/lib/nordlet/billing/types/topup_confirm_billing_response_plans_value.rb +19 -0
  102. data/lib/nordlet/billing/types/topup_confirm_billing_response_status.rb +15 -0
  103. data/lib/nordlet/billing/types/topup_confirm_billing_response_top_up.rb +13 -0
  104. data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
  105. data/lib/nordlet/billing/types/topup_create_billing_request_return_to.rb +14 -0
  106. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_metric.rb +1 -0
  107. data/lib/nordlet/capture/client.rb +5 -0
  108. data/lib/nordlet/capture/types/documents_confirm_capture_request.rb +6 -0
  109. data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +35 -0
  110. data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item_quantity.rb +15 -0
  111. data/lib/nordlet/capture/types/documents_confirm_capture_request_type.rb +14 -0
  112. data/lib/nordlet/capture/types/documents_confirm_capture_response.rb +2 -0
  113. data/lib/nordlet/capture/types/documents_confirm_capture_response_capture.rb +2 -0
  114. data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction.rb +4 -0
  115. data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction_document_type.rb +14 -0
  116. data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction_opposite_lines_item.rb +25 -0
  117. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +65 -0
  118. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +45 -0
  119. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_payment_status.rb +15 -0
  120. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +14 -0
  121. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_type.rb +14 -0
  122. data/lib/nordlet/capture/types/documents_extract_capture_response.rb +2 -0
  123. data/lib/nordlet/capture/types/documents_extract_capture_response_extraction.rb +4 -0
  124. data/lib/nordlet/capture/types/documents_extract_capture_response_extraction_document_type.rb +14 -0
  125. data/lib/nordlet/capture/types/documents_extract_capture_response_extraction_opposite_lines_item.rb +25 -0
  126. data/lib/nordlet/capture/types/documents_get_capture_response.rb +2 -0
  127. data/lib/nordlet/capture/types/documents_get_capture_response_extraction.rb +4 -0
  128. data/lib/nordlet/capture/types/documents_get_capture_response_extraction_document_type.rb +14 -0
  129. data/lib/nordlet/capture/types/documents_get_capture_response_extraction_opposite_lines_item.rb +25 -0
  130. data/lib/nordlet/capture/types/documents_list_capture_response_rows_item.rb +2 -0
  131. data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction.rb +4 -0
  132. data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction_document_type.rb +14 -0
  133. data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction_opposite_lines_item.rb +25 -0
  134. data/lib/nordlet/capture/types/documents_upload_capture_response.rb +2 -0
  135. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +4 -0
  136. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_document_type.rb +14 -0
  137. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +25 -0
  138. data/lib/nordlet/client.rb +10 -0
  139. data/lib/nordlet/declarations/client.rb +133 -1
  140. data/lib/nordlet/declarations/types/eu_dac7preview_declarations_request.rb +11 -0
  141. data/lib/nordlet/declarations/types/eu_dac7preview_declarations_response.rb +27 -0
  142. data/lib/nordlet/declarations/types/eu_dac7preview_declarations_response_sellers_item.rb +23 -0
  143. data/lib/nordlet/declarations/types/eu_dac7xml_declarations_request.rb +11 -0
  144. data/lib/nordlet/declarations/types/eu_dac7xml_declarations_response.rb +17 -0
  145. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_request.rb +13 -0
  146. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response.rb +23 -0
  147. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item.rb +49 -0
  148. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_article.rb +16 -0
  149. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_direction.rb +14 -0
  150. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_document_type.rb +14 -0
  151. data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_lines_item.rb +23 -0
  152. data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_request.rb +13 -0
  153. data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response.rb +33 -0
  154. data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response_rows_item.rb +17 -0
  155. data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response_transfers_item.rb +25 -0
  156. data/lib/nordlet/inventory/client.rb +32 -0
  157. data/lib/nordlet/inventory/types/landed_costs_create_inventory_response.rb +2 -0
  158. data/lib/nordlet/inventory/types/landed_costs_get_inventory_response.rb +2 -0
  159. data/lib/nordlet/inventory/types/warehouses_create_inventory_request.rb +2 -0
  160. data/lib/nordlet/inventory/types/warehouses_create_inventory_response.rb +2 -0
  161. data/lib/nordlet/inventory/types/warehouses_list_inventory_response_rows_item.rb +2 -0
  162. data/lib/nordlet/inventory/types/warehouses_update_inventory_request.rb +15 -0
  163. data/lib/nordlet/inventory/types/warehouses_update_inventory_response.rb +21 -0
  164. data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request.rb +2 -0
  165. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +8 -0
  166. data/lib/nordlet/partners/types/create_partners_request.rb +0 -4
  167. data/lib/nordlet/partners/types/create_partners_response.rb +0 -4
  168. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +0 -4
  169. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +0 -4
  170. data/lib/nordlet/partners/types/get_partners_response.rb +0 -4
  171. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +0 -4
  172. data/lib/nordlet/partners/types/update_partners_request.rb +0 -4
  173. data/lib/nordlet/partners/types/update_partners_response.rb +0 -4
  174. data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +2 -0
  175. data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +2 -0
  176. data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +2 -0
  177. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +2 -0
  178. data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +2 -0
  179. data/lib/nordlet/peppol/client.rb +83 -0
  180. data/lib/nordlet/peppol/types/participants_lookup_peppol_request.rb +13 -0
  181. data/lib/nordlet/peppol/types/participants_lookup_peppol_response.rb +23 -0
  182. data/lib/nordlet/peppol/types/webhooks_peppol_request.rb +13 -0
  183. data/lib/nordlet/peppol/types/webhooks_peppol_request_provider.rb +15 -0
  184. data/lib/nordlet/peppol/types/webhooks_peppol_response.rb +11 -0
  185. data/lib/nordlet/platform_sellers/client.rb +177 -0
  186. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request.rb +47 -0
  187. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item.rb +31 -0
  188. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_activity.rb +16 -0
  189. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_property_address.rb +21 -0
  190. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_property_type.rb +22 -0
  191. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_address.rb +21 -0
  192. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_kind.rb +14 -0
  193. data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_tax_residences_item.rb +13 -0
  194. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response.rb +53 -0
  195. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item.rb +33 -0
  196. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_activity.rb +16 -0
  197. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_property_address.rb +21 -0
  198. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_property_type.rb +22 -0
  199. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_address.rb +21 -0
  200. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_kind.rb +14 -0
  201. data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_tax_residences_item.rb +13 -0
  202. data/lib/nordlet/platform_sellers/types/delete_platform_sellers_request.rb +11 -0
  203. data/lib/nordlet/platform_sellers/types/delete_platform_sellers_response.rb +13 -0
  204. data/lib/nordlet/platform_sellers/types/get_platform_sellers_request.rb +11 -0
  205. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response.rb +53 -0
  206. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item.rb +33 -0
  207. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_activity.rb +16 -0
  208. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_property_address.rb +21 -0
  209. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_property_type.rb +22 -0
  210. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_address.rb +21 -0
  211. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_kind.rb +14 -0
  212. data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_tax_residences_item.rb +13 -0
  213. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request.rb +19 -0
  214. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item.rb +15 -0
  215. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_op.rb +18 -0
  216. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_value.rb +19 -0
  217. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_value_three_item.rb +15 -0
  218. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_sort_item.rb +13 -0
  219. data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_sort_item_dir.rb +14 -0
  220. data/lib/nordlet/platform_sellers/types/list_platform_sellers_response.rb +21 -0
  221. data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item.rb +51 -0
  222. data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_address.rb +21 -0
  223. data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_kind.rb +14 -0
  224. data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_tax_residences_item.rb +13 -0
  225. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request.rb +49 -0
  226. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item.rb +31 -0
  227. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_activity.rb +16 -0
  228. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_property_address.rb +21 -0
  229. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_property_type.rb +22 -0
  230. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_address.rb +21 -0
  231. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_kind.rb +14 -0
  232. data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_tax_residences_item.rb +13 -0
  233. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response.rb +53 -0
  234. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item.rb +33 -0
  235. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_activity.rb +16 -0
  236. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_property_address.rb +21 -0
  237. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_property_type.rb +22 -0
  238. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_address.rb +21 -0
  239. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_kind.rb +14 -0
  240. data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_tax_residences_item.rb +13 -0
  241. data/lib/nordlet/purchases/types/invoices_register_purchases_request.rb +2 -0
  242. data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +12 -0
  243. data/lib/nordlet/reference/types/vat_resolve_reference_request_goods_kind.rb +14 -0
  244. data/lib/nordlet/reference/types/vat_resolve_reference_request_service_kind.rb +14 -0
  245. data/lib/nordlet/reports/types/online_sales_reports_response_rows_item.rb +2 -0
  246. data/lib/nordlet/sales/client.rb +205 -0
  247. data/lib/nordlet/sales/types/invoice_templates_create_sales_request.rb +57 -0
  248. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_document_type.rb +14 -0
  249. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +25 -0
  250. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_supply_type.rb +15 -0
  251. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +21 -0
  252. data/lib/nordlet/sales/types/invoice_templates_create_sales_response.rb +63 -0
  253. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_document_type.rb +14 -0
  254. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +25 -0
  255. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_supply_type.rb +15 -0
  256. data/lib/nordlet/sales/types/invoice_templates_delete_sales_request.rb +11 -0
  257. data/lib/nordlet/sales/types/invoice_templates_delete_sales_response.rb +11 -0
  258. data/lib/nordlet/sales/types/invoice_templates_get_sales_request.rb +11 -0
  259. data/lib/nordlet/sales/types/invoice_templates_get_sales_response.rb +63 -0
  260. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_document_type.rb +14 -0
  261. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +25 -0
  262. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_supply_type.rb +15 -0
  263. data/lib/nordlet/sales/types/invoice_templates_list_sales_request.rb +19 -0
  264. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item.rb +15 -0
  265. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_op.rb +18 -0
  266. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value.rb +19 -0
  267. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value_three_item.rb +15 -0
  268. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item.rb +13 -0
  269. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item_dir.rb +14 -0
  270. data/lib/nordlet/sales/types/invoice_templates_list_sales_response.rb +21 -0
  271. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item.rb +63 -0
  272. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_document_type.rb +14 -0
  273. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +25 -0
  274. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_supply_type.rb +15 -0
  275. data/lib/nordlet/sales/types/invoice_templates_update_sales_request.rb +59 -0
  276. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_document_type.rb +14 -0
  277. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +25 -0
  278. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_supply_type.rb +15 -0
  279. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +21 -0
  280. data/lib/nordlet/sales/types/invoice_templates_update_sales_response.rb +63 -0
  281. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_document_type.rb +14 -0
  282. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +25 -0
  283. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_supply_type.rb +15 -0
  284. data/lib/nordlet/sales/types/invoices_apply_advance_sales_request.rb +2 -0
  285. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +12 -0
  286. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +12 -0
  287. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +12 -0
  288. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +12 -0
  289. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +10 -0
  290. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +12 -0
  291. data/lib/nordlet/sales/types/invoices_peppol_send_sales_response.rb +4 -0
  292. data/lib/nordlet/sales/types/invoices_peppol_send_sales_response_status.rb +16 -0
  293. data/lib/nordlet/sales/types/invoices_peppol_status_sales_request.rb +11 -0
  294. data/lib/nordlet/sales/types/invoices_peppol_status_sales_response.rb +17 -0
  295. data/lib/nordlet/sales/types/invoices_peppol_status_sales_response_status.rb +16 -0
  296. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +12 -0
  297. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +12 -0
  298. data/lib/nordlet/version.rb +1 -1
  299. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +4 -0
  300. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +4 -0
  301. data/lib/nordlet.rb +216 -0
  302. data/reference.md +5692 -3356
  303. metadata +218 -2
@@ -4,6 +4,8 @@ module Nordlet
4
4
  module Capture
5
5
  module Types
6
6
  class DocumentsExtractCaptureResponseExtraction < Internal::Types::Model
7
+ field :document_type, -> { Nordlet::Capture::Types::DocumentsExtractCaptureResponseExtractionDocumentType }, optional: true, nullable: false, api_name: "documentType"
8
+
7
9
  field :supplier, -> { Nordlet::Capture::Types::DocumentsExtractCaptureResponseExtractionSupplier }, optional: false, nullable: false
8
10
 
9
11
  field :document_number, -> { String }, optional: false, nullable: true, api_name: "documentNumber"
@@ -23,6 +25,8 @@ module Nordlet
23
25
  field :notes, -> { String }, optional: false, nullable: true
24
26
 
25
27
  field :lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsExtractCaptureResponseExtractionLinesItem] }, optional: false, nullable: false
28
+
29
+ field :opposite_lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsExtractCaptureResponseExtractionOppositeLinesItem] }, optional: true, nullable: false, api_name: "oppositeLines"
26
30
  end
27
31
  end
28
32
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ module DocumentsExtractCaptureResponseExtractionDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ class DocumentsExtractCaptureResponseExtractionOppositeLinesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :quantity, -> { String }, optional: false, nullable: false
10
+
11
+ field :unit, -> { String }, optional: false, nullable: true
12
+
13
+ field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
16
+
17
+ field :line_net, -> { String }, optional: false, nullable: true, api_name: "lineNet"
18
+
19
+ field :line_vat, -> { String }, optional: false, nullable: true, api_name: "lineVat"
20
+
21
+ field :line_gross, -> { String }, optional: false, nullable: true, api_name: "lineGross"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -30,6 +30,8 @@ module Nordlet
30
30
 
31
31
  field :error, -> { String }, optional: false, nullable: true
32
32
 
33
+ field :sender_id, -> { String }, optional: false, nullable: true, api_name: "senderId"
34
+
33
35
  field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
34
36
 
35
37
  field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
@@ -4,6 +4,8 @@ module Nordlet
4
4
  module Capture
5
5
  module Types
6
6
  class DocumentsGetCaptureResponseExtraction < Internal::Types::Model
7
+ field :document_type, -> { Nordlet::Capture::Types::DocumentsGetCaptureResponseExtractionDocumentType }, optional: true, nullable: false, api_name: "documentType"
8
+
7
9
  field :supplier, -> { Nordlet::Capture::Types::DocumentsGetCaptureResponseExtractionSupplier }, optional: false, nullable: false
8
10
 
9
11
  field :document_number, -> { String }, optional: false, nullable: true, api_name: "documentNumber"
@@ -23,6 +25,8 @@ module Nordlet
23
25
  field :notes, -> { String }, optional: false, nullable: true
24
26
 
25
27
  field :lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsGetCaptureResponseExtractionLinesItem] }, optional: false, nullable: false
28
+
29
+ field :opposite_lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsGetCaptureResponseExtractionOppositeLinesItem] }, optional: true, nullable: false, api_name: "oppositeLines"
26
30
  end
27
31
  end
28
32
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ module DocumentsGetCaptureResponseExtractionDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ class DocumentsGetCaptureResponseExtractionOppositeLinesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :quantity, -> { String }, optional: false, nullable: false
10
+
11
+ field :unit, -> { String }, optional: false, nullable: true
12
+
13
+ field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
16
+
17
+ field :line_net, -> { String }, optional: false, nullable: true, api_name: "lineNet"
18
+
19
+ field :line_vat, -> { String }, optional: false, nullable: true, api_name: "lineVat"
20
+
21
+ field :line_gross, -> { String }, optional: false, nullable: true, api_name: "lineGross"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -30,6 +30,8 @@ module Nordlet
30
30
 
31
31
  field :error, -> { String }, optional: false, nullable: true
32
32
 
33
+ field :sender_id, -> { String }, optional: false, nullable: true, api_name: "senderId"
34
+
33
35
  field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
34
36
 
35
37
  field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
@@ -4,6 +4,8 @@ module Nordlet
4
4
  module Capture
5
5
  module Types
6
6
  class DocumentsListCaptureResponseRowsItemExtraction < Internal::Types::Model
7
+ field :document_type, -> { Nordlet::Capture::Types::DocumentsListCaptureResponseRowsItemExtractionDocumentType }, optional: true, nullable: false, api_name: "documentType"
8
+
7
9
  field :supplier, -> { Nordlet::Capture::Types::DocumentsListCaptureResponseRowsItemExtractionSupplier }, optional: false, nullable: false
8
10
 
9
11
  field :document_number, -> { String }, optional: false, nullable: true, api_name: "documentNumber"
@@ -23,6 +25,8 @@ module Nordlet
23
25
  field :notes, -> { String }, optional: false, nullable: true
24
26
 
25
27
  field :lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureResponseRowsItemExtractionLinesItem] }, optional: false, nullable: false
28
+
29
+ field :opposite_lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsListCaptureResponseRowsItemExtractionOppositeLinesItem] }, optional: true, nullable: false, api_name: "oppositeLines"
26
30
  end
27
31
  end
28
32
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ module DocumentsListCaptureResponseRowsItemExtractionDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ class DocumentsListCaptureResponseRowsItemExtractionOppositeLinesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :quantity, -> { String }, optional: false, nullable: false
10
+
11
+ field :unit, -> { String }, optional: false, nullable: true
12
+
13
+ field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
16
+
17
+ field :line_net, -> { String }, optional: false, nullable: true, api_name: "lineNet"
18
+
19
+ field :line_vat, -> { String }, optional: false, nullable: true, api_name: "lineVat"
20
+
21
+ field :line_gross, -> { String }, optional: false, nullable: true, api_name: "lineGross"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -30,6 +30,8 @@ module Nordlet
30
30
 
31
31
  field :error, -> { String }, optional: false, nullable: true
32
32
 
33
+ field :sender_id, -> { String }, optional: false, nullable: true, api_name: "senderId"
34
+
33
35
  field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
34
36
 
35
37
  field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
@@ -4,6 +4,8 @@ module Nordlet
4
4
  module Capture
5
5
  module Types
6
6
  class DocumentsUploadCaptureResponseExtraction < Internal::Types::Model
7
+ field :document_type, -> { Nordlet::Capture::Types::DocumentsUploadCaptureResponseExtractionDocumentType }, optional: true, nullable: false, api_name: "documentType"
8
+
7
9
  field :supplier, -> { Nordlet::Capture::Types::DocumentsUploadCaptureResponseExtractionSupplier }, optional: false, nullable: false
8
10
 
9
11
  field :document_number, -> { String }, optional: false, nullable: true, api_name: "documentNumber"
@@ -23,6 +25,8 @@ module Nordlet
23
25
  field :notes, -> { String }, optional: false, nullable: true
24
26
 
25
27
  field :lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsUploadCaptureResponseExtractionLinesItem] }, optional: false, nullable: false
28
+
29
+ field :opposite_lines, -> { Internal::Types::Array[Nordlet::Capture::Types::DocumentsUploadCaptureResponseExtractionOppositeLinesItem] }, optional: true, nullable: false, api_name: "oppositeLines"
26
30
  end
27
31
  end
28
32
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ module DocumentsUploadCaptureResponseExtractionDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Capture
5
+ module Types
6
+ class DocumentsUploadCaptureResponseExtractionOppositeLinesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :quantity, -> { String }, optional: false, nullable: false
10
+
11
+ field :unit, -> { String }, optional: false, nullable: true
12
+
13
+ field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
16
+
17
+ field :line_net, -> { String }, optional: false, nullable: true, api_name: "lineNet"
18
+
19
+ field :line_vat, -> { String }, optional: false, nullable: true, api_name: "lineVat"
20
+
21
+ field :line_gross, -> { String }, optional: false, nullable: true, api_name: "lineGross"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -63,6 +63,11 @@ module Nordlet
63
63
  @capture ||= Nordlet::Capture::Client.new(client: @raw_client)
64
64
  end
65
65
 
66
+ # @return [Nordlet::Peppol::Client]
67
+ def peppol
68
+ @peppol ||= Nordlet::Peppol::Client.new(client: @raw_client)
69
+ end
70
+
66
71
  # @return [Nordlet::Declarations::Client]
67
72
  def declarations
68
73
  @declarations ||= Nordlet::Declarations::Client.new(client: @raw_client)
@@ -78,6 +83,11 @@ module Nordlet
78
83
  @officers ||= Nordlet::Officers::Client.new(client: @raw_client)
79
84
  end
80
85
 
86
+ # @return [Nordlet::PlatformSellers::Client]
87
+ def platform_sellers
88
+ @platform_sellers ||= Nordlet::PlatformSellers::Client.new(client: @raw_client)
89
+ end
90
+
81
91
  # @return [Nordlet::Migration::Client]
82
92
  def migration
83
93
  @migration ||= Nordlet::Migration::Client.new(client: @raw_client)
@@ -522,6 +522,137 @@ module Nordlet
522
522
  end
523
523
  end
524
524
 
525
+ # @param request_options [Hash]
526
+ # @param params [Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsRequest]
527
+ # @option request_options [String] :base_url
528
+ # @option request_options [Hash{String => Object}] :additional_headers
529
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
530
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
531
+ # @option request_options [Integer] :timeout_in_seconds
532
+ #
533
+ # @return [Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsResponse]
534
+ def eu_own_goods_transfers_compute(request_options: {}, **params)
535
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
536
+ request = Nordlet::Internal::JSON::Request.new(
537
+ base_url: request_options[:base_url],
538
+ method: "POST",
539
+ path: "v1/declarations/eu/own-goods-transfers/compute",
540
+ body: Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsRequest.new(params).to_h,
541
+ request_options: request_options
542
+ )
543
+ begin
544
+ response = @client.send(request)
545
+ rescue Net::HTTPRequestTimeout
546
+ raise Nordlet::Errors::TimeoutError
547
+ end
548
+ code = response.code.to_i
549
+ if code.between?(200, 299)
550
+ Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsResponse.load(response.body)
551
+ else
552
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
553
+ raise error_class.new(response.body, code: code)
554
+ end
555
+ end
556
+
557
+ # @param request_options [Hash]
558
+ # @param params [Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsRequest]
559
+ # @option request_options [String] :base_url
560
+ # @option request_options [Hash{String => Object}] :additional_headers
561
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
562
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
563
+ # @option request_options [Integer] :timeout_in_seconds
564
+ #
565
+ # @return [Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponse]
566
+ def eu_digital_reporting_list(request_options: {}, **params)
567
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
568
+ request = Nordlet::Internal::JSON::Request.new(
569
+ base_url: request_options[:base_url],
570
+ method: "POST",
571
+ path: "v1/declarations/eu/digital-reporting/list",
572
+ body: Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsRequest.new(params).to_h,
573
+ request_options: request_options
574
+ )
575
+ begin
576
+ response = @client.send(request)
577
+ rescue Net::HTTPRequestTimeout
578
+ raise Nordlet::Errors::TimeoutError
579
+ end
580
+ code = response.code.to_i
581
+ if code.between?(200, 299)
582
+ Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponse.load(response.body)
583
+ else
584
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
585
+ raise error_class.new(response.body, code: code)
586
+ end
587
+ end
588
+
589
+ # Which platform sellers are reportable for the year (Council Directive (EU) 2021/514, Annex V) and why the others
590
+ # are excluded, the data still missing, and how the company files the report in its Member State.
591
+ #
592
+ # @param request_options [Hash]
593
+ # @param params [Nordlet::Declarations::Types::EuDac7PreviewDeclarationsRequest]
594
+ # @option request_options [String] :base_url
595
+ # @option request_options [Hash{String => Object}] :additional_headers
596
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
597
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
598
+ # @option request_options [Integer] :timeout_in_seconds
599
+ #
600
+ # @return [Nordlet::Declarations::Types::EuDac7PreviewDeclarationsResponse]
601
+ def eu_dac7preview(request_options: {}, **params)
602
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
603
+ request = Nordlet::Internal::JSON::Request.new(
604
+ base_url: request_options[:base_url],
605
+ method: "POST",
606
+ path: "v1/declarations/eu/dac7/preview",
607
+ body: Nordlet::Declarations::Types::EuDac7PreviewDeclarationsRequest.new(params).to_h,
608
+ request_options: request_options
609
+ )
610
+ begin
611
+ response = @client.send(request)
612
+ rescue Net::HTTPRequestTimeout
613
+ raise Nordlet::Errors::TimeoutError
614
+ end
615
+ code = response.code.to_i
616
+ if code.between?(200, 299)
617
+ Nordlet::Declarations::Types::EuDac7PreviewDeclarationsResponse.load(response.body)
618
+ else
619
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
620
+ raise error_class.new(response.body, code: code)
621
+ end
622
+ end
623
+
624
+ # @param request_options [Hash]
625
+ # @param params [Nordlet::Declarations::Types::EuDac7XMLDeclarationsRequest]
626
+ # @option request_options [String] :base_url
627
+ # @option request_options [Hash{String => Object}] :additional_headers
628
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
629
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
630
+ # @option request_options [Integer] :timeout_in_seconds
631
+ #
632
+ # @return [Nordlet::Declarations::Types::EuDac7XMLDeclarationsResponse]
633
+ def eu_dac7xml(request_options: {}, **params)
634
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
635
+ request = Nordlet::Internal::JSON::Request.new(
636
+ base_url: request_options[:base_url],
637
+ method: "POST",
638
+ path: "v1/declarations/eu/dac7/xml",
639
+ body: Nordlet::Declarations::Types::EuDac7XMLDeclarationsRequest.new(params).to_h,
640
+ request_options: request_options
641
+ )
642
+ begin
643
+ response = @client.send(request)
644
+ rescue Net::HTTPRequestTimeout
645
+ raise Nordlet::Errors::TimeoutError
646
+ end
647
+ code = response.code.to_i
648
+ if code.between?(200, 299)
649
+ Nordlet::Declarations::Types::EuDac7XMLDeclarationsResponse.load(response.body)
650
+ else
651
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
652
+ raise error_class.new(response.body, code: code)
653
+ end
654
+ end
655
+
525
656
  # @param request_options [Hash]
526
657
  # @param params [Nordlet::Declarations::Types::EuDistanceSalesThresholdGetDeclarationsRequest]
527
658
  # @option request_options [String] :base_url
@@ -2360,7 +2491,8 @@ module Nordlet
2360
2491
 
2361
2492
  # Generate PIT-11(29) for every person on the payroll of one year: the pay, the deductible costs, the advance
2362
2493
  # withheld and the social and health contributions taken off it. One document per person, because that is how the
2363
- # form is filed.
2494
+ # form is filed, addressed to the tax office of the place of residence of that person (employee field
2495
+ # plKodUrzedu); a person without that code is refused with 422.
2364
2496
  #
2365
2497
  # @param request_options [Hash]
2366
2498
  # @param params [Nordlet::Declarations::Types::PlPit11GenerateDeclarationsRequest]
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDac7PreviewDeclarationsRequest < Internal::Types::Model
7
+ field :year, -> { Integer }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDac7PreviewDeclarationsResponse < Internal::Types::Model
7
+ field :year, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :country, -> { String }, optional: false, nullable: false
10
+
11
+ field :system, -> { String }, optional: false, nullable: false
12
+
13
+ field :sends_directly, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "sendsDirectly"
14
+
15
+ field :message_type_indic, -> { String }, optional: false, nullable: false, api_name: "messageTypeIndic"
16
+
17
+ field :currency, -> { String }, optional: false, nullable: false
18
+
19
+ field :sellers, -> { Internal::Types::Array[Nordlet::Declarations::Types::EuDac7PreviewDeclarationsResponseSellersItem] }, optional: false, nullable: false
20
+
21
+ field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
22
+
23
+ field :source, -> { String }, optional: false, nullable: false
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDac7PreviewDeclarationsResponseSellersItem < Internal::Types::Model
7
+ field :seller_id, -> { String }, optional: false, nullable: false, api_name: "sellerId"
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :reportable, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :reason, -> { String }, optional: false, nullable: true
14
+
15
+ field :consideration, -> { String }, optional: false, nullable: false
16
+
17
+ field :activities, -> { Integer }, optional: false, nullable: false
18
+
19
+ field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDac7XMLDeclarationsRequest < Internal::Types::Model
7
+ field :year, -> { Integer }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDac7XMLDeclarationsResponse < Internal::Types::Model
7
+ field :file_name, -> { String }, optional: false, nullable: false, api_name: "fileName"
8
+
9
+ field :content_type, -> { String }, optional: false, nullable: false, api_name: "contentType"
10
+
11
+ field :data, -> { String }, optional: false, nullable: false
12
+
13
+ field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDigitalReportingListDeclarationsRequest < Internal::Types::Model
7
+ field :from_date, -> { String }, optional: false, nullable: false, api_name: "fromDate"
8
+
9
+ field :to_date, -> { String }, optional: false, nullable: false, api_name: "toDate"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDigitalReportingListDeclarationsResponse < Internal::Types::Model
7
+ field :from_date, -> { String }, optional: false, nullable: false, api_name: "fromDate"
8
+
9
+ field :to_date, -> { String }, optional: false, nullable: false, api_name: "toDate"
10
+
11
+ field :applies_from, -> { String }, optional: false, nullable: false, api_name: "appliesFrom"
12
+
13
+ field :report_to, -> { String }, optional: false, nullable: false, api_name: "reportTo"
14
+
15
+ field :transactions, -> { Internal::Types::Array[Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponseTransactionsItem] }, optional: false, nullable: false
16
+
17
+ field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
18
+
19
+ field :source, -> { String }, optional: false, nullable: false
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ class EuDigitalReportingListDeclarationsResponseTransactionsItem < Internal::Types::Model
7
+ field :direction, -> { Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponseTransactionsItemDirection }, optional: false, nullable: false
8
+
9
+ field :article, -> { Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponseTransactionsItemArticle }, optional: false, nullable: false
10
+
11
+ field :document_id, -> { String }, optional: false, nullable: false, api_name: "documentId"
12
+
13
+ field :document_type, -> { Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponseTransactionsItemDocumentType }, optional: false, nullable: false, api_name: "documentType"
14
+
15
+ field :number, -> { String }, optional: false, nullable: true
16
+
17
+ field :issue_date, -> { String }, optional: false, nullable: false, api_name: "issueDate"
18
+
19
+ field :partner_name, -> { String }, optional: false, nullable: false, api_name: "partnerName"
20
+
21
+ field :supplier_vat_number, -> { String }, optional: false, nullable: true, api_name: "supplierVatNumber"
22
+
23
+ field :customer_vat_number, -> { String }, optional: false, nullable: true, api_name: "customerVatNumber"
24
+
25
+ field :currency, -> { String }, optional: false, nullable: false
26
+
27
+ field :lines, -> { Internal::Types::Array[Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsResponseTransactionsItemLinesItem] }, optional: false, nullable: false
28
+
29
+ field :taxable_amount, -> { String }, optional: false, nullable: false, api_name: "taxableAmount"
30
+
31
+ field :vat_amount, -> { String }, optional: false, nullable: true, api_name: "vatAmount"
32
+
33
+ field :exemption_reference, -> { String }, optional: false, nullable: true, api_name: "exemptionReference"
34
+
35
+ field :reverse_charge, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "reverseCharge"
36
+
37
+ field :corrected_invoice_number, -> { String }, optional: false, nullable: true, api_name: "correctedInvoiceNumber"
38
+
39
+ field :supplier_accounts, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "supplierAccounts"
40
+
41
+ field :report_to, -> { String }, optional: false, nullable: false, api_name: "reportTo"
42
+
43
+ field :deadline, -> { String }, optional: false, nullable: false
44
+
45
+ field :missing, -> { Internal::Types::Array[String] }, optional: false, nullable: false
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Declarations
5
+ module Types
6
+ module EuDigitalReportingListDeclarationsResponseTransactionsItemArticle
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ TWO_HUNDRED_SIXTY_TWO1A = "262(1)(a)"
10
+ TWO_HUNDRED_SIXTY_TWO1B = "262(1)(b)"
11
+ TWO_HUNDRED_SIXTY_TWO1C = "262(1)(c)"
12
+ TWO_HUNDRED_SIXTY_TWO1D = "262(1)(d)"
13
+ end
14
+ end
15
+ end
16
+ end