creditsafe 0.6.1 → 0.6.2
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 +4 -4
- data/.circleci/config.yml +17 -17
- data/.gitignore +3 -2
- data/.rspec +1 -1
- data/.rubocop.yml +11 -11
- data/.ruby-version +1 -1
- data/CHANGELOG.md +53 -49
- data/Gemfile +5 -5
- data/Gemfile.lock +129 -129
- data/LICENSE.txt +22 -22
- data/README.md +175 -175
- data/creditsafe.gemspec +35 -35
- data/data/creditsafe-live.xml +342 -342
- data/data/creditsafe-test.xml +342 -342
- data/lib/creditsafe.rb +4 -4
- data/lib/creditsafe/client.rb +165 -158
- data/lib/creditsafe/constants.rb +49 -49
- data/lib/creditsafe/errors.rb +17 -16
- data/lib/creditsafe/match_type.rb +115 -115
- data/lib/creditsafe/messages.rb +98 -97
- data/lib/creditsafe/namespace.rb +20 -20
- data/lib/creditsafe/request/company_report.rb +42 -42
- data/lib/creditsafe/request/find_company.rb +120 -120
- data/lib/creditsafe/version.rb +5 -5
- data/spec/creditsafe/client_spec.rb +431 -423
- data/spec/creditsafe/messages_spec.rb +76 -76
- data/spec/fixtures/company-report-not-found.xml +13 -13
- data/spec/fixtures/company-report-request.xml +1 -1
- data/spec/fixtures/company-report-successful.xml +582 -582
- data/spec/fixtures/error-fault.xml +8 -8
- data/spec/fixtures/error-invalid-credentials.html +31 -31
- data/spec/fixtures/find-companies-error-no-text.xml +11 -11
- data/spec/fixtures/find-companies-error.xml +11 -11
- data/spec/fixtures/find-companies-none-found.xml +13 -13
- data/spec/fixtures/find-companies-request.xml +1 -1
- data/spec/fixtures/find-companies-successful-multi.xml +493 -493
- data/spec/fixtures/find-companies-successful.xml +29 -29
- data/spec/spec_helper.rb +14 -14
- metadata +6 -5
@@ -1,29 +1,29 @@
|
|
1
|
-
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
|
2
|
-
<s:Body>
|
3
|
-
<FindCompaniesResponse xmlns="http://www.creditsafe.com/globaldata/operations">
|
4
|
-
<FindCompaniesResult xmlns:q1="http://www.creditsafe.com/globaldata/datatypes">
|
5
|
-
<q1:Messages>
|
6
|
-
<q1:Message Type="Information" Code="20103">Service access contract expires on 2015-07-07 00:00 (UTC). Please contact your account manager regarding access extension.</q1:Message>
|
7
|
-
</q1:Messages>
|
8
|
-
<q1:Companies>
|
9
|
-
<q1:Company DateOfLatestAccounts="2014-01-31T00:00:00Z" OnlineReports="true" Monitoring="false" Country="GB" Id="GB003/0/07495895">
|
10
|
-
<q1:Name>GOCARDLESS LTD</q1:Name>
|
11
|
-
<q1:Type>Ltd</q1:Type>
|
12
|
-
<q1:Status>Active</q1:Status>
|
13
|
-
<q1:RegistrationNumber>07495895</q1:RegistrationNumber>
|
14
|
-
<q1:Address>
|
15
|
-
<q1:SimpleValue>338-346, GOSWELL, LONDON</q1:SimpleValue>
|
16
|
-
<q1:PostalCode>EC1V7LQ</q1:PostalCode>
|
17
|
-
</q1:Address>
|
18
|
-
<q1:AvailableReportTypes>
|
19
|
-
<q1:AvailableReportType>Full</q1:AvailableReportType>
|
20
|
-
</q1:AvailableReportTypes>
|
21
|
-
<q1:AvailableLanguages>
|
22
|
-
<q1:AvailableLanguage>EN</q1:AvailableLanguage>
|
23
|
-
</q1:AvailableLanguages>
|
24
|
-
</q1:Company>
|
25
|
-
</q1:Companies>
|
26
|
-
</FindCompaniesResult>
|
27
|
-
</FindCompaniesResponse>
|
28
|
-
</s:Body>
|
29
|
-
</s:Envelope>
|
1
|
+
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
|
2
|
+
<s:Body>
|
3
|
+
<FindCompaniesResponse xmlns="http://www.creditsafe.com/globaldata/operations">
|
4
|
+
<FindCompaniesResult xmlns:q1="http://www.creditsafe.com/globaldata/datatypes">
|
5
|
+
<q1:Messages>
|
6
|
+
<q1:Message Type="Information" Code="20103">Service access contract expires on 2015-07-07 00:00 (UTC). Please contact your account manager regarding access extension.</q1:Message>
|
7
|
+
</q1:Messages>
|
8
|
+
<q1:Companies>
|
9
|
+
<q1:Company DateOfLatestAccounts="2014-01-31T00:00:00Z" OnlineReports="true" Monitoring="false" Country="GB" Id="GB003/0/07495895">
|
10
|
+
<q1:Name>GOCARDLESS LTD</q1:Name>
|
11
|
+
<q1:Type>Ltd</q1:Type>
|
12
|
+
<q1:Status>Active</q1:Status>
|
13
|
+
<q1:RegistrationNumber>07495895</q1:RegistrationNumber>
|
14
|
+
<q1:Address>
|
15
|
+
<q1:SimpleValue>338-346, GOSWELL, LONDON</q1:SimpleValue>
|
16
|
+
<q1:PostalCode>EC1V7LQ</q1:PostalCode>
|
17
|
+
</q1:Address>
|
18
|
+
<q1:AvailableReportTypes>
|
19
|
+
<q1:AvailableReportType>Full</q1:AvailableReportType>
|
20
|
+
</q1:AvailableReportTypes>
|
21
|
+
<q1:AvailableLanguages>
|
22
|
+
<q1:AvailableLanguage>EN</q1:AvailableLanguage>
|
23
|
+
</q1:AvailableLanguages>
|
24
|
+
</q1:Company>
|
25
|
+
</q1:Companies>
|
26
|
+
</FindCompaniesResult>
|
27
|
+
</FindCompaniesResponse>
|
28
|
+
</s:Body>
|
29
|
+
</s:Envelope>
|
data/spec/spec_helper.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "webmock/rspec"
|
4
|
-
require "nokogiri"
|
5
|
-
require "rspec/its"
|
6
|
-
require "compare-xml"
|
7
|
-
|
8
|
-
def load_fixture(name)
|
9
|
-
File.read(File.join(File.dirname(__FILE__), "fixtures", name))
|
10
|
-
end
|
11
|
-
|
12
|
-
def load_xml_fixture(name)
|
13
|
-
Nokogiri::XML(File.open(File.join(File.dirname(__FILE__), "fixtures", name)))
|
14
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "webmock/rspec"
|
4
|
+
require "nokogiri"
|
5
|
+
require "rspec/its"
|
6
|
+
require "compare-xml"
|
7
|
+
|
8
|
+
def load_fixture(name)
|
9
|
+
File.read(File.join(File.dirname(__FILE__), "fixtures", name))
|
10
|
+
end
|
11
|
+
|
12
|
+
def load_xml_fixture(name)
|
13
|
+
Nokogiri::XML(File.open(File.join(File.dirname(__FILE__), "fixtures", name)))
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creditsafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -192,7 +192,7 @@ dependencies:
|
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '3.3'
|
195
|
-
description:
|
195
|
+
description:
|
196
196
|
email:
|
197
197
|
- engineering@gocardless.com
|
198
198
|
executables: []
|
@@ -237,7 +237,8 @@ files:
|
|
237
237
|
- spec/fixtures/find-companies-successful.xml
|
238
238
|
- spec/spec_helper.rb
|
239
239
|
homepage: https://github.com/gocardless/creditsafe-ruby
|
240
|
-
licenses:
|
240
|
+
licenses:
|
241
|
+
- MIT
|
241
242
|
metadata: {}
|
242
243
|
post_install_message:
|
243
244
|
rdoc_options: []
|
@@ -255,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
256
|
version: '0'
|
256
257
|
requirements: []
|
257
258
|
rubyforge_project:
|
258
|
-
rubygems_version: 2.7.
|
259
|
+
rubygems_version: 2.7.8
|
259
260
|
signing_key:
|
260
261
|
specification_version: 4
|
261
262
|
summary: Ruby client for the Creditsafe SOAP API
|