lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb in hubspot-api-client-16.0.0

- old
+ new

@@ -4,11 +4,11 @@ #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot The version of the OpenAPI document: v3 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.3.1 +OpenAPI Generator version: 6.2.1 =end require 'cgi' @@ -63,25 +63,29 @@ # header parameters header_params = opts[: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']) + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(invoice_create_payment_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(invoice_create_payment_request) # return_type - return_type = opts[:return_type] || 'InvoiceUpdateResponse' + return_type = opts[:debug_return_type] || 'InvoiceUpdateResponse' # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"InvoiceApi.create_payment", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, @@ -138,19 +142,20 @@ # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] + post_body = opts[:debug_body] # return_type - return_type = opts[:return_type] || 'InvoiceReadResponse' + return_type = opts[:debug_return_type] || 'InvoiceReadResponse' # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"InvoiceApi.get_by_id", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, @@ -209,24 +214,28 @@ # header parameters header_params = opts[: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']) + content_type = @api_client.select_header_content_type(['application/json']) + if !content_type.nil? + header_params['Content-Type'] = content_type + end # form parameters form_params = opts[:form_params] || {} # http body (model) - post_body = opts[:body] || @api_client.object_to_http_body(invoice_update_request) + post_body = opts[:debug_body] || @api_client.object_to_http_body(invoice_update_request) # return_type - return_type = opts[:return_type] || 'InvoiceUpdateResponse' + return_type = opts[:debug_return_type] || 'InvoiceUpdateResponse' # auth_names - auth_names = opts[:auth_names] || ['hapikey', 'oauth2'] + auth_names = opts[:debug_auth_names] || ['hapikey', 'oauth2'] new_options = opts.merge( + :operation => :"InvoiceApi.update", :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names,