tessitura_rest 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +37 -0
- data/.codeclimate.yml +9 -2
- data/lib/tessitura_rest/crm/issues.rb +0 -12
- data/lib/tessitura_rest/txn/orders.rb +0 -13
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest.rb +0 -1
- metadata +3 -5
- data/.env.enc +0 -0
- data/.travis.yml +0 -7
- data/lib/tessitura_rest/crm/actions.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c40488c47b4497e72d33d34168b7df274cd940e3fa9719b4d394aab301b221c
|
4
|
+
data.tar.gz: 35d4f943fbc7372de657e3e1497f7f18e744a6ab4930ec58dcb00da28be4e32a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: baa5f419a800dfeb948dc22c3619440571faa5a8a67e324532c032a7c9da0292cf57f59eb8b16878e0ee219630887b42a55081c096e92bf76748ca395db4473b
|
7
|
+
data.tar.gz: ffbbdf5ac4a3dfcb6428e2d7ae79b92f60022290eacea2655bd215ff8262ba414694473f448768fe1dac8401cbf6ea92b0f14ad8f240c38afb3f36558b6df6cf
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
2
|
+
# See: https://circleci.com/docs/2.0/configuration-reference
|
3
|
+
version: 2.1
|
4
|
+
orbs:
|
5
|
+
ruby: circleci/ruby@1.4.0
|
6
|
+
# Define a job to be invoked later in a workflow.
|
7
|
+
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
docker:
|
11
|
+
- image: cimg/ruby:3.0.1-node
|
12
|
+
|
13
|
+
# Add steps to the job
|
14
|
+
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- checkout
|
18
|
+
- run:
|
19
|
+
name: Install Bundler
|
20
|
+
command: gem install bundler
|
21
|
+
- run:
|
22
|
+
name: Install Dependencies
|
23
|
+
command: bundle install
|
24
|
+
- run:
|
25
|
+
name: Decrypt Env
|
26
|
+
command: echo "$ENV_ENC" | base64 --decode > .env
|
27
|
+
|
28
|
+
- run:
|
29
|
+
name: Run tests
|
30
|
+
command: bundle exec rspec
|
31
|
+
# Invoke jobs via workflows
|
32
|
+
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
|
33
|
+
workflows:
|
34
|
+
version: 2
|
35
|
+
deploy:
|
36
|
+
jobs:
|
37
|
+
- test
|
data/.codeclimate.yml
CHANGED
@@ -11,7 +11,7 @@ plugins:
|
|
11
11
|
flog:
|
12
12
|
enabled: true
|
13
13
|
config:
|
14
|
-
score_threshold: 20.0
|
14
|
+
score_threshold: 20.0
|
15
15
|
haml-lint:
|
16
16
|
enabled: false
|
17
17
|
checks:
|
@@ -20,8 +20,15 @@ plugins:
|
|
20
20
|
reek:
|
21
21
|
enabled: true
|
22
22
|
checks:
|
23
|
+
checks:
|
24
|
+
BooleanParameter:
|
25
|
+
enabled: false
|
26
|
+
DataClump:
|
27
|
+
enabled: false
|
23
28
|
IrresponsibleModule:
|
24
29
|
enabled: false
|
30
|
+
LongParameterList:
|
31
|
+
enabled: false
|
25
32
|
UncommunicativeName:
|
26
33
|
enabled: false
|
27
34
|
UncommunicativeVariableName:
|
@@ -38,5 +45,5 @@ plugins:
|
|
38
45
|
enabled: false
|
39
46
|
exclude_patterns:
|
40
47
|
- .rubocop.yml
|
41
|
-
- .rubocop_todo.yml
|
42
48
|
- spec/**/*
|
49
|
+
- bin/*
|
@@ -1,16 +1,4 @@
|
|
1
1
|
module Issues
|
2
|
-
def get_issue(id, options = {})
|
3
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
4
|
-
response = self.class.get(base_api_endpoint("CRM/Issues/#{id}"), options)
|
5
|
-
JSON.parse(response.body)
|
6
|
-
end
|
7
|
-
|
8
|
-
def get_issues(constituent_id, start_date = Date.today, end_date = Date.today + 365, resolved = false, options = {})
|
9
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
10
|
-
response = self.class.get(base_api_endpoint("CRM/Issues?constituentId=#{constituent_id}"), options)
|
11
|
-
JSON.parse(response.body)
|
12
|
-
end
|
13
|
-
|
14
2
|
def create_issue(activity_type, category_id, constituent_id, contact_type, notes, origin_id, options = {})
|
15
3
|
parameters =
|
16
4
|
{
|
@@ -4,17 +4,4 @@ module Orders
|
|
4
4
|
response = self.class.get(base_api_endpoint("TXN/Orders/#{id}/ProductsView"), options)
|
5
5
|
JSON.parse(response.body)
|
6
6
|
end
|
7
|
-
|
8
|
-
def print_order_ticket_elements(order_id, ticket_design, reprint, new_ticket_no = false, options = {})
|
9
|
-
parameters =
|
10
|
-
{
|
11
|
-
'IncludeReceipts': false,
|
12
|
-
'ReprintTickets': reprint,
|
13
|
-
'TicketDesignId': ticket_design,
|
14
|
-
'NewTicketNoForReprints': new_ticket_no,
|
15
|
-
}
|
16
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
17
|
-
options.merge!(:body => parameters)
|
18
|
-
self.class.post(base_api_endpoint("/TXN/Orders/#{order_id}/PrintTicketElements"), options)
|
19
|
-
end
|
20
7
|
end
|
data/lib/tessitura_rest.rb
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.9
|
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: 2022-
|
11
|
+
date: 2022-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,14 +116,13 @@ executables: []
|
|
116
116
|
extensions: []
|
117
117
|
extra_rdoc_files: []
|
118
118
|
files:
|
119
|
+
- ".circleci/config.yml"
|
119
120
|
- ".codeclimate.yml"
|
120
|
-
- ".env.enc"
|
121
121
|
- ".github/dependabot.yml"
|
122
122
|
- ".github/workflows/gem-push.yml"
|
123
123
|
- ".gitignore"
|
124
124
|
- ".rspec"
|
125
125
|
- ".rubocop.yml"
|
126
|
-
- ".travis.yml"
|
127
126
|
- CODE_OF_CONDUCT.md
|
128
127
|
- Gemfile
|
129
128
|
- LICENSE.txt
|
@@ -133,7 +132,6 @@ files:
|
|
133
132
|
- bin/setup
|
134
133
|
- lib/tessitura_rest.rb
|
135
134
|
- lib/tessitura_rest/crm/accounts.rb
|
136
|
-
- lib/tessitura_rest/crm/actions.rb
|
137
135
|
- lib/tessitura_rest/crm/addresses.rb
|
138
136
|
- lib/tessitura_rest/crm/attributes.rb
|
139
137
|
- lib/tessitura_rest/crm/constituencies.rb
|
data/.env.enc
DELETED
Binary file
|
data/.travis.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
module Actions
|
2
|
-
def get_action(id, options = {})
|
3
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
4
|
-
response = self.class.get(base_api_endpoint("CRM/Actions/#{id}"), options)
|
5
|
-
JSON.parse(response.body)
|
6
|
-
end
|
7
|
-
|
8
|
-
def get_actions(constituent_id, issue_id, options = {})
|
9
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
10
|
-
response = self.class.get(base_api_endpoint("CRM/Actions?constituentId=#{constituent_id}&issueId=#{issue_id}"), options)
|
11
|
-
JSON.parse(response.body)
|
12
|
-
end
|
13
|
-
|
14
|
-
def create_action(action_type, constituent_id, issue_id, notes = '', options = {})
|
15
|
-
parameters =
|
16
|
-
{
|
17
|
-
'ActionType': {
|
18
|
-
'Id': action_type,
|
19
|
-
},
|
20
|
-
'Issue': {
|
21
|
-
'Id': issue_id,
|
22
|
-
},
|
23
|
-
'Constituent': {
|
24
|
-
'Id': constituent_id,
|
25
|
-
},
|
26
|
-
'Notes': notes,
|
27
|
-
'Resolved': true,
|
28
|
-
}
|
29
|
-
options.merge!(basic_auth: @auth, headers: @headers)
|
30
|
-
options.merge!(:body => parameters)
|
31
|
-
response = self.class.post(base_api_endpoint('CRM/Actions'), options)
|
32
|
-
JSON.parse(response.body)
|
33
|
-
end
|
34
|
-
end
|