ups_pickup 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,18 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ .DS_STORE
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ups_pickup.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 amardaxini
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,60 @@
1
+ # UpsPickup
2
+
3
+ UPS Pickup Request API
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'ups_pickup'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install ups_pickup
18
+
19
+ ## Usage
20
+
21
+ username = ""
22
+ password = ""
23
+ license = ""
24
+
25
+ # Ups Pickup creation
26
+ options= {:url=>("https://onlinetools.ups.com/webservices/Pickup" or "https://wwwcie.ups.com/webservices/Pickup"),
27
+ :address_line=>"New york",:city=>"New york",
28
+ :company_name=>"Broadway Avenue",:contact_name=>"Amar",:state=>"NY",:country_code=>"US",
29
+ :phone_number=>"212-632-3975",:pickup_date=>"20120830",
30
+ :close_time =>"1630",:ready_time=> "0800",:service_code=>"001",
31
+ :weight=>"42.0",:postal_code=>"10020",:account_number=>"243AV3",:payment_method=>"01"
32
+ }
33
+
34
+ u = UpsPickup::PickupCreation.new(username,password,license,options)
35
+ u.commit
36
+ u.response #return object which has prn,and rate_status,success_code if it's success
37
+ u.error # if any error return object which has severity,and error_code,description if it's fail
38
+
39
+ #Ups Pickup Cancel
40
+ options= {:url=>("https://onlinetools.ups.com/webservices/Pickup" or "https://wwwcie.ups.com/webservices/Pickup"),
41
+ :prn=>"PRN NO",:cancel_by=>"02"}
42
+
43
+ u = UpsPickup::PickupCancel.new(username,password,license,options)
44
+ u.commit
45
+ u.response
46
+ u.error
47
+
48
+ # Find out success or fault
49
+ u.success?
50
+ u.soap_fault?
51
+ u.http_error?
52
+
53
+
54
+ ## Contributing
55
+
56
+ 1. Fork it
57
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
58
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
59
+ 4. Push to the branch (`git push origin my-new-feature`)
60
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XML Spy v4.1 U (http://www.xmlspy.com) by Rajendra Upadhya K (UPS GACOR850393,) -->
3
+ <xsd:schema targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" elementFormDefault="qualified">
4
+ <xsd:element name="Errors">
5
+ <xsd:complexType>
6
+ <xsd:sequence>
7
+ <xsd:element name="ErrorDetail" type="error:ErrorDetailType" maxOccurs="unbounded"/>
8
+ </xsd:sequence>
9
+ </xsd:complexType>
10
+ </xsd:element>
11
+ <xsd:complexType name="ErrorDetailType">
12
+ <xsd:sequence>
13
+ <xsd:element name="Severity" type="xsd:string"/>
14
+ <xsd:element name="PrimaryErrorCode" type="error:CodeType"/>
15
+ <xsd:element name="MinimumRetrySeconds" type="xsd:string" minOccurs="0"/>
16
+ <xsd:element name="Location" type="error:LocationType" minOccurs="0"/>
17
+ <xsd:element name="SubErrorCode" type="error:CodeType" minOccurs="0" maxOccurs="unbounded"/>
18
+ <xsd:element name="AdditionalInformation" type="error:AdditionalInfoType" minOccurs="0" maxOccurs="unbounded"/>
19
+ </xsd:sequence>
20
+ </xsd:complexType>
21
+ <xsd:complexType name="CodeType">
22
+ <xsd:sequence>
23
+ <xsd:element name="Code" type="xsd:string"/>
24
+ <xsd:element name="Description" type="xsd:string"/>
25
+ <xsd:element name="Digest" type="xsd:string" minOccurs="0"/>
26
+ </xsd:sequence>
27
+ </xsd:complexType>
28
+ <xsd:complexType name="AdditionalInfoType">
29
+ <xsd:sequence>
30
+ <xsd:element name="Type" type="xsd:string"/>
31
+ <xsd:element name="Value" type="error:AdditionalCodeDescType" maxOccurs="unbounded"/>
32
+ </xsd:sequence>
33
+ </xsd:complexType>
34
+ <xsd:complexType name="AdditionalCodeDescType">
35
+ <xsd:sequence>
36
+ <xsd:element name="Code" type="xsd:string"/>
37
+ <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
38
+ </xsd:sequence>
39
+ </xsd:complexType>
40
+ <xsd:complexType name="LocationType">
41
+ <xsd:sequence>
42
+ <xsd:element name="LocationElementName" type="xsd:string" minOccurs="0"/>
43
+ <xsd:element name="XPathOfElement" type="xsd:string" minOccurs="0"/>
44
+ <xsd:element name="OriginalValue" type="xsd:string" minOccurs="0"/>
45
+ </xsd:sequence>
46
+ </xsd:complexType>
47
+ </xsd:schema>
@@ -0,0 +1,162 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- UPS Pickup Service WSDL Release Date Jan, 2010 -->
3
+ <!-- Last update: 10/16/2009 -->
4
+ <!-- Publish to External Clients only-->
5
+ <!-- Copyright 2007-2010 United Parcel Service of America, Inc. All rights reserved. -->
6
+ <wsdl:definitions name="Pickup" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:error="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" xmlns:upss="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" xmlns:pkup="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" xmlns="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" xmlns:tns="http://www.ups.com/WSDL/XOLTWS/Pickup/v1.1" targetNamespace="http://www.ups.com/WSDL/XOLTWS/Pickup/v1.1">
7
+ <wsdl:types>
8
+ <xsd:schema>
9
+ <!-- This schema defines the UPS Security header used for authorization purposes -->
10
+ <xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0" schemaLocation="UPSSecurity.xsd"/>
11
+ <!-- This schema defines the error detail data types returned within SOAPFaults to provide more specific information pertaining to the problem. -->
12
+ <xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" schemaLocation="Error1.1.xsd"/>
13
+ <!-- ################## Start Pickup Specific schema ################### -->
14
+ <xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" schemaLocation="PickupWebServiceSchema.xsd"/>
15
+ <!-- ################## End Pickup specific schema ##################### -->
16
+ </xsd:schema>
17
+ </wsdl:types>
18
+ <!-- ########### Start All four set of Messages definition ###########-->
19
+ <wsdl:message name="PickupCreationRequestMessage">
20
+ <wsdl:part name="Body" element="pkup:PickupCreationRequest"/>
21
+ <wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
22
+ </wsdl:message>
23
+ <wsdl:message name="PickupCreationResponseMessage">
24
+ <wsdl:part name="Body" element="pkup:PickupCreationResponse"/>
25
+ </wsdl:message>
26
+ <wsdl:message name="PickupCreationErrorMessage">
27
+ <wsdl:part name="PickupCreationError" element="error:Errors"/>
28
+ </wsdl:message>
29
+ <!-- ###########-->
30
+ <wsdl:message name="PickupRateRequestMessage">
31
+ <wsdl:part name="Body" element="pkup:PickupRateRequest"/>
32
+ <wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
33
+ </wsdl:message>
34
+ <wsdl:message name="PickupRateResponseMessage">
35
+ <wsdl:part name="Body" element="pkup:PickupRateResponse"/>
36
+ </wsdl:message>
37
+ <wsdl:message name="PickupRateErrorMessage">
38
+ <wsdl:part name="PickupRateError" element="error:Errors"/>
39
+ </wsdl:message>
40
+ <!-- ###########-->
41
+ <wsdl:message name="PickupCancelRequestMessage">
42
+ <wsdl:part name="Body" element="pkup:PickupCancelRequest"/>
43
+ <wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
44
+ </wsdl:message>
45
+ <wsdl:message name="PickupCancelResponseMessage">
46
+ <wsdl:part name="Body" element="pkup:PickupCancelResponse"/>
47
+ </wsdl:message>
48
+ <wsdl:message name="PickupCancelErrorMessage">
49
+ <wsdl:part name="PickupCancelError" element="error:Errors"/>
50
+ </wsdl:message>
51
+ <!-- ###########-->
52
+ <wsdl:message name="PickupPendingStatusRequestMessage">
53
+ <wsdl:part name="Body" element="pkup:PickupPendingStatusRequest"/>
54
+ <wsdl:part name="UPSSecurity" element="upss:UPSSecurity"/>
55
+ </wsdl:message>
56
+ <wsdl:message name="PickupPendingStatusResponseMessage">
57
+ <wsdl:part name="Body" element="pkup:PickupPendingStatusResponse"/>
58
+ </wsdl:message>
59
+ <wsdl:message name="PickupPendingStatusErrorMessage">
60
+ <wsdl:part name="PickupPendingStatusError" element="error:Errors"/>
61
+ </wsdl:message>
62
+ <!-- ########### End All Six Set of Messages ###########-->
63
+ <wsdl:portType name="PickupPortType">
64
+ <wsdl:operation name="ProcessPickupCreation">
65
+ <wsdl:input name="PickupCreationRequest" message="tns:PickupCreationRequestMessage"/>
66
+ <wsdl:output name="PickupCreationResponse" message="tns:PickupCreationResponseMessage"/>
67
+ <wsdl:fault name="PickupCreationError" message="tns:PickupCreationErrorMessage"/>
68
+ </wsdl:operation>
69
+ <wsdl:operation name="ProcessPickupRate">
70
+ <wsdl:input name="PickupRateRequest" message="tns:PickupRateRequestMessage"/>
71
+ <wsdl:output name="PickupRateResponse" message="tns:PickupRateResponseMessage"/>
72
+ <wsdl:fault name="PickupRateError" message="tns:PickupRateErrorMessage"/>
73
+ </wsdl:operation>
74
+ <wsdl:operation name="ProcessPickupCancel">
75
+ <wsdl:input name="PickupCancelRequest" message="tns:PickupCancelRequestMessage"/>
76
+ <wsdl:output name="PickupCancelResponse" message="tns:PickupCancelResponseMessage"/>
77
+ <wsdl:fault name="PickupCancelError" message="tns:PickupCancelErrorMessage"/>
78
+ </wsdl:operation>
79
+ <wsdl:operation name="ProcessPickupPendingStatus">
80
+ <wsdl:input name="PickupPendingStatusRequest" message="tns:PickupPendingStatusRequestMessage"/>
81
+ <wsdl:output name="PickupPendingStatusResponse" message="tns:PickupPendingStatusResponseMessage"/>
82
+ <wsdl:fault name="PickupPendingStatusError" message="tns:PickupPendingStatusErrorMessage"/>
83
+ </wsdl:operation>
84
+ </wsdl:portType>
85
+ <!-- ########### End Port Type ########### -->
86
+ <wsdl:binding name="PickupBinding" type="tns:PickupPortType">
87
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
88
+ <!-- ###########-->
89
+ <wsdl:operation name="ProcessPickupCreation">
90
+ <soap:operation soapAction="http://onlinetools.ups.com/webservices/PickupBinding/v1.1" style="document"/>
91
+ <wsdl:input name="PickupCreationRequest">
92
+ <soap:body parts="Body" use="literal"/>
93
+ <soap:header message="tns:PickupCreationRequestMessage" part="UPSSecurity" use="literal">
94
+ <soap:headerfault message="tns:PickupCreationErrorMessage" part="PickupCreationError" use="literal"/>
95
+ </soap:header>
96
+ </wsdl:input>
97
+ <wsdl:output name="PickupCreationResponse">
98
+ <soap:body parts="Body" use="literal"/>
99
+ </wsdl:output>
100
+ <wsdl:fault name="PickupCreationError">
101
+ <soap:fault name="PickupCreationError" use="literal"/>
102
+ </wsdl:fault>
103
+ </wsdl:operation>
104
+ <!-- ###########-->
105
+ <wsdl:operation name="ProcessPickupRate">
106
+ <soap:operation soapAction="http://onlinetools.ups.com/webservices/PickupBinding/v1.1" style="document"/>
107
+ <wsdl:input name="PickupRateRequest">
108
+ <soap:body parts="Body" use="literal"/>
109
+ <soap:header message="tns:PickupRateRequestMessage" part="UPSSecurity" use="literal">
110
+ <soap:headerfault message="tns:PickupRateErrorMessage" part="PickupRateError" use="literal"/>
111
+ </soap:header>
112
+ </wsdl:input>
113
+ <wsdl:output name="PickupRateResponse">
114
+ <soap:body parts="Body" use="literal"/>
115
+ </wsdl:output>
116
+ <wsdl:fault name="PickupRateError">
117
+ <soap:fault name="PickupRateError" use="literal"/>
118
+ </wsdl:fault>
119
+ </wsdl:operation>
120
+ <!-- ###########-->
121
+ <wsdl:operation name="ProcessPickupCancel">
122
+ <soap:operation soapAction="http://onlinetools.ups.com/webservices/PickupBinding/v1.1" style="document"/>
123
+ <wsdl:input name="PickupCancelRequest">
124
+ <soap:body parts="Body" use="literal"/>
125
+ <soap:header message="tns:PickupCancelRequestMessage" part="UPSSecurity" use="literal">
126
+ <soap:headerfault message="tns:PickupCancelErrorMessage" part="PickupCancelError" use="literal"/>
127
+ </soap:header>
128
+ </wsdl:input>
129
+ <wsdl:output name="PickupCancelResponse">
130
+ <soap:body parts="Body" use="literal"/>
131
+ </wsdl:output>
132
+ <wsdl:fault name="PickupCancelError">
133
+ <soap:fault name="PickupCancelError" use="literal"/>
134
+ </wsdl:fault>
135
+ </wsdl:operation>
136
+ <!-- ###########-->
137
+ <wsdl:operation name="ProcessPickupPendingStatus">
138
+ <soap:operation soapAction="http://onlinetools.ups.com/webservices/PickupBinding/v1.1" style="document"/>
139
+ <wsdl:input name="PickupPendingStatusRequest">
140
+ <soap:body parts="Body" use="literal"/>
141
+ <soap:header message="tns:PickupPendingStatusRequestMessage" part="UPSSecurity" use="literal">
142
+ <soap:headerfault message="tns:PickupPendingStatusErrorMessage" part="PickupPendingStatusError" use="literal"/>
143
+ </soap:header>
144
+ </wsdl:input>
145
+ <wsdl:output name="PickupPendingStatusResponse">
146
+ <soap:body parts="Body" use="literal"/>
147
+ </wsdl:output>
148
+ <wsdl:fault name="PickupPendingStatusError">
149
+ <soap:fault name="PickupPendingStatusError" use="literal"/>
150
+ </wsdl:fault>
151
+ </wsdl:operation>
152
+ </wsdl:binding>
153
+ <!-- ########### End Binding ###########-->
154
+ <wsdl:service name="PickupService">
155
+ <wsdl:port name="PickupPort" binding="tns:PickupBinding">
156
+ <!-- Production URL -->
157
+ <!--<soap:address location="https://onlinetools.ups.com/webservices/Pickup"/>-->
158
+ <!-- CIE URL ( Customer Integration Environment )-->
159
+ <soap:address location="https://wwwcie.ups.com/webservices/Pickup"/>
160
+ </wsdl:port>
161
+ </wsdl:service>
162
+ </wsdl:definitions>
@@ -0,0 +1 @@
1
+ <xsd:schema elementFormDefault="qualified" targetNamespace="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:pkup="http://www.ups.com/XMLSchema/XOLTWS/Pickup/v1.1" xmlns:ups="http://www.ups.com/XMLSchema">
2
  <xsd:import namespace="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" schemaLocation="common.xsd"/>
1
3
  <xsd:element name="PickupCreationRequest">
2
4
  <xsd:complexType>
3
5
  <xsd:sequence>
4
6
  <xsd:element ref="common:Request"/>
5
7
  <xsd:element default="N" name="RatePickupIndicator" type="xsd:string"/>
6
8
  <xsd:element minOccurs="0" name="Shipper" type="ShipperType"/>
7
9
  <xsd:element name="PickupDateInfo" type="PickupDateInfoType"/>
8
10
  <xsd:element name="PickupAddress" type="PickupAddressType"/>
9
11
  <xsd:element default="N" name="AlternateAddressIndicator" type="xsd:string"/>
10
12
  <xsd:element maxOccurs="unbounded" name="PickupPiece" type="PickupPieceType"/>
11
13
  <xsd:element minOccurs="0" name="TotalWeight" type="WeightType"/>
12
14
  <xsd:element default="N" name="OverweightIndicator" type="xsd:string"/>
13
15
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="TrackingData" type="TrackingDataType"/>
14
16
  <xsd:element default="00" name="PaymentMethod" type="xsd:string"/>
15
17
  <xsd:element minOccurs="0" name="SpecialInstruction" type="xsd:string"/>
16
18
  <xsd:element minOccurs="0" name="ReferenceNumber" type="xsd:string"/>
17
19
  <xsd:element minOccurs="0" name="Notification" type="NotificationType"/>
18
20
  </xsd:sequence>
19
21
  </xsd:complexType>
20
22
  </xsd:element>
21
23
  <xsd:element name="PickupRateRequest">
22
24
  <xsd:complexType>
23
25
  <xsd:sequence>
24
26
  <xsd:element ref="common:Request"/>
25
27
  <xsd:element name="PickupAddress" type="AddressType"/>
26
28
  <xsd:element default="N" name="AlternateAddressIndicator" type="xsd:string"/>
27
29
  <xsd:element name="ServiceDateOption" type="xsd:string"/>
28
30
  <xsd:element minOccurs="0" name="PickupDateInfo" type="PickupDateInfoType"/>
29
31
  </xsd:sequence>
30
32
  </xsd:complexType>
31
33
  </xsd:element>
32
34
  <xsd:element name="PickupCancelRequest">
33
35
  <xsd:complexType>
34
36
  <xsd:sequence>
35
37
  <xsd:element ref="common:Request"/>
36
38
  <xsd:element name="CancelBy" type="xsd:string"/>
37
39
  <xsd:element minOccurs="0" name="PRN" type="xsd:string"/>
38
40
  </xsd:sequence>
39
41
  </xsd:complexType>
40
42
  </xsd:element>
41
43
  <xsd:element name="PickupPendingStatusRequest">
42
44
  <xsd:complexType>
43
45
  <xsd:sequence>
44
46
  <xsd:element ref="common:Request"/>
45
47
  <xsd:element name="PickupType" type="xsd:string"/>
46
48
  <xsd:element name="AccountNumber" type="xsd:string"/>
47
49
  </xsd:sequence>
48
50
  </xsd:complexType>
49
51
  </xsd:element>
50
52
  <xsd:element name="PickupCreationResponse">
51
53
  <xsd:complexType>
52
54
  <xsd:sequence>
53
55
  <xsd:element ref="common:Response"/>
54
56
  <xsd:element name="PRN" type="xsd:string"/>
55
57
  <xsd:element name="RateStatus" type="StatusCodeDescriptionType"/>
56
58
  <xsd:element minOccurs="0" name="RateResult" type="RateResultType"/>
57
59
  </xsd:sequence>
58
60
  </xsd:complexType>
59
61
  </xsd:element>
60
62
  <xsd:element name="PickupRateResponse">
61
63
  <xsd:complexType>
62
64
  <xsd:sequence>
63
65
  <xsd:element ref="common:Response"/>
64
66
  <xsd:element name="RateResult" type="RateResultType"/>
65
67
  </xsd:sequence>
66
68
  </xsd:complexType>
67
69
  </xsd:element>
68
70
  <xsd:element name="PickupCancelResponse">
69
71
  <xsd:complexType>
70
72
  <xsd:sequence>
71
73
  <xsd:element ref="common:Response"/>
72
74
  <xsd:element name="PickupType" type="xsd:string"/>
73
75
  <xsd:element minOccurs="0" name="GWNStatus" type="StatusCodeDescriptionType"/>
74
76
  </xsd:sequence>
75
77
  </xsd:complexType>
76
78
  </xsd:element>
77
79
  <xsd:element name="PickupPendingStatusResponse">
78
80
  <xsd:complexType>
79
81
  <xsd:sequence>
80
82
  <xsd:element ref="common:Response"/>
81
83
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="PendingStatus" type="PendingStatusType"/>
82
84
  </xsd:sequence>
83
85
  </xsd:complexType>
84
86
  </xsd:element>
85
87
  <xsd:complexType name="PickupPieceType">
86
88
  <xsd:sequence>
87
89
  <xsd:element name="ServiceCode" type="xsd:string"/>
88
90
  <xsd:element name="Quantity" type="xsd:string"/>
89
91
  <xsd:element name="DestinationCountryCode" type="xsd:string"/>
90
92
  <xsd:element name="ContainerCode" type="xsd:string"/>
91
93
  </xsd:sequence>
92
94
  </xsd:complexType>
93
95
  <xsd:complexType name="TodayType">
94
96
  <xsd:sequence>
95
97
  <xsd:element name="LocalDate" type="xsd:string"/>
96
98
  <xsd:element name="LocalTime" type="xsd:string"/>
97
99
  <xsd:element minOccurs="0" name="CallByTime" type="xsd:string"/>
98
100
  <xsd:element minOccurs="0" name="EarliestCloseTime" type="xsd:string"/>
99
101
  <xsd:element minOccurs="0" name="LeadTime" type="xsd:string"/>
100
102
  <xsd:element default="N" minOccurs="0" name="GWNIndicator" type="xsd:string"/>
101
103
  </xsd:sequence>
102
104
  </xsd:complexType>
103
105
  <xsd:complexType name="FutureServiceDateType">
104
106
  <xsd:sequence>
105
107
  <xsd:element name="ServiceDate" type="xsd:string"/>
106
108
  <xsd:element minOccurs="0" name="CallByTime" type="xsd:string"/>
107
109
  <xsd:element minOccurs="0" name="EarliestCloseTime" type="xsd:string"/>
108
110
  <xsd:element minOccurs="0" name="LeadTime" type="xsd:string"/>
109
111
  <xsd:element minOccurs="0" name="GWNIndicator" type="xsd:string"/>
110
112
  </xsd:sequence>
111
113
  </xsd:complexType>
112
114
  <xsd:complexType name="PickupDateInfoType">
113
115
  <xsd:sequence>
114
116
  <xsd:element name="CloseTime" type="xsd:string"/>
115
117
  <xsd:element name="ReadyTime" type="xsd:string"/>
116
118
  <xsd:element name="PickupDate" type="xsd:string"/>
117
119
  </xsd:sequence>
118
120
  </xsd:complexType>
119
121
  <xsd:complexType name="WeightType">
120
122
  <xsd:sequence>
121
123
  <xsd:element name="Weight" type="xsd:string"/>
122
124
  <xsd:element name="UnitOfMeasurement" type="xsd:string"/>
123
125
  </xsd:sequence>
124
126
  </xsd:complexType>
125
127
  <xsd:complexType name="ShipperType">
126
128
  <xsd:sequence>
127
129
  <xsd:element minOccurs="0" name="Account" type="AccountType"/>
128
130
  <xsd:element minOccurs="0" name="ChargeCard" type="ChargeCardType"/>
129
131
  </xsd:sequence>
130
132
  </xsd:complexType>
131
133
  <xsd:complexType name="AccountType">
132
134
  <xsd:sequence>
133
135
  <xsd:element name="AccountNumber" type="xsd:string"/>
134
136
  <xsd:element name="AccountCountryCode" type="xsd:string"/>
135
137
  </xsd:sequence>
136
138
  </xsd:complexType>
137
139
  <xsd:complexType name="ChargeCardType">
138
140
  <xsd:sequence>
139
141
  <xsd:element minOccurs="0" name="CardHolderName" type="xsd:string"/>
140
142
  <xsd:element name="CardType" type="xsd:string"/>
141
143
  <xsd:element name="CardNumber" type="xsd:string"/>
142
144
  <xsd:element name="ExpirationDate" type="xsd:string"/>
143
145
  <xsd:element name="SecurityCode" type="xsd:string"/>
144
146
  <xsd:element name="CardAddress" type="ChargeCardAddressType"/>
145
147
  </xsd:sequence>
146
148
  </xsd:complexType>
147
149
  <xsd:complexType name="ChargeCardAddressType">
148
150
  <xsd:sequence>
149
151
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="AddressLine" type="xsd:string"/>
150
152
  <xsd:element minOccurs="0" name="City" type="xsd:string"/>
151
153
  <xsd:element minOccurs="0" name="StateProvince" type="xsd:string"/>
152
154
  <xsd:element minOccurs="0" name="PostalCode" type="xsd:string"/>
153
155
  <xsd:element name="CountryCode" type="xsd:string"/>
154
156
  </xsd:sequence>
155
157
  </xsd:complexType>
156
158
  <xsd:complexType name="SimpleAddressType">
157
159
  <xsd:sequence>
158
160
  <xsd:element minOccurs="0" name="City" type="xsd:string"/>
159
161
  <xsd:element minOccurs="0" name="StateProvince" type="xsd:string"/>
160
162
  <xsd:element minOccurs="0" name="PostalCode" type="xsd:string"/>
161
163
  <xsd:element name="CountryCode" type="xsd:string"/>
162
164
  </xsd:sequence>
163
165
  </xsd:complexType>
164
166
  <xsd:complexType name="AddressType">
165
167
  <xsd:sequence>
166
168
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="AddressLine" type="xsd:string"/>
167
169
  <xsd:element name="City" type="xsd:string"/>
168
170
  <xsd:element name="StateProvince" type="xsd:string"/>
169
171
  <xsd:element name="PostalCode" type="xsd:string"/>
170
172
  <xsd:element name="CountryCode" type="xsd:string"/>
171
173
  <xsd:element default="N" name="ResidentialIndicator" type="xsd:string"/>
172
174
  </xsd:sequence>
173
175
  </xsd:complexType>
174
176
  <xsd:complexType name="PickupAddressType">
175
177
  <xsd:sequence>
176
178
  <xsd:element name="CompanyName" type="xsd:string"/>
177
179
  <xsd:element name="ContactName" type="xsd:string"/>
178
180
  <xsd:element maxOccurs="unbounded" name="AddressLine" type="xsd:string"/>
179
181
  <xsd:element minOccurs="0" name="Room" type="xsd:string"/>
180
182
  <xsd:element minOccurs="0" name="Floor" type="xsd:string"/>
181
183
  <xsd:element name="City" type="xsd:string"/>
182
184
  <xsd:element name="StateProvince" type="xsd:string"/>
183
185
  <xsd:element minOccurs="0" name="Urbanization" type="xsd:string"/>
184
186
  <xsd:element minOccurs="0" name="PostalCode" type="xsd:string"/>
185
187
  <xsd:element name="CountryCode" type="xsd:string"/>
186
188
  <xsd:element default="N" name="ResidentialIndicator" type="xsd:string"/>
187
189
  <xsd:element minOccurs="0" name="PickupPoint" type="xsd:string"/>
188
190
  <xsd:element name="Phone" type="PhoneType"/>
189
191
  </xsd:sequence>
190
192
  </xsd:complexType>
191
193
  <xsd:complexType name="StreetAddressArtifactType">
192
194
  <xsd:sequence>
193
195
  <xsd:element minOccurs="0" name="StreetNumber" type="xsd:string"/>
194
196
  <xsd:element minOccurs="0" name="StreetPrefix" type="xsd:string"/>
195
197
  <xsd:element minOccurs="0" name="StreetName" type="xsd:string"/>
196
198
  <xsd:element minOccurs="0" name="StreetType" type="xsd:string"/>
197
199
  <xsd:element minOccurs="0" name="StreetSuffix" type="xsd:string"/>
198
200
  <xsd:element minOccurs="0" name="UnparsedStreetAddress" type="xsd:string"/>
199
201
  <xsd:element minOccurs="0" name="StreetAddressArtifactSource" type="xsd:string"/>
200
202
  <xsd:element minOccurs="0" name="StreetAddressMatchCode" type="xsd:string"/>
201
203
  </xsd:sequence>
202
204
  </xsd:complexType>
203
205
  <xsd:complexType name="PhoneType">
204
206
  <xsd:sequence>
205
207
  <xsd:element name="Number" type="xsd:string"/>
206
208
  <xsd:element minOccurs="0" name="Extension" type="xsd:string"/>
207
209
  </xsd:sequence>
208
210
  </xsd:complexType>
209
211
  <xsd:complexType name="NotificationType">
210
212
  <xsd:sequence>
211
213
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="ConfirmationEmailAddress" type="xsd:string"/>
212
214
  <xsd:element minOccurs="0" name="UndeliverableEmailAddress" type="xsd:string"/>
213
215
  </xsd:sequence>
214
216
  </xsd:complexType>
215
217
  <xsd:complexType name="CSRType">
216
218
  <xsd:sequence>
217
219
  <xsd:element minOccurs="0" name="ProfileId" type="xsd:string"/>
218
220
  <xsd:element minOccurs="0" name="ProfileCountryCode" type="xsd:string"/>
219
221
  </xsd:sequence>
220
222
  </xsd:complexType>
221
223
  <xsd:complexType name="StatusCodeDescriptionType">
222
224
  <xsd:sequence>
223
225
  <xsd:element name="Code" type="xsd:string"/>
224
226
  <xsd:element minOccurs="0" name="Description" type="xsd:string"/>
225
227
  </xsd:sequence>
226
228
  </xsd:complexType>
227
229
  <xsd:complexType name="RateResultType">
228
230
  <xsd:sequence>
229
231
  <xsd:element minOccurs="0" name="RateType" type="xsd:string"/>
230
232
  <xsd:element minOccurs="0" name="CurrencyCode" type="xsd:string"/>
231
233
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="ChargeDetail" type="ChargeDetailType"/>
232
234
  <xsd:element minOccurs="0" name="TotalTax" type="xsd:string"/>
233
235
  <xsd:element name="GrandTotalOfAllCharge" type="xsd:string"/>
234
236
  </xsd:sequence>
235
237
  </xsd:complexType>
236
238
  <xsd:complexType name="ChargeDetailType">
237
239
  <xsd:sequence>
238
240
  <xsd:element name="ChargeCode" type="xsd:string"/>
239
241
  <xsd:element minOccurs="0" name="ChargeDescription" type="xsd:string"/>
240
242
  <xsd:element name="ChargeAmount" type="xsd:string"/>
241
243
  <xsd:element minOccurs="0" name="TaxAmount" type="xsd:string"/>
242
244
  </xsd:sequence>
243
245
  </xsd:complexType>
244
246
  <xsd:complexType name="PendingStatusType">
245
247
  <xsd:sequence>
246
248
  <xsd:element name="PickupType" type="xsd:string"/>
247
249
  <xsd:element name="ServiceDate" type="xsd:string"/>
248
250
  <xsd:element name="PRN" type="xsd:string"/>
249
251
  <xsd:element minOccurs="0" name="GWNStatusCode" type="xsd:string"/>
250
252
  <xsd:element minOccurs="0" name="OnCallStatusCode" type="xsd:string"/>
251
253
  <xsd:element name="PickupStatusMessage" type="xsd:string"/>
252
254
  <xsd:element minOccurs="0" name="BillingCode" type="xsd:string"/>
253
255
  <xsd:element minOccurs="0" name="ContactName" type="xsd:string"/>
254
256
  <xsd:element minOccurs="0" name="ReferenceNumber" type="xsd:string"/>
255
257
  </xsd:sequence>
256
258
  </xsd:complexType>
257
259
  <xsd:complexType name="TrackingDataType">
258
260
  <xsd:sequence>
259
261
  <xsd:element minOccurs="0" name="TrackingNumber" type="xsd:string"/>
260
262
  </xsd:sequence>
261
263
  </xsd:complexType>