deltavista_crif_dva_interface 0.1.17 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
@@ -10,14 +10,14 @@ module DeltavistaCrifDvaInterface
|
|
10
10
|
envelope[:report_type] = 'COLLECTION_CHECK_CONSUMER'
|
11
11
|
insert_private_address address
|
12
12
|
insert_collection collection
|
13
|
-
commit
|
13
|
+
commit
|
14
14
|
end
|
15
15
|
|
16
16
|
def business_collection_check(address, collection)
|
17
17
|
envelope[:report_type] = 'COLLECTION_CHECK_BUSINESS'
|
18
18
|
insert_company_address address
|
19
19
|
insert_collection collection
|
20
|
-
commit
|
20
|
+
commit
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
@@ -11,7 +11,8 @@ module DeltavistaCrifDvaInterface
|
|
11
11
|
@client = Savon.client(
|
12
12
|
:wsdl => options.wsdl,
|
13
13
|
:endpoint => options.endpoint,
|
14
|
-
:soap_version => 2
|
14
|
+
:soap_version => 2,
|
15
|
+
:env_namespace => 'soapenv'
|
15
16
|
)
|
16
17
|
@result = {
|
17
18
|
:committed => false,
|
@@ -20,6 +21,7 @@ module DeltavistaCrifDvaInterface
|
|
20
21
|
}
|
21
22
|
@action = options.action
|
22
23
|
@logger = options.logger ? options.logger : Logger.new(STDOUT)
|
24
|
+
insert_control
|
23
25
|
insert_identity
|
24
26
|
insert_reference_number
|
25
27
|
end
|
@@ -48,6 +50,13 @@ module DeltavistaCrifDvaInterface
|
|
48
50
|
}
|
49
51
|
end
|
50
52
|
|
53
|
+
def insert_control
|
54
|
+
envelope[:control] = {
|
55
|
+
:major_version => 1,
|
56
|
+
:minor_version => 0
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
51
60
|
def insert_private_address(address)
|
52
61
|
envelope[:searched_address] = {
|
53
62
|
:first_name => address[:first_name],
|
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.
|
4
|
+
version: 0.1.20
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-05-
|
14
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|