-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable
public class MenigaReimbursementAccount implements Serializable, Parcelable
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected longidprotected booleanisActiveprotected booleanisVerifiedprotected Stringnameprotected StringaccountTypeprotected StringaccountInfopublic final static Parcelable.Creator<MenigaReimbursementAccount>CREATOR
-
Method Summary
Modifier and Type Method Description static voidsetOperator(MenigaReimbursementAccountOperations apiOperator)intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()static Result<MenigaReimbursementAccount>fetch(int id)Get a reimbursement account by it's id static Result<MenigaReimbursementAccountPage>fetch()Get a reimbursement account with default query values static Result<MenigaReimbursementAccountPage>fetch(Boolean includeInactive)Get a reimbursement account by it's id static Result<MenigaReimbursementAccount>create(String name, String accountType, MenigaOfferAccountInfo accountInfo)Add a reimbursement account. longgetId()booleanisActive()booleanisVerified()StringgetName()StringgetAccountType()StringgetAccountInfo()voidsetName(String name)voidsetAccountType(String accountType)<T extends MenigaOfferAccountInfo> TgetAccountInfo(Class<T> type)-
-
Method Detail
-
setOperator
static void setOperator(MenigaReimbursementAccountOperations apiOperator)
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
fetch
static Result<MenigaReimbursementAccount> fetch(int id)
Get a reimbursement account by it's id
- Parameters:
id- of the reimbursement account to be fetched
-
fetch
static Result<MenigaReimbursementAccountPage> fetch()
Get a reimbursement account with default query values
-
fetch
static Result<MenigaReimbursementAccountPage> fetch(Boolean includeInactive)
Get a reimbursement account by it's id
- Parameters:
includeInactive- include inactive reimbursement accounts?
-
create
static Result<MenigaReimbursementAccount> create(String name, String accountType, MenigaOfferAccountInfo accountInfo)
Add a reimbursement account. Only one active reimbursement account per user is allowed.Therefore, when a reimbursement account is added all existing active reimbursement accountsare deactivated.
- Parameters:
name- The name given to the accountaccountInfo- The account information related to the account
-
getId
long getId()
-
isActive
boolean isActive()
-
isVerified
boolean isVerified()
-
getAccountType
String getAccountType()
-
getAccountInfo
@Nonnull() String getAccountInfo()
-
setAccountType
void setAccountType(String accountType)
-
getAccountInfo
<T extends MenigaOfferAccountInfo> T getAccountInfo(Class<T> type)
-
-
-
-