creditsafe_connect 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/creditsafe/faraday_auth.rb +3 -0
- data/lib/creditsafe/models/basic_information.rb +2 -1
- data/lib/creditsafe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb16f59ed87fb2220099fe05f84162a86ff79099fc37ce06b76d7e669b5aa084
|
4
|
+
data.tar.gz: f1984c8aefbc45e4b395abab5aa7434c647831b0b9655ca2b5d773416c1bf7ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3204bb3c5e770a147d16fee5eea484ce48531fa542e545f8a2ca576b3dc618872ca09fe1b11c3bfe95627f4be43a55e58494e41da0228ac3145e4d5fe6efeaf5
|
7
|
+
data.tar.gz: 1fc49f98d4df1c75972265cae5dd5b2e8205d1f03bd9b71d8f0137b553f9c7567b2bb19e859235ca9a233dabd7857912cb1cd4dcc897827fc35c648641af4d47
|
data/Gemfile.lock
CHANGED
@@ -16,6 +16,7 @@ module Creditsafe
|
|
16
16
|
|
17
17
|
def call(env)
|
18
18
|
retry_count = 0
|
19
|
+
request_body = env[:body]
|
19
20
|
|
20
21
|
authenticate! unless @token
|
21
22
|
|
@@ -24,6 +25,8 @@ module Creditsafe
|
|
24
25
|
env[:request_headers]['Content-Type'] = 'application/json'
|
25
26
|
env[:request_headers]['User-Agent'] = "finpoint/#{Creditsafe::VERSION}"
|
26
27
|
|
28
|
+
# after failure env[:body] is set to the response body
|
29
|
+
env[:body] = request_body
|
27
30
|
@app.call(env).tap do |resp|
|
28
31
|
if resp.status == 401
|
29
32
|
raise Creditsafe::UnauthorizedError, resp.body
|
@@ -10,7 +10,8 @@ module Creditsafe
|
|
10
10
|
module Models
|
11
11
|
class BasicInformation < BaseModel
|
12
12
|
attributes :business_name, :registered_company_name, :company_registration_number,
|
13
|
-
:country, :vat_registration_number, :
|
13
|
+
:country, :vat_registration_number, :legal_form,
|
14
|
+
:company_registration_date, :operations_start_date,
|
14
15
|
:company_status, :principal_activity, :contact_address
|
15
16
|
|
16
17
|
def self.build(json:)
|
data/lib/creditsafe/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: creditsafe_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nenad Petronijevic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|