Class GiftcardParams
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams
-
- com.cheetahdigital.giftcards.core.api.GiftcardParams
-
- All Implemented Interfaces:
android.os.Parcelable
public class GiftcardParams extends BaseListQueryParams
Class for setting the query parameters of Giftcard API. AllNullableparameters means you can remove the parameter by passing anullvalue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGiftcardParams.BuilderBuilder class forGiftcardParams-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
BaseListQueryParams.BaseListQueryBuilder<P extends BaseListQueryParams,B extends BaseListQueryParams.BaseListQueryBuilder>
-
Nested classes/interfaces inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
BaseParams.BaseBuilder<T extends BaseParams,B extends BaseParams.BaseBuilder>
-
-
Field Summary
Fields Modifier and Type Field Description static android.os.Parcelable.Creator<GiftcardParams>CREATOR-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
mId, mQueryMap
-
-
Constructor Summary
Constructors Constructor Description GiftcardParams()Default constructorGiftcardParams(android.os.Parcel source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCategory()Returns the specific category for the gift card classbooleanhasResultsWithCategories()Returns the boolean value of results with categories parameterjava.lang.BooleanisUsable()Returns the usable flagvoidsetCategory(java.lang.String category)Set the category to show card classes with the specific categoryvoidsetIsUsable(java.lang.Boolean isUsable)Set the flag to show usable gift cardsvoidsetResultWithCategories(boolean shouldSet)Sets results with categories to true, otherwise, falsevoidsetWithBalance(java.lang.Boolean withBalance)Set the flag to show gift cards with balancejava.lang.BooleanwithBalance()Returns the flag to show gift cards with balance-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams
addCategories, addCategory, clearCategories, describeContents, getCategories, getItemsPerPage, getLayout, getPage, getSortBy, getSortOrder, removeCategory, setItemsPerPage, setLayout, setPage, setSortBy, setSortOrder, writeToParcel
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams
addParam, getAccessToken, getId, getParam, getQueryMap, setAccessToken, setId
-
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<GiftcardParams> CREATOR
-
-
Method Detail
-
setIsUsable
public void setIsUsable(@Nullable java.lang.Boolean isUsable)Set the flag to show usable gift cards- Parameters:
isUsable-trueto show usable gift cards
-
isUsable
@Nullable public java.lang.Boolean isUsable()
Returns the usable flag- Returns:
- usable flag
-
setWithBalance
public void setWithBalance(@Nullable java.lang.Boolean withBalance)Set the flag to show gift cards with balance- Parameters:
withBalance-trueto show gift cards with balance
-
withBalance
@Nullable public java.lang.Boolean withBalance()
Returns the flag to show gift cards with balance- Returns:
- flag of gift cards with balance
-
setCategory
public void setCategory(java.lang.String category)
Set the category to show card classes with the specific category- Parameters:
category-Stringspecific gift card class category
-
getCategory
public java.lang.String getCategory()
Returns the specific category for the gift card class- Returns:
Stringcategory
-
setResultWithCategories
public void setResultWithCategories(boolean shouldSet)
Sets results with categories to true, otherwise, false- Parameters:
shouldSet- true to enable shouldSet flag, else false
-
hasResultsWithCategories
public boolean hasResultsWithCategories()
Returns the boolean value of results with categories parameter- Returns:
- boolean
-
-