tessitura_rest 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +2 -2
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/session.rb +14 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ca9d95588d2a465168cb3c258446e2e66be7ee43b4d0b4067d033243f99c9d5
|
4
|
+
data.tar.gz: 3407dc2bff454f7612262186786f204550d6127d2386538a7458c7a09ce135ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306a28c45ed59203f4d48ac8828c879d6c018b12b211af67c9774114e9f69e24bb3f51787a961d4ababc612baff14ed5e369ee0ec6d6a35e86188a09608d98e6
|
7
|
+
data.tar.gz: 869c413f4380846ca07e9324d10a34475431884e1c8ccd1da67b203e1636e9cecfd5436916e4a9758171d10890c93957fd2bc6edb6efae844d4dfa55ba994551
|
data/.gitignore
CHANGED
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
|
+
* USERNAME # the username to authenticate to your TessituraRest REST instance
|
47
|
+
* 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
|
@@ -8,16 +8,26 @@ module Session
|
|
8
8
|
|
9
9
|
def create_session(ip, options={})
|
10
10
|
parameters =
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
{
|
12
|
+
'IpAddress': ip,
|
13
|
+
'Organization': 'Tessitura Web'
|
14
|
+
}
|
15
15
|
options.merge!(basic_auth: @auth, headers: @headers)
|
16
16
|
options.merge!(body: parameters)
|
17
17
|
response = self.class.post(base_api_endpoint('Web/Session'), options)
|
18
18
|
JSON.parse(response.body)
|
19
19
|
end
|
20
20
|
|
21
|
+
def transfer_session(session_key, new_session_key, options={})
|
22
|
+
parameters =
|
23
|
+
{
|
24
|
+
'NewSessionKey': new_session_key,
|
25
|
+
}
|
26
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
27
|
+
options.merge!(body: parameters)
|
28
|
+
self.class.post(base_api_endpoint("Web/Session/#{session_key}/Transfer"), options)
|
29
|
+
end
|
30
|
+
|
21
31
|
def get_expiration(key, options={})
|
22
32
|
options.merge!(basic_auth: @auth, headers: @headers)
|
23
33
|
response = self.class.get(base_api_endpoint("Web/Session/#{key}/Expiration"), options)
|
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.5
|
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-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
- !ruby/object:Gem::Version
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
|
-
rubygems_version: 3.
|
185
|
+
rubygems_version: 3.0.3
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Rest API Endpoint for the Tessitura Rest API (v14+).
|