creditsafe 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +41 -37
- data/Gemfile +5 -5
- data/Gemfile.lock +127 -125
- data/LICENSE.txt +22 -22
- data/README.md +138 -138
- 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 -156
- data/lib/creditsafe/errors.rb +16 -14
- 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 +98 -98
- data/lib/creditsafe/version.rb +5 -5
- data/spec/creditsafe/client_spec.rb +369 -372
- 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 +4 -4
@@ -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.5.
|
4
|
+
version: 0.5.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: 2018-
|
11
|
+
date: 2018-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -184,14 +184,14 @@ dependencies:
|
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '3.3'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '3.3'
|
195
195
|
description: Ruby client for the Creditsafe SOAP API
|
196
196
|
email:
|
197
197
|
- engineering@gocardless.com
|