app/services/token_management/grant_eth_stake_currency.rb
def direct_request_to_saas_api
      #if success then render success response
      params_for_saas_api = {
        address: @address,
        client_id: @client_id
      }

      saas_response = SaasApi::Token::GrantEthStakeCurrency.new.perform(params_for_saas_api)
      return saas_response unless saas_response.success?

      @api_response_data[:workflow] = {
        id: saas_response.data[:workflow_id],
        kind: GlobalConstant::Workflow.grant_eth_stake_currency
      }

      success
    end
# Directs request to grant eth and stake currency to saas api
#
# * Author: Ankit
# * Date: 24/01/2019
# * Reviewed By:
#
# @return [Result::Base]
#
Directs request to grant eth and stake currency to saas api
Author: Ankit
Date: 24/01/2019
Reviewed By.
Directs request to grant eth and stake currency to saas api Author : Ankit Date : 24 / 01 / 2019 Reviewed By .
def direct_request_to_saas_api
      params_for_saas_api = {
        address: @address,
        client_id: @client_id
      }
      saas_response = SaasApi::Token::GrantEthStakeCurrency.new.perform(params_for_saas_api)
      return saas_response unless saas_response.success?
      @api_response_data[:workflow] = {
        id: saas_response.data[:workflow_id],
        kind: GlobalConstant::Workflow.grant_eth_stake_currency
      }
      success
    end
def direct_request_to_saas_api params_for_saas_api = { address : @address , client_id : @client_id } saas_response = SaasApi :: Token :: GrantEthStakeCurrency . new . perform ( params_for_saas_api ) return saas_response unless saas_response . success? @api_response_data [ :workflow ] = { id : saas_response . data [ :workflow_id ] , kind : GlobalConstant :: Workflow . grant_eth_stake_currency } success end
Directs request to grant eth and stake currency to saas api
 Author: Ankit
 Date: 24/01/2019
 Reviewed By:
Directs request to grant eth and stake currency to saas api Author : Ankit Date : 24 / 01 / 2019 Reviewed By :
#if success then render success response
None
Result::Base