Method: Propertyware::AccountingApi#delete_owner_contribution_with_http_info
- Defined in:
- lib/propertyware/api/accounting_api.rb
#delete_owner_contribution_with_http_info(owner_contribution_id, opts = {}) ⇒ Array<(ResponseEntity, Integer, Hash)>
Delete Owner Contribution (BETA) <p class="betaError"><b>Note: </b>Write access is only available to customers who have opted in to our beta program. Please reach out to support if you'd like to be included.</p> Delete Owner Contribution.<br/><br/><b>Required permission:</b><br/><span class="permissionBlock">PORTFOLIOS</span> - <code>Delete</code>
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
# File 'lib/propertyware/api/accounting_api.rb', line 503 def delete_owner_contribution_with_http_info(owner_contribution_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AccountingApi.delete_owner_contribution ...' end # verify the required parameter 'owner_contribution_id' is set if @api_client.config.client_side_validation && owner_contribution_id.nil? fail ArgumentError, "Missing the required parameter 'owner_contribution_id' when calling AccountingApi.delete_owner_contribution" end # resource path local_var_path = '/accounting/ownercontributions/{ownerContributionID}'.sub('{' + 'ownerContributionID' + '}', CGI.escape(owner_contribution_id.to_s)) # query parameters query_params = opts[:query_params] || {} # 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] || 'ResponseEntity' # auth_names auth_names = opts[:debug_auth_names] || ['organizationId', 'clientId', 'clientSecret'] = opts.merge( :operation => :"AccountingApi.delete_owner_contribution", :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(:DELETE, local_var_path, ) if @api_client.config.debugging @api_client.config.logger.debug "API called: AccountingApi#delete_owner_contribution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |