tessitura_rest 2.0.4 → 2.0.5

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: 2d1d3e21a921fc09feb4e8d7ec264f473cbe66ad5dc10b51ac4c5b50a6209676
4
- data.tar.gz: 6c8619a26a15a2e6f4b169aad03f57f4669928dadd180181edadf64771bb3db5
3
+ metadata.gz: 599894a378925853cb681076553d16726048ef0dac2dd61a8ff4bd72be78b058
4
+ data.tar.gz: 05ff980e050b8dfd76d05c0e83310dce43ed77129aba79d0772665d600868268
5
5
  SHA512:
6
- metadata.gz: aec7f91f212942110db4b9dd7738fe8eee6cbf66d59d07c89c7533ba20d76778cc02a9dd3f1610457c1ab21d58a70b31f0cbf4b238004a5c26bc43d0247499da
7
- data.tar.gz: f2ec563c2a94ce2733a53e4175a25f3c69429d4c3d0d7489b4a9b7b852384339468e3bc5f2a923c2cbc6db95d35f6ad9e6f890a5dbe7baf86764edf70121b647
6
+ metadata.gz: 2605c2be1543c30d20679d1bf465e17f59458c7025f011ffb86ebc460c19177ae0c83a875f644bb3cf0e30e5eaa995719906d6871943c1e700aca1077a53f1cd
7
+ data.tar.gz: d0d4a73c21ad9818ae68cf546a0a116110fa38680e781cfeb4aba576ba20d3b4b652ec8ba932e8c69e38b16a0131564af52888ce0dc0184785d859cb572b162e
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.0.4'.freeze
2
+ VERSION = '2.0.5'.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
  {
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.5
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