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,13 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:tns="http://stamps.com/xml/namespace/2013/10/swsim/swsimv33">
6
+ <soap:Body>
7
+ <tns:PurchasePostage>
8
+ <tns:Authenticator>***authenticator***</tns:Authenticator>
9
+ <tns:PurchaseAmount>100</tns:PurchaseAmount>
10
+ <tns:ControlTotal>####.##</tns:ControlTotal>
11
+ </tns:PurchasePostage>
12
+ </soap:Body>
13
+ </soap:Envelope>
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
5
+ <soap:Body>
6
+ <PurchasePostageResponse xmlns="http://stamps.com/xml/namespace/2013/10/swsim/swsimv33">
7
+ <Authenticator>***authenticator***</Authenticator>
8
+ <PurchaseStatus>Pending</PurchaseStatus>
9
+ <TransactionID>1234</TransactionID>
10
+ <PostageBalance>
11
+ <AvailablePostage>543.21</AvailablePostage>
12
+ <ControlTotal>123.45</ControlTotal>
13
+ </PostageBalance>
14
+ <RejectionReason>order being processed</RejectionReason>
15
+ </PurchasePostageResponse>
16
+ </soap:Body>
17
+ </soap:Envelope>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5
+ xmlns:tns="http://stamps.com/xml/namespace/2013/10/swsim/swsimv33">
6
+ <soap:Body>
7
+ <tns:TrackShipment>
8
+ <tns:Authenticator>***authenticator***</tns:Authenticator>
9
+ <tns:StampsTxID>c605aec1-322e-48d5-bf81-b0bb820f9c22</tns:StampsTxID>
10
+ </tns:TrackShipment>
11
+ </soap:Body>
12
+ </soap:Envelope>
@@ -0,0 +1,45 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
5
+ <soap:Body>
6
+ <TrackShipmentResponse xmlns="http://stamps.com/xml/namespace/2013/10/swsim/swsimv33">
7
+ <Authenticator>***authenticator***</Authenticator>
8
+ <TrackingEvents>
9
+ <TrackingEvent>
10
+ <Timestamp>2008-02-19T10:32:00</Timestamp>
11
+ <Event>DELIVERED</Event>
12
+ <TrackingEventType>Delivered</TrackingEventType>
13
+ <City>FORT WAYNE</City>
14
+ <State>IN</State>
15
+ <Zip>46809</Zip>
16
+ <Country>US</Country>
17
+ <SignedBy />
18
+ <AuthorizedAgent>true</AuthorizedAgent>
19
+ </TrackingEvent>
20
+ <TrackingEvent>
21
+ <Timestamp>2008-02-15T16:58:00</Timestamp>
22
+ <Event>PROCESSED</Event>
23
+ <TrackingEventType>Enroute</TrackingEventType>
24
+ <City>INDIANAPOLIS</City>
25
+ <State>IN</State>
26
+ <Zip>46206</Zip>
27
+ <Country>US</Country>
28
+ <SignedBy />
29
+ <AuthorizedAgent>true</AuthorizedAgent>
30
+ </TrackingEvent>
31
+ <TrackingEvent>
32
+ <Timestamp>2008-02-13T16:09:00</Timestamp>
33
+ <Event>Electronic Notification</Event>
34
+ <TrackingEventType>ElectronicNotification</TrackingEventType>
35
+ <City />
36
+ <State />
37
+ <Zip>90066</Zip>
38
+ <Country>US</Country>
39
+ <SignedBy />
40
+ <AuthorizedAgent>true</AuthorizedAgent>
41
+ </TrackingEvent>
42
+ </TrackingEvents>
43
+ </TrackShipmentResponse>
44
+ </soap:Body>
45
+ </soap:Envelope>
@@ -0,0 +1,290 @@
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>418902</ShipperNumber>
10
+ <Address>
11
+ <AddressLine1>1705 WILKIE DR</AddressLine1>
12
+ <City>WINONA</City>
13
+ <StateProvinceCode>MN</StateProvinceCode>
14
+ <PostalCode>55987 6203</PostalCode>
15
+ <CountryCode>US</CountryCode>
16
+ </Address>
17
+ </Shipper>
18
+ <ShipTo>
19
+ <Address>
20
+ <City>ASHEBORO</City>
21
+ <StateProvinceCode>NC</StateProvinceCode>
22
+ <PostalCode>27204</PostalCode>
23
+ <CountryCode>US</CountryCode>
24
+ </Address>
25
+ </ShipTo>
26
+ <ShipmentWeight>
27
+ <UnitOfMeasurement>
28
+ <Code>LBS</Code>
29
+ </UnitOfMeasurement>
30
+ <Weight>15.90</Weight>
31
+ </ShipmentWeight>
32
+ <Service>
33
+ <Code>003</Code>
34
+ <Description>GROUND</Description>
35
+ </Service>
36
+ <ReferenceNumber>
37
+ <Code>01</Code>
38
+ <Value>RMA# 2013-265</Value>
39
+ </ReferenceNumber>
40
+ <ReferenceNumber>
41
+ <Code>01</Code>
42
+ <Value>1500</Value>
43
+ </ReferenceNumber>
44
+ <ShipmentIdentificationNumber>1Z4189020353476816</ShipmentIdentificationNumber>
45
+ <PickupDate>20131203</PickupDate>
46
+ <DeliveryDateUnavailable>
47
+ <Type>Scheduled Delivery</Type>
48
+ <Description>Scheduled Delivery Date is not currently available, please try back later</Description>
49
+ </DeliveryDateUnavailable>
50
+ <Package>
51
+ <TrackingNumber>1Z4189020353476816</TrackingNumber>
52
+ <Activity>
53
+ <ActivityLocation>
54
+ <Address>
55
+ <City>WINONA</City>
56
+ <StateProvinceCode>MN</StateProvinceCode>
57
+ <CountryCode>US</CountryCode>
58
+ </Address>
59
+ </ActivityLocation>
60
+ <Status>
61
+ <StatusType>
62
+ <Code>X</Code>
63
+ <Description>A GUARANTEED SERVICE REFUND HAS BEEN SUBMITTED FOR THIS PACKAGE.</Description>
64
+ </StatusType>
65
+ <StatusCode>
66
+ <Code>DM</Code>
67
+ </StatusCode>
68
+ </Status>
69
+ <Date>20131212</Date>
70
+ <Time>043800</Time>
71
+ </Activity>
72
+ <Activity>
73
+ <ActivityLocation>
74
+ <Address>
75
+ <City>ASHEBORO</City>
76
+ <StateProvinceCode>NC</StateProvinceCode>
77
+ <PostalCode>27203</PostalCode>
78
+ <CountryCode>US</CountryCode>
79
+ </Address>
80
+ <Code>M3</Code>
81
+ <Description>FRONT DESK</Description>
82
+ <SignedForByName>EVANS</SignedForByName>
83
+ </ActivityLocation>
84
+ <Status>
85
+ <StatusType>
86
+ <Code>D</Code>
87
+ <Description>DELIVERED</Description>
88
+ </StatusType>
89
+ <StatusCode>
90
+ <Code>KB</Code>
91
+ </StatusCode>
92
+ </Status>
93
+ <Date>20131209</Date>
94
+ <Time>161700</Time>
95
+ </Activity>
96
+ <Activity>
97
+ <ActivityLocation>
98
+ <Address>
99
+ <City>GREENSBORO</City>
100
+ <StateProvinceCode>NC</StateProvinceCode>
101
+ <CountryCode>US</CountryCode>
102
+ </Address>
103
+ </ActivityLocation>
104
+ <Status>
105
+ <StatusType>
106
+ <Code>I</Code>
107
+ <Description>DESTINATION SCAN</Description>
108
+ </StatusType>
109
+ <StatusCode>
110
+ <Code>DS</Code>
111
+ </StatusCode>
112
+ </Status>
113
+ <Date>20131209</Date>
114
+ <Time>060000</Time>
115
+ </Activity>
116
+ <Activity>
117
+ <ActivityLocation>
118
+ <Address>
119
+ <City>GREENSBORO</City>
120
+ <StateProvinceCode>NC</StateProvinceCode>
121
+ <CountryCode>US</CountryCode>
122
+ </Address>
123
+ </ActivityLocation>
124
+ <Status>
125
+ <StatusType>
126
+ <Code>I</Code>
127
+ <Description>DESTINATION SCAN</Description>
128
+ </StatusType>
129
+ <StatusCode>
130
+ <Code>DS</Code>
131
+ </StatusCode>
132
+ </Status>
133
+ <Date>20131206</Date>
134
+ <Time>101200</Time>
135
+ </Activity>
136
+ <Activity>
137
+ <ActivityLocation>
138
+ <Address>
139
+ <City>GREENSBORO</City>
140
+ <StateProvinceCode>NC</StateProvinceCode>
141
+ <CountryCode>US</CountryCode>
142
+ </Address>
143
+ </ActivityLocation>
144
+ <Status>
145
+ <StatusType>
146
+ <Code>X</Code>
147
+ <Description>YOUR PACKAGE ENCOUNTERED A DELAY. WE EXPECT YOUR DELIVERY WILL BE POSTPONED BY ONE BUSINESS DAY.</Description>
148
+ </StatusType>
149
+ <StatusCode>
150
+ <Code>2Y</Code>
151
+ </StatusCode>
152
+ </Status>
153
+ <Date>20131205</Date>
154
+ <Time>213000</Time>
155
+ </Activity>
156
+ <Activity>
157
+ <ActivityLocation>
158
+ <Address>
159
+ <City>GREENSBORO</City>
160
+ <StateProvinceCode>NC</StateProvinceCode>
161
+ <CountryCode>US</CountryCode>
162
+ </Address>
163
+ </ActivityLocation>
164
+ <Status>
165
+ <StatusType>
166
+ <Code>I</Code>
167
+ <Description>ARRIVAL SCAN</Description>
168
+ </StatusType>
169
+ <StatusCode>
170
+ <Code>AR</Code>
171
+ </StatusCode>
172
+ </Status>
173
+ <Date>20131205</Date>
174
+ <Time>061600</Time>
175
+ </Activity>
176
+ <Activity>
177
+ <ActivityLocation>
178
+ <Address>
179
+ <City>EAGAN</City>
180
+ <StateProvinceCode>MN</StateProvinceCode>
181
+ <CountryCode>US</CountryCode>
182
+ </Address>
183
+ </ActivityLocation>
184
+ <Status>
185
+ <StatusType>
186
+ <Code>I</Code>
187
+ <Description>DEPARTURE SCAN</Description>
188
+ </StatusType>
189
+ <StatusCode>
190
+ <Code>DP</Code>
191
+ </StatusCode>
192
+ </Status>
193
+ <Date>20131204</Date>
194
+ <Time>055400</Time>
195
+ </Activity>
196
+ <Activity>
197
+ <ActivityLocation>
198
+ <Address>
199
+ <City>EAGAN</City>
200
+ <StateProvinceCode>MN</StateProvinceCode>
201
+ <CountryCode>US</CountryCode>
202
+ </Address>
203
+ </ActivityLocation>
204
+ <Status>
205
+ <StatusType>
206
+ <Code>I</Code>
207
+ <Description>ARRIVAL SCAN</Description>
208
+ </StatusType>
209
+ <StatusCode>
210
+ <Code>AR</Code>
211
+ </StatusCode>
212
+ </Status>
213
+ <Date>20131203</Date>
214
+ <Time>225800</Time>
215
+ </Activity>
216
+ <Activity>
217
+ <ActivityLocation>
218
+ <Address>
219
+ <City>WINONA</City>
220
+ <StateProvinceCode>MN</StateProvinceCode>
221
+ <CountryCode>US</CountryCode>
222
+ </Address>
223
+ </ActivityLocation>
224
+ <Status>
225
+ <StatusType>
226
+ <Code>I</Code>
227
+ <Description>DEPARTURE SCAN</Description>
228
+ </StatusType>
229
+ <StatusCode>
230
+ <Code>DP</Code>
231
+ </StatusCode>
232
+ </Status>
233
+ <Date>20131203</Date>
234
+ <Time>204300</Time>
235
+ </Activity>
236
+ <Activity>
237
+ <ActivityLocation>
238
+ <Address>
239
+ <City>WINONA</City>
240
+ <StateProvinceCode>MN</StateProvinceCode>
241
+ <CountryCode>US</CountryCode>
242
+ </Address>
243
+ </ActivityLocation>
244
+ <Status>
245
+ <StatusType>
246
+ <Code>I</Code>
247
+ <Description>ORIGIN SCAN</Description>
248
+ </StatusType>
249
+ <StatusCode>
250
+ <Code>OR</Code>
251
+ </StatusCode>
252
+ </Status>
253
+ <Date>20131203</Date>
254
+ <Time>200600</Time>
255
+ </Activity>
256
+ <Activity>
257
+ <ActivityLocation>
258
+ <Address>
259
+ <CountryCode>US</CountryCode>
260
+ </Address>
261
+ </ActivityLocation>
262
+ <Status>
263
+ <StatusType>
264
+ <Code>M</Code>
265
+ <Description>BILLING INFORMATION RECEIVED</Description>
266
+ </StatusType>
267
+ <StatusCode>
268
+ <Code>MP</Code>
269
+ </StatusCode>
270
+ </Status>
271
+ <Date>20131203</Date>
272
+ <Time>165411</Time>
273
+ </Activity>
274
+ <PackageWeight>
275
+ <UnitOfMeasurement>
276
+ <Code>LBS</Code>
277
+ </UnitOfMeasurement>
278
+ <Weight>15.90</Weight>
279
+ </PackageWeight>
280
+ <ReferenceNumber>
281
+ <Code>01</Code>
282
+ <Value>RMA# 2013-265</Value>
283
+ </ReferenceNumber>
284
+ <ReferenceNumber>
285
+ <Code>01</Code>
286
+ <Value>1500</Value>
287
+ </ReferenceNumber>
288
+ </Package>
289
+ </Shipment>
290
+ </TrackResponse>
@@ -0,0 +1,62 @@
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>A7226W</ShipperNumber>
10
+ <Address>
11
+ <AddressLine1>1 AMAZON WAY</AddressLine1>
12
+ <City>COFFEYVILLE</City>
13
+ <StateProvinceCode>KS</StateProvinceCode>
14
+ <PostalCode>67337</PostalCode>
15
+ <CountryCode>US</CountryCode>
16
+ </Address>
17
+ </Shipper>
18
+ <ShipmentWeight>
19
+ <UnitOfMeasurement>
20
+ <Code>LBS</Code>
21
+ </UnitOfMeasurement>
22
+ <Weight>0.00</Weight>
23
+ </ShipmentWeight>
24
+ <Service>
25
+ <Code>13</Code>
26
+ <Description>UPS NEXT DAY AIR SAVER</Description>
27
+ </Service>
28
+ <ShipmentIdentificationNumber>1ZA7226W1388491331</ShipmentIdentificationNumber>
29
+ <Package>
30
+ <TrackingNumber>1ZA7226W1388491331</TrackingNumber>
31
+ <Activity>
32
+ <ActivityLocation>
33
+ <Address>
34
+ <City>CYPRESS</City>
35
+ <StateProvinceCode>TX</StateProvinceCode>
36
+ <PostalCode>77433</PostalCode>
37
+ <CountryCode>US</CountryCode>
38
+ </Address>
39
+ <Code>MQ</Code>
40
+ <Description>PORCH</Description>
41
+ </ActivityLocation>
42
+ <Status>
43
+ <StatusType>
44
+ <Code>D</Code>
45
+ <Description>DELIVERED</Description>
46
+ </StatusType>
47
+ <StatusCode>
48
+ <Code>FS</Code>
49
+ </StatusCode>
50
+ </Status>
51
+ <Date>20110617</Date>
52
+ <Time>134500</Time>
53
+ </Activity>
54
+ <PackageWeight>
55
+ <UnitOfMeasurement>
56
+ <Code>LBS</Code>
57
+ </UnitOfMeasurement>
58
+ <Weight>0.00</Weight>
59
+ </PackageWeight>
60
+ </Package>
61
+ </Shipment>
62
+ </TrackResponse>
@@ -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>