deltavista_crif_dva_interface 0.0.18 → 0.0.19

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.
@@ -12,7 +12,7 @@ module DeltavistaCrifDvaInterface
12
12
  PRIVATE_RESPONSE_KEYS = PRIVATE_KEYS.unshift('addressId')
13
13
 
14
14
  COMPANY_NODE = 'company'
15
- COMPANY_KEYS = %w(name street house poBox zip city country phone)
15
+ COMPANY_KEYS = %w(legalForm name street house poBox zip city country phone)
16
16
  COMPANY_RESPONSE_KEYS = COMPANY_KEYS.unshift('addressId')
17
17
 
18
18
  PAYLOAD_NODE = 'payLoad'
@@ -21,11 +21,11 @@ module DeltavistaCrifDvaInterface
21
21
  # unique id for each request
22
22
  @@reference_id = 1000
23
23
 
24
- def initialize options
24
+ def initialize(options)
25
25
  @config = {}
26
- @logger = Logger.new(STDOUT)
27
26
  if options.is_a? Hash
28
27
  @config = DEFAULT_OPTIONS.merge(options)
28
+ @logger = options[:logger] || Logger.new(STDOUT)
29
29
  else
30
30
  @config[:username] = options.username
31
31
  @config[:password] = options.password
@@ -1,3 +1,3 @@
1
1
  module DeltavistaCrifDvaInterface
2
- VERSION = "0.0.18"
2
+ VERSION = '0.0.19'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deltavista_crif_dva_interface
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: