booker_ruby 3.3.12 → 3.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booker/client.rb +3 -3
- data/lib/booker/model.rb +6 -0
- data/lib/booker/v4/models/treatment_verified_bookable_online.rb +4 -8
- data/lib/booker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d919536842789f8e67155a96ce898160f0a064750ac308b9bc41170a5605a0
|
4
|
+
data.tar.gz: 6d118cf4aeddbbb7f1d6fb55bfe57c3568194bb7d67643e30abb05cb9c06d380
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b27d101b0eceb2bfeef94aa39a74738bcafbd4d302cd4a845da3bcae955f1c5d8233c9d082351a1cb8c7db39cefb05f04bac2a572201e1296296def92ddda8f1
|
7
|
+
data.tar.gz: 6a292515c6497f1e577f9ebcb04efeeeaf2939aa2da47c747804fd2c0f3322e9be0d28f8a6a52641d33b041ed7313c2d5090ccf8fd59592480ed5ea18f3a7a3e
|
data/lib/booker/client.rb
CHANGED
@@ -313,10 +313,10 @@ module Booker
|
|
313
313
|
return parsed_response['Results'] unless parsed_response['Results'].nil?
|
314
314
|
|
315
315
|
if booker_model
|
316
|
-
|
317
|
-
return parsed_response[
|
316
|
+
response_results_key = booker_model.response_results_key
|
317
|
+
return parsed_response[response_results_key] unless parsed_response[response_results_key].nil?
|
318
318
|
|
319
|
-
pluralized =
|
319
|
+
pluralized = response_results_key.pluralize
|
320
320
|
return parsed_response[pluralized] unless parsed_response[pluralized].nil?
|
321
321
|
end
|
322
322
|
|
data/lib/booker/model.rb
CHANGED
@@ -8,9 +8,6 @@ module Booker
|
|
8
8
|
'AvailableInAdvanceDateUnitType',
|
9
9
|
'Category',
|
10
10
|
'ColorCode',
|
11
|
-
'CustomerRecordType',
|
12
|
-
'CustomerTypeID',
|
13
|
-
'CustomerTypeName',
|
14
11
|
'DateCreatedOffset',
|
15
12
|
'DateLastModifiedOffset',
|
16
13
|
'DepositOptions',
|
@@ -19,24 +16,23 @@ module Booker
|
|
19
16
|
'DoesNotRequireStaff',
|
20
17
|
'DurationType',
|
21
18
|
'EmployeeTreatments',
|
22
|
-
'FlexiblePriceIncrementType',
|
23
19
|
'ImageURL',
|
24
20
|
'IsActive',
|
25
|
-
'IsBoundingService',
|
26
21
|
'IsClass',
|
27
22
|
'IsDeleted',
|
28
|
-
'IsFlexiblePrice',
|
29
23
|
'IsForCouples',
|
30
|
-
'IsSharedService',
|
31
24
|
'MaxTreatmentDuration',
|
32
25
|
'MinTreatmentDuration',
|
33
26
|
'Name',
|
34
27
|
'Price',
|
35
28
|
'RequiresTwoTechnicians',
|
36
|
-
'SharedRoomGuestCount',
|
37
29
|
'SubCategory',
|
38
30
|
'TotalDuration',
|
39
31
|
'TreatmentDuration'
|
32
|
+
|
33
|
+
def self.response_results_key
|
34
|
+
'Treatment'
|
35
|
+
end
|
40
36
|
end
|
41
37
|
end
|
42
38
|
end
|
data/lib/booker/version.rb
CHANGED
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: 3.3.
|
4
|
+
version: 3.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|