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,503 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "dry-struct"
4
+
5
+ module Checkbiz
6
+ module Types
7
+ include Dry.Types()
8
+
9
+ CAMEL = RestEasy::Conventions::CamelCase.new
10
+
11
+ class AdditionalCompanyBlock < Dry::Struct
12
+ transform_keys { |key| CAMEL.parse(key) }
13
+
14
+ attribute? :company_name, Types::String.optional
15
+ attribute? :organization_number, Types::String.optional
16
+ end
17
+
18
+ class CompanyBeneficialOwnerControlBlock < Dry::Struct
19
+ transform_keys { |key| CAMEL.parse(key) }
20
+
21
+ attribute? :code, Types::String.optional
22
+ attribute? :text, Types::String.optional
23
+ attribute? :org_nr, Types::String.optional
24
+ attribute? :org_namn, Types::String.optional
25
+ end
26
+
27
+ class CompanyBeneficialOwnerExtentBlock < Dry::Struct
28
+ transform_keys { |key| CAMEL.parse(key) }
29
+
30
+ attribute? :code, Types::String.optional
31
+ attribute? :text, Types::String.optional
32
+ end
33
+
34
+ class EventPagination < Dry::Struct
35
+ transform_keys { |key| CAMEL.parse(key) }
36
+
37
+ attribute? :records_returned, Types::Integer.optional
38
+ attribute? :total_records_found, Types::Integer.optional
39
+ attribute? :total_pages, Types::Integer.optional
40
+ attribute? :current_page, Types::Integer.optional
41
+ attribute? :page_size, Types::Integer.optional
42
+ end
43
+
44
+ class IdnummerBlock < Dry::Struct
45
+ transform_keys { |key| CAMEL.parse(key) }
46
+
47
+ attribute? :idnummer, Types::String.optional
48
+ end
49
+
50
+ class LookupNoAddress < Dry::Struct
51
+ transform_keys { |key| CAMEL.parse(key) }
52
+
53
+ attribute? :street, Types::String.optional
54
+ attribute? :house_number, Types::String.optional
55
+ attribute? :entrance, Types::String.optional
56
+ attribute? :post_code, Types::String.optional
57
+ attribute? :post_area, Types::String.optional
58
+ attribute? :address_string, Types::String.optional
59
+ end
60
+
61
+ class LookupNoContactPoint < Dry::Struct
62
+ transform_keys { |key| CAMEL.parse(key) }
63
+
64
+ attribute? :label, Types::String.optional
65
+ attribute? :main, Types::Bool.optional
66
+ attribute? :type, Types::String.optional
67
+ attribute? :value, Types::String.optional
68
+ end
69
+
70
+ class LookupNoCoordinate < Dry::Struct
71
+ transform_keys { |key| CAMEL.parse(key) }
72
+
73
+ attribute? :latitude, Types::Float.optional
74
+ attribute? :longitude, Types::Float.optional
75
+ end
76
+
77
+ class LookupNoCreditRating < Dry::Struct
78
+ transform_keys { |key| CAMEL.parse(key) }
79
+
80
+ attribute? :date, Types::String.optional
81
+ attribute? :rating, Types::String.optional
82
+ attribute? :description, Types::String.optional
83
+ end
84
+
85
+ class LookupNoIndustry < Dry::Struct
86
+ transform_keys { |key| CAMEL.parse(key) }
87
+
88
+ attribute? :name, Types::String.optional
89
+ attribute? :id, Types::String.optional
90
+ end
91
+
92
+ class LookupNoNaceIndustry < Dry::Struct
93
+ transform_keys { |key| CAMEL.parse(key) }
94
+
95
+ attribute? :name, Types::String.optional
96
+ attribute? :id, Types::String.optional
97
+ end
98
+
99
+ class LookupNoParentCompany < Dry::Struct
100
+ transform_keys { |key| CAMEL.parse(key) }
101
+
102
+ attribute? :name, Types::String.optional
103
+ attribute? :organization_number, Types::String.optional
104
+ attribute? :id, Types::String.optional
105
+ attribute? :info_url, Types::String.optional
106
+ end
107
+
108
+ class LookupNoPostAddress < Dry::Struct
109
+ transform_keys { |key| CAMEL.parse(key) }
110
+
111
+ attribute? :post_code, Types::String.optional
112
+ attribute? :post_area, Types::String.optional
113
+ attribute? :number, Types::String.optional
114
+ attribute? :text, Types::String.optional
115
+ attribute? :prefix, Types::String.optional
116
+ attribute? :post_address_string, Types::String.optional
117
+ end
118
+
119
+ class LookupNoRole < Dry::Struct
120
+ transform_keys { |key| CAMEL.parse(key) }
121
+
122
+ attribute? :birth_year, Types::String.optional
123
+ attribute? :organization_number, Types::String.optional
124
+ attribute? :id, Types::String.optional
125
+ attribute? :type, Types::String.optional
126
+ attribute? :name, Types::String.optional
127
+ attribute? :role, Types::String.optional
128
+ attribute? :from_date, Types::String.optional
129
+ end
130
+
131
+ class PersonBasicBlock < Dry::Struct
132
+ transform_keys { |key| CAMEL.parse(key) }
133
+
134
+ attribute? :first_name, Types::String.optional
135
+ attribute? :given_name, Types::String.optional
136
+ attribute? :sur_name, Types::String.optional
137
+ attribute? :middle_name, Types::String.optional
138
+ attribute? :last_name, Types::String.optional
139
+ attribute? :co, Types::String.optional
140
+ attribute? :street, Types::String.optional
141
+ attribute? :zip_code, Types::String.optional
142
+ attribute? :city, Types::String.optional
143
+ attribute? :extended_address, Types::String.optional
144
+ attribute? :foreign_address1, Types::String.optional
145
+ attribute? :foreign_address2, Types::String.optional
146
+ attribute? :foreign_address3, Types::String.optional
147
+ attribute? :foreign_country, Types::String.optional
148
+ attribute? :apartment_number, Types::String.optional
149
+ attribute? :entrance, Types::String.optional
150
+ attribute? :extra_address_field, Types::String.optional
151
+ attribute? :street_name, Types::String.optional
152
+ attribute? :street_number, Types::String.optional
153
+ end
154
+
155
+ class PersonBeneficialOwnerControlBlock < Dry::Struct
156
+ transform_keys { |key| CAMEL.parse(key) }
157
+
158
+ attribute? :code, Types::String.optional
159
+ attribute? :text, Types::String.optional
160
+ attribute? :org_nr, Types::String.optional
161
+ attribute? :org_namn, Types::String.optional
162
+ end
163
+
164
+ class PersonBeneficialOwnerExtentBlock < Dry::Struct
165
+ transform_keys { |key| CAMEL.parse(key) }
166
+
167
+ attribute? :code, Types::String.optional
168
+ attribute? :text, Types::String.optional
169
+ end
170
+
171
+ class PersonExtendedBlock < Dry::Struct
172
+ transform_keys { |key| CAMEL.parse(key) }
173
+
174
+ attribute? :municipality, Types::String.optional
175
+ attribute? :municipality_code, Types::String.optional
176
+ attribute? :parish, Types::String.optional
177
+ attribute? :parish_code, Types::String.optional
178
+ attribute? :district, Types::String.optional
179
+ attribute? :district_code, Types::String.optional
180
+ attribute? :county, Types::String.optional
181
+ attribute? :county_code, Types::String.optional
182
+ attribute? :next_birth_day, Types::String.optional
183
+ attribute? :date_of_birth, Types::String.optional
184
+ attribute? :age, Types::Integer.optional
185
+ attribute? :gender, Types::String.optional
186
+ attribute? :is_married, Types::Bool.optional
187
+ attribute? :social_status_with, Types::String.optional
188
+ attribute? :social_status_with_ssn, Types::String.optional
189
+ attribute? :number_of_company_involvements, Types::Integer.optional
190
+ attribute? :latitude, Types::String.optional
191
+ attribute? :longitude, Types::String.optional
192
+ attribute? :form_of_housing, Types::String.optional
193
+ attribute? :reg_date, Types::String.optional
194
+ attribute? :change_date, Types::String.optional
195
+ attribute? :house_hold_reg_date, Types::String.optional
196
+ end
197
+
198
+ class PersonNameBlock < Dry::Struct
199
+ transform_keys { |key| CAMEL.parse(key) }
200
+
201
+ attribute? :first_name, Types::String.optional
202
+ attribute? :given_name, Types::String.optional
203
+ attribute? :sur_name, Types::String.optional
204
+ attribute? :middle_name, Types::String.optional
205
+ attribute? :last_name, Types::String.optional
206
+ attribute? :age, Types::Integer.optional
207
+ attribute? :gender, Types::String.optional
208
+ attribute? :is_married, Types::Bool.optional
209
+ attribute? :city, Types::String.optional
210
+ end
211
+
212
+ class SNIModel < Dry::Struct
213
+ transform_keys { |key| CAMEL.parse(key) }
214
+
215
+ attribute? :code, Types::String.optional
216
+ attribute? :text, Types::String.optional
217
+ end
218
+
219
+ class SSNBlock < Dry::Struct
220
+ transform_keys { |key| CAMEL.parse(key) }
221
+
222
+ attribute? :ssn, Types::String.optional
223
+ end
224
+
225
+ class SafenodeAddress < Dry::Struct
226
+ transform_keys { |key| CAMEL.parse(key) }
227
+
228
+ attribute? :type, Types::String.optional
229
+ attribute? :care_of, Types::String.optional
230
+ attribute? :street_address, Types::String.optional
231
+ attribute? :continuation, Types::String.optional
232
+ attribute? :zip_code, Types::String.optional
233
+ attribute? :city, Types::String.optional
234
+ attribute? :foreign_address1, Types::String.optional
235
+ attribute? :foreign_address2, Types::String.optional
236
+ attribute? :foreign_address3, Types::String.optional
237
+ attribute? :foreign_country, Types::String.optional
238
+ end
239
+
240
+ class SafenodeBoardMember < Dry::Struct
241
+ transform_keys { |key| CAMEL.parse(key) }
242
+
243
+ attribute? :identification_number, Types::String.optional
244
+ attribute? :name, Types::String.optional
245
+ attribute? :role, Types::String.optional
246
+ end
247
+
248
+ class SafenodeRegistrationCodeWithDate < Dry::Struct
249
+ transform_keys { |key| CAMEL.parse(key) }
250
+
251
+ attribute? :code, Types::Integer.optional
252
+ attribute? :date, Types::String.optional
253
+ end
254
+
255
+ class SafenodeRemark < Dry::Struct
256
+ transform_keys { |key| CAMEL.parse(key) }
257
+
258
+ attribute? :type, Types::String.optional
259
+ attribute? :date, Types::String.optional
260
+ attribute? :description, Types::String.optional
261
+ attribute? :amount, Types::Float.optional
262
+ end
263
+
264
+ class SafenodeRemarkSummary < Dry::Struct
265
+ transform_keys { |key| CAMEL.parse(key) }
266
+
267
+ attribute? :count, Types::Integer.optional
268
+ attribute? :total_amount, Types::Float.optional
269
+ attribute? :date_of_latest, Types::String.optional
270
+ end
271
+
272
+ class SafenodeSkuldsaldo < Dry::Struct
273
+ transform_keys { |key| CAMEL.parse(key) }
274
+
275
+ attribute? :antal_a, Types::Integer.optional
276
+ attribute? :saldo_a, Types::Float.optional
277
+ attribute? :antal_e, Types::Integer.optional
278
+ attribute? :saldo_e, Types::Float.optional
279
+ attribute? :date, Types::String.optional
280
+ end
281
+
282
+ class SafenodeSkuldsanering < Dry::Struct
283
+ transform_keys { |key| CAMEL.parse(key) }
284
+
285
+ attribute? :started, Types::String.optional
286
+ attribute? :ended, Types::String.optional
287
+ end
288
+
289
+ class SearchNoContact < Dry::Struct
290
+ transform_keys { |key| CAMEL.parse(key) }
291
+
292
+ attribute? :organization_number, Types::String.optional
293
+ attribute? :type, Types::String.optional
294
+ attribute? :id, Types::String.optional
295
+ attribute? :name, Types::String.optional
296
+ attribute? :post_code, Types::String.optional
297
+ attribute? :post_area, Types::String.optional
298
+ attribute? :info_url, Types::String.optional
299
+ end
300
+
301
+ class UrlCatalogBlock < Dry::Struct
302
+ transform_keys { |key| CAMEL.parse(key) }
303
+
304
+ attribute? :url, Types::String.optional
305
+ end
306
+
307
+ class UrlCompanyBlock < Dry::Struct
308
+ transform_keys { |key| CAMEL.parse(key) }
309
+
310
+ attribute? :url, Types::String.optional
311
+ end
312
+
313
+ class UrlLonekollenBlock < Dry::Struct
314
+ transform_keys { |key| CAMEL.parse(key) }
315
+
316
+ attribute? :url, Types::String.optional
317
+ end
318
+
319
+ class UrlPersonBlock < Dry::Struct
320
+ transform_keys { |key| CAMEL.parse(key) }
321
+
322
+ attribute? :url, Types::String.optional
323
+ end
324
+
325
+ class CompanyBasicBeneficialOwnerBlock < Dry::Struct
326
+ transform_keys { |key| CAMEL.parse(key) }
327
+
328
+ attribute? :company_name, Types::String.optional
329
+ attribute? :organization_number, Types::String.optional
330
+ attribute? :status, Types::String.optional
331
+ attribute? :co, Types::String.optional
332
+ attribute? :street, Types::String.optional
333
+ attribute? :zip_code, Types::String.optional
334
+ attribute? :city, Types::String.optional
335
+ attribute? :company_code, Types::String.optional
336
+ attribute? :company_code_text, Types::String.optional
337
+ attribute? :registration_date, Types::String.optional
338
+ attribute? :phone_number, Types::String.optional
339
+ attribute? :additional_companies, Types::Array.of(AdditionalCompanyBlock).optional
340
+ attribute? :related_org, Types::String.optional
341
+ attribute? :public, Types::Bool.optional
342
+ attribute? :financial_year, Types::String.optional
343
+ attribute? :reporting_obligation_date, Types::String.optional
344
+ attribute? :reportingobligation_code, Types::String.optional
345
+ attribute? :beneficial_owner_status_code, Types::String.optional
346
+ attribute? :beneficial_owner_status_text, Types::String.optional
347
+ attribute? :reportingobligation_text, Types::String.optional
348
+ end
349
+
350
+ class CompanyBasicBlock < Dry::Struct
351
+ transform_keys { |key| CAMEL.parse(key) }
352
+
353
+ attribute? :company_name, Types::String.optional
354
+ attribute? :organization_number, Types::String.optional
355
+ attribute? :status, Types::String.optional
356
+ attribute? :co, Types::String.optional
357
+ attribute? :street, Types::String.optional
358
+ attribute? :zip_code, Types::String.optional
359
+ attribute? :city, Types::String.optional
360
+ attribute? :company_code, Types::String.optional
361
+ attribute? :company_code_text, Types::String.optional
362
+ attribute? :registration_date, Types::String.optional
363
+ attribute? :phone_number, Types::String.optional
364
+ attribute? :additional_companies, Types::Array.of(AdditionalCompanyBlock).optional
365
+ attribute? :related_org, Types::String.optional
366
+ attribute? :public, Types::Bool.optional
367
+ attribute? :financial_year, Types::String.optional
368
+ end
369
+
370
+ class CompanyBeneficialOwnerPersonBlock < Dry::Struct
371
+ transform_keys { |key| CAMEL.parse(key) }
372
+
373
+ attribute? :ssn, Types::String.optional
374
+ attribute? :ssn_status, Types::String.optional
375
+ attribute? :first_name, Types::String.optional
376
+ attribute? :middle_name, Types::String.optional
377
+ attribute? :last_name, Types::String.optional
378
+ attribute? :admission_date, Types::String.optional
379
+ attribute? :citizenship, Types::String.optional
380
+ attribute? :country_of_residence, Types::String.optional
381
+ attribute? :number_of_involvements_as_beneficial_owner, Types::Integer.optional
382
+ attribute? :type, Types::String.optional
383
+ attribute? :controls, Types::Array.of(CompanyBeneficialOwnerControlBlock).optional
384
+ attribute? :extent, CompanyBeneficialOwnerExtentBlock.optional
385
+ attribute? :suspicion, Types::String.optional
386
+ attribute? :number_of_company_involvements, Types::Integer.optional
387
+ attribute? :basic, PersonBasicBlock.optional
388
+ attribute? :extended, PersonExtendedBlock.optional
389
+ end
390
+
391
+ class CompanyExtendedBlock < Dry::Struct
392
+ transform_keys { |key| CAMEL.parse(key) }
393
+
394
+ attribute? :corporation_founded_date, Types::String.optional
395
+ attribute? :corporation_registered_date, Types::String.optional
396
+ attribute? :registration_date, Types::String.optional
397
+ attribute? :financial_year, Types::String.optional
398
+ attribute? :company_regulation_date, Types::String.optional
399
+ attribute? :corporate_tax, Types::String.optional
400
+ attribute? :employer_status, Types::String.optional
401
+ attribute? :vat_status, Types::String.optional
402
+ attribute? :registered_sni, Types::Array.of(SNIModel).optional
403
+ attribute? :registered_corporate_description, Types::String.optional
404
+ attribute? :status, Types::String.optional
405
+ attribute? :municipality, Types::String.optional
406
+ attribute? :municipality_code, Types::String.optional
407
+ attribute? :county, Types::String.optional
408
+ attribute? :county_code, Types::String.optional
409
+ attribute? :latitude, Types::String.optional
410
+ attribute? :longitude, Types::String.optional
411
+ attribute? :vat_status_registration_date, Types::String.optional
412
+ attribute? :corporate_tax_registration_date, Types::String.optional
413
+ attribute? :employer_status_registration_date, Types::String.optional
414
+ attribute? :group_parent_company_org, Types::String.optional
415
+ attribute? :group_parent_company_name, Types::String.optional
416
+ attribute? :parent_company_org, Types::String.optional
417
+ attribute? :parent_company_name, Types::String.optional
418
+ end
419
+
420
+ class LookupNoGeography < Dry::Struct
421
+ transform_keys { |key| CAMEL.parse(key) }
422
+
423
+ attribute? :municipality, Types::String.optional
424
+ attribute? :county, Types::String.optional
425
+ attribute? :region, Types::String.optional
426
+ attribute? :coordinate, LookupNoCoordinate.optional
427
+ attribute? :address, LookupNoAddress.optional
428
+ end
429
+
430
+ class LookupNoLegalInformation < Dry::Struct
431
+ transform_keys { |key| CAMEL.parse(key) }
432
+
433
+ attribute? :legal_name, Types::String.optional
434
+ attribute? :address, LookupNoAddress.optional
435
+ attribute? :post_address, LookupNoPostAddress.optional
436
+ attribute? :share_capital, Types::Integer.optional
437
+ attribute? :employees, Types::Integer.optional
438
+ attribute? :company_type, Types::String.optional
439
+ attribute? :established_date, Types::String.optional
440
+ attribute? :parent_company, LookupNoParentCompany.optional
441
+ end
442
+
443
+ class SafenodeCompanyDetails < Dry::Struct
444
+ transform_keys { |key| CAMEL.parse(key) }
445
+
446
+ attribute? :name, Types::String.optional
447
+ attribute? :address, Types::String.optional
448
+ attribute? :form, Types::String.optional
449
+ attribute? :seat, Types::String.optional
450
+ attribute? :phone, Types::String.optional
451
+ attribute? :creation_date, Types::String.optional
452
+ attribute? :main_line_of_business, Types::String.optional
453
+ attribute? :vat, SafenodeRegistrationCodeWithDate.optional
454
+ attribute? :registered_employer, SafenodeRegistrationCodeWithDate.optional
455
+ attribute? :procuration_info, Types::String.optional
456
+ attribute? :ftax_certificate, SafenodeRegistrationCodeWithDate.optional
457
+ end
458
+
459
+ class SafenodePersonDetails < Dry::Struct
460
+ transform_keys { |key| CAMEL.parse(key) }
461
+
462
+ attribute? :name, Types::String.optional
463
+ attribute? :registered, Types::String.optional
464
+ attribute? :deregistered, Types::String.optional
465
+ attribute? :county, Types::String.optional
466
+ attribute? :municipality, Types::String.optional
467
+ attribute? :married_to_personal_number, Types::String.optional
468
+ attribute? :married_to_name, Types::String.optional
469
+ attribute? :addresses, Types::Array.of(SafenodeAddress).optional
470
+ end
471
+
472
+ class WorksiteModel < Dry::Struct
473
+ transform_keys { |key| CAMEL.parse(key) }
474
+
475
+ attribute? :cfar, Types::String.optional
476
+ attribute? :designation, Types::String.optional
477
+ attribute? :visitor_street, Types::String.optional
478
+ attribute? :visitor_zip_code, Types::String.optional
479
+ attribute? :visitor_city, Types::String.optional
480
+ attribute? :co, Types::String.optional
481
+ attribute? :street, Types::String.optional
482
+ attribute? :zip_code, Types::String.optional
483
+ attribute? :city, Types::String.optional
484
+ attribute? :phone_number, Types::String.optional
485
+ attribute? :registered_sni, Types::Array.of(SNIModel).optional
486
+ attribute? :number_of_employees, Types::String.optional
487
+ end
488
+
489
+ class PersonBeneficialOwnerCompanyBlock < Dry::Struct
490
+ transform_keys { |key| CAMEL.parse(key) }
491
+
492
+ attribute? :organization_number, Types::String.optional
493
+ attribute? :admission_date, Types::String.optional
494
+ attribute? :type, Types::String.optional
495
+ attribute? :controls, Types::Array.of(PersonBeneficialOwnerControlBlock).optional
496
+ attribute? :extent, PersonBeneficialOwnerExtentBlock.optional
497
+ attribute? :suspicion, Types::String.optional
498
+ attribute? :basic, CompanyBasicBeneficialOwnerBlock.optional
499
+ attribute? :extended, CompanyExtendedBlock.optional
500
+ end
501
+
502
+ end
503
+ 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 CompanyAdvancedSearchPositionBlock < 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 CompanyAdvancedSearchBasicBlockRecord < 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, CompanyAdvancedSearchPositionBlock.optional
27
+ end
28
+
29
+ class CompanyAdvancedSearchBasicBlock < 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(CompanyAdvancedSearchBasicBlockRecord).optional
35
+ end
36
+
37
+ end
38
+ 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 CompanyAnnualReportsDocument < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :ref_no, Types::String.optional
12
+ attribute? :period, Types::String.optional
13
+ attribute? :type, Types::String.optional
14
+ end
15
+
16
+ end
17
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyAutocompleteBasicBlockRecord < 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? :city, Types::String.optional
14
+ end
15
+
16
+ class CompanyAutocompleteBasicBlock < Dry::Struct
17
+ transform_keys { |key| CAMEL.parse(key) }
18
+
19
+ attribute? :records_returned, Types::Integer.optional
20
+ attribute? :total_records_found, Types::Integer.optional
21
+ attribute? :records, Types::Array.of(CompanyAutocompleteBasicBlockRecord).optional
22
+ end
23
+
24
+ end
25
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyValidationFault < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :field, Types::String.optional
12
+ attribute? :description, Types::String.optional
13
+ attribute? :value, Types::String.optional
14
+ attribute? :boundary, Types::String.optional
15
+ end
16
+
17
+ class CompanyValidationFaultV2 < Dry::Struct
18
+ transform_keys { |key| CAMEL.parse(key) }
19
+
20
+ attribute? :description, Types::String.optional
21
+ attribute? :field, Types::String.optional
22
+ attribute? :value, Types::String.optional
23
+ attribute? :boundary, Types::String.optional
24
+ end
25
+
26
+ class CompanyCreditTemplateBlock < Dry::Struct
27
+ transform_keys { |key| CAMEL.parse(key) }
28
+
29
+ attribute? :organization_number, Types::String.optional
30
+ attribute? :validation_result, Types::Integer.optional
31
+ attribute? :validation_result_text, Types::String.optional
32
+ attribute? :rejections, Types::Array.of(CompanyValidationFault).optional
33
+ attribute? :examinations, Types::Array.of(CompanyValidationFault).optional
34
+ attribute? :official_name, Types::String.optional
35
+ attribute? :official_address, Types::String.optional
36
+ attribute? :official_zip_code, Types::String.optional
37
+ attribute? :official_city, Types::String.optional
38
+ attribute? :template_name, Types::String.optional
39
+ end
40
+
41
+ class CompanyCreditTemplateBlockV2 < Dry::Struct
42
+ transform_keys { |key| CAMEL.parse(key) }
43
+
44
+ attribute? :organization_number, Types::String.optional
45
+ attribute? :validation_result, Types::Integer.optional
46
+ attribute? :validation_result_text, Types::String.optional
47
+ attribute? :rejections, Types::Array.of(CompanyValidationFaultV2).optional
48
+ attribute? :examinations, Types::Array.of(CompanyValidationFaultV2).optional
49
+ attribute? :official_organization_name, Types::String.optional
50
+ attribute? :template_name, Types::String.optional
51
+ end
52
+
53
+ end
54
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class CompanyEventBasicBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :company_name, Types::String.optional
12
+ attribute? :organization_number, Types::String.optional
13
+ attribute? :status, Types::String.optional
14
+ attribute? :co, Types::String.optional
15
+ attribute? :street, Types::String.optional
16
+ attribute? :zip_code, Types::String.optional
17
+ attribute? :city, Types::String.optional
18
+ attribute? :company_code, Types::String.optional
19
+ attribute? :company_code_text, Types::String.optional
20
+ attribute? :phone_number, Types::String.optional
21
+ attribute? :corporation_founded_date, Types::String.optional
22
+ attribute? :corporation_registered_date, Types::String.optional
23
+ attribute? :current_corporation_registered_date, Types::String.optional
24
+ attribute? :event_date, Types::String.optional
25
+ end
26
+
27
+ class CompanyEventKeyBlock < Dry::Struct
28
+ transform_keys { |key| CAMEL.parse(key) }
29
+
30
+ attribute? :company_name, Types::String.optional
31
+ attribute? :organization_number, Types::String.optional
32
+ attribute? :status, Types::String.optional
33
+ attribute? :event_date, Types::String.optional
34
+ end
35
+
36
+ end
37
+ end