checkbiz 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +154 -0
  3. data/checkbiz.gemspec +32 -0
  4. data/lib/checkbiz/resource.rb +23 -0
  5. data/lib/checkbiz/resources/address_information.rb +17 -0
  6. data/lib/checkbiz/resources/bolagsverket.rb +17 -0
  7. data/lib/checkbiz/resources/company_annual_report.rb +13 -0
  8. data/lib/checkbiz/resources/company_annual_reports.rb +13 -0
  9. data/lib/checkbiz/resources/company_articles_of_association.rb +13 -0
  10. data/lib/checkbiz/resources/company_autocomplete.rb +13 -0
  11. data/lib/checkbiz/resources/company_beneficial_owner.rb +15 -0
  12. data/lib/checkbiz/resources/company_certificates_of_registration.rb +13 -0
  13. data/lib/checkbiz/resources/company_credit_template.rb +23 -0
  14. data/lib/checkbiz/resources/company_event.rb +29 -0
  15. data/lib/checkbiz/resources/company_information.rb +41 -0
  16. data/lib/checkbiz/resources/company_information_list.rb +14 -0
  17. data/lib/checkbiz/resources/company_search.rb +13 -0
  18. data/lib/checkbiz/resources/company_search_advanced.rb +13 -0
  19. data/lib/checkbiz/resources/company_worksite.rb +13 -0
  20. data/lib/checkbiz/resources/custom_list.rb +31 -0
  21. data/lib/checkbiz/resources/data_factory_person_search.rb +14 -0
  22. data/lib/checkbiz/resources/extended_search_no.rb +14 -0
  23. data/lib/checkbiz/resources/geomatics.rb +13 -0
  24. data/lib/checkbiz/resources/heartbeat.rb +9 -0
  25. data/lib/checkbiz/resources/lookup_company_no.rb +14 -0
  26. data/lib/checkbiz/resources/lookup_id_no.rb +14 -0
  27. data/lib/checkbiz/resources/lookup_phone_no.rb +14 -0
  28. data/lib/checkbiz/resources/nix.rb +11 -0
  29. data/lib/checkbiz/resources/package_calls.rb +13 -0
  30. data/lib/checkbiz/resources/package_information.rb +13 -0
  31. data/lib/checkbiz/resources/person_beneficial_owner.rb +24 -0
  32. data/lib/checkbiz/resources/person_credit_template.rb +23 -0
  33. data/lib/checkbiz/resources/person_event.rb +18 -0
  34. data/lib/checkbiz/resources/person_information.rb +47 -0
  35. data/lib/checkbiz/resources/person_information_list.rb +14 -0
  36. data/lib/checkbiz/resources/person_search.rb +15 -0
  37. data/lib/checkbiz/resources/person_search_advanced.rb +15 -0
  38. data/lib/checkbiz/resources/person_verify.rb +15 -0
  39. data/lib/checkbiz/resources/pts_info.rb +13 -0
  40. data/lib/checkbiz/resources/safenode_company_credit_report.rb +14 -0
  41. data/lib/checkbiz/resources/safenode_company_remark_control.rb +14 -0
  42. data/lib/checkbiz/resources/safenode_person_credit_report.rb +14 -0
  43. data/lib/checkbiz/resources/safenode_person_remark_control.rb +14 -0
  44. data/lib/checkbiz/resources/search_no.rb +14 -0
  45. data/lib/checkbiz/resources/signatory.rb +15 -0
  46. data/lib/checkbiz/resources/spar.rb +13 -0
  47. data/lib/checkbiz/resources/statistics.rb +14 -0
  48. data/lib/checkbiz/resources/subscriber.rb +17 -0
  49. data/lib/checkbiz/resources/subscriber_list.rb +16 -0
  50. data/lib/checkbiz/resources/url.rb +16 -0
  51. data/lib/checkbiz/resources/url_search.rb +16 -0
  52. data/lib/checkbiz/types/address_information.rb +136 -0
  53. data/lib/checkbiz/types/bolagsverket.rb +1012 -0
  54. data/lib/checkbiz/types/common.rb +503 -0
  55. data/lib/checkbiz/types/company_advanced_search.rb +38 -0
  56. data/lib/checkbiz/types/company_annual_reports.rb +17 -0
  57. data/lib/checkbiz/types/company_autocomplete.rb +25 -0
  58. data/lib/checkbiz/types/company_credit_template.rb +54 -0
  59. data/lib/checkbiz/types/company_event.rb +37 -0
  60. data/lib/checkbiz/types/company_information.rb +460 -0
  61. data/lib/checkbiz/types/company_information_list.rb +15 -0
  62. data/lib/checkbiz/types/company_search.rb +38 -0
  63. data/lib/checkbiz/types/company_worksite.rb +18 -0
  64. data/lib/checkbiz/types/custom_list_add.rb +16 -0
  65. data/lib/checkbiz/types/custom_list_get.rb +17 -0
  66. data/lib/checkbiz/types/data_factory_person_search.rb +117 -0
  67. data/lib/checkbiz/types/geomatic.rb +140 -0
  68. data/lib/checkbiz/types/lookup_company_no.rb +57 -0
  69. data/lib/checkbiz/types/lookup_id_no.rb +22 -0
  70. data/lib/checkbiz/types/lookup_phone_no.rb +29 -0
  71. data/lib/checkbiz/types/package_calls.rb +27 -0
  72. data/lib/checkbiz/types/package_information.rb +23 -0
  73. data/lib/checkbiz/types/person_advanced_search.rb +117 -0
  74. data/lib/checkbiz/types/person_credit_template.rb +61 -0
  75. data/lib/checkbiz/types/person_event.rb +33 -0
  76. data/lib/checkbiz/types/person_information.rb +598 -0
  77. data/lib/checkbiz/types/person_information_list.rb +19 -0
  78. data/lib/checkbiz/types/person_search.rb +88 -0
  79. data/lib/checkbiz/types/person_verify.rb +61 -0
  80. data/lib/checkbiz/types/pts.rb +15 -0
  81. data/lib/checkbiz/types/safenode_company_credit_report.rb +50 -0
  82. data/lib/checkbiz/types/safenode_company_remark_control.rb +29 -0
  83. data/lib/checkbiz/types/safenode_person_credit_report.rb +49 -0
  84. data/lib/checkbiz/types/safenode_person_remark_control.rb +28 -0
  85. data/lib/checkbiz/types/signatory.rb +40 -0
  86. data/lib/checkbiz/types/spar.rb +107 -0
  87. data/lib/checkbiz/types/statistics.rb +33 -0
  88. data/lib/checkbiz/types/subscriber.rb +68 -0
  89. data/lib/checkbiz/types/subscriber_list.rb +49 -0
  90. data/lib/checkbiz/types/subscriber_nix.rb +16 -0
  91. data/lib/checkbiz/version.rb +5 -0
  92. data/lib/checkbiz.rb +26 -0
  93. metadata +233 -0
@@ -0,0 +1,460 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class BoardMember < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :name, Types::String.optional
12
+ attribute? :function_code, Types::String.optional
13
+ attribute? :function_text, Types::String.optional
14
+ attribute? :ssn, Types::String.optional
15
+ attribute? :admission_date, Types::String.optional
16
+ attribute? :admission_date_before, Types::String.optional
17
+ end
18
+
19
+ class BoardMemberHistory < Dry::Struct
20
+ transform_keys { |key| CAMEL.parse(key) }
21
+
22
+ attribute? :name, Types::String.optional
23
+ attribute? :function_code, Types::String.optional
24
+ attribute? :function_text, Types::String.optional
25
+ attribute? :ssn, Types::String.optional
26
+ attribute? :admission_date, Types::String.optional
27
+ attribute? :admission_date_before, Types::String.optional
28
+ attribute? :exit_date, Types::String.optional
29
+ end
30
+
31
+ class CompanyApplication < Dry::Struct
32
+ transform_keys { |key| CAMEL.parse(key) }
33
+
34
+ attribute? :date, Types::String.optional
35
+ attribute? :amount, Types::Float.optional
36
+ end
37
+
38
+ class CompanyBeneficialOwnerStatusBlock < Dry::Struct
39
+ transform_keys { |key| CAMEL.parse(key) }
40
+
41
+ attribute? :reporting_obligation_date, Types::String.optional
42
+ attribute? :reportingobligation_code, Types::String.optional
43
+ attribute? :reportingobligation_text, Types::String.optional
44
+ attribute? :beneficial_owner_status_code, Types::String.optional
45
+ attribute? :beneficial_owner_status_text, Types::String.optional
46
+ end
47
+
48
+ class CompanyEconomicBasicBlock < Dry::Struct
49
+ transform_keys { |key| CAMEL.parse(key) }
50
+
51
+ attribute? :slutkod, Types::String.optional
52
+ attribute? :financial_period, Types::String.optional
53
+ attribute? :turnover, Types::Float.optional
54
+ attribute? :result_after_net_balance, Types::Float.optional
55
+ attribute? :turnover_assets, Types::Float.optional
56
+ attribute? :establishment_assets, Types::Float.optional
57
+ attribute? :private_capital, Types::Float.optional
58
+ attribute? :untaxed_reservs, Types::Float.optional
59
+ attribute? :balance_cover, Types::Float.optional
60
+ attribute? :operating_profit, Types::Float.optional
61
+ attribute? :net_income, Types::Float.optional
62
+ attribute? :share_capital, Types::Float.optional
63
+ attribute? :total_long_term_liabilities, Types::Float.optional
64
+ attribute? :total_short_term_liabilities, Types::Float.optional
65
+ attribute? :number_of_employees, Types::Integer.optional
66
+ end
67
+
68
+ class CompanyEconomicExtendedBlock < Dry::Struct
69
+ transform_keys { |key| CAMEL.parse(key) }
70
+
71
+ attribute? :slutkod, Types::String.optional
72
+ attribute? :financial_period, Types::String.optional
73
+ attribute? :financial_net_length, Types::String.optional
74
+ attribute? :red_type, Types::String.optional
75
+ attribute? :accountant_comment, Types::String.optional
76
+ attribute? :accountant_comment_text, Types::String.optional
77
+ attribute? :bristkod, Types::String.optional
78
+ attribute? :bristkod_text, Types::String.optional
79
+ attribute? :utdelningskod, Types::String.optional
80
+ attribute? :utdelning, Types::Float.optional
81
+ attribute? :net_sales_and_profit_settlement_invoices, Types::Float.optional
82
+ attribute? :cost_of_goods_sold, Types::Float.optional
83
+ attribute? :gross_profit_or_gross_loss, Types::Float.optional
84
+ attribute? :cost_of_sales, Types::Float.optional
85
+ attribute? :administrative_costs, Types::Float.optional
86
+ attribute? :cost_of_rd, Types::Float.optional
87
+ attribute? :items_affecting_comparability_post_rr2, Types::Float.optional
88
+ attribute? :other_operating_income_rr2, Types::Float.optional
89
+ attribute? :other_operating_expenses, Types::Float.optional
90
+ attribute? :change_in_inventory, Types::Float.optional
91
+ attribute? :work_performed_own_account, Types::Float.optional
92
+ attribute? :other_operating_income_rr1, Types::Float.optional
93
+ attribute? :raw_materials_and_consumables, Types::Float.optional
94
+ attribute? :merchandise, Types::Float.optional
95
+ attribute? :other_external_expenses, Types::Float.optional
96
+ attribute? :personnel_costs, Types::Float.optional
97
+ attribute? :depreciation, Types::Float.optional
98
+ attribute? :items_affecting_comparabilitypost_rr1, Types::Float.optional
99
+ attribute? :other_operating_expenses_rr1, Types::Float.optional
100
+ attribute? :operating_profit, Types::Float.optional
101
+ attribute? :resultat_fran_andelar_i_koncern_och_intresseforetag, Types::Float.optional
102
+ attribute? :interest_income_from_group_companies, Types::Float.optional
103
+ attribute? :external_interest_income, Types::Float.optional
104
+ attribute? :other_financial_interest_income, Types::Float.optional
105
+ attribute? :interest_expenses_to_group_companies, Types::Float.optional
106
+ attribute? :external_interest_expenses, Types::Float.optional
107
+ attribute? :other_financial_expenses, Types::Float.optional
108
+ attribute? :non_recurring_financial_items, Types::Float.optional
109
+ attribute? :profit_after_financial_income_and_expenses, Types::Float.optional
110
+ attribute? :extraordinary_income, Types::Float.optional
111
+ attribute? :extraordinary_expenses, Types::Float.optional
112
+ attribute? :group_contribution, Types::Float.optional
113
+ attribute? :shareholders_contribution, Types::Float.optional
114
+ attribute? :appropriations, Types::Float.optional
115
+ attribute? :tax, Types::Float.optional
116
+ attribute? :minoritetsintr_samt_vinst_forl_i_dotterbol_for_forvarv, Types::Float.optional
117
+ attribute? :net_income, Types::Float.optional
118
+ attribute? :subscribed_unpaid_capital, Types::Float.optional
119
+ attribute? :capitalised_expenditure_rd, Types::Float.optional
120
+ attribute? :patents_and_licenses, Types::Float.optional
121
+ attribute? :goodwill, Types::Float.optional
122
+ attribute? :other_intangible_assets, Types::Float.optional
123
+ attribute? :total_intangible_assets, Types::Float.optional
124
+ attribute? :land_and_buildings, Types::Float.optional
125
+ attribute? :machines, Types::Float.optional
126
+ attribute? :inventory, Types::Float.optional
127
+ attribute? :machines_and_inventory, Types::Float.optional
128
+ attribute? :other_tangible_fixed_assets_none_depreciable, Types::Float.optional
129
+ attribute? :other_tangible_fixed_assets_depreciable, Types::Float.optional
130
+ attribute? :sum_tangible_assets, Types::Float.optional
131
+ attribute? :investments_in_subsidiaries_and_associates, Types::Float.optional
132
+ attribute? :current_receivables_from_group_and_associated_companies, Types::Float.optional
133
+ attribute? :loans_to_shareholder_and_related_parties, Types::Float.optional
134
+ attribute? :other_financial_fixed_assets, Types::Float.optional
135
+ attribute? :sum_financial_fixed_assets, Types::Float.optional
136
+ attribute? :sum_fixed_assets, Types::Float.optional
137
+ attribute? :work_in_progress_on_behalf_of_others, Types::Float.optional
138
+ attribute? :other_inventories, Types::Float.optional
139
+ attribute? :total_inventories, Types::Float.optional
140
+ attribute? :accounts_receivable, Types::Float.optional
141
+ attribute? :receivables_at_group_and_associated_companies, Types::Float.optional
142
+ attribute? :other_current_receivables, Types::Float.optional
143
+ attribute? :sum_current_receivables, Types::Float.optional
144
+ attribute? :total_short_term_investments, Types::Float.optional
145
+ attribute? :total_cash_and_cash_equivalents, Types::Float.optional
146
+ attribute? :total_current_assets, Types::Float.optional
147
+ attribute? :total_assets, Types::Float.optional
148
+ attribute? :share_capital, Types::Float.optional
149
+ attribute? :share_premium_reserve, Types::Float.optional
150
+ attribute? :revaluation_reserve, Types::Float.optional
151
+ attribute? :other_restricted_equity, Types::Float.optional
152
+ attribute? :retained_earnings, Types::Float.optional
153
+ attribute? :received_paid_group_contributions, Types::Float.optional
154
+ attribute? :received_shareholder_contributions, Types::Float.optional
155
+ attribute? :net_income2, Types::Float.optional
156
+ attribute? :total_equity, Types::Float.optional
157
+ attribute? :total_untaxed_reserves, Types::Float.optional
158
+ attribute? :minority_interests, Types::Float.optional
159
+ attribute? :total_provisions, Types::Float.optional
160
+ attribute? :bond, Types::Float.optional
161
+ attribute? :liabilities_to_credit_institutions_long_term, Types::Float.optional
162
+ attribute? :liabilities_to_group_companies_and_associates_long_term, Types::Float.optional
163
+ attribute? :other_long_term_liabilities, Types::Float.optional
164
+ attribute? :total_long_term_liabilities, Types::Float.optional
165
+ attribute? :liabilities_to_credit_institutions_short_term, Types::Float.optional
166
+ attribute? :accounts_payable, Types::Float.optional
167
+ attribute? :liabilities_to_group_companies_and_associates_short_term, Types::Float.optional
168
+ attribute? :other_short_term_liabilities, Types::Float.optional
169
+ attribute? :total_short_term_liabilities, Types::Float.optional
170
+ attribute? :total_equity_and_liabilities, Types::Float.optional
171
+ attribute? :company_assets, Types::Float.optional
172
+ attribute? :real_estate_assets, Types::Float.optional
173
+ attribute? :other_collateral, Types::Float.optional
174
+ attribute? :total_collateral, Types::Float.optional
175
+ attribute? :conditional_shareholder_contribution, Types::Float.optional
176
+ attribute? :other_liabilities, Types::Float.optional
177
+ attribute? :sum_liabilities, Types::Float.optional
178
+ attribute? :number_of_employees, Types::Float.optional
179
+ attribute? :salaries_of_the_board_and_ceo, Types::Float.optional
180
+ attribute? :bonus_of_the_board_and_ceo, Types::Float.optional
181
+ attribute? :salaries_to_other_employees, Types::Float.optional
182
+ attribute? :including_performance_bonus_to_other_employees, Types::Float.optional
183
+ attribute? :social_expenses, Types::Float.optional
184
+ attribute? :depreciation_and_cost_of_goods_sold, Types::Float.optional
185
+ attribute? :depreciation_in_selling_expenses, Types::Float.optional
186
+ attribute? :depreciation_in_adminstration_expenses, Types::Float.optional
187
+ attribute? :depreciation_in_rd_expenses, Types::Float.optional
188
+ attribute? :depreciation_other_expenses, Types::Float.optional
189
+ attribute? :unspecified_depreciation, Types::Float.optional
190
+ attribute? :overdraft_facilities, Types::Float.optional
191
+ attribute? :bank_overdrafts, Types::Float.optional
192
+ attribute? :net_interest_finance, Types::Float.optional
193
+ end
194
+
195
+ class CompanyGroupResponsible < Dry::Struct
196
+ transform_keys { |key| CAMEL.parse(key) }
197
+
198
+ attribute? :ssn, Types::String.optional
199
+ attribute? :first_name, Types::String.optional
200
+ attribute? :last_name, Types::String.optional
201
+ end
202
+
203
+ class CompanyGroupSummary < Dry::Struct
204
+ transform_keys { |key| CAMEL.parse(key) }
205
+
206
+ attribute? :turnover, Types::Float.optional
207
+ attribute? :net_income, Types::Float.optional
208
+ attribute? :number_of_employees, Types::Float.optional
209
+ end
210
+
211
+ class CompanyKeyNumbersBlock < Dry::Struct
212
+ transform_keys { |key| CAMEL.parse(key) }
213
+
214
+ attribute? :financial_period, Types::String.optional
215
+ attribute? :cash_liquidity, Types::Float.optional
216
+ attribute? :solidity, Types::Float.optional
217
+ attribute? :margins, Types::Float.optional
218
+ attribute? :turnoverchange, Types::Float.optional
219
+ attribute? :turnover_per_employee, Types::Float.optional
220
+ attribute? :salary_per_employee, Types::Float.optional
221
+ attribute? :number_of_employees, Types::Integer.optional
222
+ end
223
+
224
+ class CompanyNameBlock < Dry::Struct
225
+ transform_keys { |key| CAMEL.parse(key) }
226
+
227
+ attribute? :company_name, Types::String.optional
228
+ attribute? :city, Types::String.optional
229
+ end
230
+
231
+ class CompanyPhoneNumberBlock < Dry::Struct
232
+ transform_keys { |key| CAMEL.parse(key) }
233
+
234
+ attribute? :phone_numbers, Types::Array.of(Types::String).optional
235
+ attribute? :phone_types, Types::Array.of(Types::String).optional
236
+ end
237
+
238
+ class CompanyRemark < Dry::Struct
239
+ transform_keys { |key| CAMEL.parse(key) }
240
+
241
+ attribute? :date, Types::String.optional
242
+ attribute? :amount, Types::Float.optional
243
+ end
244
+
245
+ class CompanyRemarkBlock < Dry::Struct
246
+ transform_keys { |key| CAMEL.parse(key) }
247
+
248
+ attribute? :status, Types::String.optional
249
+ attribute? :has_remark, Types::Bool.optional
250
+ attribute? :last_remark_date, Types::String.optional
251
+ end
252
+
253
+ class CompanyWorksitesBlock < Dry::Struct
254
+ transform_keys { |key| CAMEL.parse(key) }
255
+
256
+ attribute? :organization_number, Types::String.optional
257
+ attribute? :company_name, Types::String.optional
258
+ attribute? :number_of_worksites, Types::Integer.optional
259
+ attribute? :worksites, Types::Array.of(WorksiteModel).optional
260
+ end
261
+
262
+ class ControlledCompanyBeneficialOwnerBlock < Dry::Struct
263
+ transform_keys { |key| CAMEL.parse(key) }
264
+
265
+ attribute? :ssn, Types::String.optional
266
+ attribute? :first_name, Types::String.optional
267
+ attribute? :last_name, Types::String.optional
268
+ attribute? :extend_code, Types::String.optional
269
+ attribute? :extent_text, Types::String.optional
270
+ end
271
+
272
+ class SafenodeCompanyRemarkEntryBlock < Dry::Struct
273
+ transform_keys { |key| CAMEL.parse(key) }
274
+
275
+ attribute? :type, Types::String.optional
276
+ attribute? :date, Types::String.optional
277
+ attribute? :description, Types::String.optional
278
+ attribute? :amount, Types::Float.optional
279
+ end
280
+
281
+ class SafenodeCompanyRemarkSummaryBlock < Dry::Struct
282
+ transform_keys { |key| CAMEL.parse(key) }
283
+
284
+ attribute? :count, Types::Integer.optional
285
+ attribute? :total_amount, Types::Float.optional
286
+ attribute? :date_of_latest, Types::String.optional
287
+ end
288
+
289
+ class SafenodeCompanySkuldsaldoBlock < Dry::Struct
290
+ transform_keys { |key| CAMEL.parse(key) }
291
+
292
+ attribute? :antal_a, Types::Integer.optional
293
+ attribute? :saldo_a, Types::Float.optional
294
+ attribute? :antal_e, Types::Integer.optional
295
+ attribute? :saldo_e, Types::Float.optional
296
+ attribute? :date, Types::String.optional
297
+ end
298
+
299
+ class SafenodeCompanySkuldsaneringBlock < Dry::Struct
300
+ transform_keys { |key| CAMEL.parse(key) }
301
+
302
+ attribute? :started, Types::String.optional
303
+ attribute? :ended, Types::String.optional
304
+ end
305
+
306
+ class ShareCapitalItem < Dry::Struct
307
+ transform_keys { |key| CAMEL.parse(key) }
308
+
309
+ attribute? :date, Types::String.optional
310
+ attribute? :share_capital, Types::Float.optional
311
+ attribute? :share_capital_currency_code, Types::String.optional
312
+ attribute? :share_capital_min, Types::Float.optional
313
+ attribute? :share_capital_min_currency_code, Types::String.optional
314
+ attribute? :share_capital_max, Types::Float.optional
315
+ attribute? :share_capital_max_currency_code, Types::String.optional
316
+ attribute? :share_capital_count, Types::Integer.optional
317
+ attribute? :share_capital_min_count, Types::Integer.optional
318
+ attribute? :share_capital_max_count, Types::Integer.optional
319
+ end
320
+
321
+ class ShareClassItem < Dry::Struct
322
+ transform_keys { |key| CAMEL.parse(key) }
323
+
324
+ attribute? :date, Types::String.optional
325
+ attribute? :share_type, Types::String.optional
326
+ attribute? :share_capital_count, Types::Integer.optional
327
+ attribute? :voting_value, Types::Float.optional
328
+ attribute? :share_capital_min_count, Types::Integer.optional
329
+ attribute? :share_capital_max_count, Types::Integer.optional
330
+ end
331
+
332
+ class CompanyArticlesOfAssociationBlock < Dry::Struct
333
+ transform_keys { |key| CAMEL.parse(key) }
334
+
335
+ attribute? :articles_of_association, Types::Array.of(Types::String).optional
336
+ attribute? :share_capital, Types::Array.of(ShareCapitalItem).optional
337
+ attribute? :share_class, Types::Array.of(ShareClassItem).optional
338
+ end
339
+
340
+ class CompanyBoardOfDirectorsBlock < Dry::Struct
341
+ transform_keys { |key| CAMEL.parse(key) }
342
+
343
+ attribute? :registered_firm_signee, Types::String.optional
344
+ attribute? :board_members, Types::Array.of(BoardMember).optional
345
+ end
346
+
347
+ class CompanyBoardOfDirectorsHistoryBlock < Dry::Struct
348
+ transform_keys { |key| CAMEL.parse(key) }
349
+
350
+ attribute? :board_members, Types::Array.of(BoardMemberHistory).optional
351
+ end
352
+
353
+ class CompanyRemarkExtendedBlock < Dry::Struct
354
+ transform_keys { |key| CAMEL.parse(key) }
355
+
356
+ attribute? :status, Types::String.optional
357
+ attribute? :has_remark, Types::Bool.optional
358
+ attribute? :last_remark_date, Types::String.optional
359
+ attribute? :number_of_remarks, Types::Integer.optional
360
+ attribute? :sum_of_remarks, Types::Float.optional
361
+ attribute? :last5_remarks, Types::Array.of(CompanyRemark).optional
362
+ attribute? :number_of_applications, Types::Integer.optional
363
+ attribute? :sum_of_applications, Types::Float.optional
364
+ attribute? :last5_applications, Types::Array.of(CompanyApplication).optional
365
+ attribute? :sum_of_debt_balance, Types::Float.optional
366
+ attribute? :debt_balance_date, Types::String.optional
367
+ attribute? :distraint, Types::Bool.optional
368
+ end
369
+
370
+ class ControlledCompanyBlock < Dry::Struct
371
+ transform_keys { |key| CAMEL.parse(key) }
372
+
373
+ attribute? :organization_number, Types::String.optional
374
+ attribute? :company_name, Types::String.optional
375
+ attribute? :number_of_beneficial_owners, Types::Integer.optional
376
+ attribute? :beneficial_owners, Types::Array.of(ControlledCompanyBeneficialOwnerBlock).optional
377
+ end
378
+
379
+ class SafenodeCompanyRemarkBlock < Dry::Struct
380
+ transform_keys { |key| CAMEL.parse(key) }
381
+
382
+ attribute? :blocked, Types::Bool.optional
383
+ attribute? :status, Types::String.optional
384
+ attribute? :summary_remarks, SafenodeCompanyRemarkSummaryBlock.optional
385
+ attribute? :skuldsanering, SafenodeCompanySkuldsaneringBlock.optional
386
+ attribute? :konkurs, Types::String.optional
387
+ end
388
+
389
+ class SafenodeCompanyRemarkExtendedBlock < Dry::Struct
390
+ transform_keys { |key| CAMEL.parse(key) }
391
+
392
+ attribute? :blocked, Types::Bool.optional
393
+ attribute? :status, Types::String.optional
394
+ attribute? :rating_value, Types::Integer.optional
395
+ attribute? :rating_description, Types::String.optional
396
+ attribute? :summary_ansokningar, SafenodeCompanyRemarkSummaryBlock.optional
397
+ attribute? :summary_remarks, SafenodeCompanyRemarkSummaryBlock.optional
398
+ attribute? :summary_emal, SafenodeCompanyRemarkSummaryBlock.optional
399
+ attribute? :summary_amal, SafenodeCompanyRemarkSummaryBlock.optional
400
+ attribute? :summary_tredskodomar, SafenodeCompanyRemarkSummaryBlock.optional
401
+ attribute? :summary_utmatningar, SafenodeCompanyRemarkSummaryBlock.optional
402
+ attribute? :current_skuldsaldo, SafenodeCompanySkuldsaldoBlock.optional
403
+ attribute? :latest_skuldsaldo, SafenodeCompanySkuldsaldoBlock.optional
404
+ attribute? :skuldsaldo_history, Types::Array.of(SafenodeCompanySkuldsaldoBlock).optional
405
+ attribute? :skuldsanering, SafenodeCompanySkuldsaneringBlock.optional
406
+ attribute? :konkurs, Types::String.optional
407
+ attribute? :remarks, Types::Array.of(SafenodeCompanyRemarkEntryBlock).optional
408
+ end
409
+
410
+ class ControlledCompaniesBlock < Dry::Struct
411
+ transform_keys { |key| CAMEL.parse(key) }
412
+
413
+ attribute? :organization_number, Types::String.optional
414
+ attribute? :company_name, Types::String.optional
415
+ attribute? :number_of_controlled_companies, Types::Integer.optional
416
+ attribute? :controlled_companies, Types::Array.of(ControlledCompanyBlock).optional
417
+ end
418
+
419
+ class CompanyGroupBasicItem < Dry::Struct
420
+ transform_keys { |key| CAMEL.parse(key) }
421
+
422
+ attribute? :company_name, Types::String.optional
423
+ attribute? :organization_number, Types::String.optional
424
+ attribute? :percent, Types::Float.optional
425
+ attribute? :percent_text, Types::String.optional
426
+ attribute? :level, Types::Integer.optional
427
+ attribute? :subsidiary_companies, Types::Array.of(CompanyGroupBasicItem).optional
428
+ end
429
+
430
+ class CompanyGroupBasicBlock < Dry::Struct
431
+ transform_keys { |key| CAMEL.parse(key) }
432
+
433
+ attribute? :company_group_list, Types::Array.of(CompanyGroupBasicItem).optional
434
+ end
435
+
436
+ class CompanyGroupExtendedItem < Dry::Struct
437
+ transform_keys { |key| CAMEL.parse(key) }
438
+
439
+ attribute? :company_name, Types::String.optional
440
+ attribute? :organization_number, Types::String.optional
441
+ attribute? :percent, Types::Float.optional
442
+ attribute? :percent_text, Types::String.optional
443
+ attribute? :level, Types::Integer.optional
444
+ attribute? :turnover, Types::Float.optional
445
+ attribute? :net_income, Types::Float.optional
446
+ attribute? :number_of_employees, Types::Float.optional
447
+ attribute? :financial_period, Types::String.optional
448
+ attribute? :responsible, CompanyGroupResponsible.optional
449
+ attribute? :subsidiary_companies, Types::Array.of(CompanyGroupExtendedItem).optional
450
+ end
451
+
452
+ class CompanyGroupExtendedBlock < Dry::Struct
453
+ transform_keys { |key| CAMEL.parse(key) }
454
+
455
+ attribute? :company_group_summary, CompanyGroupSummary.optional
456
+ attribute? :company_group_list, Types::Array.of(CompanyGroupExtendedItem).optional
457
+ end
458
+
459
+ end
460
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyInformationListCompanyBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :basic, CompanyBasicBlock.optional
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyPositionBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :latitude, Types::String.optional
12
+ attribute? :longitude, Types::String.optional
13
+ end
14
+
15
+ class CompanySearchBasicBlockRecord < Dry::Struct
16
+ transform_keys { |key| CAMEL.parse(key) }
17
+
18
+ attribute? :org_nr, Types::String.optional
19
+ attribute? :company_name, Types::String.optional
20
+ attribute? :company_code, Types::String.optional
21
+ attribute? :co, Types::String.optional
22
+ attribute? :street, Types::String.optional
23
+ attribute? :zip_code, Types::String.optional
24
+ attribute? :city, Types::String.optional
25
+ attribute? :phone_numbers, Types::Array.of(Types::String).optional
26
+ attribute? :position, CompanyPositionBlock.optional
27
+ end
28
+
29
+ class CompanySearchBasicBlock < Dry::Struct
30
+ transform_keys { |key| CAMEL.parse(key) }
31
+
32
+ attribute? :records_returned, Types::Integer.optional
33
+ attribute? :total_records_found, Types::Integer.optional
34
+ attribute? :records, Types::Array.of(CompanySearchBasicBlockRecord).optional
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyWorksiteBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :organization_number, Types::String.optional
12
+ attribute? :company_name, Types::String.optional
13
+ attribute? :number_of_worksites, Types::Integer.optional
14
+ attribute? :worksite, WorksiteModel.optional
15
+ end
16
+
17
+ end
18
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class ResponseItem < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :key, Types::String.optional
12
+ attribute? :response_code, Types::String.optional
13
+ end
14
+
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CustomListItem < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :key, Types::String.optional
12
+ attribute? :date_created, Types::String.optional
13
+ attribute? :date_deleted, Types::String.optional
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,117 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class BuildingType < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :text, Types::String.optional
12
+ end
13
+
14
+ class County < Dry::Struct
15
+ transform_keys { |key| CAMEL.parse(key) }
16
+
17
+ attribute? :code, Types::String.optional
18
+ attribute? :text, Types::String.optional
19
+ end
20
+
21
+ class MarketingReservation < Dry::Struct
22
+ transform_keys { |key| CAMEL.parse(key) }
23
+
24
+ attribute? :direct_mail, Types::String.optional
25
+ attribute? :tele_marketing, Types::String.optional
26
+ attribute? :humanitarian, Types::String.optional
27
+ attribute? :code, Types::String.optional
28
+ attribute? :reservation_date, Types::String.optional
29
+ end
30
+
31
+ class Municip < Dry::Struct
32
+ transform_keys { |key| CAMEL.parse(key) }
33
+
34
+ attribute? :code, Types::String.optional
35
+ attribute? :text, Types::String.optional
36
+ end
37
+
38
+ class Phone < Dry::Struct
39
+ transform_keys { |key| CAMEL.parse(key) }
40
+
41
+ attribute? :type, Types::String.optional
42
+ attribute? :country, Types::String.optional
43
+ attribute? :number, Types::String.optional
44
+ attribute? :phone_user, Types::String.optional
45
+ end
46
+
47
+ class Source < Dry::Struct
48
+ transform_keys { |key| CAMEL.parse(key) }
49
+
50
+ attribute? :id, Types::String.optional
51
+ attribute? :name, Types::String.optional
52
+ attribute? :name_date, Types::String.optional
53
+ attribute? :address_date, Types::String.optional
54
+ attribute? :moved_date, Types::String.optional
55
+ end
56
+
57
+ class Status < Dry::Struct
58
+ transform_keys { |key| CAMEL.parse(key) }
59
+
60
+ attribute? :code, Types::String.optional
61
+ attribute? :text, Types::String.optional
62
+ attribute? :date, Types::String.optional
63
+ end
64
+
65
+ class Name < Dry::Struct
66
+ transform_keys { |key| CAMEL.parse(key) }
67
+
68
+ attribute? :first_name, Types::String.optional
69
+ attribute? :middle_name, Types::String.optional
70
+ attribute? :last_name, Types::String.optional
71
+ attribute? :sources, Types::Array.of(Source).optional
72
+ attribute? :full_name, Types::String.optional
73
+ attribute? :is_legal, Types::String.optional
74
+ end
75
+
76
+ class PersonAddress < Dry::Struct
77
+ transform_keys { |key| CAMEL.parse(key) }
78
+
79
+ attribute? :type, Types::String.optional
80
+ attribute? :street_name, Types::String.optional
81
+ attribute? :house_number, Types::String.optional
82
+ attribute? :entrance, Types::String.optional
83
+ attribute? :apartment_number, Types::String.optional
84
+ attribute? :postal_code, Types::String.optional
85
+ attribute? :city, Types::String.optional
86
+ attribute? :sources, Types::Array.of(Source).optional
87
+ attribute? :address, Types::String.optional
88
+ attribute? :building_type, BuildingType.optional
89
+ attribute? :box_office, Types::String.optional
90
+ attribute? :usage_type, Types::String.optional
91
+ attribute? :is_legal, Types::String.optional
92
+ attribute? :municip, Municip.optional
93
+ attribute? :county, County.optional
94
+ end
95
+
96
+ class PersonDetail < Dry::Struct
97
+ transform_keys { |key| CAMEL.parse(key) }
98
+
99
+ attribute? :object_identity, Types::String.optional
100
+ attribute? :birth_date, Types::String.optional
101
+ attribute? :gender, Types::String.optional
102
+ attribute? :deceased_date, Types::String.optional
103
+ attribute? :status, Status.optional
104
+ attribute? :marketing_reservation, MarketingReservation.optional
105
+ end
106
+
107
+ class Person < Dry::Struct
108
+ transform_keys { |key| CAMEL.parse(key) }
109
+
110
+ attribute? :person_detail, PersonDetail.optional
111
+ attribute? :phones, Types::Array.of(Phone).optional
112
+ attribute? :names, Types::Array.of(Name).optional
113
+ attribute? :addresses, Types::Array.of(PersonAddress).optional
114
+ end
115
+
116
+ end
117
+ end