nordlet 0.6.11 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nordlet/account/client.rb +13 -7
- data/lib/nordlet/account/types/companies_context_account_response_profile.rb +11 -1
- data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +2 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile_fiscal_year_week_rule.rb +14 -0
- data/lib/nordlet/account/types/companies_create_account_request.rb +10 -0
- data/lib/nordlet/account/types/companies_create_account_request_address.rb +2 -0
- data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +4 -221
- data/lib/nordlet/account/types/companies_create_account_request_fiscal_year_week_rule.rb +14 -0
- data/lib/nordlet/account/types/companies_profile_account_response.rb +11 -1
- data/lib/nordlet/account/types/companies_profile_account_response_address.rb +2 -0
- data/lib/nordlet/account/types/companies_profile_account_response_fiscal_year_week_rule.rb +14 -0
- data/lib/nordlet/account/types/companies_update_account_request.rb +10 -0
- data/lib/nordlet/account/types/companies_update_account_request_address.rb +2 -0
- data/lib/nordlet/account/types/companies_update_account_request_fiscal_year_week_rule.rb +14 -0
- data/lib/nordlet/account/types/companies_update_account_response.rb +11 -1
- data/lib/nordlet/account/types/companies_update_account_response_address.rb +2 -0
- data/lib/nordlet/account/types/companies_update_account_response_fiscal_year_week_rule.rb +14 -0
- data/lib/nordlet/bank/client.rb +96 -27
- data/lib/nordlet/bank/types/accounts_create_bank_request.rb +6 -0
- data/lib/nordlet/bank/types/accounts_create_bank_request_payment_file_settings.rb +27 -0
- data/lib/nordlet/bank/types/accounts_create_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/accounts_create_bank_response_payment_file_settings.rb +25 -0
- data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item.rb +6 -0
- data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_payment_file_settings.rb +25 -0
- data/lib/nordlet/bank/types/accounts_update_bank_request.rb +6 -0
- data/lib/nordlet/bank/types/accounts_update_bank_request_payment_file_settings.rb +27 -0
- data/lib/nordlet/bank/types/accounts_update_bank_response.rb +6 -0
- data/lib/nordlet/bank/types/accounts_update_bank_response_payment_file_settings.rb +25 -0
- data/lib/nordlet/bank/types/direct_debits_export_bank_response.rb +7 -1
- data/lib/nordlet/bank/types/direct_debits_export_bank_response_format.rb +16 -0
- data/lib/nordlet/bank/types/mandates_auddis_export_bank_request.rb +15 -0
- data/lib/nordlet/bank/types/mandates_auddis_export_bank_response.rb +29 -0
- data/lib/nordlet/bank/types/mandates_auddis_export_bank_response_format.rb +16 -0
- data/lib/nordlet/bank/types/mandates_cancel_bank_response.rb +12 -2
- data/lib/nordlet/bank/types/mandates_cancel_bank_response_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_cancel_bank_response_scheme.rb +3 -0
- data/lib/nordlet/bank/types/mandates_create_bank_request.rb +7 -1
- data/lib/nordlet/bank/types/mandates_create_bank_request_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_create_bank_request_scheme.rb +3 -0
- data/lib/nordlet/bank/types/mandates_create_bank_response.rb +12 -2
- data/lib/nordlet/bank/types/mandates_create_bank_response_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_create_bank_response_scheme.rb +3 -0
- data/lib/nordlet/bank/types/mandates_get_bank_response.rb +12 -2
- data/lib/nordlet/bank/types/mandates_get_bank_response_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_get_bank_response_scheme.rb +3 -0
- data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item.rb +12 -2
- data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_list_bank_response_rows_item_scheme.rb +3 -0
- data/lib/nordlet/bank/types/mandates_update_bank_response.rb +12 -2
- data/lib/nordlet/bank/types/mandates_update_bank_response_account_type.rb +14 -0
- data/lib/nordlet/bank/types/mandates_update_bank_response_scheme.rb +3 -0
- data/lib/nordlet/bank/types/payments_export_bank_response.rb +5 -1
- data/lib/nordlet/bank/types/payments_export_bank_response_format.rb +16 -0
- data/lib/nordlet/calendar/client.rb +2 -1
- data/lib/nordlet/calendar/types/submit_calendar_request.rb +2 -0
- data/lib/nordlet/calendar/types/submit_calendar_request_device.rb +22 -0
- data/lib/nordlet/calendar/types/submit_calendar_request_device_screens_item.rb +17 -0
- data/lib/nordlet/calendar/types/submit_calendar_request_device_window_size.rb +13 -0
- data/lib/nordlet/catalog/client.rb +4 -3
- data/lib/nordlet/declarations/client.rb +642 -3
- data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +1 -1
- data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +1 -1
- data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_request.rb +21 -0
- data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response.rb +29 -0
- data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item.rb +33 -0
- data/lib/nordlet/declarations/types/gb_corporation_tax_compute_declarations_response_parts_item_rate.rb +15 -0
- data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_request.rb +9 -0
- data/lib/nordlet/declarations/types/gb_hmrc_authorize_url_get_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/gb_hmrc_connect_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device.rb +22 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_screens_item.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_request_device_window_size.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item.rb +19 -0
- data/lib/nordlet/declarations/types/gb_vat_liabilities_list_declarations_response_liabilities_item_tax_period.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device.rb +22 -0
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_screens_item.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_request_device_window_size.rb +13 -0
- data/lib/nordlet/declarations/types/{configs_update_declarations_response_fields_item_company_field.rb → gb_vat_obligations_list_declarations_request_status.rb} +3 -3
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_vat_obligations_list_declarations_response_obligations_item.rb +21 -0
- data/lib/nordlet/declarations/types/{configs_list_declarations_response_rows_item_fields_item_company_field.rb → gb_vat_obligations_list_declarations_response_obligations_item_status.rb} +3 -3
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device.rb +22 -0
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_screens_item.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_request_device_window_size.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/gb_vat_payments_list_declarations_response_payments_item.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device.rb +22 -0
- data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_screens_item.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_penalties_get_declarations_request_device_window_size.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device.rb +22 -0
- data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_screens_item.rb +17 -0
- data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_request_device_window_size.rb +13 -0
- data/lib/nordlet/declarations/types/gb_vat_returns_get_declarations_response.rb +29 -0
- data/lib/nordlet/declarations/types/us940get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/us940get_declarations_response.rb +31 -0
- data/lib/nordlet/declarations/types/us940get_declarations_response_part5.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response.rb +47 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_line16.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_line16months_item.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_line5a.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_line5c.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_line5d.rb +13 -0
- data/lib/nordlet/declarations/types/us941get_declarations_response_schedule_b_item.rb +13 -0
- data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request.rb +17 -0
- data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_request_authorized_shares_item.rb +13 -0
- data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response.rb +27 -0
- data/lib/nordlet/declarations/types/us_de_franchise_tax_compute_declarations_response_method.rb +15 -0
- data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_request_activity.rb +24 -0
- data/lib/nordlet/declarations/types/us_de_gross_receipts_get_declarations_response.rb +29 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response.rb +23 -0
- data/lib/nordlet/declarations/types/us_de_unemployment_get_declarations_response_employees_item.rb +19 -0
- data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/us_de_withholding_get_declarations_response.rb +19 -0
- data/lib/nordlet/declarations/types/us_state_sales_get_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response.rb +21 -0
- data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_outside_us.rb +13 -0
- data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_states_item.rb +15 -0
- data/lib/nordlet/declarations/types/us_state_sales_get_declarations_response_without_state.rb +13 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response.rb +15 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item.rb +29 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_box_e.rb +13 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item.rb +15 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response_forms_item_states_item_box15.rb +13 -0
- data/lib/nordlet/declarations/types/us_w2list_declarations_response_w3.rb +31 -0
- data/lib/nordlet/declarations/types/us_workweeks_list_declarations_request.rb +15 -0
- data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response.rb +17 -0
- data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item.rb +21 -0
- data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item.rb +19 -0
- data/lib/nordlet/declarations/types/us_workweeks_list_declarations_response_employees_item_weeks_item_days_item.rb +13 -0
- data/lib/nordlet/hr/client.rb +6 -5
- data/lib/nordlet/hr/types/contracts_create_hr_request.rb +2 -0
- data/lib/nordlet/hr/types/contracts_create_hr_request_pay_frequency.rb +17 -0
- data/lib/nordlet/hr/types/contracts_create_hr_response.rb +2 -0
- data/lib/nordlet/hr/types/contracts_create_hr_response_pay_frequency.rb +17 -0
- data/lib/nordlet/hr/types/contracts_end_hr_response.rb +2 -0
- data/lib/nordlet/hr/types/contracts_end_hr_response_pay_frequency.rb +17 -0
- data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item.rb +2 -0
- data/lib/nordlet/hr/types/contracts_list_hr_response_rows_item_pay_frequency.rb +17 -0
- data/lib/nordlet/hr/types/employees_anonymize_hr_response.rb +6 -0
- data/lib/nordlet/hr/types/employees_anonymize_hr_response_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_anonymize_hr_response_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_create_hr_request.rb +6 -0
- data/lib/nordlet/hr/types/employees_create_hr_request_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_create_hr_request_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_create_hr_response.rb +6 -0
- data/lib/nordlet/hr/types/employees_create_hr_response_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_create_hr_response_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_get_hr_response.rb +6 -0
- data/lib/nordlet/hr/types/employees_get_hr_response_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_get_hr_response_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_list_hr_response_rows_item.rb +6 -0
- data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_list_hr_response_rows_item_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_update_hr_request.rb +6 -0
- data/lib/nordlet/hr/types/employees_update_hr_request_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_update_hr_request_bank_account_type.rb +14 -0
- data/lib/nordlet/hr/types/employees_update_hr_response.rb +6 -0
- data/lib/nordlet/hr/types/employees_update_hr_response_address.rb +2 -0
- data/lib/nordlet/hr/types/employees_update_hr_response_bank_account_type.rb +14 -0
- data/lib/nordlet/partners/client.rb +58 -14
- data/lib/nordlet/partners/types/bank_accounts_create_partners_request.rb +7 -1
- data/lib/nordlet/partners/types/bank_accounts_create_partners_request_account_type.rb +14 -0
- data/lib/nordlet/partners/types/bank_accounts_create_partners_response.rb +7 -1
- data/lib/nordlet/partners/types/bank_accounts_create_partners_response_account_type.rb +14 -0
- data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item.rb +7 -1
- data/lib/nordlet/partners/types/bank_accounts_list_partners_response_rows_item_account_type.rb +14 -0
- data/lib/nordlet/partners/types/bank_accounts_update_partners_request.rb +6 -0
- data/lib/nordlet/partners/types/bank_accounts_update_partners_request_account_type.rb +14 -0
- data/lib/nordlet/partners/types/bank_accounts_update_partners_response.rb +7 -1
- data/lib/nordlet/partners/types/bank_accounts_update_partners_response_account_type.rb +14 -0
- data/lib/nordlet/partners/types/companies_house_get_partners_request.rb +11 -0
- data/lib/nordlet/partners/types/companies_house_get_partners_response.rb +33 -0
- data/lib/nordlet/partners/types/companies_house_get_partners_response_accounting_reference_date.rb +13 -0
- data/lib/nordlet/partners/types/companies_house_get_partners_response_address.rb +21 -0
- data/lib/nordlet/partners/types/companies_house_get_partners_response_address_country_code.rb +13 -0
- data/lib/nordlet/partners/types/create_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_request_address.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_request_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_response.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_response_address.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_response_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_address.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner_address.rb +2 -0
- data/lib/nordlet/partners/types/find_or_create_partners_response_partner_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/get_partners_response.rb +2 -0
- data/lib/nordlet/partners/types/get_partners_response_address.rb +2 -0
- data/lib/nordlet/partners/types/get_partners_response_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +2 -0
- data/lib/nordlet/partners/types/list_partners_response_rows_item_address.rb +2 -0
- data/lib/nordlet/partners/types/list_partners_response_rows_item_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_request.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_request_address.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_request_correspondence_address.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_response.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_response_address.rb +2 -0
- data/lib/nordlet/partners/types/update_partners_response_correspondence_address.rb +2 -0
- data/lib/nordlet/payroll/client.rb +92 -37
- data/lib/nordlet/payroll/types/frequencies_list_payroll_request.rb +9 -0
- data/lib/nordlet/payroll/types/frequencies_list_payroll_response.rb +13 -0
- data/lib/nordlet/payroll/types/frequencies_list_payroll_response_frequencies_item.rb +17 -0
- data/lib/nordlet/payroll/types/payments_export_payroll_response.rb +5 -1
- data/lib/nordlet/payroll/types/payments_export_payroll_response_format.rb +16 -0
- data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +0 -4
- data/lib/nordlet/payroll/types/runs_approve_payroll_response.rb +10 -0
- data/lib/nordlet/payroll/types/runs_approve_payroll_response_frequency.rb +17 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_request.rb +6 -2
- data/lib/nordlet/payroll/types/runs_create_payroll_request_frequency.rb +17 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response.rb +10 -0
- data/lib/nordlet/payroll/types/runs_create_payroll_response_frequency.rb +17 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response.rb +10 -0
- data/lib/nordlet/payroll/types/runs_get_payroll_response_frequency.rb +17 -0
- data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item.rb +10 -0
- data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_frequency.rb +17 -0
- data/lib/nordlet/payroll/types/runs_reverse_payroll_response.rb +10 -0
- data/lib/nordlet/payroll/types/runs_reverse_payroll_response_frequency.rb +17 -0
- data/lib/nordlet/reference/client.rb +14 -8
- data/lib/nordlet/reference/types/exchange_rates_list_reference_response_rows_item.rb +2 -0
- data/lib/nordlet/reference/types/exchange_rates_sync_reference_response.rb +2 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +1 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_response_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response_vat_scheme.rb +1 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +133 -2
- data/reference.md +6936 -5110
- metadata +135 -4
|
@@ -184,6 +184,42 @@ module Nordlet
|
|
|
184
184
|
end
|
|
185
185
|
end
|
|
186
186
|
|
|
187
|
+
# Reads the pay frequencies the company country's payroll engine calculates, the values `payroll/runs/create`
|
|
188
|
+
# takes as `frequency` and `hr/contracts/create` as `payFrequency`. Answers 422 when Nordlet has no payroll engine
|
|
189
|
+
# for the company's country.
|
|
190
|
+
#
|
|
191
|
+
# @param request_options [Hash]
|
|
192
|
+
# @param params [Nordlet::Payroll::Types::FrequenciesListPayrollRequest]
|
|
193
|
+
# @option request_options [String] :base_url
|
|
194
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
195
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
196
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
197
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
198
|
+
#
|
|
199
|
+
# @return [Nordlet::Payroll::Types::FrequenciesListPayrollResponse]
|
|
200
|
+
def frequencies_list(request_options: {}, **params)
|
|
201
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
202
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
203
|
+
base_url: request_options[:base_url],
|
|
204
|
+
method: "POST",
|
|
205
|
+
path: "v1/payroll/frequencies/list",
|
|
206
|
+
body: Nordlet::Payroll::Types::FrequenciesListPayrollRequest.new(params).to_h,
|
|
207
|
+
request_options: request_options
|
|
208
|
+
)
|
|
209
|
+
begin
|
|
210
|
+
response = @client.send(request)
|
|
211
|
+
rescue Net::HTTPRequestTimeout
|
|
212
|
+
raise Nordlet::Errors::TimeoutError
|
|
213
|
+
end
|
|
214
|
+
code = response.code.to_i
|
|
215
|
+
if code.between?(200, 299)
|
|
216
|
+
Nordlet::Payroll::Types::FrequenciesListPayrollResponse.load(response.body)
|
|
217
|
+
else
|
|
218
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
219
|
+
raise error_class.new(response.body, code: code)
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
187
223
|
# Runs the company country's payroll engine once on a taxable base at a date, with the employee settings given in
|
|
188
224
|
# the body instead of an employee record, and returns the allowance, income tax, contributions, components and
|
|
189
225
|
# net; nothing is saved. `payments` passes typed payments to the engine; each `paymentType` must be a code from
|
|
@@ -222,19 +258,27 @@ module Nordlet
|
|
|
222
258
|
end
|
|
223
259
|
end
|
|
224
260
|
|
|
225
|
-
# Creates a draft payroll run for a
|
|
226
|
-
# employee's approved runs of the year
|
|
227
|
-
# (default the last day of the
|
|
228
|
-
#
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
233
|
-
#
|
|
234
|
-
#
|
|
235
|
-
#
|
|
236
|
-
#
|
|
237
|
-
#
|
|
261
|
+
# Creates a draft payroll run for a pay period, computing each line with the company country's payroll engine, the
|
|
262
|
+
# employee's approved runs of the tax year before the period and of the two previous tax years, the timesheets of
|
|
263
|
+
# the period and `payDate` (default the last day of the period). A `monthly` run (the default `frequency`) takes
|
|
264
|
+
# `year` and `month`; a `semimonthly` run takes a `periodStart` on the 1st (to the 15th) or the 16th (to the month
|
|
265
|
+
# end), and a `weekly`, `biweekly` or `four_weekly` run a `periodStart` from which the period runs 7, 14 or 28
|
|
266
|
+
# days. `payroll/frequencies/list` gives the frequencies the company country's engine calculates; the engine also
|
|
267
|
+
# sets the run's `taxYear` and `taxPeriod` (by default the calendar year and the month). A run of a frequency
|
|
268
|
+
# other than monthly gets the year and month of its period end. Without `lines`, every employee whose contract has
|
|
269
|
+
# the run's pay frequency and overlaps the period gets a line, whatever the employee's status: the gross is the
|
|
270
|
+
# contract's salary for one period (a monthly, weekly or yearly salary brought to a year and divided by the
|
|
271
|
+
# periods of the year: 12, 24, 13, 26 or 52) reduced to the paid working days of the contract and the timesheets,
|
|
272
|
+
# unless `grossOverrides` sets it; the per diems of approved business trips ending in the period are added untaxed
|
|
273
|
+
# and the trips linked to the run; for a Lithuanian company the car benefit in kind (`includeNatura`) and the
|
|
274
|
+
# compensation for unused leave of a contract ending in the period are added. The timesheets count only when every
|
|
275
|
+
# month the period touches has one. With `lines`, only the given employees are computed with their gross,
|
|
276
|
+
# additions and deductions, and the per diems of their approved, unlinked business trips ending in the period are
|
|
277
|
+
# added untaxed and the trips linked to the run; a taxable addition may carry a `paymentType` from
|
|
278
|
+
# `payroll/payment-types/list` and `hours`. Answers 422 when the country has no engine or its engine does not
|
|
279
|
+
# calculate the frequency, the period is not given the way its frequency needs, an employee is given twice, has
|
|
280
|
+
# two contracts in the period, has no contract and no gross, or is paid by the hour or day without a gross; 409
|
|
281
|
+
# when a run of the same frequency already covers part of the period or the accounting period is locked.
|
|
238
282
|
#
|
|
239
283
|
# @param request_options [Hash]
|
|
240
284
|
# @param params [Nordlet::Payroll::Types::RunsCreatePayrollRequest]
|
|
@@ -302,9 +346,9 @@ module Nordlet
|
|
|
302
346
|
end
|
|
303
347
|
end
|
|
304
348
|
|
|
305
|
-
# Lists payroll runs without their lines; filterable by `status`, `year
|
|
306
|
-
# `year`, `month`, `period` (the year, then the month), `
|
|
307
|
-
# (the employee plus the employer contributions) and `netTotal`.
|
|
349
|
+
# Lists payroll runs without their lines; filterable by `status`, `year`, `month`, `frequency` and `taxYear`,
|
|
350
|
+
# sortable by `createdAt`, `year`, `month`, `period` (the year, then the month), `periodStart`, `status`,
|
|
351
|
+
# `grossTotal`, `incomeTaxTotal`, `contributions` (the employee plus the employer contributions) and `netTotal`.
|
|
308
352
|
#
|
|
309
353
|
# @param request_options [Hash]
|
|
310
354
|
# @param params [Nordlet::Payroll::Types::RunsListPayrollRequest]
|
|
@@ -373,18 +417,20 @@ module Nordlet
|
|
|
373
417
|
end
|
|
374
418
|
end
|
|
375
419
|
|
|
376
|
-
# Posts the run's journal entry dated the last day of the
|
|
420
|
+
# Posts the run's journal entry dated the last day of the run's period and sets the status to `approved`: the wage
|
|
377
421
|
# expense (net pay, income tax, employee contributions and deductions) and the employer contributions are debited;
|
|
378
422
|
# the net payable, the income tax, the social contributions (on one account, or split between the employee and
|
|
379
423
|
# employer accounts when their codes differ) and the deductions are credited. The accounts default to the payroll
|
|
380
424
|
# accounts of the company's chart template; each can be given per call (`incomeTaxAccountCode` and
|
|
381
|
-
# `socialContributionsAccountCode
|
|
382
|
-
#
|
|
383
|
-
#
|
|
384
|
-
#
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
# `
|
|
425
|
+
# `socialContributionsAccountCode` among them). Answers 409 when the run is not a draft or the accounting period
|
|
426
|
+
# is locked, 422 when the run has no lines or nothing to post, and emits `payroll_run.approved`. For an Irish
|
|
427
|
+
# company with the automation of the `ie-payroll-withholding` deadline switched on, the month's payroll submission
|
|
428
|
+
# is sent at once and a failure is added to the run's `warnings`. For a Lithuanian company the unused leave days a
|
|
429
|
+
# line paid as compensation, recorded per balance year when the run was created, are added to the used days of the
|
|
430
|
+
# leave balances. For a US company whose filing option `usDepositSchedule` is `semiweekly`, the federal tax
|
|
431
|
+
# deposit of the run's pay date is added to the calendar (`us-tax-deposit-semiweekly`, the pay date as period),
|
|
432
|
+
# due on the Wednesday after a Wednesday to Friday payday and the Friday after a Saturday to Tuesday payday, moved
|
|
433
|
+
# past District of Columbia legal holidays. Undo with `payroll/runs/reverse`, pay with `payroll/payments/export`.
|
|
388
434
|
#
|
|
389
435
|
# @param request_options [Hash]
|
|
390
436
|
# @param params [Nordlet::Payroll::Types::RunsApprovePayrollRequest]
|
|
@@ -418,11 +464,13 @@ module Nordlet
|
|
|
418
464
|
end
|
|
419
465
|
end
|
|
420
466
|
|
|
421
|
-
# Posts a journal entry dated the last day of the
|
|
422
|
-
# sets the status to `reversed` with the reason, and releases the business trips the run paid so the
|
|
423
|
-
# picks them up again; the leave days the run marked used as compensation for unused leave are given back
|
|
424
|
-
# leave balances.
|
|
425
|
-
#
|
|
467
|
+
# Posts a journal entry dated the last day of the run's period that mirrors the run's entry (debits and credits
|
|
468
|
+
# swapped), sets the status to `reversed` with the reason, and releases the business trips the run paid so the
|
|
469
|
+
# next run picks them up again; the leave days the run marked used as compensation for unused leave are given back
|
|
470
|
+
# to the leave balances. A US run removes the semiweekly federal tax deposit of its pay date from the calendar
|
|
471
|
+
# unless another approved run has the same pay date. Answers 409 when the run is not approved, when part of it is
|
|
472
|
+
# matched to bank payments (`paidAmount`, unmatch them first) or when the accounting period is locked. Emits
|
|
473
|
+
# `payroll_run.reversed`.
|
|
426
474
|
#
|
|
427
475
|
# @param request_options [Hash]
|
|
428
476
|
# @param params [Nordlet::Payroll::Types::RunsReversePayrollRequest]
|
|
@@ -491,14 +539,21 @@ module Nordlet
|
|
|
491
539
|
end
|
|
492
540
|
end
|
|
493
541
|
|
|
494
|
-
# Builds a
|
|
495
|
-
#
|
|
496
|
-
#
|
|
497
|
-
#
|
|
498
|
-
#
|
|
499
|
-
#
|
|
500
|
-
#
|
|
501
|
-
#
|
|
542
|
+
# Builds a payment file for an approved run: one transfer from the chosen bank account to each employee's account
|
|
543
|
+
# for the line's net when it is positive, with a remittance text in `locale` (default the locale of the calling
|
|
544
|
+
# user) and the run period. The format follows the bank account: a GBP account of a UK company with a sort code
|
|
545
|
+
# and account number gets a Bacs Standard 18 Direct Credit file (needs `paymentFileSettings.serviceUserNumber`;
|
|
546
|
+
# the employee's `bankCode` is the 6-digit sort code and `bankAccountNumber` the 8-digit account number;
|
|
547
|
+
# `executionDate` is the day the pay arrives, a Bacs working day whose processing day is after today, default the
|
|
548
|
+
# earliest), a USD account of a US company with a routing number and account number gets a Nacha ACH file of PPD
|
|
549
|
+
# credits with the entry description PAYROLL (needs `paymentFileSettings.immediateOrigin` and
|
|
550
|
+
# `companyIdentification`; the employee's `bankCode` is the 9-digit routing number, plus `bankAccountNumber` and
|
|
551
|
+
# `bankAccountType`; default `executionDate` the company's current date), and an account with an IBAN gets ISO
|
|
552
|
+
# 20022 pain.001.001.03, a SEPA credit transfer in EUR and a generic pain.001 in other currencies (the employee's
|
|
553
|
+
# IBAN; default `executionDate` the company's current date). Answers 409 when the run is not approved, and 422
|
|
554
|
+
# when the bank account fits no format or is not in the company's base currency, an employee lacks the account
|
|
555
|
+
# details the format needs (`hr/employees/update`) or no line has a positive net. The file is returned in
|
|
556
|
+
# `content`, with `format`, `fileName` and `contentType`; nothing is sent to the bank.
|
|
502
557
|
#
|
|
503
558
|
# @param request_options [Hash]
|
|
504
559
|
# @param params [Nordlet::Payroll::Types::PaymentsExportPayrollRequest]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
class FrequenciesListPayrollResponse < Internal::Types::Model
|
|
7
|
+
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
8
|
+
|
|
9
|
+
field :frequencies, -> { Internal::Types::Array[Nordlet::Payroll::Types::FrequenciesListPayrollResponseFrequenciesItem] }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module FrequenciesListPayrollResponseFrequenciesItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -4,15 +4,19 @@ module Nordlet
|
|
|
4
4
|
module Payroll
|
|
5
5
|
module Types
|
|
6
6
|
class PaymentsExportPayrollResponse < Internal::Types::Model
|
|
7
|
+
field :format, -> { Nordlet::Payroll::Types::PaymentsExportPayrollResponseFormat }, optional: false, nullable: false
|
|
8
|
+
|
|
7
9
|
field :message_id, -> { String }, optional: false, nullable: false, api_name: "messageId"
|
|
8
10
|
|
|
9
11
|
field :file_name, -> { String }, optional: false, nullable: false, api_name: "fileName"
|
|
10
12
|
|
|
13
|
+
field :content_type, -> { String }, optional: false, nullable: false, api_name: "contentType"
|
|
14
|
+
|
|
11
15
|
field :transaction_count, -> { Integer }, optional: false, nullable: false, api_name: "transactionCount"
|
|
12
16
|
|
|
13
17
|
field :control_sum, -> { String }, optional: false, nullable: false, api_name: "controlSum"
|
|
14
18
|
|
|
15
|
-
field :
|
|
19
|
+
field :content, -> { String }, optional: false, nullable: false
|
|
16
20
|
end
|
|
17
21
|
end
|
|
18
22
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module PaymentsExportPayrollResponseFormat
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PAIN00100103 = "pain.001.001.03"
|
|
10
|
+
PAIN00800102 = "pain.008.001.02"
|
|
11
|
+
BACS_STANDARD18 = "bacs-standard-18"
|
|
12
|
+
NACHA = "nacha"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -16,10 +16,6 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :social_contributions_account_code, -> { String }, optional: true, nullable: false, api_name: "socialContributionsAccountCode"
|
|
18
18
|
|
|
19
|
-
field :gpm_account_code, -> { String }, optional: true, nullable: false, api_name: "gpmAccountCode"
|
|
20
|
-
|
|
21
|
-
field :sodra_account_code, -> { String }, optional: true, nullable: false, api_name: "sodraAccountCode"
|
|
22
|
-
|
|
23
19
|
field :employer_social_account_code, -> { String }, optional: true, nullable: false, api_name: "employerSocialAccountCode"
|
|
24
20
|
|
|
25
21
|
field :deduction_account_code, -> { String }, optional: true, nullable: false, api_name: "deductionAccountCode"
|
|
@@ -10,6 +10,16 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsApprovePayrollResponseFrequency }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
16
|
+
|
|
17
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
18
|
+
|
|
19
|
+
field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
|
|
20
|
+
|
|
21
|
+
field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
|
|
22
|
+
|
|
13
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
14
24
|
|
|
15
25
|
field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsApprovePayrollResponseFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -4,9 +4,13 @@ module Nordlet
|
|
|
4
4
|
module Payroll
|
|
5
5
|
module Types
|
|
6
6
|
class RunsCreatePayrollRequest < Internal::Types::Model
|
|
7
|
-
field :
|
|
7
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsCreatePayrollRequestFrequency }, optional: true, nullable: false
|
|
8
8
|
|
|
9
|
-
field :
|
|
9
|
+
field :year, -> { Integer }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :month, -> { Integer }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :period_start, -> { String }, optional: true, nullable: false, api_name: "periodStart"
|
|
10
14
|
|
|
11
15
|
field :include_natura, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "includeNatura"
|
|
12
16
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsCreatePayrollRequestFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,16 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsCreatePayrollResponseFrequency }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
16
|
+
|
|
17
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
18
|
+
|
|
19
|
+
field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
|
|
20
|
+
|
|
21
|
+
field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
|
|
22
|
+
|
|
13
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
14
24
|
|
|
15
25
|
field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsCreatePayrollResponseFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,16 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsGetPayrollResponseFrequency }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
16
|
+
|
|
17
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
18
|
+
|
|
19
|
+
field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
|
|
20
|
+
|
|
21
|
+
field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
|
|
22
|
+
|
|
13
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
14
24
|
|
|
15
25
|
field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsGetPayrollResponseFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,16 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsListPayrollResponseRowsItemFrequency }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
16
|
+
|
|
17
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
18
|
+
|
|
19
|
+
field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
|
|
20
|
+
|
|
21
|
+
field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
|
|
22
|
+
|
|
13
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
14
24
|
|
|
15
25
|
field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsListPayrollResponseRowsItemFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,6 +10,16 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :frequency, -> { Nordlet::Payroll::Types::RunsReversePayrollResponseFrequency }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
16
|
+
|
|
17
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
18
|
+
|
|
19
|
+
field :tax_year, -> { Integer }, optional: false, nullable: false, api_name: "taxYear"
|
|
20
|
+
|
|
21
|
+
field :tax_period, -> { Integer }, optional: false, nullable: true, api_name: "taxPeriod"
|
|
22
|
+
|
|
13
23
|
field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
|
|
14
24
|
|
|
15
25
|
field :pay_date, -> { String }, optional: false, nullable: true, api_name: "payDate"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Payroll
|
|
5
|
+
module Types
|
|
6
|
+
module RunsReversePayrollResponseFrequency
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
SEMIMONTHLY = "semimonthly"
|
|
11
|
+
FOUR_WEEKLY = "four_weekly"
|
|
12
|
+
BIWEEKLY = "biweekly"
|
|
13
|
+
WEEKLY = "weekly"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -10,9 +10,13 @@ module Nordlet
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Fetches the
|
|
14
|
-
#
|
|
15
|
-
#
|
|
13
|
+
# Fetches the official exchange rates for `date` (default: the company's current date) quoted against the
|
|
14
|
+
# company's base currency and stores them in the rate table shared by all companies, replacing the rates already
|
|
15
|
+
# stored for the same base, currency and date. A company that keeps its books in GBP gets the HMRC monthly rates
|
|
16
|
+
# of the month of `date` (units per 1 GBP, dated the first day of the month), one in USD the Federal Reserve H.10
|
|
17
|
+
# rates of the two weeks up to `date` (units per 1 USD), and every other company the euro rates the Bank of
|
|
18
|
+
# Lithuania publishes for `date` (units per 1 EUR). `baseCurrency` in the answer names the base the rates are
|
|
19
|
+
# quoted against. Answers 404 when no rates are published for the date.
|
|
16
20
|
#
|
|
17
21
|
# @param request_options [Hash]
|
|
18
22
|
# @param params [Nordlet::Reference::Types::ExchangeRatesSyncReferenceRequest]
|
|
@@ -46,8 +50,10 @@ module Nordlet
|
|
|
46
50
|
end
|
|
47
51
|
end
|
|
48
52
|
|
|
49
|
-
# Lists the stored
|
|
50
|
-
# `
|
|
53
|
+
# Lists the stored official exchange rates, which are shared by all companies. `rate` is the units of
|
|
54
|
+
# `currencyCode` per one unit of `baseCurrency`: EUR rates come from the Bank of Lithuania, GBP rates from HMRC,
|
|
55
|
+
# USD rates from the Federal Reserve. Filterable by `baseCurrency`, `currencyCode` and `date`; sortable by `date`,
|
|
56
|
+
# `baseCurrency` and `currencyCode`.
|
|
51
57
|
#
|
|
52
58
|
# @param request_options [Hash]
|
|
53
59
|
# @param params [Nordlet::Reference::Types::ExchangeRatesListReferenceRequest]
|
|
@@ -574,9 +580,9 @@ module Nordlet
|
|
|
574
580
|
end
|
|
575
581
|
end
|
|
576
582
|
|
|
577
|
-
# Replace the VAT rate mapping this company uses for one EU country
|
|
578
|
-
#
|
|
579
|
-
# rate classification.
|
|
583
|
+
# Replace the VAT rate mapping this company uses for one EU country, or for a country outside the EEA whose rates
|
|
584
|
+
# come from its VAT types (GB). Pass an empty rates array to drop the overrides and return to the TEDB defaults.
|
|
585
|
+
# Overrides feed rate suggestions (vat/resolve) and OSS/IOSS return rate classification.
|
|
580
586
|
#
|
|
581
587
|
# @param request_options [Hash]
|
|
582
588
|
# @param params [Nordlet::Reference::Types::EuVatRatesSetOverridesReferenceRequest]
|
|
@@ -4,6 +4,8 @@ module Nordlet
|
|
|
4
4
|
module Reference
|
|
5
5
|
module Types
|
|
6
6
|
class ExchangeRatesListReferenceResponseRowsItem < Internal::Types::Model
|
|
7
|
+
field :base_currency, -> { String }, optional: false, nullable: false, api_name: "baseCurrency"
|
|
8
|
+
|
|
7
9
|
field :currency_code, -> { String }, optional: false, nullable: false, api_name: "currencyCode"
|
|
8
10
|
|
|
9
11
|
field :date, -> { String }, optional: false, nullable: false
|
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class ExchangeRatesSyncReferenceResponse < Internal::Types::Model
|
|
7
7
|
field :date, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :base_currency, -> { String }, optional: false, nullable: false, api_name: "baseCurrency"
|
|
10
|
+
|
|
9
11
|
field :imported, -> { Integer }, optional: false, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|