tessitura_rest 2.2.9 → 2.3.1
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: 2ebd2cc83324d691c7f33290eead3a0bd285ff590ee25abb7052ad52af6f713d
|
|
4
|
+
data.tar.gz: 460fe76f83a487ad77e7a830539013ea9d8d60e7421bfbcae15c89dc2ded1f83
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c9551906c8912019f44cf7beae5ae8c6d33ebe0a0e37f08b2dc34fab57d80cb2c622e8f5be734221c0adfe074cac29d4a9b22f9c512eac9b43d6187461a0cb48
|
|
7
|
+
data.tar.gz: cc29f3ff6e14406e4f5b95ae6f53ce49228634d10c3b7c35943dd06de3acecb65736240c5474e369d7eb421d17c8d43778c03bc91bfea6b4e052ca1f765376e0
|
|
@@ -11,24 +11,30 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
permissions:
|
|
13
13
|
contents: read
|
|
14
|
-
|
|
14
|
+
id-token: write
|
|
15
|
+
|
|
15
16
|
steps:
|
|
16
|
-
- uses: actions/checkout@
|
|
17
|
-
|
|
17
|
+
- uses: actions/checkout@v5
|
|
18
|
+
with:
|
|
19
|
+
persist-credentials: false
|
|
20
|
+
|
|
21
|
+
- name: Set up Ruby 3.3.1
|
|
18
22
|
uses: ruby/setup-ruby@v1
|
|
19
23
|
with:
|
|
20
|
-
ruby-version: '
|
|
24
|
+
ruby-version: '3.3.1'
|
|
25
|
+
bundler: '4.0.1'
|
|
26
|
+
bundler-cache: true
|
|
21
27
|
|
|
22
|
-
- name:
|
|
28
|
+
- name: Configure RubyGems Credentials
|
|
29
|
+
uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
30
|
+
|
|
31
|
+
- name: Build gem
|
|
23
32
|
run: |
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
gem push *.gem
|
|
30
|
-
env:
|
|
31
|
-
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
|
33
|
+
echo "GEM_FILE=$(ruby -e 'spec = Gem::Specification.load("tessitura_rest.gemspec"); print "#{spec.name}-#{spec.version}.gem"')" >> "$GITHUB_ENV"
|
|
34
|
+
gem build tessitura_rest.gemspec
|
|
35
|
+
|
|
36
|
+
- name: Publish gem
|
|
37
|
+
run: gem push "$GEM_FILE"
|
|
32
38
|
|
|
33
39
|
- name: Remove gem build file
|
|
34
|
-
run: rm *.gem
|
|
40
|
+
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, start_date = nil, end_date = nil, options = {})
|
|
9
9
|
parameters =
|
|
10
10
|
{
|
|
11
11
|
'ConstituencyType': {
|
|
@@ -15,8 +15,12 @@ module Constituencies
|
|
|
15
15
|
'Id': id,
|
|
16
16
|
},
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
parameters['StartDate'] = start_date if start_date
|
|
20
|
+
parameters['EndDate'] = end_date if end_date
|
|
21
|
+
|
|
18
22
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
19
23
|
options.merge!(:body => parameters.to_json)
|
|
20
24
|
self.class.post(base_api_endpoint('CRM/Constituencies'), options)
|
|
21
25
|
end
|
|
22
|
-
end
|
|
26
|
+
end
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
require 'cgi'
|
|
2
|
+
|
|
1
3
|
module WebLogins
|
|
2
4
|
def get_web_login(email, login_type, options = {})
|
|
3
5
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
4
|
-
|
|
6
|
+
encoded_email = CGI.escape(email)
|
|
7
|
+
response = self.class.get(base_api_endpoint("CRM/WebLogins/Search?emailAddress=#{encoded_email}&loginTypeId=#{login_type}"), options)
|
|
5
8
|
JSON.parse(response.body)
|
|
6
9
|
end
|
|
7
10
|
|
|
@@ -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.1
|
|
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: []
|