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,140 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class AcadrMatchlvl < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :id, Types::String.optional
12
+ attribute? :name, Types::String.optional
13
+ attribute? :desc, Types::String.optional
14
+ end
15
+
16
+ class ChlCouFac < Dry::Struct
17
+ transform_keys { |key| CAMEL.parse(key) }
18
+
19
+ attribute? :id, Types::String.optional
20
+ attribute? :name, Types::String.optional
21
+ attribute? :desc, Types::String.optional
22
+ end
23
+
24
+ class CnztypG3 < Dry::Struct
25
+ transform_keys { |key| CAMEL.parse(key) }
26
+
27
+ attribute? :id, Types::String.optional
28
+ attribute? :name, Types::String.optional
29
+ attribute? :desc, Types::String.optional
30
+ end
31
+
32
+ class EduFac < Dry::Struct
33
+ transform_keys { |key| CAMEL.parse(key) }
34
+
35
+ attribute? :id, Types::String.optional
36
+ attribute? :name, Types::String.optional
37
+ attribute? :desc, Types::String.optional
38
+ end
39
+
40
+ class FamSizeFac < Dry::Struct
41
+ transform_keys { |key| CAMEL.parse(key) }
42
+
43
+ attribute? :id, Types::String.optional
44
+ attribute? :name, Types::String.optional
45
+ attribute? :desc, Types::String.optional
46
+ end
47
+
48
+ class OriginFac < Dry::Struct
49
+ transform_keys { |key| CAMEL.parse(key) }
50
+
51
+ attribute? :id, Types::String.optional
52
+ attribute? :name, Types::String.optional
53
+ attribute? :desc, Types::String.optional
54
+ end
55
+
56
+ class PcodeMatchlvl < Dry::Struct
57
+ transform_keys { |key| CAMEL.parse(key) }
58
+
59
+ attribute? :id, Types::String.optional
60
+ attribute? :name, Types::String.optional
61
+ attribute? :desc, Types::String.optional
62
+ end
63
+
64
+ class PurpowFac < Dry::Struct
65
+ transform_keys { |key| CAMEL.parse(key) }
66
+
67
+ attribute? :id, Types::String.optional
68
+ attribute? :name, Types::String.optional
69
+ attribute? :desc, Types::String.optional
70
+ end
71
+
72
+ class ResibldyFac < Dry::Struct
73
+ transform_keys { |key| CAMEL.parse(key) }
74
+
75
+ attribute? :id, Types::String.optional
76
+ attribute? :name, Types::String.optional
77
+ attribute? :desc, Types::String.optional
78
+ end
79
+
80
+ class TenureFac < Dry::Struct
81
+ transform_keys { |key| CAMEL.parse(key) }
82
+
83
+ attribute? :id, Types::String.optional
84
+ attribute? :name, Types::String.optional
85
+ attribute? :desc, Types::String.optional
86
+ end
87
+
88
+ class UnadrMatchlvl < Dry::Struct
89
+ transform_keys { |key| CAMEL.parse(key) }
90
+
91
+ attribute? :id, Types::String.optional
92
+ attribute? :name, Types::String.optional
93
+ attribute? :desc, Types::String.optional
94
+ end
95
+
96
+ class UnadrMatchlvlDetail < Dry::Struct
97
+ transform_keys { |key| CAMEL.parse(key) }
98
+
99
+ attribute? :id, Types::String.optional
100
+ attribute? :name, Types::String.optional
101
+ attribute? :desc, Types::String.optional
102
+ end
103
+
104
+ class Matchinfo < Dry::Struct
105
+ transform_keys { |key| CAMEL.parse(key) }
106
+
107
+ attribute? :unadr_matchlvl, UnadrMatchlvl.optional
108
+ attribute? :unadr_matchlvl_detail, UnadrMatchlvlDetail.optional
109
+ attribute? :acadr_matchlvl, AcadrMatchlvl.optional
110
+ attribute? :pcode_matchlvl, PcodeMatchlvl.optional
111
+ end
112
+
113
+ class Values < Dry::Struct
114
+ transform_keys { |key| CAMEL.parse(key) }
115
+
116
+ attribute? :purpow_fac, PurpowFac.optional
117
+ attribute? :edu_fac, EduFac.optional
118
+ attribute? :tenure_fac, TenureFac.optional
119
+ attribute? :cnztyp_g3, CnztypG3.optional
120
+ attribute? :fam_size_fac, FamSizeFac.optional
121
+ attribute? :chl_cou_fac, ChlCouFac.optional
122
+ attribute? :resibldy_fac, ResibldyFac.optional
123
+ attribute? :origin_fac, OriginFac.optional
124
+ end
125
+
126
+ class Match < Dry::Struct
127
+ transform_keys { |key| CAMEL.parse(key) }
128
+
129
+ attribute? :values, Values.optional
130
+ end
131
+
132
+ class GeomaticSEBlock < Dry::Struct
133
+ transform_keys { |key| CAMEL.parse(key) }
134
+
135
+ attribute? :matchinfo, Matchinfo.optional
136
+ attribute? :match, Match.optional
137
+ end
138
+
139
+ end
140
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class LookupNoSeries < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :name, Types::String.optional
12
+ attribute? :figures, Types::Array.of(Types::Float).optional
13
+ end
14
+
15
+ class LookupNoShareHolder < Dry::Struct
16
+ transform_keys { |key| CAMEL.parse(key) }
17
+
18
+ attribute? :id, Types::String.optional
19
+ attribute? :share, Types::Float.optional
20
+ attribute? :name, Types::String.optional
21
+ attribute? :birth_year, Types::Integer.optional
22
+ attribute? :organization_number, Types::String.optional
23
+ attribute? :country, Types::String.optional
24
+ end
25
+
26
+ class LookupNoFinancialData < Dry::Struct
27
+ transform_keys { |key| CAMEL.parse(key) }
28
+
29
+ attribute? :type, Types::String.optional
30
+ attribute? :name, Types::String.optional
31
+ attribute? :currency, Types::Array.of(Types::String).optional
32
+ attribute? :years, Types::Array.of(Types::Integer).optional
33
+ attribute? :series, Types::Array.of(LookupNoSeries).optional
34
+ end
35
+
36
+ class LookupCompanyNoContact < Dry::Struct
37
+ transform_keys { |key| CAMEL.parse(key) }
38
+
39
+ attribute? :share_holders, Types::Array.of(LookupNoShareHolder).optional
40
+ attribute? :financial_data, Types::Array.of(LookupNoFinancialData).optional
41
+ attribute? :organization_number, Types::String.optional
42
+ attribute? :legal_information, LookupNoLegalInformation.optional
43
+ attribute? :industries, Types::Array.of(LookupNoIndustry).optional
44
+ attribute? :nace_industries, Types::Array.of(LookupNoNaceIndustry).optional
45
+ attribute? :credit_rating, LookupNoCreditRating.optional
46
+ attribute? :roles, Types::Array.of(LookupNoRole).optional
47
+ attribute? :updated, Types::String.optional
48
+ attribute? :type, Types::String.optional
49
+ attribute? :id, Types::String.optional
50
+ attribute? :name, Types::String.optional
51
+ attribute? :geography, LookupNoGeography.optional
52
+ attribute? :contact_points, Types::Array.of(LookupNoContactPoint).optional
53
+ attribute? :info_url, Types::String.optional
54
+ end
55
+
56
+ end
57
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class LookupIdNoContact < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :first_name, Types::String.optional
12
+ attribute? :last_name, Types::String.optional
13
+ attribute? :type, Types::String.optional
14
+ attribute? :id, Types::String.optional
15
+ attribute? :name, Types::String.optional
16
+ attribute? :geography, LookupNoGeography.optional
17
+ attribute? :contact_points, Types::Array.of(LookupNoContactPoint).optional
18
+ attribute? :info_url, Types::String.optional
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class LookupPhoneNoContact < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :first_name, Types::String.optional
12
+ attribute? :last_name, Types::String.optional
13
+ attribute? :organization_number, Types::String.optional
14
+ attribute? :legal_information, LookupNoLegalInformation.optional
15
+ attribute? :industries, Types::Array.of(LookupNoIndustry).optional
16
+ attribute? :nace_industries, Types::Array.of(LookupNoNaceIndustry).optional
17
+ attribute? :credti_rating, LookupNoCreditRating.optional
18
+ attribute? :roles, Types::Array.of(LookupNoRole).optional
19
+ attribute? :updated, Types::String.optional
20
+ attribute? :type, Types::String.optional
21
+ attribute? :id, Types::String.optional
22
+ attribute? :name, Types::String.optional
23
+ attribute? :geography, LookupNoGeography.optional
24
+ attribute? :contact_points, Types::Array.of(LookupNoContactPoint).optional
25
+ attribute? :info_url, Types::String.optional
26
+ end
27
+
28
+ end
29
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class PackageCallsPackageBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :package_name, Types::String.optional
12
+ attribute? :number_of_calls_last_year, Types::Integer.optional
13
+ attribute? :number_of_calls_this_year, Types::Integer.optional
14
+ attribute? :number_of_calls_last_month, Types::Integer.optional
15
+ attribute? :number_of_calls_this_month, Types::Integer.optional
16
+ end
17
+
18
+ class PackageCallsProductBlock < Dry::Struct
19
+ transform_keys { |key| CAMEL.parse(key) }
20
+
21
+ attribute? :product_name, Types::String.optional
22
+ attribute? :product_path, Types::String.optional
23
+ attribute? :packages, Types::Array.of(PackageCallsPackageBlock).optional
24
+ end
25
+
26
+ end
27
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class PackageInformationPackageBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :package_name, Types::String.optional
12
+ end
13
+
14
+ class PackageInformationProductBlock < Dry::Struct
15
+ transform_keys { |key| CAMEL.parse(key) }
16
+
17
+ attribute? :product_name, Types::String.optional
18
+ attribute? :product_path, Types::String.optional
19
+ attribute? :packages, Types::Array.of(PackageInformationPackageBlock).optional
20
+ end
21
+
22
+ end
23
+ 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 PersonAdvancedSearchPositionBlock < 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 RegisteredDogsModel < Dry::Struct
16
+ transform_keys { |key| CAMEL.parse(key) }
17
+
18
+ attribute? :name, Types::String.optional
19
+ attribute? :race, Types::String.optional
20
+ attribute? :gender, Types::String.optional
21
+ attribute? :birth_date, Types::String.optional
22
+ attribute? :age, Types::String.optional
23
+ attribute? :updated_date, Types::String.optional
24
+ attribute? :chip_id, Types::String.optional
25
+ attribute? :ssn, Types::String.optional
26
+ end
27
+
28
+ class PersonAdvancedSearchBasicBlockRecord < Dry::Struct
29
+ transform_keys { |key| CAMEL.parse(key) }
30
+
31
+ attribute? :first_name, Types::String.optional
32
+ attribute? :given_name, Types::String.optional
33
+ attribute? :last_name, Types::String.optional
34
+ attribute? :street, Types::String.optional
35
+ attribute? :zip_code, Types::String.optional
36
+ attribute? :city, Types::String.optional
37
+ attribute? :municipality, Types::String.optional
38
+ attribute? :municipality_code, Types::String.optional
39
+ attribute? :county, Types::String.optional
40
+ attribute? :county_code, Types::String.optional
41
+ attribute? :age, Types::Integer.optional
42
+ attribute? :gender, Types::String.optional
43
+ attribute? :is_married, Types::Bool.optional
44
+ attribute? :phone_numbers, Types::Array.of(Types::String).optional
45
+ attribute? :position, PersonAdvancedSearchPositionBlock.optional
46
+ end
47
+
48
+ class PersonAdvancedSearchExtendedBlockRecord < Dry::Struct
49
+ transform_keys { |key| CAMEL.parse(key) }
50
+
51
+ attribute? :ssn, Types::String.optional
52
+ attribute? :first_name, Types::String.optional
53
+ attribute? :given_name, Types::String.optional
54
+ attribute? :last_name, Types::String.optional
55
+ attribute? :street, Types::String.optional
56
+ attribute? :zip_code, Types::String.optional
57
+ attribute? :city, Types::String.optional
58
+ attribute? :municipality, Types::String.optional
59
+ attribute? :municipality_code, Types::String.optional
60
+ attribute? :county, Types::String.optional
61
+ attribute? :county_code, Types::String.optional
62
+ attribute? :age, Types::Integer.optional
63
+ attribute? :gender, Types::String.optional
64
+ attribute? :is_married, Types::Bool.optional
65
+ attribute? :phone_numbers, Types::Array.of(Types::String).optional
66
+ attribute? :position, PersonAdvancedSearchPositionBlock.optional
67
+ attribute? :dogs, Types::Array.of(RegisteredDogsModel).optional
68
+ end
69
+
70
+ class PersonAdvancedSearchIdBlockRecord < Dry::Struct
71
+ transform_keys { |key| CAMEL.parse(key) }
72
+
73
+ attribute? :idnummer, Types::String.optional
74
+ attribute? :id_nr, Types::String.optional
75
+ attribute? :first_name, Types::String.optional
76
+ attribute? :given_name, Types::String.optional
77
+ attribute? :last_name, Types::String.optional
78
+ attribute? :street, Types::String.optional
79
+ attribute? :zip_code, Types::String.optional
80
+ attribute? :city, Types::String.optional
81
+ attribute? :municipality, Types::String.optional
82
+ attribute? :municipality_code, Types::String.optional
83
+ attribute? :county, Types::String.optional
84
+ attribute? :county_code, Types::String.optional
85
+ attribute? :age, Types::Integer.optional
86
+ attribute? :gender, Types::String.optional
87
+ attribute? :is_married, Types::Bool.optional
88
+ attribute? :phone_numbers, Types::Array.of(Types::String).optional
89
+ attribute? :position, PersonAdvancedSearchPositionBlock.optional
90
+ end
91
+
92
+ class PersonAdvancedSearchBasicBlock < Dry::Struct
93
+ transform_keys { |key| CAMEL.parse(key) }
94
+
95
+ attribute? :records_returned, Types::Integer.optional
96
+ attribute? :total_records_found, Types::Integer.optional
97
+ attribute? :records, Types::Array.of(PersonAdvancedSearchBasicBlockRecord).optional
98
+ end
99
+
100
+ class PersonAdvancedSearchExtendedBlock < Dry::Struct
101
+ transform_keys { |key| CAMEL.parse(key) }
102
+
103
+ attribute? :records_returned, Types::Integer.optional
104
+ attribute? :total_records_found, Types::Integer.optional
105
+ attribute? :records, Types::Array.of(PersonAdvancedSearchExtendedBlockRecord).optional
106
+ end
107
+
108
+ class PersonAdvancedSearchIdBlock < Dry::Struct
109
+ transform_keys { |key| CAMEL.parse(key) }
110
+
111
+ attribute? :records_returned, Types::Integer.optional
112
+ attribute? :total_records_found, Types::Integer.optional
113
+ attribute? :records, Types::Array.of(PersonAdvancedSearchIdBlockRecord).optional
114
+ end
115
+
116
+ end
117
+ end
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class PersonValidationFault < 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 PersonValidationFaultV2 < 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 PersonCreditTemplateBlock < Dry::Struct
27
+ transform_keys { |key| CAMEL.parse(key) }
28
+
29
+ attribute? :person_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(PersonValidationFault).optional
33
+ attribute? :examinations, Types::Array.of(PersonValidationFault).optional
34
+ attribute? :official_first_name, Types::String.optional
35
+ attribute? :official_given_name, Types::String.optional
36
+ attribute? :official_last_name, Types::String.optional
37
+ attribute? :official_address, Types::String.optional
38
+ attribute? :official_zip_code, Types::String.optional
39
+ attribute? :official_city, Types::String.optional
40
+ attribute? :template_name, Types::String.optional
41
+ end
42
+
43
+ class PersonCreditTemplateBlockV2 < Dry::Struct
44
+ transform_keys { |key| CAMEL.parse(key) }
45
+
46
+ attribute? :person_number, Types::String.optional
47
+ attribute? :validation_result, Types::Integer.optional
48
+ attribute? :validation_result_text, Types::String.optional
49
+ attribute? :rejections, Types::Array.of(PersonValidationFaultV2).optional
50
+ attribute? :examinations, Types::Array.of(PersonValidationFaultV2).optional
51
+ attribute? :official_first_name, Types::String.optional
52
+ attribute? :official_given_name, Types::String.optional
53
+ attribute? :official_last_name, Types::String.optional
54
+ attribute? :official_address, Types::String.optional
55
+ attribute? :official_zip_code, Types::String.optional
56
+ attribute? :official_city, Types::String.optional
57
+ attribute? :template_name, Types::String.optional
58
+ end
59
+
60
+ end
61
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "common"
4
+
5
+ module Checkbiz
6
+ module Types
7
+
8
+ class PersonEventBasicBlock < Dry::Struct
9
+ transform_keys { |key| CAMEL.parse(key) }
10
+
11
+ attribute? :ssn, Types::String.optional
12
+ attribute? :ssn_status, Types::String.optional
13
+ attribute? :event_date, Types::String.optional
14
+ attribute? :first_name, Types::String.optional
15
+ attribute? :last_name, Types::String.optional
16
+ attribute? :given_name, Types::String.optional
17
+ attribute? :street, Types::String.optional
18
+ attribute? :zip_code, Types::String.optional
19
+ attribute? :city, Types::String.optional
20
+ attribute? :municipality, Types::String.optional
21
+ attribute? :municipality_code, Types::String.optional
22
+ end
23
+
24
+ class PersonEventKeyBlock < Dry::Struct
25
+ transform_keys { |key| CAMEL.parse(key) }
26
+
27
+ attribute? :ssn, Types::String.optional
28
+ attribute? :ssn_status, Types::String.optional
29
+ attribute? :event_date, Types::String.optional
30
+ end
31
+
32
+ end
33
+ end