tessitura_rest 0.7.7 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/cart.rb +21 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8663f1d3470c294f0b842dd667e0af9821cd944ede9b5eb4121edd3a880670b7
|
4
|
+
data.tar.gz: 56036d380aa39ebaa5ecb0af8409974814feea5ac1de1e0423305282d7c6392b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dce3d83bbc1680b45f7b542f95d0c7e53688c1a129a4f257b3c1090e9e2d28811349253ae1646fb32530b946199be664ce80e8bdb090f1b85343de680e8212b9
|
7
|
+
data.tar.gz: 726d05a1dea81ed5f82c35458be14b062f062c3ecf0ac97f67bf94c08a45aa7250f2266272d5bea7f7f7e6ac2a1d7cf303136ff627faa303589e625bf2987baf
|
@@ -290,4 +290,24 @@ module Cart
|
|
290
290
|
put = self.class.put(base_api_endpoint("Web/Cart/#{session_key}/CustomData/#{index}"), options)
|
291
291
|
put.success?
|
292
292
|
end
|
293
|
-
|
293
|
+
|
294
|
+
def checkout(session_key, name_on_card, credit_card_number, cvv_number, credit_card_type, expiration_month, expiration_year, is_order_authorized, order_authorization_code, order_amount, allow_under_payment, options={})
|
295
|
+
parameters =
|
296
|
+
{
|
297
|
+
"CreditCardOwner": name_on_card,
|
298
|
+
"CreditCardNumber": credit_card_number,
|
299
|
+
"CreditCardType": credit_card_type,
|
300
|
+
"CreditCardMonth": expiration_month,
|
301
|
+
"CreditCardYear": expiration_year,
|
302
|
+
"Amount": order_amount,
|
303
|
+
"AllowUnderPayment": allow_under_payment,
|
304
|
+
"CreditCardAuthenticationCode": cvv_number,
|
305
|
+
"Authorize": is_order_authorized,
|
306
|
+
"AuthorizationCode": order_authorization_code,
|
307
|
+
}
|
308
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
309
|
+
options.merge!(:body => parameters)
|
310
|
+
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
|
311
|
+
end
|
312
|
+
|
313
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tessitura_rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|