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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ebd2cc83324d691c7f33290eead3a0bd285ff590ee25abb7052ad52af6f713d
4
- data.tar.gz: 460fe76f83a487ad77e7a830539013ea9d8d60e7421bfbcae15c89dc2ded1f83
3
+ metadata.gz: 6a220de3953ecb3cc7c68b136bc10f430836b77b72ccfca3aa239b168310fd9d
4
+ data.tar.gz: 998177d84ba006dc34f3329efb76cb347fcecbb6a6e101bb6a26b76a9e473010
5
5
  SHA512:
6
- metadata.gz: c9551906c8912019f44cf7beae5ae8c6d33ebe0a0e37f08b2dc34fab57d80cb2c622e8f5be734221c0adfe074cac29d4a9b22f9c512eac9b43d6187461a0cb48
7
- data.tar.gz: cc29f3ff6e14406e4f5b95ae6f53ce49228634d10c3b7c35943dd06de3acecb65736240c5474e369d7eb421d17c8d43778c03bc91bfea6b4e052ca1f765376e0
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@v1.0.0
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
- run: rm *.gem
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
- * TESSITURA_URL # the url to your Test/Staging TessituraRest REST instance
57
- * USERNAME # the username to authenticate to your TessituraRest REST instance
58
- * PASSWORD # the password to authenticate to your TessituraRest REST instance
59
- * WEB_CART_TEXT # the ID to the pricing rule you have setup for Cart
60
- * SESSION_KEY # an existing session key in your TessituraRest instance
61
- * EMAIL # an email tied to an existing web login in your TessituraRest instance
62
- * CONSTITUENT_ID # an active constituent in your TessituraRest instance
63
- * ATTRIBUTE_ID # an active Attribute in your TessituraRest instance
64
- * SCALPER_ID # any active constituent in your TessituraRest instance
65
- * CSI_ID # the id of an open customer service inquiry in your TessituraRest instance
66
- * PATRON_ID # the patron ID of a user whom submits CSIs
67
- * ACTION_ID # the id of an action made against a customer service inquiry in your TessituraRest instance
68
- * ACTION_TYPE # a valid action type that can be attributed to an action on a customer service inquiry
69
- * PROMO_CODE # a valid integer tied to an active promotion code
70
- * PROMO_CODE_STRING # a valid string tied to an active promotion code
71
- * FUND # an active fund to apply money to
72
- * FUND2 # another active fund to apply money to
73
- * MEMBER # an active membership level
74
- * PAYMENT_ID # active payment auth ID
75
- * GIFT_CARD_NO # a valid gift certificate number that has been purchased
76
- * APPLIED_GC # a valid gift certificate number that can be used to purchase products
77
- * RETURN_TICKET_KEY # a logged in session that contains a exchangeable ticket
78
- * TEMPLATE_ID # a valid email template ID to send Forgot Password emails
79
- * PROFILE_ID # a valid email template profile ID
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)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.3.1'.freeze
2
+ VERSION = '2.3.2'.freeze
3
3
  end
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.1
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: 1980-01-02 00:00:00.000000000 Z
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: 4.0.1
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: []