tessitura_rest 1.2.0.1 → 1.2.2

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: d71548d95eba6935b52f70a4d8fdc42aa63b599ce528a7a22d1af5d8e57f83b3
4
- data.tar.gz: 209cbb124e8c2a45595db46cd55151ff791fddab122aa76157a4f5795e6cecf7
3
+ metadata.gz: 0b1dcdd52caabeedde28aab63d96a6efd8faf647fe774ce5d49490435ec21f86
4
+ data.tar.gz: d480ed22e7f60cd08c334bc5bd50eaacc234a05e1b0e73b5d3c5460b899eb25d
5
5
  SHA512:
6
- metadata.gz: 7eaff6fee174cc06e2173b2ed4d725fac09f22285980b0442a2b61c25ba30e93656a2f35cdaa413e786836b3c0623c7a1bde521bdd054589f13fcf05ef6b4c14
7
- data.tar.gz: d18193b87ed5336e3242bbfa2b1b174098d4a1ae4c5675e3d223024b960363832621e6bb25184bc28957095fee8836e729cd468891f8b300a986b859d0037f1d
6
+ metadata.gz: 98518c98a18243504fff6715b4795592284a77493dd8f2892a182d5abaec196a0d13a4381db7638ba37aaa256cf37e7510fbf74d50590c01aa26b8017c02be4d
7
+ data.tar.gz: '05669b11f37b7beaa9b0b9b1fedf51e02235cff83e36d3a8d2b0e97df695bd94178e068fdb6e4cc7065e8ab8a7d000c061ff294dab1ad011c7788f7250d0ce19'
@@ -56,4 +56,12 @@ module PerformanceExtension
56
56
  response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}&sourceId=#{source}"), options)
57
57
  JSON.parse(response.body)
58
58
  end
59
+
60
+ def get_seat_holds(id, options = {})
61
+ hold_code_ids = "52, 48, 153, 516"
62
+ options.merge!(basic_auth: @auth, headers: @headers)
63
+ options.merge!(:headers => { 'Content-Type' => 'application/json' })
64
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Holds?holdCodeIds=#{hold_code_ids}"), options)
65
+ JSON.parse(response.body)
66
+ end
59
67
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.2.0.1'.freeze
2
+ VERSION = '1.2.2'.freeze
3
3
  end
@@ -296,4 +296,24 @@ module Cart
296
296
  options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
297
297
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
298
298
  end
299
+
300
+ def checkout_with_zip(session_key, name_on_card, credit_card_number, cvv_number, credit_card_type, expiration_month, expiration_year, zip_code, is_order_authorized, order_authorization_code, order_amount, allow_under_payment, options = {})
301
+ parameters =
302
+ {
303
+ 'CreditCardOwner': name_on_card,
304
+ 'CreditCardNumber': credit_card_number,
305
+ 'CreditCardType': credit_card_type,
306
+ 'CreditCardMonth': expiration_month,
307
+ 'CreditCardYear': expiration_year,
308
+ 'Amount': order_amount,
309
+ 'AllowUnderPayment': allow_under_payment,
310
+ 'CreditCardAuthenticationCode': cvv_number,
311
+ 'Authorize': is_order_authorized,
312
+ 'AuthorizationCode': order_authorization_code,
313
+ 'ZipCode': zip_code,
314
+ }
315
+ options.merge!(basic_auth: @auth, headers: @headers)
316
+ options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
317
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
318
+ end
299
319
  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: 1.2.0.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-20 00:00:00.000000000 Z
11
+ date: 2023-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler