tessitura_rest 2.3.1 → 2.3.2
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/.github/workflows/gem-push.yml +7 -3
- data/README.md +42 -24
- data/lib/tessitura_rest/payment_gateway/payment_component.rb +2 -1
- data/lib/tessitura_rest/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a220de3953ecb3cc7c68b136bc10f430836b77b72ccfca3aa239b168310fd9d
|
|
4
|
+
data.tar.gz: 998177d84ba006dc34f3329efb76cb347fcecbb6a6e101bb6a26b76a9e473010
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79431e5dba60ecdd74918fe31cbed961d8193b8d46511fb4f12d2afc077c9f793303390b16f63c09dea15eec1ba923908652a9d5df3f83212079182fc3e82158
|
|
7
|
+
data.tar.gz: c20e87cc9eec97e119e98934236abcc24396f72377ded9cdd7c0014b857afa25e4b67ea08f871d0214e821c91c444f0036026a4c4fc66be792034e21f5ac9c31
|
|
@@ -26,15 +26,19 @@ jobs:
|
|
|
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/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)
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tessitura_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald, Jared Blumer
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2026-07-08 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: activesupport
|
|
@@ -275,6 +276,7 @@ homepage: https://github.com/pgharts/tessitura
|
|
|
275
276
|
licenses:
|
|
276
277
|
- MIT
|
|
277
278
|
metadata: {}
|
|
279
|
+
post_install_message:
|
|
278
280
|
rdoc_options: []
|
|
279
281
|
require_paths:
|
|
280
282
|
- lib
|
|
@@ -289,7 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
289
291
|
- !ruby/object:Gem::Version
|
|
290
292
|
version: '0'
|
|
291
293
|
requirements: []
|
|
292
|
-
rubygems_version:
|
|
294
|
+
rubygems_version: 3.5.9
|
|
295
|
+
signing_key:
|
|
293
296
|
specification_version: 4
|
|
294
297
|
summary: Rest API Endpoint for the Tessitura Rest API (v16+).
|
|
295
298
|
test_files: []
|