active_shipping 1.0.0.pre4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.yardopts +0 -1
  5. data/CHANGELOG.md +17 -0
  6. data/CONTRIBUTING.md +2 -2
  7. data/Gemfile.activesupport32 +1 -0
  8. data/README.md +1 -1
  9. data/Rakefile +1 -1
  10. data/active_shipping.gemspec +2 -2
  11. data/lib/active_shipping.rb +2 -3
  12. data/lib/active_shipping/carriers.rb +1 -0
  13. data/lib/active_shipping/carriers/canada_post_pws.rb +281 -266
  14. data/lib/active_shipping/carriers/correios.rb +285 -0
  15. data/lib/active_shipping/carriers/fedex.rb +205 -199
  16. data/lib/active_shipping/carriers/stamps.rb +218 -219
  17. data/lib/active_shipping/carriers/ups.rb +287 -48
  18. data/lib/active_shipping/carriers/usps.rb +3 -3
  19. data/lib/active_shipping/delivery_date_estimate.rb +21 -0
  20. data/lib/active_shipping/delivery_date_estimates_response.rb +11 -0
  21. data/lib/active_shipping/errors.rb +20 -1
  22. data/lib/active_shipping/location.rb +0 -5
  23. data/lib/active_shipping/response.rb +0 -15
  24. data/lib/active_shipping/version.rb +1 -1
  25. data/test/credentials.yml +11 -3
  26. data/test/fixtures/xml/correios/book_response.xml +13 -0
  27. data/test/fixtures/xml/correios/book_response_invalid.xml +13 -0
  28. data/test/fixtures/xml/correios/clothes_response.xml +43 -0
  29. data/test/fixtures/xml/correios/poster_response.xml +23 -0
  30. data/test/fixtures/xml/correios/shoes_response.xml +43 -0
  31. data/test/fixtures/xml/fedex/tracking_request.xml +13 -11
  32. data/test/fixtures/xml/fedex/tracking_response_bad_tracking_number.xml +20 -0
  33. data/test/fixtures/xml/fedex/tracking_response_delivered_at_door.xml +254 -0
  34. data/test/fixtures/xml/fedex/tracking_response_delivered_at_facility.xml +403 -0
  35. data/test/fixtures/xml/fedex/tracking_response_delivered_with_signature.xml +269 -0
  36. data/test/fixtures/xml/fedex/tracking_response_in_transit.xml +127 -0
  37. data/test/fixtures/xml/fedex/tracking_response_multiple_results.xml +100 -0
  38. data/test/fixtures/xml/fedex/tracking_response_not_found.xml +52 -0
  39. data/test/fixtures/xml/fedex/tracking_response_shipment_exception.xml +209 -0
  40. data/test/fixtures/xml/ups/delivery_dates_response.xml +140 -0
  41. data/test/fixtures/xml/ups/package_exceeds_maximum_length.xml +12 -0
  42. data/test/fixtures/xml/ups/rate_single_service.xml +54 -0
  43. data/test/fixtures/xml/ups/rescheduled_shipment.xml +204 -0
  44. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +290 -1
  45. data/test/fixtures/xml/usps/delivered_extended_tracking_response.xml +11 -0
  46. data/test/remote/canada_post_pws_platform_test.rb +35 -22
  47. data/test/remote/canada_post_pws_test.rb +32 -40
  48. data/test/remote/correios_test.rb +83 -0
  49. data/test/remote/fedex_test.rb +95 -13
  50. data/test/remote/stamps_test.rb +1 -0
  51. data/test/remote/ups_test.rb +77 -40
  52. data/test/remote/usps_test.rb +13 -1
  53. data/test/test_helper.rb +12 -2
  54. data/test/unit/carriers/canada_post_pws_rating_test.rb +66 -59
  55. data/test/unit/carriers/canada_post_pws_shipping_test.rb +34 -23
  56. data/test/unit/carriers/correios_test.rb +244 -0
  57. data/test/unit/carriers/fedex_test.rb +161 -156
  58. data/test/unit/carriers/ups_test.rb +193 -1
  59. data/test/unit/carriers/usps_test.rb +14 -0
  60. data/test/unit/location_test.rb +0 -10
  61. metadata +63 -46
  62. metadata.gz.sig +0 -0
  63. data/lib/vendor/test_helper.rb +0 -6
  64. data/lib/vendor/xml_node/README +0 -36
  65. data/lib/vendor/xml_node/Rakefile +0 -21
  66. data/lib/vendor/xml_node/benchmark/bench_generation.rb +0 -30
  67. data/lib/vendor/xml_node/init.rb +0 -1
  68. data/lib/vendor/xml_node/lib/xml_node.rb +0 -221
  69. data/lib/vendor/xml_node/test/test_generating.rb +0 -89
  70. data/lib/vendor/xml_node/test/test_parsing.rb +0 -40
  71. data/test/fixtures/xml/fedex/tracking_response.xml +0 -151
  72. data/test/fixtures/xml/fedex/tracking_response_empty_destination.xml +0 -76
  73. data/test/fixtures/xml/fedex/tracking_response_no_destination.xml +0 -139
  74. data/test/fixtures/xml/fedex/tracking_response_no_ship_time.xml +0 -150
  75. data/test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml +0 -95
  76. data/test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml +0 -71
@@ -0,0 +1,140 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <TimeInTransitResponse>
3
+ <Response>
4
+ <TransactionReference />
5
+ <ResponseStatusCode>1</ResponseStatusCode>
6
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
7
+ </Response>
8
+ <TransitResponse>
9
+ <PickupDate>2015-02-02</PickupDate>
10
+ <TransitFrom>
11
+ <AddressArtifactFormat>
12
+ <PoliticalDivision2>NEW YORK</PoliticalDivision2>
13
+ <PoliticalDivision1>NY</PoliticalDivision1>
14
+ <Country>UNITED STATES</Country>
15
+ <CountryCode>US</CountryCode>
16
+ <PostcodePrimaryLow>10017</PostcodePrimaryLow>
17
+ </AddressArtifactFormat>
18
+ </TransitFrom>
19
+ <TransitTo>
20
+ <AddressArtifactFormat>
21
+ <PoliticalDivision2>TAMPA</PoliticalDivision2>
22
+ <PoliticalDivision1>FL</PoliticalDivision1>
23
+ <Country>UNITED STATES</Country>
24
+ <CountryCode>US</CountryCode>
25
+ <PostcodePrimaryLow>33615</PostcodePrimaryLow>
26
+ <ResidentialAddressIndicator />
27
+ </AddressArtifactFormat>
28
+ </TransitTo>
29
+ <InvoiceLineTotal>
30
+ <CurrencyCode>USD</CurrencyCode>
31
+ <MonetaryValue>15300000.00</MonetaryValue>
32
+ </InvoiceLineTotal>
33
+ <Disclaimer>Services listed as guaranteed are backed by a money-back guarantee for transportation charges only. UPS guarantees the day of delivery for every ground package you ship to any address within all 50 states and Puerto Rico. See Terms and Conditions in the Service Guide for details.</Disclaimer>
34
+ <ServiceSummary>
35
+ <Service>
36
+ <Code>1DM</Code>
37
+ <Description>UPS Next Day Air Early A.M.</Description>
38
+ </Service>
39
+ <Guaranteed>
40
+ <Code>Y</Code>
41
+ </Guaranteed>
42
+ <EstimatedArrival>
43
+ <BusinessTransitDays>1</BusinessTransitDays>
44
+ <Time>08:00:00</Time>
45
+ <PickupDate>2015-02-02</PickupDate>
46
+ <PickupTime>19:30:00</PickupTime>
47
+ <Date>2015-02-03</Date>
48
+ <DayOfWeek>TUE</DayOfWeek>
49
+ <CustomerCenterCutoff>18:30:00</CustomerCenterCutoff>
50
+ </EstimatedArrival>
51
+ </ServiceSummary>
52
+ <ServiceSummary>
53
+ <Service>
54
+ <Code>1DA</Code>
55
+ <Description>UPS Next Day Air</Description>
56
+ </Service>
57
+ <Guaranteed>
58
+ <Code>Y</Code>
59
+ </Guaranteed>
60
+ <EstimatedArrival>
61
+ <BusinessTransitDays>1</BusinessTransitDays>
62
+ <Time>10:30:00</Time>
63
+ <PickupDate>2015-02-02</PickupDate>
64
+ <PickupTime>19:30:00</PickupTime>
65
+ <Date>2015-02-03</Date>
66
+ <DayOfWeek>TUE</DayOfWeek>
67
+ <CustomerCenterCutoff>18:30:00</CustomerCenterCutoff>
68
+ </EstimatedArrival>
69
+ </ServiceSummary>
70
+ <ServiceSummary>
71
+ <Service>
72
+ <Code>1DP</Code>
73
+ <Description>UPS Next Day Air Saver</Description>
74
+ </Service>
75
+ <Guaranteed>
76
+ <Code>Y</Code>
77
+ </Guaranteed>
78
+ <EstimatedArrival>
79
+ <BusinessTransitDays>1</BusinessTransitDays>
80
+ <Time>23:00:00</Time>
81
+ <PickupDate>2015-02-02</PickupDate>
82
+ <PickupTime>19:30:00</PickupTime>
83
+ <Date>2015-02-03</Date>
84
+ <DayOfWeek>TUE</DayOfWeek>
85
+ <CustomerCenterCutoff>18:30:00</CustomerCenterCutoff>
86
+ </EstimatedArrival>
87
+ </ServiceSummary>
88
+ <ServiceSummary>
89
+ <Service>
90
+ <Code>2DA</Code>
91
+ <Description>UPS 2nd Day Air</Description>
92
+ </Service>
93
+ <Guaranteed>
94
+ <Code>Y</Code>
95
+ </Guaranteed>
96
+ <EstimatedArrival>
97
+ <BusinessTransitDays>2</BusinessTransitDays>
98
+ <Time>23:00:00</Time>
99
+ <PickupDate>2015-02-02</PickupDate>
100
+ <PickupTime>19:30:00</PickupTime>
101
+ <Date>2015-02-04</Date>
102
+ <DayOfWeek>WED</DayOfWeek>
103
+ <CustomerCenterCutoff>18:30:00</CustomerCenterCutoff>
104
+ </EstimatedArrival>
105
+ </ServiceSummary>
106
+ <ServiceSummary>
107
+ <Service>
108
+ <Code>3DS</Code>
109
+ <Description>UPS 3 Day Select</Description>
110
+ </Service>
111
+ <Guaranteed>
112
+ <Code>Y</Code>
113
+ </Guaranteed>
114
+ <EstimatedArrival>
115
+ <BusinessTransitDays>3</BusinessTransitDays>
116
+ <Time>23:00:00</Time>
117
+ <PickupDate>2015-02-02</PickupDate>
118
+ <Date>2015-02-05</Date>
119
+ <DayOfWeek>THU</DayOfWeek>
120
+ </EstimatedArrival>
121
+ </ServiceSummary>
122
+ <ServiceSummary>
123
+ <Service>
124
+ <Code>GND</Code>
125
+ <Description>UPS Ground</Description>
126
+ </Service>
127
+ <Guaranteed>
128
+ <Code>Y</Code>
129
+ </Guaranteed>
130
+ <EstimatedArrival>
131
+ <BusinessTransitDays>3</BusinessTransitDays>
132
+ <Time>23:00:00</Time>
133
+ <PickupDate>2015-02-02</PickupDate>
134
+ <Date>2015-02-05</Date>
135
+ <DayOfWeek>THU</DayOfWeek>
136
+ </EstimatedArrival>
137
+ </ServiceSummary>
138
+ <MaximumListSize>35</MaximumListSize>
139
+ </TransitResponse>
140
+ </TimeInTransitResponse>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0"?>
2
+ <RatingServiceSelectionResponse>
3
+ <Response>
4
+ <ResponseStatusCode>0</ResponseStatusCode>
5
+ <ResponseStatusDescription>Failure</ResponseStatusDescription>
6
+ <Error>
7
+ <ErrorSeverity>Hard</ErrorSeverity>
8
+ <ErrorCode>111055</ErrorCode>
9
+ <ErrorDescription>Package exceeds the maximum length constraint of 108 inches. Length is the longest side of a package.</ErrorDescription>
10
+ </Error>
11
+ </Response>
12
+ </RatingServiceSelectionResponse>
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0"?>
2
+ <RatingServiceSelectionResponse>
3
+ <Response>
4
+ <ResponseStatusCode>1</ResponseStatusCode>
5
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
6
+ </Response>
7
+ <RatedShipment>
8
+ <Service>
9
+ <Code>03</Code>
10
+ </Service>
11
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
12
+ <BillingWeight>
13
+ <UnitOfMeasurement>
14
+ <Code>LBS</Code>
15
+ </UnitOfMeasurement>
16
+ <Weight>1.0</Weight>
17
+ </BillingWeight>
18
+ <TransportationCharges>
19
+ <CurrencyCode>USD</CurrencyCode>
20
+ <MonetaryValue>11.86</MonetaryValue>
21
+ </TransportationCharges>
22
+ <ServiceOptionsCharges>
23
+ <CurrencyCode>USD</CurrencyCode>
24
+ <MonetaryValue>0.00</MonetaryValue>
25
+ </ServiceOptionsCharges>
26
+ <TotalCharges>
27
+ <CurrencyCode>USD</CurrencyCode>
28
+ <MonetaryValue>11.86</MonetaryValue>
29
+ </TotalCharges>
30
+ <GuaranteedDaysToDelivery />
31
+ <ScheduledDeliveryTime />
32
+ <RatedPackage>
33
+ <TransportationCharges>
34
+ <CurrencyCode>USD</CurrencyCode>
35
+ <MonetaryValue>11.86</MonetaryValue>
36
+ </TransportationCharges>
37
+ <ServiceOptionsCharges>
38
+ <CurrencyCode>USD</CurrencyCode>
39
+ <MonetaryValue>0.00</MonetaryValue>
40
+ </ServiceOptionsCharges>
41
+ <TotalCharges>
42
+ <CurrencyCode>USD</CurrencyCode>
43
+ <MonetaryValue>11.86</MonetaryValue>
44
+ </TotalCharges>
45
+ <Weight>0.3</Weight>
46
+ <BillingWeight>
47
+ <UnitOfMeasurement>
48
+ <Code>LBS</Code>
49
+ </UnitOfMeasurement>
50
+ <Weight>1.0</Weight>
51
+ </BillingWeight>
52
+ </RatedPackage>
53
+ </RatedShipment>
54
+ </RatingServiceSelectionResponse>
@@ -0,0 +1,204 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <TrackResponse>
3
+ <Response>
4
+ <ResponseStatusCode>1</ResponseStatusCode>
5
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
6
+ </Response>
7
+ <Shipment>
8
+ <Shipper>
9
+ <ShipperNumber>4F940A</ShipperNumber>
10
+ <Address>
11
+ <AddressLine1>1600 WORLDWIDE BLVD</AddressLine1>
12
+ <City>HEBRON</City>
13
+ <StateProvinceCode>KY</StateProvinceCode>
14
+ <PostalCode>41048 8640</PostalCode>
15
+ <CountryCode>US</CountryCode>
16
+ </Address>
17
+ </Shipper>
18
+ <ShipTo>
19
+ <Address>
20
+ <City>KENNEWICK</City>
21
+ <StateProvinceCode>WA</StateProvinceCode>
22
+ <PostalCode>99337</PostalCode>
23
+ <CountryCode>US</CountryCode>
24
+ </Address>
25
+ </ShipTo>
26
+ <ShipmentWeight>
27
+ <UnitOfMeasurement>
28
+ <Code>LBS</Code>
29
+ </UnitOfMeasurement>
30
+ <Weight>78.00</Weight>
31
+ </ShipmentWeight>
32
+ <Service>
33
+ <Code>003</Code>
34
+ <Description>GROUND</Description>
35
+ </Service>
36
+ <ReferenceNumber>
37
+ <Code>01</Code>
38
+ <Value>1623662713</Value>
39
+ </ReferenceNumber>
40
+ <ShipmentIdentificationNumber>1ZW5A7604293617812</ShipmentIdentificationNumber>
41
+ <PickupDate>20150121</PickupDate>
42
+ <Package>
43
+ <TrackingNumber>1ZW5A7604293617812</TrackingNumber>
44
+ <RescheduledDeliveryDate>20150129</RescheduledDeliveryDate>
45
+ <PackageServiceOptions>
46
+ <SignatureRequired>
47
+ <Code>S</Code>
48
+ </SignatureRequired>
49
+ </PackageServiceOptions>
50
+ <Activity>
51
+ <ActivityLocation>
52
+ <Address>
53
+ <City>KENNEWICK</City>
54
+ <StateProvinceCode>WA</StateProvinceCode>
55
+ <CountryCode>US</CountryCode>
56
+ </Address>
57
+ </ActivityLocation>
58
+ <Status>
59
+ <StatusType>
60
+ <Code>I</Code>
61
+ <Description>OUT FOR DELIVERY</Description>
62
+ </StatusType>
63
+ <StatusCode>
64
+ <Code>OF</Code>
65
+ </StatusCode>
66
+ </Status>
67
+ <Date>20150129</Date>
68
+ <Time>060000</Time>
69
+ </Activity>
70
+ <Activity>
71
+ <ActivityLocation>
72
+ <Address>
73
+ <City>KENNEWICK</City>
74
+ <StateProvinceCode>WA</StateProvinceCode>
75
+ <CountryCode>US</CountryCode>
76
+ </Address>
77
+ </ActivityLocation>
78
+ <Status>
79
+ <StatusType>
80
+ <Code>I</Code>
81
+ <Description>DESTINATION SCAN</Description>
82
+ </StatusType>
83
+ <StatusCode>
84
+ <Code>DS</Code>
85
+ </StatusCode>
86
+ </Status>
87
+ <Date>20150129</Date>
88
+ <Time>053500</Time>
89
+ </Activity>
90
+ <Activity>
91
+ <ActivityLocation>
92
+ <Address>
93
+ <City>KENNEWICK</City>
94
+ <StateProvinceCode>WA</StateProvinceCode>
95
+ <CountryCode>US</CountryCode>
96
+ </Address>
97
+ </ActivityLocation>
98
+ <Status>
99
+ <StatusType>
100
+ <Code>X</Code>
101
+ <Description>THE RECEIVER WAS NOT AVAILABLE AT THE TIME OF THE FIRST DELIVERY ATTEMPT. A SECOND ATTEMPT WILL BE MADE.</Description>
102
+ </StatusType>
103
+ <StatusCode>
104
+ <Code>48</Code>
105
+ </StatusCode>
106
+ </Status>
107
+ <Date>20150128</Date>
108
+ <Time>124600</Time>
109
+ </Activity>
110
+ <Activity>
111
+ <ActivityLocation>
112
+ <Address>
113
+ <City>KENNEWICK</City>
114
+ <StateProvinceCode>WA</StateProvinceCode>
115
+ <CountryCode>US</CountryCode>
116
+ </Address>
117
+ </ActivityLocation>
118
+ <Status>
119
+ <StatusType>
120
+ <Code>I</Code>
121
+ <Description>OUT FOR DELIVERY</Description>
122
+ </StatusType>
123
+ <StatusCode>
124
+ <Code>DS</Code>
125
+ </StatusCode>
126
+ </Status>
127
+ <Date>20150128</Date>
128
+ <Time>044400</Time>
129
+ </Activity>
130
+ <Activity>
131
+ <ActivityLocation>
132
+ <Address>
133
+ <City>KENNEWICK</City>
134
+ <StateProvinceCode>WA</StateProvinceCode>
135
+ <CountryCode>US</CountryCode>
136
+ </Address>
137
+ </ActivityLocation>
138
+ <Status>
139
+ <StatusType>
140
+ <Code>I</Code>
141
+ <Description>ARRIVAL SCAN</Description>
142
+ </StatusType>
143
+ <StatusCode>
144
+ <Code>AR</Code>
145
+ </StatusCode>
146
+ </Status>
147
+ <Date>20150128</Date>
148
+ <Time>031600</Time>
149
+ </Activity>
150
+ <Activity>
151
+ <ActivityLocation>
152
+ <Address>
153
+ <City>ATLANTA</City>
154
+ <StateProvinceCode>GA</StateProvinceCode>
155
+ <CountryCode>US</CountryCode>
156
+ </Address>
157
+ </ActivityLocation>
158
+ <Status>
159
+ <StatusType>
160
+ <Code>I</Code>
161
+ <Description>DEPARTURE SCAN</Description>
162
+ </StatusType>
163
+ <StatusCode>
164
+ <Code>DP</Code>
165
+ </StatusCode>
166
+ </Status>
167
+ <Date>20150122</Date>
168
+ <Time>000200</Time>
169
+ </Activity>
170
+ <Activity>
171
+ <ActivityLocation>
172
+ <Address>
173
+ <CountryCode>US</CountryCode>
174
+ </Address>
175
+ </ActivityLocation>
176
+ <Status>
177
+ <StatusType>
178
+ <Code>M</Code>
179
+ <Description>BILLING INFORMATION RECEIVED</Description>
180
+ </StatusType>
181
+ <StatusCode>
182
+ <Code>MP</Code>
183
+ </StatusCode>
184
+ </Status>
185
+ <Date>20150121</Date>
186
+ <Time>102316</Time>
187
+ </Activity>
188
+ <PackageWeight>
189
+ <UnitOfMeasurement>
190
+ <Code>LBS</Code>
191
+ </UnitOfMeasurement>
192
+ <Weight>78.00</Weight>
193
+ </PackageWeight>
194
+ <ReferenceNumber>
195
+ <Code>01</Code>
196
+ <Value>1623662713</Value>
197
+ </ReferenceNumber>
198
+ <Accessorial>
199
+ <Code>043</Code>
200
+ <Description>CUSTOMIZED DELIVERY CONFIRM.</Description>
201
+ </Accessorial>
202
+ </Package>
203
+ </Shipment>
204
+ </TrackResponse>
@@ -1 +1,290 @@
1
- <?xml version="1.0"?><RatingServiceSelectionResponse><Response><TransactionReference></TransactionReference><ResponseStatusCode>1</ResponseStatusCode><ResponseStatusDescription>Success</ResponseStatusDescription></Response><RatedShipment><Service><Code>03</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.92</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.92</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery></GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.92</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>9.92</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>12</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.91</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.91</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.91</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>21.91</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>02</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>30.07</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>30.07</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>30.07</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>30.07</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>13</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.09</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.09</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime></ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.09</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>55.09</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>14</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>94.01</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>94.01</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>8:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>94.01</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>94.01</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment><RatedShipment><Service><Code>01</Code></Service><RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>61.24</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>61.24</MonetaryValue></TotalCharges><GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery><ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime><RatedPackage><TransportationCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>61.24</MonetaryValue></TransportationCharges><ServiceOptionsCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>0.00</MonetaryValue></ServiceOptionsCharges><TotalCharges><CurrencyCode>USD</CurrencyCode><MonetaryValue>61.24</MonetaryValue></TotalCharges><Weight>5.0</Weight><BillingWeight><UnitOfMeasurement><Code>LBS</Code></UnitOfMeasurement><Weight>5.0</Weight></BillingWeight></RatedPackage></RatedShipment></RatingServiceSelectionResponse>
1
+ <?xml version="1.0"?>
2
+ <RatingServiceSelectionResponse>
3
+ <Response>
4
+ <TransactionReference></TransactionReference>
5
+ <ResponseStatusCode>1</ResponseStatusCode>
6
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
7
+ </Response>
8
+ <RatedShipment>
9
+ <Service>
10
+ <Code>03</Code>
11
+ </Service>
12
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
13
+ <BillingWeight>
14
+ <UnitOfMeasurement>
15
+ <Code>LBS</Code>
16
+ </UnitOfMeasurement>
17
+ <Weight>5.0</Weight>
18
+ </BillingWeight>
19
+ <TransportationCharges>
20
+ <CurrencyCode>USD</CurrencyCode>
21
+ <MonetaryValue>9.92</MonetaryValue>
22
+ </TransportationCharges>
23
+ <ServiceOptionsCharges>
24
+ <CurrencyCode>USD</CurrencyCode>
25
+ <MonetaryValue>0.00</MonetaryValue>
26
+ </ServiceOptionsCharges>
27
+ <TotalCharges>
28
+ <CurrencyCode>USD</CurrencyCode>
29
+ <MonetaryValue>9.92</MonetaryValue>
30
+ </TotalCharges>
31
+ <GuaranteedDaysToDelivery></GuaranteedDaysToDelivery>
32
+ <ScheduledDeliveryTime></ScheduledDeliveryTime>
33
+ <RatedPackage>
34
+ <TransportationCharges>
35
+ <CurrencyCode>USD</CurrencyCode>
36
+ <MonetaryValue>9.92</MonetaryValue>
37
+ </TransportationCharges>
38
+ <ServiceOptionsCharges>
39
+ <CurrencyCode>USD</CurrencyCode>
40
+ <MonetaryValue>0.00</MonetaryValue>
41
+ </ServiceOptionsCharges>
42
+ <TotalCharges>
43
+ <CurrencyCode>USD</CurrencyCode>
44
+ <MonetaryValue>9.92</MonetaryValue>
45
+ </TotalCharges>
46
+ <Weight>5.0</Weight>
47
+ <BillingWeight>
48
+ <UnitOfMeasurement>
49
+ <Code>LBS</Code>
50
+ </UnitOfMeasurement>
51
+ <Weight>5.0</Weight>
52
+ </BillingWeight>
53
+ </RatedPackage>
54
+ </RatedShipment>
55
+ <RatedShipment>
56
+ <Service>
57
+ <Code>12</Code>
58
+ </Service>
59
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
60
+ <BillingWeight>
61
+ <UnitOfMeasurement>
62
+ <Code>LBS</Code>
63
+ </UnitOfMeasurement>
64
+ <Weight>5.0</Weight>
65
+ </BillingWeight>
66
+ <TransportationCharges>
67
+ <CurrencyCode>USD</CurrencyCode>
68
+ <MonetaryValue>21.91</MonetaryValue>
69
+ </TransportationCharges>
70
+ <ServiceOptionsCharges>
71
+ <CurrencyCode>USD</CurrencyCode>
72
+ <MonetaryValue>0.00</MonetaryValue>
73
+ </ServiceOptionsCharges>
74
+ <TotalCharges>
75
+ <CurrencyCode>USD</CurrencyCode>
76
+ <MonetaryValue>21.91</MonetaryValue>
77
+ </TotalCharges>
78
+ <GuaranteedDaysToDelivery>3</GuaranteedDaysToDelivery>
79
+ <ScheduledDeliveryTime></ScheduledDeliveryTime>
80
+ <RatedPackage>
81
+ <TransportationCharges>
82
+ <CurrencyCode>USD</CurrencyCode>
83
+ <MonetaryValue>21.91</MonetaryValue>
84
+ </TransportationCharges>
85
+ <ServiceOptionsCharges>
86
+ <CurrencyCode>USD</CurrencyCode>
87
+ <MonetaryValue>0.00</MonetaryValue>
88
+ </ServiceOptionsCharges>
89
+ <TotalCharges>
90
+ <CurrencyCode>USD</CurrencyCode>
91
+ <MonetaryValue>21.91</MonetaryValue>
92
+ </TotalCharges>
93
+ <Weight>5.0</Weight>
94
+ <BillingWeight>
95
+ <UnitOfMeasurement>
96
+ <Code>LBS</Code>
97
+ </UnitOfMeasurement>
98
+ <Weight>5.0</Weight>
99
+ </BillingWeight>
100
+ </RatedPackage>
101
+ </RatedShipment>
102
+ <RatedShipment>
103
+ <Service>
104
+ <Code>02</Code>
105
+ </Service>
106
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
107
+ <BillingWeight>
108
+ <UnitOfMeasurement>
109
+ <Code>LBS</Code>
110
+ </UnitOfMeasurement>
111
+ <Weight>5.0</Weight>
112
+ </BillingWeight>
113
+ <TransportationCharges>
114
+ <CurrencyCode>USD</CurrencyCode>
115
+ <MonetaryValue>30.07</MonetaryValue>
116
+ </TransportationCharges>
117
+ <ServiceOptionsCharges>
118
+ <CurrencyCode>USD</CurrencyCode>
119
+ <MonetaryValue>0.00</MonetaryValue>
120
+ </ServiceOptionsCharges>
121
+ <TotalCharges>
122
+ <CurrencyCode>USD</CurrencyCode>
123
+ <MonetaryValue>30.07</MonetaryValue>
124
+ </TotalCharges>
125
+ <GuaranteedDaysToDelivery>2</GuaranteedDaysToDelivery>
126
+ <ScheduledDeliveryTime></ScheduledDeliveryTime>
127
+ <RatedPackage>
128
+ <TransportationCharges>
129
+ <CurrencyCode>USD</CurrencyCode>
130
+ <MonetaryValue>30.07</MonetaryValue>
131
+ </TransportationCharges>
132
+ <ServiceOptionsCharges>
133
+ <CurrencyCode>USD</CurrencyCode>
134
+ <MonetaryValue>0.00</MonetaryValue>
135
+ </ServiceOptionsCharges>
136
+ <TotalCharges>
137
+ <CurrencyCode>USD</CurrencyCode>
138
+ <MonetaryValue>30.07</MonetaryValue>
139
+ </TotalCharges>
140
+ <Weight>5.0</Weight>
141
+ <BillingWeight>
142
+ <UnitOfMeasurement>
143
+ <Code>LBS</Code>
144
+ </UnitOfMeasurement>
145
+ <Weight>5.0</Weight>
146
+ </BillingWeight>
147
+ </RatedPackage>
148
+ </RatedShipment>
149
+ <RatedShipment>
150
+ <Service>
151
+ <Code>13</Code>
152
+ </Service>
153
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
154
+ <BillingWeight>
155
+ <UnitOfMeasurement>
156
+ <Code>LBS</Code>
157
+ </UnitOfMeasurement>
158
+ <Weight>5.0</Weight>
159
+ </BillingWeight>
160
+ <TransportationCharges>
161
+ <CurrencyCode>USD</CurrencyCode>
162
+ <MonetaryValue>55.09</MonetaryValue>
163
+ </TransportationCharges>
164
+ <ServiceOptionsCharges>
165
+ <CurrencyCode>USD</CurrencyCode>
166
+ <MonetaryValue>0.00</MonetaryValue>
167
+ </ServiceOptionsCharges>
168
+ <TotalCharges>
169
+ <CurrencyCode>USD</CurrencyCode>
170
+ <MonetaryValue>55.09</MonetaryValue>
171
+ </TotalCharges>
172
+ <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
173
+ <ScheduledDeliveryTime></ScheduledDeliveryTime>
174
+ <RatedPackage>
175
+ <TransportationCharges>
176
+ <CurrencyCode>USD</CurrencyCode>
177
+ <MonetaryValue>55.09</MonetaryValue>
178
+ </TransportationCharges>
179
+ <ServiceOptionsCharges>
180
+ <CurrencyCode>USD</CurrencyCode>
181
+ <MonetaryValue>0.00</MonetaryValue>
182
+ </ServiceOptionsCharges>
183
+ <TotalCharges>
184
+ <CurrencyCode>USD</CurrencyCode>
185
+ <MonetaryValue>55.09</MonetaryValue>
186
+ </TotalCharges>
187
+ <Weight>5.0</Weight>
188
+ <BillingWeight>
189
+ <UnitOfMeasurement>
190
+ <Code>LBS</Code>
191
+ </UnitOfMeasurement>
192
+ <Weight>5.0</Weight>
193
+ </BillingWeight>
194
+ </RatedPackage>
195
+ </RatedShipment>
196
+ <RatedShipment>
197
+ <Service>
198
+ <Code>14</Code>
199
+ </Service>
200
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
201
+ <BillingWeight>
202
+ <UnitOfMeasurement>
203
+ <Code>LBS</Code>
204
+ </UnitOfMeasurement>
205
+ <Weight>5.0</Weight>
206
+ </BillingWeight>
207
+ <TransportationCharges>
208
+ <CurrencyCode>USD</CurrencyCode>
209
+ <MonetaryValue>94.01</MonetaryValue>
210
+ </TransportationCharges>
211
+ <ServiceOptionsCharges>
212
+ <CurrencyCode>USD</CurrencyCode>
213
+ <MonetaryValue>0.00</MonetaryValue>
214
+ </ServiceOptionsCharges>
215
+ <TotalCharges>
216
+ <CurrencyCode>USD</CurrencyCode>
217
+ <MonetaryValue>94.01</MonetaryValue>
218
+ </TotalCharges>
219
+ <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
220
+ <ScheduledDeliveryTime>8:30 A.M.</ScheduledDeliveryTime>
221
+ <RatedPackage>
222
+ <TransportationCharges>
223
+ <CurrencyCode>USD</CurrencyCode>
224
+ <MonetaryValue>94.01</MonetaryValue>
225
+ </TransportationCharges>
226
+ <ServiceOptionsCharges>
227
+ <CurrencyCode>USD</CurrencyCode>
228
+ <MonetaryValue>0.00</MonetaryValue>
229
+ </ServiceOptionsCharges>
230
+ <TotalCharges>
231
+ <CurrencyCode>USD</CurrencyCode>
232
+ <MonetaryValue>94.01</MonetaryValue>
233
+ </TotalCharges>
234
+ <Weight>5.0</Weight>
235
+ <BillingWeight>
236
+ <UnitOfMeasurement>
237
+ <Code>LBS</Code>
238
+ </UnitOfMeasurement>
239
+ <Weight>5.0</Weight>
240
+ </BillingWeight>
241
+ </RatedPackage>
242
+ </RatedShipment>
243
+ <RatedShipment>
244
+ <Service>
245
+ <Code>01</Code>
246
+ </Service>
247
+ <RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning>
248
+ <BillingWeight>
249
+ <UnitOfMeasurement>
250
+ <Code>LBS</Code>
251
+ </UnitOfMeasurement>
252
+ <Weight>5.0</Weight>
253
+ </BillingWeight>
254
+ <TransportationCharges>
255
+ <CurrencyCode>USD</CurrencyCode>
256
+ <MonetaryValue>61.24</MonetaryValue>
257
+ </TransportationCharges>
258
+ <ServiceOptionsCharges>
259
+ <CurrencyCode>USD</CurrencyCode>
260
+ <MonetaryValue>0.00</MonetaryValue>
261
+ </ServiceOptionsCharges>
262
+ <TotalCharges>
263
+ <CurrencyCode>USD</CurrencyCode>
264
+ <MonetaryValue>61.24</MonetaryValue>
265
+ </TotalCharges>
266
+ <GuaranteedDaysToDelivery>1</GuaranteedDaysToDelivery>
267
+ <ScheduledDeliveryTime>10:30 A.M.</ScheduledDeliveryTime>
268
+ <RatedPackage>
269
+ <TransportationCharges>
270
+ <CurrencyCode>USD</CurrencyCode>
271
+ <MonetaryValue>61.24</MonetaryValue>
272
+ </TransportationCharges>
273
+ <ServiceOptionsCharges>
274
+ <CurrencyCode>USD</CurrencyCode>
275
+ <MonetaryValue>0.00</MonetaryValue>
276
+ </ServiceOptionsCharges>
277
+ <TotalCharges>
278
+ <CurrencyCode>USD</CurrencyCode>
279
+ <MonetaryValue>61.24</MonetaryValue>
280
+ </TotalCharges>
281
+ <Weight>5.0</Weight>
282
+ <BillingWeight>
283
+ <UnitOfMeasurement>
284
+ <Code>LBS</Code>
285
+ </UnitOfMeasurement>
286
+ <Weight>5.0</Weight>
287
+ </BillingWeight>
288
+ </RatedPackage>
289
+ </RatedShipment>
290
+ </RatingServiceSelectionResponse>