g4s_client 0.1.2

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/.DS_Store ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ pkg
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in lorem.gemspec
4
+ gemspec
data/README ADDED
File without changes
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,36 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require "g4s/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = %q{g4s_client}
6
+ s.version = G4SClient::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
+ s.authors = ["Rob Tierney"]
10
+ s.date = %q{2011-01-05}
11
+ s.description = %q{G4S SOAP Client}
12
+ s.email = %q{robtierney@gmail.com}
13
+ s.extra_rdoc_files = [
14
+ "README"
15
+ ]
16
+
17
+ # uses gitignore to find appropriate files
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+
22
+ s.homepage = %q{http://github.com/robtierney/g4s_client}
23
+ s.rdoc_options = ["--charset=UTF-8"]
24
+ s.require_paths = ["lib"]
25
+ s.summary = %q{G4S SOAP Client}
26
+
27
+ if s.respond_to? :specification_version then
28
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
29
+ s.specification_version = 3
30
+
31
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
32
+ else
33
+ end
34
+ else
35
+ end
36
+ end
data/lib/g4s/g4s.rb ADDED
@@ -0,0 +1,29 @@
1
+
2
+ module G4S
3
+
4
+ #TODO: add method_missing to forward calls to the service.
5
+ class Shipping
6
+ attr_reader :service
7
+ def initialize(endpoint=nil)
8
+ @endpoint = endpoint || ENV['G4S_SHIPPING_ENDPOINT_URL']
9
+ @service = IPSShippingSoap.new(@endpoint)
10
+ end
11
+ end
12
+
13
+ class Tracking
14
+ attr_reader :service
15
+ def initialize(endpoint=nil)
16
+ @endpoint = endpoint || ENV['G4S_TRACKING_ENDPOINT_URL']
17
+ @service = IPSTrackingSoap.new(@endpoint)
18
+ end
19
+ end
20
+
21
+ class Utilities
22
+ attr_reader :service
23
+ def initialize(endpoint=nil)
24
+ @endpoint = endpoint || ENV['G4S_UTILITIES_ENDPOINT_URL']
25
+ @service = IPSUtilitesSoap.new(@endpoint)
26
+ end
27
+ end
28
+
29
+ end
@@ -0,0 +1,89 @@
1
+ #!/usr/bin/env ruby
2
+ require 'defaultDriver.rb'
3
+
4
+ endpoint_url = ARGV.shift
5
+ obj = IPSShippingSoap.new(endpoint_url)
6
+
7
+ # run ruby with -d to see SOAP wiredumps.
8
+ obj.wiredump_dev = STDERR if $DEBUG
9
+
10
+ # SYNOPSIS
11
+ # CalculateEstimatedPrice(parameters)
12
+ #
13
+ # ARGS
14
+ # parameters CalculateEstimatedPrice - {http://WS.G4SI.COM/}CalculateEstimatedPrice
15
+ #
16
+ # RETURNS
17
+ # parameters CalculateEstimatedPriceResponse - {http://WS.G4SI.COM/}CalculateEstimatedPriceResponse
18
+ #
19
+ parameters = nil
20
+ puts obj.calculateEstimatedPrice(parameters)
21
+
22
+ # SYNOPSIS
23
+ # CreateShipment(parameters)
24
+ #
25
+ # ARGS
26
+ # parameters CreateShipment - {http://WS.G4SI.COM/}CreateShipment
27
+ #
28
+ # RETURNS
29
+ # parameters CreateShipmentResponse - {http://WS.G4SI.COM/}CreateShipmentResponse
30
+ #
31
+ parameters = nil
32
+ puts obj.createShipment(parameters)
33
+
34
+ # SYNOPSIS
35
+ # VoidShipment(parameters)
36
+ #
37
+ # ARGS
38
+ # parameters VoidShipment - {http://WS.G4SI.COM/}VoidShipment
39
+ #
40
+ # RETURNS
41
+ # parameters VoidShipmentResponse - {http://WS.G4SI.COM/}VoidShipmentResponse
42
+ #
43
+ parameters = nil
44
+ puts obj.voidShipment(parameters)
45
+
46
+
47
+ endpoint_url = ARGV.shift
48
+ obj = IPSShippingSoap.new(endpoint_url)
49
+
50
+ # run ruby with -d to see SOAP wiredumps.
51
+ obj.wiredump_dev = STDERR if $DEBUG
52
+
53
+ # SYNOPSIS
54
+ # CalculateEstimatedPrice(parameters)
55
+ #
56
+ # ARGS
57
+ # parameters CalculateEstimatedPrice - {http://WS.G4SI.COM/}CalculateEstimatedPrice
58
+ #
59
+ # RETURNS
60
+ # parameters CalculateEstimatedPriceResponse - {http://WS.G4SI.COM/}CalculateEstimatedPriceResponse
61
+ #
62
+ parameters = nil
63
+ puts obj.calculateEstimatedPrice(parameters)
64
+
65
+ # SYNOPSIS
66
+ # CreateShipment(parameters)
67
+ #
68
+ # ARGS
69
+ # parameters CreateShipment - {http://WS.G4SI.COM/}CreateShipment
70
+ #
71
+ # RETURNS
72
+ # parameters CreateShipmentResponse - {http://WS.G4SI.COM/}CreateShipmentResponse
73
+ #
74
+ parameters = nil
75
+ puts obj.createShipment(parameters)
76
+
77
+ # SYNOPSIS
78
+ # VoidShipment(parameters)
79
+ #
80
+ # ARGS
81
+ # parameters VoidShipment - {http://WS.G4SI.COM/}VoidShipment
82
+ #
83
+ # RETURNS
84
+ # parameters VoidShipmentResponse - {http://WS.G4SI.COM/}VoidShipmentResponse
85
+ #
86
+ parameters = nil
87
+ puts obj.voidShipment(parameters)
88
+
89
+
@@ -0,0 +1,533 @@
1
+ require 'xsd/qname'
2
+
3
+ # {http://WS.G4SI.COM/}PriceEstimateResponse
4
+ # baseCharges - SOAP::SOAPDouble
5
+ # fuelSurCharge - SOAP::SOAPDouble
6
+ # additionalWeightCharge - SOAP::SOAPDouble
7
+ # schedulePickupCharges - SOAP::SOAPDouble
8
+ # saturdayPickupCharges - SOAP::SOAPDouble
9
+ # adultSignatureCharges - SOAP::SOAPDouble
10
+ # directSignatureCharges - SOAP::SOAPDouble
11
+ # errorCode - SOAP::SOAPString
12
+ # errorDescription - SOAP::SOAPString
13
+ # innerException - SOAP::SOAPString
14
+ class PriceEstimateResponse
15
+ attr_accessor :baseCharges
16
+ attr_accessor :fuelSurCharge
17
+ attr_accessor :additionalWeightCharge
18
+ attr_accessor :schedulePickupCharges
19
+ attr_accessor :saturdayPickupCharges
20
+ attr_accessor :adultSignatureCharges
21
+ attr_accessor :directSignatureCharges
22
+ attr_accessor :errorCode
23
+ attr_accessor :errorDescription
24
+ attr_accessor :innerException
25
+
26
+ def initialize(baseCharges = nil, fuelSurCharge = nil, additionalWeightCharge = nil, schedulePickupCharges = nil, saturdayPickupCharges = nil, adultSignatureCharges = nil, directSignatureCharges = nil, errorCode = nil, errorDescription = nil, innerException = nil)
27
+ @baseCharges = baseCharges
28
+ @fuelSurCharge = fuelSurCharge
29
+ @additionalWeightCharge = additionalWeightCharge
30
+ @schedulePickupCharges = schedulePickupCharges
31
+ @saturdayPickupCharges = saturdayPickupCharges
32
+ @adultSignatureCharges = adultSignatureCharges
33
+ @directSignatureCharges = directSignatureCharges
34
+ @errorCode = errorCode
35
+ @errorDescription = errorDescription
36
+ @innerException = innerException
37
+ end
38
+ end
39
+
40
+ # {http://WS.G4SI.COM/}G4SIAuthentication
41
+ # username - SOAP::SOAPString
42
+ # password - SOAP::SOAPString
43
+ # accessKey - SOAP::SOAPString
44
+ class G4SIAuthentication
45
+ attr_accessor :username
46
+ attr_accessor :password
47
+ attr_accessor :accessKey
48
+
49
+ def initialize(username = nil, password = nil, accessKey = nil)
50
+ @username = username
51
+ @password = password
52
+ @accessKey = accessKey
53
+ end
54
+ end
55
+
56
+ # {http://WS.G4SI.COM/}ShipmentRequest
57
+ # commodityCollection - ArrayOfCommodityList
58
+ # carrierName - SOAP::SOAPString
59
+ # shipmentDate - SOAP::SOAPDateTime
60
+ # billFreightTo - SOAP::SOAPString
61
+ # serviceLevelName - SOAP::SOAPString
62
+ # packageTypeName - SOAP::SOAPString
63
+ # declaredWeight - SOAP::SOAPDouble
64
+ # declareValue - SOAP::SOAPDouble
65
+ # weightType - SOAP::SOAPString
66
+ # description - SOAP::SOAPString
67
+ # dimensions - SOAP::SOAPString
68
+ # dimensionUnitType - SOAP::SOAPString
69
+ # thermalPrinter - SOAP::SOAPBoolean
70
+ # sEDNumber - SOAP::SOAPString
71
+ # dutiesPayorType - SOAP::SOAPString
72
+ # recipientAddress - Address
73
+ # saveNewRecipientAddress - SOAP::SOAPBoolean
74
+ # shipperAddress - Address
75
+ # cODAmount - SOAP::SOAPDouble
76
+ # holdAtLocation - SOAP::SOAPBoolean
77
+ # schedulePickup - SOAP::SOAPBoolean
78
+ # schedulePickupLocation - SchedulePickup
79
+ # cODInfo - COD
80
+ # holdAtLocationInfo - HoldAtLocation
81
+ # purchaseOrderNumber - SOAP::SOAPString
82
+ # salesOrderNumber - SOAP::SOAPString
83
+ # brokerInfo - BrokerInfo
84
+ # recipientShipNotification - SOAP::SOAPBoolean
85
+ # receiveAlerts - SOAP::SOAPBoolean
86
+ # saturdayDelivery - SOAP::SOAPBoolean
87
+ # saturdayPickup - SOAP::SOAPBoolean
88
+ # residential - SOAP::SOAPBoolean
89
+ # signatureOption - SOAP::SOAPString
90
+ # recipientAlertEmail - SOAP::SOAPString
91
+ # recipientDeliveryNotification - SOAP::SOAPBoolean
92
+ # recipientExceptionNotification - SOAP::SOAPBoolean
93
+ # shipperShipNotification - SOAP::SOAPBoolean
94
+ # shipperDeliveryNotification - SOAP::SOAPBoolean
95
+ # shipperExceptionNotification - SOAP::SOAPBoolean
96
+ # restrictedWordsCompliance - SOAP::SOAPBoolean
97
+ # trackingNumber - SOAP::SOAPString
98
+ class ShipmentRequest
99
+ attr_accessor :commodityCollection
100
+ attr_accessor :carrierName
101
+ attr_accessor :shipmentDate
102
+ attr_accessor :billFreightTo
103
+ attr_accessor :serviceLevelName
104
+ attr_accessor :packageTypeName
105
+ attr_accessor :declaredWeight
106
+ attr_accessor :declareValue
107
+ attr_accessor :weightType
108
+ attr_accessor :description
109
+ attr_accessor :dimensions
110
+ attr_accessor :dimensionUnitType
111
+ attr_accessor :thermalPrinter
112
+ attr_accessor :sEDNumber
113
+ attr_accessor :dutiesPayorType
114
+ attr_accessor :recipientAddress
115
+ attr_accessor :saveNewRecipientAddress
116
+ attr_accessor :shipperAddress
117
+ attr_accessor :cODAmount
118
+ attr_accessor :holdAtLocation
119
+ attr_accessor :schedulePickup
120
+ attr_accessor :schedulePickupLocation
121
+ attr_accessor :cODInfo
122
+ attr_accessor :holdAtLocationInfo
123
+ attr_accessor :purchaseOrderNumber
124
+ attr_accessor :salesOrderNumber
125
+ attr_accessor :brokerInfo
126
+ attr_accessor :recipientShipNotification
127
+ attr_accessor :receiveAlerts
128
+ attr_accessor :saturdayDelivery
129
+ attr_accessor :saturdayPickup
130
+ attr_accessor :residential
131
+ attr_accessor :signatureOption
132
+ attr_accessor :recipientAlertEmail
133
+ attr_accessor :recipientDeliveryNotification
134
+ attr_accessor :recipientExceptionNotification
135
+ attr_accessor :shipperShipNotification
136
+ attr_accessor :shipperDeliveryNotification
137
+ attr_accessor :shipperExceptionNotification
138
+ attr_accessor :restrictedWordsCompliance
139
+ attr_accessor :trackingNumber
140
+
141
+ def initialize(commodityCollection = nil, carrierName = nil, shipmentDate = nil, billFreightTo = nil, serviceLevelName = nil, packageTypeName = nil, declaredWeight = nil, declareValue = nil, weightType = nil, description = nil, dimensions = nil, dimensionUnitType = nil, thermalPrinter = nil, sEDNumber = nil, dutiesPayorType = nil, recipientAddress = nil, saveNewRecipientAddress = nil, shipperAddress = nil, cODAmount = nil, holdAtLocation = nil, schedulePickup = nil, schedulePickupLocation = nil, cODInfo = nil, holdAtLocationInfo = nil, purchaseOrderNumber = nil, salesOrderNumber = nil, brokerInfo = nil, recipientShipNotification = nil, receiveAlerts = nil, saturdayDelivery = nil, saturdayPickup = nil, residential = nil, signatureOption = nil, recipientAlertEmail = nil, recipientDeliveryNotification = nil, recipientExceptionNotification = nil, shipperShipNotification = nil, shipperDeliveryNotification = nil, shipperExceptionNotification = nil, restrictedWordsCompliance = nil, trackingNumber = nil)
142
+ @commodityCollection = commodityCollection
143
+ @carrierName = carrierName
144
+ @shipmentDate = shipmentDate
145
+ @billFreightTo = billFreightTo
146
+ @serviceLevelName = serviceLevelName
147
+ @packageTypeName = packageTypeName
148
+ @declaredWeight = declaredWeight
149
+ @declareValue = declareValue
150
+ @weightType = weightType
151
+ @description = description
152
+ @dimensions = dimensions
153
+ @dimensionUnitType = dimensionUnitType
154
+ @thermalPrinter = thermalPrinter
155
+ @sEDNumber = sEDNumber
156
+ @dutiesPayorType = dutiesPayorType
157
+ @recipientAddress = recipientAddress
158
+ @saveNewRecipientAddress = saveNewRecipientAddress
159
+ @shipperAddress = shipperAddress
160
+ @cODAmount = cODAmount
161
+ @holdAtLocation = holdAtLocation
162
+ @schedulePickup = schedulePickup
163
+ @schedulePickupLocation = schedulePickupLocation
164
+ @cODInfo = cODInfo
165
+ @holdAtLocationInfo = holdAtLocationInfo
166
+ @purchaseOrderNumber = purchaseOrderNumber
167
+ @salesOrderNumber = salesOrderNumber
168
+ @brokerInfo = brokerInfo
169
+ @recipientShipNotification = recipientShipNotification
170
+ @receiveAlerts = receiveAlerts
171
+ @saturdayDelivery = saturdayDelivery
172
+ @saturdayPickup = saturdayPickup
173
+ @residential = residential
174
+ @signatureOption = signatureOption
175
+ @recipientAlertEmail = recipientAlertEmail
176
+ @recipientDeliveryNotification = recipientDeliveryNotification
177
+ @recipientExceptionNotification = recipientExceptionNotification
178
+ @shipperShipNotification = shipperShipNotification
179
+ @shipperDeliveryNotification = shipperDeliveryNotification
180
+ @shipperExceptionNotification = shipperExceptionNotification
181
+ @restrictedWordsCompliance = restrictedWordsCompliance
182
+ @trackingNumber = trackingNumber
183
+ end
184
+ end
185
+
186
+ # {http://WS.G4SI.COM/}ArrayOfCommodityList
187
+ class ArrayOfCommodityList < ::Array
188
+ end
189
+
190
+ # {http://WS.G4SI.COM/}CommodityList
191
+ # commodityDescription - SOAP::SOAPString
192
+ # harmonizedCode - SOAP::SOAPString
193
+ # commodityQuantity - SOAP::SOAPDouble
194
+ # measurement - SOAP::SOAPString
195
+ # customValue - SOAP::SOAPDouble
196
+ # commodityWeight - SOAP::SOAPDouble
197
+ # codeCountryOfManufacture - SOAP::SOAPString
198
+ # nameOnLabel - SOAP::SOAPString
199
+ class CommodityList
200
+ attr_accessor :commodityDescription
201
+ attr_accessor :harmonizedCode
202
+ attr_accessor :commodityQuantity
203
+ attr_accessor :measurement
204
+ attr_accessor :customValue
205
+ attr_accessor :commodityWeight
206
+ attr_accessor :codeCountryOfManufacture
207
+ attr_accessor :nameOnLabel
208
+
209
+ def initialize(commodityDescription = nil, harmonizedCode = nil, commodityQuantity = nil, measurement = nil, customValue = nil, commodityWeight = nil, codeCountryOfManufacture = nil, nameOnLabel = nil)
210
+ @commodityDescription = commodityDescription
211
+ @harmonizedCode = harmonizedCode
212
+ @commodityQuantity = commodityQuantity
213
+ @measurement = measurement
214
+ @customValue = customValue
215
+ @commodityWeight = commodityWeight
216
+ @codeCountryOfManufacture = codeCountryOfManufacture
217
+ @nameOnLabel = nameOnLabel
218
+ end
219
+ end
220
+
221
+ # {http://WS.G4SI.COM/}Address
222
+ # name - SOAP::SOAPString
223
+ # company - SOAP::SOAPString
224
+ # address1 - SOAP::SOAPString
225
+ # address2 - SOAP::SOAPString
226
+ # city - SOAP::SOAPString
227
+ # state - SOAP::SOAPString
228
+ # countryCode - SOAP::SOAPString
229
+ # zip - SOAP::SOAPString
230
+ # phone - SOAP::SOAPString
231
+ # email - SOAP::SOAPString
232
+ class Address
233
+ attr_accessor :name
234
+ attr_accessor :company
235
+ attr_accessor :address1
236
+ attr_accessor :address2
237
+ attr_accessor :city
238
+ attr_accessor :state
239
+ attr_accessor :countryCode
240
+ attr_accessor :zip
241
+ attr_accessor :phone
242
+ attr_accessor :email
243
+
244
+ def initialize(name = nil, company = nil, address1 = nil, address2 = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, email = nil)
245
+ @name = name
246
+ @company = company
247
+ @address1 = address1
248
+ @address2 = address2
249
+ @city = city
250
+ @state = state
251
+ @countryCode = countryCode
252
+ @zip = zip
253
+ @phone = phone
254
+ @email = email
255
+ end
256
+ end
257
+
258
+ # {http://WS.G4SI.COM/}SchedulePickup
259
+ # contactName - SOAP::SOAPString
260
+ # companyName - SOAP::SOAPString
261
+ # packageLatestAvailableTime - SOAP::SOAPString
262
+ # readyTime - SOAP::SOAPString
263
+ # suiteNumber - SOAP::SOAPString
264
+ # floorID - SOAP::SOAPString
265
+ # differentPickupLocation - SOAP::SOAPBoolean
266
+ # packageLocation - SOAP::SOAPString
267
+ # address1 - SOAP::SOAPString
268
+ # address2 - SOAP::SOAPString
269
+ # city - SOAP::SOAPString
270
+ # state - SOAP::SOAPString
271
+ # countryCode - SOAP::SOAPString
272
+ # zip - SOAP::SOAPString
273
+ # phone - SOAP::SOAPString
274
+ # phoneExtn - SOAP::SOAPString
275
+ # pickupDate - SOAP::SOAPDateTime
276
+ class SchedulePickup
277
+ attr_accessor :contactName
278
+ attr_accessor :companyName
279
+ attr_accessor :packageLatestAvailableTime
280
+ attr_accessor :readyTime
281
+ attr_accessor :suiteNumber
282
+ attr_accessor :floorID
283
+ attr_accessor :differentPickupLocation
284
+ attr_accessor :packageLocation
285
+ attr_accessor :address1
286
+ attr_accessor :address2
287
+ attr_accessor :city
288
+ attr_accessor :state
289
+ attr_accessor :countryCode
290
+ attr_accessor :zip
291
+ attr_accessor :phone
292
+ attr_accessor :phoneExtn
293
+ attr_accessor :pickupDate
294
+
295
+ def initialize(contactName = nil, companyName = nil, packageLatestAvailableTime = nil, readyTime = nil, suiteNumber = nil, floorID = nil, differentPickupLocation = nil, packageLocation = nil, address1 = nil, address2 = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, phoneExtn = nil, pickupDate = nil)
296
+ @contactName = contactName
297
+ @companyName = companyName
298
+ @packageLatestAvailableTime = packageLatestAvailableTime
299
+ @readyTime = readyTime
300
+ @suiteNumber = suiteNumber
301
+ @floorID = floorID
302
+ @differentPickupLocation = differentPickupLocation
303
+ @packageLocation = packageLocation
304
+ @address1 = address1
305
+ @address2 = address2
306
+ @city = city
307
+ @state = state
308
+ @countryCode = countryCode
309
+ @zip = zip
310
+ @phone = phone
311
+ @phoneExtn = phoneExtn
312
+ @pickupDate = pickupDate
313
+ end
314
+ end
315
+
316
+ # {http://WS.G4SI.COM/}COD
317
+ # collectType - SOAP::SOAPString
318
+ # name - SOAP::SOAPString
319
+ # company - SOAP::SOAPString
320
+ # country - SOAP::SOAPString
321
+ # address - SOAP::SOAPString
322
+ # city - SOAP::SOAPString
323
+ # state - SOAP::SOAPString
324
+ # countryCode - SOAP::SOAPString
325
+ # zip - SOAP::SOAPString
326
+ # phone - SOAP::SOAPString
327
+ class COD
328
+ attr_accessor :collectType
329
+ attr_accessor :name
330
+ attr_accessor :company
331
+ attr_accessor :country
332
+ attr_accessor :address
333
+ attr_accessor :city
334
+ attr_accessor :state
335
+ attr_accessor :countryCode
336
+ attr_accessor :zip
337
+ attr_accessor :phone
338
+
339
+ def initialize(collectType = nil, name = nil, company = nil, country = nil, address = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil)
340
+ @collectType = collectType
341
+ @name = name
342
+ @company = company
343
+ @country = country
344
+ @address = address
345
+ @city = city
346
+ @state = state
347
+ @countryCode = countryCode
348
+ @zip = zip
349
+ @phone = phone
350
+ end
351
+ end
352
+
353
+ # {http://WS.G4SI.COM/}HoldAtLocation
354
+ # name - SOAP::SOAPString
355
+ # company - SOAP::SOAPString
356
+ # address - SOAP::SOAPString
357
+ # city - SOAP::SOAPString
358
+ # state - SOAP::SOAPString
359
+ # countryCode - SOAP::SOAPString
360
+ # zip - SOAP::SOAPString
361
+ # phone - SOAP::SOAPString
362
+ # phoneExtn - SOAP::SOAPString
363
+ class HoldAtLocation
364
+ attr_accessor :name
365
+ attr_accessor :company
366
+ attr_accessor :address
367
+ attr_accessor :city
368
+ attr_accessor :state
369
+ attr_accessor :countryCode
370
+ attr_accessor :zip
371
+ attr_accessor :phone
372
+ attr_accessor :phoneExtn
373
+
374
+ def initialize(name = nil, company = nil, address = nil, city = nil, state = nil, countryCode = nil, zip = nil, phone = nil, phoneExtn = nil)
375
+ @name = name
376
+ @company = company
377
+ @address = address
378
+ @city = city
379
+ @state = state
380
+ @countryCode = countryCode
381
+ @zip = zip
382
+ @phone = phone
383
+ @phoneExtn = phoneExtn
384
+ end
385
+ end
386
+
387
+ # {http://WS.G4SI.COM/}BrokerInfo
388
+ # brokerName - SOAP::SOAPString
389
+ # brokerTIN - SOAP::SOAPString
390
+ # brokerCompany - SOAP::SOAPString
391
+ # brokerAddress - SOAP::SOAPString
392
+ # brokerAddress1 - SOAP::SOAPString
393
+ # brokerAddress2 - SOAP::SOAPString
394
+ # brokerCity - SOAP::SOAPString
395
+ # brokerState - SOAP::SOAPString
396
+ # brokerCountryCode - SOAP::SOAPString
397
+ # brokerZip - SOAP::SOAPString
398
+ # brokerPhone - SOAP::SOAPString
399
+ # brokerEmail - SOAP::SOAPString
400
+ class BrokerInfo
401
+ attr_accessor :brokerName
402
+ attr_accessor :brokerTIN
403
+ attr_accessor :brokerCompany
404
+ attr_accessor :brokerAddress
405
+ attr_accessor :brokerAddress1
406
+ attr_accessor :brokerAddress2
407
+ attr_accessor :brokerCity
408
+ attr_accessor :brokerState
409
+ attr_accessor :brokerCountryCode
410
+ attr_accessor :brokerZip
411
+ attr_accessor :brokerPhone
412
+ attr_accessor :brokerEmail
413
+
414
+ def initialize(brokerName = nil, brokerTIN = nil, brokerCompany = nil, brokerAddress = nil, brokerAddress1 = nil, brokerAddress2 = nil, brokerCity = nil, brokerState = nil, brokerCountryCode = nil, brokerZip = nil, brokerPhone = nil, brokerEmail = nil)
415
+ @brokerName = brokerName
416
+ @brokerTIN = brokerTIN
417
+ @brokerCompany = brokerCompany
418
+ @brokerAddress = brokerAddress
419
+ @brokerAddress1 = brokerAddress1
420
+ @brokerAddress2 = brokerAddress2
421
+ @brokerCity = brokerCity
422
+ @brokerState = brokerState
423
+ @brokerCountryCode = brokerCountryCode
424
+ @brokerZip = brokerZip
425
+ @brokerPhone = brokerPhone
426
+ @brokerEmail = brokerEmail
427
+ end
428
+ end
429
+
430
+ # {http://WS.G4SI.COM/}ShipmentResponse
431
+ # shipmentTrackingNumber - SOAP::SOAPString
432
+ # shipmentLabel - SOAP::SOAPString
433
+ # status - SOAP::SOAPBoolean
434
+ # shipmentResponseErrorCode - SOAP::SOAPString
435
+ # shipmentResponseError - SOAP::SOAPString
436
+ class ShipmentResponse
437
+ attr_accessor :shipmentTrackingNumber
438
+ attr_accessor :shipmentLabel
439
+ attr_accessor :status
440
+ attr_accessor :shipmentResponseErrorCode
441
+ attr_accessor :shipmentResponseError
442
+
443
+ def initialize(shipmentTrackingNumber = nil, shipmentLabel = nil, status = nil, shipmentResponseErrorCode = nil, shipmentResponseError = nil)
444
+ @shipmentTrackingNumber = shipmentTrackingNumber
445
+ @shipmentLabel = shipmentLabel
446
+ @status = status
447
+ @shipmentResponseErrorCode = shipmentResponseErrorCode
448
+ @shipmentResponseError = shipmentResponseError
449
+ end
450
+ end
451
+
452
+ # {http://WS.G4SI.COM/}ShipmentVoidResponse
453
+ # status - SOAP::SOAPBoolean
454
+ # errorDescription - SOAP::SOAPString
455
+ # errorCode - SOAP::SOAPString
456
+ # additionalInfo - SOAP::SOAPString
457
+ class ShipmentVoidResponse
458
+ attr_accessor :status
459
+ attr_accessor :errorDescription
460
+ attr_accessor :errorCode
461
+ attr_accessor :additionalInfo
462
+
463
+ def initialize(status = nil, errorDescription = nil, errorCode = nil, additionalInfo = nil)
464
+ @status = status
465
+ @errorDescription = errorDescription
466
+ @errorCode = errorCode
467
+ @additionalInfo = additionalInfo
468
+ end
469
+ end
470
+
471
+ # {http://WS.G4SI.COM/}ShipmentVoidRequest
472
+ # trackingNumber - SOAP::SOAPString
473
+ # carrierName - SOAP::SOAPString
474
+ # shipmentDate - SOAP::SOAPDateTime
475
+ class ShipmentVoidRequest
476
+ attr_accessor :trackingNumber
477
+ attr_accessor :carrierName
478
+ attr_accessor :shipmentDate
479
+
480
+ def initialize(trackingNumber = nil, carrierName = nil, shipmentDate = nil)
481
+ @trackingNumber = trackingNumber
482
+ @carrierName = carrierName
483
+ @shipmentDate = shipmentDate
484
+ end
485
+ end
486
+
487
+ # {http://WS.G4SI.COM/}CalculateEstimatedPrice
488
+ class CalculateEstimatedPrice
489
+ def initialize
490
+ end
491
+ end
492
+
493
+ # {http://WS.G4SI.COM/}CalculateEstimatedPriceResponse
494
+ # calculateEstimatedPriceResult - PriceEstimateResponse
495
+ class CalculateEstimatedPriceResponse
496
+ attr_accessor :calculateEstimatedPriceResult
497
+
498
+ def initialize(calculateEstimatedPriceResult = nil)
499
+ @calculateEstimatedPriceResult = calculateEstimatedPriceResult
500
+ end
501
+ end
502
+
503
+ # {http://WS.G4SI.COM/}CreateShipment
504
+ class CreateShipment
505
+ def initialize
506
+ end
507
+ end
508
+
509
+ # {http://WS.G4SI.COM/}CreateShipmentResponse
510
+ # createShipmentResult - ShipmentResponse
511
+ class CreateShipmentResponse
512
+ attr_accessor :createShipmentResult
513
+
514
+ def initialize(createShipmentResult = nil)
515
+ @createShipmentResult = createShipmentResult
516
+ end
517
+ end
518
+
519
+ # {http://WS.G4SI.COM/}VoidShipment
520
+ class VoidShipment
521
+ def initialize
522
+ end
523
+ end
524
+
525
+ # {http://WS.G4SI.COM/}VoidShipmentResponse
526
+ # voidShipmentResult - ShipmentVoidResponse
527
+ class VoidShipmentResponse
528
+ attr_accessor :voidShipmentResult
529
+
530
+ def initialize(voidShipmentResult = nil)
531
+ @voidShipmentResult = voidShipmentResult
532
+ end
533
+ end