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.
- checksums.yaml +7 -0
- data/README.md +154 -0
- data/checkbiz.gemspec +32 -0
- data/lib/checkbiz/resource.rb +23 -0
- data/lib/checkbiz/resources/address_information.rb +17 -0
- data/lib/checkbiz/resources/bolagsverket.rb +17 -0
- data/lib/checkbiz/resources/company_annual_report.rb +13 -0
- data/lib/checkbiz/resources/company_annual_reports.rb +13 -0
- data/lib/checkbiz/resources/company_articles_of_association.rb +13 -0
- data/lib/checkbiz/resources/company_autocomplete.rb +13 -0
- data/lib/checkbiz/resources/company_beneficial_owner.rb +15 -0
- data/lib/checkbiz/resources/company_certificates_of_registration.rb +13 -0
- data/lib/checkbiz/resources/company_credit_template.rb +23 -0
- data/lib/checkbiz/resources/company_event.rb +29 -0
- data/lib/checkbiz/resources/company_information.rb +41 -0
- data/lib/checkbiz/resources/company_information_list.rb +14 -0
- data/lib/checkbiz/resources/company_search.rb +13 -0
- data/lib/checkbiz/resources/company_search_advanced.rb +13 -0
- data/lib/checkbiz/resources/company_worksite.rb +13 -0
- data/lib/checkbiz/resources/custom_list.rb +31 -0
- data/lib/checkbiz/resources/data_factory_person_search.rb +14 -0
- data/lib/checkbiz/resources/extended_search_no.rb +14 -0
- data/lib/checkbiz/resources/geomatics.rb +13 -0
- data/lib/checkbiz/resources/heartbeat.rb +9 -0
- data/lib/checkbiz/resources/lookup_company_no.rb +14 -0
- data/lib/checkbiz/resources/lookup_id_no.rb +14 -0
- data/lib/checkbiz/resources/lookup_phone_no.rb +14 -0
- data/lib/checkbiz/resources/nix.rb +11 -0
- data/lib/checkbiz/resources/package_calls.rb +13 -0
- data/lib/checkbiz/resources/package_information.rb +13 -0
- data/lib/checkbiz/resources/person_beneficial_owner.rb +24 -0
- data/lib/checkbiz/resources/person_credit_template.rb +23 -0
- data/lib/checkbiz/resources/person_event.rb +18 -0
- data/lib/checkbiz/resources/person_information.rb +47 -0
- data/lib/checkbiz/resources/person_information_list.rb +14 -0
- data/lib/checkbiz/resources/person_search.rb +15 -0
- data/lib/checkbiz/resources/person_search_advanced.rb +15 -0
- data/lib/checkbiz/resources/person_verify.rb +15 -0
- data/lib/checkbiz/resources/pts_info.rb +13 -0
- data/lib/checkbiz/resources/safenode_company_credit_report.rb +14 -0
- data/lib/checkbiz/resources/safenode_company_remark_control.rb +14 -0
- data/lib/checkbiz/resources/safenode_person_credit_report.rb +14 -0
- data/lib/checkbiz/resources/safenode_person_remark_control.rb +14 -0
- data/lib/checkbiz/resources/search_no.rb +14 -0
- data/lib/checkbiz/resources/signatory.rb +15 -0
- data/lib/checkbiz/resources/spar.rb +13 -0
- data/lib/checkbiz/resources/statistics.rb +14 -0
- data/lib/checkbiz/resources/subscriber.rb +17 -0
- data/lib/checkbiz/resources/subscriber_list.rb +16 -0
- data/lib/checkbiz/resources/url.rb +16 -0
- data/lib/checkbiz/resources/url_search.rb +16 -0
- data/lib/checkbiz/types/address_information.rb +136 -0
- data/lib/checkbiz/types/bolagsverket.rb +1012 -0
- data/lib/checkbiz/types/common.rb +503 -0
- data/lib/checkbiz/types/company_advanced_search.rb +38 -0
- data/lib/checkbiz/types/company_annual_reports.rb +17 -0
- data/lib/checkbiz/types/company_autocomplete.rb +25 -0
- data/lib/checkbiz/types/company_credit_template.rb +54 -0
- data/lib/checkbiz/types/company_event.rb +37 -0
- data/lib/checkbiz/types/company_information.rb +460 -0
- data/lib/checkbiz/types/company_information_list.rb +15 -0
- data/lib/checkbiz/types/company_search.rb +38 -0
- data/lib/checkbiz/types/company_worksite.rb +18 -0
- data/lib/checkbiz/types/custom_list_add.rb +16 -0
- data/lib/checkbiz/types/custom_list_get.rb +17 -0
- data/lib/checkbiz/types/data_factory_person_search.rb +117 -0
- data/lib/checkbiz/types/geomatic.rb +140 -0
- data/lib/checkbiz/types/lookup_company_no.rb +57 -0
- data/lib/checkbiz/types/lookup_id_no.rb +22 -0
- data/lib/checkbiz/types/lookup_phone_no.rb +29 -0
- data/lib/checkbiz/types/package_calls.rb +27 -0
- data/lib/checkbiz/types/package_information.rb +23 -0
- data/lib/checkbiz/types/person_advanced_search.rb +117 -0
- data/lib/checkbiz/types/person_credit_template.rb +61 -0
- data/lib/checkbiz/types/person_event.rb +33 -0
- data/lib/checkbiz/types/person_information.rb +598 -0
- data/lib/checkbiz/types/person_information_list.rb +19 -0
- data/lib/checkbiz/types/person_search.rb +88 -0
- data/lib/checkbiz/types/person_verify.rb +61 -0
- data/lib/checkbiz/types/pts.rb +15 -0
- data/lib/checkbiz/types/safenode_company_credit_report.rb +50 -0
- data/lib/checkbiz/types/safenode_company_remark_control.rb +29 -0
- data/lib/checkbiz/types/safenode_person_credit_report.rb +49 -0
- data/lib/checkbiz/types/safenode_person_remark_control.rb +28 -0
- data/lib/checkbiz/types/signatory.rb +40 -0
- data/lib/checkbiz/types/spar.rb +107 -0
- data/lib/checkbiz/types/statistics.rb +33 -0
- data/lib/checkbiz/types/subscriber.rb +68 -0
- data/lib/checkbiz/types/subscriber_list.rb +49 -0
- data/lib/checkbiz/types/subscriber_nix.rb +16 -0
- data/lib/checkbiz/version.rb +5 -0
- data/lib/checkbiz.rb +26 -0
- metadata +233 -0
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "common"
|
|
4
|
+
|
|
5
|
+
module Checkbiz
|
|
6
|
+
module Types
|
|
7
|
+
|
|
8
|
+
class CompanyInvolvement < Dry::Struct
|
|
9
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
10
|
+
|
|
11
|
+
attribute? :org_nr, Types::String.optional
|
|
12
|
+
attribute? :company_name, Types::String.optional
|
|
13
|
+
attribute? :company_code, Types::String.optional
|
|
14
|
+
attribute? :function_texts, Types::String.optional
|
|
15
|
+
attribute? :func1, Types::String.optional
|
|
16
|
+
attribute? :func2, Types::String.optional
|
|
17
|
+
attribute? :func3, Types::String.optional
|
|
18
|
+
attribute? :func4, Types::String.optional
|
|
19
|
+
attribute? :func1_text, Types::String.optional
|
|
20
|
+
attribute? :func2_text, Types::String.optional
|
|
21
|
+
attribute? :func3_text, Types::String.optional
|
|
22
|
+
attribute? :func4_text, Types::String.optional
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
class CompanyInvolvementExtended < Dry::Struct
|
|
26
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
27
|
+
|
|
28
|
+
attribute? :ssn, Types::String.optional
|
|
29
|
+
attribute? :name, Types::String.optional
|
|
30
|
+
attribute? :age, Types::Integer.optional
|
|
31
|
+
attribute? :gender, Types::String.optional
|
|
32
|
+
attribute? :municipality, Types::String.optional
|
|
33
|
+
attribute? :municipality_code, Types::String.optional
|
|
34
|
+
attribute? :org_nr, Types::String.optional
|
|
35
|
+
attribute? :company_name, Types::String.optional
|
|
36
|
+
attribute? :function_texts, Types::String.optional
|
|
37
|
+
attribute? :func1, Types::String.optional
|
|
38
|
+
attribute? :func2, Types::String.optional
|
|
39
|
+
attribute? :func3, Types::String.optional
|
|
40
|
+
attribute? :func4, Types::String.optional
|
|
41
|
+
attribute? :func1_text, Types::String.optional
|
|
42
|
+
attribute? :func2_text, Types::String.optional
|
|
43
|
+
attribute? :func3_text, Types::String.optional
|
|
44
|
+
attribute? :func4_text, Types::String.optional
|
|
45
|
+
attribute? :number_of_employees, Types::Integer.optional
|
|
46
|
+
attribute? :net_income, Types::Float.optional
|
|
47
|
+
attribute? :turnover, Types::Float.optional
|
|
48
|
+
attribute? :admission_date, Types::String.optional
|
|
49
|
+
attribute? :registered_sni, Types::String.optional
|
|
50
|
+
attribute? :registered_sni_text, Types::String.optional
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
class CompanyInvolvementHistory < Dry::Struct
|
|
54
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
55
|
+
|
|
56
|
+
attribute? :org_nr, Types::String.optional
|
|
57
|
+
attribute? :orignal_company_name, Types::String.optional
|
|
58
|
+
attribute? :function_code, Types::String.optional
|
|
59
|
+
attribute? :function_text, Types::String.optional
|
|
60
|
+
attribute? :exit_date, Types::String.optional
|
|
61
|
+
attribute? :entry_date, Types::String.optional
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
class CurrentAddressModel < Dry::Struct
|
|
65
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
66
|
+
|
|
67
|
+
attribute? :street, Types::String.optional
|
|
68
|
+
attribute? :zip_code, Types::String.optional
|
|
69
|
+
attribute? :city, Types::String.optional
|
|
70
|
+
attribute? :extended_address, Types::String.optional
|
|
71
|
+
attribute? :municipality, Types::String.optional
|
|
72
|
+
attribute? :county, Types::String.optional
|
|
73
|
+
attribute? :lkf, Types::String.optional
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class EventModel < Dry::Struct
|
|
77
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
78
|
+
|
|
79
|
+
attribute? :date, Types::String.optional
|
|
80
|
+
attribute? :event_text, Types::String.optional
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
class HasRealEstateHoldingBlock < Dry::Struct
|
|
84
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
85
|
+
|
|
86
|
+
attribute? :has_real_estate_holding, Types::Bool.optional
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class LegalGuardianBlock < Dry::Struct
|
|
90
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
91
|
+
|
|
92
|
+
attribute? :legal_guardian, Types::String.optional
|
|
93
|
+
attribute? :legal_guardian_ssn, Types::String.optional
|
|
94
|
+
attribute? :legal_guardian2, Types::String.optional
|
|
95
|
+
attribute? :legal_guardian_ssn2, Types::String.optional
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
class PersonAddressDividedBlock < Dry::Struct
|
|
99
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
100
|
+
|
|
101
|
+
attribute? :street, Types::String.optional
|
|
102
|
+
attribute? :street_name, Types::String.optional
|
|
103
|
+
attribute? :street_number, Types::String.optional
|
|
104
|
+
attribute? :entrance, Types::String.optional
|
|
105
|
+
attribute? :apartment_number, Types::String.optional
|
|
106
|
+
attribute? :extra_address_field, Types::String.optional
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class PersonRelationBlock < Dry::Struct
|
|
110
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
111
|
+
|
|
112
|
+
attribute? :is_married, Types::Bool.optional
|
|
113
|
+
attribute? :social_status_with, Types::String.optional
|
|
114
|
+
attribute? :social_status_with_ssn, Types::String.optional
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
class PersonRemarkBlock < Dry::Struct
|
|
118
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
119
|
+
|
|
120
|
+
attribute? :status, Types::String.optional
|
|
121
|
+
attribute? :has_remark, Types::Bool.optional
|
|
122
|
+
attribute? :last_remark_date, Types::String.optional
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
class PersonStatisticsBlock < Dry::Struct
|
|
126
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
127
|
+
|
|
128
|
+
attribute? :personal_number, Types::String.optional
|
|
129
|
+
attribute? :municipality_code, Types::String.optional
|
|
130
|
+
attribute? :municipality, Types::String.optional
|
|
131
|
+
attribute? :county_code, Types::String.optional
|
|
132
|
+
attribute? :county, Types::String.optional
|
|
133
|
+
attribute? :h_region, Types::String.optional
|
|
134
|
+
attribute? :form_of_housing, Types::String.optional
|
|
135
|
+
attribute? :household_type, Types::String.optional
|
|
136
|
+
attribute? :number_of_persons_on_address, Types::String.optional
|
|
137
|
+
attribute? :number_of_dogs_on_address, Types::String.optional
|
|
138
|
+
attribute? :has_dogs_on_address, Types::String.optional
|
|
139
|
+
attribute? :number_of_vehicles_on_address, Types::String.optional
|
|
140
|
+
attribute? :has_vehicles_on_address, Types::String.optional
|
|
141
|
+
attribute? :company_involvement, Types::String.optional
|
|
142
|
+
attribute? :number_of_companies_on_address, Types::String.optional
|
|
143
|
+
attribute? :gender, Types::String.optional
|
|
144
|
+
attribute? :age, Types::String.optional
|
|
145
|
+
attribute? :age_range, Types::String.optional
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
class PhoneNumberBlock < Dry::Struct
|
|
149
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
150
|
+
|
|
151
|
+
attribute? :phone_numbers, Types::Array.of(Types::String).optional
|
|
152
|
+
attribute? :phone_types, Types::Array.of(Types::String).optional
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
class PreviousAddressModel < Dry::Struct
|
|
156
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
157
|
+
|
|
158
|
+
attribute? :street, Types::String.optional
|
|
159
|
+
attribute? :zip_code, Types::String.optional
|
|
160
|
+
attribute? :city, Types::String.optional
|
|
161
|
+
attribute? :extended_address, Types::String.optional
|
|
162
|
+
attribute? :municipality, Types::String.optional
|
|
163
|
+
attribute? :county, Types::String.optional
|
|
164
|
+
attribute? :lkf, Types::String.optional
|
|
165
|
+
attribute? :moving_date, Types::String.optional
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class RegisteredAtAddressCompanyModel < Dry::Struct
|
|
169
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
170
|
+
|
|
171
|
+
attribute? :org_nr, Types::String.optional
|
|
172
|
+
attribute? :company_name, Types::String.optional
|
|
173
|
+
attribute? :street, Types::String.optional
|
|
174
|
+
attribute? :city, Types::String.optional
|
|
175
|
+
attribute? :company_code, Types::String.optional
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
class RegisteredAtAddressCompanyPhoneModel < Dry::Struct
|
|
179
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
180
|
+
|
|
181
|
+
attribute? :org_nr, Types::String.optional
|
|
182
|
+
attribute? :company_name, Types::String.optional
|
|
183
|
+
attribute? :city, Types::String.optional
|
|
184
|
+
attribute? :phone_number, Types::String.optional
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class RegisteredAtAddressPersonModel < Dry::Struct
|
|
188
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
189
|
+
|
|
190
|
+
attribute? :ssn, Types::String.optional
|
|
191
|
+
attribute? :first_name, Types::String.optional
|
|
192
|
+
attribute? :sure_name, Types::String.optional
|
|
193
|
+
attribute? :street, Types::String.optional
|
|
194
|
+
attribute? :city, Types::String.optional
|
|
195
|
+
attribute? :municipality, Types::String.optional
|
|
196
|
+
attribute? :age, Types::Integer.optional
|
|
197
|
+
attribute? :reg_date, Types::String.optional
|
|
198
|
+
attribute? :change_date, Types::String.optional
|
|
199
|
+
attribute? :apartment_number, Types::String.optional
|
|
200
|
+
attribute? :entrance, Types::String.optional
|
|
201
|
+
attribute? :extra_address_field, Types::String.optional
|
|
202
|
+
attribute? :street_name, Types::String.optional
|
|
203
|
+
attribute? :street_number, Types::String.optional
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
class RegisteredAtAddressPersonPhoneModel < Dry::Struct
|
|
207
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
208
|
+
|
|
209
|
+
attribute? :ssn, Types::String.optional
|
|
210
|
+
attribute? :first_name, Types::String.optional
|
|
211
|
+
attribute? :last_name, Types::String.optional
|
|
212
|
+
attribute? :city, Types::String.optional
|
|
213
|
+
attribute? :phone_number, Types::String.optional
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
class RegisteredDogAtAddressExtendedModel < Dry::Struct
|
|
217
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
218
|
+
|
|
219
|
+
attribute? :name, Types::String.optional
|
|
220
|
+
attribute? :race, Types::String.optional
|
|
221
|
+
attribute? :gender, Types::String.optional
|
|
222
|
+
attribute? :birth_date, Types::String.optional
|
|
223
|
+
attribute? :age, Types::String.optional
|
|
224
|
+
attribute? :updated_date, Types::String.optional
|
|
225
|
+
attribute? :chip_id, Types::String.optional
|
|
226
|
+
attribute? :owner_first_name, Types::String.optional
|
|
227
|
+
attribute? :owner_surname, Types::String.optional
|
|
228
|
+
attribute? :ssn, Types::String.optional
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class RegisteredDogAtAddressModel < Dry::Struct
|
|
232
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
233
|
+
|
|
234
|
+
attribute? :name, Types::String.optional
|
|
235
|
+
attribute? :race, Types::String.optional
|
|
236
|
+
attribute? :gender, Types::String.optional
|
|
237
|
+
attribute? :birth_date, Types::String.optional
|
|
238
|
+
attribute? :age, Types::String.optional
|
|
239
|
+
attribute? :updated_date, Types::String.optional
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
class RegisteredVehicleAtAdressExtendedModel < Dry::Struct
|
|
243
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
244
|
+
|
|
245
|
+
attribute? :brand, Types::String.optional
|
|
246
|
+
attribute? :model, Types::String.optional
|
|
247
|
+
attribute? :type_of_vehicle, Types::String.optional
|
|
248
|
+
attribute? :year, Types::String.optional
|
|
249
|
+
attribute? :retail_price, Types::String.optional
|
|
250
|
+
attribute? :financed, Types::Bool.optional
|
|
251
|
+
attribute? :lease, Types::Bool.optional
|
|
252
|
+
attribute? :fuel, Types::String.optional
|
|
253
|
+
attribute? :fuel2, Types::String.optional
|
|
254
|
+
attribute? :vehicle_status, Types::String.optional
|
|
255
|
+
attribute? :vehicle_status_date, Types::String.optional
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class RegisteredVehicleAtAdressModel < Dry::Struct
|
|
259
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
260
|
+
|
|
261
|
+
attribute? :brand, Types::String.optional
|
|
262
|
+
attribute? :model, Types::String.optional
|
|
263
|
+
attribute? :type_of_vehicle, Types::String.optional
|
|
264
|
+
attribute? :year, Types::String.optional
|
|
265
|
+
attribute? :retail_price, Types::String.optional
|
|
266
|
+
attribute? :financed, Types::Bool.optional
|
|
267
|
+
attribute? :lease, Types::Bool.optional
|
|
268
|
+
attribute? :fuel, Types::String.optional
|
|
269
|
+
attribute? :fuel2, Types::String.optional
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
class Remark < Dry::Struct
|
|
273
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
274
|
+
|
|
275
|
+
attribute? :date, Types::String.optional
|
|
276
|
+
attribute? :amount, Types::Float.optional
|
|
277
|
+
attribute? :creditor, Types::String.optional
|
|
278
|
+
attribute? :government, Types::String.optional
|
|
279
|
+
attribute? :type_of_remark, Types::String.optional
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
class RemarkExtendedBlock < Dry::Struct
|
|
283
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
284
|
+
|
|
285
|
+
attribute? :status, Types::String.optional
|
|
286
|
+
attribute? :has_debt_relief, Types::Bool.optional
|
|
287
|
+
attribute? :has_seizure, Types::Bool.optional
|
|
288
|
+
attribute? :has_real_estate_holding, Types::Bool.optional
|
|
289
|
+
attribute? :payment_remark_number, Types::Integer.optional
|
|
290
|
+
attribute? :payment_remark_sum, Types::Float.optional
|
|
291
|
+
attribute? :public_remark_number, Types::Integer.optional
|
|
292
|
+
attribute? :public_remark_sum, Types::Float.optional
|
|
293
|
+
attribute? :public_remark_t_vlicense_number, Types::Integer.optional
|
|
294
|
+
attribute? :public_remark_t_vlicense_sum, Types::Float.optional
|
|
295
|
+
attribute? :public_remark_parking_fee_number, Types::Integer.optional
|
|
296
|
+
attribute? :public_remark_parking_fee_sum, Types::Float.optional
|
|
297
|
+
attribute? :public_remark_alimony_number, Types::Integer.optional
|
|
298
|
+
attribute? :public_remark_alimony_sum, Types::Float.optional
|
|
299
|
+
attribute? :public_remark_tax_arrears_number, Types::Integer.optional
|
|
300
|
+
attribute? :public_remark_tax_arrears_sum, Types::Float.optional
|
|
301
|
+
attribute? :public_remark_student_loans_number, Types::Integer.optional
|
|
302
|
+
attribute? :public_remark_student_loans_sum, Types::Float.optional
|
|
303
|
+
attribute? :private_remark_number, Types::Integer.optional
|
|
304
|
+
attribute? :private_remark_amount, Types::Float.optional
|
|
305
|
+
attribute? :last_remark_date, Types::String.optional
|
|
306
|
+
attribute? :debt_number, Types::Integer.optional
|
|
307
|
+
attribute? :debt_sum, Types::Float.optional
|
|
308
|
+
attribute? :debt_public_remark_number, Types::Integer.optional
|
|
309
|
+
attribute? :debt_public_remark_sum, Types::Float.optional
|
|
310
|
+
attribute? :debt_private_remark_number, Types::Integer.optional
|
|
311
|
+
attribute? :debt_private_remark_sum, Types::Float.optional
|
|
312
|
+
attribute? :last_debt_date, Types::String.optional
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
class ResidentalBlock < Dry::Struct
|
|
316
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
317
|
+
|
|
318
|
+
attribute? :apartment_area, Types::Integer.optional
|
|
319
|
+
attribute? :apartment_category, Types::Integer.optional
|
|
320
|
+
attribute? :apartment_nr, Types::Integer.optional
|
|
321
|
+
attribute? :building_purpose, Types::Integer.optional
|
|
322
|
+
attribute? :building_type, Types::Integer.optional
|
|
323
|
+
attribute? :construction_year, Types::Integer.optional
|
|
324
|
+
attribute? :county_code, Types::String.optional
|
|
325
|
+
attribute? :municipality_code, Types::String.optional
|
|
326
|
+
attribute? :parish_code, Types::String.optional
|
|
327
|
+
attribute? :floor, Types::Float.optional
|
|
328
|
+
attribute? :floors, Types::Float.optional
|
|
329
|
+
attribute? :home_type, Types::String.optional
|
|
330
|
+
attribute? :house_nr, Types::Integer.optional
|
|
331
|
+
attribute? :kitchen_type, Types::Integer.optional
|
|
332
|
+
attribute? :letter, Types::String.optional
|
|
333
|
+
attribute? :number, Types::String.optional
|
|
334
|
+
attribute? :ownership_type, Types::String.optional
|
|
335
|
+
attribute? :postal_area, Types::String.optional
|
|
336
|
+
attribute? :postal_code, Types::String.optional
|
|
337
|
+
attribute? :property_key, Types::String.optional
|
|
338
|
+
attribute? :rooms, Types::Float.optional
|
|
339
|
+
attribute? :street, Types::String.optional
|
|
340
|
+
attribute? :type_code, Types::Integer.optional
|
|
341
|
+
attribute? :rt90x, Types::Float.optional
|
|
342
|
+
attribute? :rt90y, Types::Float.optional
|
|
343
|
+
attribute? :sweref99x, Types::Integer.optional
|
|
344
|
+
attribute? :sweref99y, Types::Integer.optional
|
|
345
|
+
attribute? :wgs84lat, Types::Float.optional
|
|
346
|
+
attribute? :wgs84lon, Types::Float.optional
|
|
347
|
+
attribute? :updated_at, Types::String.optional
|
|
348
|
+
attribute? :updated_from, Types::String.optional
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
class SSNStatusBlock < Dry::Struct
|
|
352
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
353
|
+
|
|
354
|
+
attribute? :ssn_status, Types::String.optional
|
|
355
|
+
attribute? :change_date, Types::String.optional
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
class SafenodePersonAnnualTaxRecordBlock < Dry::Struct
|
|
359
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
360
|
+
|
|
361
|
+
attribute? :ar_dekl, Types::Integer.optional
|
|
362
|
+
attribute? :ink_tj, Types::Float.optional
|
|
363
|
+
attribute? :ink_nrv_akt_tot, Types::Float.optional
|
|
364
|
+
attribute? :ink_nrv_pass_tot, Types::Float.optional
|
|
365
|
+
attribute? :tax_forv_inkomst, Types::Float.optional
|
|
366
|
+
attribute? :beskbar_forv_inkomst, Types::Float.optional
|
|
367
|
+
attribute? :overskott_kapital, Types::Float.optional
|
|
368
|
+
attribute? :underskott_kapital, Types::Float.optional
|
|
369
|
+
attribute? :sk_slut, Types::Float.optional
|
|
370
|
+
attribute? :ink_netto, Types::Float.optional
|
|
371
|
+
attribute? :skatt, Types::Float.optional
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
class SafenodePersonRemarkEntryBlock < Dry::Struct
|
|
375
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
376
|
+
|
|
377
|
+
attribute? :type, Types::String.optional
|
|
378
|
+
attribute? :date, Types::String.optional
|
|
379
|
+
attribute? :description, Types::String.optional
|
|
380
|
+
attribute? :amount, Types::Float.optional
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
class SafenodePersonRemarkSummaryBlock < Dry::Struct
|
|
384
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
385
|
+
|
|
386
|
+
attribute? :count, Types::Integer.optional
|
|
387
|
+
attribute? :total_amount, Types::Float.optional
|
|
388
|
+
attribute? :date_of_latest, Types::String.optional
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
class SafenodePersonSkuldsaldoBlock < Dry::Struct
|
|
392
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
393
|
+
|
|
394
|
+
attribute? :antal_a, Types::Integer.optional
|
|
395
|
+
attribute? :saldo_a, Types::Float.optional
|
|
396
|
+
attribute? :antal_e, Types::Integer.optional
|
|
397
|
+
attribute? :saldo_e, Types::Float.optional
|
|
398
|
+
attribute? :date, Types::String.optional
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
class SafenodePersonSkuldsaneringBlock < Dry::Struct
|
|
402
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
403
|
+
|
|
404
|
+
attribute? :started, Types::String.optional
|
|
405
|
+
attribute? :ended, Types::String.optional
|
|
406
|
+
end
|
|
407
|
+
|
|
408
|
+
class SpecialAddress < Dry::Struct
|
|
409
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
410
|
+
|
|
411
|
+
attribute? :co, Types::String.optional
|
|
412
|
+
attribute? :street, Types::String.optional
|
|
413
|
+
attribute? :zip_code, Types::String.optional
|
|
414
|
+
attribute? :city, Types::String.optional
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
class TaxInformationPreviouslyApprovedBlock < Dry::Struct
|
|
418
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
419
|
+
|
|
420
|
+
attribute? :sum_of_income, Types::Float.optional
|
|
421
|
+
attribute? :taxated_acquisitied_income, Types::Float.optional
|
|
422
|
+
attribute? :income_through_service, Types::Float.optional
|
|
423
|
+
attribute? :income_through_capital, Types::Float.optional
|
|
424
|
+
attribute? :deficit_of_capital, Types::Float.optional
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
class CompanyInvolvementBlock < Dry::Struct
|
|
428
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
429
|
+
|
|
430
|
+
attribute? :number_of_company_involvements, Types::Array.of(CompanyInvolvement).optional
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
class CompanyInvolvementExtendedBlock < Dry::Struct
|
|
434
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
435
|
+
|
|
436
|
+
attribute? :number_of_company_involvements_extended, Types::Array.of(CompanyInvolvementExtended).optional
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
class CompanyInvolvementHistoryBlock < Dry::Struct
|
|
440
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
441
|
+
|
|
442
|
+
attribute? :company_involvement_history_list, Types::Array.of(CompanyInvolvementHistory).optional
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
class PreviousAddressBlock < Dry::Struct
|
|
446
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
447
|
+
|
|
448
|
+
attribute? :last_previous_address, PreviousAddressModel.optional
|
|
449
|
+
attribute? :current_address, CurrentAddressModel.optional
|
|
450
|
+
attribute? :last_change, Types::String.optional
|
|
451
|
+
attribute? :number_of_moves, Types::Integer.optional
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
class PreviousAdressesBlock < Dry::Struct
|
|
455
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
456
|
+
|
|
457
|
+
attribute? :previous_adresses, Types::Array.of(PreviousAddressModel).optional
|
|
458
|
+
attribute? :current_address, CurrentAddressModel.optional
|
|
459
|
+
attribute? :last_change, Types::String.optional
|
|
460
|
+
attribute? :number_of_moves, Types::Integer.optional
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
class RegisteredAtAddressBlock < Dry::Struct
|
|
464
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
465
|
+
|
|
466
|
+
attribute? :persons, Types::Array.of(RegisteredAtAddressPersonModel).optional
|
|
467
|
+
attribute? :companies, Types::Array.of(RegisteredAtAddressCompanyModel).optional
|
|
468
|
+
attribute? :company_phones, Types::Array.of(RegisteredAtAddressCompanyPhoneModel).optional
|
|
469
|
+
attribute? :person_phones, Types::Array.of(RegisteredAtAddressPersonPhoneModel).optional
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
class RegisteredDogsAtAddressBlock < Dry::Struct
|
|
473
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
474
|
+
|
|
475
|
+
attribute? :number_of_dogs_registered_at_address, Types::Integer.optional
|
|
476
|
+
attribute? :number_of_dogs_registered_at_municipality, Types::Integer.optional
|
|
477
|
+
attribute? :number_of_dogs_registered_per_resident, Types::Integer.optional
|
|
478
|
+
attribute? :dogs, Types::Array.of(RegisteredDogAtAddressModel).optional
|
|
479
|
+
end
|
|
480
|
+
|
|
481
|
+
class RegisteredDogsAtAddressExtendedBlock < Dry::Struct
|
|
482
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
483
|
+
|
|
484
|
+
attribute? :number_of_dogs_registered_at_address, Types::Integer.optional
|
|
485
|
+
attribute? :number_of_dogs_registered_at_municipality, Types::Integer.optional
|
|
486
|
+
attribute? :number_of_dogs_registered_per_resident, Types::Integer.optional
|
|
487
|
+
attribute? :dogs, Types::Array.of(RegisteredDogAtAddressExtendedModel).optional
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
class RegisteredVehiclesAtAddressBlock < Dry::Struct
|
|
491
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
492
|
+
|
|
493
|
+
attribute? :number_of_cars, Types::Integer.optional
|
|
494
|
+
attribute? :number_of_motorcycles, Types::Integer.optional
|
|
495
|
+
attribute? :number_of_other_vehicles, Types::Integer.optional
|
|
496
|
+
attribute? :updated_date, Types::String.optional
|
|
497
|
+
attribute? :vehicle_last_checked, Types::String.optional
|
|
498
|
+
attribute? :vehicles, Types::Array.of(RegisteredVehicleAtAdressModel).optional
|
|
499
|
+
end
|
|
500
|
+
|
|
501
|
+
class RegisteredVehiclesAtAddressExtendedBlock < Dry::Struct
|
|
502
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
503
|
+
|
|
504
|
+
attribute? :number_of_cars, Types::Integer.optional
|
|
505
|
+
attribute? :number_of_motorcycles, Types::Integer.optional
|
|
506
|
+
attribute? :number_of_other_vehicles, Types::Integer.optional
|
|
507
|
+
attribute? :updated_date, Types::String.optional
|
|
508
|
+
attribute? :vehicle_last_checked, Types::String.optional
|
|
509
|
+
attribute? :vehicles, Types::Array.of(RegisteredVehicleAtAdressExtendedModel).optional
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
class RemarksFiveLatestBlock < Dry::Struct
|
|
513
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
514
|
+
|
|
515
|
+
attribute? :remarks, Types::Array.of(Remark).optional
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
class SafenodePersonCreditReportBlock < Dry::Struct
|
|
519
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
520
|
+
|
|
521
|
+
attribute? :blocked, Types::Bool.optional
|
|
522
|
+
attribute? :status, Types::String.optional
|
|
523
|
+
attribute? :summary_remarks, SafenodePersonRemarkSummaryBlock.optional
|
|
524
|
+
attribute? :summary_emal, SafenodePersonRemarkSummaryBlock.optional
|
|
525
|
+
attribute? :summary_amal, SafenodePersonRemarkSummaryBlock.optional
|
|
526
|
+
attribute? :summary_tredskodomar, SafenodePersonRemarkSummaryBlock.optional
|
|
527
|
+
attribute? :summary_utmatningar, SafenodePersonRemarkSummaryBlock.optional
|
|
528
|
+
attribute? :current_skuldsaldo, SafenodePersonSkuldsaldoBlock.optional
|
|
529
|
+
attribute? :latest_skuldsaldo, SafenodePersonSkuldsaldoBlock.optional
|
|
530
|
+
attribute? :skuldsaldo_history, Types::Array.of(SafenodePersonSkuldsaldoBlock).optional
|
|
531
|
+
attribute? :skuldsanering, SafenodePersonSkuldsaneringBlock.optional
|
|
532
|
+
attribute? :konkurs, Types::String.optional
|
|
533
|
+
attribute? :forvaltarskap, Types::String.optional
|
|
534
|
+
attribute? :remarks, Types::Array.of(SafenodePersonRemarkEntryBlock).optional
|
|
535
|
+
attribute? :annual_tax_records, Types::Array.of(SafenodePersonAnnualTaxRecordBlock).optional
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
class SafenodePersonRemarkBlock < Dry::Struct
|
|
539
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
540
|
+
|
|
541
|
+
attribute? :blocked, Types::Bool.optional
|
|
542
|
+
attribute? :status, Types::String.optional
|
|
543
|
+
attribute? :summary_remarks, SafenodePersonRemarkSummaryBlock.optional
|
|
544
|
+
attribute? :forvaltarskap, Types::String.optional
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
class SafenodePersonRemarkExtendedBlock < Dry::Struct
|
|
548
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
549
|
+
|
|
550
|
+
attribute? :blocked, Types::Bool.optional
|
|
551
|
+
attribute? :status, Types::String.optional
|
|
552
|
+
attribute? :summary_remarks, SafenodePersonRemarkSummaryBlock.optional
|
|
553
|
+
attribute? :summary_emal, SafenodePersonRemarkSummaryBlock.optional
|
|
554
|
+
attribute? :summary_amal, SafenodePersonRemarkSummaryBlock.optional
|
|
555
|
+
attribute? :summary_tredskodomar, SafenodePersonRemarkSummaryBlock.optional
|
|
556
|
+
attribute? :summary_utmatningar, SafenodePersonRemarkSummaryBlock.optional
|
|
557
|
+
attribute? :current_skuldsaldo, SafenodePersonSkuldsaldoBlock.optional
|
|
558
|
+
attribute? :latest_skuldsaldo, SafenodePersonSkuldsaldoBlock.optional
|
|
559
|
+
attribute? :skuldsaldo_history, Types::Array.of(SafenodePersonSkuldsaldoBlock).optional
|
|
560
|
+
attribute? :skuldsanering, SafenodePersonSkuldsaneringBlock.optional
|
|
561
|
+
attribute? :konkurs, Types::String.optional
|
|
562
|
+
attribute? :forvaltarskap, Types::String.optional
|
|
563
|
+
attribute? :remarks, Types::Array.of(SafenodePersonRemarkEntryBlock).optional
|
|
564
|
+
end
|
|
565
|
+
|
|
566
|
+
class SafenodePersonTaxInformationBlock < Dry::Struct
|
|
567
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
568
|
+
|
|
569
|
+
attribute? :blocked, Types::Bool.optional
|
|
570
|
+
attribute? :status, Types::String.optional
|
|
571
|
+
attribute? :annual_tax_records, Types::Array.of(SafenodePersonAnnualTaxRecordBlock).optional
|
|
572
|
+
attribute? :skuldsanering, SafenodePersonSkuldsaneringBlock.optional
|
|
573
|
+
attribute? :konkurs, Types::String.optional
|
|
574
|
+
attribute? :forvaltarskap, Types::String.optional
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
class SpecialAddressBlock < Dry::Struct
|
|
578
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
579
|
+
|
|
580
|
+
attribute? :special_address, SpecialAddress.optional
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
class TaxInformationBlock < Dry::Struct
|
|
584
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
585
|
+
|
|
586
|
+
attribute? :tax_year, Types::Integer.optional
|
|
587
|
+
attribute? :sum_of_income, Types::Float.optional
|
|
588
|
+
attribute? :taxated_acquisitied_income, Types::Float.optional
|
|
589
|
+
attribute? :income_through_service, Types::Float.optional
|
|
590
|
+
attribute? :income_through_capital, Types::Float.optional
|
|
591
|
+
attribute? :deficit_of_capital, Types::Float.optional
|
|
592
|
+
attribute? :has_real_estate_holding, Types::Bool.optional
|
|
593
|
+
attribute? :status, Types::String.optional
|
|
594
|
+
attribute? :events, Types::Array.of(EventModel).optional
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
end
|
|
598
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "common"
|
|
4
|
+
|
|
5
|
+
module Checkbiz
|
|
6
|
+
module Types
|
|
7
|
+
|
|
8
|
+
class PersonInformationListPersonBlock < Dry::Struct
|
|
9
|
+
transform_keys { |key| CAMEL.parse(key) }
|
|
10
|
+
|
|
11
|
+
attribute? :ssn_status, Types::String.optional
|
|
12
|
+
attribute? :name, PersonNameBlock.optional
|
|
13
|
+
attribute? :basic, PersonBasicBlock.optional
|
|
14
|
+
attribute? :ssn, SSNBlock.optional
|
|
15
|
+
attribute? :idnummer, IdnummerBlock.optional
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
end
|
|
19
|
+
end
|