hubspot-api-client 12.0.0 → 13.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +25 -23
  4. data/README.md +49 -44
  5. data/hubspot-api-client.gemspec +1 -1
  6. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +1 -1
  7. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +2 -2
  8. data/lib/hubspot/codegen/cms/site-search/api/public_api.rb +1 -4
  9. data/lib/hubspot/codegen/cms/site-search/models/content_search_result.rb +2 -2
  10. data/lib/hubspot/codegen/cms/site-search/models/indexed_data.rb +1 -1
  11. data/lib/hubspot/codegen/cms/site-search/models/{search_hit_field.rb → indexed_field.rb} +35 -35
  12. data/lib/hubspot/codegen/cms/url-redirects/api/redirects_api.rb +23 -21
  13. data/lib/hubspot/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping.rb → collection_response_with_total_url_mapping_forward_paging.rb} +4 -6
  14. data/lib/hubspot/codegen/cms/url-redirects/models/{paging.rb → forward_paging.rb} +3 -3
  15. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb +14 -226
  16. data/lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb +31 -31
  17. data/lib/hubspot/codegen/crm/companies/api/basic_api.rb +2 -2
  18. data/lib/hubspot/codegen/crm/contacts/api/basic_api.rb +8 -2
  19. data/lib/hubspot/codegen/crm/deals/api/basic_api.rb +2 -2
  20. data/lib/hubspot/codegen/crm/line_items/api/basic_api.rb +2 -2
  21. data/lib/hubspot/codegen/crm/objects/api/basic_api.rb +2 -2
  22. data/lib/hubspot/codegen/crm/objects/calls/api/basic_api.rb +2 -2
  23. data/lib/hubspot/codegen/crm/objects/emails/api/basic_api.rb +2 -2
  24. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +59 -59
  25. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +114 -114
  26. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +61 -61
  27. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/public_object_api.rb +6 -6
  28. data/lib/hubspot/codegen/crm/objects/meetings/api/basic_api.rb +2 -2
  29. data/lib/hubspot/codegen/crm/objects/notes/api/basic_api.rb +2 -2
  30. data/lib/hubspot/codegen/crm/objects/tasks/api/basic_api.rb +2 -2
  31. data/lib/hubspot/codegen/crm/products/api/basic_api.rb +2 -2
  32. data/lib/hubspot/codegen/crm/quotes/api/basic_api.rb +2 -2
  33. data/lib/hubspot/codegen/crm/quotes/api/public_object_api.rb +6 -6
  34. data/lib/hubspot/codegen/crm/tickets/api/basic_api.rb +2 -2
  35. data/lib/hubspot/codegen/files/files/api/files_api.rb +2 -2
  36. data/lib/hubspot/codegen/files/files/api/folders_api.rb +3 -3
  37. data/lib/hubspot/codegen/marketing/transactional/api/public_smtp_tokens_api.rb +18 -14
  38. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +10 -6
  39. data/lib/hubspot/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view.rb → collection_response_smtp_api_token_view_forward_paging.rb} +4 -5
  40. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +15 -15
  41. data/lib/hubspot/codegen/marketing/transactional/models/{paging.rb → forward_paging.rb} +3 -3
  42. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +3 -13
  43. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +22 -30
  44. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +1 -1
  45. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +1 -1
  46. data/lib/hubspot/configuration.rb +3 -1
  47. data/lib/hubspot/version.rb +1 -1
  48. data/spec/codegen/cms/site-search/api/public_api_spec.rb +0 -1
  49. data/spec/codegen/cms/site-search/models/content_search_result_spec.rb +1 -1
  50. data/spec/codegen/cms/site-search/models/{search_hit_field_spec.rb → indexed_field_spec.rb} +10 -10
  51. data/spec/codegen/cms/url-redirects/api/redirects_api_spec.rb +3 -5
  52. data/spec/codegen/cms/url-redirects/models/{collection_response_with_total_url_mapping_spec.rb → collection_response_with_total_url_mapping_forward_paging_spec.rb} +6 -6
  53. data/spec/codegen/cms/url-redirects/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  54. data/spec/codegen/cms/url-redirects/models/url_mapping_create_request_body_spec.rb +10 -10
  55. data/spec/codegen/cms/url-redirects/models/url_mapping_spec.rb +2 -78
  56. data/spec/codegen/crm/contacts/api/basic_api_spec.rb +2 -0
  57. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +3 -3
  58. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +3 -3
  59. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +14 -14
  60. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +26 -26
  61. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +17 -17
  62. data/spec/codegen/crm/objects/feedback_submissions/api/public_object_api_spec.rb +2 -2
  63. data/spec/codegen/crm/quotes/api/public_object_api_spec.rb +2 -2
  64. data/spec/codegen/marketing/transactional/api/public_smtp_tokens_api_spec.rb +2 -2
  65. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +1 -1
  66. data/spec/codegen/marketing/transactional/models/{collection_response_smtp_api_token_view_spec.rb → collection_response_smtp_api_token_view_forward_paging_spec.rb} +6 -6
  67. data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +7 -7
  68. data/spec/codegen/marketing/transactional/models/{paging_spec.rb → forward_paging_spec.rb} +6 -6
  69. data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +4 -4
  70. data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +3 -1
  71. data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +3 -0
  72. data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +4 -1
  73. data/spec/discovery/crm/objects/feedback_submissions/public_object_api_spec.rb +1 -1
  74. data/spec/features/crm/objects/feedback_submissions/associations_api_spec.rb +3 -1
  75. data/spec/features/crm/objects/feedback_submissions/basic_api_spec.rb +3 -0
  76. data/spec/features/crm/objects/feedback_submissions/batch_api_spec.rb +4 -1
  77. data/spec/features/crm/objects/feedback_submissions/public_object_api_spec.rb +1 -1
  78. metadata +20 -27
  79. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
@@ -22,40 +22,37 @@ module Hubspot
22
22
  def initialize(api_client = ApiClient.default)
23
23
  @api_client = api_client
24
24
  end
25
- # Read a batch of feedback submissions by internal ID, or unique property values
26
- # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
25
+ # Archive a batch of feedback submissions by ID
26
+ # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
27
27
  # @param [Hash] opts the optional parameters
28
- # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
29
- # @return [BatchResponseSimplePublicObject]
30
- def read_batch(batch_read_input_simple_public_object_id, opts = {})
31
- data, _status_code, _headers = read_batch_with_http_info(batch_read_input_simple_public_object_id, opts)
32
- data
28
+ # @return [nil]
29
+ def archive(batch_input_simple_public_object_id, opts = {})
30
+ archive_with_http_info(batch_input_simple_public_object_id, opts)
31
+ nil
33
32
  end
34
33
 
35
- # Read a batch of feedback submissions by internal ID, or unique property values
36
- # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
34
+ # Archive a batch of feedback submissions by ID
35
+ # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
37
36
  # @param [Hash] opts the optional parameters
38
- # @option opts [Boolean] :archived Whether to return only results that have been archived.
39
- # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
40
- def read_batch_with_http_info(batch_read_input_simple_public_object_id, opts = {})
37
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
38
+ def archive_with_http_info(batch_input_simple_public_object_id, opts = {})
41
39
  if @api_client.config.debugging
42
- @api_client.config.logger.debug 'Calling API: BatchApi.read_batch ...'
40
+ @api_client.config.logger.debug 'Calling API: BatchApi.archive ...'
43
41
  end
44
- # verify the required parameter 'batch_read_input_simple_public_object_id' is set
45
- if @api_client.config.client_side_validation && batch_read_input_simple_public_object_id.nil?
46
- fail ArgumentError, "Missing the required parameter 'batch_read_input_simple_public_object_id' when calling BatchApi.read_batch"
42
+ # verify the required parameter 'batch_input_simple_public_object_id' is set
43
+ if @api_client.config.client_side_validation && batch_input_simple_public_object_id.nil?
44
+ fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_id' when calling BatchApi.archive"
47
45
  end
48
46
  # resource path
49
- local_var_path = '/crm/v3/objects/feedback_submissions/batch/read'
47
+ local_var_path = '/crm/v3/objects/feedback_submissions/batch/archive'
50
48
 
51
49
  # query parameters
52
50
  query_params = opts[:query_params] || {}
53
- query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
54
51
 
55
52
  # header parameters
56
53
  header_params = opts[:header_params] || {}
57
54
  # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
55
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
59
56
  # HTTP header 'Content-Type'
60
57
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
58
 
@@ -63,10 +60,10 @@ module Hubspot
63
60
  form_params = opts[:form_params] || {}
64
61
 
65
62
  # http body (model)
66
- post_body = opts[:body] || @api_client.object_to_http_body(batch_read_input_simple_public_object_id)
63
+ post_body = opts[:body] || @api_client.object_to_http_body(batch_input_simple_public_object_id)
67
64
 
68
65
  # return_type
69
- return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
66
+ return_type = opts[:return_type]
70
67
 
71
68
  # auth_names
72
69
  auth_names = opts[:auth_names] || ['hapikey']
@@ -82,34 +79,34 @@ module Hubspot
82
79
 
83
80
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
81
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: BatchApi#read_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ @api_client.config.logger.debug "API called: BatchApi#archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
83
  end
87
84
  return data, status_code, headers
88
85
  end
89
86
 
90
- # Archive a batch of feedback submissions by ID
91
- # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
87
+ # Create a batch of feedback submissions
88
+ # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
92
89
  # @param [Hash] opts the optional parameters
93
- # @return [nil]
94
- def submissions_batch_archive(batch_input_simple_public_object_id, opts = {})
95
- submissions_batch_archive_with_http_info(batch_input_simple_public_object_id, opts)
96
- nil
90
+ # @return [BatchResponseSimplePublicObject]
91
+ def create(batch_input_simple_public_object_input, opts = {})
92
+ data, _status_code, _headers = create_with_http_info(batch_input_simple_public_object_input, opts)
93
+ data
97
94
  end
98
95
 
99
- # Archive a batch of feedback submissions by ID
100
- # @param batch_input_simple_public_object_id [BatchInputSimplePublicObjectId]
96
+ # Create a batch of feedback submissions
97
+ # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
101
98
  # @param [Hash] opts the optional parameters
102
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
103
- def submissions_batch_archive_with_http_info(batch_input_simple_public_object_id, opts = {})
99
+ # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
100
+ def create_with_http_info(batch_input_simple_public_object_input, opts = {})
104
101
  if @api_client.config.debugging
105
- @api_client.config.logger.debug 'Calling API: BatchApi.submissions_batch_archive ...'
102
+ @api_client.config.logger.debug 'Calling API: BatchApi.create ...'
106
103
  end
107
- # verify the required parameter 'batch_input_simple_public_object_id' is set
108
- if @api_client.config.client_side_validation && batch_input_simple_public_object_id.nil?
109
- fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_id' when calling BatchApi.submissions_batch_archive"
104
+ # verify the required parameter 'batch_input_simple_public_object_input' is set
105
+ if @api_client.config.client_side_validation && batch_input_simple_public_object_input.nil?
106
+ fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_input' when calling BatchApi.create"
110
107
  end
111
108
  # resource path
112
- local_var_path = '/crm/v3/objects/feedback_submissions/batch/archive'
109
+ local_var_path = '/crm/v3/objects/feedback_submissions/batch/create'
113
110
 
114
111
  # query parameters
115
112
  query_params = opts[:query_params] || {}
@@ -117,7 +114,7 @@ module Hubspot
117
114
  # header parameters
118
115
  header_params = opts[:header_params] || {}
119
116
  # HTTP header 'Accept' (if needed)
120
- header_params['Accept'] = @api_client.select_header_accept(['*/*'])
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
121
118
  # HTTP header 'Content-Type'
122
119
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
123
120
 
@@ -125,10 +122,10 @@ module Hubspot
125
122
  form_params = opts[:form_params] || {}
126
123
 
127
124
  # http body (model)
128
- post_body = opts[:body] || @api_client.object_to_http_body(batch_input_simple_public_object_id)
125
+ post_body = opts[:body] || @api_client.object_to_http_body(batch_input_simple_public_object_input)
129
126
 
130
127
  # return_type
131
- return_type = opts[:return_type]
128
+ return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
132
129
 
133
130
  # auth_names
134
131
  auth_names = opts[:auth_names] || ['hapikey']
@@ -144,37 +141,40 @@ module Hubspot
144
141
 
145
142
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
146
143
  if @api_client.config.debugging
147
- @api_client.config.logger.debug "API called: BatchApi#submissions_batch_archive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ @api_client.config.logger.debug "API called: BatchApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
148
145
  end
149
146
  return data, status_code, headers
150
147
  end
151
148
 
152
- # Create a batch of feedback submissions
153
- # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
149
+ # Read a batch of feedback submissions by internal ID, or unique property values
150
+ # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
154
151
  # @param [Hash] opts the optional parameters
152
+ # @option opts [Boolean] :archived Whether to return only results that have been archived. (default to false)
155
153
  # @return [BatchResponseSimplePublicObject]
156
- def submissions_batch_create(batch_input_simple_public_object_input, opts = {})
157
- data, _status_code, _headers = submissions_batch_create_with_http_info(batch_input_simple_public_object_input, opts)
154
+ def read(batch_read_input_simple_public_object_id, opts = {})
155
+ data, _status_code, _headers = read_with_http_info(batch_read_input_simple_public_object_id, opts)
158
156
  data
159
157
  end
160
158
 
161
- # Create a batch of feedback submissions
162
- # @param batch_input_simple_public_object_input [BatchInputSimplePublicObjectInput]
159
+ # Read a batch of feedback submissions by internal ID, or unique property values
160
+ # @param batch_read_input_simple_public_object_id [BatchReadInputSimplePublicObjectId]
163
161
  # @param [Hash] opts the optional parameters
162
+ # @option opts [Boolean] :archived Whether to return only results that have been archived.
164
163
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
165
- def submissions_batch_create_with_http_info(batch_input_simple_public_object_input, opts = {})
164
+ def read_with_http_info(batch_read_input_simple_public_object_id, opts = {})
166
165
  if @api_client.config.debugging
167
- @api_client.config.logger.debug 'Calling API: BatchApi.submissions_batch_create ...'
166
+ @api_client.config.logger.debug 'Calling API: BatchApi.read ...'
168
167
  end
169
- # verify the required parameter 'batch_input_simple_public_object_input' is set
170
- if @api_client.config.client_side_validation && batch_input_simple_public_object_input.nil?
171
- fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_input' when calling BatchApi.submissions_batch_create"
168
+ # verify the required parameter 'batch_read_input_simple_public_object_id' is set
169
+ if @api_client.config.client_side_validation && batch_read_input_simple_public_object_id.nil?
170
+ fail ArgumentError, "Missing the required parameter 'batch_read_input_simple_public_object_id' when calling BatchApi.read"
172
171
  end
173
172
  # resource path
174
- local_var_path = '/crm/v3/objects/feedback_submissions/batch/create'
173
+ local_var_path = '/crm/v3/objects/feedback_submissions/batch/read'
175
174
 
176
175
  # query parameters
177
176
  query_params = opts[:query_params] || {}
177
+ query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
178
178
 
179
179
  # header parameters
180
180
  header_params = opts[:header_params] || {}
@@ -187,7 +187,7 @@ module Hubspot
187
187
  form_params = opts[:form_params] || {}
188
188
 
189
189
  # http body (model)
190
- post_body = opts[:body] || @api_client.object_to_http_body(batch_input_simple_public_object_input)
190
+ post_body = opts[:body] || @api_client.object_to_http_body(batch_read_input_simple_public_object_id)
191
191
 
192
192
  # return_type
193
193
  return_type = opts[:return_type] || 'BatchResponseSimplePublicObject'
@@ -206,7 +206,7 @@ module Hubspot
206
206
 
207
207
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
208
208
  if @api_client.config.debugging
209
- @api_client.config.logger.debug "API called: BatchApi#submissions_batch_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
209
+ @api_client.config.logger.debug "API called: BatchApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
210
  end
211
211
  return data, status_code, headers
212
212
  end
@@ -215,8 +215,8 @@ module Hubspot
215
215
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
216
216
  # @param [Hash] opts the optional parameters
217
217
  # @return [BatchResponseSimplePublicObject]
218
- def submissions_batch_update(batch_input_simple_public_object_batch_input, opts = {})
219
- data, _status_code, _headers = submissions_batch_update_with_http_info(batch_input_simple_public_object_batch_input, opts)
218
+ def update(batch_input_simple_public_object_batch_input, opts = {})
219
+ data, _status_code, _headers = update_with_http_info(batch_input_simple_public_object_batch_input, opts)
220
220
  data
221
221
  end
222
222
 
@@ -224,13 +224,13 @@ module Hubspot
224
224
  # @param batch_input_simple_public_object_batch_input [BatchInputSimplePublicObjectBatchInput]
225
225
  # @param [Hash] opts the optional parameters
226
226
  # @return [Array<(BatchResponseSimplePublicObject, Integer, Hash)>] BatchResponseSimplePublicObject data, response status code and response headers
227
- def submissions_batch_update_with_http_info(batch_input_simple_public_object_batch_input, opts = {})
227
+ def update_with_http_info(batch_input_simple_public_object_batch_input, opts = {})
228
228
  if @api_client.config.debugging
229
- @api_client.config.logger.debug 'Calling API: BatchApi.submissions_batch_update ...'
229
+ @api_client.config.logger.debug 'Calling API: BatchApi.update ...'
230
230
  end
231
231
  # verify the required parameter 'batch_input_simple_public_object_batch_input' is set
232
232
  if @api_client.config.client_side_validation && batch_input_simple_public_object_batch_input.nil?
233
- fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_batch_input' when calling BatchApi.submissions_batch_update"
233
+ fail ArgumentError, "Missing the required parameter 'batch_input_simple_public_object_batch_input' when calling BatchApi.update"
234
234
  end
235
235
  # resource path
236
236
  local_var_path = '/crm/v3/objects/feedback_submissions/batch/update'
@@ -268,7 +268,7 @@ module Hubspot
268
268
 
269
269
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
270
270
  if @api_client.config.debugging
271
- @api_client.config.logger.debug "API called: BatchApi#submissions_batch_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ @api_client.config.logger.debug "API called: BatchApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
272
  end
273
273
  return data, status_code, headers
274
274
  end
@@ -26,8 +26,8 @@ module Hubspot
26
26
  # @param public_merge_input [PublicMergeInput]
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @return [SimplePublicObject]
29
- def submissions_merge(public_merge_input, opts = {})
30
- data, _status_code, _headers = submissions_merge_with_http_info(public_merge_input, opts)
29
+ def merge(public_merge_input, opts = {})
30
+ data, _status_code, _headers = merge_with_http_info(public_merge_input, opts)
31
31
  data
32
32
  end
33
33
 
@@ -35,13 +35,13 @@ module Hubspot
35
35
  # @param public_merge_input [PublicMergeInput]
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
38
- def submissions_merge_with_http_info(public_merge_input, opts = {})
38
+ def merge_with_http_info(public_merge_input, opts = {})
39
39
  if @api_client.config.debugging
40
- @api_client.config.logger.debug 'Calling API: PublicObjectApi.submissions_merge ...'
40
+ @api_client.config.logger.debug 'Calling API: PublicObjectApi.merge ...'
41
41
  end
42
42
  # verify the required parameter 'public_merge_input' is set
43
43
  if @api_client.config.client_side_validation && public_merge_input.nil?
44
- fail ArgumentError, "Missing the required parameter 'public_merge_input' when calling PublicObjectApi.submissions_merge"
44
+ fail ArgumentError, "Missing the required parameter 'public_merge_input' when calling PublicObjectApi.merge"
45
45
  end
46
46
  # resource path
47
47
  local_var_path = '/crm/v3/objects/feedback_submissions/merge'
@@ -79,7 +79,7 @@ module Hubspot
79
79
 
80
80
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
81
81
  if @api_client.config.debugging
82
- @api_client.config.logger.debug "API called: PublicObjectApi#submissions_merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ @api_client.config.logger.debug "API called: PublicObjectApi#merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
83
83
  end
84
84
  return data, status_code, headers
85
85
  end
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -188,7 +188,7 @@ module Hubspot
188
188
 
189
189
  # query parameters
190
190
  query_params = opts[:query_params] || {}
191
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
191
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
192
192
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
193
193
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
194
194
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -263,7 +263,7 @@ module Hubspot
263
263
  query_params = opts[:query_params] || {}
264
264
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
265
265
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
266
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
266
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
267
267
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
268
268
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
269
269
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -25,8 +25,8 @@ module Hubspot
25
25
  # @param public_merge_input [PublicMergeInput]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [SimplePublicObject]
28
- def post_crm_v3_objects_quotes_merge(public_merge_input, opts = {})
29
- data, _status_code, _headers = post_crm_v3_objects_quotes_merge_with_http_info(public_merge_input, opts)
28
+ def merge(public_merge_input, opts = {})
29
+ data, _status_code, _headers = merge_with_http_info(public_merge_input, opts)
30
30
  data
31
31
  end
32
32
 
@@ -34,13 +34,13 @@ module Hubspot
34
34
  # @param public_merge_input [PublicMergeInput]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(SimplePublicObject, Integer, Hash)>] SimplePublicObject data, response status code and response headers
37
- def post_crm_v3_objects_quotes_merge_with_http_info(public_merge_input, opts = {})
37
+ def merge_with_http_info(public_merge_input, opts = {})
38
38
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: PublicObjectApi.post_crm_v3_objects_quotes_merge ...'
39
+ @api_client.config.logger.debug 'Calling API: PublicObjectApi.merge ...'
40
40
  end
41
41
  # verify the required parameter 'public_merge_input' is set
42
42
  if @api_client.config.client_side_validation && public_merge_input.nil?
43
- fail ArgumentError, "Missing the required parameter 'public_merge_input' when calling PublicObjectApi.post_crm_v3_objects_quotes_merge"
43
+ fail ArgumentError, "Missing the required parameter 'public_merge_input' when calling PublicObjectApi.merge"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/crm/v3/objects/quotes/merge'
@@ -78,7 +78,7 @@ module Hubspot
78
78
 
79
79
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
80
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: PublicObjectApi#post_crm_v3_objects_quotes_merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ @api_client.config.logger.debug "API called: PublicObjectApi#merge\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
@@ -187,7 +187,7 @@ module Hubspot
187
187
 
188
188
  # query parameters
189
189
  query_params = opts[:query_params] || {}
190
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
190
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
191
191
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
192
192
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
193
193
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -262,7 +262,7 @@ module Hubspot
262
262
  query_params = opts[:query_params] || {}
263
263
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
264
264
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
265
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
265
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
266
266
  query_params[:'propertiesWithHistory'] = @api_client.build_collection_param(opts[:'properties_with_history'], :multi) if !opts[:'properties_with_history'].nil?
267
267
  query_params[:'associations'] = @api_client.build_collection_param(opts[:'associations'], :multi) if !opts[:'associations'].nil?
268
268
  query_params[:'archived'] = opts[:'archived'] if !opts[:'archived'].nil?
@@ -287,7 +287,7 @@ module Hubspot
287
287
 
288
288
  # query parameters
289
289
  query_params = opts[:query_params] || {}
290
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
290
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
291
291
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
292
292
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
293
293
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -380,7 +380,7 @@ module Hubspot
380
380
 
381
381
  # query parameters
382
382
  query_params = opts[:query_params] || {}
383
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
383
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
384
384
 
385
385
  # header parameters
386
386
  header_params = opts[:header_params] || {}
@@ -333,7 +333,7 @@ module Hubspot
333
333
 
334
334
  # query parameters
335
335
  query_params = opts[:query_params] || {}
336
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
336
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
337
337
  query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
338
338
  query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
339
339
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -417,7 +417,7 @@ module Hubspot
417
417
 
418
418
  # query parameters
419
419
  query_params = opts[:query_params] || {}
420
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
420
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
421
421
 
422
422
  # header parameters
423
423
  header_params = opts[:header_params] || {}
@@ -487,7 +487,7 @@ module Hubspot
487
487
 
488
488
  # query parameters
489
489
  query_params = opts[:query_params] || {}
490
- query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :multi) if !opts[:'properties'].nil?
490
+ query_params[:'properties'] = @api_client.build_collection_param(opts[:'properties'], :csv) if !opts[:'properties'].nil?
491
491
 
492
492
  # header parameters
493
493
  header_params = opts[:header_params] || {}
@@ -65,7 +65,7 @@ module Hubspot
65
65
  return_type = opts[:return_type]
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['hapikey']
68
+ auth_names = opts[:auth_names] || ['oauth2']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -85,23 +85,27 @@ module Hubspot
85
85
 
86
86
  # Create a SMTP API token.
87
87
  # Create a SMTP API token.
88
+ # @param smtp_api_token_request_egg [SmtpApiTokenRequestEgg] A request object that includes the campaign name tied to the token and whether contacts should be created for email recipients.
88
89
  # @param [Hash] opts the optional parameters
89
- # @option opts [SmtpApiTokenRequestEgg] :smtp_api_token_request_egg A request object that includes the campaign name tied to the token and whether contacts should be created for recipients of emails.
90
90
  # @return [SmtpApiTokenView]
91
- def create_token(opts = {})
92
- data, _status_code, _headers = create_token_with_http_info(opts)
91
+ def create_token(smtp_api_token_request_egg, opts = {})
92
+ data, _status_code, _headers = create_token_with_http_info(smtp_api_token_request_egg, opts)
93
93
  data
94
94
  end
95
95
 
96
96
  # Create a SMTP API token.
97
97
  # Create a SMTP API token.
98
+ # @param smtp_api_token_request_egg [SmtpApiTokenRequestEgg] A request object that includes the campaign name tied to the token and whether contacts should be created for email recipients.
98
99
  # @param [Hash] opts the optional parameters
99
- # @option opts [SmtpApiTokenRequestEgg] :smtp_api_token_request_egg A request object that includes the campaign name tied to the token and whether contacts should be created for recipients of emails.
100
100
  # @return [Array<(SmtpApiTokenView, Integer, Hash)>] SmtpApiTokenView data, response status code and response headers
101
- def create_token_with_http_info(opts = {})
101
+ def create_token_with_http_info(smtp_api_token_request_egg, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.create_token ...'
104
104
  end
105
+ # verify the required parameter 'smtp_api_token_request_egg' is set
106
+ if @api_client.config.client_side_validation && smtp_api_token_request_egg.nil?
107
+ fail ArgumentError, "Missing the required parameter 'smtp_api_token_request_egg' when calling PublicSmtpTokensApi.create_token"
108
+ end
105
109
  # resource path
106
110
  local_var_path = '/marketing/v3/transactional/smtp-tokens'
107
111
 
@@ -119,13 +123,13 @@ module Hubspot
119
123
  form_params = opts[:form_params] || {}
120
124
 
121
125
  # http body (model)
122
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'smtp_api_token_request_egg'])
126
+ post_body = opts[:body] || @api_client.object_to_http_body(smtp_api_token_request_egg)
123
127
 
124
128
  # return_type
125
129
  return_type = opts[:return_type] || 'SmtpApiTokenView'
126
130
 
127
131
  # auth_names
128
- auth_names = opts[:auth_names] || ['hapikey']
132
+ auth_names = opts[:auth_names] || ['oauth2']
129
133
 
130
134
  new_options = opts.merge(
131
135
  :header_params => header_params,
@@ -187,7 +191,7 @@ module Hubspot
187
191
  return_type = opts[:return_type] || 'SmtpApiTokenView'
188
192
 
189
193
  # auth_names
190
- auth_names = opts[:auth_names] || ['hapikey']
194
+ auth_names = opts[:auth_names] || ['oauth2']
191
195
 
192
196
  new_options = opts.merge(
193
197
  :header_params => header_params,
@@ -212,7 +216,7 @@ module Hubspot
212
216
  # @option opts [String] :email_campaign_id Identifier assigned to the campaign provided during the token creation.
213
217
  # @option opts [String] :after Starting point to get the next set of results.
214
218
  # @option opts [Integer] :limit Maximum number of tokens to return.
215
- # @return [CollectionResponseSmtpApiTokenView]
219
+ # @return [CollectionResponseSmtpApiTokenViewForwardPaging]
216
220
  def get_tokens_page(opts = {})
217
221
  data, _status_code, _headers = get_tokens_page_with_http_info(opts)
218
222
  data
@@ -225,7 +229,7 @@ module Hubspot
225
229
  # @option opts [String] :email_campaign_id Identifier assigned to the campaign provided during the token creation.
226
230
  # @option opts [String] :after Starting point to get the next set of results.
227
231
  # @option opts [Integer] :limit Maximum number of tokens to return.
228
- # @return [Array<(CollectionResponseSmtpApiTokenView, Integer, Hash)>] CollectionResponseSmtpApiTokenView data, response status code and response headers
232
+ # @return [Array<(CollectionResponseSmtpApiTokenViewForwardPaging, Integer, Hash)>] CollectionResponseSmtpApiTokenViewForwardPaging data, response status code and response headers
229
233
  def get_tokens_page_with_http_info(opts = {})
230
234
  if @api_client.config.debugging
231
235
  @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.get_tokens_page ...'
@@ -252,10 +256,10 @@ module Hubspot
252
256
  post_body = opts[:body]
253
257
 
254
258
  # return_type
255
- return_type = opts[:return_type] || 'CollectionResponseSmtpApiTokenView'
259
+ return_type = opts[:return_type] || 'CollectionResponseSmtpApiTokenViewForwardPaging'
256
260
 
257
261
  # auth_names
258
- auth_names = opts[:auth_names] || ['hapikey']
262
+ auth_names = opts[:auth_names] || ['oauth2']
259
263
 
260
264
  new_options = opts.merge(
261
265
  :header_params => header_params,
@@ -317,7 +321,7 @@ module Hubspot
317
321
  return_type = opts[:return_type] || 'SmtpApiTokenView'
318
322
 
319
323
  # auth_names
320
- auth_names = opts[:auth_names] || ['hapikey']
324
+ auth_names = opts[:auth_names] || ['oauth2']
321
325
 
322
326
  new_options = opts.merge(
323
327
  :header_params => header_params,