MBPIbanParser

Objective-C


@interface MBPIbanParser : MBPParser <NSCopying>

Swift

class MBPIbanParser : MBPParser, NSCopying

MBPAmountParser that can extract IBAN (International Bank Account Number) from OCR result.

  • Iban parser result

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) MBPIbanParserResult *_Nonnull result;

    Swift

    var result: MBPIbanParserResult { get }
  • Should prefix (country code) always be returned.

    Default: NO

    Declaration

    Objective-C

    @property (nonatomic) BOOL alwaysReturnPrefix;

    Swift

    var alwaysReturnPrefix: Bool { get set }
  • Set of allowed country codes. If whitelist is defined, only IBANs with defined country codes will be recognized. For example to allow only Croatian IBANs define whitelist with country code “HR”. If whitelist is not defined, or if it is set to nil, all valid IBANs will be returned.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSArray<NSString *> *countryCodeWhitelist;

    Swift

    var countryCodeWhitelist: [String]? { get set }