tessitura_rest 0.6.9 → 0.7.4

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: 300869c6c776bda038b88aebba8e257bfb977f731c252f4244c9b1ba4a2221cf
4
- data.tar.gz: 7c796b5003cc545316e5a053ba651e661da0bb8194b362795dd96299df8ba406
3
+ metadata.gz: 21e59b420a3c2259ad858f79c7224a4309892fdc63e23599c7f5f7d0b376629a
4
+ data.tar.gz: c8d812b49493cccca8d46a2178b5467baa45f9a20da7de043bd026b8ce656bdd
5
5
  SHA512:
6
- metadata.gz: 03fbf0f0395fd4e67215a73af959aeee5b84e200f1017fbf8c99e27a93251071bd8dc64b70b43002b66447b9ad1e5e4ba5ae2b162483b64446fd88f28deeb0a8
7
- data.tar.gz: ea8993538f9ba8777f5acfd3904afb68c21c39cd41d00c44d54b606c158ab4929a195b64408190d447a7012054a575301e055acbd0fca8cbc24ba8396f06d50a
6
+ metadata.gz: 11c63f54d3a47b1ef68796c13e658413f36287ac3434b404ec7a4ddabb76c16b27b2d4c93b562b640873bad0d8bebc2e87cb7afdacb77b3d9a030ec0833aa746
7
+ data.tar.gz: ec9f8cedbabb6066a67ce0e11307706932c8cf9a95b8739a229cdfd95c184d733541f3de2258a6808cc4dad24e532b4acc0ae1ad62fd8282519c7a51f5e4dbf7
data/README.md CHANGED
@@ -43,8 +43,8 @@ followed by the method and arguments you would like to use.
43
43
  3. Create a .env file and set these values:
44
44
 
45
45
  * TESSITURA_URL # the url to your Test/Staging TessituraRest REST instance
46
- * USERNAME # the username to authenticate to your TessituraRest REST instance
47
- * PASSWORD # the password to authenticate to your TessituraRest REST instance
46
+ * TESSITURA_USERNAME # the username to authenticate to your TessituraRest REST instance
47
+ * TESSITURA_PASSWORD # the password to authenticate to your TessituraRest REST instance
48
48
  * WEB_CART_TEXT # the ID to the pricing rule you have setup for Cart
49
49
  * ORDER_CONFIRM_TEXT # the ID to the pricing rule you have setup for Order Confirmations
50
50
  * SESSION_KEY # an existing session key in your TessituraRest instance
@@ -10,6 +10,7 @@ class TessituraRest
10
10
  include Actions
11
11
  include Addresses
12
12
  include Attributes
13
+ include Appeals
13
14
  include BillingSchedules
14
15
  include Cart
15
16
  include Constituencies
@@ -0,0 +1,7 @@
1
+ module Appeals
2
+
3
+ def get_appeal_info (appeal_id, options={})
4
+ options.merge!(basic_auth: @auth, headers: @headers)
5
+ response = self.class.get(base_api_endpoint("Finance/Appeals/#{appeal_id}"), options)
6
+ end
7
+ end
@@ -35,4 +35,10 @@ module Package
35
35
  response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/PerformanceGroups?modeOfSaleId=#{mode_of_sale}"), options)
36
36
  JSON.parse(response.body)
37
37
  end
38
+
39
+ def get_package_seats(id, mode_of_sale, constituent_id, section_id, options={})
40
+ options.merge!(basic_auth: @auth, headers: @headers)
41
+ response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
42
+ JSON.parse(response.body)
43
+ end
38
44
  end
@@ -29,9 +29,9 @@ module PerformanceExtension
29
29
  JSON.parse(response.body)
30
30
  end
31
31
 
32
- def get_performance_seats(id, mode_of_sale, constituent_id, options={})
32
+ def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={})
33
33
  options.merge!(basic_auth: @auth, headers: @headers)
34
- response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options)
34
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
35
35
  JSON.parse(response.body)
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.6.9'
2
+ VERSION = '0.7.4'
3
3
  end
@@ -17,7 +17,7 @@ module Login
17
17
  options.merge!(basic_auth: @auth, headers: @headers)
18
18
  options.merge!(:body => parameters)
19
19
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login"), options)
20
- post.success?
20
+ post['IsLoggedIn']
21
21
  end
22
22
 
23
23
  def login_using_external(email, login_type_id, promotion, session_key, options={})
@@ -44,6 +44,12 @@ module Login
44
44
  options.merge!(basic_auth: @auth, headers: @headers)
45
45
  options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
46
46
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login/Token"), options)
47
- post.success?
47
+ post['IsLoggedIn']
48
+ end
49
+
50
+ def logout(session_key, options={})
51
+ options.merge!(basic_auth: @auth, headers: @headers)
52
+ options.merge!(:body => {}, :headers => {'Content-Type' => 'application/json'})
53
+ self.class.post(base_api_endpoint("/Web/Session/#{session_key}/Logout"), options)
48
54
  end
49
55
  end
@@ -24,6 +24,12 @@ module Session
24
24
  JSON.parse(response.body)
25
25
  end
26
26
 
27
+ def get_variables(key, options={})
28
+ options.merge!(basic_auth: @auth, headers: @headers)
29
+ response = self.class.get(base_api_endpoint("Web/Session/#{key}/Variables"), options)
30
+ JSON.parse(response.body)
31
+ end
32
+
27
33
  def set_expiration(key, timeoffset, expiration, options={})
28
34
  parameters =
29
35
  {
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.6.9
4
+ version: 0.7.4
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-05-22 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -140,6 +140,7 @@ files:
140
140
  - lib/tessitura_rest/custom/email.rb
141
141
  - lib/tessitura_rest/custom/local_procedure.rb
142
142
  - lib/tessitura_rest/diagnostics/diagnostics.rb
143
+ - lib/tessitura_rest/finance/appeals.rb
143
144
  - lib/tessitura_rest/finance/gift_certificates.rb
144
145
  - lib/tessitura_rest/reference_data/billing_schedules.rb
145
146
  - lib/tessitura_rest/reference_data/countries.rb