tessitura_rest 0.5.9 → 0.5.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessitura_rest/crm/addresses.rb +4 -1
- data/lib/tessitura_rest/crm/issues.rb +10 -4
- data/lib/tessitura_rest/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361bc8fbc5be1df45d7b33b70f44c5037e23afed48ece0895731915dbdd55ef6
|
4
|
+
data.tar.gz: 2ab4afbd07692ad3f0176ffc87b77f35eb011848cdc36f3e089be928d38c09a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a50a543845a9947d5ca021d2798293a12bbfe5b979cd603a738a1f06b8b072ac08e380ba05705a822ee94759c5bf0e1333fe94d7cacd35ad91f66aed9fb280e
|
7
|
+
data.tar.gz: 2ac314e39f967931e84e850d3343a74672643e280e665a5f5aa15eff0db879d21d83d550bb563ed8ce1ab315fee2d7af5f34ca98ba2b42cd178f4db8120cd35d
|
@@ -12,11 +12,14 @@ module Issues
|
|
12
12
|
JSON.parse(response.body)
|
13
13
|
end
|
14
14
|
|
15
|
-
def create_issue(activity_type, constituent_id, contact_type, notes, options={})
|
15
|
+
def create_issue(activity_type, category_id, constituent_id, contact_type, notes, origin_id, options={})
|
16
16
|
parameters =
|
17
17
|
{
|
18
18
|
'ActivityType': {
|
19
|
-
'Id': activity_type
|
19
|
+
'Id': activity_type,
|
20
|
+
'Category': {
|
21
|
+
'Id': category_id
|
22
|
+
}
|
20
23
|
},
|
21
24
|
'ContactType': {
|
22
25
|
'Id': contact_type
|
@@ -24,9 +27,12 @@ module Issues
|
|
24
27
|
'Constituent': {
|
25
28
|
'Id': constituent_id
|
26
29
|
},
|
27
|
-
|
28
|
-
|
30
|
+
"Origin": {
|
31
|
+
"Id": origin_id
|
32
|
+
},
|
33
|
+
'Notes': notes
|
29
34
|
}
|
35
|
+
parameters.delete(:Origin) unless origin_id.present?
|
30
36
|
options.merge!(basic_auth: @auth, headers: @headers)
|
31
37
|
options.merge!(:body => parameters)
|
32
38
|
response = self.class.post(base_api_endpoint('CRM/Issues'), 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.5.
|
4
|
+
version: 0.5.10
|
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-01-
|
11
|
+
date: 2020-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.
|
180
|
+
rubygems_version: 3.1.2
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Rest API Endpoint for the Tessitura Rest API (v14+).
|