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 +4 -4
- data/lib/booker/business_rest.rb +13 -0
- data/lib/booker/models/notification_settings.rb +12 -0
- data/lib/booker/version.rb +1 -1
- data/lib/booker_ruby.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dba6cec71b2f2faea8ae1e03deaf657889e327cf
|
4
|
+
data.tar.gz: 16915368f4fa0f0cb5cc657a893468f74f6fb210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ef999a33fa00fb5be313373643e285545a995a4cb3e4b2e5645b6eb626eacebec941c888e38194c415a41b960c21e47ecd5a82a6129834f083da1094444a1ed
|
7
|
+
data.tar.gz: 6b50448ae6deedfc864da4418c1300820e21aaebccbb98fb46a0e53b20ba20d5bc312b674ffe059f37009e8a3096a5d63f815e48ce8586382fd7a7091cefdf52
|
data/lib/booker/business_rest.rb
CHANGED
@@ -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
|
data/lib/booker/version.rb
CHANGED
data/lib/booker_ruby.rb
CHANGED
@@ -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.
|
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-
|
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
|