hubspot-api-client 10.0.1 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/Gemfile.lock +3 -3
  4. data/lib/hubspot/codegen/communication_preferences/api/definition_api.rb +80 -0
  5. data/lib/hubspot/codegen/communication_preferences/api/status_api.rb +214 -0
  6. data/lib/hubspot/codegen/communication_preferences/api_client.rb +404 -0
  7. data/lib/hubspot/codegen/communication_preferences/api_error.rb +59 -0
  8. data/lib/hubspot/codegen/communication_preferences/configuration.rb +254 -0
  9. data/lib/hubspot/codegen/communication_preferences/models/error.rb +290 -0
  10. data/lib/hubspot/codegen/communication_preferences/models/error_detail.rb +256 -0
  11. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb +372 -0
  12. data/lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb +231 -0
  13. data/lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb +283 -0
  14. data/lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb +339 -0
  15. data/lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb +216 -0
  16. data/lib/hubspot/version.rb +1 -1
  17. data/spec/codegen/communication_preferences/api/definition_api_spec.rb +46 -0
  18. data/spec/codegen/communication_preferences/api/status_api_spec.rb +71 -0
  19. data/spec/codegen/communication_preferences/models/error_detail_spec.rb +65 -0
  20. data/spec/codegen/communication_preferences/models/error_spec.rb +77 -0
  21. data/spec/codegen/communication_preferences/models/public_subscription_status_spec.rb +101 -0
  22. data/spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb +47 -0
  23. data/spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb +63 -0
  24. data/spec/codegen/communication_preferences/models/subscription_definition_spec.rb +95 -0
  25. data/spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb +41 -0
  26. data/spec/codegen/crm/extensions/calling/api/settings_api_spec.rb +2 -2
  27. data/spec/codegen/crm/extensions/calling/models/settings_patch_request_spec.rb +6 -0
  28. data/spec/codegen/crm/extensions/calling/models/settings_request_spec.rb +6 -0
  29. data/spec/codegen/crm/extensions/calling/models/settings_response_spec.rb +6 -0
  30. data/spec/codegen/crm/extensions/cards/api/cards_api_spec.rb +2 -2
  31. data/spec/features/communication_preferences/definition_api_spec.rb +7 -0
  32. data/spec/features/communication_preferences/status_api_spec.rb +9 -0
  33. metadata +36 -2
@@ -0,0 +1,95 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::SubscriptionDefinition
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SubscriptionDefinition' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::SubscriptionDefinition.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SubscriptionDefinition' do
31
+ it 'should create an instance of SubscriptionDefinition' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::SubscriptionDefinition)
33
+ end
34
+ end
35
+ describe 'test attribute "id"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "name"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "description"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "purpose"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "communication_method"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "is_active"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "is_default"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "is_internal"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "created_at"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "updated_at"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Subscriptions
3
+
4
+ #Subscriptions allow contacts to control what forms of communications they receive. Contacts can decide whether they want to receive communication pertaining to a specific topic, brand, or an entire HubSpot account.
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for Hubspot::CommunicationPreferences::SubscriptionDefinitionsResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'SubscriptionDefinitionsResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = Hubspot::CommunicationPreferences::SubscriptionDefinitionsResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SubscriptionDefinitionsResponse' do
31
+ it 'should create an instance of SubscriptionDefinitionsResponse' do
32
+ expect(@instance).to be_instance_of(Hubspot::CommunicationPreferences::SubscriptionDefinitionsResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "subscription_definitions"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end
@@ -48,8 +48,8 @@ describe 'SettingsApi' do
48
48
  # Configure a calling extension
49
49
  # Used to set the menu label, target iframe URL, and dimensions for your calling extension.
50
50
  # @param app_id The ID of the target app.
51
+ # @param settings_request Settings state to create with.
51
52
  # @param [Hash] opts the optional parameters
52
- # @option opts [SettingsRequest] :settings_request Settings state to create with.
53
53
  # @return [SettingsResponse]
54
54
  describe 'create test' do
55
55
  it 'should work' do
@@ -73,8 +73,8 @@ describe 'SettingsApi' do
73
73
  # Update settings
74
74
  # Updates existing calling extension settings.
75
75
  # @param app_id The ID of the target app.
76
+ # @param settings_patch_request Updated details for the settings.
76
77
  # @param [Hash] opts the optional parameters
77
- # @option opts [SettingsPatchRequest] :settings_patch_request Updated details for the settings.
78
78
  # @return [SettingsResponse]
79
79
  describe 'update test' do
80
80
  it 'should work' do
@@ -62,4 +62,10 @@ describe 'SettingsPatchRequest' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "supports_custom_objects"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  end
@@ -62,4 +62,10 @@ describe 'SettingsRequest' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "supports_custom_objects"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  end
@@ -62,6 +62,12 @@ describe 'SettingsResponse' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "supports_custom_objects"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  describe 'test attribute "created_at"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -49,8 +49,8 @@ describe 'CardsApi' do
49
49
  # Create a new card
50
50
  # Defines a new card that will become active on an account when this app is installed.
51
51
  # @param app_id The ID of the target app.
52
+ # @param card_create_request The new card definition.
52
53
  # @param [Hash] opts the optional parameters
53
- # @option opts [CardCreateRequest] :card_create_request The new card definition.
54
54
  # @return [CardResponse]
55
55
  describe 'create test' do
56
56
  it 'should work' do
@@ -88,8 +88,8 @@ describe 'CardsApi' do
88
88
  # Update a card definition with new details.
89
89
  # @param app_id The ID of the target app.
90
90
  # @param card_id The ID of the card to update.
91
+ # @param card_patch_request Card definition fields to be updated.
91
92
  # @param [Hash] opts the optional parameters
92
- # @option opts [CardPatchRequest] :card_patch_request Card definition fields to be updated.
93
93
  # @return [CardResponse]
94
94
  describe 'update test' do
95
95
  it 'should work' do
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::CommunicationPreferences::DefinitionApi' do
4
+ subject(:api) { Hubspot::CommunicationPreferences::DefinitionApi.new }
5
+
6
+ it { is_expected.to respond_to(:get_page) }
7
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Hubspot::CommunicationPreferences::StatusApi' do
4
+ subject(:api) { Hubspot::CommunicationPreferences::StatusApi.new }
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubspot-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.1
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - HubSpot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -380,6 +380,18 @@ files:
380
380
  - lib/hubspot/codegen/cms/url-redirects/models/paging.rb
381
381
  - lib/hubspot/codegen/cms/url-redirects/models/url_mapping.rb
382
382
  - lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb
383
+ - lib/hubspot/codegen/communication_preferences/api/definition_api.rb
384
+ - lib/hubspot/codegen/communication_preferences/api/status_api.rb
385
+ - lib/hubspot/codegen/communication_preferences/api_client.rb
386
+ - lib/hubspot/codegen/communication_preferences/api_error.rb
387
+ - lib/hubspot/codegen/communication_preferences/configuration.rb
388
+ - lib/hubspot/codegen/communication_preferences/models/error.rb
389
+ - lib/hubspot/codegen/communication_preferences/models/error_detail.rb
390
+ - lib/hubspot/codegen/communication_preferences/models/public_subscription_status.rb
391
+ - lib/hubspot/codegen/communication_preferences/models/public_subscription_statuses_response.rb
392
+ - lib/hubspot/codegen/communication_preferences/models/public_update_subscription_status_request.rb
393
+ - lib/hubspot/codegen/communication_preferences/models/subscription_definition.rb
394
+ - lib/hubspot/codegen/communication_preferences/models/subscription_definitions_response.rb
383
395
  - lib/hubspot/codegen/conversations/visitor-identification/api/generate_api.rb
384
396
  - lib/hubspot/codegen/conversations/visitor-identification/api_client.rb
385
397
  - lib/hubspot/codegen/conversations/visitor-identification/api_error.rb
@@ -1148,6 +1160,15 @@ files:
1148
1160
  - spec/codegen/cms/url-redirects/models/paging_spec.rb
1149
1161
  - spec/codegen/cms/url-redirects/models/url_mapping_create_request_body_spec.rb
1150
1162
  - spec/codegen/cms/url-redirects/models/url_mapping_spec.rb
1163
+ - spec/codegen/communication_preferences/api/definition_api_spec.rb
1164
+ - spec/codegen/communication_preferences/api/status_api_spec.rb
1165
+ - spec/codegen/communication_preferences/models/error_detail_spec.rb
1166
+ - spec/codegen/communication_preferences/models/error_spec.rb
1167
+ - spec/codegen/communication_preferences/models/public_subscription_status_spec.rb
1168
+ - spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb
1169
+ - spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb
1170
+ - spec/codegen/communication_preferences/models/subscription_definition_spec.rb
1171
+ - spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb
1151
1172
  - spec/codegen/conversations/visitor-identification/api/generate_api_spec.rb
1152
1173
  - spec/codegen/conversations/visitor-identification/models/error_detail_spec.rb
1153
1174
  - spec/codegen/conversations/visitor-identification/models/error_spec.rb
@@ -1706,6 +1727,8 @@ files:
1706
1727
  - spec/features/cms/perfomance/default_api_spec.rb
1707
1728
  - spec/features/cms/site-search/default_api_spec.rb
1708
1729
  - spec/features/cms/url-redirects/redirects_api_spec.rb
1730
+ - spec/features/communication_preferences/definition_api_spec.rb
1731
+ - spec/features/communication_preferences/status_api_spec.rb
1709
1732
  - spec/features/conversations/visitor-identification/generate_api_spec.rb
1710
1733
  - spec/features/crm/associations/batch_api_spec.rb
1711
1734
  - spec/features/crm/associations/types_api_spec.rb
@@ -1804,6 +1827,15 @@ test_files:
1804
1827
  - spec/codegen/oauth/models/refresh_token_info_response_spec.rb
1805
1828
  - spec/codegen/oauth/models/token_response_if_spec.rb
1806
1829
  - spec/codegen/oauth/api/default_api_spec.rb
1830
+ - spec/codegen/communication_preferences/models/error_spec.rb
1831
+ - spec/codegen/communication_preferences/models/public_subscription_statuses_response_spec.rb
1832
+ - spec/codegen/communication_preferences/models/public_subscription_status_spec.rb
1833
+ - spec/codegen/communication_preferences/models/subscription_definition_spec.rb
1834
+ - spec/codegen/communication_preferences/models/subscription_definitions_response_spec.rb
1835
+ - spec/codegen/communication_preferences/models/error_detail_spec.rb
1836
+ - spec/codegen/communication_preferences/models/public_update_subscription_status_request_spec.rb
1837
+ - spec/codegen/communication_preferences/api/status_api_spec.rb
1838
+ - spec/codegen/communication_preferences/api/definition_api_spec.rb
1807
1839
  - spec/codegen/crm/tickets/models/batch_input_simple_public_object_batch_input_spec.rb
1808
1840
  - spec/codegen/crm/tickets/models/error_spec.rb
1809
1841
  - spec/codegen/crm/tickets/models/batch_read_input_simple_public_object_id_spec.rb
@@ -2483,6 +2515,8 @@ test_files:
2483
2515
  - spec/codegen/webhooks/api/settings_api_spec.rb
2484
2516
  - spec/codegen/webhooks/api/subscriptions_api_spec.rb
2485
2517
  - spec/features/oauth/default_api_spec.rb
2518
+ - spec/features/communication_preferences/status_api_spec.rb
2519
+ - spec/features/communication_preferences/definition_api_spec.rb
2486
2520
  - spec/features/crm/tickets/search_api_spec.rb
2487
2521
  - spec/features/crm/tickets/associations_api_spec.rb
2488
2522
  - spec/features/crm/tickets/basic_api_spec.rb