hubspot-api-client 9.3.0 → 9.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile.lock +3 -1
  4. data/hubspot-api-client.gemspec +1 -0
  5. data/lib/hubspot-api-client.rb +5 -664
  6. data/lib/hubspot/codegen/crm/extensions/accounting/api/callbacks_api.rb +728 -0
  7. data/lib/hubspot/codegen/crm/extensions/accounting/api/invoice_api.rb +247 -0
  8. data/lib/hubspot/codegen/crm/extensions/accounting/api/settings_api.rb +160 -0
  9. data/lib/hubspot/codegen/crm/extensions/accounting/api/sync_api.rb +168 -0
  10. data/lib/hubspot/codegen/crm/extensions/accounting/api/user_accounts_api.rb +154 -0
  11. data/lib/hubspot/codegen/crm/extensions/accounting/api_client.rb +394 -0
  12. data/lib/hubspot/codegen/crm/extensions/accounting/api_error.rb +63 -0
  13. data/lib/hubspot/codegen/crm/extensions/accounting/configuration.rb +265 -0
  14. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_settings.rb +241 -0
  15. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_app_urls.rb +381 -0
  16. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_customer.rb +262 -0
  17. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_invoice.rb +357 -0
  18. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_extension_term.rb +253 -0
  19. data/lib/hubspot/codegen/crm/extensions/accounting/models/accounting_features.rb +248 -0
  20. data/lib/hubspot/codegen/crm/extensions/accounting/models/action_response.rb +299 -0
  21. data/lib/hubspot/codegen/crm/extensions/accounting/models/address.rb +253 -0
  22. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_feature.rb +232 -0
  23. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_invoice_sub_features.rb +293 -0
  24. data/lib/hubspot/codegen/crm/extensions/accounting/models/create_user_account_request_external.rb +248 -0
  25. data/lib/hubspot/codegen/crm/extensions/accounting/models/customer_search_response_external.rb +269 -0
  26. data/lib/hubspot/codegen/crm/extensions/accounting/models/error.rb +294 -0
  27. data/lib/hubspot/codegen/crm/extensions/accounting/models/error_detail.rb +260 -0
  28. data/lib/hubspot/codegen/crm/extensions/accounting/models/exchange_rate_response.rb +297 -0
  29. data/lib/hubspot/codegen/crm/extensions/accounting/models/import_invoice_feature.rb +218 -0
  30. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_create_payment_request.rb +263 -0
  31. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_pdf_response.rb +283 -0
  32. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_read_response.rb +455 -0
  33. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_search_response.rb +264 -0
  34. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_request.rb +281 -0
  35. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoice_update_response.rb +441 -0
  36. data/lib/hubspot/codegen/crm/extensions/accounting/models/invoices_response_external.rb +264 -0
  37. data/lib/hubspot/codegen/crm/extensions/accounting/models/object_sync_feature.rb +218 -0
  38. data/lib/hubspot/codegen/crm/extensions/accounting/models/product.rb +281 -0
  39. data/lib/hubspot/codegen/crm/extensions/accounting/models/product_search_response.rb +264 -0
  40. data/lib/hubspot/codegen/crm/extensions/accounting/models/result_id_accounting_response.rb +267 -0
  41. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_contacts_request.rb +235 -0
  42. data/lib/hubspot/codegen/crm/extensions/accounting/models/sync_products_request.rb +235 -0
  43. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax.rb +248 -0
  44. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_search_response.rb +264 -0
  45. data/lib/hubspot/codegen/crm/extensions/accounting/models/tax_type.rb +228 -0
  46. data/lib/hubspot/codegen/crm/extensions/accounting/models/terms_response.rb +264 -0
  47. data/lib/hubspot/codegen/crm/extensions/accounting/models/unit_price.rb +228 -0
  48. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_contact.rb +319 -0
  49. data/lib/hubspot/codegen/crm/extensions/accounting/models/updated_product.rb +324 -0
  50. data/lib/hubspot/codegen/crm/extensions/calling/api/settings_api.rb +284 -0
  51. data/lib/hubspot/codegen/crm/extensions/calling/api_client.rb +394 -0
  52. data/lib/hubspot/codegen/crm/extensions/calling/api_error.rb +63 -0
  53. data/lib/hubspot/codegen/crm/extensions/calling/configuration.rb +258 -0
  54. data/lib/hubspot/codegen/crm/extensions/calling/models/error.rb +294 -0
  55. data/lib/hubspot/codegen/crm/extensions/calling/models/error_detail.rb +260 -0
  56. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_patch_request.rb +253 -0
  57. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_request.rb +263 -0
  58. data/lib/hubspot/codegen/crm/extensions/calling/models/settings_response.rb +308 -0
  59. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api/settings_api.rb +222 -0
  60. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_client.rb +394 -0
  61. data/lib/hubspot/codegen/crm/extensions/videoconferencing/api_error.rb +63 -0
  62. data/lib/hubspot/codegen/crm/extensions/videoconferencing/configuration.rb +258 -0
  63. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error.rb +294 -0
  64. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/error_detail.rb +260 -0
  65. data/lib/hubspot/codegen/crm/extensions/videoconferencing/models/external_settings.rb +248 -0
  66. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/associations_api.rb +103 -0
  67. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/basic_api.rb +181 -0
  68. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/batch_api.rb +95 -0
  69. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api/search_api.rb +92 -0
  70. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_client.rb +394 -0
  71. data/lib/hubspot/codegen/crm/objects/feedback_submissions/api_error.rb +63 -0
  72. data/lib/hubspot/codegen/crm/objects/feedback_submissions/configuration.rb +258 -0
  73. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/associated_id.rb +231 -0
  74. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input.rb +219 -0
  75. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id.rb +219 -0
  76. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input.rb +219 -0
  77. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id.rb +244 -0
  78. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object.rb +315 -0
  79. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors.rb +335 -0
  80. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id.rb +228 -0
  81. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object.rb +228 -0
  82. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object.rb +243 -0
  83. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error.rb +294 -0
  84. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_category.rb +265 -0
  85. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/error_detail.rb +260 -0
  86. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter.rb +274 -0
  87. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/filter_group.rb +219 -0
  88. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/next_page.rb +226 -0
  89. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/paging.rb +221 -0
  90. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/previous_page.rb +226 -0
  91. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/public_object_search_request.rb +288 -0
  92. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object.rb +290 -0
  93. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input.rb +233 -0
  94. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_id.rb +217 -0
  95. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/simple_public_object_input.rb +219 -0
  96. data/lib/hubspot/codegen/crm/objects/feedback_submissions/models/standard_error.rb +311 -0
  97. data/lib/hubspot/codegen/files/files/api/files_api.rb +787 -0
  98. data/lib/hubspot/codegen/files/files/api/folders_api.rb +579 -0
  99. data/lib/hubspot/codegen/files/files/api_client.rb +392 -0
  100. data/lib/hubspot/codegen/files/files/api_error.rb +61 -0
  101. data/lib/hubspot/codegen/files/files/configuration.rb +263 -0
  102. data/lib/hubspot/codegen/files/files/models/collection_response_file.rb +226 -0
  103. data/lib/hubspot/codegen/files/files/models/collection_response_folder.rb +226 -0
  104. data/lib/hubspot/codegen/files/files/models/error.rb +292 -0
  105. data/lib/hubspot/codegen/files/files/models/error_category.rb +263 -0
  106. data/lib/hubspot/codegen/files/files/models/error_detail.rb +258 -0
  107. data/lib/hubspot/codegen/files/files/models/file.rb +440 -0
  108. data/lib/hubspot/codegen/files/files/models/file_action_response.rb +348 -0
  109. data/lib/hubspot/codegen/files/files/models/file_update_input.rb +285 -0
  110. data/lib/hubspot/codegen/files/files/models/folder.rb +301 -0
  111. data/lib/hubspot/codegen/files/files/models/folder_action_response.rb +348 -0
  112. data/lib/hubspot/codegen/files/files/models/folder_input.rb +236 -0
  113. data/lib/hubspot/codegen/files/files/models/folder_update_input.rb +236 -0
  114. data/lib/hubspot/codegen/files/files/models/folder_update_task_locator.rb +228 -0
  115. data/lib/hubspot/codegen/files/files/models/import_from_url_input.rb +374 -0
  116. data/lib/hubspot/codegen/files/files/models/import_from_url_task_locator.rb +228 -0
  117. data/lib/hubspot/codegen/files/files/models/next_page.rb +224 -0
  118. data/lib/hubspot/codegen/files/files/models/paging.rb +219 -0
  119. data/lib/hubspot/codegen/files/files/models/previous_page.rb +224 -0
  120. data/lib/hubspot/codegen/files/files/models/signed_url.rb +311 -0
  121. data/lib/hubspot/codegen/files/files/models/standard_error.rb +309 -0
  122. data/lib/hubspot/codegen/marketing/transactional/api/default_api.rb +400 -0
  123. data/lib/hubspot/codegen/marketing/transactional/api_client.rb +392 -0
  124. data/lib/hubspot/codegen/marketing/transactional/api_error.rb +61 -0
  125. data/lib/hubspot/codegen/marketing/transactional/configuration.rb +263 -0
  126. data/lib/hubspot/codegen/marketing/transactional/models/collection_response_smtp_api_token_view.rb +227 -0
  127. data/lib/hubspot/codegen/marketing/transactional/models/email_send_status_view.rb +326 -0
  128. data/lib/hubspot/codegen/marketing/transactional/models/error.rb +292 -0
  129. data/lib/hubspot/codegen/marketing/transactional/models/error_detail.rb +258 -0
  130. data/lib/hubspot/codegen/marketing/transactional/models/event_id_view.rb +231 -0
  131. data/lib/hubspot/codegen/marketing/transactional/models/next_page.rb +224 -0
  132. data/lib/hubspot/codegen/marketing/transactional/models/paging.rb +210 -0
  133. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_email.rb +282 -0
  134. data/lib/hubspot/codegen/marketing/transactional/models/public_single_send_request_egg.rb +262 -0
  135. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_request_egg.rb +231 -0
  136. data/lib/hubspot/codegen/marketing/transactional/models/smtp_api_token_view.rb +301 -0
  137. data/lib/hubspot/version.rb +1 -1
  138. data/spec/codegen/crm/extensions/accounting/api/callbacks_api_spec.rb +165 -0
  139. data/spec/codegen/crm/extensions/accounting/api/invoice_api_spec.rb +76 -0
  140. data/spec/codegen/crm/extensions/accounting/api/settings_api_spec.rb +60 -0
  141. data/spec/codegen/crm/extensions/accounting/api/sync_api_spec.rb +61 -0
  142. data/spec/codegen/crm/extensions/accounting/api/user_accounts_api_spec.rb +59 -0
  143. data/spec/codegen/crm/extensions/accounting/models/accounting_app_settings_spec.rb +53 -0
  144. data/spec/codegen/crm/extensions/accounting/models/accounting_app_urls_spec.rb +125 -0
  145. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_customer_spec.rb +65 -0
  146. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_invoice_spec.rb +93 -0
  147. data/spec/codegen/crm/extensions/accounting/models/accounting_extension_term_spec.rb +59 -0
  148. data/spec/codegen/crm/extensions/accounting/models/accounting_features_spec.rb +53 -0
  149. data/spec/codegen/crm/extensions/accounting/models/action_response_spec.rb +69 -0
  150. data/spec/codegen/crm/extensions/accounting/models/address_spec.rb +65 -0
  151. data/spec/codegen/crm/extensions/accounting/models/create_invoice_feature_spec.rb +47 -0
  152. data/spec/codegen/crm/extensions/accounting/models/create_invoice_sub_features_spec.rb +71 -0
  153. data/spec/codegen/crm/extensions/accounting/models/create_user_account_request_external_spec.rb +53 -0
  154. data/spec/codegen/crm/extensions/accounting/models/customer_search_response_external_spec.rb +51 -0
  155. data/spec/codegen/crm/extensions/accounting/models/error_detail_spec.rb +65 -0
  156. data/spec/codegen/crm/extensions/accounting/models/error_spec.rb +77 -0
  157. data/spec/codegen/crm/extensions/accounting/models/exchange_rate_response_spec.rb +63 -0
  158. data/spec/codegen/crm/extensions/accounting/models/import_invoice_feature_spec.rb +41 -0
  159. data/spec/codegen/crm/extensions/accounting/models/invoice_create_payment_request_spec.rb +59 -0
  160. data/spec/codegen/crm/extensions/accounting/models/invoice_pdf_response_spec.rb +51 -0
  161. data/spec/codegen/crm/extensions/accounting/models/invoice_read_response_spec.rb +135 -0
  162. data/spec/codegen/crm/extensions/accounting/models/invoice_search_response_spec.rb +51 -0
  163. data/spec/codegen/crm/extensions/accounting/models/invoice_update_request_spec.rb +83 -0
  164. data/spec/codegen/crm/extensions/accounting/models/invoice_update_response_spec.rb +135 -0
  165. data/spec/codegen/crm/extensions/accounting/models/invoices_response_external_spec.rb +51 -0
  166. data/spec/codegen/crm/extensions/accounting/models/object_sync_feature_spec.rb +41 -0
  167. data/spec/codegen/crm/extensions/accounting/models/product_search_response_spec.rb +51 -0
  168. data/spec/codegen/crm/extensions/accounting/models/product_spec.rb +71 -0
  169. data/spec/codegen/crm/extensions/accounting/models/result_id_accounting_response_spec.rb +51 -0
  170. data/spec/codegen/crm/extensions/accounting/models/sync_contacts_request_spec.rb +47 -0
  171. data/spec/codegen/crm/extensions/accounting/models/sync_products_request_spec.rb +47 -0
  172. data/spec/codegen/crm/extensions/accounting/models/tax_search_response_spec.rb +51 -0
  173. data/spec/codegen/crm/extensions/accounting/models/tax_spec.rb +53 -0
  174. data/spec/codegen/crm/extensions/accounting/models/tax_type_spec.rb +47 -0
  175. data/spec/codegen/crm/extensions/accounting/models/terms_response_spec.rb +51 -0
  176. data/spec/codegen/crm/extensions/accounting/models/unit_price_spec.rb +47 -0
  177. data/spec/codegen/crm/extensions/accounting/models/updated_contact_spec.rb +73 -0
  178. data/spec/codegen/crm/extensions/accounting/models/updated_product_spec.rb +75 -0
  179. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +85 -0
  180. data/spec/codegen/crm/extensions/calling/models/error_detail_spec.rb +65 -0
  181. data/spec/codegen/crm/extensions/calling/models/error_spec.rb +77 -0
  182. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +65 -0
  183. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +65 -0
  184. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +77 -0
  185. data/spec/codegen/crm/extensions/videoconferencing/api/settings_api_spec.rb +72 -0
  186. data/spec/codegen/crm/extensions/videoconferencing/models/error_detail_spec.rb +65 -0
  187. data/spec/codegen/crm/extensions/videoconferencing/models/error_spec.rb +77 -0
  188. data/spec/codegen/crm/extensions/videoconferencing/models/external_settings_spec.rb +59 -0
  189. data/spec/codegen/crm/objects/feedback_submissions/api/associations_api_spec.rb +50 -0
  190. data/spec/codegen/crm/objects/feedback_submissions/api/basic_api_spec.rb +69 -0
  191. data/spec/codegen/crm/objects/feedback_submissions/api/batch_api_spec.rb +48 -0
  192. data/spec/codegen/crm/objects/feedback_submissions/api/search_api_spec.rb +47 -0
  193. data/spec/codegen/crm/objects/feedback_submissions/models/associated_id_spec.rb +47 -0
  194. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_batch_input_spec.rb +41 -0
  195. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_id_spec.rb +41 -0
  196. data/spec/codegen/crm/objects/feedback_submissions/models/batch_input_simple_public_object_input_spec.rb +41 -0
  197. data/spec/codegen/crm/objects/feedback_submissions/models/batch_read_input_simple_public_object_id_spec.rb +53 -0
  198. data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_spec.rb +75 -0
  199. data/spec/codegen/crm/objects/feedback_submissions/models/batch_response_simple_public_object_with_errors_spec.rb +87 -0
  200. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_associated_id_spec.rb +47 -0
  201. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_simple_public_object_spec.rb +47 -0
  202. data/spec/codegen/crm/objects/feedback_submissions/models/collection_response_with_total_simple_public_object_spec.rb +53 -0
  203. data/spec/codegen/crm/objects/feedback_submissions/models/error_category_spec.rb +51 -0
  204. data/spec/codegen/crm/objects/feedback_submissions/models/error_detail_spec.rb +65 -0
  205. data/spec/codegen/crm/objects/feedback_submissions/models/error_spec.rb +77 -0
  206. data/spec/codegen/crm/objects/feedback_submissions/models/filter_group_spec.rb +41 -0
  207. data/spec/codegen/crm/objects/feedback_submissions/models/filter_spec.rb +57 -0
  208. data/spec/codegen/crm/objects/feedback_submissions/models/next_page_spec.rb +47 -0
  209. data/spec/codegen/crm/objects/feedback_submissions/models/paging_spec.rb +47 -0
  210. data/spec/codegen/crm/objects/feedback_submissions/models/previous_page_spec.rb +47 -0
  211. data/spec/codegen/crm/objects/feedback_submissions/models/public_object_search_request_spec.rb +71 -0
  212. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_batch_input_spec.rb +47 -0
  213. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_id_spec.rb +41 -0
  214. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_input_spec.rb +41 -0
  215. data/spec/codegen/crm/objects/feedback_submissions/models/simple_public_object_spec.rb +77 -0
  216. data/spec/codegen/crm/objects/feedback_submissions/models/standard_error_spec.rb +83 -0
  217. data/spec/codegen/files/files/api/files_api_spec.rb +189 -0
  218. data/spec/codegen/files/files/api/folders_api_spec.rb +143 -0
  219. data/spec/codegen/files/files/models/collection_response_file_spec.rb +47 -0
  220. data/spec/codegen/files/files/models/collection_response_folder_spec.rb +47 -0
  221. data/spec/codegen/files/files/models/error_category_spec.rb +51 -0
  222. data/spec/codegen/files/files/models/error_detail_spec.rb +65 -0
  223. data/spec/codegen/files/files/models/error_spec.rb +77 -0
  224. data/spec/codegen/files/files/models/file_action_response_spec.rb +93 -0
  225. data/spec/codegen/files/files/models/file_spec.rb +147 -0
  226. data/spec/codegen/files/files/models/file_update_input_spec.rb +69 -0
  227. data/spec/codegen/files/files/models/folder_action_response_spec.rb +93 -0
  228. data/spec/codegen/files/files/models/folder_input_spec.rb +53 -0
  229. data/spec/codegen/files/files/models/folder_spec.rb +83 -0
  230. data/spec/codegen/files/files/models/folder_update_input_spec.rb +53 -0
  231. data/spec/codegen/files/files/models/folder_update_task_locator_spec.rb +47 -0
  232. data/spec/codegen/files/files/models/import_from_url_input_spec.rb +101 -0
  233. data/spec/codegen/files/files/models/import_from_url_task_locator_spec.rb +47 -0
  234. data/spec/codegen/files/files/models/next_page_spec.rb +47 -0
  235. data/spec/codegen/files/files/models/paging_spec.rb +47 -0
  236. data/spec/codegen/files/files/models/previous_page_spec.rb +47 -0
  237. data/spec/codegen/files/files/models/signed_url_spec.rb +83 -0
  238. data/spec/codegen/files/files/models/standard_error_spec.rb +83 -0
  239. data/spec/codegen/marketing/transactional/api/default_api_spec.rb +110 -0
  240. data/spec/codegen/marketing/transactional/models/collection_response_smtp_api_token_view_spec.rb +47 -0
  241. data/spec/codegen/marketing/transactional/models/email_send_status_view_spec.rb +85 -0
  242. data/spec/codegen/marketing/transactional/models/error_detail_spec.rb +65 -0
  243. data/spec/codegen/marketing/transactional/models/error_spec.rb +77 -0
  244. data/spec/codegen/marketing/transactional/models/event_id_view_spec.rb +47 -0
  245. data/spec/codegen/marketing/transactional/models/next_page_spec.rb +47 -0
  246. data/spec/codegen/marketing/transactional/models/paging_spec.rb +41 -0
  247. data/spec/codegen/marketing/transactional/models/public_single_send_email_spec.rb +71 -0
  248. data/spec/codegen/marketing/transactional/models/public_single_send_request_egg_spec.rb +59 -0
  249. data/spec/codegen/marketing/transactional/models/smtp_api_token_request_egg_spec.rb +47 -0
  250. data/spec/codegen/marketing/transactional/models/smtp_api_token_view_spec.rb +77 -0
  251. data/spec/features/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
  252. data/spec/features/crm/extensions/accounting/invoice_api_spec.rb +9 -0
  253. data/spec/features/crm/extensions/accounting/settings_api_spec.rb +8 -0
  254. data/spec/features/crm/extensions/accounting/sync_api_spec.rb +8 -0
  255. data/spec/features/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
  256. data/spec/features/crm/extensions/calling/settings_api_spec.rb +10 -0
  257. data/spec/features/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
  258. data/spec/features/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
  259. data/spec/features/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
  260. data/spec/features/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
  261. data/spec/features/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
  262. data/spec/features/files/files/files_api_spec.rb +16 -0
  263. data/spec/features/files/files/folders_api_spec.rb +14 -0
  264. data/spec/features/marketing/transactional/default_api_spec.rb +12 -0
  265. metadata +401 -2
@@ -0,0 +1,301 @@
1
+ =begin
2
+ #Transactional Email
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Hubspot
16
+ module Marketing
17
+ module Transactional
18
+ class SmtpApiTokenView
19
+ # User name to log into the HubSpot SMTP server.
20
+ attr_accessor :id
21
+
22
+ # Email address of the user that sent the token creation request.
23
+ attr_accessor :created_by
24
+
25
+ # Password used to log into the HubSpot SMTP server.
26
+ attr_accessor :password
27
+
28
+ # Identifier assigned to the campaign provided in the token creation request.
29
+ attr_accessor :email_campaign_id
30
+
31
+ # Timestamp generated when a token is created.
32
+ attr_accessor :created_at
33
+
34
+ # Indicates whether a contact should be created for recipients of emails.
35
+ attr_accessor :create_contact
36
+
37
+ # A name for the campaign tied to the token.
38
+ attr_accessor :campaign_name
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'id' => :'id',
44
+ :'created_by' => :'createdBy',
45
+ :'password' => :'password',
46
+ :'email_campaign_id' => :'emailCampaignId',
47
+ :'created_at' => :'createdAt',
48
+ :'create_contact' => :'createContact',
49
+ :'campaign_name' => :'campaignName'
50
+ }
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'id' => :'String',
57
+ :'created_by' => :'String',
58
+ :'password' => :'String',
59
+ :'email_campaign_id' => :'String',
60
+ :'created_at' => :'DateTime',
61
+ :'create_contact' => :'Boolean',
62
+ :'campaign_name' => :'String'
63
+ }
64
+ end
65
+
66
+ # List of attributes with nullable: true
67
+ def self.openapi_nullable
68
+ Set.new([
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Hubspot::Marketing::Transactional::SmtpApiTokenView` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!self.class.attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Marketing::Transactional::SmtpApiTokenView`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'id')
88
+ self.id = attributes[:'id']
89
+ end
90
+
91
+ if attributes.key?(:'created_by')
92
+ self.created_by = attributes[:'created_by']
93
+ end
94
+
95
+ if attributes.key?(:'password')
96
+ self.password = attributes[:'password']
97
+ end
98
+
99
+ if attributes.key?(:'email_campaign_id')
100
+ self.email_campaign_id = attributes[:'email_campaign_id']
101
+ end
102
+
103
+ if attributes.key?(:'created_at')
104
+ self.created_at = attributes[:'created_at']
105
+ end
106
+
107
+ if attributes.key?(:'create_contact')
108
+ self.create_contact = attributes[:'create_contact']
109
+ end
110
+
111
+ if attributes.key?(:'campaign_name')
112
+ self.campaign_name = attributes[:'campaign_name']
113
+ end
114
+ end
115
+
116
+ # Show invalid properties with the reasons. Usually used together with valid?
117
+ # @return Array for valid properties with the reasons
118
+ def list_invalid_properties
119
+ invalid_properties = Array.new
120
+ if @id.nil?
121
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
122
+ end
123
+
124
+ if @created_by.nil?
125
+ invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
126
+ end
127
+
128
+ if @email_campaign_id.nil?
129
+ invalid_properties.push('invalid value for "email_campaign_id", email_campaign_id cannot be nil.')
130
+ end
131
+
132
+ if @created_at.nil?
133
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
134
+ end
135
+
136
+ if @create_contact.nil?
137
+ invalid_properties.push('invalid value for "create_contact", create_contact cannot be nil.')
138
+ end
139
+
140
+ if @campaign_name.nil?
141
+ invalid_properties.push('invalid value for "campaign_name", campaign_name cannot be nil.')
142
+ end
143
+
144
+ invalid_properties
145
+ end
146
+
147
+ # Check to see if the all the properties in the model are valid
148
+ # @return true if the model is valid
149
+ def valid?
150
+ return false if @id.nil?
151
+ return false if @created_by.nil?
152
+ return false if @email_campaign_id.nil?
153
+ return false if @created_at.nil?
154
+ return false if @create_contact.nil?
155
+ return false if @campaign_name.nil?
156
+ true
157
+ end
158
+
159
+ # Checks equality by comparing each attribute.
160
+ # @param [Object] Object to be compared
161
+ def ==(o)
162
+ return true if self.equal?(o)
163
+ self.class == o.class &&
164
+ id == o.id &&
165
+ created_by == o.created_by &&
166
+ password == o.password &&
167
+ email_campaign_id == o.email_campaign_id &&
168
+ created_at == o.created_at &&
169
+ create_contact == o.create_contact &&
170
+ campaign_name == o.campaign_name
171
+ end
172
+
173
+ # @see the `==` method
174
+ # @param [Object] Object to be compared
175
+ def eql?(o)
176
+ self == o
177
+ end
178
+
179
+ # Calculates hash code according to all attributes.
180
+ # @return [Integer] Hash code
181
+ def hash
182
+ [id, created_by, password, email_campaign_id, created_at, create_contact, campaign_name].hash
183
+ end
184
+
185
+ # Builds the object from hash
186
+ # @param [Hash] attributes Model attributes in the form of hash
187
+ # @return [Object] Returns the model itself
188
+ def self.build_from_hash(attributes)
189
+ new.build_from_hash(attributes)
190
+ end
191
+
192
+ # Builds the object from hash
193
+ # @param [Hash] attributes Model attributes in the form of hash
194
+ # @return [Object] Returns the model itself
195
+ def build_from_hash(attributes)
196
+ return nil unless attributes.is_a?(Hash)
197
+ self.class.openapi_types.each_pair do |key, type|
198
+ if type =~ /\AArray<(.*)>/i
199
+ # check to ensure the input is an array given that the attribute
200
+ # is documented as an array but the input is not
201
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
202
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
203
+ end
204
+ elsif !attributes[self.class.attribute_map[key]].nil?
205
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
206
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
207
+ end
208
+
209
+ self
210
+ end
211
+
212
+ # Deserializes the data based on type
213
+ # @param string type Data type
214
+ # @param string value Value to be deserialized
215
+ # @return [Object] Deserialized data
216
+ def _deserialize(type, value)
217
+ case type.to_sym
218
+ when :DateTime
219
+ DateTime.parse(value)
220
+ when :Date
221
+ Date.parse(value)
222
+ when :String
223
+ value.to_s
224
+ when :Integer
225
+ value.to_i
226
+ when :Float
227
+ value.to_f
228
+ when :Boolean
229
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
230
+ true
231
+ else
232
+ false
233
+ end
234
+ when :Object
235
+ # generic object (usually a Hash), return directly
236
+ value
237
+ when /\AArray<(?<inner_type>.+)>\z/
238
+ inner_type = Regexp.last_match[:inner_type]
239
+ value.map { |v| _deserialize(inner_type, v) }
240
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
241
+ k_type = Regexp.last_match[:k_type]
242
+ v_type = Regexp.last_match[:v_type]
243
+ {}.tap do |hash|
244
+ value.each do |k, v|
245
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
246
+ end
247
+ end
248
+ else # model
249
+ Hubspot::Marketing::Transactional.const_get(type).build_from_hash(value)
250
+ end
251
+ end
252
+
253
+ # Returns the string representation of the object
254
+ # @return [String] String presentation of the object
255
+ def to_s
256
+ to_hash.to_s
257
+ end
258
+
259
+ # to_body is an alias to to_hash (backward compatibility)
260
+ # @return [Hash] Returns the object in the form of hash
261
+ def to_body
262
+ to_hash
263
+ end
264
+
265
+ # Returns the object in the form of hash
266
+ # @return [Hash] Returns the object in the form of hash
267
+ def to_hash
268
+ hash = {}
269
+ self.class.attribute_map.each_pair do |attr, param|
270
+ value = self.send(attr)
271
+ if value.nil?
272
+ is_nullable = self.class.openapi_nullable.include?(attr)
273
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
274
+ end
275
+
276
+ hash[param] = _to_hash(value)
277
+ end
278
+ hash
279
+ end
280
+
281
+ # Outputs non-array value in the form of hash
282
+ # For object, use to_hash. Otherwise, just return the value
283
+ # @param [Object] value Any valid value
284
+ # @return [Hash] Returns the value in the form of hash
285
+ def _to_hash(value)
286
+ if value.is_a?(Array)
287
+ value.compact.map { |v| _to_hash(v) }
288
+ elsif value.is_a?(Hash)
289
+ {}.tap do |hash|
290
+ value.each { |k, v| hash[k] = _to_hash(v) }
291
+ end
292
+ elsif value.respond_to? :to_hash
293
+ value.to_hash
294
+ else
295
+ value
296
+ end
297
+ end
298
+ end
299
+ end
300
+ end
301
+ end
@@ -1,3 +1,3 @@
1
1
  module Hubspot
2
- VERSION = '9.3.0'
2
+ VERSION = '9.4.0'
3
3
  end
@@ -0,0 +1,165 @@
1
+ =begin
2
+ #Accounting Extension
3
+
4
+ #These APIs allow you to interact with HubSpot's Accounting Extension. It allows you to: * Specify the URLs that HubSpot will use when making webhook requests to your external accounting system. * Respond to webhook calls made to your external accounting system by HubSpot
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Hubspot::Crm::Extensions::Accounting::CallbacksApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CallbacksApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = Hubspot::Crm::Extensions::Accounting::CallbacksApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CallbacksApi' do
30
+ it 'should create an instance of CallbacksApi' do
31
+ expect(@api_instance).to be_instance_of(Hubspot::Crm::Extensions::Accounting::CallbacksApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_customer
36
+ # Endpoint for customer creation response
37
+ # Call this endpoint with the response to a customer creation request.
38
+ # @param request_id The ID of the request that this response is for
39
+ # @param result_id_accounting_response The ID of the created customer.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'create_customer test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for create_exchange_rate
49
+ # Endpoint for exchange rate response
50
+ # Call this endpoint with the response to an exchange rate request.
51
+ # @param request_id The ID of the request that this response is for
52
+ # @param exchange_rate_response The result of the exchange rate request.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [nil]
55
+ describe 'create_exchange_rate test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for create_invoice
62
+ # Endpoint for invoice creation response
63
+ # Call this endpoint with the response to a invoice creation request.
64
+ # @param request_id The ID of the request that this response is for
65
+ # @param result_id_accounting_response The ID of the created invoice.
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [nil]
68
+ describe 'create_invoice test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ # unit tests for create_term
75
+ # Endpoint for terms search response
76
+ # Call this endpoint with the response to a terms search request.
77
+ # @param request_id The ID of the request that this response is for
78
+ # @param terms_response The result of the terms search
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [nil]
81
+ describe 'create_term test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for do_customer_search
88
+ # Endpoint for customer search response
89
+ # Call this endpoint with the response to a customer search request.
90
+ # @param request_id The ID of the request that this response is for
91
+ # @param customer_search_response_external The result of the customer search request.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [nil]
94
+ describe 'do_customer_search test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ # unit tests for do_invoice_search
101
+ # Endpoint for invoice search response
102
+ # Call this endpoint with the response to a invoice search request.
103
+ # @param request_id The ID of the request that this response is for
104
+ # @param invoice_search_response The result of the invoice search request.
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [nil]
107
+ describe 'do_invoice_search test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ # unit tests for do_product_search
114
+ # Endpoint for product search response
115
+ # Call this endpoint with the response to a product search request.
116
+ # @param request_id The ID of the request that this response is for
117
+ # @param product_search_response The result of the product search request.
118
+ # @param [Hash] opts the optional parameters
119
+ # @return [nil]
120
+ describe 'do_product_search test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+
126
+ # unit tests for do_tax_search
127
+ # Endpoint for taxes search response
128
+ # Call this endpoint with the response to a taxes search request.
129
+ # @param request_id The ID of the request that this response is for
130
+ # @param tax_search_response The result of the taxes search request.
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [nil]
133
+ describe 'do_tax_search test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+
139
+ # unit tests for get_by_id
140
+ # Endpoint for invoice get-by-id response
141
+ # Call this endpoint with the response to a invoice get-by-id request.
142
+ # @param request_id The ID of the request that this response is for
143
+ # @param invoices_response_external The result of the invoice request.
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [nil]
146
+ describe 'get_by_id test' do
147
+ it 'should work' do
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+
152
+ # unit tests for invoice_pdf
153
+ # Endpoint for PDF content of invoice
154
+ # Call this endpoint with the PDF content of a requested invoice.
155
+ # @param request_id The ID of the request that this response is for
156
+ # @param invoice_pdf_response The bytes of the invoice PDF.
157
+ # @param [Hash] opts the optional parameters
158
+ # @return [nil]
159
+ describe 'invoice_pdf test' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ end