booker_api 0.0.26 → 0.0.27

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: 2af6d1e8ac5a48dc8a04b2ec0a2f02980f5269ba
4
- data.tar.gz: fb1799f4f8ab75d3763468130bbf97cd6dd013a3
3
+ metadata.gz: 2951167eb0d71f31c1e0c7291ae9db83d45e27d7
4
+ data.tar.gz: afa5227f8145f08f5b040d3ef0d72d5463684fad
5
5
  SHA512:
6
- metadata.gz: 6654a44fd758d90038f40a59bac5b94fe2dff8ff2e62e653e09650cb98912bf85d339a63b7ce01dc0483193ad029332ac7e24002f800dcf5f0ffa73682262930
7
- data.tar.gz: 51cf4dbf3b71a38b173d62d947c87bae55ca19223cf1d4a6a7dbca25155569823cd1bebd52bbbf5cd996a99ce1f27a5b0d695abae10c2cd97d48fd4165fc572d
6
+ metadata.gz: a1e8d30bcfa699c2a2f30eca155e1f66f1968fe0974e54e49e1ad168553575766177df6957856186625e27cbbf785a8fe8f0dd1045f0883d51224be50a398dad
7
+ data.tar.gz: 3480c32ed71ee5e717fabb1393f55bbc1d36c7d535e689d41854d1bdca1cede395646c4202b9f508a47a5b725dbbd4503d6bf1f92fa9a51200edaa35f4dbecac
@@ -27,9 +27,7 @@ module Booker
27
27
  "CreditCard" => credit_card,
28
28
  "Method" => {
29
29
  "ID" => 1
30
- },
31
- "CustomPaymentMethodID" => 67922,
32
- "CustomPaymentMethodIDSpecified" => true
30
+ }
33
31
  },
34
32
  "CouponCode" => coupon_code
35
33
  },
@@ -57,6 +55,12 @@ module Booker
57
55
  }, options), Booker::Models::Appointment
58
56
  end
59
57
 
58
+ def cancel_appointment(appointment_id, options: {})
59
+ put '/appointment/cancel', build_params({
60
+ 'ID' => appointment_id
61
+ }, options)
62
+ end
63
+
60
64
  def calculate_appointment_cost(booker_location_id, appointment_id, appointment_date, appointment_treatments, coupon_code, options = {})
61
65
  post '/appointment/prebooking/totalcost', build_params({
62
66
  'LocationID' => booker_location_id,
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '0.0.26'
2
+ VERSION = '0.0.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booker_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - AbeCole