tessitura_rest 1.3.5 → 1.3.6
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/version.rb +1 -1
- data/lib/tessitura_rest/web/payment_plan_extension.rb +26 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b0fd3da7117b08dbe595c6c1aea4137a5c07dac1589597eda2467a1ee205a7
|
4
|
+
data.tar.gz: 3237d1d920789df3749577c00b5776b3ebecf7df3f429a932fe3c55bc6f55202
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27a64b0d79da784bc737b5d0ad509b64aefcd7a5c7c230b6b5869cf5883b7781f59bfeb6ba936e401a4470317dbbee86a27f4d39c6c4e8085b179e6b011a04ce
|
7
|
+
data.tar.gz: 40fd4e723a4ab7848581af6a93adaeddee4a03dc5ba5d1ad88fcc9c6fd10e1e4bcdc44d59e3d8efa436106e0e6703d30a2001f71085ba48921d0c174aae3404f
|
@@ -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.6
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|