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. AllNullable
parameters means you can remove the parameter by passing anull
value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GiftcardParams.Builder
Builder 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.String
getCategory()
Returns the specific category for the gift card classboolean
hasResultsWithCategories()
Returns the boolean value of results with categories parameterjava.lang.Boolean
isUsable()
Returns the usable flagvoid
setCategory(java.lang.String category)
Set the category to show card classes with the specific categoryvoid
setIsUsable(java.lang.Boolean isUsable)
Set the flag to show usable gift cardsvoid
setResultWithCategories(boolean shouldSet)
Sets results with categories to true, otherwise, falsevoid
setWithBalance(java.lang.Boolean withBalance)
Set the flag to show gift cards with balancejava.lang.Boolean
withBalance()
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
-true
to 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
-true
to 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
-String
specific gift card class category
-
getCategory
public java.lang.String getCategory()
Returns the specific category for the gift card class- Returns:
String
category
-
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
-
-