class IBANPayment
Public Instance Methods
beneficiary_address(line_size=35)
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 51 def beneficiary_address(line_size=35) beneficiary_address_line1(line_size) + beneficiary_address_line2(line_size) + beneficiary_address_line3(line_size) end
beneficiary_institution_address(line_size=24)
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 43 def beneficiary_institution_address(line_size=24) if identification_bank_address == 'A' @data[:beneficiarys_institution_swift_address_].to_s.ljust(70) else @data[:beneficiary_institution_address_line1].to_s.ljust(35) + @data[:beneficiary_institution_address_line2].to_s.ljust(35) end end
convertion_rate()
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 31 def convertion_rate @data[:convertion_rate].to_s.ljust(12) end
identification_bank_address()
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 39 def identification_bank_address @data[:identification_bank_address].to_s end
ordering_partys_address(line_size = 35)
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 35 def ordering_partys_address(line_size = 35) ordering_partys_address_line1(line_size) + ordering_partys_address_line2(line_size) + ordering_partys_address_line3(line_size) end
payment_amount_value()
click to toggle source
Calls superclass method
DTA::Payments::Base#payment_amount_value
# File lib/payment_dta/payments/iban_payment.rb, line 27 def payment_amount_value super(15) end
payment_amount_value_date()
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 23 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/iban_payment.rb, line 15 def payment_type '1' end
record()
click to toggle source
# File lib/payment_dta/payments/iban_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/iban_payment.rb, line 19 def requested_processing_date '000000' end
transaction_type()
click to toggle source
# File lib/payment_dta/payments/iban_payment.rb, line 11 def transaction_type '836' end
Protected Instance Methods
build_segment1()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment1
# File lib/payment_dta/payments/iban_payment.rb, line 57 def build_segment1 super + reference_number + account_to_be_debited + payment_amount + reserve_field(11) end
build_segment2()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment2
# File lib/payment_dta/payments/iban_payment.rb, line 61 def build_segment2 super + convertion_rate + ordering_partys_address + reserve_field(9) end
build_segment3()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment3
# File lib/payment_dta/payments/iban_payment.rb, line 65 def build_segment3 super + identification_bank_address + beneficiary_institution_address + beneficiary_iban_number + reserve_field(21) end
build_segment4()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment4
# File lib/payment_dta/payments/iban_payment.rb, line 69 def build_segment4 super + beneficiary_address + reserve_field(21) end
build_segment5()
click to toggle source
Calls superclass method
DTA::Payments::Base#build_segment5
# File lib/payment_dta/payments/iban_payment.rb, line 73 def build_segment5 super + identification_purpose + purpose + rule_of_charge + reserve_field(19) end