bankserv 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  module Bankserv
2
2
 
3
3
  class BankAccount < ActiveRecord::Base
4
+
5
+ def account_holder
6
+ account_name[0..29]
7
+ end
4
8
 
5
9
  def account_type_id
6
10
  if self.account_type.to_i != 0
@@ -102,7 +102,7 @@ module Bankserv
102
102
  entry_class: standard_entry_class,
103
103
  tax_code: "0",
104
104
  user_ref: transaction.formatted_user_ref,
105
- homing_account_name: transaction.bank_account.account_name,
105
+ homing_account_name: transaction.bank_account.account_holder,
106
106
  non_standard_homing_account_number: homing_account_number.length > 11 ? homing_account_number : "0"
107
107
  )
108
108
 
@@ -1,3 +1,3 @@
1
1
  module Bankserv
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  001T0495340405240405250405240405250000010037CORPSSV YY
3
3
  001T5063200504053538939953400000163200501019611899100000001000040524440000ALIMITTST SPP 1040524 01 HENNIE DU TOIT 00000000000000000000 21
4
4
  001T5063200504053538939953400000263200501019801892100000002000040524440000ALIMITTST SPP 1040524 02 TYRONE DREYDEN 00000000000000000000 21
5
- 001T5063200504053538939953400000363200501021131896100000003000040524440000ALIMITTST SPP 1040524 03 KEITH MEIKLEJOHN 00000000000000000000 21
5
+ 001T5063200504053538939953400000363200501021131896100000003000040524440000ALIMITTST SPP 1040524 03 KEITH MEIKLEJOHN AND MORE THAN00000000000000000000 21
6
6
  001T5063200504053538939953400000463200501022131890100000004000040524440000ALIMITTST SPP 1040524 04 CHRISTO SPIES 00000000000000000000 21
7
7
  001T5063200504053538939953400000563200501057401890100006005000040524440000ALIMITTST SPP 1040524 05 DENISE RETIEF 00000000000000000000 21
8
8
  001T5063200504053538939953400000663200518000010304100003006000040524440000ALIMITTST SPP 1040524 06 PETER HAUPT 00000000000000000000 21
@@ -10,7 +10,7 @@
10
10
  001T5263200504053538939953400000863200504053538939100016028000040524100000ALIMITTST CONTRA1040524 08
11
11
  001T5063200501004651894953400000963200501006221897100000010000040525440000ALIMITTST SPP 2040525 01 HENNIE DU TOIT 00000000000000000000 21
12
12
  001T5063200501004651894953400001063200501006241898100000020000040525440000ALIMITTST SPP 2040525 02 TYRONE DREYDEN 00000000000000000000 21
13
- 001T5063200501004651894953400001163200501009831891100004030000040525440000ALIMITTST SPP 2040525 03 KEITH MEIKLEJOHN 00000000000000000000 21
13
+ 001T5063200501004651894953400001163200501009831891100004030000040525440000ALIMITTST SPP 2040525 03 KEITH MEIKLEJOHN AND MORE THAN00000000000000000000 21
14
14
  001T5063200501004651894953400001263200501010000609100000040000040525440000ALIMITTST SPP 2040525 04 CHRISTO SPIES 00000000000000000000 21
15
15
  001T5063200501004651894953400001363200501019141892100000050000040525440000ALIMITTST SPP 2040525 05 DENISE RETIEF 00000000000000000000 21
16
16
  001T5063200501004651894953400001463200501019591898100000060000040525440000ALIMITTST SPP 2040525 06 PETER HAUPT 00000000000000000000 21
@@ -121,7 +121,7 @@ describe Bankserv::InputDocument do
121
121
  debit: [
122
122
  { account_number: '1019611899', branch_code: "632005", account_type: "1", id_number: '', amount: 1000, action_date: Date.today, account_name: "HENNIE DU TOIT", user_ref: 'SPP 1040524 01'},
123
123
  { account_number: '1019801892', branch_code: "632005", account_type: "1", id_number: '', amount: 2000, action_date: Date.today, account_name: "TYRONE DREYDEN", user_ref: "SPP 1040524 02"},
124
- { account_number: '1021131896', branch_code: "632005", account_type: "1", id_number: '', amount: 3000, action_date: Date.today, account_name: "KEITH MEIKLEJOHN",user_ref: "SPP 1040524 03"},
124
+ { account_number: '1021131896', branch_code: "632005", account_type: "1", id_number: '', amount: 3000, action_date: Date.today, account_name: "KEITH MEIKLEJOHN AND MORE THAN 30 CHARACTERS",user_ref: "SPP 1040524 03"},
125
125
  { account_number: '1022131890', branch_code: "632005", account_type: "1", id_number: '', amount: 4000, action_date: Date.today, account_name: "CHRISTO SPIES", user_ref: "SPP 1040524 04"},
126
126
  { account_number: '1057401890', branch_code: "632005", account_type: "1", id_number: '', amount: 6005000, action_date: Date.today, account_name: "DENISE RETIEF", user_ref: "SPP 1040524 05"},
127
127
  { account_number: '18000010304',branch_code: "632005", account_type: "1", id_number: '', amount: 3006000, action_date: Date.today, account_name: "PETER HAUPT", user_ref: "SPP 1040524 06"},
@@ -134,7 +134,7 @@ describe Bankserv::InputDocument do
134
134
  debit: [
135
135
  { account_number: '1006221897', branch_code: "632005", account_type: "1", id_number: '', amount: 10000, action_date: Date.tomorrow, account_name: "HENNIE DU TOIT", user_ref: 'SPP 2040525 01'},
136
136
  { account_number: '1006241898', branch_code: "632005", account_type: "1", id_number: '', amount: 20000, action_date: Date.tomorrow, account_name: "TYRONE DREYDEN", user_ref: "SPP 2040525 02"},
137
- { account_number: '1009831891', branch_code: "632005", account_type: "1", id_number: '', amount: 4030000,action_date: Date.tomorrow, account_name: "KEITH MEIKLEJOHN",user_ref: "SPP 2040525 03"},
137
+ { account_number: '1009831891', branch_code: "632005", account_type: "1", id_number: '', amount: 4030000,action_date: Date.tomorrow, account_name: "KEITH MEIKLEJOHN AND MORE THAN 30 CHARACTERS",user_ref: "SPP 2040525 03"},
138
138
  { account_number: '1010000609', branch_code: "632005", account_type: "1", id_number: '', amount: 40000, action_date: Date.tomorrow, account_name: "CHRISTO SPIES", user_ref: "SPP 2040525 04"},
139
139
  { account_number: '1019141892', branch_code: "632005", account_type: "1", id_number: '', amount: 50000, action_date: Date.tomorrow, account_name: "DENISE RETIEF", user_ref: "SPP 2040525 05"},
140
140
  { account_number: '1019591898', branch_code: "632005", account_type: "1", id_number: '', amount: 60000, action_date: Date.tomorrow, account_name: "PETER HAUPT", user_ref: "SPP 2040525 06"},
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.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-13 00:00:00.000000000Z
13
+ date: 2012-08-17 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &70253967406820 !ruby/object:Gem::Requirement
17
+ requirement: &70183305828900 !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: *70253967406820
25
+ version_requirements: *70183305828900
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activerecord
28
- requirement: &70253967406120 !ruby/object:Gem::Requirement
28
+ requirement: &70183305828180 !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: *70253967406120
36
+ version_requirements: *70183305828180
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: i18n
39
- requirement: &70253967405540 !ruby/object:Gem::Requirement
39
+ requirement: &70183305827680 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: '0'
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70253967405540
47
+ version_requirements: *70183305827680
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: absa-h2h
50
- requirement: &70253967404660 !ruby/object:Gem::Requirement
50
+ requirement: &70183305827020 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 0.1.6
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70253967404660
58
+ version_requirements: *70183305827020
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: absa-esd
61
- requirement: &70253967404060 !ruby/object:Gem::Requirement
61
+ requirement: &70183305826380 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 0.0.3
67
67
  type: :runtime
68
68
  prerelease: false
69
- version_requirements: *70253967404060
69
+ version_requirements: *70183305826380
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: absa-notify-me
72
- requirement: &70253967403420 !ruby/object:Gem::Requirement
72
+ requirement: &70183305825740 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.0.7
78
78
  type: :runtime
79
79
  prerelease: false
80
- version_requirements: *70253967403420
80
+ version_requirements: *70183305825740
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: combustion
83
- requirement: &70253967402800 !ruby/object:Gem::Requirement
83
+ requirement: &70183305825040 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,7 +88,7 @@ dependencies:
88
88
  version: 0.3.1
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *70253967402800
91
+ version_requirements: *70183305825040
92
92
  description: ! "This engine allows users to inject requests into a queue to be processed.
93
93
  \n \n The queue handles bank account validations, credit payments,
94
94
  debit orders\n and collecting bank statements/notify me statements. "