tessitura_rest 0.7.1 → 0.7.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3d65ff8d71ba192a1f6e15129022a33d3486d7781b11f37885493b133b468c9
4
- data.tar.gz: 53ddf0b70e80f62767a97e4b9bc1326a0ccd6dc176c248e87fe086592706f6e1
3
+ metadata.gz: 77495e673ab54b7273f6723546a2bd7a6a2c67bc4e6c4bdcd8d9ae1ecd340d43
4
+ data.tar.gz: aa73f16e91d0d0e17ceb67b3973e60391e62ccc329155b21a7ac45273b907bff
5
5
  SHA512:
6
- metadata.gz: 19b790415df66149917c7b01dc78497ff3f1738c4cb4dd9aaed094fd192ae629e11b2d290967407c5458d5c0376c0dcf35249df0ecc0ceb2da25c144bcefe15c
7
- data.tar.gz: ceb55b8ab38524b9b5c68b4128403f55fb5f578a6d4eea029ca48940432f906aec0c0fe54eb9c1deb371c3df8c069b32dfd887e81804b34955e521b6d32205d2
6
+ metadata.gz: 2e26798761a71b1490b0f5570d1f60bb8a5f1d42cc79ac3f37caa38b6318199ec8f8396c97512ab8406fcad7afa209d038fbcc47746b7cb6ddc02af693eca2fa
7
+ data.tar.gz: b771aeb29ace0f44dc6663c4da7a0850fe0121449c84bedf5d4f8b532339e02c3bb7df2986ef68253cf408e56a872d9eb7e3bf6cc4880b4d6fab6b6ca58593c2
data/.gitignore CHANGED
@@ -8,3 +8,4 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  .env
11
+ .idea/
@@ -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
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.7.1'
2
+ VERSION = '0.7.6'
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
@@ -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)
@@ -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': user_name,
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.1
4
+ version: 0.7.6
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-06-19 00:00:00.000000000 Z
11
+ date: 2020-08-07 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
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  - !ruby/object:Gem::Version
182
183
  version: '0'
183
184
  requirements: []
184
- rubygems_version: 3.1.2
185
+ rubygems_version: 3.0.3
185
186
  signing_key:
186
187
  specification_version: 4
187
188
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).