class DomesticCHFPayment

Public Instance Methods

beneficiarys_bank_account_number() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 19
def beneficiarys_bank_account_number
  "/C/#{@data[:beneficiarys_bank_account_number]}".ljust(30)
end
end_beneficiary_address() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 23
def end_beneficiary_address
  end_beneficiary_address_line1 + end_beneficiary_address_line2 + end_beneficiary_address_line3 + end_beneficiary_address_line4
end
end_beneficiary_address_line1() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 27
def end_beneficiary_address_line1
  @data[:end_beneficiary_address_line1].to_s.ljust(24)
end
end_beneficiary_address_line2() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 31
def end_beneficiary_address_line2
  @data[:end_beneficiary_address_line2].to_s.ljust(24)
end
end_beneficiary_address_line3() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 35
def end_beneficiary_address_line3
  @data[:end_beneficiary_address_line3].to_s.ljust(24)
end
end_beneficiary_address_line4() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 39
def end_beneficiary_address_line4
  @data[:end_beneficiary_address_line4].to_s.ljust(24)
end
end_beneficiarys_bank_account_number() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 43
def end_beneficiarys_bank_account_number
  "/C/#{@data[:end_beneficiarys_bank_account_number]}".ljust(30)
end
payment_type() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 15
def payment_type
  '0'
end
record() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 7
def record
  @record ||= segment1 + segment2 + segment3 + segment4 + segment5
end
transaction_type() click to toggle source
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 11
def transaction_type
  '827'
end

Protected Instance Methods

build_segment1() click to toggle source
Calls superclass method DTA::Payments::Base#build_segment1
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 48
def build_segment1
 super + reference_number + account_to_be_debited + payment_amount + reserve_field(14)
end
build_segment2() click to toggle source
Calls superclass method DTA::Payments::Base#build_segment2
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 52
def build_segment2
   super + ordering_partys_address + reserve_field(30)
end
build_segment3() click to toggle source
Calls superclass method DTA::Payments::Base#build_segment3
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 56
def build_segment3
  super + beneficiarys_bank_account_number + beneficiary_address
end
build_segment4() click to toggle source
Calls superclass method DTA::Payments::Base#build_segment4
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 60
def build_segment4
  super + reason_for_payment_message(28) + reserve_field(14)
end
build_segment5() click to toggle source
Calls superclass method DTA::Payments::Base#build_segment5
# File lib/payment_dta/payments/domestic_chf_payment.rb, line 64
def build_segment5
  super + end_beneficiarys_bank_account_number + end_beneficiary_address
end