tessitura_rest 2.2.8 → 2.3.0
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: '08d63bc12359909d79b5a395b2229aa2d2ea3b844fda771fee67e58c5326445c'
|
|
4
|
+
data.tar.gz: 6c5ffeaf40298643f352041ef8065fa4a568c01343255428de53bed75c93d685
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 550fac1e5edbc3257a457bb23726ffbfb2d8d99e8c09f4829c208bbf4bf5a029d867691801bdce85ae3c5fe4baf7d26acb110292baaf24a35c37c62e55e6fe7e
|
|
7
|
+
data.tar.gz: 5d0b97b50834a7d7a087ce0b224fdbf0d3a67aa75110ebd817b2cda581d92e7ab22f882fc480b538b56c0a6a9b974e1993c0abfa8bbef7d906663a1d36b87720
|
|
@@ -10,8 +10,9 @@ jobs:
|
|
|
10
10
|
name: Build + Publish
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
permissions:
|
|
13
|
-
contents: read
|
|
14
13
|
packages: write
|
|
14
|
+
contents: write
|
|
15
|
+
id-token: write
|
|
15
16
|
steps:
|
|
16
17
|
- uses: actions/checkout@v2
|
|
17
18
|
- name: Set up Ruby 2.6
|
|
@@ -31,4 +32,4 @@ jobs:
|
|
|
31
32
|
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
|
32
33
|
|
|
33
34
|
- name: Remove gem build file
|
|
34
|
-
run: rm *.gem
|
|
35
|
+
run: rm *.gem
|
|
@@ -5,7 +5,7 @@ module Constituencies
|
|
|
5
5
|
JSON.parse(response.body)
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
def create_constituencies(constituency, id, options = {})
|
|
8
|
+
def create_constituencies(constituency, id, end_date = nil, options = {})
|
|
9
9
|
parameters =
|
|
10
10
|
{
|
|
11
11
|
'ConstituencyType': {
|
|
@@ -15,8 +15,11 @@ module Constituencies
|
|
|
15
15
|
'Id': id,
|
|
16
16
|
},
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
parameters['EndDate'] = end_date if end_date
|
|
20
|
+
|
|
18
21
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
19
22
|
options.merge!(:body => parameters.to_json)
|
|
20
23
|
self.class.post(base_api_endpoint('CRM/Constituencies'), options)
|
|
21
24
|
end
|
|
22
|
-
end
|
|
25
|
+
end
|
|
@@ -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
|
|
|
@@ -4,4 +4,10 @@ module PricingRules
|
|
|
4
4
|
response = self.class.get(base_api_endpoint("TXN/PricingRules?performanceIds=#{perf_id}&orderDate=#{order_date}&modeOfSaleId=#{mode_of_sale}"), options)
|
|
5
5
|
JSON.parse(response.body)
|
|
6
6
|
end
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
def get_pricing_rule_details(pricing_rule_id, options = {})
|
|
9
|
+
options.merge!(basic_auth: @auth, headers: @headers)
|
|
10
|
+
response = self.class.get(base_api_endpoint("TXN/PricingRules/#{pricing_rule_id}"), options)
|
|
11
|
+
JSON.parse(response.body)
|
|
12
|
+
end
|
|
13
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tessitura_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald, Jared Blumer
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activesupport
|
|
@@ -276,7 +275,6 @@ homepage: https://github.com/pgharts/tessitura
|
|
|
276
275
|
licenses:
|
|
277
276
|
- MIT
|
|
278
277
|
metadata: {}
|
|
279
|
-
post_install_message:
|
|
280
278
|
rdoc_options: []
|
|
281
279
|
require_paths:
|
|
282
280
|
- lib
|
|
@@ -291,8 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
289
|
- !ruby/object:Gem::Version
|
|
292
290
|
version: '0'
|
|
293
291
|
requirements: []
|
|
294
|
-
rubygems_version:
|
|
295
|
-
signing_key:
|
|
292
|
+
rubygems_version: 4.0.1
|
|
296
293
|
specification_version: 4
|
|
297
294
|
summary: Rest API Endpoint for the Tessitura Rest API (v16+).
|
|
298
295
|
test_files: []
|