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

public static final class UnitedKingdomSlipRecognizer.Result extends Recognizer.Result
  • Field Details

  • 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

      @NonNull public String getSortingCode()
      The slip sorting code.
    • getReferenceNumber

      @NonNull public String getReferenceNumber()
      The reference of the payment
    • getCurrency

      @NonNull @Nullable public String 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

      @NonNull public String getAccountNumber()
      The account number to which the payment goes
    • getParsedAmount

      @NonNull public BigDecimal 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

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      String version of this result
    • serializeToByteArray

      @Nullable protected byte[] serializeToByteArray()
      Specified by:
      serializeToByteArray in class Entity.Result
    • deserializeFromByteArray

      protected void deserializeFromByteArray(@NonNull byte[] arr)
      Specified by:
      deserializeFromByteArray in class Entity.Result
    • clone

      Description copied from class: Entity.Result
      Create a copy of the result. This is required in order to retain the result even after owning entity has mutated it.
      Specified by:
      clone in class Recognizer.Result
      Returns:
      a copy of the result
    • terminateNative

      protected void terminateNative(long nativeContext)
      Specified by:
      terminateNative in class Entity.Result