tessitura_rest 1.1.0 → 1.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 676fbc48750537129ffbf847e25266a582ff0ca3e2fb717db4be3bd5c1a3b1f7
|
4
|
+
data.tar.gz: 39a071fd2e22524e5858cfac9f2fd0b722448a362141091648edc5c1261b3503
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31514a02d6155948b0c2b581a650905ccca9bb3e514e76bc36646a384025d899965f580de515ba25f793c56d65ed66ac1ba300aeba3f6f1191efd696a563aec6
|
7
|
+
data.tar.gz: f2bfd28421ee82ef468111b68f242d9027a1087283859becda89ca0fb19371160d21f1e8ad41a7df1465afc56807766037414f159dba9f71ccff9fc7867fa070
|
@@ -105,6 +105,7 @@ module Constituents
|
|
105
105
|
|
106
106
|
def update_household(params, current, options={})
|
107
107
|
constituents = current['Affiliates'].map{|c| c['RelatedConstituentId']}
|
108
|
+
update = []
|
108
109
|
constituents.each_with_index do |constituent, i|
|
109
110
|
snapshot = get_constituent_snapshot(constituent)
|
110
111
|
parameters =
|
@@ -133,8 +134,9 @@ module Constituents
|
|
133
134
|
}
|
134
135
|
options.merge!(basic_auth: @auth, headers: @headers)
|
135
136
|
options.merge!(:body => parameters)
|
136
|
-
self.class.put(base_api_endpoint("CRM/Constituents/#{constituent}"), options)
|
137
|
+
update << self.class.put(base_api_endpoint("CRM/Constituents/#{constituent}"), options)
|
137
138
|
end
|
139
|
+
update.last if update.present?
|
138
140
|
end
|
139
141
|
|
140
142
|
|
@@ -1,32 +1,20 @@
|
|
1
1
|
module LocalProcedure
|
2
|
-
|
3
|
-
def execute_local_procedure(id, params = "", options={})
|
4
|
-
parameters =
|
5
|
-
{
|
6
|
-
'ProcedureId' => id.to_s,
|
7
|
-
'Parameters' => params
|
8
|
-
}
|
9
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
10
|
-
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
11
|
-
self.class.post(base_api_endpoint('Custom/Execute'), options)
|
12
|
-
end
|
13
|
-
|
14
|
-
def execute_local_procedure_v2(id, params = [], options={})
|
2
|
+
def execute_local_procedure_v2(id, params = [], options = {})
|
15
3
|
parameters =
|
16
4
|
{
|
17
|
-
|
18
|
-
|
5
|
+
'ProcedureId' => id.to_s,
|
6
|
+
'ParameterValues' => params,
|
19
7
|
}
|
20
8
|
options.merge!(basic_auth: @auth, headers: @headers)
|
21
9
|
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
22
10
|
self.class.post(base_api_endpoint('Custom/Execute'), options)
|
23
11
|
end
|
24
12
|
|
25
|
-
def execute_local_procedure_with_multiple_result_sets(id, parameter_values= [], options={})
|
13
|
+
def execute_local_procedure_with_multiple_result_sets(id, parameter_values = [], options = {})
|
26
14
|
parameters =
|
27
15
|
{
|
28
|
-
|
29
|
-
|
16
|
+
'ProcedureId' => id.to_s,
|
17
|
+
'ParameterValues' => parameter_values,
|
30
18
|
}
|
31
19
|
options.merge!(basic_auth: @auth, headers: @headers)
|
32
20
|
options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
|
@@ -24,9 +24,9 @@ module Package
|
|
24
24
|
JSON.parse(response.body)
|
25
25
|
end
|
26
26
|
|
27
|
-
def get_package_prices(id, mode_of_sale, options={})
|
27
|
+
def get_package_prices(id, mode_of_sale, source_id, options={})
|
28
28
|
options.merge!(basic_auth: @auth, headers: @headers)
|
29
|
-
response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Prices?modeOfSaleId=#{mode_of_sale}"), options)
|
29
|
+
response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Prices?modeOfSaleId=#{mode_of_sale}&sourceId=#{source_id}"), options)
|
30
30
|
JSON.parse(response.body)
|
31
31
|
end
|
32
32
|
|
@@ -24,6 +24,16 @@ module Session
|
|
24
24
|
JSON.parse(response.body)
|
25
25
|
end
|
26
26
|
|
27
|
+
def transfer_session(session_key, new_session_key, options={})
|
28
|
+
parameters =
|
29
|
+
{
|
30
|
+
'NewSessionKey': new_session_key,
|
31
|
+
}
|
32
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
33
|
+
options.merge!(body: parameters)
|
34
|
+
self.class.post(base_api_endpoint("Web/Session/#{session_key}/Transfer"), options)
|
35
|
+
end
|
36
|
+
|
27
37
|
def get_variables(key, options={})
|
28
38
|
options.merge!(basic_auth: @auth, headers: @headers)
|
29
39
|
response = self.class.get(base_api_endpoint("Web/Session/#{key}/Variables"), 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: 1.1.
|
4
|
+
version: 1.1.4
|
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-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|