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
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
module EuDigitalReportingListDeclarationsResponseTransactionsItemDirection
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
SUPPLY = "supply"
|
|
10
|
+
ACQUISITION = "acquisition"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
module EuDigitalReportingListDeclarationsResponseTransactionsItemDocumentType
|
|
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,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class EuDigitalReportingListDeclarationsResponseTransactionsItemLinesItem < 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: false
|
|
12
|
+
|
|
13
|
+
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
14
|
+
|
|
15
|
+
field :taxable_amount, -> { String }, optional: false, nullable: false, api_name: "taxableAmount"
|
|
16
|
+
|
|
17
|
+
field :vat_rate_percent, -> { String }, optional: false, nullable: false, api_name: "vatRatePercent"
|
|
18
|
+
|
|
19
|
+
field :vat_amount, -> { String }, optional: false, nullable: false, api_name: "vatAmount"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class EuOwnGoodsTransfersComputeDeclarationsRequest < Internal::Types::Model
|
|
7
|
+
field :year, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :month, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class EuOwnGoodsTransfersComputeDeclarationsResponse < Internal::Types::Model
|
|
7
|
+
field :period_year, -> { Integer }, optional: false, nullable: false, api_name: "periodYear"
|
|
8
|
+
|
|
9
|
+
field :period_month, -> { Integer }, optional: false, nullable: false, api_name: "periodMonth"
|
|
10
|
+
|
|
11
|
+
field :from_date, -> { String }, optional: false, nullable: false, api_name: "fromDate"
|
|
12
|
+
|
|
13
|
+
field :to_date, -> { String }, optional: false, nullable: false, api_name: "toDate"
|
|
14
|
+
|
|
15
|
+
field :due_date, -> { String }, optional: false, nullable: false, api_name: "dueDate"
|
|
16
|
+
|
|
17
|
+
field :member_state_of_identification, -> { String }, optional: false, nullable: false, api_name: "memberStateOfIdentification"
|
|
18
|
+
|
|
19
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :rows, -> { Internal::Types::Array[Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsResponseRowsItem] }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :total, -> { String }, optional: false, nullable: false
|
|
24
|
+
|
|
25
|
+
field :transfers, -> { Internal::Types::Array[Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsResponseTransfersItem] }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
28
|
+
|
|
29
|
+
field :source, -> { String }, optional: false, nullable: false
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class EuOwnGoodsTransfersComputeDeclarationsResponseRowsItem < Internal::Types::Model
|
|
7
|
+
field :destination_country_code, -> { String }, optional: false, nullable: false, api_name: "destinationCountryCode"
|
|
8
|
+
|
|
9
|
+
field :dispatch_country_code, -> { String }, optional: false, nullable: false, api_name: "dispatchCountryCode"
|
|
10
|
+
|
|
11
|
+
field :taxable_amount, -> { String }, optional: false, nullable: false, api_name: "taxableAmount"
|
|
12
|
+
|
|
13
|
+
field :transfers, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class EuOwnGoodsTransfersComputeDeclarationsResponseTransfersItem < Internal::Types::Model
|
|
7
|
+
field :movement_id, -> { String }, optional: false, nullable: false, api_name: "movementId"
|
|
8
|
+
|
|
9
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :item_id, -> { String }, optional: false, nullable: false, api_name: "itemId"
|
|
12
|
+
|
|
13
|
+
field :item_name, -> { String }, optional: false, nullable: false, api_name: "itemName"
|
|
14
|
+
|
|
15
|
+
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :cost, -> { String }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :from_country_code, -> { String }, optional: false, nullable: false, api_name: "fromCountryCode"
|
|
20
|
+
|
|
21
|
+
field :to_country_code, -> { String }, optional: false, nullable: false, api_name: "toCountryCode"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -138,6 +138,38 @@ module Nordlet
|
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
+
# @param request_options [Hash]
|
|
142
|
+
# @param params [Nordlet::Inventory::Types::WarehousesUpdateInventoryRequest]
|
|
143
|
+
# @option request_options [String] :base_url
|
|
144
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
145
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
146
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
147
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
148
|
+
#
|
|
149
|
+
# @return [Nordlet::Inventory::Types::WarehousesUpdateInventoryResponse]
|
|
150
|
+
def warehouses_update(request_options: {}, **params)
|
|
151
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
152
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
153
|
+
base_url: request_options[:base_url],
|
|
154
|
+
method: "POST",
|
|
155
|
+
path: "v1/inventory/warehouses/update",
|
|
156
|
+
body: Nordlet::Inventory::Types::WarehousesUpdateInventoryRequest.new(params).to_h,
|
|
157
|
+
request_options: request_options
|
|
158
|
+
)
|
|
159
|
+
begin
|
|
160
|
+
response = @client.send(request)
|
|
161
|
+
rescue Net::HTTPRequestTimeout
|
|
162
|
+
raise Nordlet::Errors::TimeoutError
|
|
163
|
+
end
|
|
164
|
+
code = response.code.to_i
|
|
165
|
+
if code.between?(200, 299)
|
|
166
|
+
Nordlet::Inventory::Types::WarehousesUpdateInventoryResponse.load(response.body)
|
|
167
|
+
else
|
|
168
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
169
|
+
raise error_class.new(response.body, code: code)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
141
173
|
# @param request_options [Hash]
|
|
142
174
|
# @param params [Nordlet::Inventory::Types::StockReceiveInventoryRequest]
|
|
143
175
|
# @option request_options [String] :base_url
|
|
@@ -20,6 +20,8 @@ module Nordlet
|
|
|
20
20
|
|
|
21
21
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
22
22
|
|
|
23
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
24
|
+
|
|
23
25
|
field :lines, -> { Internal::Types::Array[Nordlet::Inventory::Types::LandedCostsCreateInventoryResponseLinesItem] }, optional: false, nullable: false
|
|
24
26
|
end
|
|
25
27
|
end
|
|
@@ -20,6 +20,8 @@ module Nordlet
|
|
|
20
20
|
|
|
21
21
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
22
22
|
|
|
23
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
24
|
+
|
|
23
25
|
field :lines, -> { Internal::Types::Array[Nordlet::Inventory::Types::LandedCostsGetInventoryResponseLinesItem] }, optional: false, nullable: false
|
|
24
26
|
end
|
|
25
27
|
end
|
|
@@ -9,6 +9,8 @@ module Nordlet
|
|
|
9
9
|
field :name, -> { String }, optional: false, nullable: false
|
|
10
10
|
|
|
11
11
|
field :is_default, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isDefault"
|
|
12
|
+
|
|
13
|
+
field :country_code, -> { String }, optional: true, nullable: false, api_name: "countryCode"
|
|
12
14
|
end
|
|
13
15
|
end
|
|
14
16
|
end
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefault"
|
|
14
14
|
|
|
15
|
+
field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
|
|
16
|
+
|
|
15
17
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
16
18
|
end
|
|
17
19
|
end
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefault"
|
|
14
14
|
|
|
15
|
+
field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
|
|
16
|
+
|
|
15
17
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
16
18
|
end
|
|
17
19
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Inventory
|
|
5
|
+
module Types
|
|
6
|
+
class WarehousesUpdateInventoryRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :name, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :country_code, -> { String }, optional: true, nullable: false, api_name: "countryCode"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Inventory
|
|
5
|
+
module Types
|
|
6
|
+
class WarehousesUpdateInventoryResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :code, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :name, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :is_default, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefault"
|
|
14
|
+
|
|
15
|
+
field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
|
|
16
|
+
|
|
17
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -8,6 +8,8 @@ module Nordlet
|
|
|
8
8
|
|
|
9
9
|
field :description, -> { String }, optional: true, nullable: false
|
|
10
10
|
|
|
11
|
+
field :currency, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
11
13
|
field :entries, -> { Internal::Types::Array[Nordlet::Ledger::Types::JournalTransactionsCreateLedgerRequestEntriesItem] }, optional: false, nullable: false
|
|
12
14
|
end
|
|
13
15
|
end
|
|
@@ -33,6 +33,14 @@ module Nordlet
|
|
|
33
33
|
ASSETS_DISPOSAL_LOSS = "assets.disposalLoss"
|
|
34
34
|
ASSETS_DISPOSAL_PROCEEDS = "assets.disposalProceeds"
|
|
35
35
|
CASH_ADVANCES = "cash.advances"
|
|
36
|
+
SECURITIES_INVESTMENTS = "securities.investments"
|
|
37
|
+
SECURITIES_GAIN = "securities.gain"
|
|
38
|
+
SECURITIES_LOSS = "securities.loss"
|
|
39
|
+
SECURITIES_DIVIDEND_INCOME = "securities.dividendIncome"
|
|
40
|
+
SECURITIES_WITHHOLDING_TAX = "securities.withholdingTax"
|
|
41
|
+
SECURITIES_INTEREST_INCOME = "securities.interestIncome"
|
|
42
|
+
SECURITIES_INTEREST_EXPENSE = "securities.interestExpense"
|
|
43
|
+
SECURITIES_FEES = "securities.fees"
|
|
36
44
|
CLOSING_RETAINED_EARNINGS = "closing.retainedEarnings"
|
|
37
45
|
end
|
|
38
46
|
end
|
|
@@ -52,10 +52,6 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
|
|
54
54
|
|
|
55
|
-
field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
|
|
56
|
-
|
|
57
|
-
field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
|
|
58
|
-
|
|
59
55
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
|
|
60
56
|
|
|
61
57
|
field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
|
|
@@ -58,10 +58,6 @@ module Nordlet
|
|
|
58
58
|
|
|
59
59
|
field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
|
|
60
60
|
|
|
61
|
-
field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
|
|
62
|
-
|
|
63
|
-
field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
|
|
64
|
-
|
|
65
61
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
|
|
66
62
|
|
|
67
63
|
field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
|
|
@@ -52,10 +52,6 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
|
|
54
54
|
|
|
55
|
-
field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
|
|
56
|
-
|
|
57
|
-
field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
|
|
58
|
-
|
|
59
55
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
|
|
60
56
|
|
|
61
57
|
field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
|
|
@@ -58,10 +58,6 @@ module Nordlet
|
|
|
58
58
|
|
|
59
59
|
field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
|
|
60
60
|
|
|
61
|
-
field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
|
|
62
|
-
|
|
63
|
-
field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
|
|
64
|
-
|
|
65
61
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
|
|
66
62
|
|
|
67
63
|
field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
|
|
@@ -58,10 +58,6 @@ module Nordlet
|
|
|
58
58
|
|
|
59
59
|
field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
|
|
60
60
|
|
|
61
|
-
field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
|
|
62
|
-
|
|
63
|
-
field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
|
|
64
|
-
|
|
65
61
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
|
|
66
62
|
|
|
67
63
|
field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
|
|
@@ -58,10 +58,6 @@ module Nordlet
|
|
|
58
58
|
|
|
59
59
|
field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
|
|
60
60
|
|
|
61
|
-
field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
|
|
62
|
-
|
|
63
|
-
field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
|
|
64
|
-
|
|
65
61
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
|
|
66
62
|
|
|
67
63
|
field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
|
|
@@ -54,10 +54,6 @@ module Nordlet
|
|
|
54
54
|
|
|
55
55
|
field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
|
|
56
56
|
|
|
57
|
-
field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
|
|
58
|
-
|
|
59
|
-
field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
|
|
60
|
-
|
|
61
57
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
|
|
62
58
|
|
|
63
59
|
field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
|
|
@@ -58,10 +58,6 @@ module Nordlet
|
|
|
58
58
|
|
|
59
59
|
field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
|
|
60
60
|
|
|
61
|
-
field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
|
|
62
|
-
|
|
63
|
-
field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
|
|
64
|
-
|
|
65
61
|
field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
|
|
66
62
|
|
|
67
63
|
field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
32
32
|
|
|
33
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
34
|
+
|
|
33
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
34
36
|
|
|
35
37
|
field :notes, -> { String }, optional: false, nullable: true
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
32
32
|
|
|
33
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
34
|
+
|
|
33
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
34
36
|
|
|
35
37
|
field :notes, -> { String }, optional: false, nullable: true
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
32
32
|
|
|
33
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
34
|
+
|
|
33
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
34
36
|
|
|
35
37
|
field :notes, -> { String }, optional: false, nullable: true
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
32
32
|
|
|
33
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
34
|
+
|
|
33
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
34
36
|
|
|
35
37
|
field :notes, -> { String }, optional: false, nullable: true
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
32
32
|
|
|
33
|
+
field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
|
|
34
|
+
|
|
33
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
34
36
|
|
|
35
37
|
field :notes, -> { String }, optional: false, nullable: true
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Peppol
|
|
5
|
+
class Client
|
|
6
|
+
# @param client [Nordlet::Internal::Http::RawClient]
|
|
7
|
+
#
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize(client:)
|
|
10
|
+
@client = client
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# Look a receiver up on the Peppol network (SML and SMP) and say which Peppol BIS Billing 3.0 documents it
|
|
14
|
+
# accepts. Give `partnerId` to look up a partner by its Peppol ID, VAT code or registration code, or
|
|
15
|
+
# `participantId` as "<scheme>:<identifier>". Works without an access point.
|
|
16
|
+
#
|
|
17
|
+
# @param request_options [Hash]
|
|
18
|
+
# @param params [Nordlet::Peppol::Types::ParticipantsLookupPeppolRequest]
|
|
19
|
+
# @option request_options [String] :base_url
|
|
20
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
21
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
22
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
23
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
24
|
+
#
|
|
25
|
+
# @return [Nordlet::Peppol::Types::ParticipantsLookupPeppolResponse]
|
|
26
|
+
def participants_lookup(request_options: {}, **params)
|
|
27
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
28
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
29
|
+
base_url: request_options[:base_url],
|
|
30
|
+
method: "POST",
|
|
31
|
+
path: "v1/peppol/participants/lookup",
|
|
32
|
+
body: Nordlet::Peppol::Types::ParticipantsLookupPeppolRequest.new(params).to_h,
|
|
33
|
+
request_options: request_options
|
|
34
|
+
)
|
|
35
|
+
begin
|
|
36
|
+
response = @client.send(request)
|
|
37
|
+
rescue Net::HTTPRequestTimeout
|
|
38
|
+
raise Nordlet::Errors::TimeoutError
|
|
39
|
+
end
|
|
40
|
+
code = response.code.to_i
|
|
41
|
+
if code.between?(200, 299)
|
|
42
|
+
Nordlet::Peppol::Types::ParticipantsLookupPeppolResponse.load(response.body)
|
|
43
|
+
else
|
|
44
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
45
|
+
raise error_class.new(response.body, code: code)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# @param request_options [Hash]
|
|
50
|
+
# @param params [Hash]
|
|
51
|
+
# @option request_options [String] :base_url
|
|
52
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
53
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
54
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
55
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
56
|
+
# @option params [Nordlet::Peppol::Types::WebhooksPeppolRequestProvider] :provider
|
|
57
|
+
# @option params [String] :company_id
|
|
58
|
+
#
|
|
59
|
+
# @return [Nordlet::Peppol::Types::WebhooksPeppolResponse]
|
|
60
|
+
def webhooks(request_options: {}, **params)
|
|
61
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
62
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
63
|
+
base_url: request_options[:base_url],
|
|
64
|
+
method: "POST",
|
|
65
|
+
path: "v1/peppol/webhooks/#{URI.encode_uri_component(params[:provider].to_s)}/#{URI.encode_uri_component(params[:company_id].to_s)}",
|
|
66
|
+
request_options: request_options
|
|
67
|
+
)
|
|
68
|
+
begin
|
|
69
|
+
response = @client.send(request)
|
|
70
|
+
rescue Net::HTTPRequestTimeout
|
|
71
|
+
raise Nordlet::Errors::TimeoutError
|
|
72
|
+
end
|
|
73
|
+
code = response.code.to_i
|
|
74
|
+
if code.between?(200, 299)
|
|
75
|
+
Nordlet::Peppol::Types::WebhooksPeppolResponse.load(response.body)
|
|
76
|
+
else
|
|
77
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
78
|
+
raise error_class.new(response.body, code: code)
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Peppol
|
|
5
|
+
module Types
|
|
6
|
+
class ParticipantsLookupPeppolRequest < Internal::Types::Model
|
|
7
|
+
field :partner_id, -> { String }, optional: true, nullable: false, api_name: "partnerId"
|
|
8
|
+
|
|
9
|
+
field :participant_id, -> { String }, optional: true, nullable: false, api_name: "participantId"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Peppol
|
|
5
|
+
module Types
|
|
6
|
+
class ParticipantsLookupPeppolResponse < Internal::Types::Model
|
|
7
|
+
field :participant_id, -> { String }, optional: false, nullable: false, api_name: "participantId"
|
|
8
|
+
|
|
9
|
+
field :registered, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :smp_url, -> { String }, optional: false, nullable: true, api_name: "smpUrl"
|
|
12
|
+
|
|
13
|
+
field :access_point_url, -> { String }, optional: false, nullable: true, api_name: "accessPointUrl"
|
|
14
|
+
|
|
15
|
+
field :accepts_invoice, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "acceptsInvoice"
|
|
16
|
+
|
|
17
|
+
field :accepts_credit_note, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "acceptsCreditNote"
|
|
18
|
+
|
|
19
|
+
field :accepts_cii, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "acceptsCii"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Peppol
|
|
5
|
+
module Types
|
|
6
|
+
class WebhooksPeppolRequest < Internal::Types::Model
|
|
7
|
+
field :provider, -> { Nordlet::Peppol::Types::WebhooksPeppolRequestProvider }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :company_id, -> { String }, optional: false, nullable: false, api_name: "companyId"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Peppol
|
|
5
|
+
module Types
|
|
6
|
+
module WebhooksPeppolRequestProvider
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
RECOMMAND = "recommand"
|
|
10
|
+
STORECOVE = "storecove"
|
|
11
|
+
E_INVOICE_BE = "e-invoice-be"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|