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
|
@@ -9,6 +9,36 @@ module Nordlet
|
|
|
9
9
|
EN = "en"
|
|
10
10
|
LT = "lt"
|
|
11
11
|
DE = "de"
|
|
12
|
+
FR = "fr"
|
|
13
|
+
ES = "es"
|
|
14
|
+
IT = "it"
|
|
15
|
+
PT = "pt"
|
|
16
|
+
NL = "nl"
|
|
17
|
+
PL = "pl"
|
|
18
|
+
SV = "sv"
|
|
19
|
+
DA = "da"
|
|
20
|
+
NO = "no"
|
|
21
|
+
FI = "fi"
|
|
22
|
+
ET = "et"
|
|
23
|
+
LV = "lv"
|
|
24
|
+
CS = "cs"
|
|
25
|
+
SK = "sk"
|
|
26
|
+
HU = "hu"
|
|
27
|
+
RO = "ro"
|
|
28
|
+
BG = "bg"
|
|
29
|
+
HR = "hr"
|
|
30
|
+
SL = "sl"
|
|
31
|
+
EL = "el"
|
|
32
|
+
MT = "mt"
|
|
33
|
+
IS = "is"
|
|
34
|
+
GA = "ga"
|
|
35
|
+
ZH = "zh"
|
|
36
|
+
JA = "ja"
|
|
37
|
+
AR = "ar"
|
|
38
|
+
HI = "hi"
|
|
39
|
+
RU = "ru"
|
|
40
|
+
TR = "tr"
|
|
41
|
+
UK = "uk"
|
|
12
42
|
end
|
|
13
43
|
end
|
|
14
44
|
end
|
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class UsageListBillingResponseRowsItem < Internal::Types::Model
|
|
7
7
|
field :company_id, -> { String }, optional: false, nullable: false, api_name: "companyId"
|
|
8
8
|
|
|
9
|
+
field :site, -> { Nordlet::Billing::Types::UsageListBillingResponseRowsItemSite }, optional: false, nullable: false
|
|
10
|
+
|
|
9
11
|
field :date, -> { String }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :metric, -> { Nordlet::Billing::Types::UsageListBillingResponseRowsItemMetric }, optional: false, nullable: false
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -52,6 +52,8 @@ module Nordlet
|
|
|
52
52
|
|
|
53
53
|
field :delivery_error, -> { String }, optional: false, nullable: true, api_name: "deliveryError"
|
|
54
54
|
|
|
55
|
+
field :confirmation_pending, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "confirmationPending"
|
|
56
|
+
|
|
55
57
|
field :sent_sha256, -> { String }, optional: false, nullable: true, api_name: "sentSha256"
|
|
56
58
|
|
|
57
59
|
field :certificate_fingerprint, -> { String }, optional: false, nullable: true, api_name: "certificateFingerprint"
|
|
@@ -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
|
|
@@ -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"
|
data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_lines_item.rb
CHANGED
|
@@ -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"
|
data/lib/nordlet/cash/client.rb
CHANGED
|
@@ -15,12 +15,13 @@ module Nordlet
|
|
|
15
15
|
# `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. Linked to an invoice -
|
|
16
16
|
# `saleInvoiceId` for a receipt against an issued invoice or advance invoice or a disbursement against an issued
|
|
17
17
|
# credit note, `purchaseInvoiceId` for a disbursement against a registered purchase invoice - the counter account
|
|
18
|
-
# is the receivable or payable account
|
|
19
|
-
# (`partial` or `paid`) are updated, and `sale_invoice.paid`
|
|
20
|
-
# invoice becomes fully paid. Answers 422 when both invoice ids are
|
|
21
|
-
# `counterAccountCode` differs from the invoice's account, or the
|
|
22
|
-
# another partner; 409 when `amount` exceeds the invoice's remaining
|
|
23
|
-
#
|
|
18
|
+
# is the receivable or payable account the invoice was posted to (its operation type's account, else the posting
|
|
19
|
+
# rule), the invoice's paid amount and payment status (`partial` or `paid`) are updated, and `sale_invoice.paid`
|
|
20
|
+
# or `purchase_invoice.paid` is emitted when the invoice becomes fully paid. Answers 422 when both invoice ids are
|
|
21
|
+
# given, a receipt names a purchase invoice, `counterAccountCode` differs from the invoice's account, or the
|
|
22
|
+
# invoice is in another currency or belongs to another partner; 409 when `amount` exceeds the invoice's remaining
|
|
23
|
+
# amount, a disbursement would take the balance of the cash account below zero on `date` or any later date, or the
|
|
24
|
+
# accounting period of `date` is locked.
|
|
24
25
|
#
|
|
25
26
|
# @param request_options [Hash]
|
|
26
27
|
# @param params [Nordlet::Cash::Types::OrdersCreateCashRequest]
|
|
@@ -364,7 +364,8 @@ module Nordlet
|
|
|
364
364
|
end
|
|
365
365
|
|
|
366
366
|
# Create a unit of measure of the company's own, in addition to the global measurement units
|
|
367
|
-
# (`reference/units/list`).
|
|
367
|
+
# (`reference/units/list`). `rec20Code` is the UN/ECE Recommendation 20 code e-invoices carry for the unit. 409
|
|
368
|
+
# when the code already exists.
|
|
368
369
|
#
|
|
369
370
|
# @param request_options [Hash]
|
|
370
371
|
# @param params [Nordlet::Catalog::Types::UnitsCreateCatalogRequest]
|
|
@@ -398,7 +399,8 @@ module Nordlet
|
|
|
398
399
|
end
|
|
399
400
|
end
|
|
400
401
|
|
|
401
|
-
# Change the code, name or active flag of a company unit. 409 when the new code
|
|
402
|
+
# Change the code, name, UN/ECE Recommendation 20 code or active flag of a company unit. 409 when the new code
|
|
403
|
+
# already exists.
|
|
402
404
|
#
|
|
403
405
|
# @param request_options [Hash]
|
|
404
406
|
# @param params [Nordlet::Catalog::Types::UnitsUpdateCatalogRequest]
|
|
@@ -777,6 +779,147 @@ module Nordlet
|
|
|
777
779
|
end
|
|
778
780
|
end
|
|
779
781
|
|
|
782
|
+
# Add an alternative unit to an item: `factor` is how many of the item's own unit one `unitCode` holds (a box of
|
|
783
|
+
# 12 pieces has factor 12). Document lines entered in that unit keep the entered quantity and unit price and move
|
|
784
|
+
# `quantity × factor` of the item's unit in stock and filings. `isDefaultSale` and `isDefaultPurchase` mark the
|
|
785
|
+
# unit the app offers first on sale and purchase documents; setting one clears it on the item's other units. 422
|
|
786
|
+
# when `unitCode` is the item's own unit or not a known unit; 409 when the item already has that unit.
|
|
787
|
+
#
|
|
788
|
+
# @param request_options [Hash]
|
|
789
|
+
# @param params [Nordlet::Catalog::Types::ItemsUnitsCreateCatalogRequest]
|
|
790
|
+
# @option request_options [String] :base_url
|
|
791
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
792
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
793
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
794
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
795
|
+
#
|
|
796
|
+
# @return [Nordlet::Catalog::Types::ItemsUnitsCreateCatalogResponse]
|
|
797
|
+
def items_units_create(request_options: {}, **params)
|
|
798
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
799
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
800
|
+
base_url: request_options[:base_url],
|
|
801
|
+
method: "POST",
|
|
802
|
+
path: "v1/catalog/items/units/create",
|
|
803
|
+
body: Nordlet::Catalog::Types::ItemsUnitsCreateCatalogRequest.new(params).to_h,
|
|
804
|
+
request_options: request_options
|
|
805
|
+
)
|
|
806
|
+
begin
|
|
807
|
+
response = @client.send(request)
|
|
808
|
+
rescue Net::HTTPRequestTimeout
|
|
809
|
+
raise Nordlet::Errors::TimeoutError
|
|
810
|
+
end
|
|
811
|
+
code = response.code.to_i
|
|
812
|
+
if code.between?(200, 299)
|
|
813
|
+
Nordlet::Catalog::Types::ItemsUnitsCreateCatalogResponse.load(response.body)
|
|
814
|
+
else
|
|
815
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
816
|
+
raise error_class.new(response.body, code: code)
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# Change the factor, default flags or barcode of an alternative unit. Document lines already entered keep the
|
|
821
|
+
# factor they were saved with; the new factor applies to lines entered or recalculated after the change.
|
|
822
|
+
#
|
|
823
|
+
# @param request_options [Hash]
|
|
824
|
+
# @param params [Nordlet::Catalog::Types::ItemsUnitsUpdateCatalogRequest]
|
|
825
|
+
# @option request_options [String] :base_url
|
|
826
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
827
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
828
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
829
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
830
|
+
#
|
|
831
|
+
# @return [Nordlet::Catalog::Types::ItemsUnitsUpdateCatalogResponse]
|
|
832
|
+
def items_units_update(request_options: {}, **params)
|
|
833
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
834
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
835
|
+
base_url: request_options[:base_url],
|
|
836
|
+
method: "POST",
|
|
837
|
+
path: "v1/catalog/items/units/update",
|
|
838
|
+
body: Nordlet::Catalog::Types::ItemsUnitsUpdateCatalogRequest.new(params).to_h,
|
|
839
|
+
request_options: request_options
|
|
840
|
+
)
|
|
841
|
+
begin
|
|
842
|
+
response = @client.send(request)
|
|
843
|
+
rescue Net::HTTPRequestTimeout
|
|
844
|
+
raise Nordlet::Errors::TimeoutError
|
|
845
|
+
end
|
|
846
|
+
code = response.code.to_i
|
|
847
|
+
if code.between?(200, 299)
|
|
848
|
+
Nordlet::Catalog::Types::ItemsUnitsUpdateCatalogResponse.load(response.body)
|
|
849
|
+
else
|
|
850
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
851
|
+
raise error_class.new(response.body, code: code)
|
|
852
|
+
end
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# Delete an alternative unit of an item. Document lines already entered in it keep their unit and factor.
|
|
856
|
+
#
|
|
857
|
+
# @param request_options [Hash]
|
|
858
|
+
# @param params [Nordlet::Catalog::Types::ItemsUnitsDeleteCatalogRequest]
|
|
859
|
+
# @option request_options [String] :base_url
|
|
860
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
861
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
862
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
863
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
864
|
+
#
|
|
865
|
+
# @return [Nordlet::Catalog::Types::ItemsUnitsDeleteCatalogResponse]
|
|
866
|
+
def items_units_delete(request_options: {}, **params)
|
|
867
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
868
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
869
|
+
base_url: request_options[:base_url],
|
|
870
|
+
method: "POST",
|
|
871
|
+
path: "v1/catalog/items/units/delete",
|
|
872
|
+
body: Nordlet::Catalog::Types::ItemsUnitsDeleteCatalogRequest.new(params).to_h,
|
|
873
|
+
request_options: request_options
|
|
874
|
+
)
|
|
875
|
+
begin
|
|
876
|
+
response = @client.send(request)
|
|
877
|
+
rescue Net::HTTPRequestTimeout
|
|
878
|
+
raise Nordlet::Errors::TimeoutError
|
|
879
|
+
end
|
|
880
|
+
code = response.code.to_i
|
|
881
|
+
if code.between?(200, 299)
|
|
882
|
+
Nordlet::Catalog::Types::ItemsUnitsDeleteCatalogResponse.load(response.body)
|
|
883
|
+
else
|
|
884
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
885
|
+
raise error_class.new(response.body, code: code)
|
|
886
|
+
end
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
# List the alternative units of an item, ordered by unit code.
|
|
890
|
+
#
|
|
891
|
+
# @param request_options [Hash]
|
|
892
|
+
# @param params [Nordlet::Catalog::Types::ItemsUnitsListCatalogRequest]
|
|
893
|
+
# @option request_options [String] :base_url
|
|
894
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
895
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
896
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
897
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
898
|
+
#
|
|
899
|
+
# @return [Nordlet::Catalog::Types::ItemsUnitsListCatalogResponse]
|
|
900
|
+
def items_units_list(request_options: {}, **params)
|
|
901
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
902
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
903
|
+
base_url: request_options[:base_url],
|
|
904
|
+
method: "POST",
|
|
905
|
+
path: "v1/catalog/items/units/list",
|
|
906
|
+
body: Nordlet::Catalog::Types::ItemsUnitsListCatalogRequest.new(params).to_h,
|
|
907
|
+
request_options: request_options
|
|
908
|
+
)
|
|
909
|
+
begin
|
|
910
|
+
response = @client.send(request)
|
|
911
|
+
rescue Net::HTTPRequestTimeout
|
|
912
|
+
raise Nordlet::Errors::TimeoutError
|
|
913
|
+
end
|
|
914
|
+
code = response.code.to_i
|
|
915
|
+
if code.between?(200, 299)
|
|
916
|
+
Nordlet::Catalog::Types::ItemsUnitsListCatalogResponse.load(response.body)
|
|
917
|
+
else
|
|
918
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
919
|
+
raise error_class.new(response.body, code: code)
|
|
920
|
+
end
|
|
921
|
+
end
|
|
922
|
+
|
|
780
923
|
# Create a price list (currency EUR and active when omitted). 409 when the code already exists.
|
|
781
924
|
#
|
|
782
925
|
# @param request_options [Hash]
|
|
@@ -48,6 +48,8 @@ module Nordlet
|
|
|
48
48
|
|
|
49
49
|
field :components, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsCreateCatalogResponseComponentsItem] }, optional: false, nullable: false
|
|
50
50
|
|
|
51
|
+
field :alternative_units, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsCreateCatalogResponseAlternativeUnitsItem] }, optional: false, nullable: false, api_name: "alternativeUnits"
|
|
52
|
+
|
|
51
53
|
field :kind_id, -> { String }, optional: false, nullable: true, api_name: "kindId"
|
|
52
54
|
|
|
53
55
|
field :sale_account_code, -> { String }, optional: false, nullable: true, api_name: "saleAccountCode"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsCreateCatalogResponseAlternativeUnitsItem < Internal::Types::Model
|
|
7
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
8
|
+
|
|
9
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultSale"
|
|
12
|
+
|
|
13
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultPurchase"
|
|
14
|
+
|
|
15
|
+
field :sale_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "salePriceExclVat"
|
|
16
|
+
|
|
17
|
+
field :purchase_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "purchasePriceExclVat"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -48,6 +48,8 @@ module Nordlet
|
|
|
48
48
|
|
|
49
49
|
field :components, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsGetCatalogResponseComponentsItem] }, optional: false, nullable: false
|
|
50
50
|
|
|
51
|
+
field :alternative_units, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsGetCatalogResponseAlternativeUnitsItem] }, optional: false, nullable: false, api_name: "alternativeUnits"
|
|
52
|
+
|
|
51
53
|
field :kind_id, -> { String }, optional: false, nullable: true, api_name: "kindId"
|
|
52
54
|
|
|
53
55
|
field :sale_account_code, -> { String }, optional: false, nullable: true, api_name: "saleAccountCode"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsGetCatalogResponseAlternativeUnitsItem < Internal::Types::Model
|
|
7
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
8
|
+
|
|
9
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultSale"
|
|
12
|
+
|
|
13
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultPurchase"
|
|
14
|
+
|
|
15
|
+
field :sale_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "salePriceExclVat"
|
|
16
|
+
|
|
17
|
+
field :purchase_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "purchasePriceExclVat"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -48,6 +48,8 @@ module Nordlet
|
|
|
48
48
|
|
|
49
49
|
field :components, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsListCatalogResponseRowsItemComponentsItem] }, optional: false, nullable: false
|
|
50
50
|
|
|
51
|
+
field :alternative_units, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsListCatalogResponseRowsItemAlternativeUnitsItem] }, optional: false, nullable: false, api_name: "alternativeUnits"
|
|
52
|
+
|
|
51
53
|
field :kind_id, -> { String }, optional: false, nullable: true, api_name: "kindId"
|
|
52
54
|
|
|
53
55
|
field :sale_account_code, -> { String }, optional: false, nullable: true, api_name: "saleAccountCode"
|
data/lib/nordlet/catalog/types/items_list_catalog_response_rows_item_alternative_units_item.rb
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsListCatalogResponseRowsItemAlternativeUnitsItem < Internal::Types::Model
|
|
7
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
8
|
+
|
|
9
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultSale"
|
|
12
|
+
|
|
13
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultPurchase"
|
|
14
|
+
|
|
15
|
+
field :sale_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "salePriceExclVat"
|
|
16
|
+
|
|
17
|
+
field :purchase_price_excl_vat, -> { String }, optional: false, nullable: true, api_name: "purchasePriceExclVat"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsUnitsCreateCatalogRequest < Internal::Types::Model
|
|
7
|
+
field :item_id, -> { String }, optional: false, nullable: false, api_name: "itemId"
|
|
8
|
+
|
|
9
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
10
|
+
|
|
11
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isDefaultSale"
|
|
14
|
+
|
|
15
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isDefaultPurchase"
|
|
16
|
+
|
|
17
|
+
field :barcode, -> { String }, optional: true, nullable: false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsUnitsCreateCatalogResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :item_id, -> { String }, optional: false, nullable: false, api_name: "itemId"
|
|
10
|
+
|
|
11
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
12
|
+
|
|
13
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultSale"
|
|
16
|
+
|
|
17
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultPurchase"
|
|
18
|
+
|
|
19
|
+
field :barcode, -> { String }, optional: false, nullable: true
|
|
20
|
+
|
|
21
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
22
|
+
|
|
23
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsUnitsListCatalogResponse < Internal::Types::Model
|
|
7
|
+
field :rows, -> { Internal::Types::Array[Nordlet::Catalog::Types::ItemsUnitsListCatalogResponseRowsItem] }, optional: false, nullable: false
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Catalog
|
|
5
|
+
module Types
|
|
6
|
+
class ItemsUnitsListCatalogResponseRowsItem < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :item_id, -> { String }, optional: false, nullable: false, api_name: "itemId"
|
|
10
|
+
|
|
11
|
+
field :unit_code, -> { String }, optional: false, nullable: false, api_name: "unitCode"
|
|
12
|
+
|
|
13
|
+
field :factor, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :is_default_sale, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultSale"
|
|
16
|
+
|
|
17
|
+
field :is_default_purchase, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isDefaultPurchase"
|
|
18
|
+
|
|
19
|
+
field :barcode, -> { String }, optional: false, nullable: true
|
|
20
|
+
|
|
21
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
22
|
+
|
|
23
|
+
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|