Class GiftcardParams

  • All Implemented Interfaces:
    android.os.Parcelable

    public class GiftcardParams
    extends BaseListQueryParams
    Class for setting the query parameters of Giftcard API. All Nullable parameters means you can remove the parameter by passing a null value.
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<GiftcardParams> CREATOR
    • Constructor Detail

      • GiftcardParams

        public GiftcardParams​(android.os.Parcel source)
      • GiftcardParams

        public GiftcardParams()
        Default constructor
    • 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