tessitura_rest 0.3.7 → 0.3.8

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: 676c9c6fab9014298c8d0a5a1fdbbed4d59b3da6
4
- data.tar.gz: 1467e4fc3222fd52097f678ecdd6ec2d3668c89d
3
+ metadata.gz: f813fdecac69ab4304841b5d27830057d8c1bb72
4
+ data.tar.gz: 0cc6d86c57a94a7d4f8093859b1da44154f37700
5
5
  SHA512:
6
- metadata.gz: 41df5b5e32fdce95b443325a6b330f5162966f63038da96fa81345aa7a01bff7795d93c4e433f0c1d6287de6da96e00a26e2f06aa5b8fcec53632e947c20daeb
7
- data.tar.gz: 8dd75435285b3c37f586832c4ebe9bb848101100e9ed155792cc20fcc0591fc013db571543aeb9b6c89293a8229d7b62e2bde2d0aa3294cb9331ff5ced6850de
6
+ metadata.gz: 3f95b7b1a3ac8e1efc3ca777b4f92fe3300322d1d5146838c6f55b1126020b533d53fbf53e0ade63037b225148989312a7f9e0017a114c760dde042675a29d05
7
+ data.tar.gz: 05a12bba8dbacbf839698af7a683da2394795833ca5288f94855bb6b0c6551d7cd1b4cd9b0654027da5633d68f9efe21ca11d2b087ed831e66be69219b24c226
@@ -21,6 +21,7 @@ class TessituraRest
21
21
  include Login
22
22
  include Orders
23
23
  include Package
24
+ include PaymentPlanExtension
24
25
  include PerformanceExtension
25
26
  include Phones
26
27
  include PriceTypes
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -0,0 +1,27 @@
1
+ module PaymentPlanExtension
2
+
3
+ def add_billing_payment_plan(session_key, billing_id, billing_type_id, 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
+ }
11
+ options.merge!({:basic_auth => @auth})
12
+ options.merge!(:body => parameters)
13
+ response = self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Payments/Plan/Schedule"), options)
14
+ JSON.parse(response.body)
15
+ end
16
+
17
+ def validate_payment_plan(session_key, options={})
18
+ parameters =
19
+ {
20
+ 'ValidatePaymentPlan': true
21
+ }
22
+ options.merge!({:basic_auth => @auth})
23
+ options.merge!(:body => parameters)
24
+ response = self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Validate"), options)
25
+ JSON.parse(response.body)
26
+ end
27
+ 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.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,6 +154,7 @@ files:
154
154
  - lib/tessitura_rest/version.rb
155
155
  - lib/tessitura_rest/web/cart.rb
156
156
  - lib/tessitura_rest/web/login.rb
157
+ - lib/tessitura_rest/web/payment_plan_extension.rb
157
158
  - lib/tessitura_rest/web/session.rb
158
159
  - tessitura_rest.gemspec
159
160
  homepage: https://github.com/pgharts/tessitura