Class ReturnReason

  • All Implemented Interfaces:
    android.os.Parcelable

    public class ReturnReason
    extends java.lang.Object
    implements android.os.Parcelable
    The ReturnReason class is used to allow users to pick a reason for returning a line item in the Return Assistant.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<ReturnReason> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ReturnReason​(android.os.Parcel in)  
        ReturnReason​(java.lang.String id, java.util.Map<java.lang.String,​java.lang.String> localizedLabels)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int describeContents()  
      java.lang.String getId()  
      java.util.Map<java.lang.String,​java.lang.String> getLocalizedLabels()  
      void writeToParcel​(android.os.Parcel dest, int flags)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<ReturnReason> CREATOR
    • Constructor Detail

      • ReturnReason

        public ReturnReason​(@NonNull
                            java.lang.String id,
                            @NonNull
                            java.util.Map<java.lang.String,​java.lang.String> localizedLabels)
        Parameters:
        id - the id of the return reason
        localizedLabels - a map of labels where the keys are two letter language codes (ISO 639-1)
      • ReturnReason

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

      • getId

        @NonNull
        public java.lang.String getId()
      • getLocalizedLabels

        @NonNull
        public java.util.Map<java.lang.String,​java.lang.String> getLocalizedLabels()
        Returns:
        a map of labels where the keys are two letter language codes (ISO 639-1)
      • 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