MBIbanParser


@interface MBIbanParser : MBParser <NSCopying>

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

  • Undocumented

    Declaration

    Objective-C

    MB_INIT

    Swift

    init()
  • Iban parser result

    Declaration

    Objective-C

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

    Swift

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

    Default: NO

    Declaration

    Objective-C

    @property (assign, readwrite, 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 (readwrite, strong, nonatomic, nullable)
        NSArray<NSString *> *countryCodeWhitelist;

    Swift

    var countryCodeWhitelist: [String]? { get set }