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