nordlet 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/nordlet/account/types/post_v1account_companies_create_request.rb +2 -0
- data/lib/nordlet/account/types/post_v1account_companies_profile_response.rb +2 -0
- data/lib/nordlet/account/types/post_v1account_companies_update_request.rb +2 -0
- data/lib/nordlet/account/types/post_v1account_companies_update_response.rb +2 -0
- data/lib/nordlet/agreements/client.rb +64 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_request.rb +11 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response_errors_item.rb +13 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response_generated_item.rb +17 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_generate_invoice_request.rb +13 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_generate_invoice_response.rb +17 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_get_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_list_response_rows_item.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_list_response_rows_item_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_request.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_request_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response.rb +2 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_billing_period.rb +15 -0
- data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_items_item.rb +2 -0
- data/lib/nordlet/declarations/client.rb +224 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_request.rb +11 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response.rb +23 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response_current_year.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_distance_sales_threshold_get_response_preceding_year.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response.rb +4 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response_corrections_item.rb +23 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_ioss_compute_response_corrections_total.rb +13 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response.rb +4 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response_corrections_item.rb +23 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_oss_compute_response_corrections_total.rb +13 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_request.rb +13 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_response.rb +25 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_cross_border_report_compute_response_rows_item.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_request.rb +11 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response.rb +31 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_intra_eu.rb +23 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_intra_eu_status.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_preceding_turnover.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_status.rb +17 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_threshold.rb +19 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_threshold_sectors_item.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_threshold_get_response_turnover.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_request.rb +9 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item.rb +23 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item_intra_eu_acquisitions_trigger.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_sme_thresholds_list_response_thresholds_item_sectors_item.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_request.rb +11 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response.rb +25 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_current_year.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_previous_year.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_union_turnover_get_response_status.rb +16 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_request.rb +17 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response.rb +29 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response_boxes_item.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_compute_response_frequency.rb +15 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_request.rb +9 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response.rb +11 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response_packs_item.rb +19 -0
- data/lib/nordlet/declarations/types/post_v1declarations_eu_vat_return_packs_list_response_packs_item_frequency.rb +15 -0
- data/lib/nordlet/ledger/types/post_v1ledger_posting_rules_update_request_rules_item_key.rb +3 -0
- data/lib/nordlet/reference/client.rb +39 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response.rb +2 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response_rows_item.rb +2 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_list_response_rows_item_source.rb +14 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request.rb +13 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request_rates_item.rb +13 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_request_rates_item_category.rb +16 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response.rb +17 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_rows_item.rb +13 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_rows_item_category.rb +16 -0
- data/lib/nordlet/reference/types/post_v1reference_eu_vat_rates_set_overrides_response_source.rb +14 -0
- data/lib/nordlet/reference/types/post_v1reference_vat_resolve_response_scheme.rb +1 -0
- data/lib/nordlet/sales/client.rb +292 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_apply_advance_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item.rb +6 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_response.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_create_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_get_response.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_get_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_issue_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_list_response_rows_item.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_list_response_rows_item_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item.rb +6 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_request_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_response.rb +2 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item_recognition_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_lines_item_recognition_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_invoices_update_response_vat_scheme.rb +1 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_compute_request.rb +11 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_compute_response.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_compute_response_rows_item.rb +25 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request.rb +19 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request_approach.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_modify_request_new_milestones_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_modify_response.rb +23 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_modify_response_approach.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_progress_request.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_progress_response.rb +19 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_run_request.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_run_response.rb +21 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_run_response_trigger.rb +18 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response_rows_item.rb +23 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_runs_list_response_rows_item_trigger.rb +18 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item.rb +33 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_schedules_list_response_rows_item_status.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_summary_request.rb +11 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response.rb +13 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_rows_item.rb +29 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_rows_item_method.rb +16 -0
- data/lib/nordlet/sales/types/post_v1sales_recognition_summary_response_totals.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_op.rb +18 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_value.rb +19 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_sort_item.rb +13 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_response.rb +17 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_list_response_rows_item.rb +27 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_true_up_request.rb +15 -0
- data/lib/nordlet/sales/types/post_v1sales_refund_liability_true_up_response.rb +21 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +124 -0
- data/reference.md +1416 -224
- metadata +126 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f31f4509eb7e025af5f9122cb9d4ec58000dc5a3aa42049b7958bad40b177f8
|
|
4
|
+
data.tar.gz: 31941c0b66d477f403359dda26e702b3463de34d9a22ffc65d76c1540f61ab1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b535ba6eac1f55c6aaea4aca4bd22e1ecf98d4ff30d39f543d37f1f8f5495288d30c74f30b3d9af6fdd60607c6ac42bf13310aa62209d741195d6e2c981632e7
|
|
7
|
+
data.tar.gz: 125b44b7287bac6ebe26ce7ae124abf93edb13d64661679ee94ae1032451d35475a03690c44059042af17aa34e7e22f1ba18d0c5cc83586eeaa0a8b398a35aa7
|
|
@@ -10,6 +10,8 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :vat_code, -> { String }, optional: true, nullable: false, api_name: "vatCode"
|
|
12
12
|
|
|
13
|
+
field :sme_exemption_number, -> { String }, optional: true, nullable: false, api_name: "smeExemptionNumber"
|
|
14
|
+
|
|
13
15
|
field :is_vat_payer, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isVatPayer"
|
|
14
16
|
|
|
15
17
|
field :address, -> { Nordlet::Account::Types::PostV1AccountCompaniesCreateRequestAddress }, optional: true, nullable: false
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :vat_code, -> { String }, optional: false, nullable: true, api_name: "vatCode"
|
|
14
14
|
|
|
15
|
+
field :sme_exemption_number, -> { String }, optional: false, nullable: true, api_name: "smeExemptionNumber"
|
|
16
|
+
|
|
15
17
|
field :is_vat_payer, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isVatPayer"
|
|
16
18
|
|
|
17
19
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
@@ -10,6 +10,8 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :vat_code, -> { String }, optional: true, nullable: false, api_name: "vatCode"
|
|
12
12
|
|
|
13
|
+
field :sme_exemption_number, -> { String }, optional: true, nullable: false, api_name: "smeExemptionNumber"
|
|
14
|
+
|
|
13
15
|
field :is_vat_payer, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isVatPayer"
|
|
14
16
|
|
|
15
17
|
field :address, -> { Nordlet::Account::Types::PostV1AccountCompaniesUpdateRequestAddress }, optional: true, nullable: false
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :vat_code, -> { String }, optional: false, nullable: true, api_name: "vatCode"
|
|
14
14
|
|
|
15
|
+
field :sme_exemption_number, -> { String }, optional: false, nullable: true, api_name: "smeExemptionNumber"
|
|
16
|
+
|
|
15
17
|
field :is_vat_payer, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isVatPayer"
|
|
16
18
|
|
|
17
19
|
field :is_sandbox, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isSandbox"
|
|
@@ -234,6 +234,70 @@ module Nordlet
|
|
|
234
234
|
end
|
|
235
235
|
end
|
|
236
236
|
|
|
237
|
+
# @param request_options [Hash]
|
|
238
|
+
# @param params [Nordlet::Agreements::Types::PostV1AgreementsAgreementsGenerateInvoiceRequest]
|
|
239
|
+
# @option request_options [String] :base_url
|
|
240
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
241
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
242
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
243
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
244
|
+
#
|
|
245
|
+
# @return [Nordlet::Agreements::Types::PostV1AgreementsAgreementsGenerateInvoiceResponse]
|
|
246
|
+
def post_v1agreements_agreements_generate_invoice(request_options: {}, **params)
|
|
247
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
248
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
249
|
+
base_url: request_options[:base_url],
|
|
250
|
+
method: "POST",
|
|
251
|
+
path: "v1/agreements/agreements/generate-invoice",
|
|
252
|
+
body: Nordlet::Agreements::Types::PostV1AgreementsAgreementsGenerateInvoiceRequest.new(params).to_h,
|
|
253
|
+
request_options: request_options
|
|
254
|
+
)
|
|
255
|
+
begin
|
|
256
|
+
response = @client.send(request)
|
|
257
|
+
rescue Net::HTTPRequestTimeout
|
|
258
|
+
raise Nordlet::Errors::TimeoutError
|
|
259
|
+
end
|
|
260
|
+
code = response.code.to_i
|
|
261
|
+
if code.between?(200, 299)
|
|
262
|
+
Nordlet::Agreements::Types::PostV1AgreementsAgreementsGenerateInvoiceResponse.load(response.body)
|
|
263
|
+
else
|
|
264
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
265
|
+
raise error_class.new(response.body, code: code)
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# @param request_options [Hash]
|
|
270
|
+
# @param params [Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunRequest]
|
|
271
|
+
# @option request_options [String] :base_url
|
|
272
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
273
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
274
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
275
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
276
|
+
#
|
|
277
|
+
# @return [Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunResponse]
|
|
278
|
+
def post_v1agreements_agreements_billing_run(request_options: {}, **params)
|
|
279
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
280
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
281
|
+
base_url: request_options[:base_url],
|
|
282
|
+
method: "POST",
|
|
283
|
+
path: "v1/agreements/agreements/billing/run",
|
|
284
|
+
body: Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunRequest.new(params).to_h,
|
|
285
|
+
request_options: request_options
|
|
286
|
+
)
|
|
287
|
+
begin
|
|
288
|
+
response = @client.send(request)
|
|
289
|
+
rescue Net::HTTPRequestTimeout
|
|
290
|
+
raise Nordlet::Errors::TimeoutError
|
|
291
|
+
end
|
|
292
|
+
code = response.code.to_i
|
|
293
|
+
if code.between?(200, 299)
|
|
294
|
+
Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunResponse.load(response.body)
|
|
295
|
+
else
|
|
296
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
297
|
+
raise error_class.new(response.body, code: code)
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
237
301
|
# @param request_options [Hash]
|
|
238
302
|
# @param params [Nordlet::Agreements::Types::PostV1AgreementsInsurancePoliciesCreateRequest]
|
|
239
303
|
# @option request_options [String] :base_url
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsBillingRunRequest < Internal::Types::Model
|
|
7
|
+
field :as_of_date, -> { String }, optional: true, nullable: false, api_name: "asOfDate"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsBillingRunResponse < Internal::Types::Model
|
|
7
|
+
field :generated, -> { Internal::Types::Array[Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunResponseGeneratedItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :expired, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :errors, -> { Internal::Types::Array[Nordlet::Agreements::Types::PostV1AgreementsAgreementsBillingRunResponseErrorsItem] }, optional: false, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_billing_run_response_errors_item.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsBillingRunResponseErrorsItem < Internal::Types::Model
|
|
7
|
+
field :agreement_id, -> { String }, optional: false, nullable: false, api_name: "agreementId"
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, 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 Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsBillingRunResponseGeneratedItem < Internal::Types::Model
|
|
7
|
+
field :agreement_id, -> { String }, optional: false, nullable: false, api_name: "agreementId"
|
|
8
|
+
|
|
9
|
+
field :invoice_id, -> { String }, optional: false, nullable: false, api_name: "invoiceId"
|
|
10
|
+
|
|
11
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
12
|
+
|
|
13
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -20,6 +20,8 @@ module Nordlet
|
|
|
20
20
|
|
|
21
21
|
field :value, -> { String }, optional: true, nullable: false
|
|
22
22
|
|
|
23
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsCreateRequestBillingPeriod }, optional: true, nullable: false, api_name: "billingPeriod"
|
|
24
|
+
|
|
23
25
|
field :currency, -> { String }, optional: true, nullable: false
|
|
24
26
|
|
|
25
27
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsCreateRequestStatus }, optional: true, nullable: false
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_request_billing_period.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsCreateRequestBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -11,6 +11,8 @@ module Nordlet
|
|
|
11
11
|
field :quantity, -> { String }, optional: true, nullable: false
|
|
12
12
|
|
|
13
13
|
field :unit_price, -> { String }, optional: true, nullable: false, api_name: "unitPrice"
|
|
14
|
+
|
|
15
|
+
field :vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "vatRatePercent"
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :value, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsCreateResponseBillingPeriod }, optional: false, nullable: true, api_name: "billingPeriod"
|
|
26
|
+
|
|
25
27
|
field :currency, -> { String }, optional: false, nullable: false
|
|
26
28
|
|
|
27
29
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsCreateResponseStatus }, optional: false, nullable: false
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_billing_period.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsCreateResponseBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_create_response_items_item.rb
CHANGED
|
@@ -13,6 +13,8 @@ module Nordlet
|
|
|
13
13
|
field :quantity, -> { String }, optional: false, nullable: true
|
|
14
14
|
|
|
15
15
|
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
16
|
+
|
|
17
|
+
field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
|
|
16
18
|
end
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsGenerateInvoiceRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :as_of_date, -> { String }, optional: true, nullable: false, api_name: "asOfDate"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1AgreementsAgreementsGenerateInvoiceResponse < Internal::Types::Model
|
|
7
|
+
field :invoice_id, -> { String }, optional: false, nullable: false, api_name: "invoiceId"
|
|
8
|
+
|
|
9
|
+
field :period_start, -> { String }, optional: false, nullable: false, api_name: "periodStart"
|
|
10
|
+
|
|
11
|
+
field :period_end, -> { String }, optional: false, nullable: false, api_name: "periodEnd"
|
|
12
|
+
|
|
13
|
+
field :renewed_end_date, -> { String }, optional: false, nullable: true, api_name: "renewedEndDate"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :value, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsGetResponseBillingPeriod }, optional: false, nullable: true, api_name: "billingPeriod"
|
|
26
|
+
|
|
25
27
|
field :currency, -> { String }, optional: false, nullable: false
|
|
26
28
|
|
|
27
29
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsGetResponseStatus }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsGetResponseBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -13,6 +13,8 @@ module Nordlet
|
|
|
13
13
|
field :quantity, -> { String }, optional: false, nullable: true
|
|
14
14
|
|
|
15
15
|
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
16
|
+
|
|
17
|
+
field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
|
|
16
18
|
end
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :value, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsListResponseRowsItemBillingPeriod }, optional: false, nullable: true, api_name: "billingPeriod"
|
|
26
|
+
|
|
25
27
|
field :currency, -> { String }, optional: false, nullable: false
|
|
26
28
|
|
|
27
29
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsListResponseRowsItemStatus }, optional: false, nullable: false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsListResponseRowsItemBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :value, -> { String }, optional: true, nullable: false
|
|
18
18
|
|
|
19
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsUpdateRequestBillingPeriod }, optional: true, nullable: false, api_name: "billingPeriod"
|
|
20
|
+
|
|
19
21
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsUpdateRequestStatus }, optional: true, nullable: false
|
|
20
22
|
|
|
21
23
|
field :notes, -> { String }, optional: true, nullable: false
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_request_billing_period.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsUpdateRequestBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :value, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :billing_period, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsUpdateResponseBillingPeriod }, optional: false, nullable: true, api_name: "billingPeriod"
|
|
26
|
+
|
|
25
27
|
field :currency, -> { String }, optional: false, nullable: false
|
|
26
28
|
|
|
27
29
|
field :status, -> { Nordlet::Agreements::Types::PostV1AgreementsAgreementsUpdateResponseStatus }, optional: false, nullable: false
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_billing_period.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Agreements
|
|
5
|
+
module Types
|
|
6
|
+
module PostV1AgreementsAgreementsUpdateResponseBillingPeriod
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
MONTHLY = "monthly"
|
|
10
|
+
QUARTERLY = "quarterly"
|
|
11
|
+
ANNUAL = "annual"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/lib/nordlet/agreements/types/post_v1agreements_agreements_update_response_items_item.rb
CHANGED
|
@@ -13,6 +13,8 @@ module Nordlet
|
|
|
13
13
|
field :quantity, -> { String }, optional: false, nullable: true
|
|
14
14
|
|
|
15
15
|
field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
|
|
16
|
+
|
|
17
|
+
field :vat_rate_percent, -> { String }, optional: false, nullable: true, api_name: "vatRatePercent"
|
|
16
18
|
end
|
|
17
19
|
end
|
|
18
20
|
end
|
|
@@ -362,6 +362,230 @@ module Nordlet
|
|
|
362
362
|
end
|
|
363
363
|
end
|
|
364
364
|
|
|
365
|
+
# @param request_options [Hash]
|
|
366
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuDistanceSalesThresholdGetRequest]
|
|
367
|
+
# @option request_options [String] :base_url
|
|
368
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
369
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
370
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
371
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
372
|
+
#
|
|
373
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuDistanceSalesThresholdGetResponse]
|
|
374
|
+
def post_v1declarations_eu_distance_sales_threshold_get(request_options: {}, **params)
|
|
375
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
376
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
377
|
+
base_url: request_options[:base_url],
|
|
378
|
+
method: "POST",
|
|
379
|
+
path: "v1/declarations/eu/distance-sales-threshold/get",
|
|
380
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuDistanceSalesThresholdGetRequest.new(params).to_h,
|
|
381
|
+
request_options: request_options
|
|
382
|
+
)
|
|
383
|
+
begin
|
|
384
|
+
response = @client.send(request)
|
|
385
|
+
rescue Net::HTTPRequestTimeout
|
|
386
|
+
raise Nordlet::Errors::TimeoutError
|
|
387
|
+
end
|
|
388
|
+
code = response.code.to_i
|
|
389
|
+
if code.between?(200, 299)
|
|
390
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuDistanceSalesThresholdGetResponse.load(response.body)
|
|
391
|
+
else
|
|
392
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
393
|
+
raise error_class.new(response.body, code: code)
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# @param request_options [Hash]
|
|
398
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuUnionTurnoverGetRequest]
|
|
399
|
+
# @option request_options [String] :base_url
|
|
400
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
401
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
402
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
403
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
404
|
+
#
|
|
405
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuUnionTurnoverGetResponse]
|
|
406
|
+
def post_v1declarations_eu_union_turnover_get(request_options: {}, **params)
|
|
407
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
408
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
409
|
+
base_url: request_options[:base_url],
|
|
410
|
+
method: "POST",
|
|
411
|
+
path: "v1/declarations/eu/union-turnover/get",
|
|
412
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuUnionTurnoverGetRequest.new(params).to_h,
|
|
413
|
+
request_options: request_options
|
|
414
|
+
)
|
|
415
|
+
begin
|
|
416
|
+
response = @client.send(request)
|
|
417
|
+
rescue Net::HTTPRequestTimeout
|
|
418
|
+
raise Nordlet::Errors::TimeoutError
|
|
419
|
+
end
|
|
420
|
+
code = response.code.to_i
|
|
421
|
+
if code.between?(200, 299)
|
|
422
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuUnionTurnoverGetResponse.load(response.body)
|
|
423
|
+
else
|
|
424
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
425
|
+
raise error_class.new(response.body, code: code)
|
|
426
|
+
end
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# @param request_options [Hash]
|
|
430
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeCrossBorderReportComputeRequest]
|
|
431
|
+
# @option request_options [String] :base_url
|
|
432
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
433
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
434
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
435
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
436
|
+
#
|
|
437
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeCrossBorderReportComputeResponse]
|
|
438
|
+
def post_v1declarations_eu_sme_cross_border_report_compute(request_options: {}, **params)
|
|
439
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
440
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
441
|
+
base_url: request_options[:base_url],
|
|
442
|
+
method: "POST",
|
|
443
|
+
path: "v1/declarations/eu/sme-cross-border-report/compute",
|
|
444
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuSmeCrossBorderReportComputeRequest.new(params).to_h,
|
|
445
|
+
request_options: request_options
|
|
446
|
+
)
|
|
447
|
+
begin
|
|
448
|
+
response = @client.send(request)
|
|
449
|
+
rescue Net::HTTPRequestTimeout
|
|
450
|
+
raise Nordlet::Errors::TimeoutError
|
|
451
|
+
end
|
|
452
|
+
code = response.code.to_i
|
|
453
|
+
if code.between?(200, 299)
|
|
454
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuSmeCrossBorderReportComputeResponse.load(response.body)
|
|
455
|
+
else
|
|
456
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
457
|
+
raise error_class.new(response.body, code: code)
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# @param request_options [Hash]
|
|
462
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdsListRequest]
|
|
463
|
+
# @option request_options [String] :base_url
|
|
464
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
465
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
466
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
467
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
468
|
+
#
|
|
469
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdsListResponse]
|
|
470
|
+
def post_v1declarations_eu_sme_thresholds_list(request_options: {}, **params)
|
|
471
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
472
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
473
|
+
base_url: request_options[:base_url],
|
|
474
|
+
method: "POST",
|
|
475
|
+
path: "v1/declarations/eu/sme-thresholds/list",
|
|
476
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdsListRequest.new(params).to_h,
|
|
477
|
+
request_options: request_options
|
|
478
|
+
)
|
|
479
|
+
begin
|
|
480
|
+
response = @client.send(request)
|
|
481
|
+
rescue Net::HTTPRequestTimeout
|
|
482
|
+
raise Nordlet::Errors::TimeoutError
|
|
483
|
+
end
|
|
484
|
+
code = response.code.to_i
|
|
485
|
+
if code.between?(200, 299)
|
|
486
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdsListResponse.load(response.body)
|
|
487
|
+
else
|
|
488
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
489
|
+
raise error_class.new(response.body, code: code)
|
|
490
|
+
end
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# @param request_options [Hash]
|
|
494
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdGetRequest]
|
|
495
|
+
# @option request_options [String] :base_url
|
|
496
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
497
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
498
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
499
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
500
|
+
#
|
|
501
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdGetResponse]
|
|
502
|
+
def post_v1declarations_eu_sme_threshold_get(request_options: {}, **params)
|
|
503
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
504
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
505
|
+
base_url: request_options[:base_url],
|
|
506
|
+
method: "POST",
|
|
507
|
+
path: "v1/declarations/eu/sme-threshold/get",
|
|
508
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdGetRequest.new(params).to_h,
|
|
509
|
+
request_options: request_options
|
|
510
|
+
)
|
|
511
|
+
begin
|
|
512
|
+
response = @client.send(request)
|
|
513
|
+
rescue Net::HTTPRequestTimeout
|
|
514
|
+
raise Nordlet::Errors::TimeoutError
|
|
515
|
+
end
|
|
516
|
+
code = response.code.to_i
|
|
517
|
+
if code.between?(200, 299)
|
|
518
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuSmeThresholdGetResponse.load(response.body)
|
|
519
|
+
else
|
|
520
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
521
|
+
raise error_class.new(response.body, code: code)
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# @param request_options [Hash]
|
|
526
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnPacksListRequest]
|
|
527
|
+
# @option request_options [String] :base_url
|
|
528
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
529
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
530
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
531
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
532
|
+
#
|
|
533
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnPacksListResponse]
|
|
534
|
+
def post_v1declarations_eu_vat_return_packs_list(request_options: {}, **params)
|
|
535
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
536
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
537
|
+
base_url: request_options[:base_url],
|
|
538
|
+
method: "POST",
|
|
539
|
+
path: "v1/declarations/eu/vat-return/packs/list",
|
|
540
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnPacksListRequest.new(params).to_h,
|
|
541
|
+
request_options: request_options
|
|
542
|
+
)
|
|
543
|
+
begin
|
|
544
|
+
response = @client.send(request)
|
|
545
|
+
rescue Net::HTTPRequestTimeout
|
|
546
|
+
raise Nordlet::Errors::TimeoutError
|
|
547
|
+
end
|
|
548
|
+
code = response.code.to_i
|
|
549
|
+
if code.between?(200, 299)
|
|
550
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnPacksListResponse.load(response.body)
|
|
551
|
+
else
|
|
552
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
553
|
+
raise error_class.new(response.body, code: code)
|
|
554
|
+
end
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# @param request_options [Hash]
|
|
558
|
+
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnComputeRequest]
|
|
559
|
+
# @option request_options [String] :base_url
|
|
560
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
561
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
562
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
563
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
564
|
+
#
|
|
565
|
+
# @return [Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnComputeResponse]
|
|
566
|
+
def post_v1declarations_eu_vat_return_compute(request_options: {}, **params)
|
|
567
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
568
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
569
|
+
base_url: request_options[:base_url],
|
|
570
|
+
method: "POST",
|
|
571
|
+
path: "v1/declarations/eu/vat-return/compute",
|
|
572
|
+
body: Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnComputeRequest.new(params).to_h,
|
|
573
|
+
request_options: request_options
|
|
574
|
+
)
|
|
575
|
+
begin
|
|
576
|
+
response = @client.send(request)
|
|
577
|
+
rescue Net::HTTPRequestTimeout
|
|
578
|
+
raise Nordlet::Errors::TimeoutError
|
|
579
|
+
end
|
|
580
|
+
code = response.code.to_i
|
|
581
|
+
if code.between?(200, 299)
|
|
582
|
+
Nordlet::Declarations::Types::PostV1DeclarationsEuVatReturnComputeResponse.load(response.body)
|
|
583
|
+
else
|
|
584
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
585
|
+
raise error_class.new(response.body, code: code)
|
|
586
|
+
end
|
|
587
|
+
end
|
|
588
|
+
|
|
365
589
|
# @param request_options [Hash]
|
|
366
590
|
# @param params [Nordlet::Declarations::Types::PostV1DeclarationsConfigsListRequest]
|
|
367
591
|
# @option request_options [String] :base_url
|