Class ExtractionsContainer

  • All Implemented Interfaces:
    android.os.Parcelable

    public class ExtractionsContainer
    extends java.lang.Object
    implements android.os.Parcelable
    The ExtractionsContainer contains specific extractions (e.g. "amountToPay"), compound extractions (e.g. "lineItems") and return reasons (used to allow users to specify in the Return Assistant why they return an item).

    See the Gini API documentation for a list of the names of the specific extractions and compound specific extractions.

    • Constructor Detail

      • ExtractionsContainer

        public ExtractionsContainer​(@NonNull
                                    java.util.Map<java.lang.String,​SpecificExtraction> specificExtractions,
                                    @NonNull
                                    java.util.Map<java.lang.String,​CompoundExtraction> compoundExtractions,
                                    @NonNull
                                    java.util.List<ReturnReason> returnReasons)
        Contains a document's extractions from the Gini API.
        Parameters:
        specificExtractions -
        compoundExtractions -
        returnReasons -
      • ExtractionsContainer

        protected ExtractionsContainer​(android.os.Parcel in)
    • Method Detail

      • getSpecificExtractions

        @NonNull
        public java.util.Map<java.lang.String,​SpecificExtraction> getSpecificExtractions()
      • getCompoundExtractions

        @NonNull
        public java.util.Map<java.lang.String,​CompoundExtraction> getCompoundExtractions()
      • getReturnReasons

        @NonNull
        public java.util.List<ReturnReason> getReturnReasons()
      • describeContents

        public int describeContents()
        Specified by:
        describeContents in interface android.os.Parcelable
      • writeToParcel

        public void writeToParcel​(@NonNull
                                  android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable