Method: Wallee::ChargeFlowLevelService#send_message_with_http_info
- Defined in:
- lib/wallee-ruby-sdk/api/charge_flow_level_service_api.rb
#send_message_with_http_info(space_id, id, opts = {}) ⇒ Array<(ChargeFlowLevel, Fixnum, Hash)>
Returns ChargeFlowLevel data, response status code and response headers.
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
# File 'lib/wallee-ruby-sdk/api/charge_flow_level_service_api.rb', line 246 def (space_id, id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ChargeFlowLevelService.send_message ..." end # verify the required parameter 'space_id' is set fail ArgumentError, "Missing the required parameter 'space_id' when calling ChargeFlowLevelService.send_message" if space_id.nil? # verify the required parameter 'id' is set fail ArgumentError, "Missing the required parameter 'id' when calling ChargeFlowLevelService.send_message" if id.nil? # resource path local_var_path = "/charge-flow-level/sendMessage".sub('{format}','json') # query parameters query_params = {} query_params[:'spaceId'] = space_id query_params[:'id'] = id # header parameters header_params = {} # HTTP header 'Accept' (if needed) local_header_accept = ['application/json;charset=utf-8'] local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result # HTTP header 'Content-Type' local_header_content_type = ['*/*'] header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type) # form parameters form_params = {} # connection timeout timeout = @api_client.get_connection_timeout() # http body (model) post_body = nil auth_names = [] 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, :timeout => timeout, :auth_names => auth_names, :return_type => 'ChargeFlowLevel') if @api_client.config.debugging @api_client.config.logger.debug "API called: ChargeFlowLevelService#send_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |