tessitura_rest 2.0.4 → 2.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d1d3e21a921fc09feb4e8d7ec264f473cbe66ad5dc10b51ac4c5b50a6209676
4
- data.tar.gz: 6c8619a26a15a2e6f4b169aad03f57f4669928dadd180181edadf64771bb3db5
3
+ metadata.gz: 65c4e3cbe0ec1a45f3bb17f230cda27137fd29fe2ccfd3685af204ec41af49df
4
+ data.tar.gz: 623bebdb371ce4ca81f0444abd2fca3b44b32fb827d2b67089fc101e18a53382
5
5
  SHA512:
6
- metadata.gz: aec7f91f212942110db4b9dd7738fe8eee6cbf66d59d07c89c7533ba20d76778cc02a9dd3f1610457c1ab21d58a70b31f0cbf4b238004a5c26bc43d0247499da
7
- data.tar.gz: f2ec563c2a94ce2733a53e4175a25f3c69429d4c3d0d7489b4a9b7b852384339468e3bc5f2a923c2cbc6db95d35f6ad9e6f890a5dbe7baf86764edf70121b647
6
+ metadata.gz: 72fbebad2ef07d619b0d980685debe3c18c268f3d2c844ce0c3f6545735cd5d9759fcb6118813539b9eeb9446184a5fca89156a59e737fa09cb403b6098d9ea9
7
+ data.tar.gz: fe6045ba43df982912455cb277d16232cd885f7b1b08638f9ae61d119e24086474b171e55ddecab797c970df582cf36c82ea1376c73f3759650caf7390786543
@@ -0,0 +1,6 @@
1
+ module Campaigns
2
+ def get_campaign_by_fund_id(fund, options = {})
3
+ options.merge!(basic_auth: @auth, headers: @headers)
4
+ self.class.get(base_api_endpoint("Finance/CampaignFunds?fundId=#{fund}&asOfDateTime=#{DateTime.now}"), options)
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.0.4'.freeze
2
+ VERSION = '2.0.6'.freeze
3
3
  end
@@ -58,6 +58,27 @@ module Cart
58
58
  self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/Payments/GiftCertificate/#{gift_certificate_number}"), options)
59
59
  end
60
60
 
61
+ def add_gift(session_key, amount, fund, options = {})
62
+ parameters = {
63
+ 'Amount': amount,
64
+ 'FundId': fund,
65
+ }
66
+ options.merge!(basic_auth: @auth, headers: @headers)
67
+ options.merge!(:body => parameters.to_json)
68
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Gifts"), options)
69
+ end
70
+
71
+ def add_membership_by_amount(session_key, amount, fund, options = {})
72
+ parameters =
73
+ {
74
+ 'MembershipAmount': amount,
75
+ 'FundId': fund,
76
+ }
77
+ options.merge!(basic_auth: @auth, headers: @headers)
78
+ options.merge!(:body => parameters.to_json)
79
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Memberships/AmountFirst"), options)
80
+ end
81
+
61
82
  def add_contribution(session_key, amount, fund, membership_level, renew = false, upgrade = false, options = {})
62
83
  parameters =
63
84
  {
@@ -1,25 +1,4 @@
1
1
  module PaymentPlanExtension
2
- # to be deprecated
3
- def add_billing_payment_plan(session_key, billing_id, billing_type_id, name, number, month, year, start_date = nil, end_date = nil, options = {})
4
- parameters =
5
- {
6
- 'BillingScheduleId': billing_id,
7
- 'BillingTypeId': billing_type_id,
8
- 'StartDate': start_date,
9
- 'EndDate': end_date,
10
- 'Card': {
11
- 'Name': name,
12
- 'Number': number,
13
- 'ExpiryMonth': month,
14
- 'ExpiryYear': year,
15
- },
16
- }
17
- options.merge!(basic_auth: @auth, headers: @headers)
18
- options.merge!(:body => parameters.to_json)
19
- response = self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Payments/Plan/Schedule"), options)
20
- JSON.parse(response.body)
21
- end
22
-
23
2
  def add_tms_billing_payment_plan(session_key, billing_id, billing_type_id, account_id, start_date = nil, end_date = nil, options = {})
24
3
  parameters =
25
4
  {
@@ -15,6 +15,7 @@ class TessituraRest
15
15
  include Constituencies
16
16
  include Constituents
17
17
  include Countries
18
+ include Campaigns
18
19
  include Diagnostics
19
20
  include Email
20
21
  include GiftCertificates
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: 2.0.4
4
+ version: 2.0.6
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: 2024-07-03 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -143,6 +143,7 @@ files:
143
143
  - lib/tessitura_rest/custom/local_procedure.rb
144
144
  - lib/tessitura_rest/diagnostics/diagnostics.rb
145
145
  - lib/tessitura_rest/finance/appeals.rb
146
+ - lib/tessitura_rest/finance/campaigns.rb
146
147
  - lib/tessitura_rest/finance/gift_certificates.rb
147
148
  - lib/tessitura_rest/payment_gateway/payment_component.rb
148
149
  - lib/tessitura_rest/payment_gateway/payment_gateway.rb