booker_api 0.0.8 → 0.0.9
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/customer_rest.rb +7 -2
- data/lib/booker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c0bf7726692ac2cb29cb6fe77559b339e58a7d4
|
|
4
|
+
data.tar.gz: 07ea75a3c290ed7f4f1a97c9723836f36f43f2f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8125abc1ab474445661befa9008e0cab9bbee5b5f1a6ffdadba1ddc11eff389d7e32b8979669ce9756c61feb49d353554af6d2f9fe0e8688cd2e60dbf3eb614
|
|
7
|
+
data.tar.gz: 50df761c1b57cd4ef28a29228334dd6bf18023a2af2e376f0969d978a61af3408124006d8e083772792df6f8036ee3be45bc0ee6ae1d0f57b8b88b533706a47f
|
data/lib/booker/customer_rest.rb
CHANGED
|
@@ -6,6 +6,10 @@ module Booker
|
|
|
6
6
|
get "/customer/#{customer_id}/appointments", build_params(options, custom_access_token)
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
+
def get_appointment(appointment_id, custom_access_token, options = {})
|
|
10
|
+
get "/appointment/#{appointment_id}/", build_params(options, custom_access_token)
|
|
11
|
+
end
|
|
12
|
+
|
|
9
13
|
def create_appointment(booker_location_id, start_time, treatment_ids, incomplete_appoinment_id, customer, credit_card, coupon_code = nil, notes = nil, custom_access_token = {}, options: {})
|
|
10
14
|
post "/appointment/create", build_params({
|
|
11
15
|
"LocationID" => booker_location_id,
|
|
@@ -51,12 +55,13 @@ module Booker
|
|
|
51
55
|
}, options), Booker::Models::Appointment
|
|
52
56
|
end
|
|
53
57
|
|
|
54
|
-
def calculate_appointment_cost(booker_location_id, appointment_id, appointment_date, coupon_code, options = {})
|
|
58
|
+
def calculate_appointment_cost(booker_location_id, appointment_id, appointment_date, appointment_treatments, coupon_code, options = {})
|
|
55
59
|
post '/appointment/prebooking/totalcost', build_params({
|
|
56
60
|
'LocationID' => booker_location_id,
|
|
57
61
|
'AppointmentID' => appointment_id,
|
|
58
62
|
'CouponCode' => coupon_code,
|
|
59
|
-
'AppointmentDate' => appointment_date
|
|
63
|
+
'AppointmentDate' => appointment_date,
|
|
64
|
+
'AppointmentTreatmentDTO' => []
|
|
60
65
|
}, options)
|
|
61
66
|
end
|
|
62
67
|
|
data/lib/booker/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: booker_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AbeCole
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|