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 +4 -4
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/cart.rb +21 -0
- data/lib/tessitura_rest/web/payment_plan_extension.rb +0 -21
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 599894a378925853cb681076553d16726048ef0dac2dd61a8ff4bd72be78b058
|
4
|
+
data.tar.gz: 05ff980e050b8dfd76d05c0e83310dce43ed77129aba79d0772665d600868268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2605c2be1543c30d20679d1bf465e17f59458c7025f011ffb86ebc460c19177ae0c83a875f644bb3cf0e30e5eaa995719906d6871943c1e700aca1077a53f1cd
|
7
|
+
data.tar.gz: d0d4a73c21ad9818ae68cf546a0a116110fa38680e781cfeb4aba576ba20d3b4b652ec8ba932e8c69e38b16a0131564af52888ce0dc0184785d859cb572b162e
|
@@ -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
|
+
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-
|
11
|
+
date: 2024-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|