channel_advisor 0.1.0 → 0.2.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/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
@@ -2,13 +2,17 @@
|
|
2
2
|
module ChannelAdvisor; module OrderServiceSOAP
|
3
3
|
|
4
4
|
|
5
|
-
# {http://api.channeladvisor.com/webservices/}
|
5
|
+
# {http://api.channeladvisor.com/webservices/}ArrayOfString
|
6
|
+
class ArrayOfString < ::Array
|
7
|
+
end
|
8
|
+
|
9
|
+
# {http://api.channeladvisor.com/webservices/}APIResultOfArrayOfBoolean
|
6
10
|
# status - ChannelAdvisor::OrderServiceSOAP::ResultStatus
|
7
11
|
# messageCode - SOAP::SOAPInt
|
8
12
|
# message - SOAP::SOAPString
|
9
13
|
# data - SOAP::SOAPString
|
10
|
-
# resultData - ChannelAdvisor::OrderServiceSOAP::
|
11
|
-
class
|
14
|
+
# resultData - ChannelAdvisor::OrderServiceSOAP::ArrayOfBoolean
|
15
|
+
class APIResultOfArrayOfBoolean
|
12
16
|
attr_accessor :status
|
13
17
|
attr_accessor :messageCode
|
14
18
|
attr_accessor :message
|
@@ -24,6 +28,10 @@ class APIResultOfRefundItemResponse
|
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
31
|
+
# {http://api.channeladvisor.com/webservices/}ArrayOfBoolean
|
32
|
+
class ArrayOfBoolean < ::Array
|
33
|
+
end
|
34
|
+
|
27
35
|
# {http://api.channeladvisor.com/webservices/}APICredentials
|
28
36
|
# developerKey - SOAP::SOAPString
|
29
37
|
# password - SOAP::SOAPString
|
@@ -37,36 +45,6 @@ class APICredentials
|
|
37
45
|
end
|
38
46
|
end
|
39
47
|
|
40
|
-
# {http://api.channeladvisor.com/webservices/}ArrayOfString
|
41
|
-
class ArrayOfString < ::Array
|
42
|
-
end
|
43
|
-
|
44
|
-
# {http://api.channeladvisor.com/webservices/}APIResultOfArrayOfBoolean
|
45
|
-
# status - ChannelAdvisor::OrderServiceSOAP::ResultStatus
|
46
|
-
# messageCode - SOAP::SOAPInt
|
47
|
-
# message - SOAP::SOAPString
|
48
|
-
# data - SOAP::SOAPString
|
49
|
-
# resultData - ChannelAdvisor::OrderServiceSOAP::ArrayOfBoolean
|
50
|
-
class APIResultOfArrayOfBoolean
|
51
|
-
attr_accessor :status
|
52
|
-
attr_accessor :messageCode
|
53
|
-
attr_accessor :message
|
54
|
-
attr_accessor :data
|
55
|
-
attr_accessor :resultData
|
56
|
-
|
57
|
-
def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
|
58
|
-
@status = status
|
59
|
-
@messageCode = messageCode
|
60
|
-
@message = message
|
61
|
-
@data = data
|
62
|
-
@resultData = resultData
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# {http://api.channeladvisor.com/webservices/}ArrayOfBoolean
|
67
|
-
class ArrayOfBoolean < ::Array
|
68
|
-
end
|
69
|
-
|
70
48
|
# {http://api.channeladvisor.com/webservices/}APIResultOfRefundOrderResponse
|
71
49
|
# status - ChannelAdvisor::OrderServiceSOAP::ResultStatus
|
72
50
|
# messageCode - SOAP::SOAPInt
|
@@ -194,17 +172,20 @@ end
|
|
194
172
|
# flagStyle - ChannelAdvisor::OrderServiceSOAP::FlagType
|
195
173
|
# flagDescription - SOAP::SOAPString
|
196
174
|
# transactionNotes - ChannelAdvisor::OrderServiceSOAP::TransactionNoteSubmit
|
175
|
+
# orderStatusUpdate - ChannelAdvisor::OrderServiceSOAP::OrderStatusUpdateSubmit
|
197
176
|
class OrderUpdateSubmit
|
198
177
|
attr_accessor :orderID
|
199
178
|
attr_accessor :flagStyle
|
200
179
|
attr_accessor :flagDescription
|
201
180
|
attr_accessor :transactionNotes
|
181
|
+
attr_accessor :orderStatusUpdate
|
202
182
|
|
203
|
-
def initialize(orderID = nil, flagStyle = nil, flagDescription = nil, transactionNotes = nil)
|
183
|
+
def initialize(orderID = nil, flagStyle = nil, flagDescription = nil, transactionNotes = nil, orderStatusUpdate = nil)
|
204
184
|
@orderID = orderID
|
205
185
|
@flagStyle = flagStyle
|
206
186
|
@flagDescription = flagDescription
|
207
187
|
@transactionNotes = transactionNotes
|
188
|
+
@orderStatusUpdate = orderStatusUpdate
|
208
189
|
end
|
209
190
|
end
|
210
191
|
|
@@ -221,6 +202,64 @@ class TransactionNoteSubmit
|
|
221
202
|
end
|
222
203
|
end
|
223
204
|
|
205
|
+
# {http://api.channeladvisor.com/webservices/}OrderStatusUpdateSubmit
|
206
|
+
# checkoutPaymentStatus - ChannelAdvisor::OrderServiceSOAP::CheckoutPaymentStatusCode
|
207
|
+
# shippingStatus - ChannelAdvisor::OrderServiceSOAP::ShippingStatusCode
|
208
|
+
class OrderStatusUpdateSubmit
|
209
|
+
attr_accessor :checkoutPaymentStatus
|
210
|
+
attr_accessor :shippingStatus
|
211
|
+
|
212
|
+
def initialize(checkoutPaymentStatus = nil, shippingStatus = nil)
|
213
|
+
@checkoutPaymentStatus = checkoutPaymentStatus
|
214
|
+
@shippingStatus = shippingStatus
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# {http://api.channeladvisor.com/webservices/}APIResultOfArrayOfOrderUpdateResponse
|
219
|
+
# status - ChannelAdvisor::OrderServiceSOAP::ResultStatus
|
220
|
+
# messageCode - SOAP::SOAPInt
|
221
|
+
# message - SOAP::SOAPString
|
222
|
+
# data - SOAP::SOAPString
|
223
|
+
# resultData - ChannelAdvisor::OrderServiceSOAP::ArrayOfOrderUpdateResponse
|
224
|
+
class APIResultOfArrayOfOrderUpdateResponse
|
225
|
+
attr_accessor :status
|
226
|
+
attr_accessor :messageCode
|
227
|
+
attr_accessor :message
|
228
|
+
attr_accessor :data
|
229
|
+
attr_accessor :resultData
|
230
|
+
|
231
|
+
def initialize(status = nil, messageCode = nil, message = nil, data = nil, resultData = nil)
|
232
|
+
@status = status
|
233
|
+
@messageCode = messageCode
|
234
|
+
@message = message
|
235
|
+
@data = data
|
236
|
+
@resultData = resultData
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# {http://api.channeladvisor.com/webservices/}ArrayOfOrderUpdateResponse
|
241
|
+
class ArrayOfOrderUpdateResponse < ::Array
|
242
|
+
end
|
243
|
+
|
244
|
+
# {http://api.channeladvisor.com/webservices/}OrderUpdateResponse
|
245
|
+
# flagAndNotesSuccess - SOAP::SOAPBoolean
|
246
|
+
# flagAndNotesMessage - SOAP::SOAPString
|
247
|
+
# orderStatusSuccess - SOAP::SOAPBoolean
|
248
|
+
# orderStatusMessage - SOAP::SOAPString
|
249
|
+
class OrderUpdateResponse
|
250
|
+
attr_accessor :flagAndNotesSuccess
|
251
|
+
attr_accessor :flagAndNotesMessage
|
252
|
+
attr_accessor :orderStatusSuccess
|
253
|
+
attr_accessor :orderStatusMessage
|
254
|
+
|
255
|
+
def initialize(flagAndNotesSuccess = nil, flagAndNotesMessage = nil, orderStatusSuccess = nil, orderStatusMessage = nil)
|
256
|
+
@flagAndNotesSuccess = flagAndNotesSuccess
|
257
|
+
@flagAndNotesMessage = flagAndNotesMessage
|
258
|
+
@orderStatusSuccess = orderStatusSuccess
|
259
|
+
@orderStatusMessage = orderStatusMessage
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
224
263
|
# {http://api.channeladvisor.com/webservices/}APIResultOfString
|
225
264
|
# status - ChannelAdvisor::OrderServiceSOAP::ResultStatus
|
226
265
|
# messageCode - SOAP::SOAPInt
|
@@ -243,15 +282,27 @@ class APIResultOfString
|
|
243
282
|
end
|
244
283
|
end
|
245
284
|
|
246
|
-
# {http://api.channeladvisor.com/datacontracts/orders}
|
247
|
-
#
|
285
|
+
# {http://api.channeladvisor.com/datacontracts/orders}RefundOrderRequest
|
286
|
+
# clientOrderIdentifier - SOAP::SOAPString
|
287
|
+
# orderID - SOAP::SOAPInt
|
288
|
+
# amount - SOAP::SOAPDecimal
|
289
|
+
# adjustmentReason - ChannelAdvisor::OrderServiceSOAP::RefundAdjustmentReason
|
290
|
+
# sellerRefundID - SOAP::SOAPString
|
248
291
|
# refundItems - ChannelAdvisor::OrderServiceSOAP::ArrayOfRefundItem
|
249
|
-
class
|
292
|
+
class RefundOrderRequest
|
293
|
+
attr_accessor :clientOrderIdentifier
|
250
294
|
attr_accessor :orderID
|
295
|
+
attr_accessor :amount
|
296
|
+
attr_accessor :adjustmentReason
|
297
|
+
attr_accessor :sellerRefundID
|
251
298
|
attr_accessor :refundItems
|
252
299
|
|
253
|
-
def initialize(orderID = nil, refundItems = nil)
|
300
|
+
def initialize(clientOrderIdentifier = nil, orderID = nil, amount = nil, adjustmentReason = nil, sellerRefundID = nil, refundItems = nil)
|
301
|
+
@clientOrderIdentifier = clientOrderIdentifier
|
254
302
|
@orderID = orderID
|
303
|
+
@amount = amount
|
304
|
+
@adjustmentReason = adjustmentReason
|
305
|
+
@sellerRefundID = sellerRefundID
|
255
306
|
@refundItems = refundItems
|
256
307
|
end
|
257
308
|
end
|
@@ -414,44 +465,6 @@ class PaymentInfoResponse < PaymentInfo
|
|
414
465
|
end
|
415
466
|
end
|
416
467
|
|
417
|
-
# {http://api.channeladvisor.com/datacontracts/orders}RefundItemRequest
|
418
|
-
# orderID - SOAP::SOAPString
|
419
|
-
# refundItems - ChannelAdvisor::OrderServiceSOAP::ArrayOfRefundItem
|
420
|
-
class RefundItemRequest
|
421
|
-
attr_accessor :orderID
|
422
|
-
attr_accessor :refundItems
|
423
|
-
|
424
|
-
def initialize(orderID = nil, refundItems = nil)
|
425
|
-
@orderID = orderID
|
426
|
-
@refundItems = refundItems
|
427
|
-
end
|
428
|
-
end
|
429
|
-
|
430
|
-
# {http://api.channeladvisor.com/datacontracts/orders}RefundOrderRequest
|
431
|
-
# clientOrderIdentifier - SOAP::SOAPString
|
432
|
-
# orderID - SOAP::SOAPInt
|
433
|
-
# amount - SOAP::SOAPDecimal
|
434
|
-
# adjustmentReason - ChannelAdvisor::OrderServiceSOAP::RefundAdjustmentReason
|
435
|
-
# sellerRefundID - SOAP::SOAPString
|
436
|
-
# refundItems - ChannelAdvisor::OrderServiceSOAP::ArrayOfRefundItem
|
437
|
-
class RefundOrderRequest
|
438
|
-
attr_accessor :clientOrderIdentifier
|
439
|
-
attr_accessor :orderID
|
440
|
-
attr_accessor :amount
|
441
|
-
attr_accessor :adjustmentReason
|
442
|
-
attr_accessor :sellerRefundID
|
443
|
-
attr_accessor :refundItems
|
444
|
-
|
445
|
-
def initialize(clientOrderIdentifier = nil, orderID = nil, amount = nil, adjustmentReason = nil, sellerRefundID = nil, refundItems = nil)
|
446
|
-
@clientOrderIdentifier = clientOrderIdentifier
|
447
|
-
@orderID = orderID
|
448
|
-
@amount = amount
|
449
|
-
@adjustmentReason = adjustmentReason
|
450
|
-
@sellerRefundID = sellerRefundID
|
451
|
-
@refundItems = refundItems
|
452
|
-
end
|
453
|
-
end
|
454
|
-
|
455
468
|
# {http://api.channeladvisor.com/datacontracts/orders}RefundOrderResponse
|
456
469
|
# clientOrderIdentifier - SOAP::SOAPString
|
457
470
|
# orderID - SOAP::SOAPInt
|
@@ -1197,6 +1210,7 @@ end
|
|
1197
1210
|
# giftWrapTaxCost - SOAP::SOAPDecimal
|
1198
1211
|
# giftMessage - SOAP::SOAPString
|
1199
1212
|
# giftWrapLevel - SOAP::SOAPString
|
1213
|
+
# itemPromoList - ChannelAdvisor::OrderServiceSOAP::ArrayOfOrderLineItemItemPromo
|
1200
1214
|
class OrderLineItemItem < OrderLineItemBase
|
1201
1215
|
attr_accessor :lineItemType
|
1202
1216
|
attr_accessor :unitPrice
|
@@ -1217,8 +1231,9 @@ class OrderLineItemItem < OrderLineItemBase
|
|
1217
1231
|
attr_accessor :giftWrapTaxCost
|
1218
1232
|
attr_accessor :giftMessage
|
1219
1233
|
attr_accessor :giftWrapLevel
|
1234
|
+
attr_accessor :itemPromoList
|
1220
1235
|
|
1221
|
-
def initialize(lineItemType = nil, unitPrice = nil, lineItemID = nil, allowNegativeQuantity = nil, quantity = nil, itemSaleSource = nil, sKU = nil, title = nil, buyerUserID = nil, buyerFeedbackRating = nil, salesSourceID = nil, vATRate = nil, taxCost = nil, shippingCost = nil, shippingTaxCost = nil, giftWrapCost = nil, giftWrapTaxCost = nil, giftMessage = nil, giftWrapLevel = nil)
|
1236
|
+
def initialize(lineItemType = nil, unitPrice = nil, lineItemID = nil, allowNegativeQuantity = nil, quantity = nil, itemSaleSource = nil, sKU = nil, title = nil, buyerUserID = nil, buyerFeedbackRating = nil, salesSourceID = nil, vATRate = nil, taxCost = nil, shippingCost = nil, shippingTaxCost = nil, giftWrapCost = nil, giftWrapTaxCost = nil, giftMessage = nil, giftWrapLevel = nil, itemPromoList = nil)
|
1222
1237
|
@lineItemType = lineItemType
|
1223
1238
|
@unitPrice = unitPrice
|
1224
1239
|
@lineItemID = lineItemID
|
@@ -1238,6 +1253,7 @@ class OrderLineItemItem < OrderLineItemBase
|
|
1238
1253
|
@giftWrapTaxCost = giftWrapTaxCost
|
1239
1254
|
@giftMessage = giftMessage
|
1240
1255
|
@giftWrapLevel = giftWrapLevel
|
1256
|
+
@itemPromoList = itemPromoList
|
1241
1257
|
end
|
1242
1258
|
end
|
1243
1259
|
|
@@ -1261,6 +1277,7 @@ end
|
|
1261
1277
|
# giftWrapTaxCost - SOAP::SOAPDecimal
|
1262
1278
|
# giftMessage - SOAP::SOAPString
|
1263
1279
|
# giftWrapLevel - SOAP::SOAPString
|
1280
|
+
# itemPromoList - ChannelAdvisor::OrderServiceSOAP::ArrayOfOrderLineItemItemPromo
|
1264
1281
|
# unitWeight - ChannelAdvisor::OrderServiceSOAP::ItemWeight
|
1265
1282
|
# warehouseLocation - SOAP::SOAPString
|
1266
1283
|
# userName - SOAP::SOAPString
|
@@ -1285,12 +1302,13 @@ class OrderLineItemItemResponse < OrderLineItemItem
|
|
1285
1302
|
attr_accessor :giftWrapTaxCost
|
1286
1303
|
attr_accessor :giftMessage
|
1287
1304
|
attr_accessor :giftWrapLevel
|
1305
|
+
attr_accessor :itemPromoList
|
1288
1306
|
attr_accessor :unitWeight
|
1289
1307
|
attr_accessor :warehouseLocation
|
1290
1308
|
attr_accessor :userName
|
1291
1309
|
attr_accessor :distributionCenterCode
|
1292
1310
|
|
1293
|
-
def initialize(lineItemType = nil, unitPrice = nil, lineItemID = nil, allowNegativeQuantity = nil, quantity = nil, itemSaleSource = nil, sKU = nil, title = nil, buyerUserID = nil, buyerFeedbackRating = nil, salesSourceID = nil, vATRate = nil, taxCost = nil, shippingCost = nil, shippingTaxCost = nil, giftWrapCost = nil, giftWrapTaxCost = nil, giftMessage = nil, giftWrapLevel = nil, unitWeight = nil, warehouseLocation = nil, userName = nil, distributionCenterCode = nil)
|
1311
|
+
def initialize(lineItemType = nil, unitPrice = nil, lineItemID = nil, allowNegativeQuantity = nil, quantity = nil, itemSaleSource = nil, sKU = nil, title = nil, buyerUserID = nil, buyerFeedbackRating = nil, salesSourceID = nil, vATRate = nil, taxCost = nil, shippingCost = nil, shippingTaxCost = nil, giftWrapCost = nil, giftWrapTaxCost = nil, giftMessage = nil, giftWrapLevel = nil, itemPromoList = nil, unitWeight = nil, warehouseLocation = nil, userName = nil, distributionCenterCode = nil)
|
1294
1312
|
@lineItemType = lineItemType
|
1295
1313
|
@unitPrice = unitPrice
|
1296
1314
|
@lineItemID = lineItemID
|
@@ -1310,6 +1328,7 @@ class OrderLineItemItemResponse < OrderLineItemItem
|
|
1310
1328
|
@giftWrapTaxCost = giftWrapTaxCost
|
1311
1329
|
@giftMessage = giftMessage
|
1312
1330
|
@giftWrapLevel = giftWrapLevel
|
1331
|
+
@itemPromoList = itemPromoList
|
1313
1332
|
@unitWeight = unitWeight
|
1314
1333
|
@warehouseLocation = warehouseLocation
|
1315
1334
|
@userName = userName
|
@@ -1317,35 +1336,58 @@ class OrderLineItemItemResponse < OrderLineItemItem
|
|
1317
1336
|
end
|
1318
1337
|
end
|
1319
1338
|
|
1320
|
-
# {http://api.channeladvisor.com/datacontracts/orders}
|
1339
|
+
# {http://api.channeladvisor.com/datacontracts/orders}OrderLineItemPromo
|
1321
1340
|
# lineItemType - ChannelAdvisor::OrderServiceSOAP::LineItemTypeCode
|
1322
1341
|
# unitPrice - SOAP::SOAPDecimal
|
1323
|
-
|
1342
|
+
# promoCode - SOAP::SOAPString
|
1343
|
+
class OrderLineItemPromo < OrderLineItemBase
|
1324
1344
|
attr_accessor :lineItemType
|
1325
1345
|
attr_accessor :unitPrice
|
1346
|
+
attr_accessor :promoCode
|
1326
1347
|
|
1327
|
-
def initialize(lineItemType = nil, unitPrice = nil)
|
1348
|
+
def initialize(lineItemType = nil, unitPrice = nil, promoCode = nil)
|
1328
1349
|
@lineItemType = lineItemType
|
1329
1350
|
@unitPrice = unitPrice
|
1351
|
+
@promoCode = promoCode
|
1330
1352
|
end
|
1331
1353
|
end
|
1332
1354
|
|
1333
|
-
# {http://api.channeladvisor.com/datacontracts/orders}
|
1355
|
+
# {http://api.channeladvisor.com/datacontracts/orders}OrderLineItemItemPromo
|
1334
1356
|
# lineItemType - ChannelAdvisor::OrderServiceSOAP::LineItemTypeCode
|
1335
1357
|
# unitPrice - SOAP::SOAPDecimal
|
1336
1358
|
# promoCode - SOAP::SOAPString
|
1337
|
-
|
1359
|
+
# shippingPrice - SOAP::SOAPDecimal
|
1360
|
+
class OrderLineItemItemPromo < OrderLineItemPromo
|
1338
1361
|
attr_accessor :lineItemType
|
1339
1362
|
attr_accessor :unitPrice
|
1340
1363
|
attr_accessor :promoCode
|
1364
|
+
attr_accessor :shippingPrice
|
1341
1365
|
|
1342
|
-
def initialize(lineItemType = nil, unitPrice = nil, promoCode = nil)
|
1366
|
+
def initialize(lineItemType = nil, unitPrice = nil, promoCode = nil, shippingPrice = nil)
|
1343
1367
|
@lineItemType = lineItemType
|
1344
1368
|
@unitPrice = unitPrice
|
1345
1369
|
@promoCode = promoCode
|
1370
|
+
@shippingPrice = shippingPrice
|
1371
|
+
end
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
# {http://api.channeladvisor.com/datacontracts/orders}OrderLineItemInvoice
|
1375
|
+
# lineItemType - ChannelAdvisor::OrderServiceSOAP::LineItemTypeCode
|
1376
|
+
# unitPrice - SOAP::SOAPDecimal
|
1377
|
+
class OrderLineItemInvoice < OrderLineItemBase
|
1378
|
+
attr_accessor :lineItemType
|
1379
|
+
attr_accessor :unitPrice
|
1380
|
+
|
1381
|
+
def initialize(lineItemType = nil, unitPrice = nil)
|
1382
|
+
@lineItemType = lineItemType
|
1383
|
+
@unitPrice = unitPrice
|
1346
1384
|
end
|
1347
1385
|
end
|
1348
1386
|
|
1387
|
+
# {http://api.channeladvisor.com/datacontracts/orders}ArrayOfOrderLineItemItemPromo
|
1388
|
+
class ArrayOfOrderLineItemItemPromo < ::Array
|
1389
|
+
end
|
1390
|
+
|
1349
1391
|
# {http://api.channeladvisor.com/datacontracts/orders}ItemWeight
|
1350
1392
|
# xmlattr_UnitOfMeasure - SOAP::SOAPString
|
1351
1393
|
class ItemWeight < ::String
|
@@ -1569,6 +1611,7 @@ end
|
|
1569
1611
|
|
1570
1612
|
# {http://api.channeladvisor.com/datacontracts/orders}ExportStateType
|
1571
1613
|
class ExportStateType < ::String
|
1614
|
+
Exported = ExportStateType.new("Exported")
|
1572
1615
|
NotExported = ExportStateType.new("NotExported")
|
1573
1616
|
Unknown = ExportStateType.new("Unknown")
|
1574
1617
|
end
|
@@ -1666,30 +1709,14 @@ class LineItemTypeCode < ::String
|
|
1666
1709
|
VATShipping = LineItemTypeCode.new("VATShipping")
|
1667
1710
|
end
|
1668
1711
|
|
1669
|
-
# {http://api.channeladvisor.com/
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1675
|
-
|
1676
|
-
|
1677
|
-
|
1678
|
-
def initialize(accountID = nil, orderID = nil, reason = nil)
|
1679
|
-
@accountID = accountID
|
1680
|
-
@orderID = orderID
|
1681
|
-
@reason = reason
|
1682
|
-
end
|
1683
|
-
end
|
1684
|
-
|
1685
|
-
# {http://api.channeladvisor.com/webservices/}SubmitAmazonFullRefundResponse
|
1686
|
-
# submitAmazonFullRefundResult - ChannelAdvisor::OrderServiceSOAP::APIResultOfRefundItemResponse
|
1687
|
-
class SubmitAmazonFullRefundResponse
|
1688
|
-
attr_accessor :submitAmazonFullRefundResult
|
1689
|
-
|
1690
|
-
def initialize(submitAmazonFullRefundResult = nil)
|
1691
|
-
@submitAmazonFullRefundResult = submitAmazonFullRefundResult
|
1692
|
-
end
|
1712
|
+
# {http://api.channeladvisor.com/datacontracts/orders}CheckoutPaymentStatusCode
|
1713
|
+
class CheckoutPaymentStatusCode < ::String
|
1714
|
+
CheckoutCanceledPaymentFailed = CheckoutPaymentStatusCode.new("CheckoutCanceledPaymentFailed")
|
1715
|
+
CheckoutReopenedPaymentFailed = CheckoutPaymentStatusCode.new("CheckoutReopenedPaymentFailed")
|
1716
|
+
CheckoutSamePaymentCleared = CheckoutPaymentStatusCode.new("CheckoutSamePaymentCleared")
|
1717
|
+
CheckoutSamePaymentDeposited = CheckoutPaymentStatusCode.new("CheckoutSamePaymentDeposited")
|
1718
|
+
CheckoutSamePaymentSubmitted = CheckoutPaymentStatusCode.new("CheckoutSamePaymentSubmitted")
|
1719
|
+
NoChange = CheckoutPaymentStatusCode.new("NoChange")
|
1693
1720
|
end
|
1694
1721
|
|
1695
1722
|
# {http://api.channeladvisor.com/webservices/}SetOrdersExportStatus
|
@@ -1718,29 +1745,6 @@ class SetOrdersExportStatusResponse
|
|
1718
1745
|
end
|
1719
1746
|
end
|
1720
1747
|
|
1721
|
-
# {http://api.channeladvisor.com/webservices/}SubmitAmazonPartialRefund
|
1722
|
-
# accountID - SOAP::SOAPString
|
1723
|
-
# request - ChannelAdvisor::OrderServiceSOAP::RefundItemRequest
|
1724
|
-
class SubmitAmazonPartialRefund
|
1725
|
-
attr_accessor :accountID
|
1726
|
-
attr_accessor :request
|
1727
|
-
|
1728
|
-
def initialize(accountID = nil, request = nil)
|
1729
|
-
@accountID = accountID
|
1730
|
-
@request = request
|
1731
|
-
end
|
1732
|
-
end
|
1733
|
-
|
1734
|
-
# {http://api.channeladvisor.com/webservices/}SubmitAmazonPartialRefundResponse
|
1735
|
-
# submitAmazonPartialRefundResult - ChannelAdvisor::OrderServiceSOAP::APIResultOfRefundItemResponse
|
1736
|
-
class SubmitAmazonPartialRefundResponse
|
1737
|
-
attr_accessor :submitAmazonPartialRefundResult
|
1738
|
-
|
1739
|
-
def initialize(submitAmazonPartialRefundResult = nil)
|
1740
|
-
@submitAmazonPartialRefundResult = submitAmazonPartialRefundResult
|
1741
|
-
end
|
1742
|
-
end
|
1743
|
-
|
1744
1748
|
# {http://api.channeladvisor.com/webservices/}SubmitOrderRefund
|
1745
1749
|
# accountID - SOAP::SOAPString
|
1746
1750
|
# request - ChannelAdvisor::OrderServiceSOAP::RefundOrderRequest
|
@@ -1902,7 +1906,7 @@ class UpdateOrderList
|
|
1902
1906
|
end
|
1903
1907
|
|
1904
1908
|
# {http://api.channeladvisor.com/webservices/}UpdateOrderListResponse
|
1905
|
-
# updateOrderListResult - ChannelAdvisor::OrderServiceSOAP::
|
1909
|
+
# updateOrderListResult - ChannelAdvisor::OrderServiceSOAP::APIResultOfArrayOfOrderUpdateResponse
|
1906
1910
|
class UpdateOrderListResponse
|
1907
1911
|
attr_accessor :updateOrderListResult
|
1908
1912
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
module ChannelAdvisor::ShippingServiceSOAP
|
3
3
|
|
4
4
|
class ShippingServiceSoap < ::SOAP::RPC::Driver
|
5
|
-
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/
|
5
|
+
DefaultEndpointUrl = "https://api.channeladvisor.com/ChannelAdvisorAPI/v4/ShippingService.asmx"
|
6
6
|
|
7
7
|
Methods = [
|
8
8
|
[ "http://api.channeladvisor.com/webservices/GetShippingRateList",
|
@@ -4,6 +4,7 @@ module ChannelAdvisor; module ShippingServiceSOAP
|
|
4
4
|
module DefaultMappingRegistry
|
5
5
|
EncodedRegistry = ::SOAP::Mapping::EncodedRegistry.new
|
6
6
|
LiteralRegistry = ::SOAP::Mapping::LiteralRegistry.new
|
7
|
+
NsShippingService = "http://api.channeladvisor.com/datacontracts/ShippingService"
|
7
8
|
NsWebservices = "http://api.channeladvisor.com/webservices/"
|
8
9
|
|
9
10
|
EncodedRegistry.register(
|
@@ -182,6 +183,26 @@ module DefaultMappingRegistry
|
|
182
183
|
]
|
183
184
|
)
|
184
185
|
|
186
|
+
EncodedRegistry.register(
|
187
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::APIResultOfArrayOfShipmentResponse,
|
188
|
+
:schema_type => XSD::QName.new(NsWebservices, "APIResultOfArrayOfShipmentResponse"),
|
189
|
+
:schema_element => [
|
190
|
+
["status", ["ChannelAdvisor::ShippingServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
|
191
|
+
["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
|
192
|
+
["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
|
193
|
+
["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
|
194
|
+
["resultData", ["ChannelAdvisor::ShippingServiceSOAP::ArrayOfShipmentResponse", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
|
195
|
+
]
|
196
|
+
)
|
197
|
+
|
198
|
+
EncodedRegistry.register(
|
199
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::ArrayOfShipmentResponse,
|
200
|
+
:schema_type => XSD::QName.new(NsWebservices, "ArrayOfShipmentResponse"),
|
201
|
+
:schema_element => [
|
202
|
+
["shipmentResponse", ["ChannelAdvisor::ShippingServiceSOAP::ShipmentResponse[]", XSD::QName.new(NsWebservices, "ShipmentResponse")], [0, nil]]
|
203
|
+
]
|
204
|
+
)
|
205
|
+
|
185
206
|
EncodedRegistry.register(
|
186
207
|
:class => ChannelAdvisor::ShippingServiceSOAP::APIResultOfString,
|
187
208
|
:schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
|
@@ -194,6 +215,15 @@ module DefaultMappingRegistry
|
|
194
215
|
]
|
195
216
|
)
|
196
217
|
|
218
|
+
EncodedRegistry.register(
|
219
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::ShipmentResponse,
|
220
|
+
:schema_type => XSD::QName.new(NsShippingService, "ShipmentResponse"),
|
221
|
+
:schema_element => [
|
222
|
+
["success", ["SOAP::SOAPBoolean", XSD::QName.new(NsShippingService, "Success")]],
|
223
|
+
["message", ["SOAP::SOAPString", XSD::QName.new(NsShippingService, "Message")], [0, 1]]
|
224
|
+
]
|
225
|
+
)
|
226
|
+
|
197
227
|
EncodedRegistry.register(
|
198
228
|
:class => ChannelAdvisor::ShippingServiceSOAP::ResultStatus,
|
199
229
|
:schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
|
@@ -380,6 +410,26 @@ module DefaultMappingRegistry
|
|
380
410
|
]
|
381
411
|
)
|
382
412
|
|
413
|
+
LiteralRegistry.register(
|
414
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::APIResultOfArrayOfShipmentResponse,
|
415
|
+
:schema_type => XSD::QName.new(NsWebservices, "APIResultOfArrayOfShipmentResponse"),
|
416
|
+
:schema_element => [
|
417
|
+
["status", ["ChannelAdvisor::ShippingServiceSOAP::ResultStatus", XSD::QName.new(NsWebservices, "Status")]],
|
418
|
+
["messageCode", ["SOAP::SOAPInt", XSD::QName.new(NsWebservices, "MessageCode")]],
|
419
|
+
["message", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Message")], [0, 1]],
|
420
|
+
["data", ["SOAP::SOAPString", XSD::QName.new(NsWebservices, "Data")], [0, 1]],
|
421
|
+
["resultData", ["ChannelAdvisor::ShippingServiceSOAP::ArrayOfShipmentResponse", XSD::QName.new(NsWebservices, "ResultData")], [0, 1]]
|
422
|
+
]
|
423
|
+
)
|
424
|
+
|
425
|
+
LiteralRegistry.register(
|
426
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::ArrayOfShipmentResponse,
|
427
|
+
:schema_type => XSD::QName.new(NsWebservices, "ArrayOfShipmentResponse"),
|
428
|
+
:schema_element => [
|
429
|
+
["shipmentResponse", ["ChannelAdvisor::ShippingServiceSOAP::ShipmentResponse[]", XSD::QName.new(NsWebservices, "ShipmentResponse")], [0, nil]]
|
430
|
+
]
|
431
|
+
)
|
432
|
+
|
383
433
|
LiteralRegistry.register(
|
384
434
|
:class => ChannelAdvisor::ShippingServiceSOAP::APIResultOfString,
|
385
435
|
:schema_type => XSD::QName.new(NsWebservices, "APIResultOfString"),
|
@@ -392,6 +442,15 @@ module DefaultMappingRegistry
|
|
392
442
|
]
|
393
443
|
)
|
394
444
|
|
445
|
+
LiteralRegistry.register(
|
446
|
+
:class => ChannelAdvisor::ShippingServiceSOAP::ShipmentResponse,
|
447
|
+
:schema_type => XSD::QName.new(NsShippingService, "ShipmentResponse"),
|
448
|
+
:schema_element => [
|
449
|
+
["success", ["SOAP::SOAPBoolean", XSD::QName.new(NsShippingService, "Success")]],
|
450
|
+
["message", ["SOAP::SOAPString", XSD::QName.new(NsShippingService, "Message")], [0, 1]]
|
451
|
+
]
|
452
|
+
)
|
453
|
+
|
395
454
|
LiteralRegistry.register(
|
396
455
|
:class => ChannelAdvisor::ShippingServiceSOAP::ResultStatus,
|
397
456
|
:schema_type => XSD::QName.new(NsWebservices, "ResultStatus")
|
@@ -484,7 +543,7 @@ module DefaultMappingRegistry
|
|
484
543
|
:class => ChannelAdvisor::ShippingServiceSOAP::SubmitOrderShipmentListResponse,
|
485
544
|
:schema_name => XSD::QName.new(NsWebservices, "SubmitOrderShipmentListResponse"),
|
486
545
|
:schema_element => [
|
487
|
-
["submitOrderShipmentListResult", ["ChannelAdvisor::ShippingServiceSOAP::
|
546
|
+
["submitOrderShipmentListResult", ["ChannelAdvisor::ShippingServiceSOAP::APIResultOfArrayOfShipmentResponse", XSD::QName.new(NsWebservices, "SubmitOrderShipmentListResult")], [0, 1]]
|
488
547
|
]
|
489
548
|
)
|
490
549
|
|