booker_ruby 3.3.11 → 3.3.12

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: 458a09915eaa7ca202b050409c6c4ae2400357a24b6168e21ac7ef5c3f8b4935
4
- data.tar.gz: 6be11a143fed449165b01c679cde30fa7066ad455516d2162387e4f1b59bf19d
3
+ metadata.gz: 42ae305776aa66af588956675870c4ff366633bfc1ecd86fe89fc6f11022c4ff
4
+ data.tar.gz: a3e3ee7f7d976bc9ddaddf1523e4f728cd3454a762eab886df1de12ce3e0c0ec
5
5
  SHA512:
6
- metadata.gz: 7e6d57a24ae8e06038586f5f6acc9b344cc869a8ad79a00719860d2c196a890f548e6fb164d70465717c4b8fe1b220ff038a08a7a5c4c38f5fc2afda2d082dfe
7
- data.tar.gz: 4ccaa4b8417c90da416cb7050df2098913398106270653376cd4e952c835a2ff0ee1f8ab6f8985f9b227f23e1c629a43625506fee66d863efd51b2de2abf3b6d
6
+ metadata.gz: f69ac754ed864e78110a4ad10c4dbcc1d1f5adbe50f2e382f9f0d61f47967fbbb85e0caf71263a3a8ed148582d39b2b58faedc07ef788c689e8c96348e7b62ec
7
+ data.tar.gz: 80db458499485c3a25c9be4efaace854c8f2a966360a8634af1fa54df37ebe9552ffb989c82bb91adb2011116395dbedf842f02f64fd740d214110be26bf4a5d
@@ -12,6 +12,7 @@ module Booker
12
12
  create_class_appointment: "#{V41_PREFIX}/class_appointment/create".freeze,
13
13
  employees: "#{V41_PREFIX}/employees".freeze,
14
14
  treatments: "#{V41_PREFIX}/treatments".freeze,
15
+ treatments_verified_bookable_online: "#{V41_PREFIX}/treatments/online".freeze,
15
16
  location: "#{V41_PREFIX}/location".freeze,
16
17
  locations: "#{V41_PREFIX}/locations".freeze,
17
18
  class_availability: "#{V41_PREFIX}/availability/class".freeze
@@ -63,6 +64,16 @@ module Booker
63
64
  )
64
65
  end
65
66
 
67
+ def treatments_verified_bookable_online(location_id:, fetch_all: true, params: {})
68
+ paginated_request(
69
+ method: :post,
70
+ path: API_METHODS[:treatments_verified_bookable_online],
71
+ params: build_params({LocationID: location_id}, params, true),
72
+ model: Booker::V4::Models::TreatmentVerifiedBookableOnline,
73
+ fetch_all: fetch_all
74
+ )
75
+ end
76
+
66
77
  def location(id:)
67
78
  response = get("#{API_METHODS[:location]}/#{id}", build_params)
68
79
  Booker::V4::Models::Location.from_hash(response)
@@ -0,0 +1,7 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class AvailableInAdvanceDateUnitType < Type; end
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class DepositOption < Model
5
+ attr_accessor 'Amount', 'AmountType', 'Enabled', 'HasAmountType', 'Percentage'
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class DurationType < Type; end
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class EmployeeTreatment < Model
5
+ attr_accessor 'EmployeeID',
6
+ 'FinishTimeDuration',
7
+ 'ProcessingTimeDuration',
8
+ 'RequestedPrice',
9
+ 'TotalDuration',
10
+ 'TreatmentDuration'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,7 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class FlexiblePriceIncrementType < Type; end
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,43 @@
1
+ module Booker
2
+ module V4
3
+ module Models
4
+ class TreatmentVerifiedBookableOnline < Model
5
+ attr_accessor 'ID',
6
+ 'AllowCustomersToBookOnline',
7
+ 'AvailableInAdvance',
8
+ 'AvailableInAdvanceDateUnitType',
9
+ 'Category',
10
+ 'ColorCode',
11
+ 'CustomerRecordType',
12
+ 'CustomerTypeID',
13
+ 'CustomerTypeName',
14
+ 'DateCreatedOffset',
15
+ 'DateLastModifiedOffset',
16
+ 'DepositOptions',
17
+ 'Description',
18
+ 'DisplayName',
19
+ 'DoesNotRequireStaff',
20
+ 'DurationType',
21
+ 'EmployeeTreatments',
22
+ 'FlexiblePriceIncrementType',
23
+ 'ImageURL',
24
+ 'IsActive',
25
+ 'IsBoundingService',
26
+ 'IsClass',
27
+ 'IsDeleted',
28
+ 'IsFlexiblePrice',
29
+ 'IsForCouples',
30
+ 'IsSharedService',
31
+ 'MaxTreatmentDuration',
32
+ 'MinTreatmentDuration',
33
+ 'Name',
34
+ 'Price',
35
+ 'RequiresTwoTechnicians',
36
+ 'SharedRoomGuestCount',
37
+ 'SubCategory',
38
+ 'TotalDuration',
39
+ 'TreatmentDuration'
40
+ end
41
+ end
42
+ end
43
+ end
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '3.3.11'
2
+ VERSION = '3.3.12'
3
3
  end
data/lib/booker_ruby.rb CHANGED
@@ -19,6 +19,7 @@ require 'booker/errors'
19
19
  # Concerns
20
20
  require 'booker/concerns/date_time_concern'
21
21
  require 'booker/request_helper'
22
+ require 'booker/v4/request_helper'
22
23
 
23
24
  # Models
24
25
  require 'booker/model'
@@ -27,18 +28,20 @@ require 'booker/model'
27
28
  require 'booker/v4/models/model'
28
29
 
29
30
  # Types
30
- require 'booker/v4/request_helper'
31
31
  require 'booker/v4/models/type'
32
- require 'booker/v4/models/country'
33
- require 'booker/v4/models/status'
34
- require 'booker/v4/models/source'
32
+ require 'booker/v4/models/available_in_advance_date_unit_type'
35
33
  require 'booker/v4/models/business_type'
36
34
  require 'booker/v4/models/category'
37
- require 'booker/v4/models/sub_category'
35
+ require 'booker/v4/models/country'
38
36
  require 'booker/v4/models/customer_record_type'
37
+ require 'booker/v4/models/duration_type'
38
+ require 'booker/v4/models/flexible_price_increment_type'
39
39
  require 'booker/v4/models/gender'
40
- require 'booker/v4/models/preferred_staff_gender'
41
40
  require 'booker/v4/models/payment_method'
41
+ require 'booker/v4/models/preferred_staff_gender'
42
+ require 'booker/v4/models/source'
43
+ require 'booker/v4/models/status'
44
+ require 'booker/v4/models/sub_category'
42
45
 
43
46
  # Addresses
44
47
  require 'booker/v4/models/address'
@@ -70,22 +73,25 @@ require 'booker/v4/models/teacher_2'
70
73
  require 'booker/v4/models/time_zone'
71
74
  require 'booker/v4/models/appointment'
72
75
  require 'booker/v4/models/appointment_treatment'
73
- require 'booker/v4/models/dynamic_price'
74
- require 'booker/v4/models/room'
75
- require 'booker/v4/models/order'
76
- require 'booker/v4/models/treatment'
77
- require 'booker/v4/models/spa_employee_availability_search_item'
78
76
  require 'booker/v4/models/available_time'
79
77
  require 'booker/v4/models/class_instance'
80
- require 'booker/v4/models/online_booking_settings'
81
- require 'booker/v4/models/user'
82
- require 'booker/v4/models/location_day_schedule'
83
- require 'booker/v4/models/itinerary_time_slots_list'
78
+ require 'booker/v4/models/deposit_option'
79
+ require 'booker/v4/models/dynamic_price'
80
+ require 'booker/v4/models/employee_treatment'
81
+ require 'booker/v4/models/feature_settings'
84
82
  require 'booker/v4/models/itinerary_time_slot'
85
- require 'booker/v4/models/treatment_time_slot'
83
+ require 'booker/v4/models/itinerary_time_slots_list'
84
+ require 'booker/v4/models/location_day_schedule'
86
85
  require 'booker/v4/models/multi_service_availability_result'
87
86
  require 'booker/v4/models/notification_settings'
88
- require 'booker/v4/models/feature_settings'
87
+ require 'booker/v4/models/online_booking_settings'
88
+ require 'booker/v4/models/order'
89
+ require 'booker/v4/models/room'
90
+ require 'booker/v4/models/spa_employee_availability_search_item'
91
+ require 'booker/v4/models/treatment'
92
+ require 'booker/v4/models/treatment_time_slot'
93
+ require 'booker/v4/models/treatment_verified_bookable_online'
94
+ require 'booker/v4/models/user'
89
95
 
90
96
  # V5 Models
91
97
  require 'booker/v5/models/model'
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.11
4
+ version: 3.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -163,6 +163,7 @@ files:
163
163
  - lib/booker/v4/models/address.rb
164
164
  - lib/booker/v4/models/appointment.rb
165
165
  - lib/booker/v4/models/appointment_treatment.rb
166
+ - lib/booker/v4/models/available_in_advance_date_unit_type.rb
166
167
  - lib/booker/v4/models/available_time.rb
167
168
  - lib/booker/v4/models/business_type.rb
168
169
  - lib/booker/v4/models/category.rb
@@ -172,11 +173,15 @@ files:
172
173
  - lib/booker/v4/models/customer.rb
173
174
  - lib/booker/v4/models/customer_2.rb
174
175
  - lib/booker/v4/models/customer_record_type.rb
176
+ - lib/booker/v4/models/deposit_option.rb
175
177
  - lib/booker/v4/models/discount.rb
178
+ - lib/booker/v4/models/duration_type.rb
176
179
  - lib/booker/v4/models/dynamic_price.rb
177
180
  - lib/booker/v4/models/employee.rb
181
+ - lib/booker/v4/models/employee_treatment.rb
178
182
  - lib/booker/v4/models/feature_settings.rb
179
183
  - lib/booker/v4/models/final_total.rb
184
+ - lib/booker/v4/models/flexible_price_increment_type.rb
180
185
  - lib/booker/v4/models/gender.rb
181
186
  - lib/booker/v4/models/itinerary_time_slot.rb
182
187
  - lib/booker/v4/models/itinerary_time_slots_list.rb
@@ -205,6 +210,7 @@ files:
205
210
  - lib/booker/v4/models/time_zone.rb
206
211
  - lib/booker/v4/models/treatment.rb
207
212
  - lib/booker/v4/models/treatment_time_slot.rb
213
+ - lib/booker/v4/models/treatment_verified_bookable_online.rb
208
214
  - lib/booker/v4/models/type.rb
209
215
  - lib/booker/v4/models/user.rb
210
216
  - lib/booker/v4/request_helper.rb