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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +8 -2
- data/README.md +21 -0
- data/hubspot-api-client.gemspec +1 -0
- data/lib/hubspot/client.rb +51 -0
- data/lib/hubspot/discovery/automation/actions/api/callbacks_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/definitions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/functions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/api/revisions_api.rb +13 -0
- data/lib/hubspot/discovery/automation/actions/client.rb +22 -0
- data/lib/hubspot/discovery/automation/client.rb +17 -0
- data/lib/hubspot/discovery/base_api_client.rb +70 -0
- data/lib/hubspot/discovery/base_module_client.rb +55 -0
- data/lib/hubspot/discovery/cms/audit_logs/api/audit_logs_api.rb +13 -0
- data/lib/hubspot/discovery/cms/audit_logs/client.rb +19 -0
- data/lib/hubspot/discovery/cms/blogs/authors/api/author_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/authors/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/api/blog_post_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/blog_posts/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/client.rb +21 -0
- data/lib/hubspot/discovery/cms/blogs/tags/api/tag_api.rb +15 -0
- data/lib/hubspot/discovery/cms/blogs/tags/client.rb +21 -0
- data/lib/hubspot/discovery/cms/client.rb +23 -0
- data/lib/hubspot/discovery/cms/domains/api/domains_api.rb +13 -0
- data/lib/hubspot/discovery/cms/domains/client.rb +19 -0
- data/lib/hubspot/discovery/cms/hubdb/api/rows_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/api/rows_batch_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/api/tables_api.rb +13 -0
- data/lib/hubspot/discovery/cms/hubdb/client.rb +21 -0
- data/lib/hubspot/discovery/cms/performance/api/public_performance_api.rb +13 -0
- data/lib/hubspot/discovery/cms/performance/client.rb +19 -0
- data/lib/hubspot/discovery/cms/site_search/api/public_api.rb +13 -0
- data/lib/hubspot/discovery/cms/site_search/client.rb +19 -0
- data/lib/hubspot/discovery/cms/url_redirects/api/redirects_api.rb +13 -0
- data/lib/hubspot/discovery/cms/url_redirects/client.rb +19 -0
- data/lib/hubspot/discovery/communication_preferences/api/definition_api.rb +11 -0
- data/lib/hubspot/discovery/communication_preferences/api/status_api.rb +11 -0
- data/lib/hubspot/discovery/communication_preferences/client.rb +18 -0
- data/lib/hubspot/discovery/conversations/client.rb +17 -0
- data/lib/hubspot/discovery/conversations/visitor_identification/api/generate_api.rb +13 -0
- data/lib/hubspot/discovery/conversations/visitor_identification/client.rb +19 -0
- data/lib/hubspot/discovery/crm/associations/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/associations/api/types_api.rb +13 -0
- data/lib/hubspot/discovery/crm/associations/client.rb +20 -0
- data/lib/hubspot/discovery/crm/client.rb +32 -0
- data/lib/hubspot/discovery/crm/companies/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/companies/client.rb +22 -0
- data/lib/hubspot/discovery/crm/contacts/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/gdpr_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/contacts/client.rb +23 -0
- data/lib/hubspot/discovery/crm/deals/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/deals/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/callbacks_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/invoice_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/sync_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/api/user_accounts_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/accounting/client.rb +25 -0
- data/lib/hubspot/discovery/crm/extensions/calling/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/calling/client.rb +21 -0
- data/lib/hubspot/discovery/crm/extensions/cards/api/cards_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/cards/api/sample_response_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/cards/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/client.rb +22 -0
- data/lib/hubspot/discovery/crm/extensions/videoconferencing/api/settings_api.rb +15 -0
- data/lib/hubspot/discovery/crm/extensions/videoconferencing/client.rb +21 -0
- data/lib/hubspot/discovery/crm/imports/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/imports/api/public_imports_api.rb +13 -0
- data/lib/hubspot/discovery/crm/imports/client.rb +20 -0
- data/lib/hubspot/discovery/crm/line_items/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/line_items/client.rb +22 -0
- data/lib/hubspot/discovery/crm/objects/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/gdpr_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/objects/client.rb +29 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/associations_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/basic_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/batch_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/api/search_api.rb +15 -0
- data/lib/hubspot/discovery/crm/objects/feedback_submissions/client.rb +24 -0
- data/lib/hubspot/discovery/crm/owners/api/owners_api.rb +13 -0
- data/lib/hubspot/discovery/crm/owners/client.rb +19 -0
- data/lib/hubspot/discovery/crm/pipelines/api/pipeline_stages_api.rb +13 -0
- data/lib/hubspot/discovery/crm/pipelines/api/pipelines_api.rb +13 -0
- data/lib/hubspot/discovery/crm/pipelines/client.rb +20 -0
- data/lib/hubspot/discovery/crm/products/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/products/client.rb +22 -0
- data/lib/hubspot/discovery/crm/properties/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/api/groups_api.rb +13 -0
- data/lib/hubspot/discovery/crm/properties/client.rb +21 -0
- data/lib/hubspot/discovery/crm/quotes/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/quotes/client.rb +22 -0
- data/lib/hubspot/discovery/crm/schemas/api/core_api.rb +13 -0
- data/lib/hubspot/discovery/crm/schemas/api/public_object_schemas_api.rb +13 -0
- data/lib/hubspot/discovery/crm/schemas/client.rb +20 -0
- data/lib/hubspot/discovery/crm/tickets/api/associations_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/basic_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/batch_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/api/search_api.rb +13 -0
- data/lib/hubspot/discovery/crm/tickets/client.rb +22 -0
- data/lib/hubspot/discovery/crm/timeline/api/events_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/api/templates_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/api/tokens_api.rb +13 -0
- data/lib/hubspot/discovery/crm/timeline/client.rb +21 -0
- data/lib/hubspot/discovery/events/api/events_api.rb +11 -0
- data/lib/hubspot/discovery/events/client.rb +17 -0
- data/lib/hubspot/discovery/files/client.rb +17 -0
- data/lib/hubspot/discovery/files/files/api/files_api.rb +13 -0
- data/lib/hubspot/discovery/files/files/api/folders_api.rb +13 -0
- data/lib/hubspot/discovery/files/files/client.rb +20 -0
- data/lib/hubspot/discovery/marketing/client.rb +17 -0
- data/lib/hubspot/discovery/marketing/transactional/api/public_smtp_tokens_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/transactional/api/single_send_api.rb +13 -0
- data/lib/hubspot/discovery/marketing/transactional/client.rb +20 -0
- data/lib/hubspot/discovery/oauth/api/access_tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/api/refresh_tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/api/tokens_api.rb +11 -0
- data/lib/hubspot/discovery/oauth/client.rb +19 -0
- data/lib/hubspot/discovery/webhooks/api/settings_api.rb +11 -0
- data/lib/hubspot/discovery/webhooks/api/subscriptions_api.rb +11 -0
- data/lib/hubspot/discovery/webhooks/client.rb +18 -0
- data/lib/hubspot/helpers/camel_case.rb +9 -0
- data/lib/hubspot/helpers/snake_case.rb +13 -0
- data/lib/hubspot/version.rb +1 -1
- data/lib/hubspot-api-client.rb +1 -0
- data/spec/discovery/automation/actions/callbacks_api_spec.rb +8 -0
- data/spec/discovery/automation/actions/definitions_api_spec.rb +11 -0
- data/spec/discovery/automation/actions/functions_api_spec.rb +13 -0
- data/spec/discovery/automation/actions/revisions_api_spec.rb +8 -0
- data/spec/discovery/base_api_client_spec.rb +69 -0
- data/spec/discovery/base_module_client_spec.rb +28 -0
- data/spec/discovery/client_spec.rb +16 -0
- data/spec/discovery/cms/audit-logs/audit_logs_api_spec.rb +7 -0
- data/spec/discovery/cms/blogs/authors/author_api_spec.rb +15 -0
- data/spec/discovery/cms/blogs/blog-posts/blog_post_api_spec.rb +25 -0
- data/spec/discovery/cms/blogs/tags/tag_api_spec.rb +15 -0
- data/spec/discovery/cms/domains/domains_api_spec.rb +8 -0
- data/spec/discovery/cms/hubdb/rows_api_spec.rb +15 -0
- data/spec/discovery/cms/hubdb/rows_batch_api_spec.rb +13 -0
- data/spec/discovery/cms/hubdb/tables_api_spec.rb +20 -0
- data/spec/discovery/cms/performance/public_performance_api_spec.rb +8 -0
- data/spec/discovery/cms/site-search/public_api_spec.rb +8 -0
- data/spec/discovery/cms/url-redirects/redirects_api_spec.rb +11 -0
- data/spec/discovery/communication_preferences/definition_api_spec.rb +7 -0
- data/spec/discovery/communication_preferences/status_api_spec.rb +9 -0
- data/spec/discovery/conversations/visitor-identification/generate_api_spec.rb +7 -0
- data/spec/discovery/crm/associations/batch_api_spec.rb +9 -0
- data/spec/discovery/crm/associations/types_api_spec.rb +7 -0
- data/spec/discovery/crm/companies/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/companies/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/companies/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/companies/search_api_spec.rb +7 -0
- data/spec/discovery/crm/contacts/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/contacts/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/contacts/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/contacts/gdpr_api_spec.rb +8 -0
- data/spec/discovery/crm/contacts/search_api_spec.rb +7 -0
- data/spec/discovery/crm/deals/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/deals/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/deals/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/deals/search_api_spec.rb +7 -0
- data/spec/discovery/crm/extensions/accounting/callbacks_api_spec.rb +16 -0
- data/spec/discovery/crm/extensions/accounting/invoice_api_spec.rb +9 -0
- data/spec/discovery/crm/extensions/accounting/settings_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/accounting/sync_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/accounting/user_accounts_api_spec.rb +8 -0
- data/spec/discovery/crm/extensions/calling/settings_api_spec.rb +10 -0
- data/spec/discovery/crm/extensions/cards/cards_api_spec.rb +11 -0
- data/spec/discovery/crm/extensions/cards/sample_response_api_spec.rb +7 -0
- data/spec/discovery/crm/extensions/videoconferencing/settings_api_spec.rb +9 -0
- data/spec/discovery/crm/imports/core_api_spec.rb +10 -0
- data/spec/discovery/crm/imports/public_imports_api_spec.rb +7 -0
- data/spec/discovery/crm/line_items/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/line_items/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/line_items/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/line_items/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/objects/basic_api_spec.rb +12 -0
- data/spec/discovery/crm/objects/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/objects/feedback_submissions/associations_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/basic_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/feedback_submissions/batch_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/feedback_submissions/search_api_spec.rb +7 -0
- data/spec/discovery/crm/objects/gdpr_api_spec.rb +8 -0
- data/spec/discovery/crm/objects/search_api_spec.rb +7 -0
- data/spec/discovery/crm/owners/owners_api_spec.rb +8 -0
- data/spec/discovery/crm/pipelines/pipeline_stages_api_spec.rb +12 -0
- data/spec/discovery/crm/pipelines/pipelines_api_spec.rb +12 -0
- data/spec/discovery/crm/products/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/products/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/products/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/products/search_api_spec.rb +7 -0
- data/spec/discovery/crm/properties/batch_api_spec.rb +9 -0
- data/spec/discovery/crm/properties/core_api_spec.rb +11 -0
- data/spec/discovery/crm/properties/groups_api_spec.rb +11 -0
- data/spec/discovery/crm/quotes/associations_api_spec.rb +7 -0
- data/spec/discovery/crm/quotes/basic_api_spec.rb +8 -0
- data/spec/discovery/crm/quotes/batch_api_spec.rb +7 -0
- data/spec/discovery/crm/quotes/search_api_spec.rb +7 -0
- data/spec/discovery/crm/schemas/core_api_spec.rb +13 -0
- data/spec/discovery/crm/schemas/public_object_schemas_api_spec.rb +7 -0
- data/spec/discovery/crm/tickets/associations_api_spec.rb +9 -0
- data/spec/discovery/crm/tickets/basic_api_spec.rb +11 -0
- data/spec/discovery/crm/tickets/batch_api_spec.rb +10 -0
- data/spec/discovery/crm/tickets/search_api_spec.rb +7 -0
- data/spec/discovery/crm/timeline/events_api_spec.rb +11 -0
- data/spec/discovery/crm/timeline/templates_api_spec.rb +11 -0
- data/spec/discovery/crm/timeline/tokens_api_spec.rb +9 -0
- data/spec/discovery/events/events_api_spec.rb +7 -0
- data/spec/discovery/files/files/files_api_spec.rb +16 -0
- data/spec/discovery/files/files/folders_api_spec.rb +14 -0
- data/spec/discovery/marketing/transactional/public_smtp_tokens_api_spec.rb +11 -0
- data/spec/discovery/marketing/transactional/single_send_api_spec.rb +7 -0
- data/spec/discovery/oauth/access_tokens_api_spec.rb +7 -0
- data/spec/discovery/oauth/refresh_tokens_api_spec.rb +8 -0
- data/spec/discovery/oauth/tokens_api_spec.rb +7 -0
- data/spec/discovery/webhooks/settings_api_spec.rb +9 -0
- data/spec/discovery/webhooks/subscriptions_api_spec.rb +12 -0
- data/spec/features/cms/audit-logs/audit_logs_api_spec.rb +1 -1
- data/spec/features/cms/blogs/authors/author_api_spec.rb +9 -9
- data/spec/features/cms/{perfomance/public_perfomance_api_spec.rb → performance/public_performance_api_spec.rb} +0 -0
- data/spec/features/crm/imports/public_imports_api_spec.rb +7 -0
- 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,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,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,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,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,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,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,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
|