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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ebd2cc83324d691c7f33290eead3a0bd285ff590ee25abb7052ad52af6f713d
4
- data.tar.gz: 460fe76f83a487ad77e7a830539013ea9d8d60e7421bfbcae15c89dc2ded1f83
3
+ metadata.gz: 6bded4fc961a7fd60808e7f79ac6d8d6bb35a3216e59541dad7fab0dcd6c2925
4
+ data.tar.gz: f970b416ff5321f13a6ba742a8c690466cc6d71992c20f8f3112e45ece36105c
5
5
  SHA512:
6
- metadata.gz: c9551906c8912019f44cf7beae5ae8c6d33ebe0a0e37f08b2dc34fab57d80cb2c622e8f5be734221c0adfe074cac29d4a9b22f9c512eac9b43d6187461a0cb48
7
- data.tar.gz: cc29f3ff6e14406e4f5b95ae6f53ce49228634d10c3b7c35943dd06de3acecb65736240c5474e369d7eb421d17c8d43778c03bc91bfea6b4e052ca1f765376e0
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:3.3.1-node
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 3.3.1
21
+ - name: Set up Ruby 4.0.6
22
22
  uses: ruby/setup-ruby@v1
23
23
  with:
24
- ruby-version: '3.3.1'
25
- bundler: '4.0.1'
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@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/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.3.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
- * 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,4 +1,4 @@
1
- require 'cgi'
1
+ require 'cgi/escape'
2
2
 
3
3
  module WebLogins
4
4
  def get_web_login(email, login_type, options = {})
@@ -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.4.0'.freeze
3
3
  end
@@ -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.1'
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.3.1
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.1
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.1
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: []