reactive_shipping 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (247) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.travis.yml +33 -0
  4. data/.yardopts +13 -0
  5. data/CHANGELOG.md +225 -0
  6. data/CONTRIBUTING.md +23 -0
  7. data/Gemfile +3 -0
  8. data/MIT-LICENSE +21 -0
  9. data/README.md +158 -0
  10. data/Rakefile +35 -0
  11. data/dev.yml +17 -0
  12. data/gemfiles/activesupport42.gemfile +5 -0
  13. data/gemfiles/activesupport50.gemfile +6 -0
  14. data/gemfiles/activesupport51.gemfile +5 -0
  15. data/gemfiles/activesupport52.gemfile +5 -0
  16. data/gemfiles/activesupport_master.gemfile +5 -0
  17. data/lib/certs/eParcel.dtd +111 -0
  18. data/lib/reactive_shipping.rb +26 -0
  19. data/lib/reactive_shipping/address_validation_response.rb +30 -0
  20. data/lib/reactive_shipping/carrier.rb +184 -0
  21. data/lib/reactive_shipping/carriers.rb +35 -0
  22. data/lib/reactive_shipping/carriers/australia_post.rb +248 -0
  23. data/lib/reactive_shipping/carriers/benchmark_carrier.rb +31 -0
  24. data/lib/reactive_shipping/carriers/bogus_carrier.rb +12 -0
  25. data/lib/reactive_shipping/carriers/canada_post.rb +263 -0
  26. data/lib/reactive_shipping/carriers/canada_post_pws.rb +908 -0
  27. data/lib/reactive_shipping/carriers/fedex.rb +797 -0
  28. data/lib/reactive_shipping/carriers/kunaki.rb +155 -0
  29. data/lib/reactive_shipping/carriers/new_zealand_post.rb +260 -0
  30. data/lib/reactive_shipping/carriers/shipwire.rb +178 -0
  31. data/lib/reactive_shipping/carriers/stamps.rb +860 -0
  32. data/lib/reactive_shipping/carriers/ups.rb +1060 -0
  33. data/lib/reactive_shipping/carriers/usps.rb +708 -0
  34. data/lib/reactive_shipping/carriers/usps_returns.rb +86 -0
  35. data/lib/reactive_shipping/delivery_date_estimate.rb +20 -0
  36. data/lib/reactive_shipping/delivery_date_estimates_response.rb +11 -0
  37. data/lib/reactive_shipping/errors.rb +35 -0
  38. data/lib/reactive_shipping/external_return_label_request.rb +417 -0
  39. data/lib/reactive_shipping/external_return_label_response.rb +26 -0
  40. data/lib/reactive_shipping/label.rb +10 -0
  41. data/lib/reactive_shipping/label_response.rb +10 -0
  42. data/lib/reactive_shipping/location.rb +166 -0
  43. data/lib/reactive_shipping/package.rb +165 -0
  44. data/lib/reactive_shipping/package_item.rb +60 -0
  45. data/lib/reactive_shipping/rate_estimate.rb +197 -0
  46. data/lib/reactive_shipping/rate_response.rb +33 -0
  47. data/lib/reactive_shipping/response.rb +44 -0
  48. data/lib/reactive_shipping/shipment_event.rb +22 -0
  49. data/lib/reactive_shipping/shipment_packer.rb +108 -0
  50. data/lib/reactive_shipping/shipping_response.rb +34 -0
  51. data/lib/reactive_shipping/tracking_response.rb +120 -0
  52. data/lib/reactive_shipping/version.rb +3 -0
  53. data/reactive_shipping.gemspec +38 -0
  54. data/shipit.rubygems.yml +1 -0
  55. data/test/console.rb +39 -0
  56. data/test/credentials.yml +76 -0
  57. data/test/fixtures/files/label1.pdf +0 -0
  58. data/test/fixtures/files/ups-shipping-label.gif +0 -0
  59. data/test/fixtures/json/australia_post/calculate_domestic.json +13 -0
  60. data/test/fixtures/json/australia_post/calculate_domestic_2.json +19 -0
  61. data/test/fixtures/json/australia_post/calculate_international.json +12 -0
  62. data/test/fixtures/json/australia_post/calculate_international_2.json +15 -0
  63. data/test/fixtures/json/australia_post/error_message.json +5 -0
  64. data/test/fixtures/json/australia_post/service_domestic.json +117 -0
  65. data/test/fixtures/json/australia_post/service_domestic_2.json +117 -0
  66. data/test/fixtures/json/australia_post/service_international.json +76 -0
  67. data/test/fixtures/json/australia_post/service_international_2.json +59 -0
  68. data/test/fixtures/json/newzealandpost/domestic_book.json +1 -0
  69. data/test/fixtures/json/newzealandpost/domestic_default.json +1 -0
  70. data/test/fixtures/json/newzealandpost/domestic_error.json +1 -0
  71. data/test/fixtures/json/newzealandpost/domestic_poster.json +1 -0
  72. data/test/fixtures/json/newzealandpost/domestic_small_half_pound.json +1 -0
  73. data/test/fixtures/json/newzealandpost/international_book.json +1 -0
  74. data/test/fixtures/json/newzealandpost/international_new_zealand_wii.json +1 -0
  75. data/test/fixtures/json/newzealandpost/international_small_half_pound.json +1 -0
  76. data/test/fixtures/json/newzealandpost/international_wii.json +1 -0
  77. data/test/fixtures/xml/canadapost/example_request.xml +25 -0
  78. data/test/fixtures/xml/canadapost/example_response.xml +130 -0
  79. data/test/fixtures/xml/canadapost/example_response_error.xml +16 -0
  80. data/test/fixtures/xml/canadapost/example_response_french.xml +122 -0
  81. data/test/fixtures/xml/canadapost/example_response_with_nil_value.xml +164 -0
  82. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml +155 -0
  83. data/test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml +274 -0
  84. data/test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml +130 -0
  85. data/test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml +112 -0
  86. data/test/fixtures/xml/canadapost_pws/merchant_details_error.xml +7 -0
  87. data/test/fixtures/xml/canadapost_pws/merchant_details_response.xml +7 -0
  88. data/test/fixtures/xml/canadapost_pws/option_response.xml +13 -0
  89. data/test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml +7 -0
  90. data/test/fixtures/xml/canadapost_pws/rates_info.xml +190 -0
  91. data/test/fixtures/xml/canadapost_pws/rates_info_error.xml +7 -0
  92. data/test/fixtures/xml/canadapost_pws/receipt_response.xml +42 -0
  93. data/test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml +36 -0
  94. data/test/fixtures/xml/canadapost_pws/register_token_error.xml +7 -0
  95. data/test/fixtures/xml/canadapost_pws/register_token_response.xml +3 -0
  96. data/test/fixtures/xml/canadapost_pws/service_options_response.xml +42 -0
  97. data/test/fixtures/xml/canadapost_pws/services_error.xml +6 -0
  98. data/test/fixtures/xml/canadapost_pws/services_response.xml +32 -0
  99. data/test/fixtures/xml/canadapost_pws/shipment_domestic.xml +69 -0
  100. data/test/fixtures/xml/canadapost_pws/shipment_response.xml +20 -0
  101. data/test/fixtures/xml/canadapost_pws/shipment_us.xml +69 -0
  102. data/test/fixtures/xml/canadapost_pws/tracking_details_en.xml +152 -0
  103. data/test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml +7 -0
  104. data/test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml +116 -0
  105. data/test/fixtures/xml/canadapost_pws/tracking_details_fr.xml +156 -0
  106. data/test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml +40 -0
  107. data/test/fixtures/xml/fedex/create_shipment_response.xml +2 -0
  108. data/test/fixtures/xml/fedex/freight_rate_request.xml +82 -0
  109. data/test/fixtures/xml/fedex/freight_rate_response.xml +506 -0
  110. data/test/fixtures/xml/fedex/invalid_fedex_reply.xml +27 -0
  111. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml +79 -0
  112. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_no_saturday_rate_request.xml +79 -0
  113. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml +80 -0
  114. data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml +214 -0
  115. data/test/fixtures/xml/fedex/raterequest_reply.xml +213 -0
  116. data/test/fixtures/xml/fedex/raterequest_response_with_ground_home_delivery.xml +206 -0
  117. data/test/fixtures/xml/fedex/reply_without_notifications.xml +185 -0
  118. data/test/fixtures/xml/fedex/tracking_request.xml +29 -0
  119. data/test/fixtures/xml/fedex/tracking_response_bad_tracking_number.xml +20 -0
  120. data/test/fixtures/xml/fedex/tracking_response_delivered_at_door.xml +254 -0
  121. data/test/fixtures/xml/fedex/tracking_response_delivered_at_facility.xml +403 -0
  122. data/test/fixtures/xml/fedex/tracking_response_delivered_with_signature.xml +269 -0
  123. data/test/fixtures/xml/fedex/tracking_response_empty_status_detail.xml +84 -0
  124. data/test/fixtures/xml/fedex/tracking_response_failure_code_9045.xml +52 -0
  125. data/test/fixtures/xml/fedex/tracking_response_failure_code_9080.xml +51 -0
  126. data/test/fixtures/xml/fedex/tracking_response_in_transit.xml +127 -0
  127. data/test/fixtures/xml/fedex/tracking_response_invalid_tracking_number.xml +52 -0
  128. data/test/fixtures/xml/fedex/tracking_response_missing_status_code.xml +89 -0
  129. data/test/fixtures/xml/fedex/tracking_response_multiple_results.xml +100 -0
  130. data/test/fixtures/xml/fedex/tracking_response_not_found.xml +52 -0
  131. data/test/fixtures/xml/fedex/tracking_response_shipment_exception.xml +209 -0
  132. data/test/fixtures/xml/fedex/tracking_response_unable_to_process.xml +32 -0
  133. data/test/fixtures/xml/fedex/tracking_response_with_blank_state.xml +107 -0
  134. data/test/fixtures/xml/fedex/unknown_fedex_document_reply.xml +3 -0
  135. data/test/fixtures/xml/kunaki/invalid_state_response.xml +3 -0
  136. data/test/fixtures/xml/kunaki/no_valid_items_response.xml +3 -0
  137. data/test/fixtures/xml/kunaki/successful_rates_response.xml +3 -0
  138. data/test/fixtures/xml/kunaki/unsuccessful_rates_response.xml +9 -0
  139. data/test/fixtures/xml/shipwire/international_rates_response.xml +17 -0
  140. data/test/fixtures/xml/shipwire/new_carrier_rate_response.xml +18 -0
  141. data/test/fixtures/xml/shipwire/no_rates_response.xml +7 -0
  142. data/test/fixtures/xml/shipwire/rates_response.xml +36 -0
  143. data/test/fixtures/xml/shipwire/rates_response_no_estimate.xml +14 -0
  144. data/test/fixtures/xml/stamps/authenticate_user_request.xml +15 -0
  145. data/test/fixtures/xml/stamps/authenticate_user_response.xml +10 -0
  146. data/test/fixtures/xml/stamps/cleanse_address_request.xml +19 -0
  147. data/test/fixtures/xml/stamps/cleanse_address_response.xml +27 -0
  148. data/test/fixtures/xml/stamps/create_indicium_request.xml +69 -0
  149. data/test/fixtures/xml/stamps/create_indicium_response.xml +40 -0
  150. data/test/fixtures/xml/stamps/expired_authenticator_response.xml +15 -0
  151. data/test/fixtures/xml/stamps/get_account_info_request.xml +11 -0
  152. data/test/fixtures/xml/stamps/get_account_info_response.xml +36 -0
  153. data/test/fixtures/xml/stamps/get_purchase_status_request.xml +12 -0
  154. data/test/fixtures/xml/stamps/get_purchase_status_response.xml +16 -0
  155. data/test/fixtures/xml/stamps/get_rates_request.xml +19 -0
  156. data/test/fixtures/xml/stamps/get_rates_response.xml +351 -0
  157. data/test/fixtures/xml/stamps/purchase_postage_request.xml +13 -0
  158. data/test/fixtures/xml/stamps/purchase_postage_response.xml +17 -0
  159. data/test/fixtures/xml/stamps/track_shipment_request.xml +12 -0
  160. data/test/fixtures/xml/stamps/track_shipment_response.xml +45 -0
  161. data/test/fixtures/xml/ups/access_request.xml +6 -0
  162. data/test/fixtures/xml/ups/delivered_shipment_with_refund.xml +290 -0
  163. data/test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml +62 -0
  164. data/test/fixtures/xml/ups/delivery_dates_response.xml +140 -0
  165. data/test/fixtures/xml/ups/example_tracking_response.xml +53 -0
  166. data/test/fixtures/xml/ups/in_transit_shipment.xml +183 -0
  167. data/test/fixtures/xml/ups/out_for_delivery_shipment.xml +165 -0
  168. data/test/fixtures/xml/ups/package_exceeds_maximum_length.xml +12 -0
  169. data/test/fixtures/xml/ups/rate_single_service.xml +54 -0
  170. data/test/fixtures/xml/ups/rescheduled_shipment.xml +204 -0
  171. data/test/fixtures/xml/ups/shipment_accept_response.xml +42 -0
  172. data/test/fixtures/xml/ups/shipment_confirm_response.xml +33 -0
  173. data/test/fixtures/xml/ups/shipment_from_tiger_direct.xml +222 -0
  174. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +290 -0
  175. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml +289 -0
  176. data/test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml +311 -0
  177. data/test/fixtures/xml/ups/tracking_request.xml +9 -0
  178. data/test/fixtures/xml/ups/triple_accept_response.xml +72 -0
  179. data/test/fixtures/xml/ups/triple_confirm_response.xml +32 -0
  180. data/test/fixtures/xml/ups/void_shipment_response.xml +11 -0
  181. data/test/fixtures/xml/usps/api_error_rate_response.xml +53 -0
  182. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml +2 -0
  183. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml +258 -0
  184. data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml +108 -0
  185. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml +84 -0
  186. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml +212 -0
  187. data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml +230 -0
  188. data/test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml +12 -0
  189. data/test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml +16 -0
  190. data/test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml +12 -0
  191. data/test/fixtures/xml/usps/invalid_xml_response.xml +10 -0
  192. data/test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml +2 -0
  193. data/test/fixtures/xml/usps/tracking_request.xml +10 -0
  194. data/test/fixtures/xml/usps/tracking_request_batch.xml +12 -0
  195. data/test/fixtures/xml/usps/tracking_response.xml +162 -0
  196. data/test/fixtures/xml/usps/tracking_response_alt.xml +53 -0
  197. data/test/fixtures/xml/usps/tracking_response_batch.xml +231 -0
  198. data/test/fixtures/xml/usps/tracking_response_failure.xml +11 -0
  199. data/test/fixtures/xml/usps/tracking_response_not_available.xml +12 -0
  200. data/test/fixtures/xml/usps/tracking_response_test_error.xml +8 -0
  201. data/test/fixtures/xml/usps/us_rate_request.xml +18 -0
  202. data/test/fixtures/xml/usps/us_rate_request_large.xml +18 -0
  203. data/test/fixtures/xml/usps/world_rate_request_only_country.xml +22 -0
  204. data/test/fixtures/xml/usps/world_rate_request_with_value.xml +24 -0
  205. data/test/fixtures/xml/usps/world_rate_request_without_value.xml +24 -0
  206. data/test/fixtures/xml/usps_returns/external_return_label_response.xml +2 -0
  207. data/test/fixtures/xml/usps_returns/external_return_label_response_failure.xml +10 -0
  208. data/test/remote/australia_post_test.rb +140 -0
  209. data/test/remote/canada_post_pws_platform_test.rb +259 -0
  210. data/test/remote/canada_post_pws_test.rb +169 -0
  211. data/test/remote/canada_post_test.rb +55 -0
  212. data/test/remote/fedex_test.rb +400 -0
  213. data/test/remote/kunaki_test.rb +37 -0
  214. data/test/remote/new_zealand_post_test.rb +149 -0
  215. data/test/remote/shipwire_test.rb +84 -0
  216. data/test/remote/stamps_test.rb +396 -0
  217. data/test/remote/usps_returns_test.rb +72 -0
  218. data/test/remote/usps_test.rb +243 -0
  219. data/test/test_helper.rb +296 -0
  220. data/test/unit/carrier_test.rb +130 -0
  221. data/test/unit/carriers/australia_post_test.rb +181 -0
  222. data/test/unit/carriers/benchmark_test.rb +18 -0
  223. data/test/unit/carriers/canada_post_pws_rating_test.rb +379 -0
  224. data/test/unit/carriers/canada_post_pws_register_test.rb +76 -0
  225. data/test/unit/carriers/canada_post_pws_shipping_test.rb +258 -0
  226. data/test/unit/carriers/canada_post_pws_test.rb +59 -0
  227. data/test/unit/carriers/canada_post_pws_tracking_test.rb +154 -0
  228. data/test/unit/carriers/canada_post_test.rb +148 -0
  229. data/test/unit/carriers/fedex_test.rb +693 -0
  230. data/test/unit/carriers/kunaki_test.rb +56 -0
  231. data/test/unit/carriers/new_zealand_post_test.rb +177 -0
  232. data/test/unit/carriers/shipwire_test.rb +188 -0
  233. data/test/unit/carriers/stamps_test.rb +245 -0
  234. data/test/unit/carriers/ups_test.rb +580 -0
  235. data/test/unit/carriers/usps_returns_test.rb +45 -0
  236. data/test/unit/carriers/usps_test.rb +633 -0
  237. data/test/unit/carriers_test.rb +16 -0
  238. data/test/unit/external_return_label_request_test.rb +258 -0
  239. data/test/unit/location_test.rb +234 -0
  240. data/test/unit/package_item_test.rb +232 -0
  241. data/test/unit/package_test.rb +404 -0
  242. data/test/unit/rate_estimate_test.rb +93 -0
  243. data/test/unit/response_test.rb +38 -0
  244. data/test/unit/shipment_event_test.rb +20 -0
  245. data/test/unit/shipment_packer_test.rb +212 -0
  246. data/test/unit/tracking_response_test.rb +41 -0
  247. metadata +684 -0
@@ -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,53 @@
1
+ <?xml version="1.0"?>
2
+ <TrackResponse>
3
+ <Response>
4
+ <TransactionReference>
5
+ <CustomerContext>
6
+ <InternalKey>guidlikesubstance</InternalKey>
7
+ </CustomerContext>
8
+ <XpciVersion>1.0</XpciVersion>
9
+ </TransactionReference>
10
+ <ResponseStatusCode>1</ResponseStatusCode>
11
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
12
+ </Response>
13
+ <Shipment>
14
+ <Shipper>
15
+ <ShipperNumber>123X67</ShipperNumber>
16
+ </Shipper>
17
+ <ShipTo>
18
+ <Address>
19
+ <City>Timonium</City>
20
+ <StateProvinceCode>MD</StateProvinceCode>
21
+ <CountryCode>US</CountryCode>
22
+ </Address>
23
+ </ShipTo>
24
+ <Service>
25
+ <Code>03</Code>
26
+ <Description>Ground</Description>
27
+ </Service>
28
+ <Package>
29
+ <TrackingNumber>1Z9999999999999999</TrackingNumber>
30
+ <Activity>
31
+ <ActivityLocation>
32
+ <Address>
33
+ <City>Timonium</City>
34
+ <StateProvinceCode>MD</StateProvinceCode>
35
+ <CountryCode>US</CountryCode>
36
+ </Address>
37
+ <Code>DL</Code>
38
+ <Description>Delivered</Description>
39
+ </ActivityLocation>
40
+ <Status>
41
+ <StatusType>
42
+ <Code>XX</Code>
43
+ <Description>Status XX</Description>
44
+ </StatusType>
45
+ <StatusCode>
46
+ <Code>YY</Code>
47
+ <Description>Code YY</Description>
48
+ </StatusCode>
49
+ </Status>
50
+ </Activity>
51
+ </Package>
52
+ </Shipment>
53
+ </TrackResponse>
@@ -0,0 +1,183 @@
1
+ <?xml version="1.0"?>
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>CYPRESS</City>
21
+ <StateProvinceCode>TX</StateProvinceCode>
22
+ <PostalCode>774332681</PostalCode>
23
+ <CountryCode>US</CountryCode>
24
+ </Address>
25
+ </ShipTo>
26
+ <ShipmentWeight>
27
+ <UnitOfMeasurement>
28
+ <Code>LBS</Code>
29
+ </UnitOfMeasurement>
30
+ <Weight>5.40</Weight>
31
+ </ShipmentWeight>
32
+ <Service>
33
+ <Code>002</Code>
34
+ <Description>2ND DAY AIR</Description>
35
+ </Service>
36
+ <ReferenceNumber>
37
+ <Code>01</Code>
38
+ <Value>62093047</Value>
39
+ </ReferenceNumber>
40
+ <ShipmentIdentificationNumber>1Z4F940A0266088694</ShipmentIdentificationNumber>
41
+ <PickupDate>20110822</PickupDate>
42
+ <ScheduledDeliveryDate>20110824</ScheduledDeliveryDate>
43
+ <Package>
44
+ <TrackingNumber>1Z4F940A0266088694</TrackingNumber>
45
+ <Activity>
46
+ <ActivityLocation>
47
+ <Address>
48
+ <City>LOUISVILLE</City>
49
+ <StateProvinceCode>KY</StateProvinceCode>
50
+ <CountryCode>US</CountryCode>
51
+ </Address>
52
+ </ActivityLocation>
53
+ <Status>
54
+ <StatusType>
55
+ <Code>I</Code>
56
+ <Description>ARRIVAL SCAN</Description>
57
+ </StatusType>
58
+ <StatusCode>
59
+ <Code>AR</Code>
60
+ </StatusCode>
61
+ </Status>
62
+ <Date>20110823</Date>
63
+ <Time>063800</Time>
64
+ </Activity>
65
+ <Activity>
66
+ <ActivityLocation>
67
+ <Address>
68
+ <City>SHARONVILLE</City>
69
+ <StateProvinceCode>OH</StateProvinceCode>
70
+ <CountryCode>US</CountryCode>
71
+ </Address>
72
+ </ActivityLocation>
73
+ <Status>
74
+ <StatusType>
75
+ <Code>I</Code>
76
+ <Description>DEPARTURE SCAN</Description>
77
+ </StatusType>
78
+ <StatusCode>
79
+ <Code>DP</Code>
80
+ </StatusCode>
81
+ </Status>
82
+ <Date>20110823</Date>
83
+ <Time>041500</Time>
84
+ </Activity>
85
+ <Activity>
86
+ <ActivityLocation>
87
+ <Address>
88
+ <City>SHARONVILLE</City>
89
+ <StateProvinceCode>OH</StateProvinceCode>
90
+ <CountryCode>US</CountryCode>
91
+ </Address>
92
+ </ActivityLocation>
93
+ <Status>
94
+ <StatusType>
95
+ <Code>I</Code>
96
+ <Description>ARRIVAL SCAN</Description>
97
+ </StatusType>
98
+ <StatusCode>
99
+ <Code>AR</Code>
100
+ </StatusCode>
101
+ </Status>
102
+ <Date>20110823</Date>
103
+ <Time>005700</Time>
104
+ </Activity>
105
+ <Activity>
106
+ <ActivityLocation>
107
+ <Address>
108
+ <City>CINCINNATI</City>
109
+ <StateProvinceCode>OH</StateProvinceCode>
110
+ <CountryCode>US</CountryCode>
111
+ </Address>
112
+ </ActivityLocation>
113
+ <Status>
114
+ <StatusType>
115
+ <Code>I</Code>
116
+ <Description>DEPARTURE SCAN</Description>
117
+ </StatusType>
118
+ <StatusCode>
119
+ <Code>DP</Code>
120
+ </StatusCode>
121
+ </Status>
122
+ <Date>20110823</Date>
123
+ <Time>003200</Time>
124
+ </Activity>
125
+ <Activity>
126
+ <ActivityLocation>
127
+ <Address>
128
+ <City>CINCINNATI</City>
129
+ <StateProvinceCode>OH</StateProvinceCode>
130
+ <CountryCode>US</CountryCode>
131
+ </Address>
132
+ </ActivityLocation>
133
+ <Status>
134
+ <StatusType>
135
+ <Code>I</Code>
136
+ <Description>ORIGIN SCAN</Description>
137
+ </StatusType>
138
+ <StatusCode>
139
+ <Code>OR</Code>
140
+ </StatusCode>
141
+ </Status>
142
+ <Date>20110822</Date>
143
+ <Time>190100</Time>
144
+ </Activity>
145
+ <Activity>
146
+ <ActivityLocation>
147
+ <Address>
148
+ <CountryCode>US</CountryCode>
149
+ </Address>
150
+ </ActivityLocation>
151
+ <Status>
152
+ <StatusType>
153
+ <Code>M</Code>
154
+ <Description>BILLING INFORMATION RECEIVED</Description>
155
+ </StatusType>
156
+ <StatusCode>
157
+ <Code>MP</Code>
158
+ </StatusCode>
159
+ </Status>
160
+ <Date>20110822</Date>
161
+ <Time>172303</Time>
162
+ </Activity>
163
+ <Message>
164
+ <Code>01</Code>
165
+ <Description>On Time</Description>
166
+ </Message>
167
+ <PackageWeight>
168
+ <UnitOfMeasurement>
169
+ <Code>LBS</Code>
170
+ </UnitOfMeasurement>
171
+ <Weight>5.40</Weight>
172
+ </PackageWeight>
173
+ <ReferenceNumber>
174
+ <Code>01</Code>
175
+ <Value>FN3-6732456-0526660</Value>
176
+ </ReferenceNumber>
177
+ <ReferenceNumber>
178
+ <Code>01</Code>
179
+ <Value>DZWHLCGPR</Value>
180
+ </ReferenceNumber>
181
+ </Package>
182
+ </Shipment>
183
+ </TrackResponse>
@@ -0,0 +1,165 @@
1
+ <?xml version="1.0"?>
2
+ <TrackResponse>
3
+ <Response>
4
+ <ResponseStatusCode>1</ResponseStatusCode>
5
+ <ResponseStatusDescription>Success</ResponseStatusDescription>
6
+ </Response>
7
+ <Shipment>
8
+ <Shipper>
9
+ <ShipperNumber>W22A28</ShipperNumber>
10
+ <Address>
11
+ <AddressLine1>1050 S COLUMBIA AVE</AddressLine1>
12
+ <City>CAMPBELLSVILLE</City>
13
+ <StateProvinceCode>KY</StateProvinceCode>
14
+ <PostalCode>42718 2454</PostalCode>
15
+ <CountryCode>US</CountryCode>
16
+ </Address>
17
+ </Shipper>
18
+ <ShipTo>
19
+ <Address>
20
+ <City>CYPRESS</City>
21
+ <StateProvinceCode>TX</StateProvinceCode>
22
+ <PostalCode>774332681</PostalCode>
23
+ <CountryCode>US</CountryCode>
24
+ </Address>
25
+ </ShipTo>
26
+ <ShipmentWeight>
27
+ <UnitOfMeasurement>
28
+ <Code>LBS</Code>
29
+ </UnitOfMeasurement>
30
+ <Weight>1.20</Weight>
31
+ </ShipmentWeight>
32
+ <Service>
33
+ <Code>003</Code>
34
+ <Description>GROUND</Description>
35
+ </Service>
36
+ <ReferenceNumber>
37
+ <Code>01</Code>
38
+ <Value>643293013</Value>
39
+ </ReferenceNumber>
40
+ <ShipmentIdentificationNumber>
41
+ 1ZW22A280305086608</ShipmentIdentificationNumber>
42
+ <PickupDate>20120508</PickupDate>
43
+ <ScheduledDeliveryDate>20120511</ScheduledDeliveryDate>
44
+ <Package>
45
+ <TrackingNumber>1ZW22A280305086608</TrackingNumber>
46
+ <RescheduledDeliveryDate>20120510</RescheduledDeliveryDate>
47
+ <Activity>
48
+ <ActivityLocation>
49
+ <Address>
50
+ <City>STAFFORD</City>
51
+ <StateProvinceCode>TX</StateProvinceCode>
52
+ <CountryCode>US</CountryCode>
53
+ </Address>
54
+ </ActivityLocation>
55
+ <Status>
56
+ <StatusType>
57
+ <Code>I</Code>
58
+ <Description>OUT FOR DELIVERY</Description>
59
+ </StatusType>
60
+ <StatusCode>
61
+ <Code>DS</Code>
62
+ </StatusCode>
63
+ </Status>
64
+ <Date>20120510</Date>
65
+ <Time>043400</Time>
66
+ </Activity>
67
+ <Activity>
68
+ <ActivityLocation>
69
+ <Address>
70
+ <City>STAFFORD</City>
71
+ <StateProvinceCode>TX</StateProvinceCode>
72
+ <CountryCode>US</CountryCode>
73
+ </Address>
74
+ </ActivityLocation>
75
+ <Status>
76
+ <StatusType>
77
+ <Code>I</Code>
78
+ <Description>ARRIVAL SCAN</Description>
79
+ </StatusType>
80
+ <StatusCode>
81
+ <Code>AR</Code>
82
+ </StatusCode>
83
+ </Status>
84
+ <Date>20120510</Date>
85
+ <Time>000200</Time>
86
+ </Activity>
87
+ <Activity>
88
+ <ActivityLocation>
89
+ <Address>
90
+ <City>MESQUITE</City>
91
+ <StateProvinceCode>TX</StateProvinceCode>
92
+ <CountryCode>US</CountryCode>
93
+ </Address>
94
+ </ActivityLocation>
95
+ <Status>
96
+ <StatusType>
97
+ <Code>I</Code>
98
+ <Description>DEPARTURE SCAN</Description>
99
+ </StatusType>
100
+ <StatusCode>
101
+ <Code>DP</Code>
102
+ </StatusCode>
103
+ </Status>
104
+ <Date>20120509</Date>
105
+ <Time>200300</Time>
106
+ </Activity>
107
+ <Activity>
108
+ <ActivityLocation>
109
+ <Address>
110
+ <City>MESQUITE</City>
111
+ <StateProvinceCode>TX</StateProvinceCode>
112
+ <CountryCode>US</CountryCode>
113
+ </Address>
114
+ </ActivityLocation>
115
+ <Status>
116
+ <StatusType>
117
+ <Code>I</Code>
118
+ <Description>ORIGIN SCAN</Description>
119
+ </StatusType>
120
+ <StatusCode>
121
+ <Code>OR</Code>
122
+ </StatusCode>
123
+ </Status>
124
+ <Date>20120509</Date>
125
+ <Time>141800</Time>
126
+ </Activity>
127
+ <Activity>
128
+ <ActivityLocation>
129
+ <Address>
130
+ <CountryCode>US</CountryCode>
131
+ </Address>
132
+ </ActivityLocation>
133
+ <Status>
134
+ <StatusType>
135
+ <Code>M</Code>
136
+ <Description>BILLING INFORMATION RECEIVED</Description>
137
+ </StatusType>
138
+ <StatusCode>
139
+ <Code>MP</Code>
140
+ </StatusCode>
141
+ </Status>
142
+ <Date>20120508</Date>
143
+ <Time>230354</Time>
144
+ </Activity>
145
+ <Message>
146
+ <Code>02</Code>
147
+ <Description>Rescheduled</Description>
148
+ </Message>
149
+ <PackageWeight>
150
+ <UnitOfMeasurement>
151
+ <Code>LBS</Code>
152
+ </UnitOfMeasurement>
153
+ <Weight>1.20</Weight>
154
+ </PackageWeight>
155
+ <ReferenceNumber>
156
+ <Code>01</Code>
157
+ <Value>FN3-4603152-0261546</Value>
158
+ </ReferenceNumber>
159
+ <ReferenceNumber>
160
+ <Code>01</Code>
161
+ <Value>DTG4MDX2R</Value>
162
+ </ReferenceNumber>
163
+ </Package>
164
+ </Shipment>
165
+ </TrackResponse>