tessitura_rest 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d9bf70aa7732f39ce16e644ba3ab0ff843051cd19a8b92058e873b47db4029
4
- data.tar.gz: 76d5040a8d72701ec1b071731a5bec4cf3bb78cbd21008f05cee5ee784482f15
3
+ metadata.gz: 56820ea247865ce99d4195be09681b7e1646e8435a2acae2af1d516eb0a4999d
4
+ data.tar.gz: e80b9495594f4368c967c6e212f4a222a980e11d6783d5d4485f02ba2208c866
5
5
  SHA512:
6
- metadata.gz: 3b2dd6dc7386c104540a05c66cd1c8cfcead14bb31c62043255275f1f253dbf5703224fa041673d9bcdd1e446e00aaa773db8b32ebb8314d34941bb61787ff0a
7
- data.tar.gz: f53d6a1c3565694a8a95b9280925382395b81eb99103cea65292f60cdab847ee60635c2d7ec5a6f3a0b2c7cfe017fe53add3b00d9cf47d9fd14e97c2fca2f6bc
6
+ metadata.gz: e982f422f12b608c515a8555e9ea6a82ddfd2d9e3dfe80d34897b9d50e55e853c1ac751d9355cdef4abde37bb7cb29c193565e999cc6acc1580f2268ba025c8b
7
+ data.tar.gz: 538c0d8df51bd92ea834a9d440a62d4cbcb100925a4514cd3569b12a42b8c6d3be7b2a9bbbd6cb5fcadb2d604958508d91dc78bd63f2743b25c7a2bbd00d7075
@@ -27,6 +27,11 @@ module Phones
27
27
  JSON.parse(response.body)
28
28
  end
29
29
 
30
+ def delete_phone(id, options = {})
31
+ options.merge!(basic_auth: @auth, headers: @headers)
32
+ self.class.delete(base_api_endpoint("CRM/Phones/#{id}"), options)
33
+ end
34
+
30
35
  def update_phone(id, phone, options = {})
31
36
  current = get_phone(id)
32
37
  parameters =
@@ -40,6 +45,8 @@ module Phones
40
45
  'Id': current['Id'],
41
46
  'PhoneNumber': phone,
42
47
  'UpdatedDateTime': current['UpdatedDateTime'],
48
+ 'IsMobile': true,
49
+ 'PrimaryIndicator': true
43
50
  }
44
51
  options.merge!(basic_auth: @auth, headers: @headers)
45
52
  options.merge!(:body => parameters.to_json)
@@ -1,4 +1,9 @@
1
1
  module Sections
2
+ def get_all_sections(options = {})
3
+ options.merge!(basic_auth: @auth, headers: @headers)
4
+ response = self.class.get(base_api_endpoint('ReferenceData/Sections'), options)
5
+ end
6
+
2
7
  def get_section(id, options = {})
3
8
  options.merge!(basic_auth: @auth, headers: @headers)
4
9
  response = self.class.get(base_api_endpoint("ReferenceData/Sections/#{id}"), options)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.1.1'.freeze
2
+ VERSION = '2.1.3'.freeze
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: 2.1.1
4
+ version: 2.1.3
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: 2024-10-04 00:00:00.000000000 Z
11
+ date: 2024-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler