class CybridApiBank::AssetsBankApi

def initialize(api_client = ApiClient.default)

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

def list_assets(opts = {})

Returns:
  • (AssetListBankModel) -

Options Hash: (**opts)
  • :code (String) -- Comma separated codes to list assets for.
  • :per_page (Integer) -- The number of entities per page to return.
  • :page (Integer) -- The page index to retrieve.

Parameters:
  • opts (Hash) -- the optional parameters
def list_assets(opts = {})
  data, _status_code, _headers = list_assets_with_http_info(opts)
  data
end

def list_assets_with_http_info(opts = {})

Returns:
  • (Array<(AssetListBankModel, Integer, Hash)>) - AssetListBankModel data, response status code and response headers

Options Hash: (**opts)
  • :code (String) -- Comma separated codes to list assets for.
  • :per_page (Integer) -- The number of entities per page to return.
  • :page (Integer) -- The page index to retrieve.

Parameters:
  • opts (Hash) -- the optional parameters
def list_assets_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: AssetsBankApi.list_assets ...'
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AssetsBankApi.list_assets, must be greater than or equal to 0.'
  end
  if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
    fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling AssetsBankApi.list_assets, must be smaller than or equal to 100.'
  end
  if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling AssetsBankApi.list_assets, must be greater than or equal to 1.'
  end
  # resource path
  local_var_path = '/api/assets'
  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
  query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # form parameters
  form_params = opts[:form_params] || {}
  # http body (model)
  post_body = opts[:debug_body]
  # return_type
  return_type = opts[:debug_return_type] || 'AssetListBankModel'
  # auth_names
  auth_names = opts[:debug_auth_names] || []
  new_options = opts.merge(
    :operation => :"AssetsBankApi.list_assets",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: AssetsBankApi#list_assets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end