booker_ruby 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/booker/business_rest.rb +0 -5
- data/lib/booker/common_rest.rb +5 -0
- data/lib/booker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 704e1a93b0cc74fd4e44b939f2347082d6b8c07d
|
|
4
|
+
data.tar.gz: 1bd94b15d0ea4a15172a15a4362255a52e4c16b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c95d3ee60e568b9a00d2b9c372d784f28c01121c8ea7a3145ea3c36e4b8938319dbd1a3d4da8c40ee3d724ec459b6ce17c748536697081af8da914970cef6f5e
|
|
7
|
+
data.tar.gz: e7825e09c97af96a303cd36721ec2455378e14d37f3fb5e201adffb7ae54d50245065b5aa2ac551a5346af3e7b7c7d4fdb0ad8ea68e63ca06878e9abea50895c
|
data/lib/booker/business_rest.rb
CHANGED
|
@@ -10,11 +10,6 @@ module Booker
|
|
|
10
10
|
result
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
def get_location(booker_location_id:)
|
|
14
|
-
response = get("/location/#{booker_location_id}", build_params)
|
|
15
|
-
Booker::Models::Location.from_hash(response)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
13
|
def get_location_day_schedules(booker_location_id:, params: {})
|
|
19
14
|
# Booker requires fromDate and toDate for JSON API, but does not use them when getDefaultDaySchedule is true
|
|
20
15
|
# So datetime used for these fields does not matter
|
data/lib/booker/common_rest.rb
CHANGED
|
@@ -15,6 +15,11 @@ module Booker
|
|
|
15
15
|
put '/appointment/confirm', build_params('ID' => appointment_id), Booker::Models::Appointment
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
def get_location(booker_location_id:)
|
|
19
|
+
response = get("/location/#{booker_location_id}", build_params)
|
|
20
|
+
Booker::Models::Location.from_hash(response)
|
|
21
|
+
end
|
|
22
|
+
|
|
18
23
|
private
|
|
19
24
|
|
|
20
25
|
def build_params(default_params={}, overrides={}, paginated=false)
|
data/lib/booker/version.rb
CHANGED