deltavista_crif_dva_interface 0.1.12 → 0.1.13

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.
@@ -2,10 +2,12 @@ module DeltavistaCrifDvaInterface
2
2
  class CollectionCheck < SoapConverter
3
3
 
4
4
  def initialize(options)
5
+ options[:action] = :get_report
5
6
  super(options)
6
7
  end
7
8
 
8
9
  def private_collection_check(address, collection)
10
+
9
11
  envelope[:report_type] = 'COLLECTION_CHECK_CONSUMER'
10
12
  insert_private_address address
11
13
  insert_collection collection
@@ -1,6 +1,6 @@
1
1
  module DeltavistaCrifDvaInterface
2
2
  class SoapConfig
3
- attr_accessor :endpoint, :wsdl, :user_name, :password, :logger
3
+ attr_accessor :endpoint, :wsdl, :user_name, :password, :action, :logger
4
4
 
5
5
  def initialize(options)
6
6
  default_endpoint = 'https://preprodservices.crif-online.ch/CrifSS/CrifSoapServiceV1'
@@ -9,6 +9,7 @@ module DeltavistaCrifDvaInterface
9
9
  @wsdl = options[:wsdl] ? options[:wsdl] : default_wsdl
10
10
  @user_name = options[:user_name]
11
11
  @password = options[:password]
12
+ @action = options[:action] ? options[:action] : ''
12
13
  @logger = options[:logger] ? options[:logger] : Logger.new(STDOUT)
13
14
  end
14
15
 
@@ -3,7 +3,7 @@ require 'savon'
3
3
  module DeltavistaCrifDvaInterface
4
4
  class SoapConverter
5
5
 
6
- attr_reader :options, :client, :envelope, :result, :logger
6
+ attr_reader :options, :client, :action, :envelope, :result, :logger
7
7
 
8
8
  def initialize(options)
9
9
  @options = options
@@ -18,6 +18,7 @@ module DeltavistaCrifDvaInterface
18
18
  :success => false,
19
19
  :data => Hash.new
20
20
  }
21
+ @action = options.action
21
22
  @logger = options.logger ? options.logger : Logger.new(STDOUT)
22
23
  insert_identity
23
24
  insert_reference_number
@@ -1,3 +1,3 @@
1
1
  module DeltavistaCrifDvaInterface
2
- VERSION = '0.1.12'
2
+ VERSION = '0.1.13'
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.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: