tessitura_rest 0.2.0 → 0.2.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f51fd1e2c2a381c9bda693687ed38fc9db1a7ec
|
4
|
+
data.tar.gz: 01b816e1d1c01eb7a739b2ca17451d5c0354b621
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 683c0042f60cb3c1582d572d165bbcf77729d66f1292c5d5576574faf01923046d7595f6b84bc1b99b5414e1b5d1bd9aea2ba4e6181c1589e6538e745383b218
|
7
|
+
data.tar.gz: 628da593fb8f7a5ea24688e6bcd8469ae70dff5fb2f7aaa2b97392494f727464631de86dbcd9393b608dd0df0c6784c21d87322d950c3aafa2379fcf71a9ef6c
|
data/lib/tessitura_rest.rb
CHANGED
@@ -33,6 +33,11 @@ module Cart
|
|
33
33
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/GiftCertificates"), options)
|
34
34
|
end
|
35
35
|
|
36
|
+
def remove_gift_certificate(session_key, gift_certificate_number, options={})
|
37
|
+
options.merge!({:basic_auth => @auth})
|
38
|
+
self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/GiftCertificates/#{gift_certificate_number}"), options)
|
39
|
+
end
|
40
|
+
|
36
41
|
def add_contribution(session_key, amount, fund, membership_level, renew=nil, upgrade=nil, options={})
|
37
42
|
parameters =
|
38
43
|
{
|
@@ -46,4 +51,25 @@ module Cart
|
|
46
51
|
options.merge!(:body => parameters)
|
47
52
|
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Contributions"), options)
|
48
53
|
end
|
54
|
+
|
55
|
+
def remove_contribution(session_key, line_item_id, options={})
|
56
|
+
options.merge!({:basic_auth => @auth})
|
57
|
+
self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/Contributions/#{line_item_id}"), options)
|
58
|
+
end
|
59
|
+
|
60
|
+
def add_on_account(session_key, amount, payment_method_id, options={})
|
61
|
+
parameters =
|
62
|
+
{
|
63
|
+
'Amount': amount,
|
64
|
+
"PaymentMethodId": payment_method_id
|
65
|
+
}
|
66
|
+
options.merge!({:basic_auth => @auth})
|
67
|
+
options.merge!(:body => parameters)
|
68
|
+
self.class.post(base_api_endpoint("Web/Cart/#{session_key}/OnAccount"), options)
|
69
|
+
end
|
70
|
+
|
71
|
+
def remove_on_account(session_key, payment_id, options={})
|
72
|
+
options.merge!({:basic_auth => @auth})
|
73
|
+
self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/OnAccount/#{payment_id}"), options)
|
74
|
+
end
|
49
75
|
end
|
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: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- lib/tessitura_rest/crm/web_logins.rb
|
137
137
|
- lib/tessitura_rest/custom/local_procedure.rb
|
138
138
|
- lib/tessitura_rest/diagnostics/diagnostics.rb
|
139
|
+
- lib/tessitura_rest/finance/gift_certificates.rb
|
139
140
|
- lib/tessitura_rest/security/security_user_groups.rb
|
140
141
|
- lib/tessitura_rest/txn/package.rb
|
141
142
|
- lib/tessitura_rest/version.rb
|