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,69 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::BaseApiClient' do
4
+ class Hubspot::Discovery::SomeApiClass
5
+ include Hubspot::Discovery::BaseApiClient
6
+ end
7
+
8
+ class Hubspot::SomeApiClass
9
+ def get(test_id, opts = {})
10
+ "got test_id: #{test_id}, opts: #{opts}"
11
+ end
12
+
13
+ def get_with_http_info
14
+ end
15
+
16
+ def update(test_id, simple_public_object_input, opts = {})
17
+ "updated test_id: #{test_id}, simple_public_object_input: #{simple_public_object_input}, opts: #{opts}"
18
+ end
19
+
20
+ def update_with_http_info
21
+ end
22
+ end
23
+
24
+ subject(:client) { Hubspot::Discovery::SomeApiClass.new(api_key: 'test') }
25
+ let(:api) { client.api }
26
+
27
+ it { is_expected.to respond_to(:get) }
28
+ it { is_expected.to respond_to(:update) }
29
+ it { is_expected.not_to respond_to(:get_with_http_info) }
30
+ it { is_expected.not_to respond_to(:update_with_http_info) }
31
+
32
+ describe '#get' do
33
+ subject(:get) { client.get(params) }
34
+
35
+ context 'with default params order' do
36
+ let(:params) { {test_id: 'test_id_value', limit: 10} }
37
+
38
+ it { is_expected.to eq('got test_id: test_id_value, opts: {:auth_names=>"hapikey", :limit=>10}') }
39
+ end
40
+
41
+ context 'with changed params order' do
42
+ let(:params) { {limit: 5, test_id: 'test_id_value'} }
43
+
44
+ it { is_expected.to eq('got test_id: test_id_value, opts: {:auth_names=>"hapikey", :limit=>5}') }
45
+ end
46
+ end
47
+
48
+ describe '#update' do
49
+ subject(:update) { client.update(params) }
50
+
51
+ context 'with default params order' do
52
+ let(:params) { {test_id: 'test_id_value', simple_public_object_input: 'simple_public_object_input_value', limit: 10} }
53
+
54
+ it { is_expected.to eq('updated test_id: test_id_value, simple_public_object_input: simple_public_object_input_value, opts: {:auth_names=>"hapikey", :limit=>10}') }
55
+ end
56
+
57
+ context 'with reversed params order' do
58
+ let(:params) { {limit: 5, simple_public_object_input: 'simple_public_object_input_value', test_id: 'test_id_value'} }
59
+
60
+ it { is_expected.to eq('updated test_id: test_id_value, simple_public_object_input: simple_public_object_input_value, opts: {:auth_names=>"hapikey", :limit=>5}') }
61
+ end
62
+
63
+ context 'with shuffled params order' do
64
+ let(:params) { {simple_public_object_input: 'simple_public_object_input_value', limit: 7, test_id: 'test_id_value'} }
65
+
66
+ it { is_expected.to eq('updated test_id: test_id_value, simple_public_object_input: simple_public_object_input_value, opts: {:auth_names=>"hapikey", :limit=>7}') }
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::BaseModuleClient' do
4
+ class Hubspot::Discovery::TestModuleClass
5
+ def self.api_classes
6
+ %i[
7
+ settings
8
+ subscriptions
9
+ ].freeze
10
+ end
11
+
12
+ def self.api_modules
13
+ %i[
14
+ automation
15
+ cms
16
+ ].freeze
17
+ end
18
+
19
+ include Hubspot::Discovery::BaseModuleClient
20
+ end
21
+
22
+ subject(:client) { Hubspot::Discovery::TestModuleClass.new(api_key: 'test') }
23
+
24
+ it { is_expected.to respond_to(:automation) }
25
+ it { is_expected.to respond_to(:cms) }
26
+ it { is_expected.to respond_to(:settings_api) }
27
+ it { is_expected.to respond_to(:subscriptions_api) }
28
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Client' do
4
+ subject(:client) { Hubspot::Client.new(api_key: 'test') }
5
+
6
+ it { is_expected.to respond_to(:automation) }
7
+ it { is_expected.to respond_to(:cms) }
8
+ it { is_expected.to respond_to(:communication_preferences) }
9
+ it { is_expected.to respond_to(:conversations) }
10
+ it { is_expected.to respond_to(:crm) }
11
+ it { is_expected.to respond_to(:events) }
12
+ it { is_expected.to respond_to(:files) }
13
+ it { is_expected.to respond_to(:marketing) }
14
+ it { is_expected.to respond_to(:o_auth) }
15
+ it { is_expected.to respond_to(:webhooks) }
16
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::AuditLogs::AuditLogsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.audit_logs.audit_logs_api }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Blogs::Authors::AuthorApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.blogs.authors.author_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_batch) }
8
+ it { is_expected.to respond_to(:create) }
9
+ it { is_expected.to respond_to(:create_batch) }
10
+ it { is_expected.to respond_to(:get_by_id) }
11
+ it { is_expected.to respond_to(:get_page) }
12
+ it { is_expected.to respond_to(:read_batch) }
13
+ it { is_expected.to respond_to(:update) }
14
+ it { is_expected.to respond_to(:update_batch) }
15
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Blogs::BlogPosts::BlogPostApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.blogs.blog_posts.blog_post_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_batch) }
8
+ it { is_expected.to respond_to(:clone) }
9
+ it { is_expected.to respond_to(:create) }
10
+ it { is_expected.to respond_to(:create_batch) }
11
+ it { is_expected.to respond_to(:get_by_id) }
12
+ it { is_expected.to respond_to(:get_draft_by_id) }
13
+ it { is_expected.to respond_to(:get_page) }
14
+ it { is_expected.to respond_to(:get_previous_version) }
15
+ it { is_expected.to respond_to(:get_previous_versions) }
16
+ it { is_expected.to respond_to(:push_live) }
17
+ it { is_expected.to respond_to(:read_batch) }
18
+ it { is_expected.to respond_to(:reset_draft) }
19
+ it { is_expected.to respond_to(:restore_previous_version) }
20
+ it { is_expected.to respond_to(:restore_previous_version_to_draft) }
21
+ it { is_expected.to respond_to(:schedule) }
22
+ it { is_expected.to respond_to(:update) }
23
+ it { is_expected.to respond_to(:update_batch) }
24
+ it { is_expected.to respond_to(:update_draft) }
25
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Blogs::Tags::TagApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.blogs.tags.tag_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:archive_batch) }
8
+ it { is_expected.to respond_to(:create) }
9
+ it { is_expected.to respond_to(:create_batch) }
10
+ it { is_expected.to respond_to(:get_by_id) }
11
+ it { is_expected.to respond_to(:get_page) }
12
+ it { is_expected.to respond_to(:read_batch) }
13
+ it { is_expected.to respond_to(:update) }
14
+ it { is_expected.to respond_to(:update_batch) }
15
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Domains::DomainsApi' do
4
+ subject(:domains_api) { Hubspot::Client.new(api_key: 'test').cms.domains.domains_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,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Hubdb::RowsApi' do
4
+ subject(:rows_api) { Hubspot::Client.new(api_key: 'test').cms.hubdb.rows_api }
5
+
6
+ it { is_expected.to respond_to(:clone_draft_table_row) }
7
+ it { is_expected.to respond_to(:create_table_row) }
8
+ it { is_expected.to respond_to(:get_draft_table_row_by_id) }
9
+ it { is_expected.to respond_to(:get_table_row) }
10
+ it { is_expected.to respond_to(:get_table_rows) }
11
+ it { is_expected.to respond_to(:purge_draft_table_row) }
12
+ it { is_expected.to respond_to(:read_draft_table_rows) }
13
+ it { is_expected.to respond_to(:replace_draft_table_row) }
14
+ it { is_expected.to respond_to(:update_draft_table_row) }
15
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Hubdb::RowsBatchApi' do
4
+ subject(:rows_batch_api) { Hubspot::Client.new(api_key: 'test').cms.hubdb.rows_batch_api }
5
+
6
+ it { is_expected.to respond_to(:batch_clone_draft_table_rows) }
7
+ it { is_expected.to respond_to(:batch_create_draft_table_rows) }
8
+ it { is_expected.to respond_to(:batch_purge_draft_table_rows) }
9
+ it { is_expected.to respond_to(:batch_read_draft_table_rows) }
10
+ it { is_expected.to respond_to(:batch_read_table_rows) }
11
+ it { is_expected.to respond_to(:batch_replace_draft_table_rows) }
12
+ it { is_expected.to respond_to(:batch_update_draft_table_rows) }
13
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Hubdb::TablesApi' do
4
+ subject(:tables_api) { Hubspot::Client.new(api_key: 'test').cms.hubdb.tables_api }
5
+
6
+ it { is_expected.to respond_to(:archive_table) }
7
+ it { is_expected.to respond_to(:clone_draft_table) }
8
+ it { is_expected.to respond_to(:create_table) }
9
+ it { is_expected.to respond_to(:export_draft_table) }
10
+ it { is_expected.to respond_to(:export_table) }
11
+ it { is_expected.to respond_to(:get_all_draft_tables) }
12
+ it { is_expected.to respond_to(:get_all_tables) }
13
+ it { is_expected.to respond_to(:get_draft_table_details_by_id) }
14
+ it { is_expected.to respond_to(:get_table_details) }
15
+ it { is_expected.to respond_to(:import_draft_table) }
16
+ it { is_expected.to respond_to(:publish_draft_table) }
17
+ it { is_expected.to respond_to(:unpublish_table) }
18
+ it { is_expected.to respond_to(:reset_draft_table) }
19
+ it { is_expected.to respond_to(:update_draft_table) }
20
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::Performance::PublicPerformanceApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.performance.public_performance_api }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ it { is_expected.to respond_to(:get_uptime) }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::SiteSearch::PublicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').cms.site_search.public_api }
5
+
6
+ it { is_expected.to respond_to(:get_by_id) }
7
+ it { is_expected.to respond_to(:search) }
8
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Cms::UrlRedirects::RedirectsApi' do
4
+ subject(:redirects_api) { Hubspot::Client.new(api_key: 'test').cms.url_redirects.redirects_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,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::CommunicationPreferences::DefinitionApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').communication_preferences.definition_api }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::CommunicationPreferences::StatusApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').communication_preferences.status_api }
5
+
6
+ it { is_expected.to respond_to(:get_email_status) }
7
+ it { is_expected.to respond_to(:subscribe) }
8
+ it { is_expected.to respond_to(:unsubscribe) }
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Conversations::VisitorIdentification::GenerateApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').conversations.visitor_identification.generate_api }
5
+
6
+ it { is_expected.to respond_to(:generate_token) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Associations::BatchApi' do
4
+ subject(:batch_api) { Hubspot::Client.new(api_key: 'test').crm.associations.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,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Associations::TypesApi' do
4
+ subject(:batch_api) { Hubspot::Client.new(api_key: 'test').crm.associations.types_api }
5
+
6
+ it { is_expected.to respond_to(:get_all) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Companies::AssociationsApi' do
4
+ subject(:associations_api) { Hubspot::Client.new(api_key: 'test').crm.companies.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::Companies::BasicApi' do
4
+ subject(:basic_api) { Hubspot::Client.new(api_key: 'test').crm.companies.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::Companies::BatchApi' do
4
+ subject(:batch_api) { Hubspot::Client.new(api_key: 'test').crm.companies.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::Companies::SearchApi' do
4
+ subject(:search_api) { Hubspot::Client.new(api_key: 'test').crm.companies.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::Contacts::AssociationsApi' do
4
+ subject(:associations_api) { Hubspot::Client.new(api_key: 'test').crm.contacts.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::Contacts::BasicApi' do
4
+ subject(:basic_api) { Hubspot::Client.new(api_key: 'test').crm.contacts.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::Contacts::BatchApi' do
4
+ subject(:batch_api) { Hubspot::Client.new(api_key: 'test').crm.contacts.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,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Contacts::GDPRApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.contacts.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::Contacts::SearchApi' do
4
+ subject(:search_api) { Hubspot::Client.new(api_key: 'test').crm.contacts.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::Deals::AssociationsApi' do
4
+ subject(:associations_api) { Hubspot::Client.new(api_key: 'test').crm.deals.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::Deals::BasicApi' do
4
+ subject(:basic_api) { Hubspot::Client.new(api_key: 'test').crm.deals.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::Deals::BatchApi' do
4
+ subject(:batch_api) { Hubspot::Client.new(api_key: 'test').crm.deals.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::Deals::SearchApi' do
4
+ subject(:search_api) { Hubspot::Client.new(api_key: 'test').crm.deals.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Accounting::CallbacksApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.accounting.callbacks_api }
5
+
6
+ it { is_expected.to respond_to(:create_customer) }
7
+ it { is_expected.to respond_to(:create_exchange_rate) }
8
+ it { is_expected.to respond_to(:create_invoice) }
9
+ it { is_expected.to respond_to(:create_term) }
10
+ it { is_expected.to respond_to(:do_customer_search) }
11
+ it { is_expected.to respond_to(:do_invoice_search) }
12
+ it { is_expected.to respond_to(:do_product_search) }
13
+ it { is_expected.to respond_to(:do_tax_search) }
14
+ it { is_expected.to respond_to(:get_by_id) }
15
+ it { is_expected.to respond_to(:invoice_pdf) }
16
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Accounting::InvoiceApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.accounting.invoice_api }
5
+
6
+ it { is_expected.to respond_to(:create_payment) }
7
+ it { is_expected.to respond_to(:get_by_id) }
8
+ it { is_expected.to respond_to(:update) }
9
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Accounting::SettingsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.accounting.settings_api }
5
+
6
+ it { is_expected.to respond_to(:get_by_id) }
7
+ it { is_expected.to respond_to(:replace) }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Accounting::SyncApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.accounting.sync_api }
5
+
6
+ it { is_expected.to respond_to(:create_contact) }
7
+ it { is_expected.to respond_to(:create_product) }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Accounting::UserAccountsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.accounting.user_accounts_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:replace) }
8
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Calling::SettingsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.calling.settings_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(:update) }
10
+ end
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Cards::CardsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.cards.cards_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,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Cards::SampleResponseApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.cards.sample_response_api }
5
+
6
+ it { is_expected.to respond_to(:get_cards_sample_response) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Extensions::Videoconferencing::SettingsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.extensions.videoconferencing.settings_api }
5
+
6
+ it { is_expected.to respond_to(:archive) }
7
+ it { is_expected.to respond_to(:get_by_id) }
8
+ it { is_expected.to respond_to(:replace) }
9
+ end
@@ -0,0 +1,10 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Imports::CoreApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.imports.core_api }
5
+
6
+ it { is_expected.to respond_to(:cancel) }
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
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::Imports::PublicImportsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.imports.public_imports_api }
5
+
6
+ it { is_expected.to respond_to(:get_errors) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::Discovery::Crm::LineItems::AssociationsApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.line_items.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::LineItems::BasicApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.line_items.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::LineItems::BatchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.line_items.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::LineItems::SearchApi' do
4
+ subject(:api) { Hubspot::Client.new(api_key: 'test').crm.line_items.search_api }
5
+
6
+ it { is_expected.to respond_to(:do_search) }
7
+ end