tessitura_rest 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tessitura_rest/reference_data/countries.rb +7 -0
- data/lib/tessitura_rest/version.rb +1 -1
- data/lib/tessitura_rest/web/cart.rb +12 -0
- data/lib/tessitura_rest.rb +8 -6
- 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: 2b20b4ffe5f60dff2b6caeb4c33a27c404fd0629
|
4
|
+
data.tar.gz: 5cfccce4cd0724e3d193861a83b5f02604a45b4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c644aff36c02178ec30dddb0040af8c8879519e27c32f071f71497cc6915df739df50d2bcf1449c92c8b62b6ec5f2cd59812eae722cf981f365e217c40172bd3
|
7
|
+
data.tar.gz: 4ad131d400735d282a2e2bce5a2b1d839809acb93eb8f6f5a8fdb9d9513f1d64c9a70ea244337daf2eea38c56b557f8fcd5f861441b5698df8c3ef2aa21f0045
|
@@ -77,4 +77,16 @@ module Cart
|
|
77
77
|
options.merge!({:basic_auth => @auth})
|
78
78
|
self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/OnAccount/#{payment_id}"), options)
|
79
79
|
end
|
80
|
+
|
81
|
+
def update_properties(session_key, category=0, solicitor='webapi', channel=0, options={})
|
82
|
+
options.merge!({:basic_auth => @auth})
|
83
|
+
parameters =
|
84
|
+
{
|
85
|
+
"Solicitor": solicitor,
|
86
|
+
"ChannelId": channel
|
87
|
+
}
|
88
|
+
parameters["CategoryId"] = category if category != 0
|
89
|
+
options.merge!(:body => parameters)
|
90
|
+
self.class.put(base_api_endpoint("Web/Cart/#{session_key}/Properties"), options)
|
91
|
+
end
|
80
92
|
end
|
data/lib/tessitura_rest.rb
CHANGED
@@ -5,20 +5,22 @@ require 'httparty'
|
|
5
5
|
|
6
6
|
class TessituraRest
|
7
7
|
include HTTParty
|
8
|
-
|
9
|
-
include SecurityUserGroups
|
8
|
+
|
10
9
|
include Accounts
|
11
|
-
include
|
10
|
+
include Actions
|
12
11
|
include Addresses
|
13
12
|
include Attributes
|
13
|
+
include Cart
|
14
14
|
include Constituencies
|
15
|
+
include Countries
|
16
|
+
include Diagnostics
|
15
17
|
include GiftCertificates
|
16
|
-
include WebLogins
|
17
18
|
include Issues
|
18
|
-
include Actions
|
19
19
|
include LocalProcedure
|
20
|
-
include Diagnostics
|
21
20
|
include Package
|
21
|
+
include Session
|
22
|
+
include SecurityUserGroups
|
23
|
+
include WebLogins
|
22
24
|
|
23
25
|
def initialize(options={})
|
24
26
|
@auth = {:username => ENV['TESSITURA_USERNAME'], :password => ENV['TESSITURA_PASSWORD']}
|
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.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brittany Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- lib/tessitura_rest/custom/local_procedure.rb
|
138
138
|
- lib/tessitura_rest/diagnostics/diagnostics.rb
|
139
139
|
- lib/tessitura_rest/finance/gift_certificates.rb
|
140
|
+
- lib/tessitura_rest/reference_data/countries.rb
|
140
141
|
- lib/tessitura_rest/security/security_user_groups.rb
|
141
142
|
- lib/tessitura_rest/txn/package.rb
|
142
143
|
- lib/tessitura_rest/version.rb
|