Class coreutil

This class contains util methods.More…

#import <Core.h>

Inheritance diagram for CoreUtil:

Instance Methods

(CoreSaleTrack *) - retrieveTrackFromCoreSale:
(CoreSaleEmv *) - retrieveEmvFromCoreSale:
(CoreSaleKeyed *) - retrieveKeyedFromCoreSale:
(NSString *) - cardTypeBasedOnBin:
(bool) - isInternetAvailable
(NSString *) - cardTypeBasedOnAid:
(NSDictionary *) - parseTLV:
(NSNumber *) - roundDouble:withCurrency:
(NSNumber *) - calcTax:withAmount:withCurrency:
(NSNumber *) - calcTip:withTip:withTipType:andCurrency:
(NSString *) - addUpAllAmounts:withCurrency:
(NSMutableString *) - convertToTLV:withTap:
(NSMutableString *) - hexFromInt:
(NSMutableString *) - getTlv:withAID:andVersion:
(NSString *) - hexStringToAscii:
(NSString *) - asciiToHexString:
(NSString *) - getVersionBasedOnBrand:
(NSData *) - hexStringToBytes:
(NSMutableArray *) - retrieveBinRangesFromResourceFile
(Validator *) - validateFields:
(NSString *) - maskCardNumber:mask:
(NSString *) - parseDate:
(NSString *) - generateSha256:
(NSString *) - getFormattedDateTime

Class Methods

(id) + singleton

Properties

NSMutableArray * customBinRanges

Detailed Description

This class contains util methods.

Method Documentation

addUpAllAmounts:withCurrency:()

  • - (NSString*) addUpAllAmounts:
  • (CoreSale *)
  • coreSale

  • withCurrency:
  • (Currency)
  • currency

asciiToHexString:()

  • - (NSString *) asciiToHexString:
  • (NSString *)
  • asciiString

calcTax:withAmount:withCurrency:()

  • - (NSNumber*) calcTax:
  • (NSNumber *)
  • percent

  • withAmount:
  • (NSNumber *)
  • amount

  • withCurrency:
  • (Currency)
  • currency

calcTip:withTip:withTipType:andCurrency:()

  • - (NSNumber*) calcTip:
  • (NSNumber *)
  • tipNumber

  • withTip:
  • (NSNumber *)
  • originalAmount

  • withTipType:
  • (NSString *)
  • tipType

  • andCurrency:
  • (Currency)
  • currency

cardTypeBasedOnAid:()

  • - (NSString*) cardTypeBasedOnAid:
  • (NSString *)
  • aid

cardTypeBasedOnBin:()

  • - (NSString*) cardTypeBasedOnBin:
  • (NSString *)
  • maskedPan

convertToTLV:withTap:()

  • withTap:
  • (bool)
  • tapCard

generateSha256:()

  • - (NSString*) generateSha256:
  • (NSString *)
  • hashString

getFormattedDateTime()

  • - (NSString*) getFormattedDateTime

getTlv:withAID:andVersion:()

  • - (NSMudivString *) getTlv:
  • (NSMudivString *)
  • aidsString

  • withAID:
  • (NSString *)
  • aid

  • andVersion:
  • (NSString *)
  • version

getVersionBasedOnBrand:()

  • - (NSString *) getVersionBasedOnBrand:
  • (NSString *)
  • cardType

hexFromInt:()

  • - (NSMudivString *) hexFromInt:
  • (NSInteger)
  • val

hexStringToAscii:()

  • - (NSString *) hexStringToAscii:
  • (NSString *)
  • hexString

hexStringToBytes:()

  • - (NSData *) hexStringToBytes:
  • (NSString *)
  • hexString

isInternetAvailable()

  • - (bool) isInternetAvailable

maskCardNumber:mask:()

  • - (NSString*) maskCardNumber:
  • (NSString *)
  • cardNumber

  • mask:
  • (NSString *)
  • mask

parseDate:()

  • - (NSString*) parseDate:
  • (NSString *)
  • date

parseTLV:()

  • - (NSDictionary*) parseTLV:
  • (NSString *)
  • tlv

retrieveBinRangesFromResourceFile()

  • - (NSMudivArray*) retrieveBinRangesFromResourceFile

retrieveEmvFromCoreSale:()

retrieveKeyedFromCoreSale:()

retrieveTrackFromCoreSale:()

roundDouble:withCurrency:()

  • - (NSNumber*) roundDouble:
  • (double)
  • number

  • withCurrency:
  • (Currency)
  • currency

singleton()

  • + (id) singleton

validateFields:()

Property Documentation

customBinRanges

    • - (NSMudivArray*) customBinRanges

  • readwriteatomic