ticketevolution-ruby 0.7.3 → 0.7.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.
Files changed (44) hide show
  1. data/README.markdown +8 -1
  2. data/lib/ticket_evolution.rb +8 -4
  3. data/lib/ticket_evolution/account.rb +1 -0
  4. data/lib/ticket_evolution/client.rb +1 -0
  5. data/lib/ticket_evolution/companies.rb +9 -0
  6. data/lib/ticket_evolution/company.rb +5 -0
  7. data/lib/ticket_evolution/core/endpoint/request_handler.rb +1 -1
  8. data/lib/ticket_evolution/core/model.rb +0 -25
  9. data/lib/ticket_evolution/core/model/parental_behavior.rb +25 -0
  10. data/lib/ticket_evolution/modules/create.rb +12 -5
  11. data/lib/ticket_evolution/modules/destroy.rb +31 -0
  12. data/lib/ticket_evolution/modules/show.rb +2 -2
  13. data/lib/ticket_evolution/rate_option.rb +5 -0
  14. data/lib/ticket_evolution/rate_options.rb +6 -0
  15. data/lib/ticket_evolution/track_detail.rb +5 -0
  16. data/lib/ticket_evolution/track_details.rb +6 -0
  17. data/lib/ticket_evolution/version.rb +1 -1
  18. data/spec/fixtures/fake.rb +3 -3
  19. data/spec/fixtures/net/core/connection.yml +124 -116
  20. data/spec/fixtures/net/endpoints/clients/create.yml +222 -178
  21. data/spec/fixtures/net/endpoints/clients/update_fail.yml +684 -605
  22. data/spec/fixtures/net/endpoints/clients/update_success.yml +604 -537
  23. data/spec/fixtures/net/endpoints/company/destroy_error.yml +120 -0
  24. data/spec/fixtures/net/endpoints/company/destroy_success.yml +284 -0
  25. data/spec/fixtures/net/endpoints/track_details/show.yml +58 -0
  26. data/spec/lib/ticket_evolution/account_spec.rb +1 -0
  27. data/spec/lib/ticket_evolution/client_spec.rb +1 -1
  28. data/spec/lib/ticket_evolution/companies_spec.rb +15 -0
  29. data/spec/lib/ticket_evolution/company_spec.rb +39 -0
  30. data/spec/lib/ticket_evolution/core/model_spec.rb +0 -18
  31. data/spec/lib/ticket_evolution/rate_option_spec.rb +8 -0
  32. data/spec/lib/ticket_evolution/rate_options_spec.rb +7 -0
  33. data/spec/lib/ticket_evolution/track_detail_spec.rb +8 -0
  34. data/spec/lib/ticket_evolution/track_details_spec.rb +32 -0
  35. data/spec/shared_examples/endpoints/create.rb +28 -8
  36. data/spec/shared_examples/endpoints/destroy.rb +67 -0
  37. data/spec/shared_examples/endpoints/show.rb +1 -1
  38. data/spec/shared_examples/models.rb +38 -0
  39. data/spec/spec_helper.rb +1 -0
  40. data/spec/support/stub_models.rb +20 -0
  41. data/ticketevolution-ruby.gemspec +1 -1
  42. metadata +55 -27
  43. data/lib/ticket_evolution/core/models/samples.rb +0 -11
  44. data/lib/ticket_evolution/core/samples.rb +0 -6
@@ -4,4 +4,5 @@ describe TicketEvolution::Account do
4
4
  subject { TicketEvolution::Account }
5
5
 
6
6
  it_behaves_like "a ticket_evolution model"
7
+ it_behaves_like "a parental model"
7
8
  end
@@ -1,7 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe TicketEvolution::Client do
4
- let(:klass) { TicketEvolution::Client }
5
4
  subject { TicketEvolution::Client }
6
5
 
7
6
  describe "when calling a nested endpoint method" do
@@ -18,6 +17,7 @@ describe TicketEvolution::Client do
18
17
  end
19
18
 
20
19
  it_behaves_like "a ticket_evolution model"
20
+ it_behaves_like "a parental model"
21
21
 
22
22
  context "#update_attributes" do
23
23
  let(:client) { connection.clients.create(:name => "foo") }
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe TicketEvolution::Companies do
4
+ let(:klass) { TicketEvolution::Companies }
5
+ let(:single_klass) { TicketEvolution::Company }
6
+ let(:update_base) { {} }
7
+
8
+ it_behaves_like 'a ticket_evolution endpoint class'
9
+ it_behaves_like 'a create endpoint'
10
+ it_behaves_like 'a destroy endpoint'
11
+ it_behaves_like 'a list endpoint'
12
+ it_behaves_like 'a show endpoint'
13
+ it_behaves_like 'an update endpoint'
14
+ end
15
+
@@ -0,0 +1,39 @@
1
+ require 'spec_helper'
2
+
3
+ describe TicketEvolution::Company do
4
+ let(:klass) { TicketEvolution::Company }
5
+ subject { TicketEvolution::Company }
6
+
7
+ it_behaves_like "a ticket_evolution model"
8
+
9
+ context "#destroy" do
10
+ let(:company) { connection.companies.create(:name => "foo 1234567890hasdfasdfyq334d578foq5y7f83ho47o5qyyyyyyyfh7w34odhq57y345q78do5yq378") }
11
+
12
+ context "on success" do
13
+ use_vcr_cassette "endpoints/company/destroy_success", :match_requests_on => [:method, :uri, :body]
14
+ before { company }
15
+
16
+ it "destroy the instance" do
17
+ response = company.destroy
18
+ response.should be_true
19
+
20
+ same_company = connection.companies.find(company.id)
21
+ same_company.should be_instance_of(TicketEvolution::ApiError)
22
+ same_company.code.should == 404
23
+ end
24
+ end
25
+
26
+ context "on error" do
27
+ use_vcr_cassette "endpoints/company/destroy_error", :match_requests_on => [:method, :uri, :body]
28
+
29
+ it "cannot destroy one that doesn't exist" do
30
+ unknown_company = TicketEvolution::Company.new(:id => 123, :name => "bar", :connection => connection)
31
+ response = unknown_company.destroy
32
+
33
+ response.should be_instance_of(TicketEvolution::ApiError)
34
+ response.code.should == 404
35
+ end
36
+ end
37
+ end
38
+ end
39
+
@@ -157,22 +157,4 @@ describe TicketEvolution::Model do
157
157
  end
158
158
  end
159
159
  end
160
-
161
- describe "#new_ostruct_member" do
162
- context "when the member name refers to an endpoint" do
163
- before do
164
- instance.samples = []
165
- end
166
-
167
- it "should respond with the value" do
168
- instance.samples.should == []
169
- end
170
-
171
- it "should fall back on the endpoint" do
172
- sample_klass.any_instance.should_receive(:send).with(:testing)
173
-
174
- instance.samples.testing
175
- end
176
- end
177
- end
178
160
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe TicketEvolution::RateOption do
4
+ subject { TicketEvolution::RateOption }
5
+
6
+ it_behaves_like "a ticket_evolution model"
7
+ end
8
+
@@ -0,0 +1,7 @@
1
+ describe TicketEvolution::RateOptions do
2
+ let(:klass) { TicketEvolution::RateOptions }
3
+ let(:single_klass) { TicketEvolution::RateOption }
4
+
5
+ it_behaves_like 'a ticket_evolution endpoint class'
6
+ it_behaves_like 'a create endpoint'
7
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe TicketEvolution::TrackDetail do
4
+ subject { TicketEvolution::TrackDetail }
5
+
6
+ it_behaves_like "a ticket_evolution model"
7
+ end
8
+
@@ -0,0 +1,32 @@
1
+ require 'spec_helper'
2
+
3
+ describe TicketEvolution::TrackDetails do
4
+ let(:klass) { TicketEvolution::TrackDetails }
5
+ let(:single_klass) { TicketEvolution::TrackDetail }
6
+
7
+ it_behaves_like 'a show endpoint'
8
+
9
+ it "should have a base path of /ticket_groups" do
10
+ klass.new({:parent => Fake.connection}).base_path.should == '/track_details'
11
+ end
12
+
13
+ context "integration" do
14
+ use_vcr_cassette "endpoints/track_details/show", :record => :new_episodes
15
+
16
+ it "gets tracking details for a FedEx package" do
17
+ details = connection.track_details.find("793309874808")
18
+ details.duplicate_waybill.should == false
19
+
20
+ package = details.packages.first
21
+ package.unique_identifier.should == "2455994000~793309874808"
22
+ package.destination_city.should == "NEW YORK"
23
+ package.destination_country.should == "US"
24
+ package.events.length.should == 12
25
+ end
26
+
27
+ xit "gets tracking details of a FedEx unique identifier" do
28
+ raise "not implemented"
29
+ end
30
+ end
31
+ end
32
+
@@ -37,16 +37,36 @@ shared_examples_for "a create endpoint" do
37
37
  end
38
38
 
39
39
  describe "#build_for_create" do
40
- let(:response) { Fake.create_response instance.endpoint_name, connection }
40
+ context "for a single entry" do
41
+ let(:response) { Fake.create_response instance.endpoint_name, connection }
42
+ let(:entry) { double(:entry) }
41
43
 
42
- it "should invoke an instance of its builder class" do
43
- builder_klass.should_receive(:new).with(response.body[instance.endpoint_name].first.merge({
44
- :status_code => response.response_code,
45
- :server_message => response.server_message,
46
- :connection => connection
47
- }))
44
+ it "should invoke an instance of its builder class" do
45
+ builder_klass.should_receive(:new).with(response.body[instance.endpoint_name].first.merge({
46
+ :status_code => response.response_code,
47
+ :server_message => response.server_message,
48
+ :connection => connection
49
+ })).and_return(entry)
48
50
 
49
- instance.build_for_create(response)
51
+ instance.build_for_create(response).should == entry
52
+ end
53
+ end
54
+
55
+ context "for multiple entries" do
56
+ let(:responses) { Fake.create_response instance.endpoint_name, connection, 2 }
57
+ let(:entry) { double(:entry) }
58
+
59
+ it "should invoke an instance of its builder class" do
60
+ responses.body[instance.endpoint_name].each do |body|
61
+ builder_klass.should_receive(:new).with(body.merge({
62
+ :status_code => responses.response_code,
63
+ :server_message => responses.server_message,
64
+ :connection => connection
65
+ })).and_return(entry)
66
+ end
67
+
68
+ instance.build_for_create(responses).entries.should == [entry, entry]
69
+ end
50
70
  end
51
71
  end
52
72
  end
@@ -0,0 +1,67 @@
1
+ require 'spec_helper'
2
+
3
+ shared_examples_for "a destroy endpoint" do
4
+ let(:connection) { TicketEvolution::Connection.new({:token => Fake.token, :secret => Fake.secret}) }
5
+ let(:instance) { klass.new({:parent => connection}) }
6
+
7
+ describe "#destroy" do
8
+ context "with an id" do
9
+ let(:instance) { klass.new({:parent => connection, :id => 1}) }
10
+ it "should pass call request as a PUT, passing params" do
11
+ instance.should_receive(:request).with(:DELETE, nil, nil)
12
+
13
+ instance.destroy
14
+ end
15
+
16
+ context "when passed a block" do
17
+ let(:block) { Fake.response_alt }
18
+ let(:response) { Fake.show_response }
19
+
20
+ it "should process the response through the block" do
21
+ instance.should_receive(:naturalize_response).and_return(response)
22
+
23
+ instance.destroy(&block).should == block.call(response)
24
+ end
25
+ end
26
+ end
27
+
28
+ context "without an id" do
29
+ it "should raise an UnavailableMethodError if there is no id" do
30
+ message = "#{klass.to_s}#destroy can only be called if there is an id present on this #{klass.to_s} instance"
31
+ expect { instance.destroy }.to raise_error TicketEvolution::MethodUnavailableError, message
32
+ end
33
+ end
34
+ end
35
+
36
+ describe ".included" do
37
+ let(:model_klass) { instance.singular_class }
38
+ let(:model_instance) { model_klass.new({:connection => connection}) }
39
+
40
+ it "should set a destroy method on it's corresponding TE:Model class" do
41
+ model_instance.should respond_to :destroy
42
+ end
43
+
44
+ it "should set a delete method on it's corresponding TE:Model class" do
45
+ model_instance.should respond_to :delete
46
+ end
47
+ end
48
+
49
+ describe "it's corresponding model object" do
50
+ let(:singular_klass) { Class.new{extend TicketEvolution::SingularClass}.singular_class(klass.name) }
51
+
52
+ describe "#destroy" do
53
+ let(:instance) { singular_klass.new(
54
+ :connection => connection,
55
+ :id => 1,
56
+ :name => "John"
57
+ )}
58
+
59
+ it "should pass call request as a DELETE" do
60
+ klass.any_instance.should_receive(:request).with(:DELETE, nil, nil).and_return(true)
61
+
62
+ instance.destroy.should == true
63
+ end
64
+ end
65
+ end
66
+ end
67
+
@@ -10,7 +10,7 @@ shared_examples_for "a show endpoint" do
10
10
  let(:id) { 1 }
11
11
 
12
12
  it "should pass call request as a GET, passing the id as a piece of the path" do
13
- instance.should_receive(:request).with(:GET, "/#{id}")
13
+ instance.should_receive(:request).with(:GET, "/#{id}", nil)
14
14
 
15
15
  instance.show(id)
16
16
  end
@@ -37,3 +37,41 @@ shared_examples_for "a ticket_evolution model" do
37
37
  end
38
38
  end
39
39
  end
40
+
41
+ shared_examples_for "a parental model" do
42
+ let(:klass) { subject }
43
+ let(:instance) { klass.new({:connection => Fake.connection}) }
44
+ let(:sample_klass) { instance.plural_class::Samples }
45
+
46
+ describe "#new_ostruct_member" do
47
+ context "when the member name refers to an endpoint" do
48
+ before do
49
+ instance.samples = []
50
+ end
51
+
52
+ it "should respond with the value" do
53
+ instance.samples.should == []
54
+ end
55
+
56
+ it "should fall back on the endpoint" do
57
+ sample_klass.any_instance.should_receive(:send).with(:testing)
58
+
59
+ instance.samples.testing
60
+ end
61
+ end
62
+
63
+ context "when the member name does not refer to an endpoint" do
64
+ before do
65
+ instance.not_samples = []
66
+ end
67
+
68
+ it "should respond with the value" do
69
+ instance.not_samples.should == []
70
+ end
71
+
72
+ it "should add endpoint methods" do
73
+ instance.not_samples.should_not be_respond_to(:endpoint=)
74
+ end
75
+ end
76
+ end
77
+ end
data/spec/spec_helper.rb CHANGED
@@ -13,6 +13,7 @@ require @spec_path + 'fixtures' + 'fake.rb'
13
13
  require @spec_path + 'shared_examples' + 'endpoints' + 'class.rb'
14
14
  require @spec_path + 'shared_examples' + 'endpoints' + 'create.rb'
15
15
  require @spec_path + 'shared_examples' + 'endpoints' + 'deleted.rb'
16
+ require @spec_path + 'shared_examples' + 'endpoints' + 'destroy.rb'
16
17
  require @spec_path + 'shared_examples' + 'endpoints' + 'list.rb'
17
18
  require @spec_path + 'shared_examples' + 'endpoints' + 'search.rb'
18
19
  require @spec_path + 'shared_examples' + 'endpoints' + 'show.rb'
@@ -0,0 +1,20 @@
1
+ module TicketEvolution
2
+ class Samples < Base
3
+ def initialize(*attrs); end
4
+ end
5
+
6
+ class Models < Endpoint; end
7
+
8
+ self.constants.each do |const|
9
+ konstant = self.const_get(const)
10
+ if const.to_sym == :Model or (konstant.class == Class and konstant.ancestors.include?(TicketEvolution::Model::ParentalBehavior))
11
+ klass = Class.new(TicketEvolution::Base) do
12
+ def initialize(*args); end
13
+ def testing
14
+ "testing"
15
+ end
16
+ end
17
+ eval "TicketEvolution::#{konstant.name.demodulize.pluralize.camelize}::Samples = klass"
18
+ end
19
+ end
20
+ end
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_dependency 'nokogiri', '>= 1.4.3'
21
21
 
22
22
  s.add_development_dependency 'rspec', '>= 2.7.1'
23
- s.add_development_dependency 'vcr'
23
+ s.add_development_dependency 'vcr', '< 2'
24
24
  s.add_development_dependency 'webmock', '>= 1.7.0', '< 1.8.0'
25
25
  s.add_development_dependency 'awesome_print'
26
26
  s.add_development_dependency 'rake'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketevolution-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-27 00:00:00.000000000Z
12
+ date: 2012-03-28 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &70364621391220 !ruby/object:Gem::Requirement
16
+ requirement: &70187908360220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70364621391220
24
+ version_requirements: *70187908360220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: faraday
27
- requirement: &70364621793840 !ruby/object:Gem::Requirement
27
+ requirement: &70187908358760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.7.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70364621793840
35
+ version_requirements: *70187908358760
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: yajl-ruby
38
- requirement: &70364622219220 !ruby/object:Gem::Requirement
38
+ requirement: &70187908355960 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.7.7
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70364622219220
46
+ version_requirements: *70187908355960
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: multi_json
49
- requirement: &70364622236380 !ruby/object:Gem::Requirement
49
+ requirement: &70187908354740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.0.4
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70364622236380
57
+ version_requirements: *70187908354740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: nokogiri
60
- requirement: &70364622927980 !ruby/object:Gem::Requirement
60
+ requirement: &70187908353580 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.4.3
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70364622927980
68
+ version_requirements: *70187908353580
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
- requirement: &70364622927280 !ruby/object:Gem::Requirement
71
+ requirement: &70187908352260 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,21 +76,21 @@ dependencies:
76
76
  version: 2.7.1
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70364622927280
79
+ version_requirements: *70187908352260
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: vcr
82
- requirement: &70364622926500 !ruby/object:Gem::Requirement
82
+ requirement: &70187908350880 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
- - - ! '>='
85
+ - - <
86
86
  - !ruby/object:Gem::Version
87
- version: '0'
87
+ version: '2'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70364622926500
90
+ version_requirements: *70187908350880
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: webmock
93
- requirement: &70364622925480 !ruby/object:Gem::Requirement
93
+ requirement: &70187908350240 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -101,10 +101,10 @@ dependencies:
101
101
  version: 1.8.0
102
102
  type: :development
103
103
  prerelease: false
104
- version_requirements: *70364622925480
104
+ version_requirements: *70187908350240
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: awesome_print
107
- requirement: &70364622924240 !ruby/object:Gem::Requirement
107
+ requirement: &70187908349240 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ! '>='
@@ -112,10 +112,10 @@ dependencies:
112
112
  version: '0'
113
113
  type: :development
114
114
  prerelease: false
115
- version_requirements: *70364622924240
115
+ version_requirements: *70187908349240
116
116
  - !ruby/object:Gem::Dependency
117
117
  name: rake
118
- requirement: &70364622923360 !ruby/object:Gem::Requirement
118
+ requirement: &70187908348260 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ! '>='
@@ -123,7 +123,7 @@ dependencies:
123
123
  version: '0'
124
124
  type: :development
125
125
  prerelease: false
126
- version_requirements: *70364622923360
126
+ version_requirements: *70187908348260
127
127
  description: Provides Ruby wrappers for the Ticket Evolution API (http://developer.ticketevolution.com).
128
128
  Ticket Evolution is the industry leader in software for the Ticket Broker industry.
129
129
  email:
@@ -164,6 +164,8 @@ files:
164
164
  - lib/ticket_evolution/clients/credit_cards.rb
165
165
  - lib/ticket_evolution/clients/email_addresses.rb
166
166
  - lib/ticket_evolution/clients/phone_numbers.rb
167
+ - lib/ticket_evolution/companies.rb
168
+ - lib/ticket_evolution/company.rb
167
169
  - lib/ticket_evolution/configuration.rb
168
170
  - lib/ticket_evolution/configurations.rb
169
171
  - lib/ticket_evolution/core/api_error.rb
@@ -175,8 +177,7 @@ files:
175
177
  - lib/ticket_evolution/core/endpoint.rb
176
178
  - lib/ticket_evolution/core/endpoint/request_handler.rb
177
179
  - lib/ticket_evolution/core/model.rb
178
- - lib/ticket_evolution/core/models/samples.rb
179
- - lib/ticket_evolution/core/samples.rb
180
+ - lib/ticket_evolution/core/model/parental_behavior.rb
180
181
  - lib/ticket_evolution/core/singular_class.rb
181
182
  - lib/ticket_evolution/core/time.rb
182
183
  - lib/ticket_evolution/credit_card.rb
@@ -189,6 +190,7 @@ files:
189
190
  - lib/ticket_evolution/events.rb
190
191
  - lib/ticket_evolution/modules/create.rb
191
192
  - lib/ticket_evolution/modules/deleted.rb
193
+ - lib/ticket_evolution/modules/destroy.rb
192
194
  - lib/ticket_evolution/modules/list.rb
193
195
  - lib/ticket_evolution/modules/search.rb
194
196
  - lib/ticket_evolution/modules/show.rb
@@ -202,11 +204,15 @@ files:
202
204
  - lib/ticket_evolution/phone_number.rb
203
205
  - lib/ticket_evolution/quote.rb
204
206
  - lib/ticket_evolution/quotes.rb
207
+ - lib/ticket_evolution/rate_option.rb
208
+ - lib/ticket_evolution/rate_options.rb
205
209
  - lib/ticket_evolution/search.rb
206
210
  - lib/ticket_evolution/shipment.rb
207
211
  - lib/ticket_evolution/shipments.rb
208
212
  - lib/ticket_evolution/ticket_group.rb
209
213
  - lib/ticket_evolution/ticket_groups.rb
214
+ - lib/ticket_evolution/track_detail.rb
215
+ - lib/ticket_evolution/track_details.rb
210
216
  - lib/ticket_evolution/transaction.rb
211
217
  - lib/ticket_evolution/transactions.rb
212
218
  - lib/ticket_evolution/user.rb
@@ -223,7 +229,10 @@ files:
223
229
  - spec/fixtures/net/endpoints/clients/create.yml
224
230
  - spec/fixtures/net/endpoints/clients/update_fail.yml
225
231
  - spec/fixtures/net/endpoints/clients/update_success.yml
232
+ - spec/fixtures/net/endpoints/company/destroy_error.yml
233
+ - spec/fixtures/net/endpoints/company/destroy_success.yml
226
234
  - spec/fixtures/net/endpoints/search.yml
235
+ - spec/fixtures/net/endpoints/track_details/show.yml
227
236
  - spec/lib/ext/hash_spec.rb
228
237
  - spec/lib/ticket_evolution/account_spec.rb
229
238
  - spec/lib/ticket_evolution/accounts_spec.rb
@@ -238,6 +247,8 @@ files:
238
247
  - spec/lib/ticket_evolution/clients/email_addresses_spec.rb
239
248
  - spec/lib/ticket_evolution/clients/phone_numbers_spec.rb
240
249
  - spec/lib/ticket_evolution/clients_spec.rb
250
+ - spec/lib/ticket_evolution/companies_spec.rb
251
+ - spec/lib/ticket_evolution/company_spec.rb
241
252
  - spec/lib/ticket_evolution/configuration_spec.rb
242
253
  - spec/lib/ticket_evolution/configurations_spec.rb
243
254
  - spec/lib/ticket_evolution/core/api_error_spec.rb
@@ -266,11 +277,15 @@ files:
266
277
  - spec/lib/ticket_evolution/phone_number_spec.rb
267
278
  - spec/lib/ticket_evolution/quote_spec.rb
268
279
  - spec/lib/ticket_evolution/quotes_spec.rb
280
+ - spec/lib/ticket_evolution/rate_option_spec.rb
281
+ - spec/lib/ticket_evolution/rate_options_spec.rb
269
282
  - spec/lib/ticket_evolution/search_spec.rb
270
283
  - spec/lib/ticket_evolution/shipment_spec.rb
271
284
  - spec/lib/ticket_evolution/shipments_spec.rb
272
285
  - spec/lib/ticket_evolution/ticket_group_spec.rb
273
286
  - spec/lib/ticket_evolution/ticket_groups_spec.rb
287
+ - spec/lib/ticket_evolution/track_detail_spec.rb
288
+ - spec/lib/ticket_evolution/track_details_spec.rb
274
289
  - spec/lib/ticket_evolution/transaction_spec.rb
275
290
  - spec/lib/ticket_evolution/transactions_spec.rb
276
291
  - spec/lib/ticket_evolution/user_spec.rb
@@ -281,6 +296,7 @@ files:
281
296
  - spec/shared_examples/endpoints/class.rb
282
297
  - spec/shared_examples/endpoints/create.rb
283
298
  - spec/shared_examples/endpoints/deleted.rb
299
+ - spec/shared_examples/endpoints/destroy.rb
284
300
  - spec/shared_examples/endpoints/list.rb
285
301
  - spec/shared_examples/endpoints/search.rb
286
302
  - spec/shared_examples/endpoints/show.rb
@@ -289,6 +305,7 @@ files:
289
305
  - spec/shared_examples/models.rb
290
306
  - spec/spec_helper.rb
291
307
  - spec/support/connection.rb
308
+ - spec/support/stub_models.rb
292
309
  - spec/support/vcr.rb
293
310
  - ticketevolution-ruby.gemspec
294
311
  homepage: https://github.com/ticketevolution/ticketevolution-ruby
@@ -305,7 +322,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
305
322
  version: '0'
306
323
  segments:
307
324
  - 0
308
- hash: 980979113044765798
325
+ hash: 937722356540209047
309
326
  required_rubygems_version: !ruby/object:Gem::Requirement
310
327
  none: false
311
328
  requirements:
@@ -328,7 +345,10 @@ test_files:
328
345
  - spec/fixtures/net/endpoints/clients/create.yml
329
346
  - spec/fixtures/net/endpoints/clients/update_fail.yml
330
347
  - spec/fixtures/net/endpoints/clients/update_success.yml
348
+ - spec/fixtures/net/endpoints/company/destroy_error.yml
349
+ - spec/fixtures/net/endpoints/company/destroy_success.yml
331
350
  - spec/fixtures/net/endpoints/search.yml
351
+ - spec/fixtures/net/endpoints/track_details/show.yml
332
352
  - spec/lib/ext/hash_spec.rb
333
353
  - spec/lib/ticket_evolution/account_spec.rb
334
354
  - spec/lib/ticket_evolution/accounts_spec.rb
@@ -343,6 +363,8 @@ test_files:
343
363
  - spec/lib/ticket_evolution/clients/email_addresses_spec.rb
344
364
  - spec/lib/ticket_evolution/clients/phone_numbers_spec.rb
345
365
  - spec/lib/ticket_evolution/clients_spec.rb
366
+ - spec/lib/ticket_evolution/companies_spec.rb
367
+ - spec/lib/ticket_evolution/company_spec.rb
346
368
  - spec/lib/ticket_evolution/configuration_spec.rb
347
369
  - spec/lib/ticket_evolution/configurations_spec.rb
348
370
  - spec/lib/ticket_evolution/core/api_error_spec.rb
@@ -371,11 +393,15 @@ test_files:
371
393
  - spec/lib/ticket_evolution/phone_number_spec.rb
372
394
  - spec/lib/ticket_evolution/quote_spec.rb
373
395
  - spec/lib/ticket_evolution/quotes_spec.rb
396
+ - spec/lib/ticket_evolution/rate_option_spec.rb
397
+ - spec/lib/ticket_evolution/rate_options_spec.rb
374
398
  - spec/lib/ticket_evolution/search_spec.rb
375
399
  - spec/lib/ticket_evolution/shipment_spec.rb
376
400
  - spec/lib/ticket_evolution/shipments_spec.rb
377
401
  - spec/lib/ticket_evolution/ticket_group_spec.rb
378
402
  - spec/lib/ticket_evolution/ticket_groups_spec.rb
403
+ - spec/lib/ticket_evolution/track_detail_spec.rb
404
+ - spec/lib/ticket_evolution/track_details_spec.rb
379
405
  - spec/lib/ticket_evolution/transaction_spec.rb
380
406
  - spec/lib/ticket_evolution/transactions_spec.rb
381
407
  - spec/lib/ticket_evolution/user_spec.rb
@@ -386,6 +412,7 @@ test_files:
386
412
  - spec/shared_examples/endpoints/class.rb
387
413
  - spec/shared_examples/endpoints/create.rb
388
414
  - spec/shared_examples/endpoints/deleted.rb
415
+ - spec/shared_examples/endpoints/destroy.rb
389
416
  - spec/shared_examples/endpoints/list.rb
390
417
  - spec/shared_examples/endpoints/search.rb
391
418
  - spec/shared_examples/endpoints/show.rb
@@ -394,4 +421,5 @@ test_files:
394
421
  - spec/shared_examples/models.rb
395
422
  - spec/spec_helper.rb
396
423
  - spec/support/connection.rb
424
+ - spec/support/stub_models.rb
397
425
  - spec/support/vcr.rb