tessitura_rest 0.8.7 → 0.9.1.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: d4b87b44f1ae165f28f1f554757bb59ddd58dcba43724c3a2cdb6f6fed02dac6
4
- data.tar.gz: d4720b981dcfe7b7ef68d2d135a162a643fd7290417fefcbfab7443951fd9444
3
+ metadata.gz: 9d27666b702947168d12dde450cc61c0c8d69c72334fc43c6ad2e221f3c1cc49
4
+ data.tar.gz: f68c3a0d7853a2037337e082449557e1c13d75677ca689d288aede88a8c15e88
5
5
  SHA512:
6
- metadata.gz: bc2a384f6098b4c68496ca6aff98e3018463c0dfb322d62606319c0a18f4fdd34a0117bc5a0a6cb82161e8bad59aadf8360f9244a3e0ba30b4f718de1c6ce571
7
- data.tar.gz: a17d2a7939d39a60eb618b3c5a018850f38b68665397a472c66be1e6484d96403a32875d22be29e466d21072134c90000d2a108decb1835320623ef753d6d9d0
6
+ metadata.gz: 8ca781aa3001caf1f5904ee19582300af4629c58f820d9a6ccd35927dac688ac454c4bd58c362a0f14279c7d1e01ab40a10f4b5460c2152224eaed7d7d2e98c5
7
+ data.tar.gz: 0f02713a5b103f9d9ef4b8a7a0e616ed9283bbf07270067639bd67b78612938c1f31a1531264f28bda272101786b02fb93bd2e018231ab43a2531bd2d75b6416
@@ -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
@@ -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
  }
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.7'.freeze
2
+ VERSION = '0.9.1.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
 
@@ -306,7 +310,7 @@ module Cart
306
310
  "AuthorizationCode": order_authorization_code,
307
311
  }
308
312
  options.merge!(basic_auth: @auth, headers: @headers)
309
- options.merge!(:body => parameters)
313
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
310
314
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
311
315
  end
312
316
 
@@ -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
  {
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.7
4
+ version: 0.9.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -118,6 +118,7 @@ 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.0.3
189
190
  signing_key:
190
191
  specification_version: 4
191
192
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).