Method: TripletexRubyClient::InventorystocktakingApi#put_with_http_info
- Defined in:
- lib/tripletex_ruby_client/api/inventorystocktaking_api.rb
#put_with_http_info(id, opts = {}) ⇒ Array<(ResponseWrapperStocktaking, Fixnum, Hash)>
- BETA
-
Update stocktaking.
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/tripletex_ruby_client/api/inventorystocktaking_api.rb', line 195 def put_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: InventorystocktakingApi.put ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling InventorystocktakingApi.put" end # resource path local_var_path = '/inventory/stocktaking/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(opts[:'body']) auth_names = ['tokenAuthScheme'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ResponseWrapperStocktaking') if @api_client.config.debugging @api_client.config.logger.debug "API called: InventorystocktakingApi#put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |