tessitura_rest 2.3.1 → 2.4.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 +4 -4
- data/.circleci/config.yml +2 -2
- data/.github/workflows/gem-push.yml +10 -6
- data/.ruby-version +1 -1
- data/README.md +42 -24
- data/lib/tessitura_rest/crm/web_logins.rb +1 -1
- data/lib/tessitura_rest/payment_gateway/payment_component.rb +2 -1
- data/lib/tessitura_rest/version.rb +1 -1
- data/tessitura_rest.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6bded4fc961a7fd60808e7f79ac6d8d6bb35a3216e59541dad7fab0dcd6c2925
|
|
4
|
+
data.tar.gz: f970b416ff5321f13a6ba742a8c690466cc6d71992c20f8f3112e45ece36105c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61eb1c8a62f1ad46c38f05d2cdb167c7b3b28b456acf2d763eff081253f6b23a7ee5f6a0bec46a65ffb57854e4e72cabbbebf9213dd2ec77babeabd0513d0765
|
|
7
|
+
data.tar.gz: 30be456d7ec83e529fa0170f39bdaed4f3722f3eebf0b062332dd003f704443170839331d9478494d3a3413605e0ea2db08b25ab8792256de27627802600afde
|
data/.circleci/config.yml
CHANGED
|
@@ -6,14 +6,14 @@ orbs:
|
|
|
6
6
|
jobs:
|
|
7
7
|
test:
|
|
8
8
|
docker:
|
|
9
|
-
- image: cimg/ruby:
|
|
9
|
+
- image: cimg/ruby:4.0.6-node
|
|
10
10
|
|
|
11
11
|
steps:
|
|
12
12
|
- checkout
|
|
13
13
|
|
|
14
14
|
- run:
|
|
15
15
|
name: Install Bundler
|
|
16
|
-
command: gem install bundler
|
|
16
|
+
command: gem install bundler -v 4.0.22
|
|
17
17
|
|
|
18
18
|
- run:
|
|
19
19
|
name: Install dependencies
|
|
@@ -18,23 +18,27 @@ jobs:
|
|
|
18
18
|
with:
|
|
19
19
|
persist-credentials: false
|
|
20
20
|
|
|
21
|
-
- name: Set up Ruby
|
|
21
|
+
- name: Set up Ruby 4.0.6
|
|
22
22
|
uses: ruby/setup-ruby@v1
|
|
23
23
|
with:
|
|
24
|
-
ruby-version: '
|
|
25
|
-
bundler: '4.0.
|
|
24
|
+
ruby-version: '4.0.6'
|
|
25
|
+
bundler: '4.0.22'
|
|
26
26
|
bundler-cache: true
|
|
27
27
|
|
|
28
28
|
- name: Configure RubyGems Credentials
|
|
29
|
-
uses: rubygems/configure-rubygems-credentials@
|
|
29
|
+
uses: rubygems/configure-rubygems-credentials@v2.1.0
|
|
30
30
|
|
|
31
31
|
- name: Build gem
|
|
32
32
|
run: |
|
|
33
|
-
echo "GEM_FILE=$(ruby -e 'spec = Gem::Specification.load("tessitura_rest.gemspec"); print "#{spec.name}-#{spec.version}.gem"')" >> "$GITHUB_ENV"
|
|
34
33
|
gem build tessitura_rest.gemspec
|
|
34
|
+
echo "GEM_FILE=$(ls tessitura_rest-*.gem)" >> "$GITHUB_ENV"
|
|
35
35
|
|
|
36
36
|
- name: Publish gem
|
|
37
37
|
run: gem push "$GEM_FILE"
|
|
38
38
|
|
|
39
39
|
- name: Remove gem build file
|
|
40
|
-
|
|
40
|
+
if: always()
|
|
41
|
+
run: |
|
|
42
|
+
if [ -n "${GEM_FILE:-}" ]; then
|
|
43
|
+
rm -f "$GEM_FILE"
|
|
44
|
+
fi
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.6
|
data/README.md
CHANGED
|
@@ -53,30 +53,48 @@ followed by the method and arguments you would like to use.
|
|
|
53
53
|
instance's settings.
|
|
54
54
|
3. Create a .env file and set these values:
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
56
|
+
|
|
57
|
+
| Section | Variable | Description |
|
|
58
|
+
|--------------------------|--------------------------------|---------------------------------------------------------------------------------------|
|
|
59
|
+
| Authentication | TESSITURA_v16_URL | The url to your Test/Staging TessituraRest REST instance |
|
|
60
|
+
| | TESSITURA_USERNAME | The username to authenticate to your TessituraRest REST instance |
|
|
61
|
+
| | TESSITURA_PASSWORD | The password to authenticate to your TessituraRest REST instance |
|
|
62
|
+
| Web sessions | SESSION_KEY | An existing session key in your TessituraRest instance |
|
|
63
|
+
| | LOGGED_IN | A session key whose constituent has been logged in via login_using_email |
|
|
64
|
+
| | RETURN_TICKET_KEY | A logged in session that contains a exchangeable ticket |
|
|
65
|
+
| | WEB_LOGIN | An email address tied to a usable web login on the test instance |
|
|
66
|
+
| | LOGIN_PASSWORD | The password for WEB_LOGIN |
|
|
67
|
+
| | EMAIL | An email tied to an existing web login in your instance |
|
|
68
|
+
| Constituents | CONSTITUENT_ID | An active constituent in your instance |
|
|
69
|
+
| | HOUSEHOLD_ID | An active household constituent (constituent_type = 9) with at least two affiliates |
|
|
70
|
+
| | SCALPER_ID | Any active constituent that has constituencies attached |
|
|
71
|
+
| | PHONE_ID | The ID of an existing phone record on a constituent |
|
|
72
|
+
| | ATTRIBUTE_ID | An active attribute (TR_KEYWORDS) whose data type accepts the test value |
|
|
73
|
+
| | CSI_ID | The ID of an open customer service inquiry in your instance |
|
|
74
|
+
| | PATRON_ID | The patron ID of a user whom submits CSIs |
|
|
75
|
+
| | ACTION_ID | The ID of an action made against a customer service inquiry in your instance |
|
|
76
|
+
| | ACTION_TYPE | A valid action type that can be attributed to an action on a customer service inquiry |
|
|
77
|
+
| | CREDIT_CARD_ACCOUNT_ID | An existing stored credit-card account ID (safe to delete in test) |
|
|
78
|
+
| | APPEAL_ID | An active appeal Id |
|
|
79
|
+
| Productions and pricing | PRODUCTION_ID | An active production season Id with at least one performance |
|
|
80
|
+
| | PERFORMANCE_ID | An active performance ID under that production season |
|
|
81
|
+
| | PRICE_TYPE_ID | An active price type ID |
|
|
82
|
+
| | SEASON_ID | An active season Id used by Web/Session order search |
|
|
83
|
+
| | WEB_CART_TEXT | the ID to the pricing rule you have setup for Cart |
|
|
84
|
+
| | PROMO_CODE | A valid integer tied to an active promotion code |
|
|
85
|
+
| | PROMO_CODE_STRING | The matching string for that promotion code |
|
|
86
|
+
| Payments and funds | FUND | An active fund to apply contributions to |
|
|
87
|
+
| | FUND2 | A second active fund (used by add_membership_by_amount) |
|
|
88
|
+
| | MEMBER | An active membership level |
|
|
89
|
+
| | CURRENT_USER | Constituent Id with an on-account balance (typically same as CONSTITUENT_ID) |
|
|
90
|
+
| | ON_ACCOUNT | The PaymentMethodId used to filter on-account balances |
|
|
91
|
+
| | PAYMENT_ID | An active payment auth ID allowing on-account contributions in cart |
|
|
92
|
+
| | GIFT_CARD_NO | A valid gift certificate number that has been purchased |
|
|
93
|
+
| | APPLIED_GC | A valid gift certificate number that can be applied to a cart |
|
|
94
|
+
| Orders & email templates | ORDER_ID | An existing Order Id (used by Orders and order-confirmation email specs) |
|
|
95
|
+
| | PROFILE_ID | A valid email template profile ID used when sending mail |
|
|
96
|
+
| | TEMPLATE_ID | Email template ID to send Forgot Password emails |
|
|
97
|
+
| | ORDER_CONFIRMATION_TEMPLATE_ID | Email template ID for order confirmation emails |
|
|
80
98
|
|
|
81
99
|
To run the tests:
|
|
82
100
|
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
module PaymentComponent
|
|
2
|
-
def fetch_payment_component(amount, card_brands, constituent = nil, options = {})
|
|
2
|
+
def fetch_payment_component(amount, card_brands, constituent = nil, payment_types = nil, options = {})
|
|
3
3
|
card_brands ||= ['amex', 'mc', 'discover', 'visa']
|
|
4
4
|
parameters =
|
|
5
5
|
{
|
|
6
6
|
'Amount': amount,
|
|
7
7
|
'ConstituentId': constituent,
|
|
8
8
|
'CardBrandsToInclude': card_brands,
|
|
9
|
+
'PaymentTypesToInclude': payment_types,
|
|
9
10
|
}
|
|
10
11
|
options.merge!(basic_auth: @auth, headers: @headers)
|
|
11
12
|
options.merge!(:body => parameters.to_json)
|
data/tessitura_rest.gemspec
CHANGED
|
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
5
5
|
require 'tessitura_rest/version'
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |spec|
|
|
8
|
-
spec.required_ruby_version = '>= 3.3
|
|
8
|
+
spec.required_ruby_version = '>= 3.3'
|
|
9
9
|
spec.name = 'tessitura_rest'
|
|
10
10
|
spec.version = TessituraRest::VERSION
|
|
11
11
|
spec.authors = ['Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald, Jared Blumer']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tessitura_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald, Jared Blumer
|
|
@@ -282,14 +282,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
282
282
|
requirements:
|
|
283
283
|
- - ">="
|
|
284
284
|
- !ruby/object:Gem::Version
|
|
285
|
-
version: 3.3
|
|
285
|
+
version: '3.3'
|
|
286
286
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
287
287
|
requirements:
|
|
288
288
|
- - ">="
|
|
289
289
|
- !ruby/object:Gem::Version
|
|
290
290
|
version: '0'
|
|
291
291
|
requirements: []
|
|
292
|
-
rubygems_version: 4.0.
|
|
292
|
+
rubygems_version: 4.0.16
|
|
293
293
|
specification_version: 4
|
|
294
294
|
summary: Rest API Endpoint for the Tessitura Rest API (v16+).
|
|
295
295
|
test_files: []
|