booker_ruby 3.3.13 → 3.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booker/v4.1/customer.rb +7 -0
- 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: a59c9a5ac124cb43252ca885779b58d0e87e0ad755822480edd8f8a3b4ca6723
|
4
|
+
data.tar.gz: 5a4dc508435b84255c95f4e6c57c3e8732806262dabc683a057516627614cec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eaed9aca5f53e5fcf891ec5a1af9c4555885fd99164e78d9234542b1ddf747a611bdeb2d4912de295e87870b6369119358353d186e2eb399048fd990e877293e
|
7
|
+
data.tar.gz: 38d3b6d2aa26ef2eece7395d0f84507835b8201b95a6f117b332302f67ff4ba915971683835d4e8da51cec6d48924e99ee5055f7e79e1f90d2484201bdb293e6
|
data/lib/booker/v4.1/customer.rb
CHANGED
@@ -11,6 +11,7 @@ module Booker
|
|
11
11
|
create_appointment: "#{V41_APPOINTMENTS_PREFIX}/create".freeze,
|
12
12
|
create_class_appointment: "#{V41_PREFIX}/class_appointment/create".freeze,
|
13
13
|
employees: "#{V41_PREFIX}/employees".freeze,
|
14
|
+
treatment: "#{V41_PREFIX}/treatment".freeze,
|
14
15
|
treatments: "#{V41_PREFIX}/treatments".freeze,
|
15
16
|
treatments_verified_bookable_online: "#{V41_PREFIX}/treatments/online".freeze,
|
16
17
|
location: "#{V41_PREFIX}/location".freeze,
|
@@ -54,6 +55,12 @@ module Booker
|
|
54
55
|
)
|
55
56
|
end
|
56
57
|
|
58
|
+
def treatment(id:, includeEmployeeTreatment: false)
|
59
|
+
get "#{API_METHODS[:treatment]}/#{id}", build_params({
|
60
|
+
includeEmployeeTreatment: includeEmployeeTreatment
|
61
|
+
}), Booker::V4::Models::TreatmentVerifiedBookableOnline
|
62
|
+
end
|
63
|
+
|
57
64
|
def treatments(location_id:, fetch_all: true, params: {})
|
58
65
|
paginated_request(
|
59
66
|
method: :post,
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|