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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b21c590399a1dbcc0ac036d3454fd1812e1d79b9e91aaacb5dc3221022251f02
|
|
4
|
+
data.tar.gz: ce1cd88a3163e3520a39614904114bee6334e3c8006856f9d8fbf1223c97698b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62a819cf17b4f66a5c3d9b690ad98bb9618b01b710d86cea45de51768ba1b85ade76d4d11c2cd410dcc07d5fc33fa198e08533d543e6442af70301f02e40f806
|
|
7
|
+
data.tar.gz: '0308cc51ab1888544eecac77ff0f186c5d8e39020f881b0cd9843933c6eb654e15a26832c88497ca04074af226da8f27336e8ed287f84a4461f828ff9b29a970'
|
data/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
[](https://codeclimate.com/repos/5a8308622f7e3e028700068f/maintainability)
|
|
1
|
+
[](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
|
|
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}§ionIds=#{section_id}"), options)
|
|
46
|
+
response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}§ionIds=#{section_id}&checkPriceTypeIds=#{price_type_ids}"), options)
|
|
47
47
|
JSON.parse(response.body)
|
|
48
48
|
end
|
|
49
49
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-03-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|