active_shipping 1.0.0.pre2 → 1.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +12 -0
  5. data/.travis.yml +14 -0
  6. data/.yardopts +14 -0
  7. data/Gemfile +3 -0
  8. data/Gemfile.activesupport32 +4 -0
  9. data/Gemfile.activesupport40 +4 -0
  10. data/Gemfile.activesupport41 +4 -0
  11. data/Gemfile.activesupport42 +4 -0
  12. data/Rakefile +23 -0
  13. data/active_shipping.gemspec +32 -0
  14. data/lib/active_shipping.rb +1 -1
  15. data/lib/active_shipping/carrier.rb +1 -1
  16. data/lib/active_shipping/carriers/shipwire.rb +32 -35
  17. data/lib/active_shipping/carriers/ups.rb +2 -2
  18. data/lib/active_shipping/carriers/usps.rb +103 -101
  19. data/lib/active_shipping/label_response.rb +1 -1
  20. data/lib/active_shipping/rate_estimate.rb +76 -15
  21. data/lib/active_shipping/rate_response.rb +20 -0
  22. data/lib/active_shipping/response.rb +17 -0
  23. data/lib/active_shipping/shipment_packer.rb +2 -2
  24. data/lib/active_shipping/shipping_response.rb +24 -2
  25. data/lib/active_shipping/tracking_response.rb +65 -17
  26. data/lib/active_shipping/version.rb +1 -1
  27. data/shipit.rubygems.yml +1 -0
  28. data/test/credentials.yml +47 -0
  29. data/test/fixtures/files/label1.pdf +0 -0
  30. data/test/fixtures/files/ups-shipping-label.gif +0 -0
  31. data/test/fixtures/json/newzealandpost/domestic_book.json +1 -0
  32. data/test/fixtures/json/newzealandpost/domestic_default.json +1 -0
  33. data/test/fixtures/json/newzealandpost/domestic_error.json +1 -0
  34. data/test/fixtures/json/newzealandpost/domestic_poster.json +1 -0
  35. data/test/fixtures/json/newzealandpost/domestic_small_half_pound.json +1 -0
  36. data/test/fixtures/json/newzealandpost/international_book.json +1 -0
  37. data/test/fixtures/json/newzealandpost/international_new_zealand_wii.json +1 -0
  38. data/test/fixtures/json/newzealandpost/international_small_half_pound.json +1 -0
  39. data/test/fixtures/json/newzealandpost/international_wii.json +1 -0
  40. data/test/fixtures/xml/canadapost/example_request.xml +25 -0
  41. data/test/fixtures/xml/canadapost/example_response.xml +130 -0
  42. data/test/fixtures/xml/canadapost/example_response_error.xml +16 -0
  43. data/test/fixtures/xml/canadapost/example_response_french.xml +122 -0
  44. data/test/fixtures/xml/canadapost/example_response_with_nil_value.xml +164 -0
  45. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml +155 -0
  46. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml +274 -0
  47. data/test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml +130 -0
  48. data/test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml +112 -0
  49. data/test/fixtures/xml/canadapost_pws/merchant_details_error.xml +7 -0
  50. data/test/fixtures/xml/canadapost_pws/merchant_details_response.xml +7 -0
  51. data/test/fixtures/xml/canadapost_pws/option_response.xml +13 -0
  52. data/test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml +7 -0
  53. data/test/fixtures/xml/canadapost_pws/rates_info.xml +190 -0
  54. data/test/fixtures/xml/canadapost_pws/rates_info_error.xml +7 -0
  55. data/test/fixtures/xml/canadapost_pws/receipt_response.xml +42 -0
  56. data/test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml +36 -0
  57. data/test/fixtures/xml/canadapost_pws/register_token_error.xml +7 -0
  58. data/test/fixtures/xml/canadapost_pws/register_token_response.xml +3 -0
  59. data/test/fixtures/xml/canadapost_pws/service_options_response.xml +42 -0
  60. data/test/fixtures/xml/canadapost_pws/services_error.xml +6 -0
  61. data/test/fixtures/xml/canadapost_pws/services_response.xml +32 -0
  62. data/test/fixtures/xml/canadapost_pws/shipment_domestic.xml +69 -0
  63. data/test/fixtures/xml/canadapost_pws/shipment_response.xml +20 -0
  64. data/test/fixtures/xml/canadapost_pws/shipment_us.xml +69 -0
  65. data/test/fixtures/xml/canadapost_pws/tracking_details_en.xml +152 -0
  66. data/test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml +7 -0
  67. data/test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml +116 -0
  68. data/test/fixtures/xml/canadapost_pws/tracking_details_fr.xml +156 -0
  69. data/test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml +40 -0
  70. data/test/fixtures/xml/fedex/freight_rate_request.xml +82 -0
  71. data/test/fixtures/xml/fedex/freight_rate_response.xml +506 -0
  72. data/test/fixtures/xml/fedex/invalid_fedex_reply.xml +27 -0
  73. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml +79 -0
  74. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml +80 -0
  75. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml +214 -0
  76. data/test/fixtures/xml/fedex/raterequest_reply.xml +213 -0
  77. data/test/fixtures/xml/fedex/reply_without_notifications.xml +185 -0
  78. data/test/fixtures/xml/fedex/tracking_request.xml +27 -0
  79. data/test/fixtures/xml/fedex/tracking_response.xml +151 -0
  80. data/test/fixtures/xml/fedex/tracking_response_empty_destination.xml +76 -0
  81. data/test/fixtures/xml/fedex/tracking_response_no_destination.xml +139 -0
  82. data/test/fixtures/xml/fedex/tracking_response_no_ship_time.xml +150 -0
  83. data/test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml +95 -0
  84. data/test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml +71 -0
  85. data/test/fixtures/xml/fedex/unknown_fedex_document_reply.xml +3 -0
  86. data/test/fixtures/xml/kunaki/invalid_state_response.xml +3 -0
  87. data/test/fixtures/xml/kunaki/no_valid_items_response.xml +3 -0
  88. data/test/fixtures/xml/kunaki/successful_rates_response.xml +3 -0
  89. data/test/fixtures/xml/kunaki/unsuccessful_rates_response.xml +9 -0
  90. data/test/fixtures/xml/shipwire/international_rates_response.xml +17 -0
  91. data/test/fixtures/xml/shipwire/new_carrier_rate_response.xml +18 -0
  92. data/test/fixtures/xml/shipwire/no_rates_response.xml +7 -0
  93. data/test/fixtures/xml/shipwire/rates_response.xml +36 -0
  94. data/test/fixtures/xml/shipwire/rates_response_no_estimate.xml +14 -0
  95. data/test/fixtures/xml/stamps/authenticate_user_request.xml +15 -0
  96. data/test/fixtures/xml/stamps/authenticate_user_response.xml +10 -0
  97. data/test/fixtures/xml/stamps/cleanse_address_request.xml +19 -0
  98. data/test/fixtures/xml/stamps/cleanse_address_response.xml +27 -0
  99. data/test/fixtures/xml/stamps/create_indicium_request.xml +69 -0
  100. data/test/fixtures/xml/stamps/create_indicium_response.xml +40 -0
  101. data/test/fixtures/xml/stamps/expired_authenticator_response.xml +15 -0
  102. data/test/fixtures/xml/stamps/get_account_info_request.xml +11 -0
  103. data/test/fixtures/xml/stamps/get_account_info_response.xml +36 -0
  104. data/test/fixtures/xml/stamps/get_purchase_status_request.xml +12 -0
  105. data/test/fixtures/xml/stamps/get_purchase_status_response.xml +16 -0
  106. data/test/fixtures/xml/stamps/get_rates_request.xml +19 -0
  107. data/test/fixtures/xml/stamps/get_rates_response.xml +351 -0
  108. data/test/fixtures/xml/stamps/purchase_postage_request.xml +13 -0
  109. data/test/fixtures/xml/stamps/purchase_postage_response.xml +17 -0
  110. data/test/fixtures/xml/stamps/track_shipment_request.xml +12 -0
  111. data/test/fixtures/xml/stamps/track_shipment_response.xml +45 -0
  112. data/test/fixtures/xml/ups/delivered_shipment_with_refund.xml +290 -0
  113. data/test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml +62 -0
  114. data/test/fixtures/xml/ups/example_tracking_response.xml +53 -0
  115. data/test/fixtures/xml/ups/in_transit_shipment.xml +183 -0
  116. data/test/fixtures/xml/ups/out_for_delivery_shipment.xml +165 -0
  117. data/test/fixtures/xml/ups/shipment_accept_response.xml +42 -0
  118. data/test/fixtures/xml/ups/shipment_confirm_response.xml +33 -0
  119. data/test/fixtures/xml/ups/shipment_from_tiger_direct.xml +222 -0
  120. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +1 -0
  121. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml +289 -0
  122. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml +311 -0
  123. data/test/fixtures/xml/ups/triple_accept_response.xml +72 -0
  124. data/test/fixtures/xml/ups/triple_confirm_response.xml +32 -0
  125. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml +2 -0
  126. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml +258 -0
  127. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml +108 -0
  128. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml +84 -0
  129. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml +212 -0
  130. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml +230 -0
  131. data/test/fixtures/xml/usps/delivered_tracking_response.xml +11 -0
  132. data/test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml +12 -0
  133. data/test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml +16 -0
  134. data/test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml +12 -0
  135. data/test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml +2 -0
  136. data/test/fixtures/xml/usps/tracking_request.xml +3 -0
  137. data/test/fixtures/xml/usps/tracking_response.xml +13 -0
  138. data/test/fixtures/xml/usps/tracking_response_failure.xml +3 -0
  139. data/test/fixtures/xml/usps/tracking_response_not_available.xml +12 -0
  140. data/test/fixtures/xml/usps/tracking_response_test_error.xml +8 -0
  141. data/test/fixtures/xml/usps/us_rate_request.xml +18 -0
  142. data/test/fixtures/xml/usps/world_rate_request_with_value.xml +20 -0
  143. data/test/fixtures/xml/usps/world_rate_request_without_value.xml +20 -0
  144. data/test/remote/canada_post_pws_platform_test.rb +246 -0
  145. data/test/remote/canada_post_pws_test.rb +171 -0
  146. data/test/remote/canada_post_test.rb +53 -0
  147. data/test/remote/fedex_test.rb +216 -0
  148. data/test/remote/kunaki_test.rb +36 -0
  149. data/test/remote/new_zealand_post_test.rb +147 -0
  150. data/test/remote/shipwire_test.rb +82 -0
  151. data/test/remote/stamps_test.rb +394 -0
  152. data/test/remote/ups_test.rb +257 -0
  153. data/test/remote/usps_test.rb +235 -0
  154. data/test/test_helper.rb +220 -0
  155. data/test/unit/carriers/benchmark_test.rb +18 -0
  156. data/test/unit/carriers/canada_post_pws_rating_test.rb +349 -0
  157. data/test/unit/carriers/canada_post_pws_register_test.rb +75 -0
  158. data/test/unit/carriers/canada_post_pws_shipping_test.rb +244 -0
  159. data/test/unit/carriers/canada_post_pws_tracking_test.rb +154 -0
  160. data/test/unit/carriers/canada_post_test.rb +145 -0
  161. data/test/unit/carriers/fedex_test.rb +408 -0
  162. data/test/unit/carriers/kunaki_test.rb +52 -0
  163. data/test/unit/carriers/new_zealand_post_test.rb +174 -0
  164. data/test/unit/carriers/shipwire_test.rb +187 -0
  165. data/test/unit/carriers/stamps_test.rb +241 -0
  166. data/test/unit/carriers/ups_test.rb +311 -0
  167. data/test/unit/carriers/usps_test.rb +484 -0
  168. data/test/unit/carriers_test.rb +17 -0
  169. data/test/unit/label_response_test.rb +15 -0
  170. data/test/unit/location_test.rb +138 -0
  171. data/test/unit/package_test.rb +68 -0
  172. data/test/unit/rate_estimate_test.rb +34 -0
  173. data/test/unit/response_test.rb +14 -0
  174. data/test/unit/shipment_packer_test.rb +174 -0
  175. metadata +331 -35
  176. metadata.gz.sig +0 -0
  177. data/lib/vendor/quantified/MIT-LICENSE +0 -22
  178. data/lib/vendor/quantified/README.markdown +0 -49
  179. data/lib/vendor/quantified/Rakefile +0 -13
  180. data/lib/vendor/quantified/init.rb +0 -0
  181. data/lib/vendor/quantified/lib/quantified.rb +0 -6
  182. data/lib/vendor/quantified/lib/quantified/attribute.rb +0 -211
  183. data/lib/vendor/quantified/lib/quantified/length.rb +0 -20
  184. data/lib/vendor/quantified/lib/quantified/mass.rb +0 -19
  185. data/lib/vendor/quantified/test/length_test.rb +0 -94
  186. data/lib/vendor/quantified/test/mass_test.rb +0 -96
  187. data/lib/vendor/quantified/test/test_helper.rb +0 -19
@@ -0,0 +1,150 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v3:TrackReply xmlns:v3="http://fedex.com/ws/track/v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <v3:HighestSeverity>SUCCESS</v3:HighestSeverity>
4
+ <v3:Notifications>
5
+ <v3:Severity>SUCCESS</v3:Severity>
6
+ <v3:Source>trck</v3:Source>
7
+ <v3:Code>0</v3:Code>
8
+ <v3:Message>Request was successfully processed.</v3:Message>
9
+ <v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage>
10
+ </v3:Notifications>
11
+ <v3:TransactionDetail>
12
+ <v3:CustomerTransactionId>ActiveShipping</v3:CustomerTransactionId>
13
+ </v3:TransactionDetail>
14
+ <v3:Version>
15
+ <v3:ServiceId>trck</v3:ServiceId>
16
+ <v3:Major>3</v3:Major>
17
+ <v3:Intermediate>0</v3:Intermediate>
18
+ <v3:Minor>0</v3:Minor>
19
+ </v3:Version>
20
+ <v3:DuplicateWaybill>false</v3:DuplicateWaybill>
21
+ <v3:MoreData>false</v3:MoreData>
22
+ <v3:TrackDetails>
23
+ <v3:TrackingNumber>077973360403984</v3:TrackingNumber>
24
+ <v3:TrackingNumberUniqueIdentifier>120081203121125584000~077973360403984</v3:TrackingNumberUniqueIdentifier>
25
+ <v3:StatusCode>DL</v3:StatusCode>
26
+ <v3:StatusDescription>Delivered</v3:StatusDescription>
27
+ <v3:CarrierCode>FDXG</v3:CarrierCode>
28
+ <v3:OtherIdentifiers>
29
+ <v3:Value>355200</v3:Value>
30
+ <v3:Type>CUSTOMER_REFERENCE</v3:Type>
31
+ </v3:OtherIdentifiers>
32
+ <v3:OtherIdentifiers>
33
+ <v3:Value>355200</v3:Value>
34
+ <v3:Type>INVOICE</v3:Type>
35
+ </v3:OtherIdentifiers>
36
+ <v3:ServiceInfo>Ground-Domestic</v3:ServiceInfo>
37
+ <v3:ServiceType>FEDEX_GROUND</v3:ServiceType>
38
+ <v3:PackageWeight>
39
+ <v3:Units>LB</v3:Units>
40
+ <v3:Value>10.0</v3:Value>
41
+ </v3:PackageWeight>
42
+ <v3:Packaging>Package</v3:Packaging>
43
+ <v3:PackageSequenceNumber>1</v3:PackageSequenceNumber>
44
+ <v3:PackageCount>1</v3:PackageCount>
45
+ <v3:OriginLocationAddress>
46
+ <v3:City>NASHVILLE</v3:City>
47
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
48
+ <v3:CountryCode>US</v3:CountryCode>
49
+ <v3:Residential>false</v3:Residential>
50
+ </v3:OriginLocationAddress>
51
+ <v3:DestinationAddress>
52
+ <v3:City>Sacramento</v3:City>
53
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
54
+ <v3:CountryCode>US</v3:CountryCode>
55
+ <v3:Residential>false</v3:Residential>
56
+ </v3:DestinationAddress>
57
+ <v3:ActualDeliveryTimestamp>2008-12-08T07:43:37-08:00</v3:ActualDeliveryTimestamp>
58
+ <v3:ActualDeliveryAddress>
59
+ <v3:City>Sacramento</v3:City>
60
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
61
+ <v3:CountryCode>US</v3:CountryCode>
62
+ <v3:Residential>false</v3:Residential>
63
+ </v3:ActualDeliveryAddress>
64
+ <v3:DeliveryLocationType>OTHER</v3:DeliveryLocationType>
65
+ <v3:DeliverySignatureName>KKING</v3:DeliverySignatureName>
66
+ <v3:SignatureProofOfDeliveryAvailable>true</v3:SignatureProofOfDeliveryAvailable>
67
+ <v3:ProofOfDeliveryNotificationsAvailable>false</v3:ProofOfDeliveryNotificationsAvailable>
68
+ <v3:ExceptionNotificationsAvailable>false</v3:ExceptionNotificationsAvailable>
69
+ <v3:Events>
70
+ <v3:Timestamp>2008-12-08T07:43:37-08:00</v3:Timestamp>
71
+ <v3:EventType>DL</v3:EventType>
72
+ <v3:EventDescription>Delivered</v3:EventDescription>
73
+ <v3:Address>
74
+ <v3:City>Sacramento</v3:City>
75
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
76
+ <v3:PostalCode>95817</v3:PostalCode>
77
+ <v3:CountryCode>US</v3:CountryCode>
78
+ <v3:Residential>false</v3:Residential>
79
+ </v3:Address>
80
+ </v3:Events>
81
+ <v3:Events>
82
+ <v3:Timestamp>2008-12-08T05:00:00-08:00</v3:Timestamp>
83
+ <v3:EventType>OD</v3:EventType>
84
+ <v3:EventDescription>On FedEx vehicle for delivery</v3:EventDescription>
85
+ <v3:Address>
86
+ <v3:City>SACRAMENTO</v3:City>
87
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
88
+ <v3:PostalCode>95824</v3:PostalCode>
89
+ <v3:CountryCode>US</v3:CountryCode>
90
+ <v3:Residential>false</v3:Residential>
91
+ </v3:Address>
92
+ </v3:Events>
93
+ <v3:Events>
94
+ <v3:Timestamp>2008-12-07T10:48:00-08:00</v3:Timestamp>
95
+ <v3:EventType>AR</v3:EventType>
96
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
97
+ <v3:Address>
98
+ <v3:City>SACRAMENTO</v3:City>
99
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
100
+ <v3:PostalCode>95824</v3:PostalCode>
101
+ <v3:CountryCode>US</v3:CountryCode>
102
+ <v3:Residential>false</v3:Residential>
103
+ </v3:Address>
104
+ </v3:Events>
105
+ <v3:Events>
106
+ <v3:Timestamp>2008-12-04T05:58:46-06:00</v3:Timestamp>
107
+ <v3:EventType>DP</v3:EventType>
108
+ <v3:EventDescription>Departed FedEx location</v3:EventDescription>
109
+ <v3:Address>
110
+ <v3:City>NASHVILLE</v3:City>
111
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
112
+ <v3:PostalCode>37207</v3:PostalCode>
113
+ <v3:CountryCode>US</v3:CountryCode>
114
+ <v3:Residential>false</v3:Residential>
115
+ </v3:Address>
116
+ </v3:Events>
117
+ <v3:Events>
118
+ <v3:Timestamp>2008-12-03T18:22:00-06:00</v3:Timestamp>
119
+ <v3:EventType>AR</v3:EventType>
120
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
121
+ <v3:Address>
122
+ <v3:City>NASHVILLE</v3:City>
123
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
124
+ <v3:PostalCode>37207</v3:PostalCode>
125
+ <v3:CountryCode>US</v3:CountryCode>
126
+ <v3:Residential>false</v3:Residential>
127
+ </v3:Address>
128
+ </v3:Events>
129
+ <v3:Events>
130
+ <v3:Timestamp>2008-12-03T17:22:00-06:00</v3:Timestamp>
131
+ <v3:EventType>PU</v3:EventType>
132
+ <v3:EventDescription>Picked up</v3:EventDescription>
133
+ <v3:Address>
134
+ <v3:City>NASHVILLE</v3:City>
135
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
136
+ <v3:PostalCode>37207</v3:PostalCode>
137
+ <v3:CountryCode>US</v3:CountryCode>
138
+ <v3:Residential>false</v3:Residential>
139
+ </v3:Address>
140
+ </v3:Events>
141
+ <v3:Events>
142
+ <v3:Timestamp>2008-12-03T12:10:00-06:00</v3:Timestamp>
143
+ <v3:EventType>OC</v3:EventType>
144
+ <v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription>
145
+ <v3:Address>
146
+ <v3:Residential>false</v3:Residential>
147
+ </v3:Address>
148
+ </v3:Events>
149
+ </v3:TrackDetails>
150
+ </v3:TrackReply>
@@ -0,0 +1,95 @@
1
+ <?xml version="1.0"?>
2
+ <v3:TrackReply xmlns:v3="http://fedex.com/ws/track/v3">
3
+ <v3:HighestSeverity>SUCCESS</v3:HighestSeverity>
4
+ <v3:Notifications>
5
+ <v3:Severity>SUCCESS</v3:Severity>
6
+ <v3:Source>trck</v3:Source>
7
+ <v3:Code>0</v3:Code>
8
+ <v3:Message>Request was successfully processed.</v3:Message>
9
+ <v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage>
10
+ </v3:Notifications>
11
+ <v3:TransactionDetail>
12
+ <v3:CustomerTransactionId>ActiveShipping</v3:CustomerTransactionId>
13
+ </v3:TransactionDetail>
14
+ <v3:Version>
15
+ <v3:ServiceId>trck</v3:ServiceId>
16
+ <v3:Major>3</v3:Major>
17
+ <v3:Intermediate>0</v3:Intermediate>
18
+ <v3:Minor>0</v3:Minor>
19
+ </v3:Version>
20
+ <v3:DuplicateWaybill>false</v3:DuplicateWaybill>
21
+ <v3:MoreData>false</v3:MoreData>
22
+ <v3:TrackDetails>
23
+ <v3:Notification>
24
+ <v3:Severity>SUCCESS</v3:Severity>
25
+ <v3:Source>trck</v3:Source>
26
+ <v3:Code>0</v3:Code>
27
+ <v3:Message>Request was successfully processed.</v3:Message>
28
+ <v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage>
29
+ </v3:Notification>
30
+ <v3:TrackingNumber>1234567890111</v3:TrackingNumber>
31
+ <v3:TrackingNumberUniqueIdentifier>29402</v3:TrackingNumberUniqueIdentifier>
32
+ <v3:StatusCode>DP</v3:StatusCode>
33
+ <v3:StatusDescription>Departed FedEx location</v3:StatusDescription>
34
+ <v3:ServiceInfo>FedEx SmartPost</v3:ServiceInfo>
35
+ <v3:ServiceType>SMART_POST</v3:ServiceType>
36
+ <v3:PackageWeight>
37
+ <v3:Units>LB</v3:Units>
38
+ <v3:Value>0.3</v3:Value>
39
+ </v3:PackageWeight>
40
+ <v3:Packaging>Package</v3:Packaging>
41
+ <v3:PackagingType>YOUR_PACKAGING</v3:PackagingType>
42
+ <v3:PackageSequenceNumber>1</v3:PackageSequenceNumber>
43
+ <v3:PackageCount>1</v3:PackageCount>
44
+ <v3:ShipperAddress>
45
+ <v3:City>Wallingford</v3:City>
46
+ <v3:StateOrProvinceCode>CT</v3:StateOrProvinceCode>
47
+ <v3:CountryCode>US</v3:CountryCode>
48
+ <v3:Residential>false</v3:Residential>
49
+ </v3:ShipperAddress>
50
+ <v3:ShipTimestamp>2013-10-10T03:01:54+00:00</v3:ShipTimestamp>
51
+ <v3:DestinationAddress>
52
+ <v3:City>SAINT LOUIS</v3:City>
53
+ <v3:StateOrProvinceCode>MO</v3:StateOrProvinceCode>
54
+ <v3:CountryCode>US</v3:CountryCode>
55
+ <v3:Residential>false</v3:Residential>
56
+ </v3:DestinationAddress>
57
+ <v3:EstimatedDeliveryTimestamp>2013-10-15T00:00:00</v3:EstimatedDeliveryTimestamp>
58
+ <v3:SignatureProofOfDeliveryAvailable>false</v3:SignatureProofOfDeliveryAvailable>
59
+ <v3:ProofOfDeliveryNotificationsAvailable>true</v3:ProofOfDeliveryNotificationsAvailable>
60
+ <v3:Events>
61
+ <v3:Timestamp>2013-10-10T04:54:01-04:00</v3:Timestamp>
62
+ <v3:EventType>DP</v3:EventType>
63
+ <v3:EventDescription>Departed FedEx location</v3:EventDescription>
64
+ <v3:Address>
65
+ <v3:City>FEDEX SMARTPOST NORTHBOROUGH</v3:City>
66
+ <v3:StateOrProvinceCode>MA</v3:StateOrProvinceCode>
67
+ <v3:PostalCode>01532</v3:PostalCode>
68
+ <v3:CountryCode>US</v3:CountryCode>
69
+ <v3:Residential>false</v3:Residential>
70
+ </v3:Address>
71
+ </v3:Events>
72
+ <v3:Events>
73
+ <v3:Timestamp>2013-10-10T04:32:31-04:00</v3:Timestamp>
74
+ <v3:EventType>AR</v3:EventType>
75
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
76
+ <v3:Address>
77
+ <v3:City>FEDEX SMARTPOST NORTHBOROUGH</v3:City>
78
+ <v3:StateOrProvinceCode>MA</v3:StateOrProvinceCode>
79
+ <v3:PostalCode>01532</v3:PostalCode>
80
+ <v3:CountryCode>US</v3:CountryCode>
81
+ <v3:Residential>false</v3:Residential>
82
+ </v3:Address>
83
+ </v3:Events>
84
+ <v3:Events>
85
+ <v3:Timestamp>2013-10-10T03:01:54+00:00</v3:Timestamp>
86
+ <v3:EventType>OC</v3:EventType>
87
+ <v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription>
88
+ <v3:Address>
89
+ <v3:PostalCode>064506643</v3:PostalCode>
90
+ <v3:CountryCode>US</v3:CountryCode>
91
+ <v3:Residential>false</v3:Residential>
92
+ </v3:Address>
93
+ </v3:Events>
94
+ </v3:TrackDetails>
95
+ </v3:TrackReply>
@@ -0,0 +1,71 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v3:TrackReply xmlns:v3="http://fedex.com/ws/track/v3">
3
+ <v3:HighestSeverity>SUCCESS</v3:HighestSeverity>
4
+ <v3:Notifications>
5
+ <v3:Severity>SUCCESS</v3:Severity>
6
+ <v3:Source>trck</v3:Source>
7
+ <v3:Code>0</v3:Code>
8
+ <v3:Message>Request was successfully processed.</v3:Message>
9
+ <v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage>
10
+ </v3:Notifications>
11
+ <v3:TransactionDetail>
12
+ <v3:CustomerTransactionId>ActiveShipping</v3:CustomerTransactionId>
13
+ </v3:TransactionDetail>
14
+ <v3:Version>
15
+ <v3:ServiceId>trck</v3:ServiceId>
16
+ <v3:Major>3</v3:Major>
17
+ <v3:Intermediate>0</v3:Intermediate>
18
+ <v3:Minor>0</v3:Minor>
19
+ </v3:Version>
20
+ <v3:DuplicateWaybill>false</v3:DuplicateWaybill>
21
+ <v3:MoreData>false</v3:MoreData>
22
+ <v3:TrackDetails>
23
+ <v3:Notification>
24
+ <v3:Severity>SUCCESS</v3:Severity>
25
+ <v3:Source>trck</v3:Source>
26
+ <v3:Code>0</v3:Code>
27
+ <v3:Message>Request was successfully processed.</v3:Message>
28
+ <v3:LocalizedMessage>Request was successfully processed.</v3:LocalizedMessage>
29
+ </v3:Notification>
30
+ <v3:TrackingNumber>9274899998944505028386</v3:TrackingNumber>
31
+ <v3:TrackingNumberUniqueIdentifier>20131009030300~74899998944505028386~FXSP</v3:TrackingNumberUniqueIdentifier>
32
+ <v3:StatusCode>OC</v3:StatusCode>
33
+ <v3:StatusDescription>Shipment information sent to FedEx</v3:StatusDescription>
34
+ <v3:ServiceCommitMessage>Please check back later for shipment status or subscribe for e-mail notifications</v3:ServiceCommitMessage>
35
+ <v3:ServiceInfo>FedEx SmartPost</v3:ServiceInfo>
36
+ <v3:ServiceType>SMART_POST</v3:ServiceType>
37
+ <v3:PackageWeight>
38
+ <v3:Units>LB</v3:Units>
39
+ <v3:Value>0.9</v3:Value>
40
+ </v3:PackageWeight>
41
+ <v3:Packaging>Package</v3:Packaging>
42
+ <v3:PackagingType>YOUR_PACKAGING</v3:PackagingType>
43
+ <v3:PackageSequenceNumber>1</v3:PackageSequenceNumber>
44
+ <v3:PackageCount>1</v3:PackageCount>
45
+ <v3:ShipperAddress>
46
+ <v3:City>Wallingford</v3:City>
47
+ <v3:StateOrProvinceCode>CT</v3:StateOrProvinceCode>
48
+ <v3:CountryCode>US</v3:CountryCode>
49
+ <v3:Residential>false</v3:Residential>
50
+ </v3:ShipperAddress>
51
+ <v3:ShipTimestamp>2013-10-09T03:02:59+00:00</v3:ShipTimestamp>
52
+ <v3:DestinationAddress>
53
+ <v3:City>HAMPSTEAD</v3:City>
54
+ <v3:StateOrProvinceCode>NC</v3:StateOrProvinceCode>
55
+ <v3:CountryCode>US</v3:CountryCode>
56
+ <v3:Residential>false</v3:Residential>
57
+ </v3:DestinationAddress>
58
+ <v3:SignatureProofOfDeliveryAvailable>false</v3:SignatureProofOfDeliveryAvailable>
59
+ <v3:ProofOfDeliveryNotificationsAvailable>true</v3:ProofOfDeliveryNotificationsAvailable>
60
+ <v3:Events>
61
+ <v3:Timestamp>2013-10-09T03:02:59+00:00</v3:Timestamp>
62
+ <v3:EventType>OC</v3:EventType>
63
+ <v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription>
64
+ <v3:Address>
65
+ <v3:PostalCode>064506643</v3:PostalCode>
66
+ <v3:CountryCode>US</v3:CountryCode>
67
+ <v3:Residential>false</v3:Residential>
68
+ </v3:Address>
69
+ </v3:Events>
70
+ </v3:TrackDetails>
71
+ </v3:TrackReply>
@@ -0,0 +1,3 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v6:RandomElement xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:v6="http://fedex.com/ws/rate/v6">
3
+ </v6:RandomElement>
@@ -0,0 +1,3 @@
1
+ <HTML>
2
+ <BODY>
3
+ <Response><ErrorCode>5</ErrorCode><ErrorText>State_Province element is not valid</ErrorText></Response>
@@ -0,0 +1,3 @@
1
+ <HTML>
2
+ <BODY>
3
+ <Response><ErrorCode>400</ErrorCode><ErrorText>No items on a scale</ErrorText></Response>
@@ -0,0 +1,3 @@
1
+ <HTML>
2
+ <BODY>
3
+ <Response><ErrorCode>0</ErrorCode><ErrorText>success</ErrorText><Option><Description>USPS Priority Mail</Description><DeliveryTime>1-3 business days</DeliveryTime><Price>8.00</Price></Option><Option><Description>UPS Ground</Description><DeliveryTime>1-5 business days</DeliveryTime><Price>12.34</Price></Option><Option><Description>UPS 2nd Day Air</Description><DeliveryTime>2 business days</DeliveryTime><Price>21.86</Price></Option><Option><Description>UPS Next Day Air Saver</Description><DeliveryTime>1 business day</DeliveryTime><Price>36.05</Price></Option></Response>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0"?>
2
+ <HTML>
3
+ <BODY>
4
+ <Response>
5
+ <ErrorCode>100</ErrorCode>
6
+ <ErrorText>Request contains invalid XML syntax</ErrorText>
7
+ </Response>
8
+ </BODY>
9
+ </HTML>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0"?>
2
+ <RateResponse>
3
+ <Status>OK</Status>
4
+ <Order sequence="1">
5
+ <Quotes>
6
+ <Quote method="INTL">
7
+ <Warehouse>UK</Warehouse>
8
+ <Service>UPS Standard</Service>
9
+ <Cost currency="USD">28.06</Cost>
10
+ <DeliveryEstimate>
11
+ <Minimum units="days">1</Minimum>
12
+ <Maximum units="days">5</Maximum>
13
+ </DeliveryEstimate>
14
+ </Quote>
15
+ </Quotes>
16
+ </Order>
17
+ </RateResponse>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE RateResponse SYSTEM "http://www.shipwire.com/exec/download/RateResponse.dtd">
3
+ <RateResponse>
4
+ <Status>OK</Status>
5
+ <Order sequence="1">
6
+ <Quotes>
7
+ <Quote method="GD">
8
+ <Warehouse>Reno (Pick/Pack Saver)</Warehouse>
9
+ <Service>FESCO Ground</Service>
10
+ <Cost currency="USD">7.73</Cost>
11
+ <DeliveryEstimate>
12
+ <Minimum units="days">1</Minimum>
13
+ <Maximum units="days">5</Maximum>
14
+ </DeliveryEstimate>
15
+ </Quote>
16
+ </Quotes>
17
+ </Order>
18
+ </RateResponse>
@@ -0,0 +1,7 @@
1
+ <RateResponse>
2
+ <Status>OK</Status>
3
+ <Order sequence="1">
4
+ <Quotes>
5
+ </Quotes>
6
+ </Order>
7
+ </RateResponse>
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE RateResponse SYSTEM "http://www.shipwire.com/exec/download/RateResponse.dtd">
3
+ <RateResponse>
4
+ <Status>OK</Status>
5
+ <Order sequence="1">
6
+ <Quotes>
7
+ <Quote method="GD">
8
+ <Warehouse>Reno (Pick/Pack Saver)</Warehouse>
9
+ <Service>UPS Ground</Service>
10
+ <Cost currency="USD">7.73</Cost>
11
+ <DeliveryEstimate>
12
+ <Minimum units="days">1</Minimum>
13
+ <Maximum units="days">5</Maximum>
14
+ </DeliveryEstimate>
15
+ </Quote>
16
+ <Quote method="2D">
17
+ <Warehouse>Reno (Pick/Pack Saver)</Warehouse>
18
+ <Service>UPS Second Day Air</Service>
19
+ <Cost currency="USD">13.64</Cost>
20
+ <DeliveryEstimate>
21
+ <Minimum units="days">2</Minimum>
22
+ <Maximum units="days">2</Maximum>
23
+ </DeliveryEstimate>
24
+ </Quote>
25
+ <Quote method="1D">
26
+ <Warehouse>Reno (Pick/Pack Saver)</Warehouse>
27
+ <Service>USPS Express Mail</Service>
28
+ <Cost currency="USD">25.25</Cost>
29
+ <DeliveryEstimate>
30
+ <Minimum units="days">1</Minimum>
31
+ <Maximum units="days">1</Maximum>
32
+ </DeliveryEstimate>
33
+ </Quote>
34
+ </Quotes>
35
+ </Order>
36
+ </RateResponse>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE RateResponse SYSTEM "http://www.shipwire.com/exec/download/RateResponse.dtd">
3
+ <RateResponse>
4
+ <Status>OK</Status>
5
+ <Order sequence="1">
6
+ <Quotes>
7
+ <Quote method="GD">
8
+ <Warehouse>Reno (Pick/Pack Saver)</Warehouse>
9
+ <Service>UPS Ground</Service>
10
+ <Cost currency="USD">7.73</Cost>
11
+ </Quote>
12
+ </Quotes>
13
+ </Order>
14
+ </RateResponse>