lib/neutrino/gateway/application_accounts.rb
# Updates an application account of Neutrino by its ID
#
# @return [Hash] the application account
# @raise [Exceptions::UnableToUpdateApplicationAccountsError] when Neutrino returns a 400 status code
Updates an application account of Neutrino by its ID
Updates an application account of Neutrino by its ID
def update_by_id(id, body)
          path = "#{base_uri}/#{id}"
          response = request(path, { method: :post }, body)
          error = JSON.parse(response.to_s)['error']
          response
            .if_400_raise(Neutrino::Gateway::Exceptions::UnableToUpdateApplicationAccountsError.new([], error))
            .to_hash
        end
def update_by_id ( id , body ) path = "#{base_uri}/#{id}" response = request ( path , { method : :post } , body ) error = JSON . parse ( response . to_s ) [ 'error' ] response . if_400_raise ( Neutrino :: Gateway :: Exceptions :: UnableToUpdateApplicationAccountsError . new ( [ ] , error ) ) . to_hash end
Updates an application account of Neutrino by its ID
Updates an application account of Neutrino by its ID
the application account
the application account
Hash
[Exceptions::UnableToUpdateApplicationAccountsError] when Neutrino returns a 400 status code
[ Exceptions :: UnableToUpdateApplicationAccountsError ] when Neutrino returns a 400 status code
id
<not_specific>
body
<not_specific>