creditsafe_connect 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30a7000d4f2f571913e8a2336515469991d7070f197144f057bd90d61e423006
4
- data.tar.gz: d7cafce50a0daf972686fc63a7da3f63abe5ba1330d39291c9749f0564638ae1
3
+ metadata.gz: fb16f59ed87fb2220099fe05f84162a86ff79099fc37ce06b76d7e669b5aa084
4
+ data.tar.gz: f1984c8aefbc45e4b395abab5aa7434c647831b0b9655ca2b5d773416c1bf7ff
5
5
  SHA512:
6
- metadata.gz: cc424d4b9e666162cbb192ab2f1a5e52484ab1586731f4ce57e87a28862bc878565b88436df43eaf4dec70623948521f60bcde06ec2e2cbe413fa5ab8ed4a5bb
7
- data.tar.gz: 355eb6e3701ae39e548d3c6d97c521f4ce932a0ca893e1014b17956e39dcc7f6cc976c07d804225f5ceb24fd910d7ba29b54a12061e63597e3456fb2cc0474bd
6
+ metadata.gz: 3204bb3c5e770a147d16fee5eea484ce48531fa542e545f8a2ca576b3dc618872ca09fe1b11c3bfe95627f4be43a55e58494e41da0228ac3145e4d5fe6efeaf5
7
+ data.tar.gz: 1fc49f98d4df1c75972265cae5dd5b2e8205d1f03bd9b71d8f0137b553f9c7567b2bb19e859235ca9a233dabd7857912cb1cd4dcc897827fc35c648641af4d47
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creditsafe_connect (0.1.0)
4
+ creditsafe_connect (0.1.1)
5
5
  faraday (~> 0.15)
6
6
  faraday_middleware (~> 0.12)
7
7
  faraday_middleware-multi_json (~> 0.0.6)
@@ -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, :company_registration_date, :legal_form,
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:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Creditsafe
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday