tessitura_rest 0.2.0 → 0.2.2

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
  SHA1:
3
- metadata.gz: 95a9cc50cc344b9c80778e876bc6633be872616e
4
- data.tar.gz: aa361865be1e795aa7b0abd8bddc133ec646ddfa
3
+ metadata.gz: 8f51fd1e2c2a381c9bda693687ed38fc9db1a7ec
4
+ data.tar.gz: 01b816e1d1c01eb7a739b2ca17451d5c0354b621
5
5
  SHA512:
6
- metadata.gz: 7bd91782aa6faaebac196bbad0275261560720ee9ff39df633a05e51e38d88cd320235a7ab63bc8bcd210eb608504a6e35b2ae40355900b172fb67eb73549da7
7
- data.tar.gz: c6e60f25add920b7124d4eae20b97f413934875af7728120a20133a4d67a302672767e838994e7ba7bb7c550e566f467946b83387b882d4c99c3bc73381cfb5d
6
+ metadata.gz: 683c0042f60cb3c1582d572d165bbcf77729d66f1292c5d5576574faf01923046d7595f6b84bc1b99b5414e1b5d1bd9aea2ba4e6181c1589e6538e745383b218
7
+ data.tar.gz: 628da593fb8f7a5ea24688e6bcd8469ae70dff5fb2f7aaa2b97392494f727464631de86dbcd9393b608dd0df0c6784c21d87322d950c3aafa2379fcf71a9ef6c
@@ -12,6 +12,7 @@ class TessituraRest
12
12
  include Addresses
13
13
  include Attributes
14
14
  include Constituencies
15
+ include GiftCertificates
15
16
  include WebLogins
16
17
  include Issues
17
18
  include Actions
@@ -0,0 +1,7 @@
1
+ module GiftCertificates
2
+
3
+ def get_gift_certificate_info (gift_certificate_number, options={})
4
+ options.merge!({:basic_auth => @auth})
5
+ response = self.class.get(base_api_endpoint("Finance/GiftCertificates/#{gift_certificate_number}"), options)
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -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.0
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-16 00:00:00.000000000 Z
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