bankserv 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/bankserv.gemspec +1 -1
- data/lib/bankserv/credit.rb +5 -2
- data/lib/bankserv/debit.rb +5 -2
- data/lib/bankserv/version.rb +1 -1
- data/spec/lib/bankserv/transmission/input_document_spec.rb +2 -2
- data/spec/support/helpers.rb +1 -1
- metadata +14 -14
data/bankserv.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.add_dependency "activesupport"
|
25
25
|
s.add_dependency "activerecord", "~> 3.0"
|
26
26
|
s.add_dependency "i18n"
|
27
|
-
s.add_dependency "absa-h2h", "~> 0.0.
|
27
|
+
s.add_dependency "absa-h2h", "~> 0.0.13"
|
28
28
|
s.add_dependency "absa-esd", "~> 0.0.2"
|
29
29
|
|
30
30
|
s.add_development_dependency 'combustion', '~> 0.3.1'
|
data/lib/bankserv/credit.rb
CHANGED
@@ -53,8 +53,11 @@ module Bankserv
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def formatted_user_ref
|
56
|
-
|
57
|
-
|
56
|
+
if contra?
|
57
|
+
Configuration.client_abbreviated_name.ljust(10, ' ') << "CONTRA#{user_ref}"
|
58
|
+
else
|
59
|
+
Configuration.client_abbreviated_name.ljust(10, ' ') << user_ref
|
60
|
+
end
|
58
61
|
end
|
59
62
|
|
60
63
|
def contra_bank_details
|
data/lib/bankserv/debit.rb
CHANGED
@@ -29,8 +29,11 @@ module Bankserv
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def formatted_user_ref
|
32
|
-
|
33
|
-
|
32
|
+
if contra?
|
33
|
+
Configuration.client_abbreviated_name.ljust(10, ' ') << "CONTRA#{user_ref}"
|
34
|
+
else
|
35
|
+
Configuration.client_abbreviated_name.ljust(10, ' ') << user_ref
|
36
|
+
end
|
34
37
|
end
|
35
38
|
|
36
39
|
def contra_bank_details
|
data/lib/bankserv/version.rb
CHANGED
@@ -119,7 +119,7 @@ describe Bankserv::InputDocument do
|
|
119
119
|
type_of_service: "CORPSSV",
|
120
120
|
batches: [{
|
121
121
|
credit: {
|
122
|
-
account_number: "4053538939", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "ALIMITTST", amount: 160280.00, user_ref: "
|
122
|
+
account_number: "4053538939", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "ALIMITTST", amount: 160280.00, user_ref: "1040524 08", action_date: Date.today
|
123
123
|
},
|
124
124
|
debit: [
|
125
125
|
{ account_number: '1019611899', branch_code: "632005", account_type: "1", id_number: '', amount: 10.00, action_date: Date.today, account_name: "HENNIE DU TOIT", user_ref: 'SPP 1040524 01'},
|
@@ -132,7 +132,7 @@ describe Bankserv::InputDocument do
|
|
132
132
|
]
|
133
133
|
}, {
|
134
134
|
credit: {
|
135
|
-
account_number: "1004651894", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "ALIMITTST", amount: 42800.00, user_ref: "
|
135
|
+
account_number: "1004651894", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "ALIMITTST", amount: 42800.00, user_ref: "2040525 08", action_date: Date.tomorrow
|
136
136
|
},
|
137
137
|
debit: [
|
138
138
|
{ account_number: '1006221897', branch_code: "632005", account_type: "1", id_number: '', amount: 100.00, action_date: Date.tomorrow, account_name: "HENNIE DU TOIT", user_ref: 'SPP 2040525 01'},
|
data/spec/support/helpers.rb
CHANGED
@@ -25,7 +25,7 @@ module Helpers
|
|
25
25
|
account_type_correct: "Y",
|
26
26
|
batches: [{
|
27
27
|
debit: {
|
28
|
-
account_number: "4068123456", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "TESTTEST", amount: 1272216.65, user_ref: "
|
28
|
+
account_number: "4068123456", branch_code: "632005", account_type: '1', id_number: '8207205263083', initials: "RC", account_name: "TESTTEST", amount: 1272216.65, user_ref: "_0000846_PMT", action_date: Date.today
|
29
29
|
},
|
30
30
|
credit: [
|
31
31
|
{ account_number: '00081136250', branch_code: '050021', account_type: "1", amount: "000015000.00", action_date: Date.today, account_name: "DEWEY ASSOCIATES", user_ref: "_2055185_PAY USER"},
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bankserv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ date: 2012-04-04 00:00:00.000000000Z
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement: &
|
17
|
+
requirement: &70348632669320 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70348632669320
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: activerecord
|
28
|
-
requirement: &
|
28
|
+
requirement: &70348632649320 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '3.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70348632649320
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: i18n
|
39
|
-
requirement: &
|
39
|
+
requirement: &70348632648800 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,21 +44,21 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70348632648800
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: absa-h2h
|
50
|
-
requirement: &
|
50
|
+
requirement: &70348632648220 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.0.
|
55
|
+
version: 0.0.13
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70348632648220
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: absa-esd
|
61
|
-
requirement: &
|
61
|
+
requirement: &70348632647700 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 0.0.2
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70348632647700
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: combustion
|
72
|
-
requirement: &
|
72
|
+
requirement: &70348632647240 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,7 +77,7 @@ dependencies:
|
|
77
77
|
version: 0.3.1
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70348632647240
|
81
81
|
description: ! "This engine allows users to inject requests into a queue to be processed.
|
82
82
|
\n \n The queue handles bank account validations, credit payments,
|
83
83
|
debit orders\n and collecting bank statements. "
|