Package net.gini.android.models
Class ReturnReason
- java.lang.Object
-
- net.gini.android.models.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.
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<ReturnReason>
CREATOR
-
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)
-
-
-
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 reasonlocalizedLabels
- 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 interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
-