tessitura_rest 0.7.2 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/tessitura_rest.rb +1 -0
- data/lib/tessitura_rest/finance/appeals.rb +7 -0
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/login.rb +6 -0
- data/lib/tessitura_rest/web/session.rb +31 -4
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c92b4ac1cb6689828a47145dfade0414efc73d5d24268b77c75104ab3c47311b
|
4
|
+
data.tar.gz: f44b884c3956e7d92f076b1c47ebf0cea260ba8dd6839e6f2df0a97a6f821cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4975f83d2fe5082d588b925c2b0f1e947e00a8f3aee36242d82ca74428276f84b0b8ea0313c279e501b3f441c414aaf468f4a0c45a8d8a9b431a818fd853bc
|
7
|
+
data.tar.gz: cc943048aca8ee25287d67517736738da37f53ad4766e834cca4624b5d63c7300c382a72e32c6be9dbd56a14805da180c2fa716a6d8bfc46f8a207e2cb958454
|
data/.gitignore
CHANGED
data/lib/tessitura_rest.rb
CHANGED
@@ -46,4 +46,10 @@ module Login
|
|
46
46
|
post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login/Token"), options)
|
47
47
|
post['IsLoggedIn']
|
48
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)
|
54
|
+
end
|
49
55
|
end
|
@@ -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)
|
@@ -77,6 +87,23 @@ module Session
|
|
77
87
|
self.class.post(base_api_endpoint("/Web/Session/#{key}/Login/SendCredentials"), options)
|
78
88
|
end
|
79
89
|
|
90
|
+
def update_login(key, user_name, old_password, new_password, email, new_email, options={})
|
91
|
+
parameters =
|
92
|
+
{
|
93
|
+
'LoginName': user_name,
|
94
|
+
'NewLoginName': new_email,
|
95
|
+
'Password': old_password,
|
96
|
+
'NewPassword': new_password,
|
97
|
+
'EmailAddress': email,
|
98
|
+
'NewEmailAddress': new_email,
|
99
|
+
'LoginTypeId': 1,
|
100
|
+
'PromotionCode': 0,
|
101
|
+
}
|
102
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
103
|
+
options.merge!(:body => parameters)
|
104
|
+
self.class.put(base_api_endpoint("Web/Session/#{key}/WebLogins"), options)
|
105
|
+
end
|
106
|
+
|
80
107
|
def get_shipping_methods(key, options={})
|
81
108
|
options.merge!(basic_auth: @auth, headers: @headers)
|
82
109
|
response = self.class.get(base_api_endpoint("Web/Session/#{key}/DeliveryMethods"), 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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-18 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
|
@@ -166,7 +167,7 @@ homepage: https://github.com/pgharts/tessitura
|
|
166
167
|
licenses:
|
167
168
|
- MIT
|
168
169
|
metadata: {}
|
169
|
-
post_install_message:
|
170
|
+
post_install_message:
|
170
171
|
rdoc_options: []
|
171
172
|
require_paths:
|
172
173
|
- lib
|
@@ -181,8 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
182
|
- !ruby/object:Gem::Version
|
182
183
|
version: '0'
|
183
184
|
requirements: []
|
184
|
-
rubygems_version: 3.
|
185
|
-
signing_key:
|
185
|
+
rubygems_version: 3.0.3
|
186
|
+
signing_key:
|
186
187
|
specification_version: 4
|
187
188
|
summary: Rest API Endpoint for the Tessitura Rest API (v14+).
|
188
189
|
test_files: []
|