//
//  PPMobileCouponsOcrParserFactory.h
//  BlinkOcrFramework
//
//  Created by Dino on 08/09/16.
//  Copyright © 2016 MicroBlink Ltd. All rights reserved.
//

#import "PPOcrParserFactory.h"

/**
 * Top up prefix of a coupon
 */
typedef NS_ENUM(NSUInteger, PPTopUpPrefix) {

    /** Simpa, BonBon, Multiplus */
    PPTopUpPrefix123 = 0,

    /** vip, tomato */
    PPTopUpPrefix103,

    /** tele2 */
    PPTopUpPrefix131,

    /** any prefix */
    PPTopUpPrefixGeneric,
};

/**
 *  Parses for mobile top up numbers
 */
PP_CLASS_AVAILABLE_IOS(6.0)
@interface PPTopUpOcrParserFactory : PPOcrParserFactory

/**
 * Set to YES if you want to allow
 */
@property (nonatomic) BOOL allowNoPrefix;

/**
 * Do not return *digits* prefix and # at the end of scanned ussd code
 * Default: NO.
 */
@property (nonatomic) BOOL returnCodeWithoutPrefix;

/**
 * Initializes parser with desired top up prefix.
 */
- (instancetype)initWithTopUpPrefix:(PPTopUpPrefix)topUpPrefix NS_DESIGNATED_INITIALIZER;

@end
