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,185 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <v6:RateReply xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:v6="http://fedex.com/ws/rate/v6">
3
+ <v6:HighestSeverity>WARNING</v6:HighestSeverity>
4
+ <v6:TransactionDetail>
5
+ <v6:CustomerTransactionId>ActiveShipping</v6:CustomerTransactionId>
6
+ </v6:TransactionDetail>
7
+ <v6:Version>
8
+ <v6:ServiceId>crs</v6:ServiceId>
9
+ <v6:Major>6</v6:Major>
10
+ <v6:Intermediate>0</v6:Intermediate>
11
+ <v6:Minor>0</v6:Minor>
12
+ </v6:Version>
13
+ <v6:RateReplyDetails>
14
+ <v6:ServiceType>FEDEX_GROUND</v6:ServiceType>
15
+ <v6:PackagingType>YOUR_PACKAGING</v6:PackagingType>
16
+ <v6:DeliveryStation>CCDA </v6:DeliveryStation>
17
+ <v6:CommitDetails>
18
+ <v6:ServiceType>FEDEX_GROUND</v6:ServiceType>
19
+ <v6:TransitTime>FIVE_DAYS</v6:TransitTime>
20
+ <v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays>
21
+ </v6:CommitDetails>
22
+ <v6:DestinationAirportId>LAX</v6:DestinationAirportId>
23
+ <v6:IneligibleForMoneyBackGuarantee>true</v6:IneligibleForMoneyBackGuarantee>
24
+ <v6:OriginServiceArea>A1</v6:OriginServiceArea>
25
+ <v6:DestinationServiceArea>A1</v6:DestinationServiceArea>
26
+ <v6:TransitTime>FIVE_DAYS</v6:TransitTime>
27
+ <v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption>
28
+ <v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType>
29
+ <v6:RatedShipmentDetails>
30
+ <v6:ShipmentRateDetail>
31
+ <v6:RateType>PAYOR_ACCOUNT</v6:RateType>
32
+ <v6:RateZone>53</v6:RateZone>
33
+ <v6:DimDivisor>0</v6:DimDivisor>
34
+ <v6:FuelSurchargePercent>5.25</v6:FuelSurchargePercent>
35
+ <v6:TotalBillingWeight>
36
+ <v6:Units>LB</v6:Units>
37
+ <v6:Value>10.0</v6:Value>
38
+ </v6:TotalBillingWeight>
39
+ <v6:TotalBaseCharge>
40
+ <v6:Currency>CAD</v6:Currency>
41
+ <v6:Amount>36.45</v6:Amount>
42
+ </v6:TotalBaseCharge>
43
+ <v6:TotalFreightDiscounts>
44
+ <v6:Currency>CAD</v6:Currency>
45
+ <v6:Amount>0.0</v6:Amount>
46
+ </v6:TotalFreightDiscounts>
47
+ <v6:TotalNetFreight>
48
+ <v6:Currency>CAD</v6:Currency>
49
+ <v6:Amount>36.45</v6:Amount>
50
+ </v6:TotalNetFreight>
51
+ <v6:TotalSurcharges>
52
+ <v6:Currency>CAD</v6:Currency>
53
+ <v6:Amount>1.91</v6:Amount>
54
+ </v6:TotalSurcharges>
55
+ <v6:TotalNetFedExCharge>
56
+ <v6:Currency>CAD</v6:Currency>
57
+ <v6:Amount>38.36</v6:Amount>
58
+ </v6:TotalNetFedExCharge>
59
+ <v6:TotalTaxes>
60
+ <v6:Currency>CAD</v6:Currency>
61
+ <v6:Amount>0.0</v6:Amount>
62
+ </v6:TotalTaxes>
63
+ <v6:TotalNetCharge>
64
+ <v6:Currency>CAD</v6:Currency>
65
+ <v6:Amount>38.36</v6:Amount>
66
+ </v6:TotalNetCharge>
67
+ <v6:TotalRebates>
68
+ <v6:Currency>CAD</v6:Currency>
69
+ <v6:Amount>0.0</v6:Amount>
70
+ </v6:TotalRebates>
71
+ <v6:Surcharges>
72
+ <v6:SurchargeType>FUEL</v6:SurchargeType>
73
+ <v6:Level>PACKAGE</v6:Level>
74
+ <v6:Description>FedEx Ground Fuel</v6:Description>
75
+ <v6:Amount>
76
+ <v6:Currency>CAD</v6:Currency>
77
+ <v6:Amount>1.91</v6:Amount>
78
+ </v6:Amount>
79
+ </v6:Surcharges>
80
+ </v6:ShipmentRateDetail>
81
+ <v6:RatedPackages>
82
+ <v6:PackageRateDetail>
83
+ <v6:RateType>PAYOR_ACCOUNT</v6:RateType>
84
+ <v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod>
85
+ <v6:BillingWeight>
86
+ <v6:Units>KG</v6:Units>
87
+ <v6:Value>1.0</v6:Value>
88
+ </v6:BillingWeight>
89
+ <v6:BaseCharge>
90
+ <v6:Currency>CAD</v6:Currency>
91
+ <v6:Amount>14.31</v6:Amount>
92
+ </v6:BaseCharge>
93
+ <v6:TotalFreightDiscounts>
94
+ <v6:Currency>CAD</v6:Currency>
95
+ <v6:Amount>0.0</v6:Amount>
96
+ </v6:TotalFreightDiscounts>
97
+ <v6:NetFreight>
98
+ <v6:Currency>CAD</v6:Currency>
99
+ <v6:Amount>14.31</v6:Amount>
100
+ </v6:NetFreight>
101
+ <v6:TotalSurcharges>
102
+ <v6:Currency>CAD</v6:Currency>
103
+ <v6:Amount>0.75</v6:Amount>
104
+ </v6:TotalSurcharges>
105
+ <v6:NetFedExCharge>
106
+ <v6:Currency>CAD</v6:Currency>
107
+ <v6:Amount>15.06</v6:Amount>
108
+ </v6:NetFedExCharge>
109
+ <v6:TotalTaxes>
110
+ <v6:Currency>CAD</v6:Currency>
111
+ <v6:Amount>0.0</v6:Amount>
112
+ </v6:TotalTaxes>
113
+ <v6:NetCharge>
114
+ <v6:Currency>CAD</v6:Currency>
115
+ <v6:Amount>15.06</v6:Amount>
116
+ </v6:NetCharge>
117
+ <v6:TotalRebates>
118
+ <v6:Currency>CAD</v6:Currency>
119
+ <v6:Amount>0.0</v6:Amount>
120
+ </v6:TotalRebates>
121
+ <v6:Surcharges>
122
+ <v6:SurchargeType>FUEL</v6:SurchargeType>
123
+ <v6:Level>PACKAGE</v6:Level>
124
+ <v6:Description>FedEx Ground Fuel</v6:Description>
125
+ <v6:Amount>
126
+ <v6:Currency>CAD</v6:Currency>
127
+ <v6:Amount>0.75</v6:Amount>
128
+ </v6:Amount>
129
+ </v6:Surcharges>
130
+ </v6:PackageRateDetail>
131
+ </v6:RatedPackages>
132
+ <v6:RatedPackages>
133
+ <v6:PackageRateDetail>
134
+ <v6:RateType>PAYOR_ACCOUNT</v6:RateType>
135
+ <v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod>
136
+ <v6:BillingWeight>
137
+ <v6:Units>KG</v6:Units>
138
+ <v6:Value>4.0</v6:Value>
139
+ </v6:BillingWeight>
140
+ <v6:BaseCharge>
141
+ <v6:Currency>CAD</v6:Currency>
142
+ <v6:Amount>22.14</v6:Amount>
143
+ </v6:BaseCharge>
144
+ <v6:TotalFreightDiscounts>
145
+ <v6:Currency>CAD</v6:Currency>
146
+ <v6:Amount>0.0</v6:Amount>
147
+ </v6:TotalFreightDiscounts>
148
+ <v6:NetFreight>
149
+ <v6:Currency>CAD</v6:Currency>
150
+ <v6:Amount>22.14</v6:Amount>
151
+ </v6:NetFreight>
152
+ <v6:TotalSurcharges>
153
+ <v6:Currency>CAD</v6:Currency>
154
+ <v6:Amount>1.16</v6:Amount>
155
+ </v6:TotalSurcharges>
156
+ <v6:NetFedExCharge>
157
+ <v6:Currency>CAD</v6:Currency>
158
+ <v6:Amount>23.3</v6:Amount>
159
+ </v6:NetFedExCharge>
160
+ <v6:TotalTaxes>
161
+ <v6:Currency>CAD</v6:Currency>
162
+ <v6:Amount>0.0</v6:Amount>
163
+ </v6:TotalTaxes>
164
+ <v6:NetCharge>
165
+ <v6:Currency>CAD</v6:Currency>
166
+ <v6:Amount>23.3</v6:Amount>
167
+ </v6:NetCharge>
168
+ <v6:TotalRebates>
169
+ <v6:Currency>CAD</v6:Currency>
170
+ <v6:Amount>0.0</v6:Amount>
171
+ </v6:TotalRebates>
172
+ <v6:Surcharges>
173
+ <v6:SurchargeType>FUEL</v6:SurchargeType>
174
+ <v6:Level>PACKAGE</v6:Level>
175
+ <v6:Description>FedEx Ground Fuel</v6:Description>
176
+ <v6:Amount>
177
+ <v6:Currency>CAD</v6:Currency>
178
+ <v6:Amount>1.16</v6:Amount>
179
+ </v6:Amount>
180
+ </v6:Surcharges>
181
+ </v6:PackageRateDetail>
182
+ </v6:RatedPackages>
183
+ </v6:RatedShipmentDetails>
184
+ </v6:RateReplyDetails>
185
+ </v6:RateReply>
@@ -0,0 +1,27 @@
1
+ <?xml version="1.0"?>
2
+ <TrackRequest xmlns="http://fedex.com/ws/track/v3">
3
+ <WebAuthenticationDetail>
4
+ <UserCredential>
5
+ <Key>1111</Key>
6
+ <Password>2222</Password>
7
+ </UserCredential>
8
+ </WebAuthenticationDetail>
9
+ <ClientDetail>
10
+ <AccountNumber>3333</AccountNumber>
11
+ <MeterNumber>4444</MeterNumber>
12
+ </ClientDetail>
13
+ <TransactionDetail>
14
+ <CustomerTransactionId>ActiveShipping</CustomerTransactionId>
15
+ </TransactionDetail>
16
+ <Version>
17
+ <ServiceId>trck</ServiceId>
18
+ <Major>3</Major>
19
+ <Intermediate>0</Intermediate>
20
+ <Minor>0</Minor>
21
+ </Version>
22
+ <PackageIdentifier>
23
+ <Value>077973360403984</Value>
24
+ <Type>TRACKING_NUMBER_OR_DOORTAG</Type>
25
+ </PackageIdentifier>
26
+ <IncludeDetailedScans>1</IncludeDetailedScans>
27
+ </TrackRequest>
@@ -0,0 +1,151 @@
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:ShipTimestamp>2008-12-03T00:00:00</v3:ShipTimestamp>
52
+ <v3:DestinationAddress>
53
+ <v3:City>Sacramento</v3:City>
54
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
55
+ <v3:CountryCode>US</v3:CountryCode>
56
+ <v3:Residential>false</v3:Residential>
57
+ </v3:DestinationAddress>
58
+ <v3:ActualDeliveryTimestamp>2008-12-08T07:43:37-08:00</v3:ActualDeliveryTimestamp>
59
+ <v3:ActualDeliveryAddress>
60
+ <v3:City>Sacramento</v3:City>
61
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
62
+ <v3:CountryCode>US</v3:CountryCode>
63
+ <v3:Residential>false</v3:Residential>
64
+ </v3:ActualDeliveryAddress>
65
+ <v3:DeliveryLocationType>OTHER</v3:DeliveryLocationType>
66
+ <v3:DeliverySignatureName>KKING</v3:DeliverySignatureName>
67
+ <v3:SignatureProofOfDeliveryAvailable>true</v3:SignatureProofOfDeliveryAvailable>
68
+ <v3:ProofOfDeliveryNotificationsAvailable>false</v3:ProofOfDeliveryNotificationsAvailable>
69
+ <v3:ExceptionNotificationsAvailable>false</v3:ExceptionNotificationsAvailable>
70
+ <v3:Events>
71
+ <v3:Timestamp>2008-12-08T07:43:37-08:00</v3:Timestamp>
72
+ <v3:EventType>DL</v3:EventType>
73
+ <v3:EventDescription>Delivered</v3:EventDescription>
74
+ <v3:Address>
75
+ <v3:City>Sacramento</v3:City>
76
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
77
+ <v3:PostalCode>95817</v3:PostalCode>
78
+ <v3:CountryCode>US</v3:CountryCode>
79
+ <v3:Residential>false</v3:Residential>
80
+ </v3:Address>
81
+ </v3:Events>
82
+ <v3:Events>
83
+ <v3:Timestamp>2008-12-08T05:00:00-08:00</v3:Timestamp>
84
+ <v3:EventType>OD</v3:EventType>
85
+ <v3:EventDescription>On FedEx vehicle for delivery</v3:EventDescription>
86
+ <v3:Address>
87
+ <v3:City>SACRAMENTO</v3:City>
88
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
89
+ <v3:PostalCode>95824</v3:PostalCode>
90
+ <v3:CountryCode>US</v3:CountryCode>
91
+ <v3:Residential>false</v3:Residential>
92
+ </v3:Address>
93
+ </v3:Events>
94
+ <v3:Events>
95
+ <v3:Timestamp>2008-12-07T10:48:00-08:00</v3:Timestamp>
96
+ <v3:EventType>AR</v3:EventType>
97
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
98
+ <v3:Address>
99
+ <v3:City>SACRAMENTO</v3:City>
100
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
101
+ <v3:PostalCode>95824</v3:PostalCode>
102
+ <v3:CountryCode>US</v3:CountryCode>
103
+ <v3:Residential>false</v3:Residential>
104
+ </v3:Address>
105
+ </v3:Events>
106
+ <v3:Events>
107
+ <v3:Timestamp>2008-12-04T05:58:46-06:00</v3:Timestamp>
108
+ <v3:EventType>DP</v3:EventType>
109
+ <v3:EventDescription>Departed FedEx location</v3:EventDescription>
110
+ <v3:Address>
111
+ <v3:City>NASHVILLE</v3:City>
112
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
113
+ <v3:PostalCode>37207</v3:PostalCode>
114
+ <v3:CountryCode>US</v3:CountryCode>
115
+ <v3:Residential>false</v3:Residential>
116
+ </v3:Address>
117
+ </v3:Events>
118
+ <v3:Events>
119
+ <v3:Timestamp>2008-12-03T18:22:00-06:00</v3:Timestamp>
120
+ <v3:EventType>AR</v3:EventType>
121
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
122
+ <v3:Address>
123
+ <v3:City>NASHVILLE</v3:City>
124
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
125
+ <v3:PostalCode>37207</v3:PostalCode>
126
+ <v3:CountryCode>US</v3:CountryCode>
127
+ <v3:Residential>false</v3:Residential>
128
+ </v3:Address>
129
+ </v3:Events>
130
+ <v3:Events>
131
+ <v3:Timestamp>2008-12-03T17:22:00-06:00</v3:Timestamp>
132
+ <v3:EventType>PU</v3:EventType>
133
+ <v3:EventDescription>Picked up</v3:EventDescription>
134
+ <v3:Address>
135
+ <v3:City>NASHVILLE</v3:City>
136
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
137
+ <v3:PostalCode>37207</v3:PostalCode>
138
+ <v3:CountryCode>US</v3:CountryCode>
139
+ <v3:Residential>false</v3:Residential>
140
+ </v3:Address>
141
+ </v3:Events>
142
+ <v3:Events>
143
+ <v3:Timestamp>2008-12-03T12:10:00-06:00</v3:Timestamp>
144
+ <v3:EventType>OC</v3:EventType>
145
+ <v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription>
146
+ <v3:Address>
147
+ <v3:Residential>false</v3:Residential>
148
+ </v3:Address>
149
+ </v3:Events>
150
+ </v3:TrackDetails>
151
+ </v3:TrackReply>
@@ -0,0 +1,76 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <TrackReply xmlns="http://fedex.com/ws/track/v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <HighestSeverity>SUCCESS</HighestSeverity>
4
+ <Notifications>
5
+ <Severity>SUCCESS</Severity>
6
+ <Source>trck</Source>
7
+ <Code>0</Code>
8
+ <Message>Request was successfully processed.</Message>
9
+ <LocalizedMessage>Request was successfully processed.</LocalizedMessage>
10
+ </Notifications>
11
+ <TransactionDetail>
12
+ <CustomerTransactionId>ActiveShipping</CustomerTransactionId>
13
+ </TransactionDetail>
14
+ <Version>
15
+ <ServiceId>trck</ServiceId>
16
+ <Major>3</Major>
17
+ <Intermediate>0</Intermediate>
18
+ <Minor>0</Minor>
19
+ </Version>
20
+ <DuplicateWaybill>false</DuplicateWaybill>
21
+ <MoreData>false</MoreData>
22
+ <TrackDetails>
23
+ <Notification>
24
+ <Severity>SUCCESS</Severity>
25
+ <Source>trck</Source>
26
+ <Code>0</Code>
27
+ <Message>Request was successfully processed.</Message>
28
+ <LocalizedMessage>Request was successfully processed.</LocalizedMessage>
29
+ </Notification>
30
+ <TrackingNumber>805573019619</TrackingNumber>
31
+ <TrackingNumberUniqueIdentifier>2456790000~805573019619~FX</TrackingNumberUniqueIdentifier>
32
+ <StatusCode>IT</StatusCode>
33
+ <StatusDescription>In transit</StatusDescription>
34
+ <CarrierCode>FDXE</CarrierCode>
35
+ <ServiceInfo>FedEx 2Day A.M</ServiceInfo>
36
+ <Packaging>Your Packaging</Packaging>
37
+ <PackagingType>YOUR_PACKAGING</PackagingType>
38
+ <PackageSequenceNumber>0</PackageSequenceNumber>
39
+ <PackageCount>1</PackageCount>
40
+ <ShipTimestamp>2014-05-12T09:54:00-07:00</ShipTimestamp>
41
+ <DestinationAddress>
42
+ <Residential>false</Residential>
43
+ </DestinationAddress>
44
+ <EstimatedDeliveryTimestamp>2014-05-14T10:30:00-05:00</EstimatedDeliveryTimestamp>
45
+ <SignatureProofOfDeliveryAvailable>false</SignatureProofOfDeliveryAvailable>
46
+ <ProofOfDeliveryNotificationsAvailable>true</ProofOfDeliveryNotificationsAvailable>
47
+ <ExceptionNotificationsAvailable>true</ExceptionNotificationsAvailable>
48
+ <Events>
49
+ <Timestamp>2014-05-12T19:31:00-07:00</Timestamp>
50
+ <EventType>DP</EventType>
51
+ <EventDescription>Left FedEx origin facility</EventDescription>
52
+ <Address>
53
+ <City>LOS ANGELES</City>
54
+ <StateOrProvinceCode>CA</StateOrProvinceCode>
55
+ <PostalCode>90065</PostalCode>
56
+ <CountryCode>US</CountryCode>
57
+ <Residential>false</Residential>
58
+ </Address>
59
+ </Events>
60
+ <Events>
61
+ <Timestamp>2014-05-12T09:54:00-07:00</Timestamp>
62
+ <EventType>PU</EventType>
63
+ <EventDescription>Picked up</EventDescription>
64
+ <StatusExceptionCode>A3</StatusExceptionCode>
65
+ <StatusExceptionDescription>Tendered at FedEx Office</StatusExceptionDescription>
66
+ <Address>
67
+ <City>LOS ANGELES</City>
68
+ <StateOrProvinceCode>CA</StateOrProvinceCode>
69
+ <PostalCode>90028</PostalCode>
70
+ <CountryCode>US</CountryCode>
71
+ <Residential>false</Residential>
72
+ </Address>
73
+ </Events>
74
+ </TrackDetails>
75
+ </TrackReply>
76
+
@@ -0,0 +1,139 @@
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:ShipTimestamp>2008-12-03T00:00:00</v3:ShipTimestamp>
52
+ <v3:ActualDeliveryTimestamp>2008-12-08T07:43:37-08:00</v3:ActualDeliveryTimestamp>
53
+ <v3:DeliveryLocationType>OTHER</v3:DeliveryLocationType>
54
+ <v3:DeliverySignatureName>KKING</v3:DeliverySignatureName>
55
+ <v3:SignatureProofOfDeliveryAvailable>true</v3:SignatureProofOfDeliveryAvailable>
56
+ <v3:ProofOfDeliveryNotificationsAvailable>false</v3:ProofOfDeliveryNotificationsAvailable>
57
+ <v3:ExceptionNotificationsAvailable>false</v3:ExceptionNotificationsAvailable>
58
+ <v3:Events>
59
+ <v3:Timestamp>2008-12-08T07:43:37-08:00</v3:Timestamp>
60
+ <v3:EventType>DL</v3:EventType>
61
+ <v3:EventDescription>Delivered</v3:EventDescription>
62
+ <v3:Address>
63
+ <v3:City>Sacramento</v3:City>
64
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
65
+ <v3:PostalCode>95817</v3:PostalCode>
66
+ <v3:CountryCode>US</v3:CountryCode>
67
+ <v3:Residential>false</v3:Residential>
68
+ </v3:Address>
69
+ </v3:Events>
70
+ <v3:Events>
71
+ <v3:Timestamp>2008-12-08T05:00:00-08:00</v3:Timestamp>
72
+ <v3:EventType>OD</v3:EventType>
73
+ <v3:EventDescription>On FedEx vehicle for delivery</v3:EventDescription>
74
+ <v3:Address>
75
+ <v3:City>SACRAMENTO</v3:City>
76
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
77
+ <v3:PostalCode>95824</v3:PostalCode>
78
+ <v3:CountryCode>US</v3:CountryCode>
79
+ <v3:Residential>false</v3:Residential>
80
+ </v3:Address>
81
+ </v3:Events>
82
+ <v3:Events>
83
+ <v3:Timestamp>2008-12-07T10:48:00-08:00</v3:Timestamp>
84
+ <v3:EventType>AR</v3:EventType>
85
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
86
+ <v3:Address>
87
+ <v3:City>SACRAMENTO</v3:City>
88
+ <v3:StateOrProvinceCode>CA</v3:StateOrProvinceCode>
89
+ <v3:PostalCode>95824</v3:PostalCode>
90
+ <v3:CountryCode>US</v3:CountryCode>
91
+ <v3:Residential>false</v3:Residential>
92
+ </v3:Address>
93
+ </v3:Events>
94
+ <v3:Events>
95
+ <v3:Timestamp>2008-12-04T05:58:46-06:00</v3:Timestamp>
96
+ <v3:EventType>DP</v3:EventType>
97
+ <v3:EventDescription>Departed FedEx location</v3:EventDescription>
98
+ <v3:Address>
99
+ <v3:City>NASHVILLE</v3:City>
100
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
101
+ <v3:PostalCode>37207</v3:PostalCode>
102
+ <v3:CountryCode>US</v3:CountryCode>
103
+ <v3:Residential>false</v3:Residential>
104
+ </v3:Address>
105
+ </v3:Events>
106
+ <v3:Events>
107
+ <v3:Timestamp>2008-12-03T18:22:00-06:00</v3:Timestamp>
108
+ <v3:EventType>AR</v3:EventType>
109
+ <v3:EventDescription>Arrived at FedEx location</v3:EventDescription>
110
+ <v3:Address>
111
+ <v3:City>NASHVILLE</v3:City>
112
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
113
+ <v3:PostalCode>37207</v3:PostalCode>
114
+ <v3:CountryCode>US</v3:CountryCode>
115
+ <v3:Residential>false</v3:Residential>
116
+ </v3:Address>
117
+ </v3:Events>
118
+ <v3:Events>
119
+ <v3:Timestamp>2008-12-03T17:22:00-06:00</v3:Timestamp>
120
+ <v3:EventType>PU</v3:EventType>
121
+ <v3:EventDescription>Picked up</v3:EventDescription>
122
+ <v3:Address>
123
+ <v3:City>NASHVILLE</v3:City>
124
+ <v3:StateOrProvinceCode>TN</v3:StateOrProvinceCode>
125
+ <v3:PostalCode>37207</v3:PostalCode>
126
+ <v3:CountryCode>US</v3:CountryCode>
127
+ <v3:Residential>false</v3:Residential>
128
+ </v3:Address>
129
+ </v3:Events>
130
+ <v3:Events>
131
+ <v3:Timestamp>2008-12-03T12:10:00-06:00</v3:Timestamp>
132
+ <v3:EventType>OC</v3:EventType>
133
+ <v3:EventDescription>Shipment information sent to FedEx</v3:EventDescription>
134
+ <v3:Address>
135
+ <v3:Residential>false</v3:Residential>
136
+ </v3:Address>
137
+ </v3:Events>
138
+ </v3:TrackDetails>
139
+ </v3:TrackReply>