Class GiftcardParams.Builder
- java.lang.Object
-
- com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder<P,B>
-
- com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder<GiftcardParams,GiftcardParams.Builder>
-
- com.cheetahdigital.giftcards.core.api.GiftcardParams.Builder
-
- Enclosing class:
- GiftcardParams
public static class GiftcardParams.Builder extends BaseListQueryParams.BaseListQueryBuilder<GiftcardParams,GiftcardParams.Builder>
Builder class forGiftcardParams
-
-
Field Summary
-
Fields inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
mQueryParams
-
-
Constructor Summary
Constructors Constructor Description Builder()
Default constructorBuilder(GiftcardParams queryParams)
Create a builder class from an existingGiftcardParams
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected GiftcardParams
createQueryParams()
Instantiates the implementation classGiftcardParams.Builder
setCategory(java.lang.String category)
Set the category of the gift card classes to be retrievedGiftcardParams.Builder
setIsUsable(java.lang.Boolean isUsable)
Set the flag to show usable gift cardsGiftcardParams.Builder
setResultWithCategories(java.lang.Boolean withCategories)
Set the flag to show category in the resultsGiftcardParams.Builder
setWithBalance(java.lang.Boolean withBalance)
Set the flag to show gift cards with balance-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseListQueryParams.BaseListQueryBuilder
addCategories, addCategory, setItemsPerPage, setLayout, setPage, setSortBy, setSortOrder
-
Methods inherited from class com.cheetahdigital.corekit.rest.params.BaseParams.BaseBuilder
build, setId
-
-
-
-
Constructor Detail
-
Builder
public Builder(GiftcardParams queryParams)
Create a builder class from an existingGiftcardParams
- Parameters:
queryParams
-GiftcardParams
to be reused
-
Builder
public Builder()
Default constructor
-
-
Method Detail
-
setIsUsable
public GiftcardParams.Builder setIsUsable(@Nullable java.lang.Boolean isUsable)
Set the flag to show usable gift cards- Parameters:
isUsable
-true
to show usable gift cards- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setWithBalance
public GiftcardParams.Builder setWithBalance(@Nullable java.lang.Boolean withBalance)
Set the flag to show gift cards with balance- Parameters:
withBalance
-true
to show gift cards with balance- Returns:
- The Builder object to allow for chaining calls to set/add methods
-
setResultWithCategories
public GiftcardParams.Builder setResultWithCategories(@Nullable java.lang.Boolean withCategories)
Set the flag to show category in the results- Parameters:
withCategories
-true
to show category field in results- Returns:
- The Builder object to allow chaining of calls to set/add methods
-
setCategory
public GiftcardParams.Builder setCategory(@Nullable java.lang.String category)
Set the category of the gift card classes to be retrieved- Parameters:
category
-String
internal name of the gift card class category- Returns:
- The Builder object to allow chaining of calls to set/add methods
-
createQueryParams
protected GiftcardParams createQueryParams()
Description copied from class:BaseParams.BaseBuilder
Instantiates the implementation class- Specified by:
createQueryParams
in classBaseParams.BaseBuilder<GiftcardParams,GiftcardParams.Builder>
- Returns:
- implementation class of
BaseParams.BaseBuilder
-
-