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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fc4db03b2920e41b54a143307608ba1085ed85b
4
- data.tar.gz: 71bf445fa52729e89d692752f8162c91f520287f
3
+ metadata.gz: 5c0bf7726692ac2cb29cb6fe77559b339e58a7d4
4
+ data.tar.gz: 07ea75a3c290ed7f4f1a97c9723836f36f43f2f0
5
5
  SHA512:
6
- metadata.gz: 60140ee3dbc228d21a765ee551578276f4719f8d25232daad98bb02b7c38f06099eeaf02b980297ffe04633de444ddafdf4dfc8b80ced6773119971bcb0dc6d8
7
- data.tar.gz: cfb6ccc1816a762fa6f85fe252ab8079d94cf515423be785bc23c7528ac74990ad73afa72f70c48bf8f1a085a07a3bbeb639226e63f92c1130c1393924596db6
6
+ metadata.gz: a8125abc1ab474445661befa9008e0cab9bbee5b5f1a6ffdadba1ddc11eff389d7e32b8979669ce9756c61feb49d353554af6d2f9fe0e8688cd2e60dbf3eb614
7
+ data.tar.gz: 50df761c1b57cd4ef28a29228334dd6bf18023a2af2e376f0969d978a61af3408124006d8e083772792df6f8036ee3be45bc0ee6ae1d0f57b8b88b533706a47f
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
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.8
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-22 00:00:00.000000000 Z
11
+ date: 2016-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty