Class: Transmission::UserSet::Debit
Instance Attribute Summary collapse
#request_id
Class Method Summary
collapse
Instance Method Summary
collapse
#build!, #build_batch!, #build_contra!, #build_standard!, #create_standard!, for_reference, #has_test_work?, #has_work?, #next_batch_id, #partial_class_name
Instance Attribute Details
#accepted_report ⇒ Object
Returns the value of attribute accepted_report.
8
9
10
|
# File 'lib/bankserv/transmission/set/debit.rb', line 8
def accepted_report
@accepted_report
end
|
#account_type_correct ⇒ Object
Returns the value of attribute account_type_correct.
8
9
10
|
# File 'lib/bankserv/transmission/set/debit.rb', line 8
def account_type_correct
@account_type_correct
end
|
#type_of_service ⇒ Object
Returns the value of attribute type_of_service.
8
9
10
|
# File 'lib/bankserv/transmission/set/debit.rb', line 8
def type_of_service
@type_of_service
end
|
Class Method Details
.bankserv_service ⇒ Object
47
48
49
50
|
# File 'lib/bankserv/transmission/set/debit.rb', line 47
def self.bankserv_service
Bankserv::DebitService.where(active: true).last
end
|
.class_type ⇒ Object
10
11
12
|
# File 'lib/bankserv/transmission/set/debit.rb', line 10
def self.class_type
Bankserv::Debit
end
|
Instance Method Details
#bankserv_service ⇒ Object
42
43
44
45
|
# File 'lib/bankserv/transmission/set/debit.rb', line 42
def bankserv_service
Bankserv::Transmission::UserSet::Debit.bankserv_service
end
|
#build_batches(efts) ⇒ Object
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/bankserv/transmission/set/debit.rb', line 52
def build_batches(efts)
efts.group_by(&:batch_id).each do |batch_id, eft|
eft.select(&:standard?).each{|t| build_standard t}
eft.select(&:contra?).each{|t| build_contra t}
end
build_trailer
end
|
#class_type ⇒ Object
14
15
16
|
# File 'lib/bankserv/transmission/set/debit.rb', line 14
def class_type
Bankserv::Debit
end
|
#contra_bankserv_record_identifier ⇒ Object
30
31
32
|
# File 'lib/bankserv/transmission/set/debit.rb', line 30
def contra_bankserv_record_identifier
"52"
end
|
#credit_records ⇒ Object
38
39
40
|
# File 'lib/bankserv/transmission/set/debit.rb', line 38
def credit_records
contra_records
end
|
#debit_records ⇒ Object
34
35
36
|
# File 'lib/bankserv/transmission/set/debit.rb', line 34
def debit_records
standard_records
end
|
#rec_id ⇒ Object
18
19
20
|
# File 'lib/bankserv/transmission/set/debit.rb', line 18
def rec_id
'001'
end
|
#standard_bankserv_record_identifier ⇒ Object
22
23
24
|
# File 'lib/bankserv/transmission/set/debit.rb', line 22
def standard_bankserv_record_identifier
"50"
end
|
#standard_entry_class ⇒ Object
26
27
28
|
# File 'lib/bankserv/transmission/set/debit.rb', line 26
def standard_entry_class
"44"
end
|