tessitura_rest 0.7.4 → 0.7.5

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: 21e59b420a3c2259ad858f79c7224a4309892fdc63e23599c7f5f7d0b376629a
4
- data.tar.gz: c8d812b49493cccca8d46a2178b5467baa45f9a20da7de043bd026b8ce656bdd
3
+ metadata.gz: 6ca9d95588d2a465168cb3c258446e2e66be7ee43b4d0b4067d033243f99c9d5
4
+ data.tar.gz: 3407dc2bff454f7612262186786f204550d6127d2386538a7458c7a09ce135ad
5
5
  SHA512:
6
- metadata.gz: 11c63f54d3a47b1ef68796c13e658413f36287ac3434b404ec7a4ddabb76c16b27b2d4c93b562b640873bad0d8bebc2e87cb7afdacb77b3d9a030ec0833aa746
7
- data.tar.gz: ec9f8cedbabb6066a67ce0e11307706932c8cf9a95b8739a229cdfd95c184d733541f3de2258a6808cc4dad24e532b4acc0ae1ad62fd8282519c7a51f5e4dbf7
6
+ metadata.gz: 306a28c45ed59203f4d48ac8828c879d6c018b12b211af67c9774114e9f69e24bb3f51787a961d4ababc612baff14ed5e369ee0ec6d6a35e86188a09608d98e6
7
+ data.tar.gz: 869c413f4380846ca07e9324d10a34475431884e1c8ccd1da67b203e1636e9cecfd5436916e4a9758171d10890c93957fd2bc6edb6efae844d4dfa55ba994551
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .env
11
+ .idea/
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
- * TESSITURA_USERNAME # the username to authenticate to your TessituraRest REST instance
47
- * TESSITURA_PASSWORD # the password to authenticate to your 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
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
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.4'
2
+ VERSION = '0.7.5'
3
3
  end
@@ -8,16 +8,26 @@ module Session
8
8
 
9
9
  def create_session(ip, options={})
10
10
  parameters =
11
- {
12
- 'IpAddress': ip,
13
- 'Organization': 'Tessitura Web'
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
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-07-21 00:00:00.000000000 Z
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.1.2
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+).