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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a62ae1b6fcb0a174a65de33e60b4bdb3b1335ffbbfdf9ab9b73618fb06dd63f4
4
- data.tar.gz: 3b56c59890ab7561b8c25b519269b923ee32367e2ca92465c83dd6eb64bad93e
3
+ metadata.gz: 361bc8fbc5be1df45d7b33b70f44c5037e23afed48ece0895731915dbdd55ef6
4
+ data.tar.gz: 2ab4afbd07692ad3f0176ffc87b77f35eb011848cdc36f3e089be928d38c09a2
5
5
  SHA512:
6
- metadata.gz: ecd0cd6c7baf28db7a542560266154c8525ea5a6505f1c9dbe90a2a10f5ce05b5e33cd20951c6a17ab9df7b6bdfa3f53f6c756cd9ede256bb5aa64e85f2dd562
7
- data.tar.gz: 5cf6cca8ed74da8c90386b99064144a3e01343cfbe94c2a96dfa8f1d26bffc773ac38c7ff9d9163518a6e9621730b60134b36af1f30a9683b077084c911f59aa
6
+ metadata.gz: 6a50a543845a9947d5ca021d2798293a12bbfe5b979cd603a738a1f06b8b072ac08e380ba05705a822ee94759c5bf0e1333fe94d7cacd35ad91f66aed9fb280e
7
+ data.tar.gz: 2ac314e39f967931e84e850d3343a74672643e280e665a5f5aa15eff0db879d21d83d550bb563ed8ce1ab315fee2d7af5f34ca98ba2b42cd178f4db8120cd35d
@@ -48,5 +48,8 @@ module Addresses
48
48
  JSON.parse(response.body)
49
49
  end
50
50
 
51
-
51
+ def delete_address(address_id, options={})
52
+ options.merge!(basic_auth: @auth, headers: @headers)
53
+ self.class.delete(base_api_endpoint("CRM/Addresses/#{address_id}"), options)
54
+ end
52
55
  end
@@ -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
- 'Notes': notes,
28
- 'HasReminder': false
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)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.5.9'
2
+ VERSION = '0.5.10'
3
3
  end
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.9
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-02 00:00:00.000000000 Z
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.0.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+).