-
- 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 long
id
protected boolean
isActive
protected boolean
isVerified
protected String
name
protected String
accountType
protected String
accountInfo
public final static Parcelable.Creator<MenigaReimbursementAccount>
CREATOR
-
Method Summary
Modifier and Type Method Description static void
setOperator(MenigaReimbursementAccountOperations apiOperator)
int
describeContents()
void
writeToParcel(Parcel dest, int flags)
boolean
equals(Object o)
int
hashCode()
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. long
getId()
boolean
isActive()
boolean
isVerified()
String
getName()
String
getAccountType()
String
getAccountInfo()
void
setName(String name)
void
setAccountType(String accountType)
<T extends MenigaOfferAccountInfo> T
getAccountInfo(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)
-
-
-
-