zoom_rb 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: daad98f9fbc78390d4f9f9bf0c4e1505cc9238e40af0113b5e5bcd36deea3c67
4
- data.tar.gz: 9c0351755733f9c8e728425679522ee7dc6e1003306ed76694689fe3aaa91ffe
3
+ metadata.gz: e99bc06bfde1afda39add7d423f4114e8d0d62e7d582b18e32f9878c56be99a9
4
+ data.tar.gz: ce77dd9991a10004967382a9dbc8a10e450fba32f02da7de735a3f11c535af8a
5
5
  SHA512:
6
- metadata.gz: c2b66e44b5db67db9a9caed1b063fcbec87b4d22276eed265d8f2645fbe47ef42dcd810201d21bd4ad2c1181688b104bb97be7d85dc0422dc11bf289f66e2347
7
- data.tar.gz: 610a6ed4a5dd99a4360dad225b5b93537fbd15d02c33610ebf8369aece17c17db3391b00e77132245bf194b3cf7ca66ae2a9d0b103dc1364ef9cf9e378f9981c
6
+ metadata.gz: b1131215c10a10ebcfa0b1840ecd619adce953908dc5293b9dc1dc4b84b5c526ec40ac5826447c8dae4609d6abaec573b0bc29eb2730efed26c07c5082361e38
7
+ data.tar.gz: e79fca64061d0394b9b1bb082300cb14da883a10ff436b8926b2bdaa441cb8ac4900d7772ad587fdde68cc93e5aef0fcd7a28cc5aa125708fd6628ddfe41efc6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zoom_rb (1.1.5)
4
+ zoom_rb (1.1.6)
5
5
  httparty (>= 0.13)
6
6
  json (>= 1.8)
7
7
  jwt
@@ -35,15 +35,24 @@ module Zoom
35
35
  put 'meeting_update_status', '/meetings/:meeting_id/status',
36
36
  permit: :action
37
37
 
38
+ # Update registrant's status
39
+ put 'meeting_registrants_status_update', '/meetings/:meeting_id/registrants/status',
40
+ require: :action,
41
+ permit: [ :occurrence_id, registrants: [] ]
42
+
38
43
  # Register for a meeting.
39
44
  post 'meeting_add_registrant', '/meetings/:meeting_id/registrants',
40
45
  require: %i[email first_name],
41
46
  permit: %i[
42
47
  last_name address city country zip state phone industry org job_title
43
48
  purchasing_time_frame role_in_purchase_process no_of_employees comments custom_questions
44
- language occurrence_ids
49
+ language occurrence_ids auto_approve
45
50
  ]
46
51
 
52
+ # Register up to 30 registrants at once for a meeting that requires registration.
53
+ post 'batch_registrants', '/meetings/:meeting_id/batch_registrants',
54
+ permit: %i[registrants auto_approve registrants_confirmation_email]
55
+
47
56
  # Register for a meeting.
48
57
  patch 'meeting_registrant_questions', '/meeting/:meeting_id/registrants/questions'
49
58
 
@@ -27,7 +27,10 @@ module Zoom
27
27
  question_and_answer: %i[
28
28
  allow_anonymous_questions answer_questions attendees_can_comment
29
29
  attendees_can_upvote enable
30
- ]
30
+ ],
31
+ attendees_and_panelists_reminder_email_notification: %i[enable type],
32
+ follow_up_absentees_email_notification: %i[enable type],
33
+ follow_up_attendees_email_notification: %i[enable type]
31
34
  }
32
35
  ].freeze
33
36
 
data/lib/zoom/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Zoom
4
- VERSION = '1.1.5'
4
+ VERSION = '1.1.6'
5
5
  end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe Zoom::Actions::Webinar do
6
+ let(:zc) { zoom_client }
7
+ let(:args) { { meeting_id: 1, action: 'approve' } }
8
+
9
+ describe '#webinar_registrants_status_update' do
10
+ context 'with a valid response' do
11
+ before :each do
12
+ stub_request(
13
+ :put,
14
+ zoom_url("/meetingss/#{args[:meeting_id]}/registrants/status")
15
+ ).to_return(status: 204)
16
+ end
17
+
18
+ it "requires a 'meeting_id' argument" do
19
+ expect { zc.meeting_registrants_status_update(filter_key(args, :meeting_id)) }.to raise_error(Zoom::ParameterMissing, [:meeting_id].to_s)
20
+ end
21
+
22
+ it "requires a 'action' argument" do
23
+ expect { zc.meeting_registrants_status_update(filter_key(args, :action)) }.to raise_error(Zoom::ParameterMissing, [:action].to_s)
24
+ end
25
+ end
26
+
27
+ context 'with a 4xx response' do
28
+ before :each do
29
+ stub_request(
30
+ :put,
31
+ zoom_url("/meetings/#{args[:meeting_id]}/registrants/status")
32
+ ).to_return(status: 404,
33
+ body: json_response('error', 'validation'),
34
+ headers: { 'Content-Type' => 'application/json' })
35
+ end
36
+
37
+ it 'raises Zoom::Error exception' do
38
+ expect { zc.meeting_registrants_status_update(args) }.to raise_error(Zoom::Error)
39
+ end
40
+ end
41
+ end
42
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zoom_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Boe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -373,6 +373,7 @@ files:
373
373
  - spec/lib/zoom/actions/meeting/invitation_spec.rb
374
374
  - spec/lib/zoom/actions/meeting/list_spec.rb
375
375
  - spec/lib/zoom/actions/meeting/livestream_spec.rb
376
+ - spec/lib/zoom/actions/meeting/registrants/update_status_spec.rb
376
377
  - spec/lib/zoom/actions/meeting/update_spec.rb
377
378
  - spec/lib/zoom/actions/recording/file_delete_spec.rb
378
379
  - spec/lib/zoom/actions/recording/get_spec.rb
@@ -663,6 +664,7 @@ test_files:
663
664
  - spec/lib/zoom/actions/meeting/invitation_spec.rb
664
665
  - spec/lib/zoom/actions/meeting/list_spec.rb
665
666
  - spec/lib/zoom/actions/meeting/livestream_spec.rb
667
+ - spec/lib/zoom/actions/meeting/registrants/update_status_spec.rb
666
668
  - spec/lib/zoom/actions/meeting/update_spec.rb
667
669
  - spec/lib/zoom/actions/recording/file_delete_spec.rb
668
670
  - spec/lib/zoom/actions/recording/get_spec.rb