tessitura_rest 1.1.2 → 1.1.6
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: b6b2fcc55c832163daaada90d305305c168190bc90d8ff8320b87d16dbf5e3dd
|
4
|
+
data.tar.gz: 54423f5d268a2ca8595288500edfd521c8774826279b0851b1d4331d24932645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd82b97aec4322cdd20a48f1db2ed9b03611bf175d1ee376c8ab3e0dc050303f950d14d4c3668e3b3e7b67da909196d58588bd30ad2eb6341c1dc2246cf59853
|
7
|
+
data.tar.gz: d2e4457f4fbedcf849b25635df5a91202621c41b25f5f881a6f5e6155be6acca84af4e0118fbc1689d2e33c07d59222c3e01ae6a22ab531102ab47090ae2bec6
|
@@ -6,67 +6,47 @@ module Phones
|
|
6
6
|
JSON.parse(response.body)
|
7
7
|
end
|
8
8
|
|
9
|
-
def create_primary_phone(id, phone, options={})
|
9
|
+
def create_primary_phone(id, phone, options = {})
|
10
10
|
parameters =
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
23
|
-
options.merge!(:body => parameters)
|
24
|
-
response = self.class.post(base_api_endpoint('CRM/Phones'), options)
|
25
|
-
JSON.parse(response.body)
|
26
|
-
end
|
27
|
-
|
28
|
-
def create_secondary_phone(id, phone, options={})
|
29
|
-
parameters =
|
30
|
-
{
|
31
|
-
'Constituent': {
|
32
|
-
'Id': id
|
33
|
-
},
|
34
|
-
'PhoneNumber': phone,
|
35
|
-
'PhoneType': {
|
36
|
-
'Description': 'Phone 2',
|
37
|
-
'Id': 2,
|
38
|
-
'Inactive': false
|
11
|
+
{
|
12
|
+
'Constituent': {
|
13
|
+
'Id': id,
|
14
|
+
},
|
15
|
+
'PhoneNumber': phone,
|
16
|
+
'PhoneType': {
|
17
|
+
'Description': 'Phone 1',
|
18
|
+
'Id': 1,
|
19
|
+
'Inactive': false,
|
20
|
+
},
|
39
21
|
}
|
40
|
-
}
|
41
22
|
options.merge!(basic_auth: @auth, headers: @headers)
|
42
23
|
options.merge!(:body => parameters)
|
43
24
|
response = self.class.post(base_api_endpoint('CRM/Phones'), options)
|
44
25
|
JSON.parse(response.body)
|
45
26
|
end
|
46
27
|
|
47
|
-
def update_phone(id, phone, options={})
|
28
|
+
def update_phone(id, phone, options = {})
|
48
29
|
current = get_phone(id)
|
49
30
|
parameters =
|
50
31
|
{
|
51
32
|
"Address": {
|
52
|
-
"Id": current[
|
33
|
+
"Id": current['Address']['Id'],
|
53
34
|
"AddressType": {
|
54
|
-
"Id": current[
|
55
|
-
}
|
35
|
+
"Id": current['Address']['AddressType']['Id'],
|
36
|
+
},
|
56
37
|
},
|
57
38
|
"Constituent": {
|
58
|
-
"Id": current[
|
39
|
+
"Id": current['Constituent']['Id'],
|
59
40
|
},
|
60
41
|
"PhoneType": {
|
61
|
-
"Id": current[
|
42
|
+
"Id": current['PhoneType']['Id'],
|
62
43
|
},
|
63
|
-
"Id": current[
|
44
|
+
"Id": current['Id'],
|
64
45
|
"PhoneNumber": phone,
|
65
|
-
"UpdatedDateTime": current[
|
46
|
+
"UpdatedDateTime": current['UpdatedDateTime'],
|
66
47
|
}
|
67
48
|
options.merge!(basic_auth: @auth, headers: @headers)
|
68
49
|
options.merge!(:body => parameters)
|
69
50
|
self.class.put(base_api_endpoint("CRM/Phones/#{id}"), options)
|
70
51
|
end
|
71
|
-
|
72
52
|
end
|
@@ -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
|
|
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.6
|
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-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|