Class: SEPA::Builders::CreditTransfer::Transaction::InstructionsForCreditorAgent
- Inherits:
-
Stage
- Object
- Stage
- SEPA::Builders::CreditTransfer::Transaction::InstructionsForCreditorAgent
- Defined in:
- lib/sepa_rator/builders/credit_transfer/transaction/instructions_for_creditor_agent.rb
Overview
Unbounded InstrForCdtrAgt blocks. Profile must advertise the :instructions_for_creditor_agent capability (EPC-only schemas don’t define this element).
Instance Method Summary collapse
Methods inherited from Stage
Constructor Details
This class inherits a constructor from SEPA::Builders::Stage
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/sepa_rator/builders/credit_transfer/transaction/instructions_for_creditor_agent.rb', line 11 def call return unless profile.supports?(:instructions_for_creditor_agent) return unless transaction.instructions_for_creditor_agent transaction.instructions_for_creditor_agent.each do |instr| builder.InstrForCdtrAgt do builder.Cd(instr[:code]) if instr[:code] builder.InstrInf(instr[:instruction_info]) if instr[:instruction_info] end end end |