tessitura_rest 0.2.3 → 0.2.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d21e4f67b94d597806424d9997860eeef78b5861
4
- data.tar.gz: 49efc3af103c97f0aecc95282d9f5c0e53e84b1f
3
+ metadata.gz: 2b20b4ffe5f60dff2b6caeb4c33a27c404fd0629
4
+ data.tar.gz: 5cfccce4cd0724e3d193861a83b5f02604a45b4f
5
5
  SHA512:
6
- metadata.gz: a560d62e90fbd1e5a5e43cdc8977abe53cb07a60298efa229fff6f9cf1df45d43940320116509fb911a7fc07120915449fdc3f003d192dfa69a7ad96c6cf97d4
7
- data.tar.gz: 546ee20c0a34bcb6faffa2549a2490c6c6a611f36a2469a112cabb33a811308871cc313033d7e97d2b93b5d3bef0681e7df374838822df942a934539355016bc
6
+ metadata.gz: c644aff36c02178ec30dddb0040af8c8879519e27c32f071f71497cc6915df739df50d2bcf1449c92c8b62b6ec5f2cd59812eae722cf981f365e217c40172bd3
7
+ data.tar.gz: 4ad131d400735d282a2e2bce5a2b1d839809acb93eb8f6f5a8fdb9d9513f1d64c9a70ea244337daf2eea38c56b557f8fcd5f861441b5698df8c3ef2aa21f0045
@@ -0,0 +1,7 @@
1
+ module Countries
2
+
3
+ def get_all_countries (options={})
4
+ options.merge!({:basic_auth => @auth})
5
+ response = self.class.get(base_api_endpoint("ReferenceData/Countries"), options)
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -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
@@ -5,20 +5,22 @@ require 'httparty'
5
5
 
6
6
  class TessituraRest
7
7
  include HTTParty
8
- include Session
9
- include SecurityUserGroups
8
+
10
9
  include Accounts
11
- include Cart
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.3
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-03-26 00:00:00.000000000 Z
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