nordlet 0.6.9 → 0.6.11
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 +42 -0
- data/lib/nordlet/account/types/companies_context_account_request.rb +9 -0
- data/lib/nordlet/account/types/companies_context_account_response.rb +23 -0
- data/lib/nordlet/account/types/companies_context_account_response_bank_accounts_item.rb +23 -0
- data/lib/nordlet/account/types/companies_context_account_response_filings_item.rb +27 -0
- data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings.rb +17 -0
- data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings_operation.rb +13 -0
- data/lib/nordlet/account/types/companies_context_account_response_payroll.rb +15 -0
- data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item.rb +17 -0
- data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item_kind.rb +15 -0
- data/lib/nordlet/account/types/companies_context_account_response_periods.rb +13 -0
- data/lib/nordlet/account/types/companies_context_account_response_periods_locked_item.rb +13 -0
- data/lib/nordlet/account/types/companies_context_account_response_periods_open_item.rb +13 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile.rb +95 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile_accounts_kept_by.rb +14 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +17 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile_status.rb +15 -0
- data/lib/nordlet/account/types/companies_context_account_response_profile_vat_period.rb +17 -0
- data/lib/nordlet/account/types/companies_context_account_response_vat_types_used_item.rb +19 -0
- data/lib/nordlet/agreements/client.rb +3 -1
- data/lib/nordlet/assets/client.rb +9 -2
- data/lib/nordlet/assets/types/assets_create_assets_response.rb +2 -0
- data/lib/nordlet/assets/types/assets_dispose_assets_request.rb +2 -0
- data/lib/nordlet/assets/types/assets_dispose_assets_response.rb +2 -0
- data/lib/nordlet/assets/types/assets_get_assets_response.rb +2 -0
- data/lib/nordlet/assets/types/assets_input_vat_assets_response.rb +2 -0
- data/lib/nordlet/assets/types/assets_list_assets_response_rows_item.rb +2 -0
- data/lib/nordlet/assets/types/assets_modernize_assets_response.rb +2 -0
- data/lib/nordlet/assets/types/assets_update_assets_response.rb +2 -0
- data/lib/nordlet/audit/client.rb +3 -2
- data/lib/nordlet/bank/client.rb +40 -26
- data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
- data/lib/nordlet/calendar/client.rb +6 -1
- data/lib/nordlet/calendar/types/create_calendar_response.rb +2 -0
- data/lib/nordlet/calendar/types/create_calendar_response_correction.rb +17 -0
- data/lib/nordlet/calendar/types/create_calendar_response_correction_optional_item.rb +16 -0
- data/lib/nordlet/calendar/types/create_calendar_response_correction_reason_codes_item.rb +13 -0
- data/lib/nordlet/calendar/types/create_calendar_response_correction_required_item.rb +16 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +4 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submission_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +4 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submissions_item_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/get_calendar_response.rb +2 -0
- data/lib/nordlet/calendar/types/get_calendar_response_correction.rb +17 -0
- data/lib/nordlet/calendar/types/get_calendar_response_correction_optional_item.rb +16 -0
- data/lib/nordlet/calendar/types/get_calendar_response_correction_reason_codes_item.rb +13 -0
- data/lib/nordlet/calendar/types/get_calendar_response_correction_required_item.rb +16 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +4 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submission_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +4 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submissions_item_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item.rb +2 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction.rb +17 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_optional_item.rb +16 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_reason_codes_item.rb +13 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_required_item.rb +16 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +4 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +4 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/submit_calendar_request.rb +4 -0
- data/lib/nordlet/calendar/types/submit_calendar_request_correction.rb +17 -0
- data/lib/nordlet/calendar/types/submit_calendar_response.rb +4 -0
- data/lib/nordlet/calendar/types/submit_calendar_response_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/update_calendar_response.rb +2 -0
- data/lib/nordlet/calendar/types/update_calendar_response_correction.rb +17 -0
- data/lib/nordlet/calendar/types/update_calendar_response_correction_optional_item.rb +16 -0
- data/lib/nordlet/calendar/types/update_calendar_response_correction_reason_codes_item.rb +13 -0
- data/lib/nordlet/calendar/types/update_calendar_response_correction_required_item.rb +16 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +4 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submission_correction_input.rb +17 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +4 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submissions_item_correction_input.rb +17 -0
- data/lib/nordlet/cash/client.rb +7 -5
- data/lib/nordlet/catalog/client.rb +3 -2
- data/lib/nordlet/client.rb +5 -0
- data/lib/nordlet/declarations/client.rb +154 -1
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +4 -0
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_correction_input.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response.rb +15 -0
- data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response_changes_item.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +4 -0
- data/lib/nordlet/declarations/types/submissions_create_declarations_response_correction_input.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +8 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_input.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_optional_item.rb +16 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_reason_codes_item.rb +13 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_required_item.rb +16 -0
- data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +4 -0
- data/lib/nordlet/declarations/types/submissions_mark_declarations_response_correction_input.rb +17 -0
- data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +4 -0
- data/lib/nordlet/declarations/types/submissions_retry_declarations_response_correction_input.rb +17 -0
- data/lib/nordlet/declarations/types/vat_prorata_get_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/vat_prorata_get_declarations_response.rb +13 -0
- data/lib/nordlet/declarations/types/vat_prorata_list_declarations_request.rb +9 -0
- data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response.rb +11 -0
- data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response_rows_item.rb +13 -0
- data/lib/nordlet/declarations/types/vat_prorata_set_declarations_request.rb +13 -0
- data/lib/nordlet/declarations/types/vat_prorata_set_declarations_response.rb +13 -0
- data/lib/nordlet/document_series/client.rb +2 -1
- data/lib/nordlet/files/client.rb +2 -2
- data/lib/nordlet/fleet/client.rb +3 -1
- data/lib/nordlet/hr/client.rb +10 -5
- data/lib/nordlet/inventory/client.rb +14 -6
- data/lib/nordlet/inventory/types/stock_receive_inventory_request.rb +2 -0
- data/lib/nordlet/inventory/types/stock_receive_inventory_response.rb +4 -0
- data/lib/nordlet/inventory/types/stock_receive_inventory_response_warnings_item.rb +15 -0
- data/lib/nordlet/leads/client.rb +2 -1
- data/lib/nordlet/ledger/client.rb +176 -10
- data/lib/nordlet/ledger/types/accruals_create_ledger_request.rb +15 -0
- data/lib/nordlet/ledger/types/accruals_create_ledger_request_lines_item.rb +19 -0
- data/lib/nordlet/ledger/types/accruals_create_ledger_response.rb +17 -0
- data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_request.rb +13 -0
- data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_response.rb +13 -0
- data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_request.rb +11 -0
- data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response.rb +25 -0
- data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item.rb +19 -0
- data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item_kind.rb +15 -0
- data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request_entries_item.rb +2 -0
- data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response_entries_item.rb +2 -0
- data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +7 -0
- data/lib/nordlet/ledger/types/tax_provision_post_ledger_request.rb +13 -0
- data/lib/nordlet/ledger/types/tax_provision_post_ledger_response.rb +17 -0
- data/lib/nordlet/migration/client.rb +5 -1
- data/lib/nordlet/operation_types/client.rb +4 -1
- data/lib/nordlet/partners/client.rb +14 -10
- data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
- data/lib/nordlet/payroll/client.rb +24 -19
- data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +4 -0
- data/lib/nordlet/platform_sellers/client.rb +3 -1
- data/lib/nordlet/production/client.rb +4 -2
- data/lib/nordlet/projects/client.rb +3 -2
- data/lib/nordlet/public/types/invoices_get_public_response_status.rb +1 -0
- data/lib/nordlet/purchases/client.rb +26 -13
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +2 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +2 -0
- data/lib/nordlet/reference/client.rb +4 -1
- data/lib/nordlet/review/client.rb +55 -0
- data/lib/nordlet/review/types/queue_list_review_request.rb +9 -0
- data/lib/nordlet/review/types/queue_list_review_response.rb +13 -0
- data/lib/nordlet/review/types/queue_list_review_response_items_item.rb +19 -0
- data/lib/nordlet/review/types/queue_list_review_response_items_item_kind.rb +16 -0
- data/lib/nordlet/sales/client.rb +65 -17
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_request.rb +13 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +149 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item.rb +61 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_payment_status.rb +15 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_status.rb +15 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_type.rb +16 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence.rb +25 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_location.rb +13 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_partner.rb +17 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rate_table.rb +17 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rates_item.rb +15 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_scheme.rb +15 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_vies.rb +23 -0
- data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +21 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response_status.rb +1 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +1 -0
- data/lib/nordlet/transport/client.rb +2 -1
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +3 -0
- data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +3 -0
- data/lib/nordlet.rb +96 -0
- data/reference.md +1259 -481
- metadata +98 -2
|
@@ -32,6 +32,8 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :can_amend, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canAmend"
|
|
34
34
|
|
|
35
|
+
field :correction, -> { Nordlet::Calendar::Types::UpdateCalendarResponseCorrection }, optional: false, nullable: true
|
|
36
|
+
|
|
35
37
|
field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload"
|
|
36
38
|
|
|
37
39
|
field :automated, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCalendarResponseCorrection < Internal::Types::Model
|
|
7
|
+
field :required, -> { Internal::Types::Array[Nordlet::Calendar::Types::UpdateCalendarResponseCorrectionRequiredItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :optional, -> { Internal::Types::Array[Nordlet::Calendar::Types::UpdateCalendarResponseCorrectionOptionalItem] }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :reason_codes, -> { Internal::Types::Array[Nordlet::Calendar::Types::UpdateCalendarResponseCorrectionReasonCodesItem] }, optional: false, nullable: false, api_name: "reasonCodes"
|
|
12
|
+
|
|
13
|
+
field :carry, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
module UpdateCalendarResponseCorrectionOptionalItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
REASON = "reason"
|
|
10
|
+
REASON_CODE = "reasonCode"
|
|
11
|
+
AUTHORITY_REFERENCE = "authorityReference"
|
|
12
|
+
DISCOVERED_ON = "discoveredOn"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCalendarResponseCorrectionReasonCodesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
module UpdateCalendarResponseCorrectionRequiredItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
REASON = "reason"
|
|
10
|
+
REASON_CODE = "reasonCode"
|
|
11
|
+
AUTHORITY_REFERENCE = "authorityReference"
|
|
12
|
+
DISCOVERED_ON = "discoveredOn"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Calendar::Types::UpdateCalendarResponseSubmissionCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCalendarResponseSubmissionCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Calendar::Types::UpdateCalendarResponseSubmissionsItemCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Calendar
|
|
5
|
+
module Types
|
|
6
|
+
class UpdateCalendarResponseSubmissionsItemCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
data/lib/nordlet/cash/client.rb
CHANGED
|
@@ -91,7 +91,8 @@ module Nordlet
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# Lists cash orders. Filterable by `type`, `date`, `partnerId`, `employeeId`, `fullNumber` and `amount`; sortable
|
|
94
|
-
# by `date`, `fullNumber`, `createdAt` and `
|
|
94
|
+
# by `date`, `fullNumber`, `createdAt`, `amount`, `type`, `purpose`, `counterAccountCode` and `counterpartyName`
|
|
95
|
+
# (the name of the partner, else the name of the employee).
|
|
95
96
|
#
|
|
96
97
|
# @param request_options [Hash]
|
|
97
98
|
# @param params [Nordlet::Cash::Types::OrdersListCashRequest]
|
|
@@ -233,8 +234,8 @@ module Nordlet
|
|
|
233
234
|
end
|
|
234
235
|
end
|
|
235
236
|
|
|
236
|
-
# Lists expense reports without their lines. Filterable by `employeeId` and `
|
|
237
|
-
# `number
|
|
237
|
+
# Lists expense reports without their lines. Filterable by `employeeId`, `date` and `number`; sortable by `date`,
|
|
238
|
+
# `number`, `total` and `employeeName` (the first and last name of the employee).
|
|
238
239
|
#
|
|
239
240
|
# @param request_options [Hash]
|
|
240
241
|
# @param params [Nordlet::Cash::Types::ExpenseReportsListCashRequest]
|
|
@@ -269,8 +270,9 @@ module Nordlet
|
|
|
269
270
|
end
|
|
270
271
|
|
|
271
272
|
# Returns, per employee, the cash advances issued to them (disbursements posted to the `cash.advances` account
|
|
272
|
-
# with the employee set
|
|
273
|
-
# reports and the open balance (issued less returned less
|
|
273
|
+
# with the employee set, and bank payments matched to their expense reports), the amounts returned (receipts on
|
|
274
|
+
# the same account), the total settled by expense reports and the open balance (issued less returned less
|
|
275
|
+
# settled).
|
|
274
276
|
#
|
|
275
277
|
# @param request_options [Hash]
|
|
276
278
|
# @param params [Nordlet::Cash::Types::AdvanceHoldersBalancesCashRequest]
|
|
@@ -156,8 +156,9 @@ module Nordlet
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# List the active items. Filterable: name, code, barcode, type, vatClassifierCode, groupId, kindId, externalId,
|
|
159
|
-
# manufacturer, department. Sortable: name, code,
|
|
160
|
-
# Rows carry no components; `catalog/items/get`
|
|
159
|
+
# manufacturer, department. Sortable: name, code, type, unit, vatRatePercent, createdAt, updatedAt,
|
|
160
|
+
# salePriceExclVat, purchasePriceExclVat; default name ascending. Rows carry no components; `catalog/items/get`
|
|
161
|
+
# returns them.
|
|
161
162
|
#
|
|
162
163
|
# @param request_options [Hash]
|
|
163
164
|
# @param params [Nordlet::Catalog::Types::ItemsListCatalogRequest]
|
data/lib/nordlet/client.rb
CHANGED
|
@@ -93,6 +93,11 @@ module Nordlet
|
|
|
93
93
|
@migration ||= Nordlet::Migration::Client.new(client: @raw_client)
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
# @return [Nordlet::Review::Client]
|
|
97
|
+
def review
|
|
98
|
+
@review ||= Nordlet::Review::Client.new(client: @raw_client)
|
|
99
|
+
end
|
|
100
|
+
|
|
96
101
|
# @return [Nordlet::Assets::Client]
|
|
97
102
|
def assets
|
|
98
103
|
@assets ||= Nordlet::Assets::Client.new(client: @raw_client)
|
|
@@ -1503,6 +1503,113 @@ module Nordlet
|
|
|
1503
1503
|
end
|
|
1504
1504
|
end
|
|
1505
1505
|
|
|
1506
|
+
# Sets the provisional pro-rata percentage of the company for a fiscal year (the year in which it ends, by the
|
|
1507
|
+
# company's fiscal year end month). Purchase lines on a VAT type marked pro-rata (`prorata`) deduct that share of
|
|
1508
|
+
# their VAT, book the rest into the line's expense, and the VAT returns declare only the deductible part. Without
|
|
1509
|
+
# a percentage for the year such a line deducts 100 % and `purchases/invoices/register` answers the warning
|
|
1510
|
+
# `prorata_not_set`. Setting it again replaces the percentage for documents registered afterwards; documents
|
|
1511
|
+
# already registered are not changed and the year-end adjustment is not built.
|
|
1512
|
+
#
|
|
1513
|
+
# @param request_options [Hash]
|
|
1514
|
+
# @param params [Nordlet::Declarations::Types::VatProrataSetDeclarationsRequest]
|
|
1515
|
+
# @option request_options [String] :base_url
|
|
1516
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
1517
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
1518
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
1519
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
1520
|
+
#
|
|
1521
|
+
# @return [Nordlet::Declarations::Types::VatProrataSetDeclarationsResponse]
|
|
1522
|
+
def vat_prorata_set(request_options: {}, **params)
|
|
1523
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
1524
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
1525
|
+
base_url: request_options[:base_url],
|
|
1526
|
+
method: "POST",
|
|
1527
|
+
path: "v1/declarations/vat-prorata/set",
|
|
1528
|
+
body: Nordlet::Declarations::Types::VatProrataSetDeclarationsRequest.new(params).to_h,
|
|
1529
|
+
request_options: request_options
|
|
1530
|
+
)
|
|
1531
|
+
begin
|
|
1532
|
+
response = @client.send(request)
|
|
1533
|
+
rescue Net::HTTPRequestTimeout
|
|
1534
|
+
raise Nordlet::Errors::TimeoutError
|
|
1535
|
+
end
|
|
1536
|
+
code = response.code.to_i
|
|
1537
|
+
if code.between?(200, 299)
|
|
1538
|
+
Nordlet::Declarations::Types::VatProrataSetDeclarationsResponse.load(response.body)
|
|
1539
|
+
else
|
|
1540
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
1541
|
+
raise error_class.new(response.body, code: code)
|
|
1542
|
+
end
|
|
1543
|
+
end
|
|
1544
|
+
|
|
1545
|
+
# Answers the percentage set with `declarations/vat-prorata/set` for the fiscal year; 404 when none is set.
|
|
1546
|
+
#
|
|
1547
|
+
# @param request_options [Hash]
|
|
1548
|
+
# @param params [Nordlet::Declarations::Types::VatProrataGetDeclarationsRequest]
|
|
1549
|
+
# @option request_options [String] :base_url
|
|
1550
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
1551
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
1552
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
1553
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
1554
|
+
#
|
|
1555
|
+
# @return [Nordlet::Declarations::Types::VatProrataGetDeclarationsResponse]
|
|
1556
|
+
def vat_prorata_get(request_options: {}, **params)
|
|
1557
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
1558
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
1559
|
+
base_url: request_options[:base_url],
|
|
1560
|
+
method: "POST",
|
|
1561
|
+
path: "v1/declarations/vat-prorata/get",
|
|
1562
|
+
body: Nordlet::Declarations::Types::VatProrataGetDeclarationsRequest.new(params).to_h,
|
|
1563
|
+
request_options: request_options
|
|
1564
|
+
)
|
|
1565
|
+
begin
|
|
1566
|
+
response = @client.send(request)
|
|
1567
|
+
rescue Net::HTTPRequestTimeout
|
|
1568
|
+
raise Nordlet::Errors::TimeoutError
|
|
1569
|
+
end
|
|
1570
|
+
code = response.code.to_i
|
|
1571
|
+
if code.between?(200, 299)
|
|
1572
|
+
Nordlet::Declarations::Types::VatProrataGetDeclarationsResponse.load(response.body)
|
|
1573
|
+
else
|
|
1574
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
1575
|
+
raise error_class.new(response.body, code: code)
|
|
1576
|
+
end
|
|
1577
|
+
end
|
|
1578
|
+
|
|
1579
|
+
# Lists the percentages set with `declarations/vat-prorata/set`, oldest fiscal year first.
|
|
1580
|
+
#
|
|
1581
|
+
# @param request_options [Hash]
|
|
1582
|
+
# @param params [Nordlet::Declarations::Types::VatProrataListDeclarationsRequest]
|
|
1583
|
+
# @option request_options [String] :base_url
|
|
1584
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
1585
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
1586
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
1587
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
1588
|
+
#
|
|
1589
|
+
# @return [Nordlet::Declarations::Types::VatProrataListDeclarationsResponse]
|
|
1590
|
+
def vat_prorata_list(request_options: {}, **params)
|
|
1591
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
1592
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
1593
|
+
base_url: request_options[:base_url],
|
|
1594
|
+
method: "POST",
|
|
1595
|
+
path: "v1/declarations/vat-prorata/list",
|
|
1596
|
+
body: Nordlet::Declarations::Types::VatProrataListDeclarationsRequest.new(params).to_h,
|
|
1597
|
+
request_options: request_options
|
|
1598
|
+
)
|
|
1599
|
+
begin
|
|
1600
|
+
response = @client.send(request)
|
|
1601
|
+
rescue Net::HTTPRequestTimeout
|
|
1602
|
+
raise Nordlet::Errors::TimeoutError
|
|
1603
|
+
end
|
|
1604
|
+
code = response.code.to_i
|
|
1605
|
+
if code.between?(200, 299)
|
|
1606
|
+
Nordlet::Declarations::Types::VatProrataListDeclarationsResponse.load(response.body)
|
|
1607
|
+
else
|
|
1608
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
1609
|
+
raise error_class.new(response.body, code: code)
|
|
1610
|
+
end
|
|
1611
|
+
end
|
|
1612
|
+
|
|
1506
1613
|
# Whether the general meeting adopted the annual accounts and on which date, the date the accounts were prepared,
|
|
1507
1614
|
# and which directors signed them. The annual accounts filed with the trade register are built from these facts.
|
|
1508
1615
|
#
|
|
@@ -3391,6 +3498,49 @@ module Nordlet
|
|
|
3391
3498
|
end
|
|
3392
3499
|
end
|
|
3393
3500
|
|
|
3501
|
+
# Builds the file of a submitted or accepted submission again from the current data, the way it was built for that
|
|
3502
|
+
# submission, and compares it with the file that was filed. `needed` is false when the two carry the same data: a
|
|
3503
|
+
# correction would file the same return again. `changes` lists what differs, at most 500 entries (`changeCount`
|
|
3504
|
+
# counts them all): for an XML file each element or attribute by its path below the root element (`field`), for
|
|
3505
|
+
# another text file each line that is only in the filed file or only in the new one (`line`, its line number in
|
|
3506
|
+
# that file); `filed` and `current` are the two values, null where the field or line is missing on that side.
|
|
3507
|
+
# Dates and times of the moment a file was built (ISO date-times, and the dates of both builds written as
|
|
3508
|
+
# YYYY-MM-DD, YYYYMMDD, DD.MM.YYYY or DDMMYYYY) are not counted as differences. A ZIP or PDF file is compared byte
|
|
3509
|
+
# by byte and lists no `changes`. Answers 422 for a submission that is not submitted or accepted, whose deadline
|
|
3510
|
+
# Nordlet cannot correct, or that has no stored file.
|
|
3511
|
+
#
|
|
3512
|
+
# @param request_options [Hash]
|
|
3513
|
+
# @param params [Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsRequest]
|
|
3514
|
+
# @option request_options [String] :base_url
|
|
3515
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
3516
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
3517
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
3518
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
3519
|
+
#
|
|
3520
|
+
# @return [Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsResponse]
|
|
3521
|
+
def submissions_correction_preview(request_options: {}, **params)
|
|
3522
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
3523
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
3524
|
+
base_url: request_options[:base_url],
|
|
3525
|
+
method: "POST",
|
|
3526
|
+
path: "v1/declarations/submissions/correction-preview",
|
|
3527
|
+
body: Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsRequest.new(params).to_h,
|
|
3528
|
+
request_options: request_options
|
|
3529
|
+
)
|
|
3530
|
+
begin
|
|
3531
|
+
response = @client.send(request)
|
|
3532
|
+
rescue Net::HTTPRequestTimeout
|
|
3533
|
+
raise Nordlet::Errors::TimeoutError
|
|
3534
|
+
end
|
|
3535
|
+
code = response.code.to_i
|
|
3536
|
+
if code.between?(200, 299)
|
|
3537
|
+
Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsResponse.load(response.body)
|
|
3538
|
+
else
|
|
3539
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
3540
|
+
raise error_class.new(response.body, code: code)
|
|
3541
|
+
end
|
|
3542
|
+
end
|
|
3543
|
+
|
|
3394
3544
|
# Builds the Lithuanian i.SAF register file of a month (`dataType` F both registers, S sale invoices only, P
|
|
3395
3545
|
# purchase invoices only), stores it and creates a submission in status `generated` for the obligation `lt-isaf`,
|
|
3396
3546
|
# the only obligation accepted. The XML alone comes from `declarations/lt/isaf/generate`; the submission is moved
|
|
@@ -3465,7 +3615,10 @@ module Nordlet
|
|
|
3465
3615
|
end
|
|
3466
3616
|
|
|
3467
3617
|
# Lists the declaration submissions of the company, newest first, filterable by `obligation`, `status`,
|
|
3468
|
-
# `periodYear` and `periodMonth` and sortable by `createdAt`
|
|
3618
|
+
# `periodYear` and `periodMonth` and sortable by `createdAt`, `periodYear`, `obligation`, `period` (the year, then
|
|
3619
|
+
# the month), `fileName`, `status` and `externalRef`. `canAmend` is true on the newest submitted or accepted send
|
|
3620
|
+
# of a period (per document for a deadline filed as one document per person) whose filing can be corrected;
|
|
3621
|
+
# `correction` names the fields `calendar/submit` with `amend: true` takes for it.
|
|
3469
3622
|
#
|
|
3470
3623
|
# @param request_options [Hash]
|
|
3471
3624
|
# @param params [Nordlet::Declarations::Types::SubmissionsListDeclarationsRequest]
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Declarations::Types::SubmissionsConfirmDeclarationsResponseCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_correction_input.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsConfirmDeclarationsResponseCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsCorrectionPreviewDeclarationsResponse < Internal::Types::Model
|
|
7
|
+
field :needed, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :change_count, -> { Integer }, optional: false, nullable: false, api_name: "changeCount"
|
|
10
|
+
|
|
11
|
+
field :changes, -> { Internal::Types::Array[Nordlet::Declarations::Types::SubmissionsCorrectionPreviewDeclarationsResponseChangesItem] }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsCorrectionPreviewDeclarationsResponseChangesItem < Internal::Types::Model
|
|
7
|
+
field :field, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :line, -> { Integer }, optional: false, nullable: true
|
|
10
|
+
|
|
11
|
+
field :filed, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :current, -> { String }, optional: false, nullable: true
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Declarations::Types::SubmissionsCreateDeclarationsResponseCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
data/lib/nordlet/declarations/types/submissions_create_declarations_response_correction_input.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsCreateDeclarationsResponseCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Declarations::Types::SubmissionsListDeclarationsResponseRowsItemCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
|
@@ -65,6 +69,10 @@ module Nordlet
|
|
|
65
69
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
66
70
|
|
|
67
71
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
72
|
+
|
|
73
|
+
field :can_amend, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canAmend"
|
|
74
|
+
|
|
75
|
+
field :correction, -> { Nordlet::Declarations::Types::SubmissionsListDeclarationsResponseRowsItemCorrection }, optional: false, nullable: true
|
|
68
76
|
end
|
|
69
77
|
end
|
|
70
78
|
end
|
data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsListDeclarationsResponseRowsItemCorrection < Internal::Types::Model
|
|
7
|
+
field :required, -> { Internal::Types::Array[Nordlet::Declarations::Types::SubmissionsListDeclarationsResponseRowsItemCorrectionRequiredItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :optional, -> { Internal::Types::Array[Nordlet::Declarations::Types::SubmissionsListDeclarationsResponseRowsItemCorrectionOptionalItem] }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :reason_codes, -> { Internal::Types::Array[Nordlet::Declarations::Types::SubmissionsListDeclarationsResponseRowsItemCorrectionReasonCodesItem] }, optional: false, nullable: false, api_name: "reasonCodes"
|
|
12
|
+
|
|
13
|
+
field :carry, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsListDeclarationsResponseRowsItemCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
module SubmissionsListDeclarationsResponseRowsItemCorrectionOptionalItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
REASON = "reason"
|
|
10
|
+
REASON_CODE = "reasonCode"
|
|
11
|
+
AUTHORITY_REFERENCE = "authorityReference"
|
|
12
|
+
DISCOVERED_ON = "discoveredOn"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsListDeclarationsResponseRowsItemCorrectionReasonCodesItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :label, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
module SubmissionsListDeclarationsResponseRowsItemCorrectionRequiredItem
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
REASON = "reason"
|
|
10
|
+
REASON_CODE = "reasonCode"
|
|
11
|
+
AUTHORITY_REFERENCE = "authorityReference"
|
|
12
|
+
DISCOVERED_ON = "discoveredOn"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Declarations::Types::SubmissionsMarkDeclarationsResponseCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|
data/lib/nordlet/declarations/types/submissions_mark_declarations_response_correction_input.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Declarations
|
|
5
|
+
module Types
|
|
6
|
+
class SubmissionsMarkDeclarationsResponseCorrectionInput < Internal::Types::Model
|
|
7
|
+
field :reason, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
|
|
10
|
+
|
|
11
|
+
field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
|
|
12
|
+
|
|
13
|
+
field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -32,6 +32,10 @@ module Nordlet
|
|
|
32
32
|
|
|
33
33
|
field :amendment, -> { Integer }, optional: false, nullable: false
|
|
34
34
|
|
|
35
|
+
field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
|
|
36
|
+
|
|
37
|
+
field :correction_input, -> { Nordlet::Declarations::Types::SubmissionsRetryDeclarationsResponseCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
|
|
38
|
+
|
|
35
39
|
field :origin, -> { String }, optional: false, nullable: false
|
|
36
40
|
|
|
37
41
|
field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
|