channel_advisor 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +4 -4
- data/README +1 -1
- data/Rakefile +5 -8
- data/VERSION +1 -1
- data/channel_advisor.gemspec +14 -15
- data/lib/channel_advisor/admin_service/client.rb +1 -1
- data/lib/channel_advisor/cart_service/client.rb +1 -1
- data/lib/channel_advisor/inventory_service/client.rb +25 -1
- data/lib/channel_advisor/inventory_service/mapping_registry.rb +260 -0
- data/lib/channel_advisor/inventory_service/types.rb +200 -0
- data/lib/channel_advisor/listing_service/client.rb +1 -1
- data/lib/channel_advisor/marketplace_ad_service/client.rb +1 -1
- data/lib/channel_advisor/order_service/client.rb +1 -17
- data/lib/channel_advisor/order_service/mapping_registry.rb +186 -145
- data/lib/channel_advisor/order_service/types.rb +136 -132
- data/lib/channel_advisor/shipping_service/client.rb +1 -1
- data/lib/channel_advisor/shipping_service/mapping_registry.rb +60 -1
- data/lib/channel_advisor/shipping_service/types.rb +40 -1
- data/lib/channel_advisor/store_service/client.rb +1 -1
- data/lib/channel_advisor/tax_service/client.rb +1 -1
- data/lib/channel_advisor/tax_service/mapping_registry.rb +20 -20
- data/lib/channel_advisor/tax_service/types.rb +19 -19
- metadata +11 -16
- data/Gemfile.lock +0 -103
@@ -268,6 +268,32 @@ class FullShipmentContents
|
|
268
268
|
end
|
269
269
|
end
|
270
270
|
|
271
|
+
# {http://api.channeladvisor.com/webservices/}APIResultOfArrayOfShipmentResponse
|
272
|
+
# status - ChannelAdvisor::ShippingServiceSOAP::ResultStatus
|
273
|
+
# messageCode - SOAP::SOAPInt
|
274
|
+
# message - SOAP::SOAPString
|
275
|
+
# data - SOAP::SOAPString
|
276
|
+
# resultData - ChannelAdvisor::ShippingServiceSOAP::ArrayOfShipmentResponse
|
277
|
+
class APIResultOfArrayOfShipmentResponse
|
278
|
+
attr_accessor :status
|
279
|
+
attr_accessor :messageCode
|
280
|
+
attr_accessor :message
|
281
|
+
attr_accessor :data
|
282
|
+
attr_accessor :resultData
|
283
|
+
|
284
|
+
def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
|
285
|
+
@status = status
|
286
|
+
@messageCode = messageCode
|
287
|
+
@message = message
|
288
|
+
@data = data
|
289
|
+
@resultData = resultData
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# {http://api.channeladvisor.com/webservices/}ArrayOfShipmentResponse
|
294
|
+
class ArrayOfShipmentResponse < ::Array
|
295
|
+
end
|
296
|
+
|
271
297
|
# {http://api.channeladvisor.com/webservices/}APIResultOfString
|
272
298
|
# status - ChannelAdvisor::ShippingServiceSOAP::ResultStatus
|
273
299
|
# messageCode - SOAP::SOAPInt
|
@@ -290,6 +316,19 @@ class APIResultOfString
|
|
290
316
|
end
|
291
317
|
end
|
292
318
|
|
319
|
+
# {http://api.channeladvisor.com/datacontracts/ShippingService}ShipmentResponse
|
320
|
+
# success - SOAP::SOAPBoolean
|
321
|
+
# message - SOAP::SOAPString
|
322
|
+
class ShipmentResponse
|
323
|
+
attr_accessor :success
|
324
|
+
attr_accessor :message
|
325
|
+
|
326
|
+
def initialize(success = nil, message = nil)
|
327
|
+
@success = success
|
328
|
+
@message = message
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
293
332
|
# {http://api.channeladvisor.com/webservices/}ResultStatus
|
294
333
|
class ResultStatus < ::String
|
295
334
|
Failure = ResultStatus.new("Failure")
|
@@ -412,7 +451,7 @@ class SubmitOrderShipmentList
|
|
412
451
|
end
|
413
452
|
|
414
453
|
# {http://api.channeladvisor.com/webservices/}SubmitOrderShipmentListResponse
|
415
|
-
# submitOrderShipmentListResult - ChannelAdvisor::ShippingServiceSOAP::
|
454
|
+
# submitOrderShipmentListResult - ChannelAdvisor::ShippingServiceSOAP::APIResultOfArrayOfShipmentResponse
|
416
455
|
class SubmitOrderShipmentListResponse
|
417
456
|
attr_accessor :submitOrderShipmentListResult
|
418
457
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
module ChannelAdvisor::StoreServiceSOAP
|
3
3
|
|
4
4
|
class StoreServiceSoap < ::SOAP::RPC::Driver
|
5
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v4/StoreService.asmx"
|
6
6
|
|
7
7
|
Methods = [
|
8
8
|
[ "http://api.channeladvisor.com/webservices/GetSearchAnalysisStats",
|
@@ -2,7 +2,7 @@
|
|
2
2
|
module ChannelAdvisor::TaxServiceSOAP
|
3
3
|
|
4
4
|
class TaxServiceSoap < ::SOAP::RPC::Driver
|
5
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v4/TaxService.asmx"
|
6
6
|
|
7
7
|
Methods = [
|
8
8
|
[ "http://api.channeladvisor.com/webservices/GetTaxRateList",
|
@@ -37,30 +37,30 @@ module DefaultMappingRegistry
|
|
37
37
|
)
|
38
38
|
|
39
39
|
EncodedRegistry.register(
|
40
|
-
:class => ChannelAdvisor::TaxServiceSOAP::
|
41
|
-
:schema_type => XSD::QName.new(NsWebservices, "
|
40
|
+
:class => ChannelAdvisor::TaxServiceSOAP::TaxItemProduct,
|
41
|
+
:schema_type => XSD::QName.new(NsWebservices, "TaxItemProduct"),
|
42
42
|
:schema_basetype => XSD::QName.new(NsWebservices, "TaxItemBase"),
|
43
43
|
:schema_element => [
|
44
44
|
["taxAmount", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "TaxAmount")]],
|
45
45
|
["taxRate", ["SOAP::SOAPDouble", XSD::QName.new(NsWebservices, "TaxRate")]],
|
46
46
|
["taxType", ["ChannelAdvisor::TaxServiceSOAP::TaxTypeCode", XSD::QName.new(NsWebservices, "TaxType")]],
|
47
|
-
["
|
47
|
+
["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "Quantity")]],
|
48
|
+
["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "UnitPrice")]],
|
49
|
+
["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "LineItemID")]],
|
50
|
+
["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
|
51
|
+
["sKU", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SKU")], [0, 1]]
|
48
52
|
]
|
49
53
|
)
|
50
54
|
|
51
55
|
EncodedRegistry.register(
|
52
|
-
:class => ChannelAdvisor::TaxServiceSOAP::
|
53
|
-
:schema_type => XSD::QName.new(NsWebservices, "
|
56
|
+
:class => ChannelAdvisor::TaxServiceSOAP::TaxItemVatShipping,
|
57
|
+
:schema_type => XSD::QName.new(NsWebservices, "TaxItemVatShipping"),
|
54
58
|
:schema_basetype => XSD::QName.new(NsWebservices, "TaxItemBase"),
|
55
59
|
:schema_element => [
|
56
60
|
["taxAmount", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "TaxAmount")]],
|
57
61
|
["taxRate", ["SOAP::SOAPDouble", XSD::QName.new(NsWebservices, "TaxRate")]],
|
58
62
|
["taxType", ["ChannelAdvisor::TaxServiceSOAP::TaxTypeCode", XSD::QName.new(NsWebservices, "TaxType")]],
|
59
|
-
["
|
60
|
-
["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "UnitPrice")]],
|
61
|
-
["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "LineItemID")]],
|
62
|
-
["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
|
63
|
-
["sKU", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SKU")], [0, 1]]
|
63
|
+
["shippingCost", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "ShippingCost")]]
|
64
64
|
]
|
65
65
|
)
|
66
66
|
|
@@ -126,30 +126,30 @@ module DefaultMappingRegistry
|
|
126
126
|
)
|
127
127
|
|
128
128
|
LiteralRegistry.register(
|
129
|
-
:class => ChannelAdvisor::TaxServiceSOAP::
|
130
|
-
:schema_type => XSD::QName.new(NsWebservices, "
|
129
|
+
:class => ChannelAdvisor::TaxServiceSOAP::TaxItemProduct,
|
130
|
+
:schema_type => XSD::QName.new(NsWebservices, "TaxItemProduct"),
|
131
131
|
:schema_basetype => XSD::QName.new(NsWebservices, "TaxItemBase"),
|
132
132
|
:schema_element => [
|
133
133
|
["taxAmount", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "TaxAmount")]],
|
134
134
|
["taxRate", ["SOAP::SOAPDouble", XSD::QName.new(NsWebservices, "TaxRate")]],
|
135
135
|
["taxType", ["ChannelAdvisor::TaxServiceSOAP::TaxTypeCode", XSD::QName.new(NsWebservices, "TaxType")]],
|
136
|
-
["
|
136
|
+
["quantity", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "Quantity")]],
|
137
|
+
["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "UnitPrice")]],
|
138
|
+
["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "LineItemID")]],
|
139
|
+
["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
|
140
|
+
["sKU", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SKU")], [0, 1]]
|
137
141
|
]
|
138
142
|
)
|
139
143
|
|
140
144
|
LiteralRegistry.register(
|
141
|
-
:class => ChannelAdvisor::TaxServiceSOAP::
|
142
|
-
:schema_type => XSD::QName.new(NsWebservices, "
|
145
|
+
:class => ChannelAdvisor::TaxServiceSOAP::TaxItemVatShipping,
|
146
|
+
:schema_type => XSD::QName.new(NsWebservices, "TaxItemVatShipping"),
|
143
147
|
:schema_basetype => XSD::QName.new(NsWebservices, "TaxItemBase"),
|
144
148
|
:schema_element => [
|
145
149
|
["taxAmount", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "TaxAmount")]],
|
146
150
|
["taxRate", ["SOAP::SOAPDouble", XSD::QName.new(NsWebservices, "TaxRate")]],
|
147
151
|
["taxType", ["ChannelAdvisor::TaxServiceSOAP::TaxTypeCode", XSD::QName.new(NsWebservices, "TaxType")]],
|
148
|
-
["
|
149
|
-
["unitPrice", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "UnitPrice")]],
|
150
|
-
["lineItemID", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "LineItemID")]],
|
151
|
-
["title", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Title")], [0, 1]],
|
152
|
-
["sKU", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "SKU")], [0, 1]]
|
152
|
+
["shippingCost", ["SOAP::SOAPDecimal", XSD::QName.new(NsWebservices, "ShippingCost")]]
|
153
153
|
]
|
154
154
|
)
|
155
155
|
|
@@ -61,25 +61,6 @@ class TaxItemBase
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
-
# {http://api.channeladvisor.com/webservices/}TaxItemVatShipping
|
65
|
-
# taxAmount - SOAP::SOAPDecimal
|
66
|
-
# taxRate - SOAP::SOAPDouble
|
67
|
-
# taxType - ChannelAdvisor::TaxServiceSOAP::TaxTypeCode
|
68
|
-
# shippingCost - SOAP::SOAPDecimal
|
69
|
-
class TaxItemVatShipping < TaxItemBase
|
70
|
-
attr_accessor :taxAmount
|
71
|
-
attr_accessor :taxRate
|
72
|
-
attr_accessor :taxType
|
73
|
-
attr_accessor :shippingCost
|
74
|
-
|
75
|
-
def initialize(taxAmount = nil, taxRate = nil, taxType = nil, shippingCost = nil)
|
76
|
-
@taxAmount = taxAmount
|
77
|
-
@taxRate = taxRate
|
78
|
-
@taxType = taxType
|
79
|
-
@shippingCost = shippingCost
|
80
|
-
end
|
81
|
-
end
|
82
|
-
|
83
64
|
# {http://api.channeladvisor.com/webservices/}TaxItemProduct
|
84
65
|
# taxAmount - SOAP::SOAPDecimal
|
85
66
|
# taxRate - SOAP::SOAPDouble
|
@@ -111,6 +92,25 @@ class TaxItemProduct < TaxItemBase
|
|
111
92
|
end
|
112
93
|
end
|
113
94
|
|
95
|
+
# {http://api.channeladvisor.com/webservices/}TaxItemVatShipping
|
96
|
+
# taxAmount - SOAP::SOAPDecimal
|
97
|
+
# taxRate - SOAP::SOAPDouble
|
98
|
+
# taxType - ChannelAdvisor::TaxServiceSOAP::TaxTypeCode
|
99
|
+
# shippingCost - SOAP::SOAPDecimal
|
100
|
+
class TaxItemVatShipping < TaxItemBase
|
101
|
+
attr_accessor :taxAmount
|
102
|
+
attr_accessor :taxRate
|
103
|
+
attr_accessor :taxType
|
104
|
+
attr_accessor :shippingCost
|
105
|
+
|
106
|
+
def initialize(taxAmount = nil, taxRate = nil, taxType = nil, shippingCost = nil)
|
107
|
+
@taxAmount = taxAmount
|
108
|
+
@taxRate = taxRate
|
109
|
+
@taxType = taxType
|
110
|
+
@shippingCost = shippingCost
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
114
|
# {http://api.channeladvisor.com/webservices/}APICredentials
|
115
115
|
# developerKey - SOAP::SOAPString
|
116
116
|
# password - SOAP::SOAPString
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: channel_advisor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Second Rotation, Inc.
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-23 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -55,12 +55,11 @@ dependencies:
|
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
hash:
|
58
|
+
hash: 5
|
59
59
|
segments:
|
60
60
|
- 2
|
61
61
|
- 3
|
62
|
-
|
63
|
-
version: 2.3.0
|
62
|
+
version: "2.3"
|
64
63
|
requirement: *id003
|
65
64
|
prerelease: false
|
66
65
|
name: rspec
|
@@ -75,8 +74,7 @@ dependencies:
|
|
75
74
|
segments:
|
76
75
|
- 0
|
77
76
|
- 6
|
78
|
-
|
79
|
-
version: 0.6.0
|
77
|
+
version: "0.6"
|
80
78
|
requirement: *id004
|
81
79
|
prerelease: false
|
82
80
|
name: yard
|
@@ -87,12 +85,11 @@ dependencies:
|
|
87
85
|
requirements:
|
88
86
|
- - ~>
|
89
87
|
- !ruby/object:Gem::Version
|
90
|
-
hash:
|
88
|
+
hash: 15
|
91
89
|
segments:
|
92
90
|
- 1
|
93
91
|
- 0
|
94
|
-
|
95
|
-
version: 1.0.0
|
92
|
+
version: "1.0"
|
96
93
|
requirement: *id005
|
97
94
|
prerelease: false
|
98
95
|
name: bundler
|
@@ -103,12 +100,11 @@ dependencies:
|
|
103
100
|
requirements:
|
104
101
|
- - ~>
|
105
102
|
- !ruby/object:Gem::Version
|
106
|
-
hash:
|
103
|
+
hash: 5
|
107
104
|
segments:
|
108
105
|
- 1
|
109
106
|
- 5
|
110
|
-
|
111
|
-
version: 1.5.2
|
107
|
+
version: "1.5"
|
112
108
|
requirement: *id006
|
113
109
|
prerelease: false
|
114
110
|
name: jeweler
|
@@ -152,7 +148,6 @@ extra_rdoc_files:
|
|
152
148
|
files:
|
153
149
|
- .rspec
|
154
150
|
- Gemfile
|
155
|
-
- Gemfile.lock
|
156
151
|
- LICENSE
|
157
152
|
- README
|
158
153
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,103 +0,0 @@
|
|
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)
|