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 +4 -4
- data/README.md +2 -2
- data/lib/tessitura_rest.rb +1 -0
- data/lib/tessitura_rest/finance/appeals.rb +7 -0
- data/lib/tessitura_rest/txn/package.rb +6 -0
- data/lib/tessitura_rest/txn/performance_extension.rb +2 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/login.rb +8 -2
- data/lib/tessitura_rest/web/session.rb +6 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e59b420a3c2259ad858f79c7224a4309892fdc63e23599c7f5f7d0b376629a
|
4
|
+
data.tar.gz: c8d812b49493cccca8d46a2178b5467baa45f9a20da7de043bd026b8ce656bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
*
|
47
|
-
*
|
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
|
data/lib/tessitura_rest.rb
CHANGED
@@ -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}§ionIds=#{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}§ionIds=#{section_id}"), options)
|
35
35
|
JSON.parse(response.body)
|
36
36
|
end
|
37
37
|
|
@@ -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
|
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
|
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.
|
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-
|
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
|