booker_api 0.0.26 → 0.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booker/customer_rest.rb +7 -3
- data/lib/booker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2951167eb0d71f31c1e0c7291ae9db83d45e27d7
|
4
|
+
data.tar.gz: afa5227f8145f08f5b040d3ef0d72d5463684fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1e8d30bcfa699c2a2f30eca155e1f66f1968fe0974e54e49e1ad168553575766177df6957856186625e27cbbf785a8fe8f0dd1045f0883d51224be50a398dad
|
7
|
+
data.tar.gz: 3480c32ed71ee5e717fabb1393f55bbc1d36c7d535e689d41854d1bdca1cede395646c4202b9f508a47a5b725dbbd4503d6bf1f92fa9a51200edaa35f4dbecac
|
data/lib/booker/customer_rest.rb
CHANGED
@@ -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,
|
data/lib/booker/version.rb
CHANGED