booker_ruby 1.8.2 → 1.9.0

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
  SHA1:
3
- metadata.gz: b87fef997d139ba93a730c4d6cb2d8958316d233
4
- data.tar.gz: 5f2457eeb14aca8ed0d260690aaa0331b56db506
3
+ metadata.gz: dba6cec71b2f2faea8ae1e03deaf657889e327cf
4
+ data.tar.gz: 16915368f4fa0f0cb5cc657a893468f74f6fb210
5
5
  SHA512:
6
- metadata.gz: 7bc6460b6adc7f22525dc39915127c8d044ebb99859f42284bc0f51cce5524ca5b83c2a6da25c9eced8a47a1e2e2678047969da0d0dd0fa6bc9267b2506e5710
7
- data.tar.gz: 9604fc0de4482c71c5bcd6fd9353dd4eba1cf48cff6c68e4ef177abcaa0c8bb4ec35f3ec9ab0a6af33cd552f23e75d3189e7c367fe540aa58d8f85c0495db219
6
+ metadata.gz: 2ef999a33fa00fb5be313373643e285545a995a4cb3e4b2e5645b6eb626eacebec941c888e38194c415a41b960c21e47ecd5a82a6129834f083da1094444a1ed
7
+ data.tar.gz: 6b50448ae6deedfc864da4418c1300820e21aaebccbb98fb46a0e53b20ba20d5bc312b674ffe059f37009e8a3096a5d63f815e48ce8586382fd7a7091cefdf52
@@ -95,5 +95,18 @@ module Booker
95
95
  'Name' => name
96
96
  }, params))
97
97
  end
98
+
99
+ def get_location_notification_settings(booker_location_id:)
100
+ response = get "/location/#{booker_location_id}/notification_settings", build_params
101
+ Booker::Models::NotificationSettings.from_hash(response['NotificationSettings'])
102
+ end
103
+
104
+ def update_location_notification_settings(booker_location_id:, send_appointment_reminders:)
105
+ put "/location/#{booker_location_id}/notification_settings", build_params({
106
+ NotificationSettings: {
107
+ SendAppointmentReminders: send_appointment_reminders
108
+ }
109
+ })
110
+ end
98
111
  end
99
112
  end
@@ -0,0 +1,12 @@
1
+ module Booker
2
+ module Models
3
+ class NotificationSettings < Model
4
+ attr_accessor 'NotificationsEmail',
5
+ 'NotifyAdminOnAppointmentOtherEvent',
6
+ 'SendAppointmentReminders',
7
+ 'SendConfirmationAfterBooking',
8
+ 'SendNoticeHoursBeforeAppointment',
9
+ 'NotifyServiceProviderOnAppointmentOtherEvent'
10
+ end
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '1.8.2'
2
+ VERSION = '1.9.0'
3
3
  end
@@ -74,6 +74,7 @@ require 'booker/models/itinerary_time_slots_list'
74
74
  require 'booker/models/itinerary_time_slot'
75
75
  require 'booker/models/treatment_time_slot'
76
76
  require 'booker/models/multi_service_availability_result'
77
+ require 'booker/models/notification_settings'
77
78
 
78
79
  # Base Client
79
80
  require 'booker/client'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booker_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-26 00:00:00.000000000 Z
11
+ date: 2016-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -164,6 +164,7 @@ files:
164
164
  - lib/booker/models/location_day_schedule.rb
165
165
  - lib/booker/models/model.rb
166
166
  - lib/booker/models/multi_service_availability_result.rb
167
+ - lib/booker/models/notification_settings.rb
167
168
  - lib/booker/models/online_booking_settings.rb
168
169
  - lib/booker/models/original_price.rb
169
170
  - lib/booker/models/payment_method.rb