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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b63297217de813e0f85f0a084f84114e4f7f07d30494412af57fedeae7109c9
|
4
|
+
data.tar.gz: 77afcb8d828ff0fdf6f91eb36a6966f8fd02d96c91c060d2ecb2f5cffb5f6c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e7e4561647593ebaeb89f6435fcae4d3f05d76e5e04df145796c4ae0b8934254ed911335eac8df197e455f40255bd004f89e223ce526f08176c77c785962941
|
7
|
+
data.tar.gz: 43e6876be0fceb51d0ef0c1bdee0d230ffc7ccd4b6c7f4094ed19728d2a51e404735d02e0e52c26be4eed89db8d34b35fb0f5c1ff147acad59773860c696755f
|
@@ -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.
|
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-
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|