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.
- checksums.yaml +4 -4
- data/lib/nordlet/account/types/me_account_response_billing.rb +6 -0
- data/lib/nordlet/bank/client.rb +96 -0
- data/lib/nordlet/bank/types/accounts_create_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/accounts_create_bank_request_type.rb +15 -0
- data/lib/nordlet/bank/types/accounts_create_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/accounts_create_bank_response_type.rb +15 -0
- data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_type.rb +15 -0
- data/lib/nordlet/bank/types/accounts_update_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/accounts_update_bank_request_type.rb +15 -0
- data/lib/nordlet/bank/types/accounts_update_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/accounts_update_bank_response_type.rb +15 -0
- data/lib/nordlet/bank/types/securities_get_bank_request.rb +11 -0
- data/lib/nordlet/bank/types/securities_get_bank_response.rb +35 -0
- data/lib/nordlet/bank/types/securities_get_bank_response_operations_item.rb +51 -0
- data/lib/nordlet/bank/types/securities_get_bank_response_operations_item_status.rb +14 -0
- data/lib/nordlet/bank/types/securities_import_bank_request.rb +15 -0
- data/lib/nordlet/bank/types/securities_import_bank_response.rb +33 -0
- data/lib/nordlet/bank/types/securities_list_bank_request.rb +19 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item.rb +15 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_op.rb +18 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value.rb +19 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_sort_item.rb +13 -0
- data/lib/nordlet/bank/types/securities_list_bank_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/bank/types/securities_list_bank_response.rb +21 -0
- data/lib/nordlet/bank/types/securities_list_bank_response_rows_item.rb +33 -0
- data/lib/nordlet/bank/types/settlements_commission_bank_response.rb +8 -0
- data/lib/nordlet/bank/types/settlements_get_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/settlements_get_bank_response_lines_item.rb +8 -0
- data/lib/nordlet/bank/types/settlements_import_bank_response_batches_item.rb +6 -0
- data/lib/nordlet/bank/types/settlements_link_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/settlements_list_bank_response_rows_item.rb +6 -0
- data/lib/nordlet/bank/types/settlements_match_bank_response.rb +8 -0
- data/lib/nordlet/bank/types/settlements_post_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/settlements_post_bank_response_summary.rb +2 -0
- data/lib/nordlet/bank/types/settlements_unlink_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
- data/lib/nordlet/bank/types/transactions_match_many_bank_request_allocations_item_document_type.rb +1 -0
- data/lib/nordlet/bank/types/transactions_record_bank_request_document_type.rb +1 -0
- data/lib/nordlet/bank/types/transactions_suggest_matches_bank_response_suggestions_item_document_type.rb +1 -0
- data/lib/nordlet/billing/client.rb +192 -0
- data/lib/nordlet/billing/types/account_get_billing_response.rb +10 -0
- data/lib/nordlet/billing/types/account_get_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_get_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_plans_value.rb +2 -2
- data/lib/nordlet/billing/types/account_set_account_type_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_request_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_request.rb +13 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +10 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_plans_value.rb +2 -2
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +13 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +15 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_response.rb +13 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_request.rb +11 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +49 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +27 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
- data/lib/nordlet/billing/types/topup_create_billing_request_return_to.rb +14 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_metric.rb +1 -0
- data/lib/nordlet/capture/client.rb +5 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request.rb +6 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +35 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item_quantity.rb +15 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response.rb +2 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_capture.rb +2 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction.rb +4 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction_document_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_capture_extraction_opposite_lines_item.rb +25 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +65 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +45 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_payment_status.rb +15 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +14 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_extract_capture_response.rb +2 -0
- data/lib/nordlet/capture/types/documents_extract_capture_response_extraction.rb +4 -0
- data/lib/nordlet/capture/types/documents_extract_capture_response_extraction_document_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_extract_capture_response_extraction_opposite_lines_item.rb +25 -0
- data/lib/nordlet/capture/types/documents_get_capture_response.rb +2 -0
- data/lib/nordlet/capture/types/documents_get_capture_response_extraction.rb +4 -0
- data/lib/nordlet/capture/types/documents_get_capture_response_extraction_document_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_get_capture_response_extraction_opposite_lines_item.rb +25 -0
- data/lib/nordlet/capture/types/documents_list_capture_response_rows_item.rb +2 -0
- data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction.rb +4 -0
- data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction_document_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction_opposite_lines_item.rb +25 -0
- data/lib/nordlet/capture/types/documents_upload_capture_response.rb +2 -0
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +4 -0
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_document_type.rb +14 -0
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +25 -0
- data/lib/nordlet/client.rb +10 -0
- data/lib/nordlet/declarations/client.rb +133 -1
- data/lib/nordlet/declarations/types/eu_dac7preview_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/eu_dac7preview_declarations_response.rb +27 -0
- data/lib/nordlet/declarations/types/eu_dac7preview_declarations_response_sellers_item.rb +23 -0
- data/lib/nordlet/declarations/types/eu_dac7xml_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/eu_dac7xml_declarations_response.rb +17 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response.rb +23 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item.rb +49 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_article.rb +16 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_direction.rb +14 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_document_type.rb +14 -0
- data/lib/nordlet/declarations/types/eu_digital_reporting_list_declarations_response_transactions_item_lines_item.rb +23 -0
- data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response.rb +33 -0
- data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response_rows_item.rb +17 -0
- data/lib/nordlet/declarations/types/eu_own_goods_transfers_compute_declarations_response_transfers_item.rb +25 -0
- data/lib/nordlet/inventory/client.rb +32 -0
- data/lib/nordlet/inventory/types/landed_costs_create_inventory_response.rb +2 -0
- data/lib/nordlet/inventory/types/landed_costs_get_inventory_response.rb +2 -0
- data/lib/nordlet/inventory/types/warehouses_create_inventory_request.rb +2 -0
- data/lib/nordlet/inventory/types/warehouses_create_inventory_response.rb +2 -0
- data/lib/nordlet/inventory/types/warehouses_list_inventory_response_rows_item.rb +2 -0
- data/lib/nordlet/inventory/types/warehouses_update_inventory_request.rb +15 -0
- data/lib/nordlet/inventory/types/warehouses_update_inventory_response.rb +21 -0
- data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request.rb +2 -0
- data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +8 -0
- data/lib/nordlet/partners/types/create_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/create_partners_response.rb +0 -4
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +0 -4
- data/lib/nordlet/partners/types/get_partners_response.rb +0 -4
- data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +0 -4
- data/lib/nordlet/partners/types/update_partners_request.rb +0 -4
- data/lib/nordlet/partners/types/update_partners_response.rb +0 -4
- data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +2 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +2 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +2 -0
- data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +2 -0
- data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +2 -0
- data/lib/nordlet/peppol/client.rb +83 -0
- data/lib/nordlet/peppol/types/participants_lookup_peppol_request.rb +13 -0
- data/lib/nordlet/peppol/types/participants_lookup_peppol_response.rb +23 -0
- data/lib/nordlet/peppol/types/webhooks_peppol_request.rb +13 -0
- data/lib/nordlet/peppol/types/webhooks_peppol_request_provider.rb +15 -0
- data/lib/nordlet/peppol/types/webhooks_peppol_response.rb +11 -0
- data/lib/nordlet/platform_sellers/client.rb +177 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request.rb +47 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item.rb +31 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_activity.rb +16 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_property_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_activities_item_property_type.rb +22 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_request_tax_residences_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response.rb +53 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item.rb +33 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_activity.rb +16 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_property_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_activities_item_property_type.rb +22 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/create_platform_sellers_response_tax_residences_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/delete_platform_sellers_request.rb +11 -0
- data/lib/nordlet/platform_sellers/types/delete_platform_sellers_response.rb +13 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_request.rb +11 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response.rb +53 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item.rb +33 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_activity.rb +16 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_property_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_activities_item_property_type.rb +22 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/get_platform_sellers_response_tax_residences_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request.rb +19 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item.rb +15 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_op.rb +18 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_value.rb +19 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_sort_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_response.rb +21 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item.rb +51 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/list_platform_sellers_response_rows_item_tax_residences_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request.rb +49 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item.rb +31 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_activity.rb +16 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_property_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_activities_item_property_type.rb +22 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_request_tax_residences_item.rb +13 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response.rb +53 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item.rb +33 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_activity.rb +16 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_property_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_activities_item_property_type.rb +22 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_address.rb +21 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_kind.rb +14 -0
- data/lib/nordlet/platform_sellers/types/update_platform_sellers_response_tax_residences_item.rb +13 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_request.rb +2 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +12 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_request_goods_kind.rb +14 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_request_service_kind.rb +14 -0
- data/lib/nordlet/reports/types/online_sales_reports_response_rows_item.rb +2 -0
- data/lib/nordlet/sales/client.rb +205 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request.rb +57 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_delete_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_delete_sales_response.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request.rb +19 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request.rb +59 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +21 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response.rb +63 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_document_type.rb +14 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +25 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_supply_type.rb +15 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_request.rb +2 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +10 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_peppol_send_sales_response.rb +4 -0
- data/lib/nordlet/sales/types/invoices_peppol_send_sales_response_status.rb +16 -0
- data/lib/nordlet/sales/types/invoices_peppol_status_sales_request.rb +11 -0
- data/lib/nordlet/sales/types/invoices_peppol_status_sales_response.rb +17 -0
- data/lib/nordlet/sales/types/invoices_peppol_status_sales_response_status.rb +16 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +12 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response.rb +12 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +4 -0
- data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +4 -0
- data/lib/nordlet.rb +216 -0
- data/reference.md +5692 -3356
- 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
|
data/lib/nordlet/capture/types/documents_extract_capture_response_extraction_opposite_lines_item.rb
ADDED
|
@@ -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
|
data/lib/nordlet/capture/types/documents_get_capture_response_extraction_opposite_lines_item.rb
ADDED
|
@@ -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
|
data/lib/nordlet/capture/types/documents_list_capture_response_rows_item_extraction_document_type.rb
ADDED
|
@@ -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
|
data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb
ADDED
|
@@ -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
|
data/lib/nordlet/client.rb
CHANGED
|
@@ -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,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,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
|