nordlet 0.2.1 → 0.2.2

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/client.rb +5 -0
  3. data/lib/nordlet/migration/client.rb +86 -0
  4. data/lib/nordlet/migration/types/post_v1migration_books_import_request.rb +33 -0
  5. data/lib/nordlet/migration/types/post_v1migration_books_import_request_accounts_item.rb +19 -0
  6. data/lib/nordlet/migration/types/post_v1migration_books_import_request_accounts_item_type.rb +17 -0
  7. data/lib/nordlet/migration/types/post_v1migration_books_import_request_asset_groups_item.rb +21 -0
  8. data/lib/nordlet/migration/types/post_v1migration_books_import_request_fixed_assets_item.rb +31 -0
  9. data/lib/nordlet/migration/types/post_v1migration_books_import_request_items_item.rb +27 -0
  10. data/lib/nordlet/migration/types/post_v1migration_books_import_request_items_item_type.rb +14 -0
  11. data/lib/nordlet/migration/types/post_v1migration_books_import_request_journal_item.rb +17 -0
  12. data/lib/nordlet/migration/types/post_v1migration_books_import_request_journal_item_entries_item.rb +17 -0
  13. data/lib/nordlet/migration/types/post_v1migration_books_import_request_open_payables_item.rb +29 -0
  14. data/lib/nordlet/migration/types/post_v1migration_books_import_request_open_receivables_item.rb +29 -0
  15. data/lib/nordlet/migration/types/post_v1migration_books_import_request_opening_balances.rb +15 -0
  16. data/lib/nordlet/migration/types/post_v1migration_books_import_request_opening_balances_entries_item.rb +17 -0
  17. data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item.rb +31 -0
  18. data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item_address.rb +17 -0
  19. data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item_type.rb +14 -0
  20. data/lib/nordlet/migration/types/post_v1migration_books_import_request_stock_item.rb +21 -0
  21. data/lib/nordlet/migration/types/post_v1migration_books_import_response.rb +37 -0
  22. data/lib/nordlet/migration/types/post_v1migration_books_import_response_accounts.rb +13 -0
  23. data/lib/nordlet/migration/types/post_v1migration_books_import_response_asset_groups.rb +13 -0
  24. data/lib/nordlet/migration/types/post_v1migration_books_import_response_fixed_assets.rb +15 -0
  25. data/lib/nordlet/migration/types/post_v1migration_books_import_response_items.rb +13 -0
  26. data/lib/nordlet/migration/types/post_v1migration_books_import_response_journal.rb +13 -0
  27. data/lib/nordlet/migration/types/post_v1migration_books_import_response_number_series_item.rb +15 -0
  28. data/lib/nordlet/migration/types/post_v1migration_books_import_response_open_payables.rb +13 -0
  29. data/lib/nordlet/migration/types/post_v1migration_books_import_response_open_receivables.rb +13 -0
  30. data/lib/nordlet/migration/types/post_v1migration_books_import_response_opening_balances.rb +21 -0
  31. data/lib/nordlet/migration/types/post_v1migration_books_import_response_partners.rb +13 -0
  32. data/lib/nordlet/migration/types/post_v1migration_books_import_response_stock.rb +13 -0
  33. data/lib/nordlet/migration/types/post_v1migration_books_validate_request.rb +33 -0
  34. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_accounts_item.rb +19 -0
  35. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_accounts_item_type.rb +17 -0
  36. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_asset_groups_item.rb +21 -0
  37. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_fixed_assets_item.rb +31 -0
  38. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_items_item.rb +27 -0
  39. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_items_item_type.rb +14 -0
  40. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_journal_item.rb +17 -0
  41. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_journal_item_entries_item.rb +17 -0
  42. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_payables_item.rb +29 -0
  43. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_receivables_item.rb +29 -0
  44. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_opening_balances.rb +15 -0
  45. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_opening_balances_entries_item.rb +17 -0
  46. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item.rb +31 -0
  47. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item_address.rb +17 -0
  48. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item_type.rb +14 -0
  49. data/lib/nordlet/migration/types/post_v1migration_books_validate_request_stock_item.rb +21 -0
  50. data/lib/nordlet/migration/types/post_v1migration_books_validate_response.rb +37 -0
  51. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_accounts.rb +13 -0
  52. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_asset_groups.rb +13 -0
  53. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_fixed_assets.rb +15 -0
  54. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_items.rb +13 -0
  55. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_journal.rb +13 -0
  56. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_number_series_item.rb +15 -0
  57. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_open_payables.rb +13 -0
  58. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_open_receivables.rb +13 -0
  59. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_opening_balances.rb +21 -0
  60. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_partners.rb +13 -0
  61. data/lib/nordlet/migration/types/post_v1migration_books_validate_response_stock.rb +13 -0
  62. data/lib/nordlet/version.rb +1 -1
  63. data/lib/nordlet.rb +59 -0
  64. data/reference.md +301 -0
  65. metadata +61 -2
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksImportResponseOpenReceivables < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :outstanding_total, -> { String }, optional: false, nullable: false, api_name: "outstandingTotal"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksImportResponseOpeningBalances < Internal::Types::Model
7
+ field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
8
+
9
+ field :date, -> { String }, optional: false, nullable: false
10
+
11
+ field :entries, -> { Integer }, optional: false, nullable: false
12
+
13
+ field :debit_total, -> { String }, optional: false, nullable: false, api_name: "debitTotal"
14
+
15
+ field :credit_total, -> { String }, optional: false, nullable: false, api_name: "creditTotal"
16
+
17
+ field :balancing_amount, -> { String }, optional: false, nullable: false, api_name: "balancingAmount"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksImportResponsePartners < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :existing, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksImportResponseStock < Internal::Types::Model
7
+ field :movements, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :cost_total, -> { String }, optional: false, nullable: false, api_name: "costTotal"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequest < Internal::Types::Model
7
+ field :cutover_date, -> { String }, optional: false, nullable: false, api_name: "cutoverDate"
8
+
9
+ field :source, -> { String }, optional: true, nullable: false
10
+
11
+ field :accounts, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestAccountsItem] }, optional: true, nullable: false
12
+
13
+ field :partners, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestPartnersItem] }, optional: true, nullable: false
14
+
15
+ field :items, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestItemsItem] }, optional: true, nullable: false
16
+
17
+ field :opening_balances, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestOpeningBalances }, optional: true, nullable: false, api_name: "openingBalances"
18
+
19
+ field :journal, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestJournalItem] }, optional: true, nullable: false
20
+
21
+ field :open_receivables, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestOpenReceivablesItem] }, optional: true, nullable: false, api_name: "openReceivables"
22
+
23
+ field :open_payables, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestOpenPayablesItem] }, optional: true, nullable: false, api_name: "openPayables"
24
+
25
+ field :asset_groups, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestAssetGroupsItem] }, optional: true, nullable: false, api_name: "assetGroups"
26
+
27
+ field :fixed_assets, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestFixedAssetsItem] }, optional: true, nullable: false, api_name: "fixedAssets"
28
+
29
+ field :stock, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestStockItem] }, optional: true, nullable: false
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestAccountsItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :type, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestAccountsItemType }, optional: false, nullable: false
12
+
13
+ field :parent_code, -> { String }, optional: true, nullable: false, api_name: "parentCode"
14
+
15
+ field :is_postable, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isPostable"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ module PostV1MigrationBooksValidateRequestAccountsItemType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ ASSET = "asset"
10
+ LIABILITY = "liability"
11
+ EQUITY = "equity"
12
+ INCOME = "income"
13
+ EXPENSE = "expense"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestAssetGroupsItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :asset_account_code, -> { String }, optional: false, nullable: false, api_name: "assetAccountCode"
12
+
13
+ field :depreciation_account_code, -> { String }, optional: false, nullable: false, api_name: "depreciationAccountCode"
14
+
15
+ field :expense_account_code, -> { String }, optional: true, nullable: false, api_name: "expenseAccountCode"
16
+
17
+ field :default_useful_life_months, -> { Integer }, optional: true, nullable: false, api_name: "defaultUsefulLifeMonths"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestFixedAssetsItem < Internal::Types::Model
7
+ field :group_code, -> { String }, optional: false, nullable: false, api_name: "groupCode"
8
+
9
+ field :code, -> { String }, optional: false, nullable: false
10
+
11
+ field :name, -> { String }, optional: false, nullable: false
12
+
13
+ field :acquisition_date, -> { String }, optional: false, nullable: false, api_name: "acquisitionDate"
14
+
15
+ field :depreciation_start_date, -> { String }, optional: true, nullable: false, api_name: "depreciationStartDate"
16
+
17
+ field :acquisition_cost, -> { String }, optional: false, nullable: false, api_name: "acquisitionCost"
18
+
19
+ field :salvage_value, -> { String }, optional: true, nullable: false, api_name: "salvageValue"
20
+
21
+ field :useful_life_months, -> { Integer }, optional: true, nullable: false, api_name: "usefulLifeMonths"
22
+
23
+ field :accumulated_depreciation, -> { String }, optional: true, nullable: false, api_name: "accumulatedDepreciation"
24
+
25
+ field :depreciated_months, -> { Integer }, optional: true, nullable: false, api_name: "depreciatedMonths"
26
+
27
+ field :notes, -> { String }, optional: true, nullable: false
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestItemsItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :type, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestItemsItemType }, optional: true, nullable: false
12
+
13
+ field :unit, -> { String }, optional: true, nullable: false
14
+
15
+ field :barcode, -> { String }, optional: true, nullable: false
16
+
17
+ field :vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "vatRatePercent"
18
+
19
+ field :sale_price_excl_vat, -> { String }, optional: true, nullable: false, api_name: "salePriceExclVat"
20
+
21
+ field :purchase_price_excl_vat, -> { String }, optional: true, nullable: false, api_name: "purchasePriceExclVat"
22
+
23
+ field :description, -> { String }, optional: true, nullable: false
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ module PostV1MigrationBooksValidateRequestItemsItemType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ PRODUCT = "product"
10
+ SERVICE = "service"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestJournalItem < Internal::Types::Model
7
+ field :date, -> { String }, optional: false, nullable: false
8
+
9
+ field :description, -> { String }, optional: true, nullable: false
10
+
11
+ field :reference, -> { String }, optional: true, nullable: false
12
+
13
+ field :entries, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestJournalItemEntriesItem] }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestJournalItemEntriesItem < Internal::Types::Model
7
+ field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
8
+
9
+ field :debit, -> { String }, optional: true, nullable: false
10
+
11
+ field :credit, -> { String }, optional: true, nullable: false
12
+
13
+ field :description, -> { String }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestOpenPayablesItem < Internal::Types::Model
7
+ field :partner_code, -> { String }, optional: false, nullable: false, api_name: "partnerCode"
8
+
9
+ field :due_date, -> { String }, optional: true, nullable: false, api_name: "dueDate"
10
+
11
+ field :currency, -> { String }, optional: true, nullable: false
12
+
13
+ field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
14
+
15
+ field :vat_total, -> { String }, optional: true, nullable: false, api_name: "vatTotal"
16
+
17
+ field :outstanding, -> { String }, optional: true, nullable: false
18
+
19
+ field :fx_rate, -> { String }, optional: true, nullable: false, api_name: "fxRate"
20
+
21
+ field :notes, -> { String }, optional: true, nullable: false
22
+
23
+ field :document_number, -> { String }, optional: false, nullable: false, api_name: "documentNumber"
24
+
25
+ field :document_date, -> { String }, optional: false, nullable: false, api_name: "documentDate"
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestOpenReceivablesItem < Internal::Types::Model
7
+ field :partner_code, -> { String }, optional: false, nullable: false, api_name: "partnerCode"
8
+
9
+ field :due_date, -> { String }, optional: true, nullable: false, api_name: "dueDate"
10
+
11
+ field :currency, -> { String }, optional: true, nullable: false
12
+
13
+ field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
14
+
15
+ field :vat_total, -> { String }, optional: true, nullable: false, api_name: "vatTotal"
16
+
17
+ field :outstanding, -> { String }, optional: true, nullable: false
18
+
19
+ field :fx_rate, -> { String }, optional: true, nullable: false, api_name: "fxRate"
20
+
21
+ field :notes, -> { String }, optional: true, nullable: false
22
+
23
+ field :number, -> { String }, optional: false, nullable: false
24
+
25
+ field :issue_date, -> { String }, optional: false, nullable: false, api_name: "issueDate"
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestOpeningBalances < Internal::Types::Model
7
+ field :date, -> { String }, optional: true, nullable: false
8
+
9
+ field :balancing_account_code, -> { String }, optional: true, nullable: false, api_name: "balancingAccountCode"
10
+
11
+ field :entries, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestOpeningBalancesEntriesItem] }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestOpeningBalancesEntriesItem < Internal::Types::Model
7
+ field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
8
+
9
+ field :debit, -> { String }, optional: true, nullable: false
10
+
11
+ field :credit, -> { String }, optional: true, nullable: false
12
+
13
+ field :description, -> { String }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestPartnersItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :type, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestPartnersItemType }, optional: true, nullable: false
12
+
13
+ field :vat_code, -> { String }, optional: true, nullable: false, api_name: "vatCode"
14
+
15
+ field :email, -> { String }, optional: true, nullable: false
16
+
17
+ field :phone, -> { String }, optional: true, nullable: false
18
+
19
+ field :is_customer, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isCustomer"
20
+
21
+ field :is_supplier, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "isSupplier"
22
+
23
+ field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
24
+
25
+ field :address, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateRequestPartnersItemAddress }, optional: true, nullable: false
26
+
27
+ field :notes, -> { String }, optional: true, nullable: false
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestPartnersItemAddress < Internal::Types::Model
7
+ field :street, -> { String }, optional: true, nullable: false
8
+
9
+ field :city, -> { String }, optional: true, nullable: false
10
+
11
+ field :postal_code, -> { String }, optional: true, nullable: false, api_name: "postalCode"
12
+
13
+ field :country_code, -> { String }, optional: true, nullable: false, api_name: "countryCode"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ module PostV1MigrationBooksValidateRequestPartnersItemType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ COMPANY = "company"
10
+ PERSON = "person"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateRequestStockItem < Internal::Types::Model
7
+ field :warehouse_code, -> { String }, optional: true, nullable: false, api_name: "warehouseCode"
8
+
9
+ field :item_code, -> { String }, optional: false, nullable: false, api_name: "itemCode"
10
+
11
+ field :quantity, -> { String }, optional: false, nullable: false
12
+
13
+ field :unit_cost, -> { String }, optional: false, nullable: false, api_name: "unitCost"
14
+
15
+ field :lot_number, -> { String }, optional: true, nullable: false, api_name: "lotNumber"
16
+
17
+ field :expiry_date, -> { String }, optional: true, nullable: false, api_name: "expiryDate"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponse < Internal::Types::Model
7
+ field :dry_run, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "dryRun"
8
+
9
+ field :cutover_date, -> { String }, optional: false, nullable: false, api_name: "cutoverDate"
10
+
11
+ field :accounts, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseAccounts }, optional: false, nullable: false
12
+
13
+ field :partners, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponsePartners }, optional: false, nullable: false
14
+
15
+ field :items, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseItems }, optional: false, nullable: false
16
+
17
+ field :asset_groups, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseAssetGroups }, optional: false, nullable: false, api_name: "assetGroups"
18
+
19
+ field :opening_balances, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseOpeningBalances }, optional: false, nullable: true, api_name: "openingBalances"
20
+
21
+ field :journal, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseJournal }, optional: false, nullable: false
22
+
23
+ field :open_receivables, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseOpenReceivables }, optional: false, nullable: false, api_name: "openReceivables"
24
+
25
+ field :open_payables, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseOpenPayables }, optional: false, nullable: false, api_name: "openPayables"
26
+
27
+ field :fixed_assets, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseFixedAssets }, optional: false, nullable: false, api_name: "fixedAssets"
28
+
29
+ field :stock, -> { Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseStock }, optional: false, nullable: false
30
+
31
+ field :number_series, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksValidateResponseNumberSeriesItem] }, optional: false, nullable: false, api_name: "numberSeries"
32
+
33
+ field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseAccounts < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :existing, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseAssetGroups < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :existing, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseFixedAssets < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :cost_total, -> { String }, optional: false, nullable: false, api_name: "costTotal"
10
+
11
+ field :accumulated_depreciation_total, -> { String }, optional: false, nullable: false, api_name: "accumulatedDepreciationTotal"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseItems < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :existing, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseJournal < Internal::Types::Model
7
+ field :transactions, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :entries, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseNumberSeriesItem < Internal::Types::Model
7
+ field :prefix, -> { String }, optional: false, nullable: false
8
+
9
+ field :year, -> { Integer }, optional: false, nullable: false
10
+
11
+ field :next_number, -> { Integer }, optional: false, nullable: false, api_name: "nextNumber"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseOpenPayables < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :outstanding_total, -> { String }, optional: false, nullable: false, api_name: "outstandingTotal"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseOpenReceivables < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :outstanding_total, -> { String }, optional: false, nullable: false, api_name: "outstandingTotal"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponseOpeningBalances < Internal::Types::Model
7
+ field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
8
+
9
+ field :date, -> { String }, optional: false, nullable: false
10
+
11
+ field :entries, -> { Integer }, optional: false, nullable: false
12
+
13
+ field :debit_total, -> { String }, optional: false, nullable: false, api_name: "debitTotal"
14
+
15
+ field :credit_total, -> { String }, optional: false, nullable: false, api_name: "creditTotal"
16
+
17
+ field :balancing_amount, -> { String }, optional: false, nullable: false, api_name: "balancingAmount"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Migration
5
+ module Types
6
+ class PostV1MigrationBooksValidateResponsePartners < Internal::Types::Model
7
+ field :created, -> { Integer }, optional: false, nullable: false
8
+
9
+ field :existing, -> { Integer }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end