nordlet 0.2.1 → 0.2.3
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 +260 -0
- data/lib/nordlet/account/types/post_v1account_consent_accept_request.rb +13 -0
- data/lib/nordlet/account/types/post_v1account_consent_accept_response.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_delete_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_delete_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_request.rb +13 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_request_locale.rb +15 -0
- data/lib/nordlet/account/types/post_v1account_email_change_request_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_export_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_export_response.rb +25 -0
- data/lib/nordlet/account/types/post_v1account_export_response_audit_entries_item.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_export_response_billing.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_export_response_consent.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_export_response_credit_transactions_item.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_export_response_memberships_item.rb +17 -0
- data/lib/nordlet/account/types/post_v1account_export_response_sessions_item.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_export_response_user.rb +21 -0
- data/lib/nordlet/account/types/post_v1account_invites_accept_request.rb +4 -0
- data/lib/nordlet/account/types/post_v1account_login_link_request_request.rb +4 -0
- data/lib/nordlet/account/types/post_v1account_me_response.rb +2 -0
- data/lib/nordlet/account/types/post_v1account_me_response_consent.rb +23 -0
- data/lib/nordlet/account/types/post_v1account_profile_update_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_profile_update_response.rb +15 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_list_response_rows_item.rb +19 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_others_request.rb +9 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_others_response.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_request.rb +11 -0
- data/lib/nordlet/account/types/post_v1account_sessions_revoke_response.rb +11 -0
- data/lib/nordlet/client.rb +5 -0
- data/lib/nordlet/hr/client.rb +68 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_request.rb +11 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response.rb +49 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response_address.rb +17 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_anonymize_response_status.rb +14 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_delete_request.rb +11 -0
- data/lib/nordlet/hr/types/post_v1hr_employees_delete_response.rb +11 -0
- data/lib/nordlet/migration/client.rb +86 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request.rb +33 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_accounts_item.rb +19 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_accounts_item_type.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_asset_groups_item.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_fixed_assets_item.rb +31 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_items_item.rb +27 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_items_item_type.rb +14 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_journal_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_journal_item_entries_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_open_payables_item.rb +29 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_open_receivables_item.rb +29 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_opening_balances.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_opening_balances_entries_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item.rb +31 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item_address.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item_type.rb +14 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_request_stock_item.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response.rb +37 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_accounts.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_asset_groups.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_fixed_assets.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_items.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_journal.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_number_series_item.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_open_payables.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_open_receivables.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_opening_balances.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_partners.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_import_response_stock.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request.rb +33 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_accounts_item.rb +19 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_accounts_item_type.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_asset_groups_item.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_fixed_assets_item.rb +31 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_items_item.rb +27 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_items_item_type.rb +14 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_journal_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_journal_item_entries_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_payables_item.rb +29 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_receivables_item.rb +29 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_opening_balances.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_opening_balances_entries_item.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item.rb +31 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item_address.rb +17 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_partners_item_type.rb +14 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_request_stock_item.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response.rb +37 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_accounts.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_asset_groups.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_fixed_assets.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_items.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_journal.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_number_series_item.rb +15 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_open_payables.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_open_receivables.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_opening_balances.rb +21 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_partners.rb +13 -0
- data/lib/nordlet/migration/types/post_v1migration_books_validate_response_stock.rb +13 -0
- data/lib/nordlet/partners/client.rb +36 -0
- data/lib/nordlet/partners/types/post_v1partners_anonymize_request.rb +11 -0
- data/lib/nordlet/partners/types/post_v1partners_anonymize_response.rb +13 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +93 -0
- data/reference.md +1208 -310
- metadata +95 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Migration
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1MigrationBooksImportRequestOpeningBalances < 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::PostV1MigrationBooksImportRequestOpeningBalancesEntriesItem] }, 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 PostV1MigrationBooksImportRequestOpeningBalancesEntriesItem < 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 PostV1MigrationBooksImportRequestPartnersItem < 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::PostV1MigrationBooksImportRequestPartnersItemType }, 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::PostV1MigrationBooksImportRequestPartnersItemAddress }, optional: true, nullable: false
|
|
26
|
+
|
|
27
|
+
field :notes, -> { String }, optional: true, nullable: false
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
data/lib/nordlet/migration/types/post_v1migration_books_import_request_partners_item_address.rb
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Migration
|
|
5
|
+
module Types
|
|
6
|
+
class PostV1MigrationBooksImportRequestPartnersItemAddress < 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 PostV1MigrationBooksImportRequestPartnersItemType
|
|
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 PostV1MigrationBooksImportRequestStockItem < 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 PostV1MigrationBooksImportResponse < 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::PostV1MigrationBooksImportResponseAccounts }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :partners, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponsePartners }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :items, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseItems }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :asset_groups, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseAssetGroups }, optional: false, nullable: false, api_name: "assetGroups"
|
|
18
|
+
|
|
19
|
+
field :opening_balances, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseOpeningBalances }, optional: false, nullable: true, api_name: "openingBalances"
|
|
20
|
+
|
|
21
|
+
field :journal, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseJournal }, optional: false, nullable: false
|
|
22
|
+
|
|
23
|
+
field :open_receivables, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseOpenReceivables }, optional: false, nullable: false, api_name: "openReceivables"
|
|
24
|
+
|
|
25
|
+
field :open_payables, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseOpenPayables }, optional: false, nullable: false, api_name: "openPayables"
|
|
26
|
+
|
|
27
|
+
field :fixed_assets, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseFixedAssets }, optional: false, nullable: false, api_name: "fixedAssets"
|
|
28
|
+
|
|
29
|
+
field :stock, -> { Nordlet::Migration::Types::PostV1MigrationBooksImportResponseStock }, optional: false, nullable: false
|
|
30
|
+
|
|
31
|
+
field :number_series, -> { Internal::Types::Array[Nordlet::Migration::Types::PostV1MigrationBooksImportResponseNumberSeriesItem] }, 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 PostV1MigrationBooksImportResponseAccounts < 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 PostV1MigrationBooksImportResponseAssetGroups < 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 PostV1MigrationBooksImportResponseFixedAssets < 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 PostV1MigrationBooksImportResponseItems < 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 PostV1MigrationBooksImportResponseJournal < 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 PostV1MigrationBooksImportResponseNumberSeriesItem < 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 PostV1MigrationBooksImportResponseOpenPayables < 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 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
|
data/lib/nordlet/migration/types/post_v1migration_books_validate_request_accounts_item_type.rb
ADDED
|
@@ -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
|
data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_payables_item.rb
ADDED
|
@@ -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
|
data/lib/nordlet/migration/types/post_v1migration_books_validate_request_open_receivables_item.rb
ADDED
|
@@ -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
|