hubspot-api-client 10.1.1 → 11.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +2 -2
  4. data/lib/hubspot/codegen/cms/audit-logs/api/{default_api.rb → audit_logs_api.rb} +3 -3
  5. data/lib/hubspot/codegen/cms/blogs/authors/api/{default_api.rb → author_api.rb} +28 -28
  6. data/lib/hubspot/codegen/cms/blogs/blog-posts/api/{default_api.rb → blog_post_api.rb} +62 -62
  7. data/lib/hubspot/codegen/cms/blogs/tags/api/{default_api.rb → tag_api.rb} +28 -28
  8. data/lib/hubspot/codegen/cms/domains/api/domains_api.rb +2 -2
  9. data/lib/hubspot/codegen/cms/domains/configuration.rb +0 -7
  10. data/lib/hubspot/codegen/cms/hubdb/api/rows_api.rb +102 -102
  11. data/lib/hubspot/codegen/cms/hubdb/api/rows_batch_api.rb +21 -21
  12. data/lib/hubspot/codegen/cms/hubdb/api/tables_api.rb +100 -108
  13. data/lib/hubspot/codegen/cms/hubdb/api_client.rb +1 -1
  14. data/lib/hubspot/codegen/cms/hubdb/api_error.rb +1 -1
  15. data/lib/hubspot/codegen/cms/hubdb/configuration.rb +1 -1
  16. data/lib/hubspot/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3.rb → batch_input_hub_db_table_row_v3_request.rb} +5 -5
  17. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_json_node.rb +1 -1
  18. data/lib/hubspot/codegen/cms/hubdb/models/batch_input_string.rb +1 -1
  19. data/lib/hubspot/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors.rb +1 -1
  20. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging.rb +1 -1
  21. data/lib/hubspot/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging.rb +1 -1
  22. data/lib/hubspot/codegen/cms/hubdb/models/column.rb +1 -1
  23. data/lib/hubspot/codegen/cms/hubdb/models/{column_input.rb → column_request.rb} +71 -47
  24. data/lib/hubspot/codegen/cms/hubdb/models/error.rb +1 -1
  25. data/lib/hubspot/codegen/cms/hubdb/models/error_detail.rb +1 -1
  26. data/lib/hubspot/codegen/cms/hubdb/models/foreign_id.rb +1 -1
  27. data/lib/hubspot/codegen/cms/hubdb/models/forward_paging.rb +1 -1
  28. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_clone_request.rb +4 -9
  29. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_row_v3.rb +12 -27
  30. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_row_v3_input.rb → hub_db_table_row_v3_request.rb} +25 -20
  31. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3.rb +1 -1
  32. data/lib/hubspot/codegen/cms/hubdb/models/{hub_db_table_v3_input.rb → hub_db_table_v3_request.rb} +53 -53
  33. data/lib/hubspot/codegen/cms/hubdb/models/import_result.rb +1 -1
  34. data/lib/hubspot/codegen/cms/hubdb/models/next_page.rb +1 -1
  35. data/lib/hubspot/codegen/cms/hubdb/models/option.rb +1 -1
  36. data/lib/hubspot/codegen/cms/hubdb/models/simple_user.rb +1 -1
  37. data/lib/hubspot/codegen/cms/hubdb/models/standard_error.rb +1 -1
  38. data/lib/hubspot/codegen/cms/performance/api/{default_api.rb → public_performance_api.rb} +5 -5
  39. data/lib/hubspot/codegen/cms/site-search/api/{default_api.rb → public_api.rb} +7 -7
  40. data/lib/hubspot/codegen/cms/site-search/models/search_hit_field.rb +15 -15
  41. data/lib/hubspot/codegen/crm/companies/api/batch_api.rb +0 -8
  42. data/lib/hubspot/codegen/crm/companies/api/search_api.rb +0 -4
  43. data/lib/hubspot/codegen/crm/companies/models/filter.rb +3 -2
  44. data/lib/hubspot/codegen/crm/contacts/api/batch_api.rb +0 -8
  45. data/lib/hubspot/codegen/crm/contacts/api/gdpr_api.rb +150 -0
  46. data/lib/hubspot/codegen/crm/contacts/api/search_api.rb +0 -4
  47. data/lib/hubspot/codegen/crm/contacts/models/filter.rb +3 -2
  48. data/lib/hubspot/codegen/crm/deals/api/batch_api.rb +0 -8
  49. data/lib/hubspot/codegen/crm/deals/api/search_api.rb +0 -4
  50. data/lib/hubspot/codegen/crm/deals/models/filter.rb +3 -2
  51. data/lib/hubspot/codegen/crm/imports/api/core_api.rb +2 -2
  52. data/lib/hubspot/codegen/crm/imports/api/{default_api.rb → public_imports_api.rb} +8 -8
  53. data/lib/hubspot/codegen/crm/imports/models/public_import_error.rb +4 -4
  54. data/lib/hubspot/codegen/crm/line_items/api/batch_api.rb +0 -8
  55. data/lib/hubspot/codegen/crm/line_items/api/search_api.rb +0 -4
  56. data/lib/hubspot/codegen/crm/line_items/models/filter.rb +3 -2
  57. data/lib/hubspot/codegen/crm/objects/api/batch_api.rb +0 -8
  58. data/lib/hubspot/codegen/crm/objects/api/gdpr_api.rb +162 -0
  59. data/lib/hubspot/codegen/crm/objects/api/search_api.rb +0 -4
  60. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +0 -2
  61. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +0 -4
  62. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +3 -2
  63. data/lib/hubspot/codegen/crm/objects/models/filter.rb +3 -2
  64. data/lib/hubspot/codegen/crm/owners/api/{default_api.rb → owners_api.rb} +6 -6
  65. data/lib/hubspot/codegen/crm/products/api/batch_api.rb +0 -8
  66. data/lib/hubspot/codegen/crm/products/api/search_api.rb +0 -4
  67. data/lib/hubspot/codegen/crm/products/models/filter.rb +3 -2
  68. data/lib/hubspot/codegen/crm/quotes/api/batch_api.rb +0 -2
  69. data/lib/hubspot/codegen/crm/quotes/api/search_api.rb +0 -4
  70. data/lib/hubspot/codegen/crm/quotes/models/filter.rb +3 -2
  71. data/lib/hubspot/codegen/crm/schemas/api/core_api.rb +3 -3
  72. data/lib/hubspot/codegen/crm/schemas/api/{default_api.rb → public_object_schemas_api.rb} +4 -4
  73. data/lib/hubspot/codegen/crm/tickets/api/batch_api.rb +0 -8
  74. data/lib/hubspot/codegen/crm/tickets/api/search_api.rb +0 -4
  75. data/lib/hubspot/codegen/crm/tickets/models/filter.rb +3 -2
  76. data/lib/hubspot/codegen/crm/timeline/api/templates_api.rb +3 -3
  77. data/lib/hubspot/codegen/crm/timeline/models/{collection_response_timeline_event_template.rb → collection_response_timeline_event_template_no_paging.rb} +7 -17
  78. data/lib/hubspot/codegen/files/files/api/files_api.rb +12 -6
  79. data/lib/hubspot/codegen/files/files/api/folders_api.rb +12 -0
  80. data/lib/hubspot/codegen/files/files/models/error_category.rb +18 -18
  81. data/lib/hubspot/codegen/marketing/transactional/api/{default_api.rb → public_smtp_tokens_api.rb} +14 -74
  82. data/lib/hubspot/codegen/marketing/transactional/api/single_send_api.rb +86 -0
  83. data/lib/hubspot/codegen/oauth/api/access_tokens_api.rb +82 -0
  84. data/lib/hubspot/codegen/oauth/api/refresh_tokens_api.rb +140 -0
  85. data/lib/hubspot/codegen/oauth/api/tokens_api.rb +100 -0
  86. data/lib/hubspot/codegen/oauth/models/access_token_info_response.rb +33 -1
  87. data/lib/hubspot/codegen/oauth/models/token_response_if.rb +27 -4
  88. data/lib/hubspot/version.rb +1 -1
  89. data/pkg/hubspot-api-client-10.1.1.gem +0 -0
  90. data/spec/codegen/cms/audit-logs/api/{default_api_spec.rb → audit_logs_api_spec.rb} +6 -6
  91. data/spec/codegen/cms/blogs/authors/api/{default_api_spec.rb → author_api_spec.rb} +6 -6
  92. data/spec/codegen/cms/blogs/blog-posts/api/{default_api_spec.rb → blog_post_api_spec.rb} +6 -6
  93. data/spec/codegen/cms/blogs/tags/api/{default_api_spec.rb → tag_api_spec.rb} +6 -6
  94. data/spec/codegen/cms/hubdb/api/rows_api_spec.rb +18 -18
  95. data/spec/codegen/cms/hubdb/api/rows_batch_api_spec.rb +4 -4
  96. data/spec/codegen/cms/hubdb/api/tables_api_spec.rb +35 -36
  97. data/spec/codegen/cms/hubdb/models/{batch_input_hub_db_table_row_v3_spec.rb → batch_input_hub_db_table_row_v3_request_spec.rb} +7 -7
  98. data/spec/codegen/cms/hubdb/models/batch_input_json_node_spec.rb +1 -1
  99. data/spec/codegen/cms/hubdb/models/batch_input_string_spec.rb +1 -1
  100. data/spec/codegen/cms/hubdb/models/batch_response_hub_db_table_row_v3_with_errors_spec.rb +1 -1
  101. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_row_v3_forward_paging_spec.rb +1 -1
  102. data/spec/codegen/cms/hubdb/models/collection_response_with_total_hub_db_table_v3_forward_paging_spec.rb +1 -1
  103. data/spec/codegen/cms/hubdb/models/{column_input_spec.rb → column_request_spec.rb} +14 -22
  104. data/spec/codegen/cms/hubdb/models/column_spec.rb +1 -1
  105. data/spec/codegen/cms/hubdb/models/error_detail_spec.rb +1 -1
  106. data/spec/codegen/cms/hubdb/models/error_spec.rb +1 -1
  107. data/spec/codegen/cms/hubdb/models/foreign_id_spec.rb +1 -1
  108. data/spec/codegen/cms/hubdb/models/forward_paging_spec.rb +1 -1
  109. data/spec/codegen/cms/hubdb/models/hub_db_table_clone_request_spec.rb +1 -1
  110. data/spec/codegen/cms/hubdb/models/{hub_db_table_row_v3_input_spec.rb → hub_db_table_row_v3_request_spec.rb} +10 -10
  111. data/spec/codegen/cms/hubdb/models/hub_db_table_row_v3_spec.rb +7 -1
  112. data/spec/codegen/cms/hubdb/models/{hub_db_table_v3_input_spec.rb → hub_db_table_v3_request_spec.rb} +13 -13
  113. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_spec.rb +1 -1
  114. data/spec/codegen/cms/hubdb/models/import_result_spec.rb +1 -1
  115. data/spec/codegen/cms/hubdb/models/next_page_spec.rb +1 -1
  116. data/spec/codegen/cms/hubdb/models/option_spec.rb +1 -1
  117. data/spec/codegen/cms/hubdb/models/simple_user_spec.rb +1 -1
  118. data/spec/codegen/cms/hubdb/models/standard_error_spec.rb +1 -1
  119. data/spec/codegen/cms/performance/api/{default_api_spec.rb → public_performance_api_spec.rb} +6 -6
  120. data/spec/codegen/cms/site-search/api/{default_api_spec.rb → public_api_spec.rb} +6 -6
  121. data/spec/codegen/cms/site-search/models/search_hit_field_spec.rb +2 -2
  122. data/spec/codegen/crm/companies/api/batch_api_spec.rb +0 -4
  123. data/spec/codegen/crm/companies/api/search_api_spec.rb +0 -2
  124. data/spec/codegen/crm/companies/models/filter_spec.rb +1 -1
  125. data/spec/codegen/crm/contacts/api/batch_api_spec.rb +0 -4
  126. data/spec/codegen/crm/contacts/api/gdpr_api_spec.rb +59 -0
  127. data/spec/codegen/crm/contacts/api/search_api_spec.rb +0 -2
  128. data/spec/codegen/crm/contacts/models/filter_spec.rb +1 -1
  129. data/spec/codegen/crm/deals/api/batch_api_spec.rb +0 -4
  130. data/spec/codegen/crm/deals/api/search_api_spec.rb +0 -2
  131. data/spec/codegen/crm/deals/models/filter_spec.rb +1 -1
  132. data/spec/codegen/crm/imports/api/{default_api_spec.rb → public_imports_api_spec.rb} +8 -8
  133. data/spec/codegen/crm/imports/models/public_import_error_spec.rb +2 -2
  134. data/spec/codegen/crm/line_items/api/batch_api_spec.rb +0 -4
  135. data/spec/codegen/crm/line_items/api/search_api_spec.rb +0 -2
  136. data/spec/codegen/crm/line_items/models/filter_spec.rb +1 -1
  137. data/spec/codegen/crm/objects/api/batch_api_spec.rb +0 -4
  138. data/spec/codegen/crm/objects/api/gdpr_api_spec.rb +61 -0
  139. data/spec/codegen/crm/objects/api/search_api_spec.rb +0 -2
  140. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +0 -1
  141. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +0 -2
  142. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +1 -1
  143. data/spec/codegen/crm/objects/models/filter_spec.rb +1 -1
  144. data/spec/codegen/crm/owners/api/{default_api_spec.rb → owners_api_spec.rb} +6 -6
  145. data/spec/codegen/crm/products/api/batch_api_spec.rb +0 -4
  146. data/spec/codegen/crm/products/api/search_api_spec.rb +0 -2
  147. data/spec/codegen/crm/products/models/filter_spec.rb +1 -1
  148. data/spec/codegen/crm/quotes/api/batch_api_spec.rb +0 -1
  149. data/spec/codegen/crm/quotes/api/search_api_spec.rb +0 -2
  150. data/spec/codegen/crm/quotes/models/filter_spec.rb +1 -1
  151. data/spec/codegen/crm/schemas/api/{default_api_spec.rb → public_object_schemas_api_spec.rb} +6 -6
  152. data/spec/codegen/crm/tickets/api/batch_api_spec.rb +0 -4
  153. data/spec/codegen/crm/tickets/api/search_api_spec.rb +0 -2
  154. data/spec/codegen/crm/tickets/models/filter_spec.rb +1 -1
  155. data/spec/codegen/crm/timeline/api/templates_api_spec.rb +1 -1
  156. data/spec/codegen/crm/timeline/models/{collection_response_timeline_event_template_spec.rb → collection_response_timeline_event_template_no_paging_spec.rb} +6 -12
  157. data/spec/codegen/files/files/api/files_api_spec.rb +4 -2
  158. data/spec/codegen/files/files/api/folders_api_spec.rb +4 -0
  159. data/spec/codegen/files/files/models/error_category_spec.rb +6 -6
  160. data/spec/codegen/marketing/transactional/api/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +6 -18
  161. data/spec/codegen/marketing/transactional/api/single_send_api_spec.rb +47 -0
  162. data/spec/codegen/oauth/api/access_tokens_api_spec.rb +45 -0
  163. data/spec/codegen/oauth/api/{default_api_spec.rb → refresh_tokens_api_spec.rb} +6 -31
  164. data/spec/codegen/oauth/api/tokens_api_spec.rb +50 -0
  165. data/spec/codegen/oauth/models/access_token_info_response_spec.rb +12 -0
  166. data/spec/codegen/oauth/models/token_response_if_spec.rb +12 -0
  167. data/spec/features/cms/audit-logs/{default_api_spec.rb → audit_logs_api_spec.rb} +4 -4
  168. data/spec/features/cms/blogs/authors/{default_api_spec.rb → author_api_spec.rb} +28 -28
  169. data/spec/features/cms/blogs/blog-posts/{default_api_spec.rb → blog_post_api_spec.rb} +2 -2
  170. data/spec/features/cms/blogs/tags/{default_api_spec.rb → tag_api_spec.rb} +2 -2
  171. data/spec/features/cms/hubdb/tables_api_spec.rb +1 -1
  172. data/spec/features/cms/perfomance/public_perfomance_api_spec.rb +8 -0
  173. data/spec/features/cms/site-search/{default_api_spec.rb → public_api_spec.rb} +2 -2
  174. data/spec/features/crm/contacts/gdpr_api_spec.rb +8 -0
  175. data/spec/features/crm/objects/gdpr_api_spec.rb +8 -0
  176. data/spec/features/crm/owners/{default_api_spec.rb → owners_api_spec.rb} +2 -2
  177. data/spec/features/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  178. data/spec/features/marketing/transactional/{default_api_spec.rb → public_smtp_tokens_api_spec.rb} +2 -3
  179. data/spec/features/marketing/transactional/single_send_api_spec.rb +7 -0
  180. data/spec/features/oauth/access_tokens_api_spec.rb +7 -0
  181. data/spec/features/oauth/refresh_tokens_api_spec.rb +8 -0
  182. data/spec/features/oauth/tokens_api_spec.rb +7 -0
  183. metadata +96 -82
  184. data/lib/hubspot/codegen/cms/hubdb/models/hub_db_table_v3_live_input.rb +0 -241
  185. data/lib/hubspot/codegen/crm/timeline/models/next_page.rb +0 -224
  186. data/lib/hubspot/codegen/crm/timeline/models/paging.rb +0 -219
  187. data/lib/hubspot/codegen/crm/timeline/models/previous_page.rb +0 -224
  188. data/lib/hubspot/codegen/oauth/api/default_api.rb +0 -270
  189. data/spec/codegen/cms/hubdb/models/hub_db_table_v3_live_input_spec.rb +0 -59
  190. data/spec/codegen/crm/timeline/models/next_page_spec.rb +0 -47
  191. data/spec/codegen/crm/timeline/models/paging_spec.rb +0 -47
  192. data/spec/codegen/crm/timeline/models/previous_page_spec.rb +0 -47
  193. data/spec/features/cms/perfomance/default_api_spec.rb +0 -8
  194. data/spec/features/crm/schemas/default_api_spec.rb +0 -7
  195. data/spec/features/oauth/default_api_spec.rb +0 -10
@@ -20,6 +20,7 @@ module Hubspot
20
20
 
21
21
  attr_accessor :property_name
22
22
 
23
+ # null
23
24
  attr_accessor :operator
24
25
 
25
26
  class EnumAttributeValidator
@@ -116,7 +117,7 @@ module Hubspot
116
117
  def valid?
117
118
  return false if @property_name.nil?
118
119
  return false if @operator.nil?
119
- operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
+ operator_validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
120
121
  return false unless operator_validator.valid?(@operator)
121
122
  true
122
123
  end
@@ -124,7 +125,7 @@ module Hubspot
124
125
  # Custom attribute writer method checking allowed values (enum).
125
126
  # @param [Object] operator Object to be assigned
126
127
  def operator=(operator)
127
- validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
+ validator = EnumAttributeValidator.new('String', ["EQ", "NEQ", "LT", "LTE", "GT", "GTE", "BETWEEN", "IN", "NOT_IN", "HAS_PROPERTY", "NOT_HAS_PROPERTY", "CONTAINS_TOKEN", "NOT_CONTAINS_TOKEN"])
128
129
  unless validator.valid?(operator)
129
130
  fail ArgumentError, "invalid value for \"operator\", must be one of #{validator.allowable_values}."
130
131
  end
@@ -163,7 +163,7 @@ module Hubspot
163
163
  # Use this to list all event templates owned by your app.
164
164
  # @param app_id [Integer] The ID of the target app.
165
165
  # @param [Hash] opts the optional parameters
166
- # @return [CollectionResponseTimelineEventTemplate]
166
+ # @return [CollectionResponseTimelineEventTemplateNoPaging]
167
167
  def get_all(app_id, opts = {})
168
168
  data, _status_code, _headers = get_all_with_http_info(app_id, opts)
169
169
  data
@@ -173,7 +173,7 @@ module Hubspot
173
173
  # Use this to list all event templates owned by your app.
174
174
  # @param app_id [Integer] The ID of the target app.
175
175
  # @param [Hash] opts the optional parameters
176
- # @return [Array<(CollectionResponseTimelineEventTemplate, Integer, Hash)>] CollectionResponseTimelineEventTemplate data, response status code and response headers
176
+ # @return [Array<(CollectionResponseTimelineEventTemplateNoPaging, Integer, Hash)>] CollectionResponseTimelineEventTemplateNoPaging data, response status code and response headers
177
177
  def get_all_with_http_info(app_id, opts = {})
178
178
  if @api_client.config.debugging
179
179
  @api_client.config.logger.debug 'Calling API: TemplatesApi.get_all ...'
@@ -200,7 +200,7 @@ module Hubspot
200
200
  post_body = opts[:body]
201
201
 
202
202
  # return_type
203
- return_type = opts[:return_type] || 'CollectionResponseTimelineEventTemplate'
203
+ return_type = opts[:return_type] || 'CollectionResponseTimelineEventTemplateNoPaging'
204
204
 
205
205
  # auth_names
206
206
  auth_names = opts[:auth_names] || ['developer_hapikey']
@@ -15,25 +15,20 @@ require 'date'
15
15
  module Hubspot
16
16
  module Crm
17
17
  module Timeline
18
- class CollectionResponseTimelineEventTemplate
19
- # A collection of templates.
18
+ class CollectionResponseTimelineEventTemplateNoPaging
20
19
  attr_accessor :results
21
20
 
22
- attr_accessor :paging
23
-
24
21
  # Attribute mapping from ruby-style variable name to JSON key.
25
22
  def self.attribute_map
26
23
  {
27
- :'results' => :'results',
28
- :'paging' => :'paging'
24
+ :'results' => :'results'
29
25
  }
30
26
  end
31
27
 
32
28
  # Attribute type mapping.
33
29
  def self.openapi_types
34
30
  {
35
- :'results' => :'Array<TimelineEventTemplate>',
36
- :'paging' => :'Paging'
31
+ :'results' => :'Array<TimelineEventTemplate>'
37
32
  }
38
33
  end
39
34
 
@@ -47,13 +42,13 @@ module Hubspot
47
42
  # @param [Hash] attributes Model attributes in the form of hash
48
43
  def initialize(attributes = {})
49
44
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate` initialize method"
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging` initialize method"
51
46
  end
52
47
 
53
48
  # check to see if the attribute exists and convert string to symbol for hash key
54
49
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
50
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::CollectionResponseTimelineEventTemplateNoPaging`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
52
  end
58
53
  h[k.to_sym] = v
59
54
  }
@@ -63,10 +58,6 @@ module Hubspot
63
58
  self.results = value
64
59
  end
65
60
  end
66
-
67
- if attributes.key?(:'paging')
68
- self.paging = attributes[:'paging']
69
- end
70
61
  end
71
62
 
72
63
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -92,8 +83,7 @@ module Hubspot
92
83
  def ==(o)
93
84
  return true if self.equal?(o)
94
85
  self.class == o.class &&
95
- results == o.results &&
96
- paging == o.paging
86
+ results == o.results
97
87
  end
98
88
 
99
89
  # @see the `==` method
@@ -105,7 +95,7 @@ module Hubspot
105
95
  # Calculates hash code according to all attributes.
106
96
  # @return [Integer] Hash code
107
97
  def hash
108
- [results, paging].hash
98
+ [results].hash
109
99
  end
110
100
 
111
101
  # Builds the object from hash
@@ -227,7 +227,11 @@ module Hubspot
227
227
  # @option opts [Array<String>] :sort Sort files by a given field.
228
228
  # @option opts [String] :id Search files by given ID.
229
229
  # @option opts [DateTime] :created_at Search files by time of creation.
230
+ # @option opts [DateTime] :created_at_lte
231
+ # @option opts [DateTime] :created_at_gte
230
232
  # @option opts [DateTime] :updated_at Search files by time of latest updated.
233
+ # @option opts [DateTime] :updated_at_lte
234
+ # @option opts [DateTime] :updated_at_gte
231
235
  # @option opts [String] :name Search for files containing the given name.
232
236
  # @option opts [String] :path Search files by path.
233
237
  # @option opts [Integer] :parent_folder_id Search files within given folder ID.
@@ -256,7 +260,11 @@ module Hubspot
256
260
  # @option opts [Array<String>] :sort Sort files by a given field.
257
261
  # @option opts [String] :id Search files by given ID.
258
262
  # @option opts [DateTime] :created_at Search files by time of creation.
263
+ # @option opts [DateTime] :created_at_lte
264
+ # @option opts [DateTime] :created_at_gte
259
265
  # @option opts [DateTime] :updated_at Search files by time of latest updated.
266
+ # @option opts [DateTime] :updated_at_lte
267
+ # @option opts [DateTime] :updated_at_gte
260
268
  # @option opts [String] :name Search for files containing the given name.
261
269
  # @option opts [String] :path Search files by path.
262
270
  # @option opts [Integer] :parent_folder_id Search files within given folder ID.
@@ -286,7 +294,11 @@ module Hubspot
286
294
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
287
295
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
288
296
  query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
297
+ query_params[:'createdAtLte'] = opts[:'created_at_lte'] if !opts[:'created_at_lte'].nil?
298
+ query_params[:'createdAtGte'] = opts[:'created_at_gte'] if !opts[:'created_at_gte'].nil?
289
299
  query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
300
+ query_params[:'updatedAtLte'] = opts[:'updated_at_lte'] if !opts[:'updated_at_lte'].nil?
301
+ query_params[:'updatedAtGte'] = opts[:'updated_at_gte'] if !opts[:'updated_at_gte'].nil?
290
302
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
291
303
  query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
292
304
  query_params[:'parentFolderId'] = opts[:'parent_folder_id'] if !opts[:'parent_folder_id'].nil?
@@ -551,7 +563,6 @@ module Hubspot
551
563
  # Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
552
564
  # @param file_id [String] Id of the desired file.
553
565
  # @param [Hash] opts the optional parameters
554
- # @option opts [String] :user_agent
555
566
  # @option opts [File] :file File data that will replace existing file in the file manager.
556
567
  # @option opts [String] :charset_hunch Character set of given file data.
557
568
  # @option opts [String] :options JSON String representing FileReplaceOptions
@@ -565,7 +576,6 @@ module Hubspot
565
576
  # Replace existing file data with new file data. Can be used to change image content without having to upload a new file and update all references.
566
577
  # @param file_id [String] Id of the desired file.
567
578
  # @param [Hash] opts the optional parameters
568
- # @option opts [String] :user_agent
569
579
  # @option opts [File] :file File data that will replace existing file in the file manager.
570
580
  # @option opts [String] :charset_hunch Character set of given file data.
571
581
  # @option opts [String] :options JSON String representing FileReplaceOptions
@@ -595,7 +605,6 @@ module Hubspot
595
605
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
596
606
  # HTTP header 'Content-Type'
597
607
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
598
- header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
599
608
 
600
609
  # form parameters
601
610
  form_params = opts[:form_params] || {}
@@ -706,7 +715,6 @@ module Hubspot
706
715
  # Upload file
707
716
  # Upload a single file with content specified in request body.
708
717
  # @param [Hash] opts the optional parameters
709
- # @option opts [String] :user_agent
710
718
  # @option opts [File] :file File to be uploaded.
711
719
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
712
720
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
@@ -722,7 +730,6 @@ module Hubspot
722
730
  # Upload file
723
731
  # Upload a single file with content specified in request body.
724
732
  # @param [Hash] opts the optional parameters
725
- # @option opts [String] :user_agent
726
733
  # @option opts [File] :file File to be uploaded.
727
734
  # @option opts [String] :folder_id Either &#39;folderId&#39; or &#39;folderPath&#39; is required. folderId is the ID of the folder the file will be uploaded to.
728
735
  # @option opts [String] :folder_path Either &#39;folderPath&#39; or &#39;folderId&#39; is required. This field represents the destination folder path for the uploaded file. If a path doesn&#39;t exist, the system will try to create one.
@@ -746,7 +753,6 @@ module Hubspot
746
753
  header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
747
754
  # HTTP header 'Content-Type'
748
755
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
749
- header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
750
756
 
751
757
  # form parameters
752
758
  form_params = opts[:form_params] || {}
@@ -291,7 +291,11 @@ module Hubspot
291
291
  # @option opts [Array<String>] :sort Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
292
292
  # @option opts [String] :id Search folder by given ID.
293
293
  # @option opts [DateTime] :created_at Search for folders with the given creation timestamp.
294
+ # @option opts [DateTime] :created_at_lte
295
+ # @option opts [DateTime] :created_at_gte
294
296
  # @option opts [DateTime] :updated_at Search for folder at given update timestamp.
297
+ # @option opts [DateTime] :updated_at_lte
298
+ # @option opts [DateTime] :updated_at_gte
295
299
  # @option opts [String] :name Search for folders containing the specified name.
296
300
  # @option opts [String] :path Search for folders by path.
297
301
  # @option opts [Integer] :parent_folder_id Search for folders with the given parent folder ID.
@@ -311,7 +315,11 @@ module Hubspot
311
315
  # @option opts [Array<String>] :sort Sort results by given property. For example -name sorts by name field descending, name sorts by name field ascending.
312
316
  # @option opts [String] :id Search folder by given ID.
313
317
  # @option opts [DateTime] :created_at Search for folders with the given creation timestamp.
318
+ # @option opts [DateTime] :created_at_lte
319
+ # @option opts [DateTime] :created_at_gte
314
320
  # @option opts [DateTime] :updated_at Search for folder at given update timestamp.
321
+ # @option opts [DateTime] :updated_at_lte
322
+ # @option opts [DateTime] :updated_at_gte
315
323
  # @option opts [String] :name Search for folders containing the specified name.
316
324
  # @option opts [String] :path Search for folders by path.
317
325
  # @option opts [Integer] :parent_folder_id Search for folders with the given parent folder ID.
@@ -332,7 +340,11 @@ module Hubspot
332
340
  query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
333
341
  query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
334
342
  query_params[:'createdAt'] = opts[:'created_at'] if !opts[:'created_at'].nil?
343
+ query_params[:'createdAtLte'] = opts[:'created_at_lte'] if !opts[:'created_at_lte'].nil?
344
+ query_params[:'createdAtGte'] = opts[:'created_at_gte'] if !opts[:'created_at_gte'].nil?
335
345
  query_params[:'updatedAt'] = opts[:'updated_at'] if !opts[:'updated_at'].nil?
346
+ query_params[:'updatedAtLte'] = opts[:'updated_at_lte'] if !opts[:'updated_at_lte'].nil?
347
+ query_params[:'updatedAtGte'] = opts[:'updated_at_gte'] if !opts[:'updated_at_gte'].nil?
336
348
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
337
349
  query_params[:'path'] = opts[:'path'] if !opts[:'path'].nil?
338
350
  query_params[:'parentFolderId'] = opts[:'parent_folder_id'] if !opts[:'parent_folder_id'].nil?
@@ -16,10 +16,10 @@ module Hubspot
16
16
  module Files
17
17
  module Files
18
18
  class ErrorCategory
19
- attr_accessor :http_status
20
-
21
19
  attr_accessor :name
22
20
 
21
+ attr_accessor :http_status
22
+
23
23
  class EnumAttributeValidator
24
24
  attr_reader :datatype
25
25
  attr_reader :allowable_values
@@ -45,16 +45,16 @@ module Hubspot
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'http_status' => :'httpStatus',
49
- :'name' => :'name'
48
+ :'name' => :'name',
49
+ :'http_status' => :'httpStatus'
50
50
  }
51
51
  end
52
52
 
53
53
  # Attribute type mapping.
54
54
  def self.openapi_types
55
55
  {
56
- :'http_status' => :'String',
57
- :'name' => :'String'
56
+ :'name' => :'String',
57
+ :'http_status' => :'String'
58
58
  }
59
59
  end
60
60
 
@@ -79,37 +79,37 @@ module Hubspot
79
79
  h[k.to_sym] = v
80
80
  }
81
81
 
82
- if attributes.key?(:'http_status')
83
- self.http_status = attributes[:'http_status']
84
- end
85
-
86
82
  if attributes.key?(:'name')
87
83
  self.name = attributes[:'name']
88
84
  end
85
+
86
+ if attributes.key?(:'http_status')
87
+ self.http_status = attributes[:'http_status']
88
+ end
89
89
  end
90
90
 
91
91
  # Show invalid properties with the reasons. Usually used together with valid?
92
92
  # @return Array for valid properties with the reasons
93
93
  def list_invalid_properties
94
94
  invalid_properties = Array.new
95
- if @http_status.nil?
96
- invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
97
- end
98
-
99
95
  if @name.nil?
100
96
  invalid_properties.push('invalid value for "name", name cannot be nil.')
101
97
  end
102
98
 
99
+ if @http_status.nil?
100
+ invalid_properties.push('invalid value for "http_status", http_status cannot be nil.')
101
+ end
102
+
103
103
  invalid_properties
104
104
  end
105
105
 
106
106
  # Check to see if the all the properties in the model are valid
107
107
  # @return true if the model is valid
108
108
  def valid?
109
+ return false if @name.nil?
109
110
  return false if @http_status.nil?
110
111
  http_status_validator = EnumAttributeValidator.new('String', ["CONTINUE", "SWITCHING_PROTOCOLS", "PROCESSING", "OK", "CREATED", "ACCEPTED", "NON_AUTHORITATIVE_INFORMATION", "NO_CONTENT", "RESET_CONTENT", "PARTIAL_CONTENT", "MULTI_STATUS", "ALREADY_REPORTED", "IM_USED", "MULTIPLE_CHOICES", "MOVED_PERMANENTLY", "FOUND", "SEE_OTHER", "NOT_MODIFIED", "USE_PROXY", "TEMPORARY_REDIRECT", "PERMANENT_REDIRECT", "BAD_REQUEST", "UNAUTHORIZED", "PAYMENT_REQUIRED", "FORBIDDEN", "NOT_FOUND", "METHOD_NOT_ALLOWED", "NOT_ACCEPTABLE", "PROXY_AUTHENTICATION_REQUIRED", "REQUEST_TIMEOUT", "CONFLICT", "GONE", "LENGTH_REQUIRED", "PRECONDITION_FAILED", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_URI_TOO_LONG", "UNSUPPORTED_MEDIA_TYPE", "REQUESTED_RANGE_NOT_SATISFIABLE", "EXPECTATION_FAILED", "IM_A_TEAPOT", "MISDIRECTED_REQUEST", "UNPROCESSABLE_ENTITY", "LOCKED", "FAILED_DEPENDENCY", "UPGRADE_REQUIRED", "PRECONDITION_REQUIRED", "TOO_MANY_REQUESTS", "REQUEST_HEADERS_FIELDS_TOO_LARGE", "INTERNAL_STALE_SERVICE_DISCOVERY", "UNAVAILABLE_FOR_LEGAL_REASONS", "INTERNAL_SERVER_ERROR", "NOT_IMPLEMENTED", "BAD_GATEWAY", "SERVICE_UNAVAILABLE", "GATEWAY_TIMEOUT", "HTTP_VERSION_NOT_SUPPORTED", "VARIANT_ALSO_NEGOTIATES", "INSUFFICIENT_STORAGE", "LOOP_DETECTED", "NOT_EXTENDED", "NETWORK_AUTHENTICATION_REQUIRED"])
111
112
  return false unless http_status_validator.valid?(@http_status)
112
- return false if @name.nil?
113
113
  true
114
114
  end
115
115
 
@@ -128,8 +128,8 @@ module Hubspot
128
128
  def ==(o)
129
129
  return true if self.equal?(o)
130
130
  self.class == o.class &&
131
- http_status == o.http_status &&
132
- name == o.name
131
+ name == o.name &&
132
+ http_status == o.http_status
133
133
  end
134
134
 
135
135
  # @see the `==` method
@@ -141,7 +141,7 @@ module Hubspot
141
141
  # Calculates hash code according to all attributes.
142
142
  # @return [Integer] Hash code
143
143
  def hash
144
- [http_status, name].hash
144
+ [name, http_status].hash
145
145
  end
146
146
 
147
147
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'cgi'
15
15
  module Hubspot
16
16
  module Marketing
17
17
  module Transactional
18
- class DefaultApi
18
+ class PublicSmtpTokensApi
19
19
  attr_accessor :api_client
20
20
 
21
21
  def initialize(api_client = ApiClient.default)
@@ -38,11 +38,11 @@ module Hubspot
38
38
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
39
  def archive_token_with_http_info(token_id, opts = {})
40
40
  if @api_client.config.debugging
41
- @api_client.config.logger.debug 'Calling API: DefaultApi.archive_token ...'
41
+ @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.archive_token ...'
42
42
  end
43
43
  # verify the required parameter 'token_id' is set
44
44
  if @api_client.config.client_side_validation && token_id.nil?
45
- fail ArgumentError, "Missing the required parameter 'token_id' when calling DefaultApi.archive_token"
45
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling PublicSmtpTokensApi.archive_token"
46
46
  end
47
47
  # resource path
48
48
  local_var_path = '/marketing/v3/transactional/smtp-tokens/{tokenId}'.sub('{' + 'tokenId' + '}', CGI.escape(token_id.to_s))
@@ -78,7 +78,7 @@ module Hubspot
78
78
 
79
79
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
80
80
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: DefaultApi#archive_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ @api_client.config.logger.debug "API called: PublicSmtpTokensApi#archive_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
82
  end
83
83
  return data, status_code, headers
84
84
  end
@@ -100,7 +100,7 @@ module Hubspot
100
100
  # @return [Array<(SmtpApiTokenView, Integer, Hash)>] SmtpApiTokenView data, response status code and response headers
101
101
  def create_token_with_http_info(opts = {})
102
102
  if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_token ...'
103
+ @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.create_token ...'
104
104
  end
105
105
  # resource path
106
106
  local_var_path = '/marketing/v3/transactional/smtp-tokens'
@@ -138,7 +138,7 @@ module Hubspot
138
138
 
139
139
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
140
140
  if @api_client.config.debugging
141
- @api_client.config.logger.debug "API called: DefaultApi#create_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ @api_client.config.logger.debug "API called: PublicSmtpTokensApi#create_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
142
  end
143
143
  return data, status_code, headers
144
144
  end
@@ -160,11 +160,11 @@ module Hubspot
160
160
  # @return [Array<(SmtpApiTokenView, Integer, Hash)>] SmtpApiTokenView data, response status code and response headers
161
161
  def get_token_by_id_with_http_info(token_id, opts = {})
162
162
  if @api_client.config.debugging
163
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_token_by_id ...'
163
+ @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.get_token_by_id ...'
164
164
  end
165
165
  # verify the required parameter 'token_id' is set
166
166
  if @api_client.config.client_side_validation && token_id.nil?
167
- fail ArgumentError, "Missing the required parameter 'token_id' when calling DefaultApi.get_token_by_id"
167
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling PublicSmtpTokensApi.get_token_by_id"
168
168
  end
169
169
  # resource path
170
170
  local_var_path = '/marketing/v3/transactional/smtp-tokens/{tokenId}'.sub('{' + 'tokenId' + '}', CGI.escape(token_id.to_s))
@@ -200,7 +200,7 @@ module Hubspot
200
200
 
201
201
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
202
  if @api_client.config.debugging
203
- @api_client.config.logger.debug "API called: DefaultApi#get_token_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
203
+ @api_client.config.logger.debug "API called: PublicSmtpTokensApi#get_token_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
204
  end
205
205
  return data, status_code, headers
206
206
  end
@@ -228,7 +228,7 @@ module Hubspot
228
228
  # @return [Array<(CollectionResponseSmtpApiTokenView, Integer, Hash)>] CollectionResponseSmtpApiTokenView data, response status code and response headers
229
229
  def get_tokens_page_with_http_info(opts = {})
230
230
  if @api_client.config.debugging
231
- @api_client.config.logger.debug 'Calling API: DefaultApi.get_tokens_page ...'
231
+ @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.get_tokens_page ...'
232
232
  end
233
233
  # resource path
234
234
  local_var_path = '/marketing/v3/transactional/smtp-tokens'
@@ -268,7 +268,7 @@ module Hubspot
268
268
 
269
269
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
270
270
  if @api_client.config.debugging
271
- @api_client.config.logger.debug "API called: DefaultApi#get_tokens_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ @api_client.config.logger.debug "API called: PublicSmtpTokensApi#get_tokens_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
272
272
  end
273
273
  return data, status_code, headers
274
274
  end
@@ -290,11 +290,11 @@ module Hubspot
290
290
  # @return [Array<(SmtpApiTokenView, Integer, Hash)>] SmtpApiTokenView data, response status code and response headers
291
291
  def reset_password_with_http_info(token_id, opts = {})
292
292
  if @api_client.config.debugging
293
- @api_client.config.logger.debug 'Calling API: DefaultApi.reset_password ...'
293
+ @api_client.config.logger.debug 'Calling API: PublicSmtpTokensApi.reset_password ...'
294
294
  end
295
295
  # verify the required parameter 'token_id' is set
296
296
  if @api_client.config.client_side_validation && token_id.nil?
297
- fail ArgumentError, "Missing the required parameter 'token_id' when calling DefaultApi.reset_password"
297
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling PublicSmtpTokensApi.reset_password"
298
298
  end
299
299
  # resource path
300
300
  local_var_path = '/marketing/v3/transactional/smtp-tokens/{tokenId}/password-reset'.sub('{' + 'tokenId' + '}', CGI.escape(token_id.to_s))
@@ -330,67 +330,7 @@ module Hubspot
330
330
 
331
331
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
332
332
  if @api_client.config.debugging
333
- @api_client.config.logger.debug "API called: DefaultApi#reset_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
334
- end
335
- return data, status_code, headers
336
- end
337
-
338
- # Send a single transactional email asynchronously.
339
- # Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
340
- # @param [Hash] opts the optional parameters
341
- # @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
342
- # @return [EmailSendStatusView]
343
- def send_email(opts = {})
344
- data, _status_code, _headers = send_email_with_http_info(opts)
345
- data
346
- end
347
-
348
- # Send a single transactional email asynchronously.
349
- # Asynchronously send a transactional email. Returns the status of the email send with a statusId that can be used to continuously query for the status using the Email Send Status API.
350
- # @param [Hash] opts the optional parameters
351
- # @option opts [PublicSingleSendRequestEgg] :public_single_send_request_egg A request object describing the email to send.
352
- # @return [Array<(EmailSendStatusView, Integer, Hash)>] EmailSendStatusView data, response status code and response headers
353
- def send_email_with_http_info(opts = {})
354
- if @api_client.config.debugging
355
- @api_client.config.logger.debug 'Calling API: DefaultApi.send_email ...'
356
- end
357
- # resource path
358
- local_var_path = '/marketing/v3/transactional/single-email/send'
359
-
360
- # query parameters
361
- query_params = opts[:query_params] || {}
362
-
363
- # header parameters
364
- header_params = opts[:header_params] || {}
365
- # HTTP header 'Accept' (if needed)
366
- header_params['Accept'] = @api_client.select_header_accept(['application/json', '*/*'])
367
- # HTTP header 'Content-Type'
368
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
369
-
370
- # form parameters
371
- form_params = opts[:form_params] || {}
372
-
373
- # http body (model)
374
- post_body = opts[:body] || @api_client.object_to_http_body(opts[:'public_single_send_request_egg'])
375
-
376
- # return_type
377
- return_type = opts[:return_type] || 'EmailSendStatusView'
378
-
379
- # auth_names
380
- auth_names = opts[:auth_names] || ['hapikey', 'oauth2']
381
-
382
- new_options = opts.merge(
383
- :header_params => header_params,
384
- :query_params => query_params,
385
- :form_params => form_params,
386
- :body => post_body,
387
- :auth_names => auth_names,
388
- :return_type => return_type
389
- )
390
-
391
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
392
- if @api_client.config.debugging
393
- @api_client.config.logger.debug "API called: DefaultApi#send_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ @api_client.config.logger.debug "API called: PublicSmtpTokensApi#reset_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
394
334
  end
395
335
  return data, status_code, headers
396
336
  end