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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c92b4ac1cb6689828a47145dfade0414efc73d5d24268b77c75104ab3c47311b
4
- data.tar.gz: f44b884c3956e7d92f076b1c47ebf0cea260ba8dd6839e6f2df0a97a6f821cc8
3
+ metadata.gz: 8663f1d3470c294f0b842dd667e0af9821cd944ede9b5eb4121edd3a880670b7
4
+ data.tar.gz: 56036d380aa39ebaa5ecb0af8409974814feea5ac1de1e0423305282d7c6392b
5
5
  SHA512:
6
- metadata.gz: cb4975f83d2fe5082d588b925c2b0f1e947e00a8f3aee36242d82ca74428276f84b0b8ea0313c279e501b3f441c414aaf468f4a0c45a8d8a9b431a818fd853bc
7
- data.tar.gz: cc943048aca8ee25287d67517736738da37f53ad4766e834cca4624b5d63c7300c382a72e32c6be9dbd56a14805da180c2fa716a6d8bfc46f8a207e2cb958454
6
+ metadata.gz: dce3d83bbc1680b45f7b542f95d0c7e53688c1a129a4f257b3c1090e9e2d28811349253ae1646fb32530b946199be664ce80e8bdb090f1b85343de680e8212b9
7
+ data.tar.gz: 726d05a1dea81ed5f82c35458be14b062f062c3ecf0ac97f67bf94c08a45aa7250f2266272d5bea7f7f7e6ac2a1d7cf303136ff627faa303589e625bf2987baf
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.7'
2
+ VERSION = '0.7.8'
3
3
  end
@@ -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
- end
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.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-08-18 00:00:00.000000000 Z
11
+ date: 2020-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler