Package net.gini.android.models
Class ExtractionsContainer
- java.lang.Object
-
- net.gini.android.models.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.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<ExtractionsContainer>
CREATOR
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExtractionsContainer(android.os.Parcel in)
ExtractionsContainer(java.util.Map<java.lang.String,SpecificExtraction> specificExtractions, java.util.Map<java.lang.String,CompoundExtraction> compoundExtractions, java.util.List<ReturnReason> returnReasons)
Contains a document's extractions from the Gini API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
java.util.Map<java.lang.String,CompoundExtraction>
getCompoundExtractions()
java.util.List<ReturnReason>
getReturnReasons()
java.util.Map<java.lang.String,SpecificExtraction>
getSpecificExtractions()
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<ExtractionsContainer> CREATOR
-
-
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 interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-