tessitura_rest 0.8.6.9 → 0.9.1

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: 2305e0f6f712a2d74604c9bcf97e64ffcc60140b85990e080d6f6ba133ccf982
4
- data.tar.gz: 7eda5a3768ef08c916a8c3d436d75c58eb60a461835baa7fae445a268649a0b9
3
+ metadata.gz: 1b3d828c520826413664d4dd12ae907741ae5bac1adfa0fa486844fccad64693
4
+ data.tar.gz: 027d5cd8f75619dda5543eed74eac8106610ccff9a4747209ec0a2692cc27a7a
5
5
  SHA512:
6
- metadata.gz: 44b3b35d6004c66d062ade835d98afb7cfb45276c73820275706caf8fcfb906e40343e4ee2ac8ca434f334608d77c30f28cbbf01459ec14d6aeca62eb08d64b5
7
- data.tar.gz: f53e08503a4a538b0508a12bd2a307dc2ed3169306c082563280a1d5b198d8d653577dd34e80cf994d362285a6d761a9a619001e709787190a0d3371de7cbba0
6
+ metadata.gz: 1575edd920bba88f9674b58bead5cbd2cde3cbb61fc2a2912929b574758fb8433a6f5d2b11ee8293e24207f0ae0565f725916bfdb6376d282f2b75e204d9a63b
7
+ data.tar.gz: 6766aa8e6fbeb6fd7f3b3d657d8b990f88b90cc82a19db8c699df022b908ca9e727dc3eaeeef7f6e606799cad8e5c105587cc0b4f7a11934dbc84999fa01bf6a
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: monthly
7
+ time: "10:00"
8
+ open-pull-requests-limit: 10
data/.travis.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.2
4
+ - 2.5.3
5
5
  before_install:
6
- - gem install bundler -v 1.12.5
6
+ - gem install bundler -v 2.2.15
7
7
  - openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
@@ -69,14 +69,15 @@ module Constituents
69
69
  parameters =
70
70
  {
71
71
  "ConstituentType": {
72
- "Id": current["ConstituentType"]["Id"],
72
+ "Id": current['ConstituentType']['Id'],
73
73
  "Inactive": false,
74
74
  },
75
75
  "Id": constituent_id,
76
+ "UpdatedDateTime": current['UpdatedDateTime'],
76
77
  "FirstName": params[:first_name],
77
- "UpdatedDateTime": current["UpdatedDateTime"],
78
78
  "LastName": params[:last_name],
79
79
  "MiddleName": params[:middle_name],
80
+ "SortName": current['SortName'],
80
81
  "Prefix": {
81
82
  "Id": params[:prefix],
82
83
  "Inactive": false
@@ -86,7 +87,7 @@ module Constituents
86
87
  "Inactive": false
87
88
  },
88
89
  "OriginalSource": {
89
- "Id": current["OriginalSource"]["Id"],
90
+ "Id": current['OriginalSource']['Id'],
90
91
  "Inactive": false
91
92
  },
92
93
  }
@@ -99,22 +100,22 @@ module Constituents
99
100
  end
100
101
 
101
102
  def is_household?(snapshot)
102
- snapshot["ConstituentType"]["Id"] == 9
103
+ snapshot['ConstituentType']['Id'] == 9
103
104
  end
104
105
 
105
106
  def update_household(params, current, options={})
106
- constituents = current["Affiliates"].map{|c| c["RelatedConstituentId"]}
107
+ constituents = current['Affiliates'].map{|c| c['RelatedConstituentId']}
107
108
  constituents.each_with_index do |constituent, i|
108
109
  snapshot = get_constituent_snapshot(constituent)
109
110
  parameters =
110
111
  {
111
112
  "ConstituentType": {
112
- "Id": snapshot["ConstituentType"]["Id"],
113
+ "Id": snapshot['ConstituentType']['Id'],
113
114
  "Inactive": false,
114
115
  },
115
116
  "Id": constituent,
116
117
  "FirstName": i == 0 ? params[:first_name] : params[:first_name_2],
117
- "UpdatedDateTime": snapshot["UpdatedDateTime"],
118
+ "UpdatedDateTime": snapshot['UpdatedDateTime'],
118
119
  "LastName": i == 0 ? params[:last_name] : params[:last_name_2],
119
120
  "MiddleName": i == 0 ? params[:middle_name] : params[:middle_name_2],
120
121
  "Prefix": {
@@ -126,7 +127,7 @@ module Constituents
126
127
  "Inactive": false
127
128
  },
128
129
  "OriginalSource": {
129
- "Id": snapshot["OriginalSource"]["Id"],
130
+ "Id": snapshot['OriginalSource']['Id'],
130
131
  "Inactive": false
131
132
  },
132
133
  }
@@ -3,4 +3,9 @@ module Diagnostics
3
3
  options.merge!(basic_auth: @auth, headers: @headers)
4
4
  self.class.get(base_api_endpoint('Diagnostics/Status'), options)
5
5
  end
6
+
7
+ def seat_server_status(options={})
8
+ options.merge!(basic_auth: @auth, headers: @headers)
9
+ self.class.get(base_api_endpoint('Diagnostics/SeatServerStatus'), options)
10
+ end
6
11
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.6.9'.freeze
2
+ VERSION = '0.9.1'.freeze
3
3
  end
@@ -5,6 +5,11 @@ module Cart
5
5
  self.class.get(base_api_endpoint("Web/Cart/#{session_key}"), options)
6
6
  end
7
7
 
8
+ def get_checkout_complete(session_key, options={})
9
+ options.merge!(basic_auth: @auth, headers: @headers)
10
+ self.class.get(base_api_endpoint("Web/Cart/#{session_key}&savedCart=true"), options)
11
+ end
12
+
8
13
  def empty_cart(session_key, options={})
9
14
  options.merge!(basic_auth: @auth, headers: @headers)
10
15
  self.class.delete(base_api_endpoint("Web/Cart/#{session_key}"), options)
@@ -177,9 +182,8 @@ module Cart
177
182
  "ParentPackageLineItemId": parent_package_line_item_id,
178
183
  "Unseated": unseated
179
184
  }
180
-
181
185
  options.merge!(basic_auth: @auth, headers: @headers)
182
- options.merge!(:body => parameters)
186
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
183
187
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Packages/Fixed"), options)
184
188
  end
185
189
 
@@ -202,7 +206,7 @@ module Cart
202
206
  "Unseated": unseated
203
207
  }
204
208
  options.merge!(basic_auth: @auth, headers: @headers)
205
- options.merge!(:body => parameters)
209
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
206
210
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Packages/Nfs"), options)
207
211
  end
208
212
 
@@ -1,6 +1,6 @@
1
1
  module Registration
2
2
 
3
- def register_user(session_key, address, first_name, last_name, email, password, special_offer, phone, options={})
3
+ def register_user(session_key, address, first_name, last_name, email, password, promotion, special_offer, phone, options={})
4
4
  parameters =
5
5
  {
6
6
  'FirstName': first_name,
@@ -25,6 +25,7 @@ module Registration
25
25
  },
26
26
  'ConstituentTypeId': 1,
27
27
  'OriginalSourceId': 3,
28
+ 'SourceId': promotion,
28
29
  'Phones':
29
30
  [
30
31
  {
@@ -6,8 +6,8 @@ require 'tessitura_rest/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "tessitura_rest"
8
8
  spec.version = TessituraRest::VERSION
9
- spec.authors = ["Brittany Martin"]
10
- spec.email = ["martin@trustarts.org"]
9
+ spec.authors = ['Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald']
10
+ spec.email = ['webteam@trustarts.org']
11
11
 
12
12
  spec.summary = "Rest API Endpoint for the Tessitura Rest API (v14+)."
13
13
  spec.description = "TessituraRest is an enterprise-wide, fully integrated software system for arts & cultural organizations."
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.8.6.9
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
- - Brittany Martin
7
+ - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -111,13 +111,14 @@ dependencies:
111
111
  description: TessituraRest is an enterprise-wide, fully integrated software system
112
112
  for arts & cultural organizations.
113
113
  email:
114
- - martin@trustarts.org
114
+ - webteam@trustarts.org
115
115
  executables: []
116
116
  extensions: []
117
117
  extra_rdoc_files: []
118
118
  files:
119
119
  - ".codeclimate.yml"
120
120
  - ".env.enc"
121
+ - ".github/dependabot.yml"
121
122
  - ".gitignore"
122
123
  - ".rspec"
123
124
  - ".rubocop.yml"
@@ -185,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
186
  - !ruby/object:Gem::Version
186
187
  version: '0'
187
188
  requirements: []
188
- rubygems_version: 3.0.9
189
+ rubygems_version: 3.2.15
189
190
  signing_key:
190
191
  specification_version: 4
191
192
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).