channel_advisor 0.0.8 → 0.1.0
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.
- data/.rspec +2 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +103 -0
- data/LICENSE +20 -0
- data/README +2 -0
- data/Rakefile +107 -0
- data/VERSION +1 -0
- data/artifacts.yml +5 -0
- data/channel_advisor.gemspec +142 -0
- data/lib/channel_advisor/admin_service/client.rb +2 -1
- data/lib/channel_advisor/admin_service/mapping_registry.rb +1 -0
- data/lib/channel_advisor/admin_service/types.rb +1 -0
- data/lib/channel_advisor/cart_service/client.rb +2 -1
- data/lib/channel_advisor/cart_service/mapping_registry.rb +1 -0
- data/lib/channel_advisor/cart_service/types.rb +3 -0
- data/lib/channel_advisor/inventory_service/client.rb +6 -5
- data/lib/channel_advisor/inventory_service/mapping_registry.rb +74 -43
- data/lib/channel_advisor/inventory_service/types.rb +96 -36
- data/lib/channel_advisor/listing_service/client.rb +2 -1
- data/lib/channel_advisor/listing_service/mapping_registry.rb +1 -0
- data/lib/channel_advisor/listing_service/types.rb +1 -0
- data/lib/channel_advisor/marketplace_ad_service/client.rb +2 -1
- data/lib/channel_advisor/marketplace_ad_service/mapping_registry.rb +1 -0
- data/lib/channel_advisor/marketplace_ad_service/types.rb +1 -0
- data/lib/channel_advisor/order_service/client.rb +18 -1
- data/lib/channel_advisor/order_service/mapping_registry.rb +153 -22
- data/lib/channel_advisor/order_service/types.rb +170 -20
- data/lib/channel_advisor/shipping_service/client.rb +2 -1
- data/lib/channel_advisor/shipping_service/mapping_registry.rb +7 -1
- data/lib/channel_advisor/shipping_service/types.rb +13 -3
- data/lib/channel_advisor/store_service/client.rb +2 -1
- data/lib/channel_advisor/store_service/mapping_registry.rb +1 -0
- data/lib/channel_advisor/store_service/types.rb +1 -0
- data/lib/channel_advisor/tax_service/client.rb +2 -1
- data/lib/channel_advisor/tax_service/mapping_registry.rb +21 -20
- data/lib/channel_advisor/tax_service/types.rb +20 -19
- data/spec/spec_helper.rb +1 -2
- metadata +135 -38
data/.rspec
ADDED
data/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem "soap4r", "~> 1.5"
|
4
|
+
gem "configatron", "~> 2.6"
|
5
|
+
|
6
|
+
# Add dependencies to develop your gem here.
|
7
|
+
# Include everything needed to run rake, tests, features, etc.
|
8
|
+
group :development do
|
9
|
+
gem "rspec", "~> 2.3.0"
|
10
|
+
gem "yard", "~> 0.6.0"
|
11
|
+
gem "bundler", "~> 1.0.0"
|
12
|
+
gem "jeweler", "~> 1.5.2"
|
13
|
+
gem "rcov", ">= 0"
|
14
|
+
gem "metric_fu", ">= 0"
|
15
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
Saikuro (1.1.0)
|
5
|
+
abstract (1.0.0)
|
6
|
+
activesupport (3.0.3)
|
7
|
+
arrayfields (4.7.4)
|
8
|
+
chronic (0.2.3)
|
9
|
+
hoe (>= 1.2.1)
|
10
|
+
churn (0.0.13)
|
11
|
+
chronic (>= 0.2.3)
|
12
|
+
hirb
|
13
|
+
json_pure
|
14
|
+
main
|
15
|
+
ruby_parser (~> 2.0.4)
|
16
|
+
sexp_processor (~> 3.0.3)
|
17
|
+
colored (1.2)
|
18
|
+
configatron (2.6.4)
|
19
|
+
yamler (>= 0.1.0)
|
20
|
+
diff-lcs (1.1.2)
|
21
|
+
erubis (2.6.6)
|
22
|
+
abstract (>= 1.0.0)
|
23
|
+
fattr (2.2.0)
|
24
|
+
flay (1.4.1)
|
25
|
+
ruby_parser (~> 2.0)
|
26
|
+
sexp_processor (~> 3.0)
|
27
|
+
flog (2.5.0)
|
28
|
+
ruby_parser (~> 2.0)
|
29
|
+
sexp_processor (~> 3.0)
|
30
|
+
git (1.2.5)
|
31
|
+
haml (3.0.25)
|
32
|
+
hirb (0.3.5)
|
33
|
+
hoe (2.8.0)
|
34
|
+
rake (>= 0.8.7)
|
35
|
+
httpclient (2.1.6)
|
36
|
+
i18n (0.5.0)
|
37
|
+
jeweler (1.5.2)
|
38
|
+
bundler (~> 1.0.0)
|
39
|
+
git (>= 1.2.5)
|
40
|
+
rake
|
41
|
+
json_pure (1.4.6)
|
42
|
+
main (4.4.0)
|
43
|
+
arrayfields (>= 4.7.4)
|
44
|
+
fattr (>= 2.1.0)
|
45
|
+
metric_fu (2.0.1)
|
46
|
+
Saikuro (>= 1.1.0)
|
47
|
+
activesupport (>= 2.0.0)
|
48
|
+
chronic (~> 0.2.3)
|
49
|
+
churn (>= 0.0.7)
|
50
|
+
flay (>= 1.2.1)
|
51
|
+
flog (>= 2.2.0)
|
52
|
+
rails_best_practices (>= 0.3.16)
|
53
|
+
rcov (>= 0.8.3.3)
|
54
|
+
reek (>= 1.2.6)
|
55
|
+
roodi (>= 2.1.0)
|
56
|
+
rails_best_practices (0.6.5)
|
57
|
+
activesupport
|
58
|
+
colored (~> 1.2)
|
59
|
+
erubis (~> 2.6.6)
|
60
|
+
haml (~> 3.0.18)
|
61
|
+
i18n
|
62
|
+
ruby-progressbar (~> 0.0.9)
|
63
|
+
ruby_parser (~> 2.0.4)
|
64
|
+
rake (0.8.7)
|
65
|
+
rcov (0.9.9)
|
66
|
+
reek (1.2.8)
|
67
|
+
ruby2ruby (~> 1.2)
|
68
|
+
ruby_parser (~> 2.0)
|
69
|
+
sexp_processor (~> 3.0)
|
70
|
+
roodi (2.1.0)
|
71
|
+
ruby_parser
|
72
|
+
rspec (2.3.0)
|
73
|
+
rspec-core (~> 2.3.0)
|
74
|
+
rspec-expectations (~> 2.3.0)
|
75
|
+
rspec-mocks (~> 2.3.0)
|
76
|
+
rspec-core (2.3.1)
|
77
|
+
rspec-expectations (2.3.0)
|
78
|
+
diff-lcs (~> 1.1.2)
|
79
|
+
rspec-mocks (2.3.0)
|
80
|
+
ruby-progressbar (0.0.9)
|
81
|
+
ruby2ruby (1.2.5)
|
82
|
+
ruby_parser (~> 2.0)
|
83
|
+
sexp_processor (~> 3.0)
|
84
|
+
ruby_parser (2.0.5)
|
85
|
+
sexp_processor (~> 3.0)
|
86
|
+
sexp_processor (3.0.5)
|
87
|
+
soap4r (1.5.8)
|
88
|
+
httpclient (>= 2.1.1)
|
89
|
+
yamler (0.1.0)
|
90
|
+
yard (0.6.4)
|
91
|
+
|
92
|
+
PLATFORMS
|
93
|
+
ruby
|
94
|
+
|
95
|
+
DEPENDENCIES
|
96
|
+
bundler (~> 1.0.0)
|
97
|
+
configatron (~> 2.6)
|
98
|
+
jeweler (~> 1.5.2)
|
99
|
+
metric_fu
|
100
|
+
rcov
|
101
|
+
rspec (~> 2.3.0)
|
102
|
+
soap4r (~> 1.5)
|
103
|
+
yard (~> 0.6.0)
|
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2008-2011 Second Rotation, Inc.
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
CHANGED
@@ -34,6 +34,7 @@ How to Generate the API Classes
|
|
34
34
|
|
35
35
|
Change Log
|
36
36
|
----------
|
37
|
+
= 0.1.0 - Updated to CA API v3; Switched to jeweler and bundler
|
37
38
|
= 0.0.8 - Updated to reflect the latest Channel Advisor API Spec; Adding ListingService
|
38
39
|
= 0.0.7 - Updated to reflect the 2009-10-24 Channel Advisor Release; Added error messages to ChannelAdvisor::Error
|
39
40
|
< 0.0.6 - Everything else
|
@@ -43,4 +44,5 @@ Resources
|
|
43
44
|
----------
|
44
45
|
http://developer.channeladvisor.com/display/cadn/ChannelAdvisor+Developer+Network
|
45
46
|
|
47
|
+
JDW
|
46
48
|
|
data/Rakefile
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'rake'
|
11
|
+
|
12
|
+
require 'jeweler'
|
13
|
+
Jeweler::Tasks.new do |gem|
|
14
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
15
|
+
gem.name = "channel_advisor"
|
16
|
+
gem.homepage = "http://github.com/secondrotation/channel_advisor/"
|
17
|
+
gem.license = "MIT"
|
18
|
+
gem.summary = "channel_advisor"
|
19
|
+
gem.description = "channel_advisor was developed by: Second Rotation, Inc."
|
20
|
+
gem.email = "jason@gazelle.com"
|
21
|
+
gem.authors = ["Second Rotation, Inc."]
|
22
|
+
# Include your dependencies below. Runtime dependencies are required when using your gem,
|
23
|
+
# and development dependencies are only needed for development (ie running rake tasks, tests, etc)
|
24
|
+
# gem.add_runtime_dependency 'jabber4r', '> 0.1'
|
25
|
+
# gem.add_development_dependency 'rspec', '> 1.2.3'
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
32
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
33
|
+
end
|
34
|
+
|
35
|
+
RSpec::Core::RakeTask.new(:rcov) do |spec|
|
36
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
37
|
+
spec.rcov = true
|
38
|
+
end
|
39
|
+
|
40
|
+
task :default => :spec
|
41
|
+
|
42
|
+
require 'yard'
|
43
|
+
YARD::Rake::YardocTask.new
|
44
|
+
|
45
|
+
# Custom Tasks Beyond This Point
|
46
|
+
|
47
|
+
namespace :spec do
|
48
|
+
desc "Integration Spec. USE WITH CAUTION AS IT PUSHES TO CHANNEL ADVISOR"
|
49
|
+
RSpec::Core::RakeTask.new(:integration) do |spec|
|
50
|
+
spec.pattern = 'spec/integration/**/*_spec.rb'
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
desc "Run the automated hudson build"
|
55
|
+
task :hudson do
|
56
|
+
puts "Starting build..."
|
57
|
+
|
58
|
+
Rake::Task['rcov'].invoke
|
59
|
+
|
60
|
+
require 'metric_fu'
|
61
|
+
MetricFu::Configuration.run do |fu|
|
62
|
+
fu.metrics -= [:rcov] # running rcov seperately
|
63
|
+
fu.metrics -= [:saikuro] # running rcov seperately
|
64
|
+
fu.graphs -= [:rcov, :saikuro]
|
65
|
+
end
|
66
|
+
Rake::Task['metrics:all'].invoke
|
67
|
+
|
68
|
+
puts "Done."
|
69
|
+
end
|
70
|
+
|
71
|
+
desc "Generate CA Service Definitions"
|
72
|
+
task :generate do
|
73
|
+
services = %w(admin_service cart_service inventory_service listing_service marketplace_ad_service order_service shipping_service store_service tax_service)
|
74
|
+
lib_dir = File.join(File.dirname(__FILE__), 'lib', 'channel_advisor')
|
75
|
+
|
76
|
+
services.each do |service_name|
|
77
|
+
service_dir = File.join(lib_dir, service_name)
|
78
|
+
camel_name = service_name.split('_').map {|w| w.capitalize}.join
|
79
|
+
|
80
|
+
# Create the service file and directory
|
81
|
+
`touch #{File.join(lib_dir, service_name)}.rb`
|
82
|
+
`mkdir -p #{service_dir}`
|
83
|
+
|
84
|
+
# Generate the files from the wsdl
|
85
|
+
`cd #{service_dir} && wsdl2ruby.rb --wsdl https://api.channeladvisor.com/ChannelAdvisorAPI/v3/#{camel_name}.asmx?WSDL --type client --module_path ChannelAdvisor::#{camel_name}SOAP`
|
86
|
+
|
87
|
+
# Remove the generated client file
|
88
|
+
`rm #{File.join(service_dir, camel_name)}Client.rb`
|
89
|
+
|
90
|
+
# Rename the generated files for consistency
|
91
|
+
`mv #{File.join(service_dir, 'defaultMappingRegistry')}.rb #{File.join(service_dir, 'mapping_registry')}.rb`
|
92
|
+
`mv #{File.join(service_dir, 'default')}.rb #{File.join(service_dir, 'types')}.rb`
|
93
|
+
`mv #{File.join(service_dir, 'defaultDriver')}.rb #{File.join(service_dir, 'client')}.rb`
|
94
|
+
|
95
|
+
# Remove the unnecessary "require" lines from the generated code
|
96
|
+
`sed -i~ '/require/ d' "#{File.join(service_dir, 'client')}.rb"`
|
97
|
+
`sed -i~ '/require/ d' "#{File.join(service_dir, 'types')}.rb"`
|
98
|
+
`sed -i~ '/require/ d' "#{File.join(service_dir, 'mapping_registry')}.rb"`
|
99
|
+
|
100
|
+
# Remove the temp files created by sed
|
101
|
+
`rm "#{File.join(service_dir, 'client')}.rb~"`
|
102
|
+
`rm "#{File.join(service_dir, 'types')}.rb"~`
|
103
|
+
`rm "#{File.join(service_dir, 'mapping_registry')}.rb"~`
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.0
|
data/artifacts.yml
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{channel_advisor}
|
8
|
+
s.version = "0.1.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Second Rotation, Inc."]
|
12
|
+
s.date = %q{2011-01-27}
|
13
|
+
s.description = %q{channel_advisor was developed by: Second Rotation, Inc.}
|
14
|
+
s.email = %q{jason@gazelle.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE",
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".rspec",
|
21
|
+
"Gemfile",
|
22
|
+
"Gemfile.lock",
|
23
|
+
"LICENSE",
|
24
|
+
"README",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"artifacts.yml",
|
28
|
+
"channel_advisor.gemspec",
|
29
|
+
"lib/channel_advisor.rb",
|
30
|
+
"lib/channel_advisor/admin_service.rb",
|
31
|
+
"lib/channel_advisor/admin_service/client.rb",
|
32
|
+
"lib/channel_advisor/admin_service/mapping_registry.rb",
|
33
|
+
"lib/channel_advisor/admin_service/types.rb",
|
34
|
+
"lib/channel_advisor/auth_handler.rb",
|
35
|
+
"lib/channel_advisor/cart_service.rb",
|
36
|
+
"lib/channel_advisor/cart_service/client.rb",
|
37
|
+
"lib/channel_advisor/cart_service/mapping_registry.rb",
|
38
|
+
"lib/channel_advisor/cart_service/types.rb",
|
39
|
+
"lib/channel_advisor/errors.rb",
|
40
|
+
"lib/channel_advisor/inventory_service.rb",
|
41
|
+
"lib/channel_advisor/inventory_service/client.rb",
|
42
|
+
"lib/channel_advisor/inventory_service/mapping_registry.rb",
|
43
|
+
"lib/channel_advisor/inventory_service/types.rb",
|
44
|
+
"lib/channel_advisor/listing_service.rb",
|
45
|
+
"lib/channel_advisor/listing_service/client.rb",
|
46
|
+
"lib/channel_advisor/listing_service/mapping_registry.rb",
|
47
|
+
"lib/channel_advisor/listing_service/types.rb",
|
48
|
+
"lib/channel_advisor/marketplace_ad_service.rb",
|
49
|
+
"lib/channel_advisor/marketplace_ad_service/client.rb",
|
50
|
+
"lib/channel_advisor/marketplace_ad_service/mapping_registry.rb",
|
51
|
+
"lib/channel_advisor/marketplace_ad_service/types.rb",
|
52
|
+
"lib/channel_advisor/message_code.rb",
|
53
|
+
"lib/channel_advisor/order_service.rb",
|
54
|
+
"lib/channel_advisor/order_service/client.rb",
|
55
|
+
"lib/channel_advisor/order_service/mapping_registry.rb",
|
56
|
+
"lib/channel_advisor/order_service/types.rb",
|
57
|
+
"lib/channel_advisor/service_proxy.rb",
|
58
|
+
"lib/channel_advisor/shared_requires.rb",
|
59
|
+
"lib/channel_advisor/shipping_service.rb",
|
60
|
+
"lib/channel_advisor/shipping_service/client.rb",
|
61
|
+
"lib/channel_advisor/shipping_service/mapping_registry.rb",
|
62
|
+
"lib/channel_advisor/shipping_service/types.rb",
|
63
|
+
"lib/channel_advisor/store_service.rb",
|
64
|
+
"lib/channel_advisor/store_service/client.rb",
|
65
|
+
"lib/channel_advisor/store_service/mapping_registry.rb",
|
66
|
+
"lib/channel_advisor/store_service/types.rb",
|
67
|
+
"lib/channel_advisor/tax_service.rb",
|
68
|
+
"lib/channel_advisor/tax_service/client.rb",
|
69
|
+
"lib/channel_advisor/tax_service/mapping_registry.rb",
|
70
|
+
"lib/channel_advisor/tax_service/types.rb",
|
71
|
+
"spec/integration/inventory_sync_spec.rb",
|
72
|
+
"spec/lib/channel_advisor/admin_service_spec.rb",
|
73
|
+
"spec/lib/channel_advisor/auth_handler_spec.rb",
|
74
|
+
"spec/lib/channel_advisor/cart_service_spec.rb",
|
75
|
+
"spec/lib/channel_advisor/errors_spec.rb",
|
76
|
+
"spec/lib/channel_advisor/inventory_service_spec.rb",
|
77
|
+
"spec/lib/channel_advisor/marketplace_ad_service_spec.rb",
|
78
|
+
"spec/lib/channel_advisor/message_code_spec.rb",
|
79
|
+
"spec/lib/channel_advisor/order_service_spec.rb",
|
80
|
+
"spec/lib/channel_advisor/service_proxy_spec.rb",
|
81
|
+
"spec/lib/channel_advisor/shipping_service_spec.rb",
|
82
|
+
"spec/lib/channel_advisor/store_service_spec.rb",
|
83
|
+
"spec/lib/channel_advisor/tax_service_spec.rb",
|
84
|
+
"spec/spec.opts",
|
85
|
+
"spec/spec_helper.rb"
|
86
|
+
]
|
87
|
+
s.homepage = %q{http://github.com/secondrotation/channel_advisor/}
|
88
|
+
s.licenses = ["MIT"]
|
89
|
+
s.require_paths = ["lib"]
|
90
|
+
s.rubygems_version = %q{1.4.2}
|
91
|
+
s.summary = %q{channel_advisor}
|
92
|
+
s.test_files = [
|
93
|
+
"spec/integration/inventory_sync_spec.rb",
|
94
|
+
"spec/lib/channel_advisor/admin_service_spec.rb",
|
95
|
+
"spec/lib/channel_advisor/auth_handler_spec.rb",
|
96
|
+
"spec/lib/channel_advisor/cart_service_spec.rb",
|
97
|
+
"spec/lib/channel_advisor/errors_spec.rb",
|
98
|
+
"spec/lib/channel_advisor/inventory_service_spec.rb",
|
99
|
+
"spec/lib/channel_advisor/marketplace_ad_service_spec.rb",
|
100
|
+
"spec/lib/channel_advisor/message_code_spec.rb",
|
101
|
+
"spec/lib/channel_advisor/order_service_spec.rb",
|
102
|
+
"spec/lib/channel_advisor/service_proxy_spec.rb",
|
103
|
+
"spec/lib/channel_advisor/shipping_service_spec.rb",
|
104
|
+
"spec/lib/channel_advisor/store_service_spec.rb",
|
105
|
+
"spec/lib/channel_advisor/tax_service_spec.rb",
|
106
|
+
"spec/spec_helper.rb"
|
107
|
+
]
|
108
|
+
|
109
|
+
if s.respond_to? :specification_version then
|
110
|
+
s.specification_version = 3
|
111
|
+
|
112
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
113
|
+
s.add_runtime_dependency(%q<soap4r>, ["~> 1.5"])
|
114
|
+
s.add_runtime_dependency(%q<configatron>, ["~> 2.6"])
|
115
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
116
|
+
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
117
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
118
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
119
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
120
|
+
s.add_development_dependency(%q<metric_fu>, [">= 0"])
|
121
|
+
else
|
122
|
+
s.add_dependency(%q<soap4r>, ["~> 1.5"])
|
123
|
+
s.add_dependency(%q<configatron>, ["~> 2.6"])
|
124
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
125
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
126
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
127
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
128
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
129
|
+
s.add_dependency(%q<metric_fu>, [">= 0"])
|
130
|
+
end
|
131
|
+
else
|
132
|
+
s.add_dependency(%q<soap4r>, ["~> 1.5"])
|
133
|
+
s.add_dependency(%q<configatron>, ["~> 2.6"])
|
134
|
+
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
135
|
+
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
136
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
137
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
138
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
139
|
+
s.add_dependency(%q<metric_fu>, [">= 0"])
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
@@ -1,7 +1,8 @@
|
|
1
|
+
|
1
2
|
module ChannelAdvisor::AdminServiceSOAP
|
2
3
|
|
3
4
|
class AdminServiceSoap < ::SOAP::RPC::Driver
|
4
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v3/AdminService.asmx"
|
5
6
|
|
6
7
|
Methods = [
|
7
8
|
[ "http://api.channeladvisor.com/webservices/GetAuthorizationList",
|
@@ -1,7 +1,8 @@
|
|
1
|
+
|
1
2
|
module ChannelAdvisor::CartServiceSOAP
|
2
3
|
|
3
4
|
class CartServiceSoap < ::SOAP::RPC::Driver
|
4
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v3/CartService.asmx"
|
5
6
|
|
6
7
|
Methods = [
|
7
8
|
[ "http://api.channeladvisor.com/webservices/GetCart",
|
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
module ChannelAdvisor; module CartServiceSOAP
|
2
3
|
|
3
4
|
|
@@ -235,6 +236,8 @@ end
|
|
235
236
|
# {http://api.channeladvisor.com/datacontracts/orders}SiteToken
|
236
237
|
class SiteToken < ::String
|
237
238
|
AMAZON_AUCTIONS = SiteToken.new("AMAZON_AUCTIONS")
|
239
|
+
AMAZON_DE = SiteToken.new("AMAZON_DE")
|
240
|
+
AMAZON_FR = SiteToken.new("AMAZON_FR")
|
238
241
|
AMAZON_MARKETPLACE = SiteToken.new("AMAZON_MARKETPLACE")
|
239
242
|
AMAZON_MERCHANTSAT = SiteToken.new("AMAZON_MERCHANTSAT")
|
240
243
|
AMAZON_UK = SiteToken.new("AMAZON_UK")
|
@@ -1,7 +1,8 @@
|
|
1
|
+
|
1
2
|
module ChannelAdvisor::InventoryServiceSOAP
|
2
3
|
|
3
4
|
class InventoryServiceSoap < ::SOAP::RPC::Driver
|
4
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v3/InventoryService.asmx"
|
5
6
|
|
6
7
|
Methods = [
|
7
8
|
[ "http://api.channeladvisor.com/webservices/DoesSkuExist",
|
@@ -76,10 +77,10 @@ class InventoryServiceSoap < ::SOAP::RPC::Driver
|
|
76
77
|
:response_style => :document, :response_use => :literal,
|
77
78
|
:faults => {} }
|
78
79
|
],
|
79
|
-
[ "http://api.channeladvisor.com/webservices/
|
80
|
-
"
|
81
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "
|
82
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "
|
80
|
+
[ "http://api.channeladvisor.com/webservices/GetInventoryItemAttributeList",
|
81
|
+
"getInventoryItemAttributeList",
|
82
|
+
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "GetInventoryItemAttributeList"]],
|
83
|
+
["out", "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "GetInventoryItemAttributeListResponse"]] ],
|
83
84
|
{ :request_style => :document, :request_use => :literal,
|
84
85
|
:response_style => :document, :response_use => :literal,
|
85
86
|
:faults => {} }
|