Class UnitedKingdomSlipRecognizer.Result
java.lang.Object
com.microblink.photopay.entities.Entity.Result
com.microblink.photopay.entities.recognizers.Recognizer.Result
com.microblink.photopay.entities.recognizers.photopay.uk.slip.UnitedKingdomSlipRecognizer.Result
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- UnitedKingdomSlipRecognizer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.microblink.photopay.entities.recognizers.Recognizer.Result
Recognizer.Result.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<UnitedKingdomSlipRecognizer.Result>Fields inherited from class com.microblink.photopay.entities.Entity.Result
mOwnerFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Create a copy of the result.protected voiddeserializeFromByteArray(byte[] arr) The account number to which the payment goesintReturns the scanned amount in smallest currency (e.g.Returns the currency or null if nothing was scanned.Returns the scanned amount as big decimal value in normal currency (e.g.The reference of the paymentThe slip sorting code.intThe slip transaction code or 0 if such code does not exist.protected byte[]protected voidterminateNative(long nativeContext) toString()Methods inherited from class com.microblink.photopay.entities.recognizers.Recognizer.Result
getResultState, isEmptyMethods inherited from class com.microblink.photopay.entities.Entity.Result
describeContents, finalize, getNativeContext, readFromParcel, writeToParcel
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Result
protected Result(long nativeResult)
-
-
Method Details
-
getAmount
public int getAmount()Returns the scanned amount in smallest currency (e.g. cents). Return 0 if nothing was scanned.- Returns:
- the scanned amount in smallest currency (e.g. cents).
-
getSortingCode
The slip sorting code. -
getReferenceNumber
The reference of the payment -
getCurrency
Returns the currency or null if nothing was scanned.- Returns:
- the currency or null if nothing was scanned.
-
getTransactionCode
public int getTransactionCode()The slip transaction code or 0 if such code does not exist. -
getAccountNumber
The account number to which the payment goes -
getParsedAmount
Returns the scanned amount as big decimal value in normal currency (e.g. euros).- Returns:
- the scanned amount as big decimal value in normal currency (e.g. euros).
-
toString
-
serializeToByteArray
@Nullable protected byte[] serializeToByteArray()- Specified by:
serializeToByteArrayin classEntity.Result
-
deserializeFromByteArray
protected void deserializeFromByteArray(@NonNull byte[] arr) - Specified by:
deserializeFromByteArrayin classEntity.Result
-
clone
Description copied from class:Entity.ResultCreate a copy of the result. This is required in order to retain the result even after owning entity has mutated it.- Specified by:
clonein classRecognizer.Result- Returns:
- a copy of the result
-
terminateNative
protected void terminateNative(long nativeContext) - Specified by:
terminateNativein classEntity.Result
-