class SpecialFinancialInstitutionPayment
Public Instance Methods
account_to_be_debited()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 23 def account_to_be_debited @data[:account_to_be_debited].to_s.ljust(34) end
convertion_rate()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 35 def convertion_rate @data[:convertion_rate].to_s.ljust(12) end
payment_amount_value()
click to toggle source
Calls superclass method
DTA::Payments::Base#payment_amount_value
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 27 def payment_amount_value super(15) end
payment_amount_value_date()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 31 def payment_amount_value_date @data[:payment_amount_value_date].to_s.ljust(6) end
payment_type()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 15 def payment_type '1' end
record()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 7 def record @record ||= segment1 + segment2 + segment3 + segment4 + segment5 end
requested_processing_date()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 19 def requested_processing_date '000000' end
transaction_type()
click to toggle source
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 11 def transaction_type '837' end
Protected Instance Methods
build_segment1()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment1
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 41 def build_segment1 super + reference_number + account_to_be_debited + payment_amount + reserve_field(1) end
build_segment2()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment2
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 45 def build_segment2 super + convertion_rate + ordering_partys_address(24) + reserve_field(18) end
build_segment3()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment3
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 49 def build_segment3 super + identification_bank_address + beneficiary_institution_bank_account_number + beneficiary_institution_address + reserve_field(5) end
build_segment4()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment4
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 53 def build_segment4 super + beneficiary_bank_account_number + beneficiary_address(24) + reserve_field(6) end
build_segment5()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment5
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 57 def build_segment5 super + beneficiary_iban_number + reserve_field(92) end
build_segment6()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment6
# File lib/payment_dta/payments/special_financial_institution_payment.rb, line 61 def build_segment6 super + identification_purpose + purpose + rule_of_charge + reserve_field(19) end