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 +0 -0
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/README +0 -0
- data/Rakefile +2 -0
- data/g4s_client.gemspec +36 -0
- data/lib/g4s/g4s.rb +29 -0
- data/lib/g4s/shipping/IPSShippingClient.rb +89 -0
- data/lib/g4s/shipping/default.rb +533 -0
- data/lib/g4s/shipping/defaultDriver.rb +63 -0
- data/lib/g4s/shipping/defaultMappingRegistry.rb +581 -0
- data/lib/g4s/tracking/IPSTrackingClient.rb +137 -0
- data/lib/g4s/tracking/default.rb +831 -0
- data/lib/g4s/tracking/defaultDriver.rb +79 -0
- data/lib/g4s/tracking/defaultMappingRegistry.rb +872 -0
- data/lib/g4s/utilities/IPSUtilitiesClient.rb +545 -0
- data/lib/g4s/utilities/default.rb +517 -0
- data/lib/g4s/utilities/defaultDriver.rb +215 -0
- data/lib/g4s/utilities/defaultMappingRegistry.rb +510 -0
- data/lib/g4s/version.rb +3 -0
- data/notes.txt +18 -0
- metadata +87 -0
@@ -0,0 +1,137 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'defaultDriver.rb'
|
3
|
+
|
4
|
+
endpoint_url = ARGV.shift
|
5
|
+
obj = IPSTrackingSoap.new(endpoint_url)
|
6
|
+
|
7
|
+
# run ruby with -d to see SOAP wiredumps.
|
8
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
9
|
+
|
10
|
+
# SYNOPSIS
|
11
|
+
# GetShipmentInfoByTrackingNumber(parameters)
|
12
|
+
#
|
13
|
+
# ARGS
|
14
|
+
# parameters GetShipmentInfoByTrackingNumber - {http://tempuri.org/}GetShipmentInfoByTrackingNumber
|
15
|
+
#
|
16
|
+
# RETURNS
|
17
|
+
# parameters GetShipmentInfoByTrackingNumberResponse - {http://tempuri.org/}GetShipmentInfoByTrackingNumberResponse
|
18
|
+
#
|
19
|
+
parameters = nil
|
20
|
+
puts obj.getShipmentInfoByTrackingNumber(parameters)
|
21
|
+
|
22
|
+
# SYNOPSIS
|
23
|
+
# GetShipmentTrackingList(parameters)
|
24
|
+
#
|
25
|
+
# ARGS
|
26
|
+
# parameters GetShipmentTrackingList - {http://tempuri.org/}GetShipmentTrackingList
|
27
|
+
#
|
28
|
+
# RETURNS
|
29
|
+
# parameters GetShipmentTrackingListResponse - {http://tempuri.org/}GetShipmentTrackingListResponse
|
30
|
+
#
|
31
|
+
parameters = nil
|
32
|
+
puts obj.getShipmentTrackingList(parameters)
|
33
|
+
|
34
|
+
# SYNOPSIS
|
35
|
+
# GetShipmentStatusListForSearchRequest(parameters)
|
36
|
+
#
|
37
|
+
# ARGS
|
38
|
+
# parameters GetShipmentStatusListForSearchRequest - {http://tempuri.org/}GetShipmentStatusListForSearchRequest
|
39
|
+
#
|
40
|
+
# RETURNS
|
41
|
+
# parameters GetShipmentStatusListForSearchRequestResponse - {http://tempuri.org/}GetShipmentStatusListForSearchRequestResponse
|
42
|
+
#
|
43
|
+
parameters = nil
|
44
|
+
puts obj.getShipmentStatusListForSearchRequest(parameters)
|
45
|
+
|
46
|
+
# SYNOPSIS
|
47
|
+
# GetShipmentExceptionsForSearchRequest(parameters)
|
48
|
+
#
|
49
|
+
# ARGS
|
50
|
+
# parameters GetShipmentExceptionsForSearchRequest - {http://tempuri.org/}GetShipmentExceptionsForSearchRequest
|
51
|
+
#
|
52
|
+
# RETURNS
|
53
|
+
# parameters GetShipmentExceptionsForSearchRequestResponse - {http://tempuri.org/}GetShipmentExceptionsForSearchRequestResponse
|
54
|
+
#
|
55
|
+
parameters = nil
|
56
|
+
puts obj.getShipmentExceptionsForSearchRequest(parameters)
|
57
|
+
|
58
|
+
# SYNOPSIS
|
59
|
+
# GetShipmentStatus(parameters)
|
60
|
+
#
|
61
|
+
# ARGS
|
62
|
+
# parameters GetShipmentStatus - {http://tempuri.org/}GetShipmentStatus
|
63
|
+
#
|
64
|
+
# RETURNS
|
65
|
+
# parameters GetShipmentStatusResponse - {http://tempuri.org/}GetShipmentStatusResponse
|
66
|
+
#
|
67
|
+
parameters = nil
|
68
|
+
puts obj.getShipmentStatus(parameters)
|
69
|
+
|
70
|
+
|
71
|
+
endpoint_url = ARGV.shift
|
72
|
+
obj = IPSTrackingSoap.new(endpoint_url)
|
73
|
+
|
74
|
+
# run ruby with -d to see SOAP wiredumps.
|
75
|
+
obj.wiredump_dev = STDERR if $DEBUG
|
76
|
+
|
77
|
+
# SYNOPSIS
|
78
|
+
# GetShipmentInfoByTrackingNumber(parameters)
|
79
|
+
#
|
80
|
+
# ARGS
|
81
|
+
# parameters GetShipmentInfoByTrackingNumber - {http://tempuri.org/}GetShipmentInfoByTrackingNumber
|
82
|
+
#
|
83
|
+
# RETURNS
|
84
|
+
# parameters GetShipmentInfoByTrackingNumberResponse - {http://tempuri.org/}GetShipmentInfoByTrackingNumberResponse
|
85
|
+
#
|
86
|
+
parameters = nil
|
87
|
+
puts obj.getShipmentInfoByTrackingNumber(parameters)
|
88
|
+
|
89
|
+
# SYNOPSIS
|
90
|
+
# GetShipmentTrackingList(parameters)
|
91
|
+
#
|
92
|
+
# ARGS
|
93
|
+
# parameters GetShipmentTrackingList - {http://tempuri.org/}GetShipmentTrackingList
|
94
|
+
#
|
95
|
+
# RETURNS
|
96
|
+
# parameters GetShipmentTrackingListResponse - {http://tempuri.org/}GetShipmentTrackingListResponse
|
97
|
+
#
|
98
|
+
parameters = nil
|
99
|
+
puts obj.getShipmentTrackingList(parameters)
|
100
|
+
|
101
|
+
# SYNOPSIS
|
102
|
+
# GetShipmentStatusListForSearchRequest(parameters)
|
103
|
+
#
|
104
|
+
# ARGS
|
105
|
+
# parameters GetShipmentStatusListForSearchRequest - {http://tempuri.org/}GetShipmentStatusListForSearchRequest
|
106
|
+
#
|
107
|
+
# RETURNS
|
108
|
+
# parameters GetShipmentStatusListForSearchRequestResponse - {http://tempuri.org/}GetShipmentStatusListForSearchRequestResponse
|
109
|
+
#
|
110
|
+
parameters = nil
|
111
|
+
puts obj.getShipmentStatusListForSearchRequest(parameters)
|
112
|
+
|
113
|
+
# SYNOPSIS
|
114
|
+
# GetShipmentExceptionsForSearchRequest(parameters)
|
115
|
+
#
|
116
|
+
# ARGS
|
117
|
+
# parameters GetShipmentExceptionsForSearchRequest - {http://tempuri.org/}GetShipmentExceptionsForSearchRequest
|
118
|
+
#
|
119
|
+
# RETURNS
|
120
|
+
# parameters GetShipmentExceptionsForSearchRequestResponse - {http://tempuri.org/}GetShipmentExceptionsForSearchRequestResponse
|
121
|
+
#
|
122
|
+
parameters = nil
|
123
|
+
puts obj.getShipmentExceptionsForSearchRequest(parameters)
|
124
|
+
|
125
|
+
# SYNOPSIS
|
126
|
+
# GetShipmentStatus(parameters)
|
127
|
+
#
|
128
|
+
# ARGS
|
129
|
+
# parameters GetShipmentStatus - {http://tempuri.org/}GetShipmentStatus
|
130
|
+
#
|
131
|
+
# RETURNS
|
132
|
+
# parameters GetShipmentStatusResponse - {http://tempuri.org/}GetShipmentStatusResponse
|
133
|
+
#
|
134
|
+
parameters = nil
|
135
|
+
puts obj.getShipmentStatus(parameters)
|
136
|
+
|
137
|
+
|