tessitura_rest 0.2.4 → 0.2.5

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
  SHA1:
3
- metadata.gz: 2b20b4ffe5f60dff2b6caeb4c33a27c404fd0629
4
- data.tar.gz: 5cfccce4cd0724e3d193861a83b5f02604a45b4f
3
+ metadata.gz: ea4698b64035bc0ca7c514ea96a86a768ba96daa
4
+ data.tar.gz: 19df2c7631c3cbc9763a92df6f33fb916ecc7249
5
5
  SHA512:
6
- metadata.gz: c644aff36c02178ec30dddb0040af8c8879519e27c32f071f71497cc6915df739df50d2bcf1449c92c8b62b6ec5f2cd59812eae722cf981f365e217c40172bd3
7
- data.tar.gz: 4ad131d400735d282a2e2bce5a2b1d839809acb93eb8f6f5a8fdb9d9513f1d64c9a70ea244337daf2eea38c56b557f8fcd5f861441b5698df8c3ef2aa21f0045
6
+ metadata.gz: 4c0f6fbaaa3054c8547e51b0bc9cc9a61a0968079ede9f7693db96971eefd714711054783250690b323e3fedd695545b3557dcf1214b75d609f83ac84c092e65
7
+ data.tar.gz: f929331475c3751987d8a5231b05bf84c98bda34989c9a3288b888bf67a2004bf34519c6d04cac7888e79876a7f90f3347dedd81a4608880b5a05b5e05228550
@@ -5,7 +5,7 @@ require 'httparty'
5
5
 
6
6
  class TessituraRest
7
7
  include HTTParty
8
-
8
+
9
9
  include Accounts
10
10
  include Actions
11
11
  include Addresses
@@ -20,6 +20,7 @@ class TessituraRest
20
20
  include Package
21
21
  include Session
22
22
  include SecurityUserGroups
23
+ include States
23
24
  include WebLogins
24
25
 
25
26
  def initialize(options={})
@@ -0,0 +1,7 @@
1
+ module States
2
+
3
+ def get_all_states (options={})
4
+ options.merge!({:basic_auth => @auth})
5
+ response = self.class.get(base_api_endpoint("ReferenceData/States"), options)
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -35,6 +35,11 @@ module Session
35
35
  JSON.parse(response.body)
36
36
  end
37
37
 
38
+ def load_existing_order(key, order_id, options={})
39
+ options.merge!({:basic_auth => @auth})
40
+ self.class.post(base_api_endpoint("Web/Session/#{key}/LoadOrder/#{order_id}"), options)
41
+ end
42
+
38
43
  def get_promotion(key, code, options={})
39
44
  parameters =
40
45
  {
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
4
+ version: 0.2.5
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-04-20 00:00:00.000000000 Z
11
+ date: 2018-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -138,6 +138,7 @@ files:
138
138
  - lib/tessitura_rest/diagnostics/diagnostics.rb
139
139
  - lib/tessitura_rest/finance/gift_certificates.rb
140
140
  - lib/tessitura_rest/reference_data/countries.rb
141
+ - lib/tessitura_rest/reference_data/states.rb
141
142
  - lib/tessitura_rest/security/security_user_groups.rb
142
143
  - lib/tessitura_rest/txn/package.rb
143
144
  - lib/tessitura_rest/version.rb