Class: SEPA::Builders::CreditTransfer::Transaction::RegulatoryReporting
- Inherits:
-
Stage
- Object
- Stage
- SEPA::Builders::CreditTransfer::Transaction::RegulatoryReporting
- Defined in:
- lib/sepa_rator/builders/credit_transfer/transaction/regulatory_reporting.rb
Overview
RgltryRptg — RegulatoryReporting3 (v3) or RegulatoryReporting10 (v10). Version is driven by ‘profile.features.regulatory_reporting_version`.
Instance Method Summary collapse
Methods inherited from Stage
Constructor Details
This class inherits a constructor from SEPA::Builders::Stage
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/sepa_rator/builders/credit_transfer/transaction/regulatory_reporting.rb', line 10 def call return unless profile.supports?(:regulatory_reporting) return unless transaction.regulatory_reportings version = profile.features.regulatory_reporting_version transaction.regulatory_reportings.each do |reporting| builder.RgltryRptg do builder.DbtCdtRptgInd(reporting[:indicator]) if reporting[:indicator] (reporting[:authority]) reporting[:details]&.each do |detail| builder.Dtls { build_detail(detail, version) } end end end end |