checkbiz 1.0.0 → 2.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 (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +52 -0
  3. data/LICENSE.md +21 -0
  4. data/README.md +43 -117
  5. data/checkbiz.gemspec +8 -5
  6. data/lib/checkbiz/auth/access_token.rb +60 -0
  7. data/lib/checkbiz/auth/bearer.rb +21 -0
  8. data/lib/checkbiz/company.rb +26 -0
  9. data/lib/checkbiz/error_translation.rb +21 -0
  10. data/lib/checkbiz/person.rb +43 -0
  11. data/lib/checkbiz/resource.rb +15 -13
  12. data/lib/checkbiz/version.rb +1 -1
  13. data/lib/checkbiz.rb +66 -10
  14. metadata +36 -103
  15. data/lib/checkbiz/resources/address_information.rb +0 -17
  16. data/lib/checkbiz/resources/bolagsverket.rb +0 -17
  17. data/lib/checkbiz/resources/company_annual_report.rb +0 -13
  18. data/lib/checkbiz/resources/company_annual_reports.rb +0 -13
  19. data/lib/checkbiz/resources/company_articles_of_association.rb +0 -13
  20. data/lib/checkbiz/resources/company_autocomplete.rb +0 -13
  21. data/lib/checkbiz/resources/company_beneficial_owner.rb +0 -15
  22. data/lib/checkbiz/resources/company_certificates_of_registration.rb +0 -13
  23. data/lib/checkbiz/resources/company_credit_template.rb +0 -23
  24. data/lib/checkbiz/resources/company_event.rb +0 -29
  25. data/lib/checkbiz/resources/company_information.rb +0 -41
  26. data/lib/checkbiz/resources/company_information_list.rb +0 -14
  27. data/lib/checkbiz/resources/company_search.rb +0 -13
  28. data/lib/checkbiz/resources/company_search_advanced.rb +0 -13
  29. data/lib/checkbiz/resources/company_worksite.rb +0 -13
  30. data/lib/checkbiz/resources/custom_list.rb +0 -31
  31. data/lib/checkbiz/resources/data_factory_person_search.rb +0 -14
  32. data/lib/checkbiz/resources/extended_search_no.rb +0 -14
  33. data/lib/checkbiz/resources/geomatics.rb +0 -13
  34. data/lib/checkbiz/resources/heartbeat.rb +0 -9
  35. data/lib/checkbiz/resources/lookup_company_no.rb +0 -14
  36. data/lib/checkbiz/resources/lookup_id_no.rb +0 -14
  37. data/lib/checkbiz/resources/lookup_phone_no.rb +0 -14
  38. data/lib/checkbiz/resources/nix.rb +0 -11
  39. data/lib/checkbiz/resources/package_calls.rb +0 -13
  40. data/lib/checkbiz/resources/package_information.rb +0 -13
  41. data/lib/checkbiz/resources/person_beneficial_owner.rb +0 -24
  42. data/lib/checkbiz/resources/person_credit_template.rb +0 -23
  43. data/lib/checkbiz/resources/person_event.rb +0 -18
  44. data/lib/checkbiz/resources/person_information.rb +0 -47
  45. data/lib/checkbiz/resources/person_information_list.rb +0 -14
  46. data/lib/checkbiz/resources/person_search.rb +0 -15
  47. data/lib/checkbiz/resources/person_search_advanced.rb +0 -15
  48. data/lib/checkbiz/resources/person_verify.rb +0 -15
  49. data/lib/checkbiz/resources/pts_info.rb +0 -13
  50. data/lib/checkbiz/resources/safenode_company_credit_report.rb +0 -14
  51. data/lib/checkbiz/resources/safenode_company_remark_control.rb +0 -14
  52. data/lib/checkbiz/resources/safenode_person_credit_report.rb +0 -14
  53. data/lib/checkbiz/resources/safenode_person_remark_control.rb +0 -14
  54. data/lib/checkbiz/resources/search_no.rb +0 -14
  55. data/lib/checkbiz/resources/signatory.rb +0 -15
  56. data/lib/checkbiz/resources/spar.rb +0 -13
  57. data/lib/checkbiz/resources/statistics.rb +0 -14
  58. data/lib/checkbiz/resources/subscriber.rb +0 -17
  59. data/lib/checkbiz/resources/subscriber_list.rb +0 -16
  60. data/lib/checkbiz/resources/url.rb +0 -16
  61. data/lib/checkbiz/resources/url_search.rb +0 -16
  62. data/lib/checkbiz/types/address_information.rb +0 -136
  63. data/lib/checkbiz/types/bolagsverket.rb +0 -1012
  64. data/lib/checkbiz/types/common.rb +0 -503
  65. data/lib/checkbiz/types/company_advanced_search.rb +0 -38
  66. data/lib/checkbiz/types/company_annual_reports.rb +0 -17
  67. data/lib/checkbiz/types/company_autocomplete.rb +0 -25
  68. data/lib/checkbiz/types/company_credit_template.rb +0 -54
  69. data/lib/checkbiz/types/company_event.rb +0 -37
  70. data/lib/checkbiz/types/company_information.rb +0 -460
  71. data/lib/checkbiz/types/company_information_list.rb +0 -15
  72. data/lib/checkbiz/types/company_search.rb +0 -38
  73. data/lib/checkbiz/types/company_worksite.rb +0 -18
  74. data/lib/checkbiz/types/custom_list_add.rb +0 -16
  75. data/lib/checkbiz/types/custom_list_get.rb +0 -17
  76. data/lib/checkbiz/types/data_factory_person_search.rb +0 -117
  77. data/lib/checkbiz/types/geomatic.rb +0 -140
  78. data/lib/checkbiz/types/lookup_company_no.rb +0 -57
  79. data/lib/checkbiz/types/lookup_id_no.rb +0 -22
  80. data/lib/checkbiz/types/lookup_phone_no.rb +0 -29
  81. data/lib/checkbiz/types/package_calls.rb +0 -27
  82. data/lib/checkbiz/types/package_information.rb +0 -23
  83. data/lib/checkbiz/types/person_advanced_search.rb +0 -117
  84. data/lib/checkbiz/types/person_credit_template.rb +0 -61
  85. data/lib/checkbiz/types/person_event.rb +0 -33
  86. data/lib/checkbiz/types/person_information.rb +0 -598
  87. data/lib/checkbiz/types/person_information_list.rb +0 -19
  88. data/lib/checkbiz/types/person_search.rb +0 -88
  89. data/lib/checkbiz/types/person_verify.rb +0 -61
  90. data/lib/checkbiz/types/pts.rb +0 -15
  91. data/lib/checkbiz/types/safenode_company_credit_report.rb +0 -50
  92. data/lib/checkbiz/types/safenode_company_remark_control.rb +0 -29
  93. data/lib/checkbiz/types/safenode_person_credit_report.rb +0 -49
  94. data/lib/checkbiz/types/safenode_person_remark_control.rb +0 -28
  95. data/lib/checkbiz/types/signatory.rb +0 -40
  96. data/lib/checkbiz/types/spar.rb +0 -107
  97. data/lib/checkbiz/types/statistics.rb +0 -33
  98. data/lib/checkbiz/types/subscriber.rb +0 -68
  99. data/lib/checkbiz/types/subscriber_list.rb +0 -49
  100. data/lib/checkbiz/types/subscriber_nix.rb +0 -16
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkbiz
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Schubert Erlandsson
8
8
  - Claude Code
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2026-03-19 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rest-easy
@@ -17,28 +16,42 @@ dependencies:
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: 1.0.0
19
+ version: '1.5'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
- version: 1.0.0
26
+ version: '1.5'
28
27
  - !ruby/object:Gem::Dependency
29
- name: dry-struct
28
+ name: faraday
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - ">="
31
+ - - "~>"
33
32
  - !ruby/object:Gem::Version
34
- version: '0'
33
+ version: '2.0'
35
34
  type: :runtime
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
- - - ">="
38
+ - - "~>"
40
39
  - !ruby/object:Gem::Version
41
- version: '0'
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: zeitwerk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.6'
42
55
  - !ruby/object:Gem::Dependency
43
56
  name: bundler
44
57
  requirement: !ruby/object:Gem::Requirement
@@ -109,109 +122,30 @@ dependencies:
109
122
  - - ">="
110
123
  - !ruby/object:Gem::Version
111
124
  version: '0'
112
- description: Checkbiz V1 API library, based on rest-easy.
125
+ description: Checkbiz v2 API library, based on rest-easy.
113
126
  email:
114
127
  - info@accodeing.com
115
128
  executables: []
116
129
  extensions: []
117
130
  extra_rdoc_files: []
118
131
  files:
132
+ - CHANGELOG.md
133
+ - LICENSE.md
119
134
  - README.md
120
135
  - checkbiz.gemspec
121
136
  - lib/checkbiz.rb
137
+ - lib/checkbiz/auth/access_token.rb
138
+ - lib/checkbiz/auth/bearer.rb
139
+ - lib/checkbiz/company.rb
140
+ - lib/checkbiz/error_translation.rb
141
+ - lib/checkbiz/person.rb
122
142
  - lib/checkbiz/resource.rb
123
- - lib/checkbiz/resources/address_information.rb
124
- - lib/checkbiz/resources/bolagsverket.rb
125
- - lib/checkbiz/resources/company_annual_report.rb
126
- - lib/checkbiz/resources/company_annual_reports.rb
127
- - lib/checkbiz/resources/company_articles_of_association.rb
128
- - lib/checkbiz/resources/company_autocomplete.rb
129
- - lib/checkbiz/resources/company_beneficial_owner.rb
130
- - lib/checkbiz/resources/company_certificates_of_registration.rb
131
- - lib/checkbiz/resources/company_credit_template.rb
132
- - lib/checkbiz/resources/company_event.rb
133
- - lib/checkbiz/resources/company_information.rb
134
- - lib/checkbiz/resources/company_information_list.rb
135
- - lib/checkbiz/resources/company_search.rb
136
- - lib/checkbiz/resources/company_search_advanced.rb
137
- - lib/checkbiz/resources/company_worksite.rb
138
- - lib/checkbiz/resources/custom_list.rb
139
- - lib/checkbiz/resources/data_factory_person_search.rb
140
- - lib/checkbiz/resources/extended_search_no.rb
141
- - lib/checkbiz/resources/geomatics.rb
142
- - lib/checkbiz/resources/heartbeat.rb
143
- - lib/checkbiz/resources/lookup_company_no.rb
144
- - lib/checkbiz/resources/lookup_id_no.rb
145
- - lib/checkbiz/resources/lookup_phone_no.rb
146
- - lib/checkbiz/resources/nix.rb
147
- - lib/checkbiz/resources/package_calls.rb
148
- - lib/checkbiz/resources/package_information.rb
149
- - lib/checkbiz/resources/person_beneficial_owner.rb
150
- - lib/checkbiz/resources/person_credit_template.rb
151
- - lib/checkbiz/resources/person_event.rb
152
- - lib/checkbiz/resources/person_information.rb
153
- - lib/checkbiz/resources/person_information_list.rb
154
- - lib/checkbiz/resources/person_search.rb
155
- - lib/checkbiz/resources/person_search_advanced.rb
156
- - lib/checkbiz/resources/person_verify.rb
157
- - lib/checkbiz/resources/pts_info.rb
158
- - lib/checkbiz/resources/safenode_company_credit_report.rb
159
- - lib/checkbiz/resources/safenode_company_remark_control.rb
160
- - lib/checkbiz/resources/safenode_person_credit_report.rb
161
- - lib/checkbiz/resources/safenode_person_remark_control.rb
162
- - lib/checkbiz/resources/search_no.rb
163
- - lib/checkbiz/resources/signatory.rb
164
- - lib/checkbiz/resources/spar.rb
165
- - lib/checkbiz/resources/statistics.rb
166
- - lib/checkbiz/resources/subscriber.rb
167
- - lib/checkbiz/resources/subscriber_list.rb
168
- - lib/checkbiz/resources/url.rb
169
- - lib/checkbiz/resources/url_search.rb
170
- - lib/checkbiz/types/address_information.rb
171
- - lib/checkbiz/types/bolagsverket.rb
172
- - lib/checkbiz/types/common.rb
173
- - lib/checkbiz/types/company_advanced_search.rb
174
- - lib/checkbiz/types/company_annual_reports.rb
175
- - lib/checkbiz/types/company_autocomplete.rb
176
- - lib/checkbiz/types/company_credit_template.rb
177
- - lib/checkbiz/types/company_event.rb
178
- - lib/checkbiz/types/company_information.rb
179
- - lib/checkbiz/types/company_information_list.rb
180
- - lib/checkbiz/types/company_search.rb
181
- - lib/checkbiz/types/company_worksite.rb
182
- - lib/checkbiz/types/custom_list_add.rb
183
- - lib/checkbiz/types/custom_list_get.rb
184
- - lib/checkbiz/types/data_factory_person_search.rb
185
- - lib/checkbiz/types/geomatic.rb
186
- - lib/checkbiz/types/lookup_company_no.rb
187
- - lib/checkbiz/types/lookup_id_no.rb
188
- - lib/checkbiz/types/lookup_phone_no.rb
189
- - lib/checkbiz/types/package_calls.rb
190
- - lib/checkbiz/types/package_information.rb
191
- - lib/checkbiz/types/person_advanced_search.rb
192
- - lib/checkbiz/types/person_credit_template.rb
193
- - lib/checkbiz/types/person_event.rb
194
- - lib/checkbiz/types/person_information.rb
195
- - lib/checkbiz/types/person_information_list.rb
196
- - lib/checkbiz/types/person_search.rb
197
- - lib/checkbiz/types/person_verify.rb
198
- - lib/checkbiz/types/pts.rb
199
- - lib/checkbiz/types/safenode_company_credit_report.rb
200
- - lib/checkbiz/types/safenode_company_remark_control.rb
201
- - lib/checkbiz/types/safenode_person_credit_report.rb
202
- - lib/checkbiz/types/safenode_person_remark_control.rb
203
- - lib/checkbiz/types/signatory.rb
204
- - lib/checkbiz/types/spar.rb
205
- - lib/checkbiz/types/statistics.rb
206
- - lib/checkbiz/types/subscriber.rb
207
- - lib/checkbiz/types/subscriber_list.rb
208
- - lib/checkbiz/types/subscriber_nix.rb
209
143
  - lib/checkbiz/version.rb
210
144
  homepage: https://github.com/accodeing/checkbiz
211
145
  licenses:
212
146
  - MIT
213
- metadata: {}
214
- post_install_message:
147
+ metadata:
148
+ rubygems_mfa_required: 'true'
215
149
  rdoc_options: []
216
150
  require_paths:
217
151
  - lib
@@ -219,15 +153,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
219
153
  requirements:
220
154
  - - ">="
221
155
  - !ruby/object:Gem::Version
222
- version: 3.1.0
156
+ version: 3.2.0
223
157
  required_rubygems_version: !ruby/object:Gem::Requirement
224
158
  requirements:
225
159
  - - ">="
226
160
  - !ruby/object:Gem::Version
227
161
  version: '0'
228
162
  requirements: []
229
- rubygems_version: 3.3.7
230
- signing_key:
163
+ rubygems_version: 4.0.10
231
164
  specification_version: 4
232
- summary: Checkbiz V1 API library, based on rest-easy.
165
+ summary: Checkbiz v2 API library, based on rest-easy.
233
166
  test_files: []
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/address_information"
4
-
5
- module Checkbiz
6
- class AddressInformation < Checkbiz::Resource
7
- configure do
8
- path "v1/addressinformation"
9
- end
10
-
11
- attr :address_person_information, Types::AddressPersonInformationBlock.optional, :read_only
12
- attr :address_company_information, Types::AddressCompanyInformationBlock.optional, :read_only
13
- attr :address_phone_information, Types::AddressPhoneInformationBlock.optional, :read_only
14
- attr :address_information, Types::AddressInformationBlock.optional, :read_only
15
- attr :address_residential_information, Types::AddressResidentalInformationBlock.optional, :read_only
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/bolagsverket"
4
-
5
- module Checkbiz
6
- class Bolagsverket < Checkbiz::Resource
7
- configure do
8
- path "v1/bolagsverket"
9
- end
10
-
11
- attr :arende_forteckning_a6, Types::ArendeForteckningBlock.optional, :read_only
12
- attr :arende_forteckning_a15, Types::ArendeInformationBlock.optional, :read_only
13
- attr :samlad_arende_forteckning_a30, Types::ArendeForteckningBlockA30.optional, :read_only
14
- attr :person_information_p25, Types::PersonInformationBlock.optional, :read_only
15
- attr :aktiekapitalforandring, Types::AktiekapitalforandringBlock.optional, :read_only
16
- end
17
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Checkbiz
4
- class CompanyAnnualReport < Checkbiz::Resource
5
- configure do
6
- path "v1/companyannualreport"
7
- end
8
-
9
- attr :document, Types::String.optional, :read_only
10
- attr :type, Types::String.optional, :read_only
11
- attr :encoding, Types::String.optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_annual_reports"
4
-
5
- module Checkbiz
6
- class CompanyAnnualReports < Checkbiz::Resource
7
- configure do
8
- path "v1/companyannualreports"
9
- end
10
-
11
- attr :documents, Types::Array.of(Types::CompanyAnnualReportsDocument).optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Checkbiz
4
- class CompanyArticlesOfAssociation < Checkbiz::Resource
5
- configure do
6
- path "v1/companyarticlesofassociation"
7
- end
8
-
9
- attr :document, Types::String.optional, :read_only
10
- attr :type, Types::String.optional, :read_only
11
- attr :encoding, Types::String.optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_autocomplete"
4
-
5
- module Checkbiz
6
- class CompanyAutocomplete < Checkbiz::Resource
7
- configure do
8
- path "v1/companyautocomplete"
9
- end
10
-
11
- attr :basic_result, Types::CompanyAutocompleteBasicBlock.optional, :read_only
12
- end
13
- end
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_information"
4
-
5
- module Checkbiz
6
- class CompanyBeneficialOwner < Checkbiz::Resource
7
- configure do
8
- path "v1/companybeneficialowner"
9
- end
10
-
11
- attr :basic, Types::CompanyBasicBeneficialOwnerBlock.optional, :read_only
12
- attr :extended, Types::CompanyExtendedBlock.optional, :read_only
13
- attr :persons, Types::Array.of(Types::CompanyBeneficialOwnerPersonBlock).optional, :read_only
14
- end
15
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Checkbiz
4
- class CompanyCertificatesOfRegistration < Checkbiz::Resource
5
- configure do
6
- path "v1/companycertificatesofregistration"
7
- end
8
-
9
- attr :document, Types::String.optional, :read_only
10
- attr :type, Types::String.optional, :read_only
11
- attr :encoding, Types::String.optional, :read_only
12
- end
13
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_credit_template"
4
-
5
- module Checkbiz
6
- class CompanyCreditTemplate < Checkbiz::Resource
7
- configure do
8
- path "v1/companycredittemplate"
9
- end
10
-
11
- attr :credit_template, Types::CompanyCreditTemplateBlock.optional, :read_only
12
-
13
- class << self
14
- def call_v2(**params)
15
- package = params.delete(:package)
16
- headers = package ? { "Package" => package } : {}
17
- api_params = params.transform_keys { |k| PARAM_CONVENTION.serialise(k) }
18
- response = get(path: "v2/companycredittemplate", params: api_params, headers:)
19
- parse(response)
20
- end
21
- end
22
- end
23
- end
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_event"
4
-
5
- module Checkbiz
6
- class CompanyEvent < Checkbiz::Resource
7
- configure do
8
- path "v1/companyevent"
9
- end
10
-
11
- attr :pagination, Types::EventPagination.optional, :read_only
12
- attr :new_registered_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
13
- attr :new_registered_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
14
- attr :liquidated_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
15
- attr :liquidated_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
16
- attr :financial_updated_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
17
- attr :financial_updated_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
18
- attr :status_change_date_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
19
- attr :status_change_date_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
20
- attr :beneficial_owners_change_date_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
21
- attr :beneficial_owners_change_date_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
22
- attr :address_change_date_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
23
- attr :address_change_date_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
24
- attr :company_board_change_date_companies_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
25
- attr :company_board_change_date_companies_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
26
- attr :company_annual_report_created_date_key, Types::Array.of(Types::CompanyEventKeyBlock).optional, :read_only
27
- attr :company_annual_report_created_date_basic, Types::Array.of(Types::CompanyEventBasicBlock).optional, :read_only
28
- end
29
- end
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_information"
4
-
5
- module Checkbiz
6
- class CompanyInformation < Checkbiz::Resource
7
- configure do
8
- path "v1/companyinformation"
9
- end
10
-
11
- attr :name, Types::CompanyNameBlock.optional, :read_only
12
- attr :basic, Types::CompanyBasicBlock.optional, :read_only
13
- attr :extended, Types::CompanyExtendedBlock.optional, :read_only
14
- attr :remark, Types::CompanyRemarkBlock.optional, :read_only
15
- attr :remark_extended, Types::CompanyRemarkExtendedBlock.optional, :read_only
16
- attr :safenode_remark, Types::SafenodeCompanyRemarkBlock.optional, :read_only
17
- attr :safenode_remark_extended, Types::SafenodeCompanyRemarkExtendedBlock.optional, :read_only
18
- attr :phone_numbers, Types::CompanyPhoneNumberBlock.optional, :read_only
19
- attr :economic_basic, Types::CompanyEconomicBasicBlock.optional, :read_only
20
- attr :economic_basic_company_group, Types::CompanyEconomicBasicBlock.optional, :read_only
21
- attr :economic_extended, Types::CompanyEconomicExtendedBlock.optional, :read_only
22
- attr :economic_extended_company_group, Types::CompanyEconomicExtendedBlock.optional, :read_only
23
- attr :key_numbers, Types::CompanyKeyNumbersBlock.optional, :read_only
24
- attr :key_numbers_company_group, Types::CompanyKeyNumbersBlock.optional, :read_only
25
- attr :company_board_of_directors, Types::CompanyBoardOfDirectorsBlock.optional, :read_only
26
- attr :economic_basic_list, Types::Array.of(Types::CompanyEconomicBasicBlock).optional, :read_only
27
- attr :economic_basic_list_company_group, Types::Array.of(Types::CompanyEconomicBasicBlock).optional, :read_only
28
- attr :economic_extended_list, Types::Array.of(Types::CompanyEconomicExtendedBlock).optional, :read_only
29
- attr :economic_extended_list_company_group, Types::Array.of(Types::CompanyEconomicExtendedBlock).optional, :read_only
30
- attr :key_numbers_list, Types::Array.of(Types::CompanyKeyNumbersBlock).optional, :read_only
31
- attr :key_numbers_list_company_group, Types::Array.of(Types::CompanyKeyNumbersBlock).optional, :read_only
32
- attr :worksites, Types::CompanyWorksitesBlock.optional, :read_only
33
- attr :controlled_companies, Types::ControlledCompaniesBlock.optional, :read_only
34
- attr :company_group_basic, Types::CompanyGroupBasicBlock.optional, :read_only
35
- attr :company_group_extended, Types::CompanyGroupExtendedBlock.optional, :read_only
36
- attr :beneficial_owners, Types::Array.of(Types::CompanyBeneficialOwnerPersonBlock).optional, :read_only
37
- attr :beneficial_owner_status, Types::CompanyBeneficialOwnerStatusBlock.optional, :read_only
38
- attr :company_articles_of_association, Types::CompanyArticlesOfAssociationBlock.optional, :read_only
39
- attr :company_board_of_directors_history, Types::CompanyBoardOfDirectorsHistoryBlock.optional, :read_only
40
- end
41
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_information_list"
4
-
5
- module Checkbiz
6
- class CompanyInformationList < Checkbiz::Resource
7
- configure do
8
- path "v1/companyinformationlist"
9
- end
10
-
11
- attr :records_returned, Types::Integer.optional, :read_only
12
- attr :records, Types::Array.of(Types::CompanyInformationListCompanyBlock).optional, :read_only
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_search"
4
-
5
- module Checkbiz
6
- class CompanySearch < Checkbiz::Resource
7
- configure do
8
- path "v1/companysearch"
9
- end
10
-
11
- attr :basic_result, Types::CompanySearchBasicBlock.optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_advanced_search"
4
-
5
- module Checkbiz
6
- class CompanySearchAdvanced < Checkbiz::Resource
7
- configure do
8
- path "v1/companysearchadvanced"
9
- end
10
-
11
- attr :basic_result, Types::CompanyAdvancedSearchBasicBlock.optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/company_worksite"
4
-
5
- module Checkbiz
6
- class CompanyWorksite < Checkbiz::Resource
7
- configure do
8
- path "v1/companyworksite"
9
- end
10
-
11
- attr :worksite, Types::CompanyWorksiteBlock.optional, :read_only
12
- end
13
- end
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/custom_list_get"
4
-
5
- module Checkbiz
6
- class CustomList < Checkbiz::Resource
7
- configure do
8
- path "v1/customlist"
9
- end
10
-
11
- attr :total_records, Types::Integer.optional, :read_only
12
- attr :deleted_records, Types::Integer.optional, :read_only
13
- attr :list, Types::Array.of(Types::CustomListItem).optional, :read_only
14
-
15
- class << self
16
- def add(items, **params)
17
- package = params.delete(:package)
18
- headers = package ? { "Package" => package } : {}
19
- response = post(path: config.path, body: items, headers:)
20
- parse(response)
21
- end
22
-
23
- def remove(items, **params)
24
- package = params.delete(:package)
25
- headers = package ? { "Package" => package } : {}
26
- response = put(path: config.path, body: items, headers:)
27
- parse(response)
28
- end
29
- end
30
- end
31
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/data_factory_person_search"
4
-
5
- module Checkbiz
6
- class DataFactoryPersonSearch < Checkbiz::Resource
7
- configure do
8
- path "v1/datafactorypersonsearch"
9
- end
10
-
11
- attr :count, Types::Integer.optional, :read_only
12
- attr :persons, Types::Array.of(Types::Person).optional, :read_only
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/common"
4
-
5
- module Checkbiz
6
- class ExtendedSearchNo < Checkbiz::Resource
7
- configure do
8
- path "v1/extendedsearchno"
9
- end
10
-
11
- attr :count, Types::Integer.optional, :read_only
12
- attr :contacts, Types::Array.of(Types::SearchNoContact).optional, :read_only
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/geomatic"
4
-
5
- module Checkbiz
6
- class Geomatics < Checkbiz::Resource
7
- configure do
8
- path "v1/geomaticse"
9
- end
10
-
11
- attr :geomatic_se, Types::GeomaticSEBlock.optional, :read_only
12
- end
13
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Checkbiz
4
- class Heartbeat < Checkbiz::Resource
5
- configure do
6
- path "../heartbeat"
7
- end
8
- end
9
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/lookup_company_no"
4
-
5
- module Checkbiz
6
- class LookupCompanyNo < Checkbiz::Resource
7
- configure do
8
- path "v1/lookupcompanyno"
9
- end
10
-
11
- attr :count, Types::Integer.optional, :read_only
12
- attr :contacts, Types::Array.of(Types::LookupCompanyNoContact).optional, :read_only
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/lookup_id_no"
4
-
5
- module Checkbiz
6
- class LookupIdNo < Checkbiz::Resource
7
- configure do
8
- path "v1/lookupidno"
9
- end
10
-
11
- attr :count, Types::Integer.optional, :read_only
12
- attr :contacts, Types::Array.of(Types::LookupIdNoContact).optional, :read_only
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/lookup_phone_no"
4
-
5
- module Checkbiz
6
- class LookupPhoneNo < Checkbiz::Resource
7
- configure do
8
- path "v1/lookupphoneno"
9
- end
10
-
11
- attr :count, Types::Integer.optional, :read_only
12
- attr :contacts, Types::Array.of(Types::LookupPhoneNoContact).optional, :read_only
13
- end
14
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/subscriber_nix"
4
-
5
- module Checkbiz
6
- class Nix < Checkbiz::Resource
7
- configure do
8
- path "v1/nix"
9
- end
10
- end
11
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/package_calls"
4
-
5
- module Checkbiz
6
- class PackageCalls < Checkbiz::Resource
7
- configure do
8
- path "v1/packagecalls"
9
- end
10
-
11
- attr :products, Types::Array.of(Types::PackageCallsProductBlock).optional, :read_only
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../types/package_information"
4
-
5
- module Checkbiz
6
- class PackageInformation < Checkbiz::Resource
7
- configure do
8
- path "v1/packageinformation"
9
- end
10
-
11
- attr :products, Types::Array.of(Types::PackageInformationProductBlock).optional, :read_only
12
- end
13
- end