booker_api 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/booker/business_rest.rb +9 -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: 45421053d7d3ac8f3197e0ffbcbc22efd891eb79
|
4
|
+
data.tar.gz: 234127b3fb191a1966f499fdbfdf5a1d822a3f83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad28d8348b3c60a59a0e05e3ec9eb2e97d09b94d9c354c50928afbc15791ae2e0dfb5d13eefc076b58756d43fdfaa1eff35d51f2882697d7947ecf892ac004dd
|
7
|
+
data.tar.gz: 76a3fb1fde337d4ba2a16a8f74e3e5d586dc29d0cc4dd6ddd6548a7a3d32cd07088e75550bf92ab3031c4001356c02cc7e790cd5dcbc02c4ab76ed522de6a59c
|
data/lib/booker/business_rest.rb
CHANGED
@@ -123,8 +123,15 @@ module Booker
|
|
123
123
|
post "/order/#{order_id}/place_order", build_params
|
124
124
|
end
|
125
125
|
|
126
|
-
def take_deposit(order_id)
|
127
|
-
post "/order/#{order_id}/deposit", build_params(
|
126
|
+
def take_deposit(order_id, credit_card)
|
127
|
+
post "/order/#{order_id}/deposit", build_params(
|
128
|
+
"PaymentItem" => {
|
129
|
+
"CreditCard" => credit_card,
|
130
|
+
"Method" => {
|
131
|
+
"ID" => 1
|
132
|
+
}
|
133
|
+
}
|
134
|
+
)
|
128
135
|
end
|
129
136
|
end
|
130
137
|
end
|
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.15
|
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
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|