deltavista_crif_dva_interface 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,14 +22,11 @@ module DeltavistaCrifDvaInterface
|
|
22
22
|
|
23
23
|
private
|
24
24
|
def insert_collection(collection)
|
25
|
-
# Mandatory values
|
26
|
-
additional_input('collectionCaseStatus', collection[:case_status])
|
27
25
|
additional_input('openAmount', collection[:open_amount])
|
28
|
-
additional_input('dateOpen', format_date(collection[:date_open]))
|
29
|
-
# Optional values
|
30
26
|
additional_input('totalAmount', collection[:total_amount]) if collection[:date_invoice]
|
27
|
+
additional_input('collectionCaseStatus', collection[:case_status])
|
28
|
+
additional_input('dateOpen', format_date(collection[:date_open]))
|
31
29
|
additional_input('invoiceDate', collection[:date_invoice]) if collection[:date_invoice]
|
32
|
-
additional_input('iouType', collection[:iou_type]) if collection[:iou_type]
|
33
30
|
end
|
34
31
|
|
35
32
|
end
|
@@ -15,6 +15,7 @@ module DeltavistaCrifDvaInterface
|
|
15
15
|
:pretty_print_xml => true,
|
16
16
|
:soap_version => 2,
|
17
17
|
:env_namespace => 'soapenv',
|
18
|
+
:namespace_identifier => 'ns1',
|
18
19
|
:logger => logger
|
19
20
|
)
|
20
21
|
@result = {
|
@@ -29,15 +30,14 @@ module DeltavistaCrifDvaInterface
|
|
29
30
|
end
|
30
31
|
|
31
32
|
def commit
|
32
|
-
|
33
|
+
begin
|
33
34
|
result[:data] = @client.call(action, :message => envelope)
|
34
35
|
result[:success] = true
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
#end
|
36
|
+
rescue StandardError => e
|
37
|
+
logger.error e.message
|
38
|
+
logger.error e.backtrace.join('\n') if e.backtrace
|
39
|
+
raise e
|
40
|
+
end
|
41
41
|
result
|
42
42
|
end
|
43
43
|
|
@@ -104,7 +104,7 @@ module DeltavistaCrifDvaInterface
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def format_date(date)
|
107
|
-
|
107
|
+
date.respond_to?(:strftime) ? date.strftime('%Y-%m-%d') : nil
|
108
108
|
end
|
109
109
|
|
110
110
|
def parse_location(address)
|
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.27
|
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-21 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|