hubspot-api-client 11.1.1 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (245) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +8 -2
  4. data/README.md +21 -0
  5. data/hubspot-api-client.gemspec +1 -0
  6. data/lib/hubspot/client.rb +51 -0
  7. data/lib/hubspot/discovery/automation/actions/api/callbacks_api.rb +13 -0
  8. data/lib/hubspot/discovery/automation/actions/api/definitions_api.rb +13 -0
  9. data/lib/hubspot/discovery/automation/actions/api/functions_api.rb +13 -0
  10. data/lib/hubspot/discovery/automation/actions/api/revisions_api.rb +13 -0
  11. data/lib/hubspot/discovery/automation/actions/client.rb +22 -0
  12. data/lib/hubspot/discovery/automation/client.rb +17 -0
  13. data/lib/hubspot/discovery/base_api_client.rb +70 -0
  14. data/lib/hubspot/discovery/base_module_client.rb +55 -0
  15. data/lib/hubspot/discovery/cms/audit_logs/api/audit_logs_api.rb +13 -0
  16. data/lib/hubspot/discovery/cms/audit_logs/client.rb +19 -0
  17. data/lib/hubspot/discovery/cms/blogs/authors/api/author_api.rb +15 -0
  18. data/lib/hubspot/discovery/cms/blogs/authors/client.rb +21 -0
  19. data/lib/hubspot/discovery/cms/blogs/blog_posts/api/blog_post_api.rb +15 -0
  20. data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +21 -0
  21. data/lib/hubspot/discovery/cms/blogs/client.rb +21 -0
  22. data/lib/hubspot/discovery/cms/blogs/tags/api/tag_api.rb +15 -0
  23. data/lib/hubspot/discovery/cms/blogs/tags/client.rb +21 -0
  24. data/lib/hubspot/discovery/cms/client.rb +23 -0
  25. data/lib/hubspot/discovery/cms/domains/api/domains_api.rb +13 -0
  26. data/lib/hubspot/discovery/cms/domains/client.rb +19 -0
  27. data/lib/hubspot/discovery/cms/hubdb/api/rows_api.rb +13 -0
  28. data/lib/hubspot/discovery/cms/hubdb/api/rows_batch_api.rb +13 -0
  29. data/lib/hubspot/discovery/cms/hubdb/api/tables_api.rb +13 -0
  30. data/lib/hubspot/discovery/cms/hubdb/client.rb +21 -0
  31. data/lib/hubspot/discovery/cms/performance/api/public_performance_api.rb +13 -0
  32. data/lib/hubspot/discovery/cms/performance/client.rb +19 -0
  33. data/lib/hubspot/discovery/cms/site_search/api/public_api.rb +13 -0
  34. data/lib/hubspot/discovery/cms/site_search/client.rb +19 -0
  35. data/lib/hubspot/discovery/cms/url_redirects/api/redirects_api.rb +13 -0
  36. data/lib/hubspot/discovery/cms/url_redirects/client.rb +19 -0
  37. data/lib/hubspot/discovery/communication_preferences/api/definition_api.rb +11 -0
  38. data/lib/hubspot/discovery/communication_preferences/api/status_api.rb +11 -0
  39. data/lib/hubspot/discovery/communication_preferences/client.rb +18 -0
  40. data/lib/hubspot/discovery/conversations/client.rb +17 -0
  41. data/lib/hubspot/discovery/conversations/visitor_identification/api/generate_api.rb +13 -0
  42. data/lib/hubspot/discovery/conversations/visitor_identification/client.rb +19 -0
  43. data/lib/hubspot/discovery/crm/associations/api/batch_api.rb +13 -0
  44. data/lib/hubspot/discovery/crm/associations/api/types_api.rb +13 -0
  45. data/lib/hubspot/discovery/crm/associations/client.rb +20 -0
  46. data/lib/hubspot/discovery/crm/client.rb +32 -0
  47. data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +13 -0
  48. data/lib/hubspot/discovery/crm/companies/api/basic_api.rb +13 -0
  49. data/lib/hubspot/discovery/crm/companies/api/batch_api.rb +13 -0
  50. data/lib/hubspot/discovery/crm/companies/api/search_api.rb +13 -0
  51. data/lib/hubspot/discovery/crm/companies/client.rb +22 -0
  52. data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +13 -0
  53. data/lib/hubspot/discovery/crm/contacts/api/basic_api.rb +13 -0
  54. data/lib/hubspot/discovery/crm/contacts/api/batch_api.rb +13 -0
  55. data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +13 -0
  56. data/lib/hubspot/discovery/crm/contacts/api/search_api.rb +13 -0
  57. data/lib/hubspot/discovery/crm/contacts/client.rb +23 -0
  58. data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +13 -0
  59. data/lib/hubspot/discovery/crm/deals/api/basic_api.rb +13 -0
  60. data/lib/hubspot/discovery/crm/deals/api/batch_api.rb +13 -0
  61. data/lib/hubspot/discovery/crm/deals/api/search_api.rb +13 -0
  62. data/lib/hubspot/discovery/crm/deals/client.rb +22 -0
  63. data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +15 -0
  64. data/lib/hubspot/discovery/crm/extensions/accounting/api/invoice_api.rb +15 -0
  65. data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +15 -0
  66. data/lib/hubspot/discovery/crm/extensions/accounting/api/sync_api.rb +15 -0
  67. data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +15 -0
  68. data/lib/hubspot/discovery/crm/extensions/accounting/client.rb +25 -0
  69. data/lib/hubspot/discovery/crm/extensions/calling/api/settings_api.rb +15 -0
  70. data/lib/hubspot/discovery/crm/extensions/calling/client.rb +21 -0
  71. data/lib/hubspot/discovery/crm/extensions/cards/api/cards_api.rb +15 -0
  72. data/lib/hubspot/discovery/crm/extensions/cards/api/sample_response_api.rb +15 -0
  73. data/lib/hubspot/discovery/crm/extensions/cards/client.rb +22 -0
  74. data/lib/hubspot/discovery/crm/extensions/client.rb +22 -0
  75. data/lib/hubspot/discovery/crm/extensions/videoconferencing/api/settings_api.rb +15 -0
  76. data/lib/hubspot/discovery/crm/extensions/videoconferencing/client.rb +21 -0
  77. data/lib/hubspot/discovery/crm/imports/api/core_api.rb +13 -0
  78. data/lib/hubspot/discovery/crm/imports/api/public_imports_api.rb +13 -0
  79. data/lib/hubspot/discovery/crm/imports/client.rb +20 -0
  80. data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +13 -0
  81. data/lib/hubspot/discovery/crm/line_items/api/basic_api.rb +13 -0
  82. data/lib/hubspot/discovery/crm/line_items/api/batch_api.rb +13 -0
  83. data/lib/hubspot/discovery/crm/line_items/api/search_api.rb +13 -0
  84. data/lib/hubspot/discovery/crm/line_items/client.rb +22 -0
  85. data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +13 -0
  86. data/lib/hubspot/discovery/crm/objects/api/basic_api.rb +13 -0
  87. data/lib/hubspot/discovery/crm/objects/api/batch_api.rb +13 -0
  88. data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +13 -0
  89. data/lib/hubspot/discovery/crm/objects/api/search_api.rb +13 -0
  90. data/lib/hubspot/discovery/crm/objects/client.rb +29 -0
  91. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +15 -0
  92. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/basic_api.rb +15 -0
  93. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/batch_api.rb +15 -0
  94. data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/search_api.rb +15 -0
  95. data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +24 -0
  96. data/lib/hubspot/discovery/crm/owners/api/owners_api.rb +13 -0
  97. data/lib/hubspot/discovery/crm/owners/client.rb +19 -0
  98. data/lib/hubspot/discovery/crm/pipelines/api/pipeline_stages_api.rb +13 -0
  99. data/lib/hubspot/discovery/crm/pipelines/api/pipelines_api.rb +13 -0
  100. data/lib/hubspot/discovery/crm/pipelines/client.rb +20 -0
  101. data/lib/hubspot/discovery/crm/products/api/associations_api.rb +13 -0
  102. data/lib/hubspot/discovery/crm/products/api/basic_api.rb +13 -0
  103. data/lib/hubspot/discovery/crm/products/api/batch_api.rb +13 -0
  104. data/lib/hubspot/discovery/crm/products/api/search_api.rb +13 -0
  105. data/lib/hubspot/discovery/crm/products/client.rb +22 -0
  106. data/lib/hubspot/discovery/crm/properties/api/batch_api.rb +13 -0
  107. data/lib/hubspot/discovery/crm/properties/api/core_api.rb +13 -0
  108. data/lib/hubspot/discovery/crm/properties/api/groups_api.rb +13 -0
  109. data/lib/hubspot/discovery/crm/properties/client.rb +21 -0
  110. data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +13 -0
  111. data/lib/hubspot/discovery/crm/quotes/api/basic_api.rb +13 -0
  112. data/lib/hubspot/discovery/crm/quotes/api/batch_api.rb +13 -0
  113. data/lib/hubspot/discovery/crm/quotes/api/search_api.rb +13 -0
  114. data/lib/hubspot/discovery/crm/quotes/client.rb +22 -0
  115. data/lib/hubspot/discovery/crm/schemas/api/core_api.rb +13 -0
  116. data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +13 -0
  117. data/lib/hubspot/discovery/crm/schemas/client.rb +20 -0
  118. data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +13 -0
  119. data/lib/hubspot/discovery/crm/tickets/api/basic_api.rb +13 -0
  120. data/lib/hubspot/discovery/crm/tickets/api/batch_api.rb +13 -0
  121. data/lib/hubspot/discovery/crm/tickets/api/search_api.rb +13 -0
  122. data/lib/hubspot/discovery/crm/tickets/client.rb +22 -0
  123. data/lib/hubspot/discovery/crm/timeline/api/events_api.rb +13 -0
  124. data/lib/hubspot/discovery/crm/timeline/api/templates_api.rb +13 -0
  125. data/lib/hubspot/discovery/crm/timeline/api/tokens_api.rb +13 -0
  126. data/lib/hubspot/discovery/crm/timeline/client.rb +21 -0
  127. data/lib/hubspot/discovery/events/api/events_api.rb +11 -0
  128. data/lib/hubspot/discovery/events/client.rb +17 -0
  129. data/lib/hubspot/discovery/files/client.rb +17 -0
  130. data/lib/hubspot/discovery/files/files/api/files_api.rb +13 -0
  131. data/lib/hubspot/discovery/files/files/api/folders_api.rb +13 -0
  132. data/lib/hubspot/discovery/files/files/client.rb +20 -0
  133. data/lib/hubspot/discovery/marketing/client.rb +17 -0
  134. data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +13 -0
  135. data/lib/hubspot/discovery/marketing/transactional/api/single_send_api.rb +13 -0
  136. data/lib/hubspot/discovery/marketing/transactional/client.rb +20 -0
  137. data/lib/hubspot/discovery/oauth/api/access_tokens_api.rb +11 -0
  138. data/lib/hubspot/discovery/oauth/api/refresh_tokens_api.rb +11 -0
  139. data/lib/hubspot/discovery/oauth/api/tokens_api.rb +11 -0
  140. data/lib/hubspot/discovery/oauth/client.rb +19 -0
  141. data/lib/hubspot/discovery/webhooks/api/settings_api.rb +11 -0
  142. data/lib/hubspot/discovery/webhooks/api/subscriptions_api.rb +11 -0
  143. data/lib/hubspot/discovery/webhooks/client.rb +18 -0
  144. data/lib/hubspot/helpers/camel_case.rb +9 -0
  145. data/lib/hubspot/helpers/snake_case.rb +13 -0
  146. data/lib/hubspot/version.rb +1 -1
  147. data/lib/hubspot-api-client.rb +1 -0
  148. data/spec/discovery/automation/actions/callbacks_api_spec.rb +8 -0
  149. data/spec/discovery/automation/actions/definitions_api_spec.rb +11 -0
  150. data/spec/discovery/automation/actions/functions_api_spec.rb +13 -0
  151. data/spec/discovery/automation/actions/revisions_api_spec.rb +8 -0
  152. data/spec/discovery/base_api_client_spec.rb +69 -0
  153. data/spec/discovery/base_module_client_spec.rb +28 -0
  154. data/spec/discovery/client_spec.rb +16 -0
  155. data/spec/discovery/cms/audit-logs/audit_logs_api_spec.rb +7 -0
  156. data/spec/discovery/cms/blogs/authors/author_api_spec.rb +15 -0
  157. data/spec/discovery/cms/blogs/blog-posts/blog_post_api_spec.rb +25 -0
  158. data/spec/discovery/cms/blogs/tags/tag_api_spec.rb +15 -0
  159. data/spec/discovery/cms/domains/domains_api_spec.rb +8 -0
  160. data/spec/discovery/cms/hubdb/rows_api_spec.rb +15 -0
  161. data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +13 -0
  162. data/spec/discovery/cms/hubdb/tables_api_spec.rb +20 -0
  163. data/spec/discovery/cms/performance/public_performance_api_spec.rb +8 -0
  164. data/spec/discovery/cms/site-search/public_api_spec.rb +8 -0
  165. data/spec/discovery/cms/url-redirects/redirects_api_spec.rb +11 -0
  166. data/spec/discovery/communication_preferences/definition_api_spec.rb +7 -0
  167. data/spec/discovery/communication_preferences/status_api_spec.rb +9 -0
  168. data/spec/discovery/conversations/visitor-identification/generate_api_spec.rb +7 -0
  169. data/spec/discovery/crm/associations/batch_api_spec.rb +9 -0
  170. data/spec/discovery/crm/associations/types_api_spec.rb +7 -0
  171. data/spec/discovery/crm/companies/associations_api_spec.rb +9 -0
  172. data/spec/discovery/crm/companies/basic_api_spec.rb +11 -0
  173. data/spec/discovery/crm/companies/batch_api_spec.rb +10 -0
  174. data/spec/discovery/crm/companies/search_api_spec.rb +7 -0
  175. data/spec/discovery/crm/contacts/associations_api_spec.rb +9 -0
  176. data/spec/discovery/crm/contacts/basic_api_spec.rb +11 -0
  177. data/spec/discovery/crm/contacts/batch_api_spec.rb +10 -0
  178. data/spec/discovery/crm/contacts/gdpr_api_spec.rb +8 -0
  179. data/spec/discovery/crm/contacts/search_api_spec.rb +7 -0
  180. data/spec/discovery/crm/deals/associations_api_spec.rb +9 -0
  181. data/spec/discovery/crm/deals/basic_api_spec.rb +11 -0
  182. data/spec/discovery/crm/deals/batch_api_spec.rb +10 -0
  183. data/spec/discovery/crm/deals/search_api_spec.rb +7 -0
  184. data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
  185. data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +9 -0
  186. data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +8 -0
  187. data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +8 -0
  188. data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
  189. data/spec/discovery/crm/extensions/calling/settings_api_spec.rb +10 -0
  190. data/spec/discovery/crm/extensions/cards/cards_api_spec.rb +11 -0
  191. data/spec/discovery/crm/extensions/cards/sample_response_api_spec.rb +7 -0
  192. data/spec/discovery/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
  193. data/spec/discovery/crm/imports/core_api_spec.rb +10 -0
  194. data/spec/discovery/crm/imports/public_imports_api_spec.rb +7 -0
  195. data/spec/discovery/crm/line_items/associations_api_spec.rb +9 -0
  196. data/spec/discovery/crm/line_items/basic_api_spec.rb +11 -0
  197. data/spec/discovery/crm/line_items/batch_api_spec.rb +10 -0
  198. data/spec/discovery/crm/line_items/search_api_spec.rb +7 -0
  199. data/spec/discovery/crm/objects/associations_api_spec.rb +9 -0
  200. data/spec/discovery/crm/objects/basic_api_spec.rb +12 -0
  201. data/spec/discovery/crm/objects/batch_api_spec.rb +10 -0
  202. data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
  203. data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
  204. data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
  205. data/spec/discovery/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
  206. data/spec/discovery/crm/objects/gdpr_api_spec.rb +8 -0
  207. data/spec/discovery/crm/objects/search_api_spec.rb +7 -0
  208. data/spec/discovery/crm/owners/owners_api_spec.rb +8 -0
  209. data/spec/discovery/crm/pipelines/pipeline_stages_api_spec.rb +12 -0
  210. data/spec/discovery/crm/pipelines/pipelines_api_spec.rb +12 -0
  211. data/spec/discovery/crm/products/associations_api_spec.rb +9 -0
  212. data/spec/discovery/crm/products/basic_api_spec.rb +11 -0
  213. data/spec/discovery/crm/products/batch_api_spec.rb +10 -0
  214. data/spec/discovery/crm/products/search_api_spec.rb +7 -0
  215. data/spec/discovery/crm/properties/batch_api_spec.rb +9 -0
  216. data/spec/discovery/crm/properties/core_api_spec.rb +11 -0
  217. data/spec/discovery/crm/properties/groups_api_spec.rb +11 -0
  218. data/spec/discovery/crm/quotes/associations_api_spec.rb +7 -0
  219. data/spec/discovery/crm/quotes/basic_api_spec.rb +8 -0
  220. data/spec/discovery/crm/quotes/batch_api_spec.rb +7 -0
  221. data/spec/discovery/crm/quotes/search_api_spec.rb +7 -0
  222. data/spec/discovery/crm/schemas/core_api_spec.rb +13 -0
  223. data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +7 -0
  224. data/spec/discovery/crm/tickets/associations_api_spec.rb +9 -0
  225. data/spec/discovery/crm/tickets/basic_api_spec.rb +11 -0
  226. data/spec/discovery/crm/tickets/batch_api_spec.rb +10 -0
  227. data/spec/discovery/crm/tickets/search_api_spec.rb +7 -0
  228. data/spec/discovery/crm/timeline/events_api_spec.rb +11 -0
  229. data/spec/discovery/crm/timeline/templates_api_spec.rb +11 -0
  230. data/spec/discovery/crm/timeline/tokens_api_spec.rb +9 -0
  231. data/spec/discovery/events/events_api_spec.rb +7 -0
  232. data/spec/discovery/files/files/files_api_spec.rb +16 -0
  233. data/spec/discovery/files/files/folders_api_spec.rb +14 -0
  234. data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +11 -0
  235. data/spec/discovery/marketing/transactional/single_send_api_spec.rb +7 -0
  236. data/spec/discovery/oauth/access_tokens_api_spec.rb +7 -0
  237. data/spec/discovery/oauth/refresh_tokens_api_spec.rb +8 -0
  238. data/spec/discovery/oauth/tokens_api_spec.rb +7 -0
  239. data/spec/discovery/webhooks/settings_api_spec.rb +9 -0
  240. data/spec/discovery/webhooks/subscriptions_api_spec.rb +12 -0
  241. data/spec/features/cms/audit-logs/audit_logs_api_spec.rb +1 -1
  242. data/spec/features/cms/blogs/authors/author_api_spec.rb +9 -9
  243. data/spec/features/cms/{perfomance/public_perfomance_api_spec.rb → performance/public_performance_api_spec.rb} +0 -0
  244. data/spec/features/crm/imports/public_imports_api_spec.rb +7 -0
  245. metadata +346 -4
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.associations_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.basic_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_by_id) }
9
+ it { is_expected.to respond_to(:get_page) }
10
+ it { is_expected.to respond_to(:update) }
11
+ it { is_expected.to respond_to(:get_all) }
12
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.batch_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:read) }
9
+ it { is_expected.to respond_to(:update) }
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.associations_api }
5
+
6
+ it { is_expected.to respond_to(:get_all) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.basic_api }
5
+
6
+ it { is_expected.to respond_to(:get_by_id) }
7
+ it { is_expected.to respond_to(:get_page) }
8
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.batch_api }
5
+
6
+ it { is_expected.to respond_to(:read_batch) }
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::FeedbackSubmissions::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.feedback_submissions.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::GDPRApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.g_d_p_r_api }
5
+
6
+ it { is_expected.to respond_to(:purge_by_email) }
7
+ it { is_expected.to respond_to(:purge_by_id) }
8
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Objects::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.objects.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Owners::OwnersApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.owners.owners_api }
5
+
6
+ it { is_expected.to respond_to(:get_by_id) }
7
+ it { is_expected.to respond_to(:get_page) }
8
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Pipelines::PipelineStagesApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.pipelines.pipeline_stages_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_id) }
10
+ it { is_expected.to respond_to(:replace) }
11
+ it { is_expected.to respond_to(:update) }
12
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Pipelines::PipelinesApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.pipelines.pipelines_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_id) }
10
+ it { is_expected.to respond_to(:replace) }
11
+ it { is_expected.to respond_to(:update) }
12
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Products::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.associations_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Products::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.basic_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_by_id) }
9
+ it { is_expected.to respond_to(:get_page) }
10
+ it { is_expected.to respond_to(:update) }
11
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Products::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.batch_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:read) }
9
+ it { is_expected.to respond_to(:update) }
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Products::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.products.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Properties::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.batch_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:read) }
9
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Properties::CoreApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.core_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_name) }
10
+ it { is_expected.to respond_to(:update) }
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Properties::GroupsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.properties.groups_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_name) }
10
+ it { is_expected.to respond_to(:update) }
11
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Quotes::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.quotes.associations_api }
5
+
6
+ it { is_expected.to respond_to(:get_all) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Quotes::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.quotes.basic_api }
5
+
6
+ it { is_expected.to respond_to(:get_by_id) }
7
+ it { is_expected.to respond_to(:get_page) }
8
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Quotes::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.quotes.batch_api }
5
+
6
+ it { is_expected.to respond_to(:read) }
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Quotes::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.quotes.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Schemas::CoreApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.schemas.core_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_association) }
8
+ it { is_expected.to respond_to(:create) }
9
+ it { is_expected.to respond_to(:create_association) }
10
+ it { is_expected.to respond_to(:get_all) }
11
+ it { is_expected.to respond_to(:get_by_id) }
12
+ it { is_expected.to respond_to(:update) }
13
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Schemas::PublicObjectSchemasApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.schemas.public_object_schemas_api }
5
+
6
+ it { is_expected.to respond_to(:purge) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Tickets::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.associations_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Tickets::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.basic_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_by_id) }
9
+ it { is_expected.to respond_to(:get_page) }
10
+ it { is_expected.to respond_to(:update) }
11
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Tickets::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.batch_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:read) }
9
+ it { is_expected.to respond_to(:update) }
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Tickets::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.tickets.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Timeline::EventsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.events_api }
5
+
6
+ it { is_expected.to respond_to(:create) }
7
+ it { is_expected.to respond_to(:create_batch) }
8
+ it { is_expected.to respond_to(:get_by_id) }
9
+ it { is_expected.to respond_to(:get_detail_by_id) }
10
+ it { is_expected.to respond_to(:get_render_by_id) }
11
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Timeline::TemplatesApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.templates_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_id) }
10
+ it { is_expected.to respond_to(:update) }
11
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Timeline::TokensApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.timeline.tokens_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:update) }
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Events::EventsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').events.events_api }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Files::Files::FilesApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').files.files.files_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_gdpr) }
8
+ it { is_expected.to respond_to(:check_import) }
9
+ it { is_expected.to respond_to(:do_search) }
10
+ it { is_expected.to respond_to(:get_by_id) }
11
+ it { is_expected.to respond_to(:get_signed_url) }
12
+ it { is_expected.to respond_to(:import_from_url) }
13
+ it { is_expected.to respond_to(:replace) }
14
+ it { is_expected.to respond_to(:update_properties) }
15
+ it { is_expected.to respond_to(:upload) }
16
+ end
@@ -0,0 +1,14 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Files::Files::FoldersApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').files.files.folders_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_by_path) }
8
+ it { is_expected.to respond_to(:check_update_status) }
9
+ it { is_expected.to respond_to(:create) }
10
+ it { is_expected.to respond_to(:do_search) }
11
+ it { is_expected.to respond_to(:get_by_id) }
12
+ it { is_expected.to respond_to(:get_by_path) }
13
+ it { is_expected.to respond_to(:update_properties) }
14
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Marketing::Transactional::PublicSmtpTokensApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').marketing.transactional.public_smtp_tokens_api }
5
+
6
+ it { is_expected.to respond_to(:archive_token) }
7
+ it { is_expected.to respond_to(:get_token_by_id) }
8
+ it { is_expected.to respond_to(:get_tokens_page) }
9
+ it { is_expected.to respond_to(:create_token) }
10
+ it { is_expected.to respond_to(:reset_password) }
11
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Marketing::Transactional::SingleSendApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').marketing.transactional.single_send_api }
5
+
6
+ it { is_expected.to respond_to(:send_email) }
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::OAuth::AccessTokensApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').o_auth.access_tokens_api }
5
+
6
+ it { is_expected.to respond_to(:get_access_token) }
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::OAuth::RefreshTokensApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').o_auth.refresh_tokens_api }
5
+
6
+ it { is_expected.to respond_to(:archive_refresh_token) }
7
+ it { is_expected.to respond_to(:get_refresh_token) }
8
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::OAuth::TokensApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').o_auth.tokens_api }
5
+
6
+ it { is_expected.to respond_to(:create_token) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Webhooks::SettingsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').webhooks.settings_api }
5
+
6
+ it { is_expected.to respond_to(:clear) }
7
+ it { is_expected.to respond_to(:configure) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Webhooks::SubscriptionsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').webhooks.subscriptions_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:create) }
8
+ it { is_expected.to respond_to(:get_all) }
9
+ it { is_expected.to respond_to(:get_by_id) }
10
+ it { is_expected.to respond_to(:update) }
11
+ it { is_expected.to respond_to(:update_batch) }
12
+ end
@@ -11,7 +11,7 @@ describe 'Hubspot::Cms::AuditLogs::AuditLogsApi' do
11
11
  let(:params) { { auth_names: 'ouath2' } }
12
12
 
13
13
  before do
14
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
14
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
15
15
  end
16
16
 
17
17
  it { is_expected.to eq params[:auth_names] }
@@ -20,7 +20,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
20
20
  let(:input_string) { 'test_input_string' }
21
21
 
22
22
  before do
23
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
23
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
24
24
  end
25
25
 
26
26
  it 'sets auth names from params' do
@@ -47,7 +47,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
47
47
  let(:object_id) { 'test_object_id' }
48
48
 
49
49
  before do
50
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
50
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
51
51
  end
52
52
 
53
53
  it 'sets auth names from params' do
@@ -74,7 +74,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
74
74
  let(:blog_author) { 'test_blog_author' }
75
75
 
76
76
  before do
77
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
77
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
78
78
  end
79
79
 
80
80
  it 'sets auth names from params' do
@@ -101,7 +101,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
101
101
  let(:blog_author) { 'test_blog_author' }
102
102
 
103
103
  before do
104
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
104
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
105
105
  end
106
106
 
107
107
  it 'sets auth names from params' do
@@ -128,7 +128,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
128
128
  let(:object_id) { 'test_object_id' }
129
129
 
130
130
  before do
131
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
131
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
132
132
  end
133
133
 
134
134
  it 'sets auth names from params' do
@@ -154,7 +154,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
154
154
  let(:params) { { auth_names: 'ouath2' } }
155
155
 
156
156
  before do
157
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
157
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
158
158
  end
159
159
 
160
160
  it { is_expected.to eq params[:auth_names] }
@@ -173,7 +173,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
173
173
  let(:input_string) { 'test_input_string' }
174
174
 
175
175
  before do
176
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
176
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
177
177
  end
178
178
 
179
179
  it 'sets auth_names from params' do
@@ -200,7 +200,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
200
200
  let(:input_json_node) { 'test_input_json_node' }
201
201
 
202
202
  before do
203
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
203
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [new_options, 200, ''] }
204
204
  end
205
205
 
206
206
  it 'sets auth_names from params' do
@@ -228,7 +228,7 @@ describe 'Hubspot::Cms::Blogs::Authors::AuthorApi' do
228
228
  let(:input_json_node) { 'test_input_json_node' }
229
229
 
230
230
  before do
231
- api.api_client.stub(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
231
+ allow(api.api_client).to receive(:call_api) { |method, local_var_path, new_options| [{ new_options: new_options, path: local_var_path }, 200, ''] }
232
232
  end
233
233
 
234
234
  it 'sets auth names from params' do
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Crm::Imports::PublicImportsApi' do
4
+ subject(:api) { Hubspot::Crm::Imports::PublicImportsApi.new }
5
+
6
+ it { is_expected.to respond_to(:get_errors) }
7
+ end