class BudgeaClient::TransfersApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/budgea_client/api/transfers_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

users_id_user_accounts_id_account_recipients_get(id_user, id_account, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use 'me' or 'all' @param id_account @param [Hash] opts the optional parameters @option opts [String] :expand @option opts [String] :category @option opts [String] :bank_name @option opts [String] :deleted @option opts [String] :bic @option opts [String] :label @option opts [String] :state @option opts [String] :iban @option opts [String] :error @option opts [String] :id @return [InlineResponse20029]

# File lib/budgea_client/api/transfers_api.rb, line 38
def users_id_user_accounts_id_account_recipients_get(id_user, id_account, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts)
  data
end
users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param [Hash] opts the optional parameters @option opts [String] :expand @option opts [String] :category @option opts [String] :bank_name @option opts [String] :deleted @option opts [String] :bic @option opts [String] :label @option opts [String] :state @option opts [String] :iban @option opts [String] :error @option opts [String] :id @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 59
def users_id_user_accounts_id_account_recipients_get_with_http_info(id_user, id_account, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
  query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
  query_params[:'bank_name'] = opts[:'bank_name'] if !opts[:'bank_name'].nil?
  query_params[:'deleted'] = opts[:'deleted'] if !opts[:'deleted'].nil?
  query_params[:'bic'] = opts[:'bic'] if !opts[:'bic'].nil?
  query_params[:'label'] = opts[:'label'] if !opts[:'label'].nil?
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
  query_params[:'iban'] = opts[:'iban'] if !opts[:'iban'].nil?
  query_params[:'error'] = opts[:'error'] if !opts[:'error'].nil?
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20029')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_recipients_id_recipient_post(id_user, id_account, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Recipient]

# File lib/budgea_client/api/transfers_api.rb, line 121
def users_id_user_accounts_id_account_recipients_id_recipient_post(id_user, id_account, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts)
  data
end
users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 135
def users_id_user_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_account, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Recipient')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_account, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 193
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_account, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts)
  data
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 207
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_account, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 265
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_account, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_recipient, id_transfer, opts)
  data
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 279
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 342
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_account, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_account, id_recipient, id_transfer, opts)
  data
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 358
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_account, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_account, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 423
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_account, id_recipient, amount, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts)
  data
end
users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 439
def users_id_user_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_account, id_recipient, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_transfers_get(id_user, id_account, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 502
def users_id_user_accounts_id_account_transfers_get(id_user, id_account, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts)
  data
end
users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 515
def users_id_user_accounts_id_account_transfers_get_with_http_info(id_user, id_account, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_transfers_id_transfer_delete(id_user, id_account, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 568
def users_id_user_accounts_id_account_transfers_id_transfer_delete(id_user, id_account, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts)
  data
end
users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 581
def users_id_user_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_account, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_transfers_id_transfer_post(id_user, id_account, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 639
def users_id_user_accounts_id_account_transfers_id_transfer_post(id_user, id_account, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts)
  data
end
users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 654
def users_id_user_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_account, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_accounts_id_account_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_accounts_id_account_transfers_post(id_user, id_account, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 714
def users_id_user_accounts_id_account_transfers_post(id_user, id_account, amount, opts = {})
  data, _status_code, _headers = users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts)
  data
end
users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_account @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 729
def users_id_user_accounts_id_account_transfers_post_with_http_info(id_user, id_account, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_accounts_id_account_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_accounts_id_account_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_accounts_id_account_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_get(id_user, id_connection, id_account, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param [Hash] opts the optional parameters @option opts [String] :expand @return [InlineResponse20029]

# File lib/budgea_client/api/transfers_api.rb, line 788
def users_id_user_connections_id_connection_accounts_id_account_recipients_get(id_user, id_connection, id_account, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 801
def users_id_user_connections_id_connection_accounts_id_account_recipients_get_with_http_info(id_user, id_connection, id_account, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20029')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post(id_user, id_connection, id_account, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Recipient]

# File lib/budgea_client/api/transfers_api.rb, line 859
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post(id_user, id_connection, id_account, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_account, id_recipient, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 874
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Recipient')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_connection, id_account, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 937
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get(id_user, id_connection, id_account, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_account, id_recipient, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 952
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_account, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1015
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1030
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1098
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1115
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_connection, id_account, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1185
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post(id_user, id_connection, id_account, id_recipient, amount, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_account, id_recipient, amount, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_account, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1202
def users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_account, id_recipient, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_transfers_get(id_user, id_connection, id_account, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 1270
def users_id_user_connections_id_connection_accounts_id_account_transfers_get(id_user, id_connection, id_account, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1284
def users_id_user_connections_id_connection_accounts_id_account_transfers_get_with_http_info(id_user, id_connection, id_account, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete(id_user, id_connection, id_account, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1342
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete(id_user, id_connection, id_account, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1356
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post(id_user, id_connection, id_account, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1419
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post(id_user, id_connection, id_account, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1435
def users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_account, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_accounts_id_account_transfers_post(id_user, id_connection, id_account, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1500
def users_id_user_connections_id_connection_accounts_id_account_transfers_post(id_user, id_connection, id_account, amount, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts)
  data
end
users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_account @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1516
def users_id_user_connections_id_connection_accounts_id_account_transfers_post_with_http_info(id_user, id_connection, id_account, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
  end
  # verify the required parameter 'id_account' is set
  if @api_client.config.client_side_validation && id_account.nil?
    fail ArgumentError, "Missing the required parameter 'id_account' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_accounts_id_account_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/accounts/{id_account}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_account' + '}', id_account.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_accounts_id_account_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_get(id_user, id_connection, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param [Hash] opts the optional parameters @option opts [String] :expand @return [InlineResponse20029]

# File lib/budgea_client/api/transfers_api.rb, line 1578
def users_id_user_connections_id_connection_recipients_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts)
  data
end
users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1590
def users_id_user_connections_id_connection_recipients_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20029')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_id_recipient_post(id_user, id_connection, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Recipient]

# File lib/budgea_client/api/transfers_api.rb, line 1643
def users_id_user_connections_id_connection_recipients_id_recipient_post(id_user, id_connection, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts)
  data
end
users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1657
def users_id_user_connections_id_connection_recipients_id_recipient_post_with_http_info(id_user, id_connection, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Recipient')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_get(id_user, id_connection, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 1715
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get(id_user, id_connection, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts)
  data
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1729
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_get_with_http_info(id_user, id_connection, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1787
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_connection, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1801
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1864
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post(id_user, id_connection, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1880
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_post(id_user, id_connection, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 1945
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post(id_user, id_connection, id_recipient, amount, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts)
  data
end
users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 1961
def users_id_user_connections_id_connection_recipients_id_recipient_transfers_post_with_http_info(id_user, id_connection, id_recipient, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_recipients_id_recipient_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_transfers_get(id_user, id_connection, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 2024
def users_id_user_connections_id_connection_transfers_get(id_user, id_connection, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts)
  data
end
users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2037
def users_id_user_connections_id_connection_transfers_get_with_http_info(id_user, id_connection, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_get"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_transfers_id_transfer_delete(id_user, id_connection, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2090
def users_id_user_connections_id_connection_transfers_id_transfer_delete(id_user, id_connection, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2103
def users_id_user_connections_id_connection_transfers_id_transfer_delete_with_http_info(id_user, id_connection, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_transfers_id_transfer_post(id_user, id_connection, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2161
def users_id_user_connections_id_connection_transfers_id_transfer_post(id_user, id_connection, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts)
  data
end
users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2176
def users_id_user_connections_id_connection_transfers_id_transfer_post_with_http_info(id_user, id_connection, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_connections_id_connection_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient'] if !opts[:'id_recipient'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_connections_id_connection_transfers_post(id_user, id_connection, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2236
def users_id_user_connections_id_connection_transfers_post(id_user, id_connection, amount, opts = {})
  data, _status_code, _headers = users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts)
  data
end
users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_connection @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2251
def users_id_user_connections_id_connection_transfers_post_with_http_info(id_user, id_connection, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_connections_id_connection_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
  end
  # verify the required parameter 'id_connection' is set
  if @api_client.config.client_side_validation && id_connection.nil?
    fail ArgumentError, "Missing the required parameter 'id_connection' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_connections_id_connection_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/connections/{id_connection}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_connection' + '}', id_connection.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_connections_id_connection_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_get(id_user, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param [Hash] opts the optional parameters @option opts [String] :expand @return [InlineResponse20029]

# File lib/budgea_client/api/transfers_api.rb, line 2308
def users_id_user_recipients_get(id_user, opts = {})
  data, _status_code, _headers = users_id_user_recipients_get_with_http_info(id_user, opts)
  data
end
users_id_user_recipients_get_with_http_info(id_user, opts = {}) click to toggle source

Returns the list of recipients.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(InlineResponse20029, Fixnum, Hash)>] InlineResponse20029 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2319
def users_id_user_recipients_get_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20029')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_id_recipient_post(id_user, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Recipient]

# File lib/budgea_client/api/transfers_api.rb, line 2367
def users_id_user_recipients_id_recipient_post(id_user, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts)
  data
end
users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts = {}) click to toggle source

Continue addition of a recipient.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param [Hash] opts the optional parameters @option opts [BOOLEAN] :background if true, do synchronization in background @option opts [String] :expand @return [Array<(Recipient, Fixnum, Hash)>] Recipient data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2380
def users_id_user_recipients_id_recipient_post_with_http_info(id_user, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients/{id_recipient}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'background'] = opts[:'background'] if !opts[:'background'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Recipient')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_id_recipient_transfers_get(id_user, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 2433
def users_id_user_recipients_id_recipient_transfers_get(id_user, id_recipient, opts = {})
  data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts)
  data
end
users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2446
def users_id_user_recipients_id_recipient_transfers_get_with_http_info(id_user, id_recipient, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_get"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2499
def users_id_user_recipients_id_recipient_transfers_id_transfer_delete(id_user, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts)
  data
end
users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2512
def users_id_user_recipients_id_recipient_transfers_id_transfer_delete_with_http_info(id_user, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_id_recipient_transfers_id_transfer_post(id_user, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2570
def users_id_user_recipients_id_recipient_transfers_id_transfer_post(id_user, id_recipient, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts)
  data
end
users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param id_transfer @param [Hash] opts the optional parameters @option opts [BOOLEAN] :validated set it to initialize transfer on the bank website. @option opts [Integer] :id_recipient2 set the recipient of the transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2585
def users_id_user_recipients_id_recipient_transfers_id_transfer_post_with_http_info(id_user, id_recipient, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['validated'] = opts[:'validated'] if !opts[:'validated'].nil?
  form_params['id_recipient'] = opts[:'id_recipient2'] if !opts[:'id_recipient2'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_recipients_id_recipient_transfers_post(id_user, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2645
def users_id_user_recipients_id_recipient_transfers_post(id_user, id_recipient, amount, opts = {})
  data, _status_code, _headers = users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts)
  data
end
users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_recipient @param amount amount of transfer @param [Hash] opts the optional parameters @option opts [String] :label reason of transfer @option opts [Date] :exec_date excution date of transfer @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2660
def users_id_user_recipients_id_recipient_transfers_post_with_http_info(id_user, id_recipient, amount, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_recipients_id_recipient_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'id_recipient' is set
  if @api_client.config.client_side_validation && id_recipient.nil?
    fail ArgumentError, "Missing the required parameter 'id_recipient' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
  end
  # verify the required parameter 'amount' is set
  if @api_client.config.client_side_validation && amount.nil?
    fail ArgumentError, "Missing the required parameter 'amount' when calling TransfersApi.users_id_user_recipients_id_recipient_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/recipients/{id_recipient}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_recipient' + '}', id_recipient.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}
  form_params['amount'] = amount
  form_params['label'] = opts[:'label'] if !opts[:'label'].nil?
  form_params['exec_date'] = opts[:'exec_date'] if !opts[:'exec_date'].nil?

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_recipients_id_recipient_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_transfers_get(id_user, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [InlineResponse20030]

# File lib/budgea_client/api/transfers_api.rb, line 2718
def users_id_user_transfers_get(id_user, opts = {})
  data, _status_code, _headers = users_id_user_transfers_get_with_http_info(id_user, opts)
  data
end
users_id_user_transfers_get_with_http_info(id_user, opts = {}) click to toggle source

Get transfers

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param [Hash] opts the optional parameters @option opts [String] :period period to group logs @option opts [String] :expand @return [Array<(InlineResponse20030, Fixnum, Hash)>] InlineResponse20030 data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2730
def users_id_user_transfers_get_with_http_info(id_user, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_get ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_get"
  end
  # resource path
  local_var_path = '/users/{id_user}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'InlineResponse20030')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_transfers_id_transfer_delete(id_user, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state 'created'.
@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2778
def users_id_user_transfers_id_transfer_delete(id_user, id_transfer, opts = {})
  data, _status_code, _headers = users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts)
  data
end
users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts = {}) click to toggle source

Cancel a transfer. It is possible to cancel only a transfer in state &#39;created&#39;.&lt;br&gt;&lt;br&gt; @param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_transfer @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2790
def users_id_user_transfers_id_transfer_delete_with_http_info(id_user, id_transfer, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_id_transfer_delete ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_id_transfer_delete"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_delete"
  end
  # resource path
  local_var_path = '/users/{id_user}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_id_transfer_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_transfers_id_transfer_post(id_user, id_transfer, transfer_validation_data, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_transfer @param transfer_validation_data @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2842
def users_id_user_transfers_id_transfer_post(id_user, id_transfer, transfer_validation_data, opts = {})
  data, _status_code, _headers = users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, transfer_validation_data, opts)
  data
end
users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, transfer_validation_data, opts = {}) click to toggle source

Execute or edit a Transfer.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param id_transfer @param transfer_validation_data @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2855
def users_id_user_transfers_id_transfer_post_with_http_info(id_user, id_transfer, transfer_validation_data, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_id_transfer_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
  end
  # verify the required parameter 'id_transfer' is set
  if @api_client.config.client_side_validation && id_transfer.nil?
    fail ArgumentError, "Missing the required parameter 'id_transfer' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
  end
  # verify the required parameter 'transfer_validation_data' is set
  if @api_client.config.client_side_validation && transfer_validation_data.nil?
    fail ArgumentError, "Missing the required parameter 'transfer_validation_data' when calling TransfersApi.users_id_user_transfers_id_transfer_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/transfers/{id_transfer}'.sub('{' + 'id_user' + '}', id_user.to_s).sub('{' + 'id_transfer' + '}', id_transfer.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(transfer_validation_data)
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_id_transfer_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
users_id_user_transfers_post(id_user, transfer_data, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param transfer_data @param [Hash] opts the optional parameters @option opts [String] :expand @return [Transfer]

# File lib/budgea_client/api/transfers_api.rb, line 2910
def users_id_user_transfers_post(id_user, transfer_data, opts = {})
  data, _status_code, _headers = users_id_user_transfers_post_with_http_info(id_user, transfer_data, opts)
  data
end
users_id_user_transfers_post_with_http_info(id_user, transfer_data, opts = {}) click to toggle source

Create a transfer object.

@param id_user Hint: you can use &#39;me&#39; or &#39;all&#39; @param transfer_data @param [Hash] opts the optional parameters @option opts [String] :expand @return [Array<(Transfer, Fixnum, Hash)>] Transfer data, response status code and response headers

# File lib/budgea_client/api/transfers_api.rb, line 2922
def users_id_user_transfers_post_with_http_info(id_user, transfer_data, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TransfersApi.users_id_user_transfers_post ...'
  end
  # verify the required parameter 'id_user' is set
  if @api_client.config.client_side_validation && id_user.nil?
    fail ArgumentError, "Missing the required parameter 'id_user' when calling TransfersApi.users_id_user_transfers_post"
  end
  # verify the required parameter 'transfer_data' is set
  if @api_client.config.client_side_validation && transfer_data.nil?
    fail ArgumentError, "Missing the required parameter 'transfer_data' when calling TransfersApi.users_id_user_transfers_post"
  end
  # resource path
  local_var_path = '/users/{id_user}/transfers'.sub('{' + 'id_user' + '}', id_user.to_s)

  # query parameters
  query_params = {}
  query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(transfer_data)
  auth_names = ['api_key']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Transfer')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TransfersApi#users_id_user_transfers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end