lib/hubspot/codegen/webhooks/api/subscriptions_api.rb in hubspot-api-client-15.0.2 vs lib/hubspot/codegen/webhooks/api/subscriptions_api.rb in hubspot-api-client-16.0.0
- old
+ new
@@ -4,11 +4,11 @@
#Provides a way for apps to subscribe to certain change events in HubSpot. Once configured, apps will receive event payloads containing details about the changes at a specified target URL. There can only be one target URL for receiving event notifications per app.
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'
@@ -58,19 +58,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]
+ return_type = opts[:debug_return_type]
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.archive",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -118,25 +119,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(subscription_create_request)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(subscription_create_request)
# return_type
- return_type = opts[:return_type] || 'SubscriptionResponse'
+ return_type = opts[:debug_return_type] || 'SubscriptionResponse'
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.create",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -182,19 +187,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] || 'SubscriptionListResponse'
+ return_type = opts[:debug_return_type] || 'SubscriptionListResponse'
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.get_all",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -246,19 +252,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] || 'SubscriptionResponse'
+ return_type = opts[:debug_return_type] || 'SubscriptionResponse'
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.get_by_id",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -312,25 +319,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(subscription_patch_request)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(subscription_patch_request)
# return_type
- return_type = opts[:return_type] || 'SubscriptionResponse'
+ return_type = opts[:debug_return_type] || 'SubscriptionResponse'
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.update",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
@@ -378,24 +389,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(batch_input_subscription_batch_update_request)
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(batch_input_subscription_batch_update_request)
# return_type
- return_type = opts[:return_type] || 'BatchResponseSubscriptionResponse'
+ return_type = opts[:debug_return_type] || 'BatchResponseSubscriptionResponse'
# auth_names
- auth_names = opts[:auth_names] || ['developer_hapikey']
+ auth_names = opts[:debug_auth_names] || ['developer_hapikey']
new_options = opts.merge(
+ :operation => :"SubscriptionsApi.update_batch",
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,