Module: SEPA::RegulatoryReportingValidator
- Included in:
- CreditTransferTransaction
- Defined in:
- lib/sepa_rator/concerns/regulatory_reporting_validator.rb
Overview
Extracted validation logic for regulatory reporting fields on CreditTransferTransaction. Keeps the transaction class under the Metrics/ClassLength limit.
Constant Summary collapse
- REGULATORY_INDICATORS =
%w[CRED DEBT BOTH].freeze
- COUNTRY_CODE_REGEX =
/\A[A-Z]{2}\z/- CURRENCY_CODE_REGEX =
/\A[A-Z]{3}\z/