tessitura_rest 2.2.7 → 2.2.9

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: 10a05538fa86d8de5d64fa357e635e497e79a7e1305d217c82c3f17978890f84
4
- data.tar.gz: 9419813691d88a36523554e17a8054394ba1f36f61603ca0ce4c4abfc37f4c30
3
+ metadata.gz: b21c590399a1dbcc0ac036d3454fd1812e1d79b9e91aaacb5dc3221022251f02
4
+ data.tar.gz: ce1cd88a3163e3520a39614904114bee6334e3c8006856f9d8fbf1223c97698b
5
5
  SHA512:
6
- metadata.gz: dfe71e7b46af13041209e4dfb8d265035b765c6941dcfa8d5fe21f70add1df1b58d631503e23397ba6eed0f05c5748cddb4b48019e8ca791d027e16d6ed1488b
7
- data.tar.gz: 86978cac4d2174bc619c65d44754c813cba7e3f5d7be9c5087268912c1a814ae998bc282081094e72179b7d25931d98967199dfe32c4a0f2418713992aedae85
6
+ metadata.gz: 62a819cf17b4f66a5c3d9b690ad98bb9618b01b710d86cea45de51768ba1b85ade76d4d11c2cd410dcc07d5fc33fa198e08533d543e6442af70301f02e40f806
7
+ data.tar.gz: '0308cc51ab1888544eecac77ff0f186c5d8e39020f881b0cd9843933c6eb654e15a26832c88497ca04074af226da8f27336e8ed287f84a4461f828ff9b29a970'
data/README.md CHANGED
@@ -1,5 +1,4 @@
1
- [![Test Coverage](https://api.codeclimate.com/v1/badges/7e9be54ce754061ff52a/test_coverage)](https://codeclimate.com/repos/5a8308622f7e3e028700068f/test_coverage)
2
- [![Maintainability](https://api.codeclimate.com/v1/badges/7e9be54ce754061ff52a/maintainability)](https://codeclimate.com/repos/5a8308622f7e3e028700068f/maintainability)
1
+ [![Maintainability](https://qlty.sh/badges/16d898e7-f8a1-487c-b391-475effa8d4e3/maintainability.png)](https://qlty.sh/gh/pgharts/projects/tessitura)
3
2
 
4
3
  # TessituraRest
5
4
 
@@ -50,7 +49,7 @@ followed by the method and arguments you would like to use.
50
49
  ## Running the Test Suite
51
50
 
52
51
  1. You will need to add valid environment variables to the gem to run the test suite.
53
- 2. Delete all of the pre-recorded cassettes tapes from spec/vcr_cassettes so they can be re-recorded with your
52
+ 2. Delete all of the pre-recorded cassette tapes from spec/vcr_cassettes so they can be re-recorded with your
54
53
  instance's settings.
55
54
  3. Create a .env file and set these values:
56
55
 
@@ -5,6 +5,12 @@ module Constituents
5
5
  JSON.parse(response.body)
6
6
  end
7
7
 
8
+ def search_constituents(query, type = 'fluent', include_affiliates = false, constituent_groups = 'individuals', options = {})
9
+ options.merge!(basic_auth: @auth, headers: @headers)
10
+ response = self.class.get(base_api_endpoint("CRM/Constituents/Search?type=#{type}&q=#{query}&includeAffiliates=#{include_affiliates}&constituentGroups=#{constituent_groups}"), options)
11
+ JSON.parse(response.body)
12
+ end
13
+
8
14
  def create_constituent_by_snapshot(first_name, last_name, email, phone, constituent_type, source, street1, street2, city, state, zip, country, options = {})
9
15
  parameters =
10
16
  {
@@ -41,9 +41,9 @@ module PerformanceExtension
41
41
  JSON.parse(response.body)
42
42
  end
43
43
 
44
- def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options = {})
44
+ def get_performance_seats(id, mode_of_sale, constituent_id, section_id, price_type_ids = nil, options = {})
45
45
  options.merge!(basic_auth: @auth, headers: @headers)
46
- response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
46
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}&checkPriceTypeIds=#{price_type_ids}"), options)
47
47
  JSON.parse(response.body)
48
48
  end
49
49
 
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.2.7'.freeze
2
+ VERSION = '2.2.9'.freeze
3
3
  end
@@ -75,5 +75,4 @@ module Registration
75
75
  options.merge!(:body => parameters.to_json)
76
76
  self.class.post(base_api_endpoint("Web/Registration/#{session_key}/Register"), options)
77
77
  end
78
-
79
78
  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.2.7
4
+ version: 2.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald, Jared Blumer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-01-07 00:00:00.000000000 Z
11
+ date: 2026-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport