tessitura_rest 1.3.5 → 1.3.7

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: a2447801540ac9e78b194701c7b80a96576c62d19ad93ebec4c41fe69e53ce1e
4
- data.tar.gz: 15f8355e935af83bd164f8c4d87daf378a70e1b0d4f7cd919fb3458136b94c2f
3
+ metadata.gz: 4b63297217de813e0f85f0a084f84114e4f7f07d30494412af57fedeae7109c9
4
+ data.tar.gz: 77afcb8d828ff0fdf6f91eb36a6966f8fd02d96c91c060d2ecb2f5cffb5f6c19
5
5
  SHA512:
6
- metadata.gz: f05b661ca41feef349f8aa0c38b6be3930529776088127e68964c43be4f538e2878718e1f0f365b136ca0db759ad8e0ed7f0c7a9a709cbeff51328928f031845
7
- data.tar.gz: 9070e83579b5b06a5c2084fb56e0c826da27f6b26d87fae8b0282ced6c51dc9b44e06f1770c682861a74018ff2576451b9cda9f80cce30045150ad4cd4f0af08
6
+ metadata.gz: 0e7e4561647593ebaeb89f6435fcae4d3f05d76e5e04df145796c4ae0b8934254ed911335eac8df197e455f40255bd004f89e223ce526f08176c77c785962941
7
+ data.tar.gz: 43e6876be0fceb51d0ef0c1bdee0d230ffc7ccd4b6c7f4094ed19728d2a51e404735d02e0e52c26be4eed89db8d34b35fb0f5c1ff147acad59773860c696755f
@@ -1,5 +1,5 @@
1
1
  module PaymentComponent
2
- def fetch_payment_component(amount, constituent = 0, options = {})
2
+ def fetch_payment_component(amount, constituent = nil, options = {})
3
3
  card_brands = ['amex', 'mc', 'visa', 'discover']
4
4
  parameters =
5
5
  {
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.3.5'.freeze
2
+ VERSION = '1.3.7'.freeze
3
3
  end
@@ -19,6 +19,21 @@ module PaymentPlanExtension
19
19
  JSON.parse(response.body)
20
20
  end
21
21
 
22
+ def add_tms_billing_payment_plan(session_key, billing_id, billing_type_id, account_id, start_date = nil, end_date = nil, options = {})
23
+ parameters =
24
+ {
25
+ 'BillingScheduleId': billing_id,
26
+ 'BillingTypeId': billing_type_id,
27
+ 'StartDate': start_date,
28
+ 'EndDate': end_date,
29
+ 'AccountId': account_id,
30
+ }
31
+ options.merge!(basic_auth: @auth, headers: @headers)
32
+ options.merge!(:body => parameters)
33
+ response = self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Payments/Plan/Schedule"), options)
34
+ JSON.parse(response.body)
35
+ end
36
+
22
37
  def preview_billing_payment_plan(session_key, billing_id, start_date = nil, end_date = nil, options = {})
23
38
  parameters =
24
39
  {
@@ -43,6 +58,17 @@ module PaymentPlanExtension
43
58
  JSON.parse(response.body)
44
59
  end
45
60
 
61
+ def update_payment_plan(session_key, account_id, billing_type_id, options = {})
62
+ parameters =
63
+ {
64
+ 'AccountId': account_id,
65
+ 'BillingTypeId': billing_type_id,
66
+ }
67
+ options.merge!(basic_auth: @auth, headers: @headers)
68
+ options.merge!(:body => parameters)
69
+ self.class.put(base_api_endpoint("Web/Cart/#{session_key}/Payments/Plan"), options)
70
+ end
71
+
46
72
  def remove_payment_plan(session_key, options = {})
47
73
  options.merge!(basic_auth: @auth, headers: @headers)
48
74
  self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/Payments/Plan"), options)
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: 1.3.5
4
+ version: 1.3.7
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: 2023-05-15 00:00:00.000000000 Z
11
+ date: 2023-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler