nordlet 0.6.0 → 0.6.4
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 +133 -16
- data/lib/nordlet/account/types/api_keys_list_account_response_rows_item.rb +0 -2
- data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +1 -0
- data/lib/nordlet/account/types/email_change_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/export_account_response.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item.rb +21 -0
- data/lib/nordlet/account/types/export_account_response_billing_accounts_item_site.rb +14 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item.rb +2 -0
- data/lib/nordlet/account/types/export_account_response_credit_transactions_item_site.rb +14 -0
- data/lib/nordlet/account/types/invites_accept_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/invites_create_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/locale_set_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/login_link_request_account_request_locale.rb +30 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_approve_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_deny_account_response.rb +11 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_request.rb +25 -0
- data/lib/nordlet/account/types/oauth_authorize_describe_account_response.rb +17 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_request_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_create_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_get_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/agreements/types/agreements_update_agreements_response_items_item.rb +2 -0
- data/lib/nordlet/bank/client.rb +23 -19
- data/lib/nordlet/bank/types/import_templates_create_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_create_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_get_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_list_builtin_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/import_templates_update_bank_response.rb +2 -0
- data/lib/nordlet/billing/client.rb +44 -31
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/portal_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/topup_create_billing_request_locale.rb +30 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item.rb +2 -0
- data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_site.rb +14 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +2 -0
- data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +2 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +2 -0
- data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +2 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +2 -0
- data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +2 -0
- data/lib/nordlet/calendar/types/submit_calendar_response.rb +2 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +2 -0
- data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +2 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request_lines_item.rb +4 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_request_opposite_lines_item.rb +4 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_lines_item.rb +8 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb +8 -0
- data/lib/nordlet/cash/client.rb +7 -6
- data/lib/nordlet/catalog/client.rb +145 -2
- data/lib/nordlet/catalog/types/items_create_catalog_response.rb +2 -0
- data/lib/nordlet/catalog/types/items_create_catalog_response_alternative_units_item.rb +21 -0
- data/lib/nordlet/catalog/types/items_get_catalog_response.rb +2 -0
- data/lib/nordlet/catalog/types/items_get_catalog_response_alternative_units_item.rb +21 -0
- data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item.rb +2 -0
- data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item_alternative_units_item.rb +21 -0
- data/lib/nordlet/catalog/types/items_units_create_catalog_request.rb +21 -0
- data/lib/nordlet/catalog/types/items_units_create_catalog_response.rb +27 -0
- data/lib/nordlet/catalog/types/items_units_delete_catalog_request.rb +11 -0
- data/lib/nordlet/catalog/types/items_units_delete_catalog_response.rb +11 -0
- data/lib/nordlet/catalog/types/items_units_list_catalog_request.rb +11 -0
- data/lib/nordlet/catalog/types/items_units_list_catalog_response.rb +11 -0
- data/lib/nordlet/catalog/types/items_units_list_catalog_response_rows_item.rb +27 -0
- data/lib/nordlet/catalog/types/items_units_update_catalog_request.rb +19 -0
- data/lib/nordlet/catalog/types/items_units_update_catalog_response.rb +27 -0
- data/lib/nordlet/catalog/types/items_update_catalog_response.rb +2 -0
- data/lib/nordlet/catalog/types/items_update_catalog_response_alternative_units_item.rb +21 -0
- data/lib/nordlet/catalog/types/units_create_catalog_request.rb +2 -0
- data/lib/nordlet/catalog/types/units_create_catalog_response.rb +2 -0
- data/lib/nordlet/catalog/types/units_list_catalog_response_rows_item.rb +2 -0
- data/lib/nordlet/catalog/types/units_options_catalog_request_locale.rb +30 -0
- data/lib/nordlet/catalog/types/units_update_catalog_request.rb +2 -0
- data/lib/nordlet/catalog/types/units_update_catalog_response.rb +2 -0
- data/lib/nordlet/declarations/client.rb +46 -5
- data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request.rb +2 -0
- data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item.rb +25 -0
- data/lib/nordlet/declarations/types/lt_ivaz_amend_declarations_request_corrections_item_lines_item.rb +13 -0
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_request.rb +11 -0
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +71 -0
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_environment.rb +14 -0
- data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_status.rb +16 -0
- data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +2 -0
- data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +2 -0
- data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +2 -0
- data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +2 -0
- data/lib/nordlet/ecommerce/client.rb +12 -9
- data/lib/nordlet/ecommerce/types/orders_cancel_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_request_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_create_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_fulfill_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_get_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/ecommerce/types/orders_reserve_ecommerce_response_lines_item.rb +2 -0
- data/lib/nordlet/fleet/client.rb +8 -4
- data/lib/nordlet/fleet/types/vehicles_create_fleet_request.rb +2 -0
- data/lib/nordlet/fleet/types/vehicles_create_fleet_response.rb +2 -0
- data/lib/nordlet/fleet/types/vehicles_get_fleet_response.rb +2 -0
- data/lib/nordlet/fleet/types/vehicles_list_fleet_response_rows_item.rb +2 -0
- data/lib/nordlet/fleet/types/vehicles_update_fleet_request.rb +2 -0
- data/lib/nordlet/fleet/types/vehicles_update_fleet_response.rb +2 -0
- data/lib/nordlet/inventory/client.rb +28 -23
- data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +2 -0
- data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/debt_reminders_preview_partners_response_rows_item_locale.rb +30 -0
- data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +1 -0
- data/lib/nordlet/payroll/client.rb +16 -12
- data/lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb +30 -0
- data/lib/nordlet/pos/client.rb +126 -9
- data/lib/nordlet/pos/types/refunds_create_pos_request.rb +17 -0
- data/lib/nordlet/pos/types/refunds_create_pos_request_lines_item.rb +13 -0
- data/lib/nordlet/pos/types/refunds_create_pos_response.rb +33 -0
- data/lib/nordlet/pos/types/refunds_create_pos_response_lines_item.rb +23 -0
- data/lib/nordlet/pos/types/refunds_get_pos_request.rb +11 -0
- data/lib/nordlet/pos/types/refunds_get_pos_response.rb +33 -0
- data/lib/nordlet/pos/types/refunds_get_pos_response_lines_item.rb +23 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request.rb +19 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item.rb +15 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_op.rb +18 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value.rb +19 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_filter_item_value_three_item.rb +15 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item.rb +13 -0
- data/lib/nordlet/pos/types/refunds_list_pos_request_sort_item_dir.rb +14 -0
- data/lib/nordlet/pos/types/refunds_list_pos_response.rb +21 -0
- data/lib/nordlet/pos/types/refunds_list_pos_response_rows_item.rb +31 -0
- data/lib/nordlet/production/client.rb +20 -14
- data/lib/nordlet/production/types/maintenance_cancel_production_response.rb +2 -0
- data/lib/nordlet/production/types/maintenance_complete_production_request.rb +2 -0
- data/lib/nordlet/production/types/maintenance_complete_production_response.rb +2 -0
- data/lib/nordlet/production/types/maintenance_create_production_request.rb +2 -0
- data/lib/nordlet/production/types/maintenance_create_production_response.rb +2 -0
- data/lib/nordlet/production/types/maintenance_list_production_response_rows_item.rb +2 -0
- data/lib/nordlet/public/client.rb +6 -5
- data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
- data/lib/nordlet/purchases/client.rb +12 -9
- data/lib/nordlet/purchases/types/invoices_create_purchases_request_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_lines_item.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_get_purchases_response_lines_item.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_lines_item.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_request_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_response_lines_item.rb +8 -0
- data/lib/nordlet/purchases/types/orders_approve_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_cancel_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_close_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_create_purchases_request_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_create_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_get_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_reject_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_submit_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_update_purchases_request_lines_item.rb +4 -0
- data/lib/nordlet/purchases/types/orders_update_purchases_response_lines_item.rb +4 -0
- data/lib/nordlet/reference/client.rb +5 -2
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item.rb +8 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb +13 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_scheme.rb +21 -0
- data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_side.rb +15 -0
- data/lib/nordlet/reports/client.rb +3 -3
- data/lib/nordlet/sales/client.rb +29 -21
- data/lib/nordlet/sales/types/acts_create_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/acts_get_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/acts_issue_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/acts_pdf_sales_request_locale.rb +30 -0
- data/lib/nordlet/sales/types/acts_update_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +2 -0
- data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +4 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
- data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +1 -0
- data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +1 -0
- data/lib/nordlet/transport/types/waybills_create_transport_response_lines_item.rb +4 -0
- data/lib/nordlet/transport/types/waybills_get_transport_response_lines_item.rb +4 -0
- data/lib/nordlet/transport/types/waybills_issue_transport_response_lines_item.rb +4 -0
- data/lib/nordlet/transport/types/waybills_update_transport_response_lines_item.rb +4 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +56 -0
- data/reference.md +1329 -268
- metadata +58 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Pos
|
|
5
|
+
module Types
|
|
6
|
+
class RefundsListPosRequestFilterItemValue < Internal::Types::Model
|
|
7
|
+
extend Nordlet::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { String }
|
|
10
|
+
|
|
11
|
+
member -> { Integer }
|
|
12
|
+
|
|
13
|
+
member -> { Internal::Types::Boolean }
|
|
14
|
+
|
|
15
|
+
member -> { Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosRequestFilterItemValueThreeItem] }
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Pos
|
|
5
|
+
module Types
|
|
6
|
+
class RefundsListPosRequestFilterItemValueThreeItem < Internal::Types::Model
|
|
7
|
+
extend Nordlet::Internal::Types::Union
|
|
8
|
+
|
|
9
|
+
member -> { String }
|
|
10
|
+
|
|
11
|
+
member -> { Integer }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Pos
|
|
5
|
+
module Types
|
|
6
|
+
class RefundsListPosRequestSortItem < Internal::Types::Model
|
|
7
|
+
field :field, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :dir, -> { Nordlet::Pos::Types::RefundsListPosRequestSortItemDir }, optional: true, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Pos
|
|
5
|
+
module Types
|
|
6
|
+
class RefundsListPosResponse < Internal::Types::Model
|
|
7
|
+
field :rows, -> { Internal::Types::Array[Nordlet::Pos::Types::RefundsListPosResponseRowsItem] }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :page, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :page_size, -> { Integer }, optional: false, nullable: false, api_name: "pageSize"
|
|
12
|
+
|
|
13
|
+
field :total, -> { Integer }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :totals, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
|
|
16
|
+
|
|
17
|
+
field :totals_by_currency, -> { Internal::Types::Hash[String, Internal::Types::Hash[String, String]] }, optional: true, nullable: false, api_name: "totalsByCurrency"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Pos
|
|
5
|
+
module Types
|
|
6
|
+
class RefundsListPosResponseRowsItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :shift_id, -> { String }, optional: false, nullable: false, api_name: "shiftId"
|
|
10
|
+
|
|
11
|
+
field :receipt_id, -> { String }, optional: false, nullable: false, api_name: "receiptId"
|
|
12
|
+
|
|
13
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
|
|
16
|
+
|
|
17
|
+
field :vat_total, -> { String }, optional: false, nullable: false, api_name: "vatTotal"
|
|
18
|
+
|
|
19
|
+
field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
|
|
20
|
+
|
|
21
|
+
field :cash_amount, -> { String }, optional: false, nullable: false, api_name: "cashAmount"
|
|
22
|
+
|
|
23
|
+
field :cogs_total, -> { String }, optional: false, nullable: true, api_name: "cogsTotal"
|
|
24
|
+
|
|
25
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
26
|
+
|
|
27
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -223,7 +223,8 @@ module Nordlet
|
|
|
223
223
|
end
|
|
224
224
|
|
|
225
225
|
# Record a `preventive` or `corrective` maintenance planned for a work center on `plannedDate`; it starts as
|
|
226
|
-
# `planned`.
|
|
226
|
+
# `planned`. `purchaseInvoiceId` links the purchase invoice that books its cost (422 when it is not a purchase
|
|
227
|
+
# invoice of the company or is a credit note). Maintenance posts nothing to the ledger itself.
|
|
227
228
|
#
|
|
228
229
|
# @param request_options [Hash]
|
|
229
230
|
# @param params [Nordlet::Production::Types::MaintenanceCreateProductionRequest]
|
|
@@ -259,7 +260,8 @@ module Nordlet
|
|
|
259
260
|
|
|
260
261
|
# Mark a `planned` maintenance as completed on `completedDate`, with optional `downtimeHours` and `cost` (409 when
|
|
261
262
|
# it is already completed or cancelled). The work center's `nextMaintenanceDate` is then counted from the latest
|
|
262
|
-
# completed maintenance date.
|
|
263
|
+
# completed maintenance date. `purchaseInvoiceId` links the purchase invoice that books the cost, as on
|
|
264
|
+
# `production/maintenance/create`; the cost is not posted to the ledger, with or without the link.
|
|
263
265
|
#
|
|
264
266
|
# @param request_options [Hash]
|
|
265
267
|
# @param params [Nordlet::Production::Types::MaintenanceCompleteProductionRequest]
|
|
@@ -543,7 +545,7 @@ module Nordlet
|
|
|
543
545
|
end
|
|
544
546
|
|
|
545
547
|
# Add a pending quality check to a draft production order (409 once the order is completed). The order cannot
|
|
546
|
-
# complete while a check is pending.
|
|
548
|
+
# complete while a check is pending or failed.
|
|
547
549
|
#
|
|
548
550
|
# @param request_options [Hash]
|
|
549
551
|
# @param params [Nordlet::Production::Types::QualityChecksAddProductionRequest]
|
|
@@ -578,7 +580,8 @@ module Nordlet
|
|
|
578
580
|
end
|
|
579
581
|
|
|
580
582
|
# Record the result of a quality check as `passed` or `failed`, with the time and the actor (409 once the order is
|
|
581
|
-
# completed).
|
|
583
|
+
# completed). `production/orders/complete` answers 409 while a check is `pending` or `failed`; a failed check can
|
|
584
|
+
# be recorded again as `passed`.
|
|
582
585
|
#
|
|
583
586
|
# @param request_options [Hash]
|
|
584
587
|
# @param params [Nordlet::Production::Types::QualityChecksRecordProductionRequest]
|
|
@@ -646,18 +649,21 @@ module Nordlet
|
|
|
646
649
|
end
|
|
647
650
|
end
|
|
648
651
|
|
|
649
|
-
# Complete a draft production order on the order's date. An `assembly` consumes the components
|
|
650
|
-
#
|
|
651
|
-
#
|
|
652
|
-
#
|
|
653
|
-
#
|
|
654
|
-
#
|
|
652
|
+
# Complete a draft production order on the order's date. An `assembly` consumes the components from the warehouse,
|
|
653
|
+
# the first-expiring lot first (lots without an expiry date after those with one, then the oldest layers first),
|
|
654
|
+
# leaving out expired lots (line quantity × order quantity, increased by `scrapPercent`), prices each operation at
|
|
655
|
+
# its actual or planned minutes × `costPerHour`, receives the finished item at material cost + labor cost less the
|
|
656
|
+
# share of `scrappedQuantity`, and, when there is labor, scrap or a component stock account other than the
|
|
657
|
+
# finished one, posts a journal entry debiting the finished stock account (and the `production.scrap` rule account
|
|
658
|
+
# for the scrapped share) and crediting the component stock accounts and the work centers' cost accounts (or the
|
|
655
659
|
# `production.laborApplied` rule account); a `disassembly` consumes the finished item and receives the components
|
|
656
660
|
# at its cost shared by quantity. `componentsAccountCode` and `finishedAccountCode` default to the chart's
|
|
657
|
-
# production accounts
|
|
658
|
-
#
|
|
659
|
-
#
|
|
660
|
-
#
|
|
661
|
+
# production accounts; consumed layers without a stock account are credited to the given code, else to the
|
|
662
|
+
# `inventory.stock` rule account. Refused with 409 when the order is already completed, a quality check is still
|
|
663
|
+
# pending or has failed, or the accounting period is locked, and with 422 when the BOM has no lines,
|
|
664
|
+
# `scrappedQuantity` is given on a disassembly or exceeds the finished quantity, the assembly cost is zero, stock
|
|
665
|
+
# is insufficient, a received item needs lot or serial tracking, or a posting account is missing. Emits
|
|
666
|
+
# `stock.changed`.
|
|
661
667
|
#
|
|
662
668
|
# @param request_options [Hash]
|
|
663
669
|
# @param params [Nordlet::Production::Types::OrdersCompleteProductionRequest]
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :cost, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :purchase_invoice_id, -> { String }, optional: false, nullable: true, api_name: "purchaseInvoiceId"
|
|
26
|
+
|
|
25
27
|
field :notes, -> { String }, optional: false, nullable: true
|
|
26
28
|
|
|
27
29
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :cost, -> { String }, optional: true, nullable: false
|
|
14
14
|
|
|
15
|
+
field :purchase_invoice_id, -> { String }, optional: true, nullable: false, api_name: "purchaseInvoiceId"
|
|
16
|
+
|
|
15
17
|
field :notes, -> { String }, optional: true, nullable: false
|
|
16
18
|
end
|
|
17
19
|
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :cost, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :purchase_invoice_id, -> { String }, optional: false, nullable: true, api_name: "purchaseInvoiceId"
|
|
26
|
+
|
|
25
27
|
field :notes, -> { String }, optional: false, nullable: true
|
|
26
28
|
|
|
27
29
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
@@ -12,6 +12,8 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :description, -> { String }, optional: true, nullable: false
|
|
14
14
|
|
|
15
|
+
field :purchase_invoice_id, -> { String }, optional: true, nullable: false, api_name: "purchaseInvoiceId"
|
|
16
|
+
|
|
15
17
|
field :notes, -> { String }, optional: true, nullable: false
|
|
16
18
|
end
|
|
17
19
|
end
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :cost, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :purchase_invoice_id, -> { String }, optional: false, nullable: true, api_name: "purchaseInvoiceId"
|
|
26
|
+
|
|
25
27
|
field :notes, -> { String }, optional: false, nullable: true
|
|
26
28
|
|
|
27
29
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :cost, -> { String }, optional: false, nullable: true
|
|
24
24
|
|
|
25
|
+
field :purchase_invoice_id, -> { String }, optional: false, nullable: true, api_name: "purchaseInvoiceId"
|
|
26
|
+
|
|
25
27
|
field :notes, -> { String }, optional: false, nullable: true
|
|
26
28
|
|
|
27
29
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
@@ -48,8 +48,8 @@ module Nordlet
|
|
|
48
48
|
# Redirect (302) to the company's payment page for the issued invoice that carries this payment token, rendered
|
|
49
49
|
# from the template set with `sales/invoices/payment-settings/update` with the invoice number, the amount still
|
|
50
50
|
# unpaid, the currency, the token, the invoice id and the customer name (see `sales/invoices/payment-link`).
|
|
51
|
-
# Answers 404 when the token matches no issued invoice, the
|
|
52
|
-
# no template, and 409 when the invoice is already paid.
|
|
51
|
+
# Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice has
|
|
52
|
+
# `payLinkEnabled` false or the company has no template, and 409 when the invoice is already paid.
|
|
53
53
|
#
|
|
54
54
|
# @param request_options [Hash]
|
|
55
55
|
# @param params [Hash]
|
|
@@ -118,9 +118,10 @@ module Nordlet
|
|
|
118
118
|
|
|
119
119
|
# Open a Stripe Checkout page on the company's connected Stripe account for the amount still unpaid on the issued
|
|
120
120
|
# invoice that carries this customer token, and return its `url`. Stripe sends the customer back to the public
|
|
121
|
-
# invoice page. Answers 404 when the token matches no issued invoice, the
|
|
122
|
-
# the company has no Stripe account that can take charges, 409 when the invoice is
|
|
123
|
-
#
|
|
121
|
+
# invoice page. Answers 404 when the token matches no issued invoice, the document is a credit note, the invoice
|
|
122
|
+
# has `payLinkEnabled` false or the company has no Stripe account that can take charges, 409 when the invoice is
|
|
123
|
+
# already paid or a completed card payment for it was received and waits for the payout, and 422 when Stripe
|
|
124
|
+
# cannot take the amount in the invoice currency.
|
|
124
125
|
#
|
|
125
126
|
# @param request_options [Hash]
|
|
126
127
|
# @param params [Nordlet::Public::Types::InvoicesCheckoutPublicRequest]
|
|
@@ -36,6 +36,8 @@ module Nordlet
|
|
|
36
36
|
|
|
37
37
|
field :pay_url, -> { String }, optional: false, nullable: true, api_name: "payUrl"
|
|
38
38
|
|
|
39
|
+
field :card_payment_received, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cardPaymentReceived"
|
|
40
|
+
|
|
39
41
|
field :seller, -> { Nordlet::Public::Types::InvoicesGetPublicResponseSeller }, optional: false, nullable: false
|
|
40
42
|
|
|
41
43
|
field :buyer, -> { Nordlet::Public::Types::InvoicesGetPublicResponseBuyer }, optional: false, nullable: false
|
|
@@ -163,13 +163,15 @@ module Nordlet
|
|
|
163
163
|
# when set) and credits output VAT for self-assessed VAT; a credit note posts the reverse. Lines with
|
|
164
164
|
# `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead and get
|
|
165
165
|
# a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an invoice
|
|
166
|
-
# are received into stock at their base-currency cost
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
#
|
|
171
|
-
#
|
|
172
|
-
#
|
|
166
|
+
# are received into stock at their base-currency cost, into the lot named by the line's `lotNumber` (an unknown
|
|
167
|
+
# lot is created, and the line's `expiryDate` is stored on a lot that has none) (422 on an order-linked invoice,
|
|
168
|
+
# whose goods arrive through `purchases/receipts/create`, for a line that is also deferred and for a lot- or
|
|
169
|
+
# serial-tracked item without `lotNumber`); `returnFromStock` on a credit note that credits an invoice takes the
|
|
170
|
+
# goods back out of stock at their FIFO cost and books the difference to the credited amount on the
|
|
171
|
+
# `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited
|
|
172
|
+
# invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as
|
|
173
|
+
# a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked,
|
|
174
|
+
# and with 422 when the credit notes would exceed the credited invoice, a posting account is missing or no
|
|
173
175
|
# exchange rate exists for the date. Emits `purchase_invoice.registered`, `purchase_invoice.paid` when the
|
|
174
176
|
# credited invoice becomes fully paid, and `stock.changed` when stock moves.
|
|
175
177
|
#
|
|
@@ -243,8 +245,9 @@ module Nordlet
|
|
|
243
245
|
|
|
244
246
|
# Post every `pending` prepaid-expense release row dated on or before `asOfDate` (default today in the company's
|
|
245
247
|
# time zone): one journal entry per schedule date debiting the expense account and crediting the prepaid account,
|
|
246
|
-
# and the rows become `posted`. A locked accounting period is
|
|
247
|
-
# `expense-deferrals` runs the
|
|
248
|
+
# and the rows become `posted`. A row dated in a locked accounting period is posted on the first day of the first
|
|
249
|
+
# open period after it, even when that day is after `asOfDate`. The scheduled job `expense-deferrals` runs the
|
|
250
|
+
# same release for every active company.
|
|
248
251
|
#
|
|
249
252
|
# @param request_options [Hash]
|
|
250
253
|
# @param params [Nordlet::Purchases::Types::DeferralsPostPurchasesRequest]
|
|
@@ -29,6 +29,10 @@ module Nordlet
|
|
|
29
29
|
field :deferral_start_date, -> { String }, optional: true, nullable: false, api_name: "deferralStartDate"
|
|
30
30
|
|
|
31
31
|
field :deferral_end_date, -> { String }, optional: true, nullable: false, api_name: "deferralEndDate"
|
|
32
|
+
|
|
33
|
+
field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
|
|
34
|
+
|
|
35
|
+
field :expiry_date, -> { String }, optional: true, nullable: false, api_name: "expiryDate"
|
|
32
36
|
end
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
|
|
18
22
|
|
|
19
23
|
field :unit_price_incl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceInclVat"
|
|
@@ -32,6 +36,10 @@ module Nordlet
|
|
|
32
36
|
|
|
33
37
|
field :deferral_end_date, -> { String }, optional: false, nullable: true, api_name: "deferralEndDate"
|
|
34
38
|
|
|
39
|
+
field :lot_number, -> { String }, optional: false, nullable: true, api_name: "lotNumber"
|
|
40
|
+
|
|
41
|
+
field :expiry_date, -> { String }, optional: false, nullable: true, api_name: "expiryDate"
|
|
42
|
+
|
|
35
43
|
field :line_net, -> { String }, optional: false, nullable: false, api_name: "lineNet"
|
|
36
44
|
|
|
37
45
|
field :line_vat, -> { String }, optional: false, nullable: false, api_name: "lineVat"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
|
|
18
22
|
|
|
19
23
|
field :unit_price_incl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceInclVat"
|
|
@@ -32,6 +36,10 @@ module Nordlet
|
|
|
32
36
|
|
|
33
37
|
field :deferral_end_date, -> { String }, optional: false, nullable: true, api_name: "deferralEndDate"
|
|
34
38
|
|
|
39
|
+
field :lot_number, -> { String }, optional: false, nullable: true, api_name: "lotNumber"
|
|
40
|
+
|
|
41
|
+
field :expiry_date, -> { String }, optional: false, nullable: true, api_name: "expiryDate"
|
|
42
|
+
|
|
35
43
|
field :line_net, -> { String }, optional: false, nullable: false, api_name: "lineNet"
|
|
36
44
|
|
|
37
45
|
field :line_vat, -> { String }, optional: false, nullable: false, api_name: "lineVat"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
|
|
18
22
|
|
|
19
23
|
field :unit_price_incl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceInclVat"
|
|
@@ -32,6 +36,10 @@ module Nordlet
|
|
|
32
36
|
|
|
33
37
|
field :deferral_end_date, -> { String }, optional: false, nullable: true, api_name: "deferralEndDate"
|
|
34
38
|
|
|
39
|
+
field :lot_number, -> { String }, optional: false, nullable: true, api_name: "lotNumber"
|
|
40
|
+
|
|
41
|
+
field :expiry_date, -> { String }, optional: false, nullable: true, api_name: "expiryDate"
|
|
42
|
+
|
|
35
43
|
field :line_net, -> { String }, optional: false, nullable: false, api_name: "lineNet"
|
|
36
44
|
|
|
37
45
|
field :line_vat, -> { String }, optional: false, nullable: false, api_name: "lineVat"
|
|
@@ -29,6 +29,10 @@ module Nordlet
|
|
|
29
29
|
field :deferral_start_date, -> { String }, optional: true, nullable: false, api_name: "deferralStartDate"
|
|
30
30
|
|
|
31
31
|
field :deferral_end_date, -> { String }, optional: true, nullable: false, api_name: "deferralEndDate"
|
|
32
|
+
|
|
33
|
+
field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
|
|
34
|
+
|
|
35
|
+
field :expiry_date, -> { String }, optional: true, nullable: false, api_name: "expiryDate"
|
|
32
36
|
end
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :unit_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceExclVat"
|
|
18
22
|
|
|
19
23
|
field :unit_price_incl_vat, -> { String }, optional: false, nullable: true, api_name: "unitPriceInclVat"
|
|
@@ -32,6 +36,10 @@ module Nordlet
|
|
|
32
36
|
|
|
33
37
|
field :deferral_end_date, -> { String }, optional: false, nullable: true, api_name: "deferralEndDate"
|
|
34
38
|
|
|
39
|
+
field :lot_number, -> { String }, optional: false, nullable: true, api_name: "lotNumber"
|
|
40
|
+
|
|
41
|
+
field :expiry_date, -> { String }, optional: false, nullable: true, api_name: "expiryDate"
|
|
42
|
+
|
|
35
43
|
field :line_net, -> { String }, optional: false, nullable: false, api_name: "lineNet"
|
|
36
44
|
|
|
37
45
|
field :line_vat, -> { String }, optional: false, nullable: false, api_name: "lineVat"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -29,6 +29,10 @@ module Nordlet
|
|
|
29
29
|
field :deferral_start_date, -> { String }, optional: true, nullable: false, api_name: "deferralStartDate"
|
|
30
30
|
|
|
31
31
|
field :deferral_end_date, -> { String }, optional: true, nullable: false, api_name: "deferralEndDate"
|
|
32
|
+
|
|
33
|
+
field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
|
|
34
|
+
|
|
35
|
+
field :expiry_date, -> { String }, optional: true, nullable: false, api_name: "expiryDate"
|
|
32
36
|
end
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -29,6 +29,10 @@ module Nordlet
|
|
|
29
29
|
field :deferral_start_date, -> { String }, optional: true, nullable: false, api_name: "deferralStartDate"
|
|
30
30
|
|
|
31
31
|
field :deferral_end_date, -> { String }, optional: true, nullable: false, api_name: "deferralEndDate"
|
|
32
|
+
|
|
33
|
+
field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
|
|
34
|
+
|
|
35
|
+
field :expiry_date, -> { String }, optional: true, nullable: false, api_name: "expiryDate"
|
|
32
36
|
end
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -14,6 +14,10 @@ module Nordlet
|
|
|
14
14
|
|
|
15
15
|
field :quantity, -> { String }, optional: false, nullable: false
|
|
16
16
|
|
|
17
|
+
field :unit_factor, -> { String }, optional: false, nullable: false, api_name: "unitFactor"
|
|
18
|
+
|
|
19
|
+
field :base_quantity, -> { String }, optional: false, nullable: false, api_name: "baseQuantity"
|
|
20
|
+
|
|
17
21
|
field :received_qty, -> { String }, optional: false, nullable: false, api_name: "receivedQty"
|
|
18
22
|
|
|
19
23
|
field :remaining_qty, -> { String }, optional: false, nullable: false, api_name: "remainingQty"
|
|
@@ -464,8 +464,11 @@ module Nordlet
|
|
|
464
464
|
end
|
|
465
465
|
end
|
|
466
466
|
|
|
467
|
-
# Lists the company's VAT
|
|
468
|
-
#
|
|
467
|
+
# Lists the company's VAT types (code, country, name and rate). A document line names one in `vatClassifierCode`
|
|
468
|
+
# and takes its rate, VAT scheme and return boxes from it; a company that has VAT types refuses a line without one
|
|
469
|
+
# (422). `side` says whether the type is for sale lines, purchase lines or both, `scheme` is its VAT scheme and
|
|
470
|
+
# `nameEn` its English name; both are null for a type the company added itself. A type without a rate takes the
|
|
471
|
+
# line's `vatRatePercent` on the sides where `rateFromLine` is true, and 0% elsewhere. Filterable by `code`,
|
|
469
472
|
# `countryCode` and `ratePercent`; sortable by `code` and `ratePercent`.
|
|
470
473
|
#
|
|
471
474
|
# @param request_options [Hash]
|
|
@@ -10,7 +10,15 @@ module Nordlet
|
|
|
10
10
|
|
|
11
11
|
field :name, -> { String }, optional: false, nullable: false
|
|
12
12
|
|
|
13
|
+
field :name_en, -> { String }, optional: false, nullable: true, api_name: "nameEn"
|
|
14
|
+
|
|
13
15
|
field :rate_percent, -> { String }, optional: false, nullable: true, api_name: "ratePercent"
|
|
16
|
+
|
|
17
|
+
field :side, -> { Nordlet::Reference::Types::VatClassifiersListReferenceResponseRowsItemSide }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :scheme, -> { Nordlet::Reference::Types::VatClassifiersListReferenceResponseRowsItemScheme }, optional: false, nullable: true
|
|
20
|
+
|
|
21
|
+
field :rate_from_line, -> { Nordlet::Reference::Types::VatClassifiersListReferenceResponseRowsItemRateFromLine }, optional: false, nullable: false, api_name: "rateFromLine"
|
|
14
22
|
end
|
|
15
23
|
end
|
|
16
24
|
end
|
data/lib/nordlet/reference/types/vat_classifiers_list_reference_response_rows_item_rate_from_line.rb
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Reference
|
|
5
|
+
module Types
|
|
6
|
+
class VatClassifiersListReferenceResponseRowsItemRateFromLine < Internal::Types::Model
|
|
7
|
+
field :sale, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|