deltavista_crif_dva_interface 0.1.21 → 0.1.22
Sign up to get free protection for your applications and to get access to all the features.
@@ -7,15 +7,15 @@ module DeltavistaCrifDvaInterface
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def private_collection_check(address, collection)
|
10
|
-
envelope[:report_type] = 'COLLECTION_CHECK_CONSUMER'
|
11
10
|
insert_private_address address
|
11
|
+
envelope[:report_type] = 'COLLECTION_CHECK_CONSUMER'
|
12
12
|
insert_collection collection
|
13
13
|
commit
|
14
14
|
end
|
15
15
|
|
16
16
|
def business_collection_check(address, collection)
|
17
|
-
envelope[:report_type] = 'COLLECTION_CHECK_BUSINESS'
|
18
17
|
insert_company_address address
|
18
|
+
envelope[:report_type] = 'COLLECTION_CHECK_BUSINESS'
|
19
19
|
insert_collection collection
|
20
20
|
commit
|
21
21
|
end
|
@@ -7,12 +7,15 @@ module DeltavistaCrifDvaInterface
|
|
7
7
|
|
8
8
|
def initialize(options)
|
9
9
|
@options = options
|
10
|
+
@logger = options.logger ? options.logger : Logger.new(STDOUT)
|
10
11
|
@envelope = Hash.new
|
11
12
|
@client = Savon.client(
|
12
13
|
:wsdl => options.wsdl,
|
13
14
|
:endpoint => options.endpoint,
|
15
|
+
:pretty_print_xml => true,
|
14
16
|
:soap_version => 2,
|
15
|
-
:env_namespace => 'soapenv'
|
17
|
+
:env_namespace => 'soapenv',
|
18
|
+
:logger => logger
|
16
19
|
)
|
17
20
|
@result = {
|
18
21
|
:committed => false,
|
@@ -20,7 +23,6 @@ module DeltavistaCrifDvaInterface
|
|
20
23
|
:data => Hash.new
|
21
24
|
}
|
22
25
|
@action = options.action
|
23
|
-
@logger = options.logger ? options.logger : Logger.new(STDOUT)
|
24
26
|
insert_control
|
25
27
|
insert_identity
|
26
28
|
insert_reference_number
|