Class RewardParams.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setRewardType

        public RewardParams.Builder setRewardType​(@Nullable
                                                  java.lang.String rewardType)
        Set the reward type for the Reward parameter
        Parameters:
        rewardType - value to set for type
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setResultWithResponseCount

        public RewardParams.Builder setResultWithResponseCount​(@Nullable
                                                               java.lang.Boolean withCount)
        Set the value of the result with response count
        Parameters:
        withCount - value to set for result_with_response_count
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setMinimumResponseCount

        public RewardParams.Builder setMinimumResponseCount​(@Nullable
                                                            java.lang.Integer count)
        Set the minimum response count for parameter
        Parameters:
        count - value to set for min_response_count
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setRedemptionStatus

        public RewardParams.Builder setRedemptionStatus​(@Nullable
                                                        java.lang.String status)
        Set the redemption status in the parameter
        Parameters:
        status - value to set for redemption_status
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setRequireMetricValue

        public RewardParams.Builder setRequireMetricValue​(@Nullable
                                                          java.lang.Double metricValue)
        Set the required metric value
        Parameters:
        metricValue - value to set for required_metric_value
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setRequiredCurrency

        public RewardParams.Builder setRequiredCurrency​(@Nullable
                                                        java.lang.String currency)
        Set the parameter value for required currency
        Parameters:
        currency - value to set for required_currency
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setAddressId

        public RewardParams.Builder setAddressId​(@Nullable
                                                 java.lang.Integer addressId)
        Set the parameter value for address id
        Parameters:
        addressId - value to set for address_id
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • shouldSaveAddressToProfile

        public RewardParams.Builder shouldSaveAddressToProfile​(@Nullable
                                                               java.lang.Boolean shouldSave)
        Set the parameter value for save address to profile
        Parameters:
        shouldSave - value to set for update_address_profile
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setCombinationId

        public RewardParams.Builder setCombinationId​(@Nullable
                                                     java.lang.Integer combinationId)
        Set the parameter value for combination id
        Parameters:
        combinationId - value to set for combination_id
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setAwardId

        public RewardParams.Builder setAwardId​(@Nullable
                                               java.lang.Integer awardId)
        Set the parameter value for the award id
        Parameters:
        awardId - value to set for award_id
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setPaymentNonce

        public RewardParams.Builder setPaymentNonce​(@Nullable
                                                    java.lang.String paymentNonce)
        Set the parameter value for the payment nonce
        Parameters:
        paymentNonce - value to set for payment_nonce
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setAwardableType

        public RewardParams.Builder setAwardableType​(@Nullable
                                                     java.lang.String awardableType)
        Set the parameter value for the awardable type
        Parameters:
        awardableType - value to set for awardable_type
        Returns:
        The Builder object to allow for chaining calls to set/add methods
      • setAwardStatus

        public RewardParams.Builder setAwardStatus​(java.lang.String awardStatus)
        Set the parameter value for the award status
        Parameters:
        awardStatus - value to set for status
        Returns:
        The Builder object to allow for chaining calls to set/add methods