tessitura_rest 1.3.4 → 1.3.6

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: 322424ca7ae450360f9250c051359baa55bd59ee0fa98c9a7e7a3188e5ffa694
4
- data.tar.gz: 358b8b9fb2da9df563e8ccc0191e9b4b8c77a5ad967b5349f607a5009193da0b
3
+ metadata.gz: a9b0fd3da7117b08dbe595c6c1aea4137a5c07dac1589597eda2467a1ee205a7
4
+ data.tar.gz: 3237d1d920789df3749577c00b5776b3ebecf7df3f429a932fe3c55bc6f55202
5
5
  SHA512:
6
- metadata.gz: 818d95e62b76585fde92afa58973fd746f7f31f2d0100ade30ab0243a44a49fa803d512fcda6939ffce680795e3ebf1d181ef614e4fa87b47aebf7925b2fe985
7
- data.tar.gz: 04ca22569fccfc9d0bdc4896872749c32941c4ba0352d23ffae552dbe0b58999fd40e25f2bb0fb3c8ad6b1a2e2e6ff1f6f4a070910cadd2e202d944da6047d68
6
+ metadata.gz: 27a64b0d79da784bc737b5d0ad509b64aefcd7a5c7c230b6b5869cf5883b7781f59bfeb6ba936e401a4470317dbbee86a27f4d39c6c4e8085b179e6b011a04ce
7
+ data.tar.gz: 40fd4e723a4ab7848581af6a93adaeddee4a03dc5ba5d1ad88fcc9c6fd10e1e4bcdc44d59e3d8efa436106e0e6703d30a2001f71085ba48921d0c174aae3404f
@@ -11,6 +11,7 @@ module PaymentGateway
11
11
  'TransactionOrigin': 'webapi',
12
12
  'PaymentMethodId': 606,
13
13
  'ReturnUrl': return_url,
14
+ 'IsECommerce': true,
14
15
  }
15
16
  options.merge!(basic_auth: @auth, headers: @headers)
16
17
  options.merge!(:body => parameters)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.3.4'.freeze
2
+ VERSION = '1.3.6'.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.4
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-05 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler