creditsafe 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +17 -17
- data/.gitignore +2 -2
- data/.rspec +1 -1
- data/.rubocop.yml +11 -11
- data/.ruby-version +1 -1
- data/CHANGELOG.md +49 -45
- 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 +158 -158
- data/lib/creditsafe/constants.rb +49 -49
- data/lib/creditsafe/errors.rb +16 -16
- data/lib/creditsafe/match_type.rb +115 -115
- data/lib/creditsafe/messages.rb +97 -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 +423 -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 +3 -3
@@ -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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
requirements: []
|
257
257
|
rubyforge_project:
|
258
|
-
rubygems_version: 2.
|
258
|
+
rubygems_version: 2.7.6
|
259
259
|
signing_key:
|
260
260
|
specification_version: 4
|
261
261
|
summary: Ruby client for the Creditsafe SOAP API
|