Skip to content

Commit

Permalink
Update Marketins Events
Browse files Browse the repository at this point in the history
  • Loading branch information
alzheltkovskiy-hubspot committed Oct 16, 2024
1 parent c9f1c55 commit 8133ede
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Hubspot
module Discovery
module Marketing
module Events
class BatchApi
class ListAssociationsApi
include Hubspot::Discovery::BaseApiClient
end
end
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Hubspot
module Discovery
module Marketing
module Events
class SearchApi
class ParticipantStateApi
include Hubspot::Discovery::BaseApiClient
end
end
Expand Down
5 changes: 2 additions & 3 deletions lib/hubspot/discovery/marketing/events/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ class Client
def api_classes
%i[
attendance_subscriber_state_changes
batch
basic
marketing_events_external
search
list_associations
participant_state
settings
subscriber_state_changes
].freeze
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
describe 'Hubspot::Discovery::Marketing::Events::AttendanceSubscriberStateChangesApi' do
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.attendance_subscriber_state_changes_api }

it { is_expected.to respond_to(:create) }
it { is_expected.to respond_to(:create_by_email) }
it { is_expected.to respond_to(:record_by_contact_ids) }
it { is_expected.to respond_to(:record_by_contact_emails) }
end
10 changes: 7 additions & 3 deletions spec/discovery/marketing/events/basic_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.basic_api }

it { is_expected.to respond_to(:archive) }
it { is_expected.to respond_to(:batch_archive) }
it { is_expected.to respond_to(:batch_upsert) }
it { is_expected.to respond_to(:cancel) }
it { is_expected.to respond_to(:complete) }
it { is_expected.to respond_to(:create) }
it { is_expected.to respond_to(:do_cancel) }
it { is_expected.to respond_to(:get_by_id) }
it { is_expected.to respond_to(:replace) }
it { is_expected.to respond_to(:do_search) }
it { is_expected.to respond_to(:get_details) }
it { is_expected.to respond_to(:update) }
it { is_expected.to respond_to(:upsert) }
end
8 changes: 0 additions & 8 deletions spec/discovery/marketing/events/batch_api_spec.rb

This file was deleted.

12 changes: 12 additions & 0 deletions spec/discovery/marketing/events/list_associations_api_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require 'spec_helper'

describe 'Hubspot::Discovery::Marketing::Events::ListAssociationsApi' do
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.list_associations_api }

it { is_expected.to respond_to(:associate_by_external_account_and_event_ids) }
it { is_expected.to respond_to(:associate_by_marketing_event_id) }
it { is_expected.to respond_to(:disassociate_by_external_account_and_event_ids) }
it { is_expected.to respond_to(:disassociate_by_marketing_event_id) }
it { is_expected.to respond_to(:get_all_by_external_account_and_event_ids) }
it { is_expected.to respond_to(:get_all_by_marketing_event_id) }
end

This file was deleted.

11 changes: 11 additions & 0 deletions spec/discovery/marketing/events/participant_state_api_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
require 'spec_helper'

describe 'Hubspot::Discovery::Marketing::Events::ParticipantStateApi' do
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.participant_state_api }

it { is_expected.to respond_to(:get_participations_breakdown_by_contact_id) }
it { is_expected.to respond_to(:get_participations_breakdown_by_external_event_id) }
it { is_expected.to respond_to(:get_participations_breakdown_by_marketing_event_id) }
it { is_expected.to respond_to(:get_participations_counters_by_event_external_id) }
it { is_expected.to respond_to(:get_participations_counters_by_marketing_event_id) }
end
7 changes: 0 additions & 7 deletions spec/discovery/marketing/events/search_api_spec.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/discovery/marketing/events/settings_api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
describe 'Hubspot::Discovery::Marketing::Events::SettingsApi' do
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.settings_api }

it { is_expected.to respond_to(:create) }
it { is_expected.to respond_to(:get_all) }
it { is_expected.to respond_to(:update) }
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
describe 'Hubspot::Discovery::Marketing::Events::SubscriberStateChangesApi' do
subject(:api) { Hubspot::Client.new(access_token: 'test').marketing.events.subscriber_state_changes_api }

it { is_expected.to respond_to(:do_email_upsert_by_id) }
it { is_expected.to respond_to(:do_upsert_by_id) }
it { is_expected.to respond_to(:upsert_by_contact_email) }
it { is_expected.to respond_to(:upsert_by_contact_id) }
end

0 comments on commit 8133ede

Please sign in to comment.