tessitura_rest 0.3.7 → 0.3.8
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.rb +1 -0
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/payment_plan_extension.rb +27 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f813fdecac69ab4304841b5d27830057d8c1bb72
|
4
|
+
data.tar.gz: 0cc6d86c57a94a7d4f8093859b1da44154f37700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f95b7b1a3ac8e1efc3ca777b4f92fe3300322d1d5146838c6f55b1126020b533d53fbf53e0ade63037b225148989312a7f9e0017a114c760dde042675a29d05
|
7
|
+
data.tar.gz: 05a12bba8dbacbf839698af7a683da2394795833ca5288f94855bb6b0c6551d7cd1b4cd9b0654027da5633d68f9efe21ca11d2b087ed831e66be69219b24c226
|
data/lib/tessitura_rest.rb
CHANGED
@@ -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.
|
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-
|
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
|