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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62d919536842789f8e67155a96ce898160f0a064750ac308b9bc41170a5605a0
4
- data.tar.gz: 6d118cf4aeddbbb7f1d6fb55bfe57c3568194bb7d67643e30abb05cb9c06d380
3
+ metadata.gz: a59c9a5ac124cb43252ca885779b58d0e87e0ad755822480edd8f8a3b4ca6723
4
+ data.tar.gz: 5a4dc508435b84255c95f4e6c57c3e8732806262dabc683a057516627614cec0
5
5
  SHA512:
6
- metadata.gz: b27d101b0eceb2bfeef94aa39a74738bcafbd4d302cd4a845da3bcae955f1c5d8233c9d082351a1cb8c7db39cefb05f04bac2a572201e1296296def92ddda8f1
7
- data.tar.gz: 6a292515c6497f1e577f9ebcb04efeeeaf2939aa2da47c747804fd2c0f3322e9be0d28f8a6a52641d33b041ed7313c2d5090ccf8fd59592480ed5ea18f3a7a3e
6
+ metadata.gz: eaed9aca5f53e5fcf891ec5a1af9c4555885fd99164e78d9234542b1ddf747a611bdeb2d4912de295e87870b6369119358353d186e2eb399048fd990e877293e
7
+ data.tar.gz: 38d3b6d2aa26ef2eece7395d0f84507835b8201b95a6f117b332302f67ff4ba915971683835d4e8da51cec6d48924e99ee5055f7e79e1f90d2484201bdb293e6
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '3.3.13'
2
+ VERSION = '3.3.14'
3
3
  end
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.13
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-04-03 00:00:00.000000000 Z
11
+ date: 2020-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty