reactive_shipping 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.travis.yml +33 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +225 -0
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +21 -0
- data/README.md +158 -0
- data/Rakefile +35 -0
- data/dev.yml +17 -0
- data/gemfiles/activesupport42.gemfile +5 -0
- data/gemfiles/activesupport50.gemfile +6 -0
- data/gemfiles/activesupport51.gemfile +5 -0
- data/gemfiles/activesupport52.gemfile +5 -0
- data/gemfiles/activesupport_master.gemfile +5 -0
- data/lib/certs/eParcel.dtd +111 -0
- data/lib/reactive_shipping.rb +26 -0
- data/lib/reactive_shipping/address_validation_response.rb +30 -0
- data/lib/reactive_shipping/carrier.rb +184 -0
- data/lib/reactive_shipping/carriers.rb +35 -0
- data/lib/reactive_shipping/carriers/australia_post.rb +248 -0
- data/lib/reactive_shipping/carriers/benchmark_carrier.rb +31 -0
- data/lib/reactive_shipping/carriers/bogus_carrier.rb +12 -0
- data/lib/reactive_shipping/carriers/canada_post.rb +263 -0
- data/lib/reactive_shipping/carriers/canada_post_pws.rb +908 -0
- data/lib/reactive_shipping/carriers/fedex.rb +797 -0
- data/lib/reactive_shipping/carriers/kunaki.rb +155 -0
- data/lib/reactive_shipping/carriers/new_zealand_post.rb +260 -0
- data/lib/reactive_shipping/carriers/shipwire.rb +178 -0
- data/lib/reactive_shipping/carriers/stamps.rb +860 -0
- data/lib/reactive_shipping/carriers/ups.rb +1060 -0
- data/lib/reactive_shipping/carriers/usps.rb +708 -0
- data/lib/reactive_shipping/carriers/usps_returns.rb +86 -0
- data/lib/reactive_shipping/delivery_date_estimate.rb +20 -0
- data/lib/reactive_shipping/delivery_date_estimates_response.rb +11 -0
- data/lib/reactive_shipping/errors.rb +35 -0
- data/lib/reactive_shipping/external_return_label_request.rb +417 -0
- data/lib/reactive_shipping/external_return_label_response.rb +26 -0
- data/lib/reactive_shipping/label.rb +10 -0
- data/lib/reactive_shipping/label_response.rb +10 -0
- data/lib/reactive_shipping/location.rb +166 -0
- data/lib/reactive_shipping/package.rb +165 -0
- data/lib/reactive_shipping/package_item.rb +60 -0
- data/lib/reactive_shipping/rate_estimate.rb +197 -0
- data/lib/reactive_shipping/rate_response.rb +33 -0
- data/lib/reactive_shipping/response.rb +44 -0
- data/lib/reactive_shipping/shipment_event.rb +22 -0
- data/lib/reactive_shipping/shipment_packer.rb +108 -0
- data/lib/reactive_shipping/shipping_response.rb +34 -0
- data/lib/reactive_shipping/tracking_response.rb +120 -0
- data/lib/reactive_shipping/version.rb +3 -0
- data/reactive_shipping.gemspec +38 -0
- data/shipit.rubygems.yml +1 -0
- data/test/console.rb +39 -0
- data/test/credentials.yml +76 -0
- data/test/fixtures/files/label1.pdf +0 -0
- data/test/fixtures/files/ups-shipping-label.gif +0 -0
- data/test/fixtures/json/australia_post/calculate_domestic.json +13 -0
- data/test/fixtures/json/australia_post/calculate_domestic_2.json +19 -0
- data/test/fixtures/json/australia_post/calculate_international.json +12 -0
- data/test/fixtures/json/australia_post/calculate_international_2.json +15 -0
- data/test/fixtures/json/australia_post/error_message.json +5 -0
- data/test/fixtures/json/australia_post/service_domestic.json +117 -0
- data/test/fixtures/json/australia_post/service_domestic_2.json +117 -0
- data/test/fixtures/json/australia_post/service_international.json +76 -0
- data/test/fixtures/json/australia_post/service_international_2.json +59 -0
- data/test/fixtures/json/newzealandpost/domestic_book.json +1 -0
- data/test/fixtures/json/newzealandpost/domestic_default.json +1 -0
- data/test/fixtures/json/newzealandpost/domestic_error.json +1 -0
- data/test/fixtures/json/newzealandpost/domestic_poster.json +1 -0
- data/test/fixtures/json/newzealandpost/domestic_small_half_pound.json +1 -0
- data/test/fixtures/json/newzealandpost/international_book.json +1 -0
- data/test/fixtures/json/newzealandpost/international_new_zealand_wii.json +1 -0
- data/test/fixtures/json/newzealandpost/international_small_half_pound.json +1 -0
- data/test/fixtures/json/newzealandpost/international_wii.json +1 -0
- data/test/fixtures/xml/canadapost/example_request.xml +25 -0
- data/test/fixtures/xml/canadapost/example_response.xml +130 -0
- data/test/fixtures/xml/canadapost/example_response_error.xml +16 -0
- data/test/fixtures/xml/canadapost/example_response_french.xml +122 -0
- data/test/fixtures/xml/canadapost/example_response_with_nil_value.xml +164 -0
- data/test/fixtures/xml/canadapost/example_response_with_postal_outlet.xml +155 -0
- data/test/fixtures/xml/canadapost/example_response_with_postal_outlet_french.xml +274 -0
- data/test/fixtures/xml/canadapost/example_response_with_strange_delivery_date.xml +130 -0
- data/test/fixtures/xml/canadapost_pws/dnc_tracking_details_en.xml +112 -0
- data/test/fixtures/xml/canadapost_pws/merchant_details_error.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/merchant_details_response.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/option_response.xml +13 -0
- data/test/fixtures/xml/canadapost_pws/option_response_no_conflicts.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/rates_info.xml +190 -0
- data/test/fixtures/xml/canadapost_pws/rates_info_error.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/receipt_response.xml +42 -0
- data/test/fixtures/xml/canadapost_pws/receipt_response_no_priced_options.xml +36 -0
- data/test/fixtures/xml/canadapost_pws/register_token_error.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/register_token_response.xml +3 -0
- data/test/fixtures/xml/canadapost_pws/service_options_response.xml +42 -0
- data/test/fixtures/xml/canadapost_pws/services_error.xml +6 -0
- data/test/fixtures/xml/canadapost_pws/services_response.xml +32 -0
- data/test/fixtures/xml/canadapost_pws/shipment_domestic.xml +69 -0
- data/test/fixtures/xml/canadapost_pws/shipment_response.xml +20 -0
- data/test/fixtures/xml/canadapost_pws/shipment_us.xml +69 -0
- data/test/fixtures/xml/canadapost_pws/tracking_details_en.xml +152 -0
- data/test/fixtures/xml/canadapost_pws/tracking_details_en_error.xml +7 -0
- data/test/fixtures/xml/canadapost_pws/tracking_details_en_undelivered.xml +116 -0
- data/test/fixtures/xml/canadapost_pws/tracking_details_fr.xml +156 -0
- data/test/fixtures/xml/canadapost_pws/tracking_details_no_expected_delivery_date.xml +40 -0
- data/test/fixtures/xml/fedex/create_shipment_response.xml +2 -0
- data/test/fixtures/xml/fedex/freight_rate_request.xml +82 -0
- data/test/fixtures/xml/fedex/freight_rate_response.xml +506 -0
- data/test/fixtures/xml/fedex/invalid_fedex_reply.xml +27 -0
- data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_commercial_rate_request.xml +79 -0
- data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_no_saturday_rate_request.xml +79 -0
- data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_request.xml +80 -0
- data/test/fixtures/xml/fedex/ottawa_to_beverly_hills_rate_response.xml +214 -0
- data/test/fixtures/xml/fedex/raterequest_reply.xml +213 -0
- data/test/fixtures/xml/fedex/raterequest_response_with_ground_home_delivery.xml +206 -0
- data/test/fixtures/xml/fedex/reply_without_notifications.xml +185 -0
- data/test/fixtures/xml/fedex/tracking_request.xml +29 -0
- data/test/fixtures/xml/fedex/tracking_response_bad_tracking_number.xml +20 -0
- data/test/fixtures/xml/fedex/tracking_response_delivered_at_door.xml +254 -0
- data/test/fixtures/xml/fedex/tracking_response_delivered_at_facility.xml +403 -0
- data/test/fixtures/xml/fedex/tracking_response_delivered_with_signature.xml +269 -0
- data/test/fixtures/xml/fedex/tracking_response_empty_status_detail.xml +84 -0
- data/test/fixtures/xml/fedex/tracking_response_failure_code_9045.xml +52 -0
- data/test/fixtures/xml/fedex/tracking_response_failure_code_9080.xml +51 -0
- data/test/fixtures/xml/fedex/tracking_response_in_transit.xml +127 -0
- data/test/fixtures/xml/fedex/tracking_response_invalid_tracking_number.xml +52 -0
- data/test/fixtures/xml/fedex/tracking_response_missing_status_code.xml +89 -0
- data/test/fixtures/xml/fedex/tracking_response_multiple_results.xml +100 -0
- data/test/fixtures/xml/fedex/tracking_response_not_found.xml +52 -0
- data/test/fixtures/xml/fedex/tracking_response_shipment_exception.xml +209 -0
- data/test/fixtures/xml/fedex/tracking_response_unable_to_process.xml +32 -0
- data/test/fixtures/xml/fedex/tracking_response_with_blank_state.xml +107 -0
- data/test/fixtures/xml/fedex/unknown_fedex_document_reply.xml +3 -0
- data/test/fixtures/xml/kunaki/invalid_state_response.xml +3 -0
- data/test/fixtures/xml/kunaki/no_valid_items_response.xml +3 -0
- data/test/fixtures/xml/kunaki/successful_rates_response.xml +3 -0
- data/test/fixtures/xml/kunaki/unsuccessful_rates_response.xml +9 -0
- data/test/fixtures/xml/shipwire/international_rates_response.xml +17 -0
- data/test/fixtures/xml/shipwire/new_carrier_rate_response.xml +18 -0
- data/test/fixtures/xml/shipwire/no_rates_response.xml +7 -0
- data/test/fixtures/xml/shipwire/rates_response.xml +36 -0
- data/test/fixtures/xml/shipwire/rates_response_no_estimate.xml +14 -0
- data/test/fixtures/xml/stamps/authenticate_user_request.xml +15 -0
- data/test/fixtures/xml/stamps/authenticate_user_response.xml +10 -0
- data/test/fixtures/xml/stamps/cleanse_address_request.xml +19 -0
- data/test/fixtures/xml/stamps/cleanse_address_response.xml +27 -0
- data/test/fixtures/xml/stamps/create_indicium_request.xml +69 -0
- data/test/fixtures/xml/stamps/create_indicium_response.xml +40 -0
- data/test/fixtures/xml/stamps/expired_authenticator_response.xml +15 -0
- data/test/fixtures/xml/stamps/get_account_info_request.xml +11 -0
- data/test/fixtures/xml/stamps/get_account_info_response.xml +36 -0
- data/test/fixtures/xml/stamps/get_purchase_status_request.xml +12 -0
- data/test/fixtures/xml/stamps/get_purchase_status_response.xml +16 -0
- data/test/fixtures/xml/stamps/get_rates_request.xml +19 -0
- data/test/fixtures/xml/stamps/get_rates_response.xml +351 -0
- data/test/fixtures/xml/stamps/purchase_postage_request.xml +13 -0
- data/test/fixtures/xml/stamps/purchase_postage_response.xml +17 -0
- data/test/fixtures/xml/stamps/track_shipment_request.xml +12 -0
- data/test/fixtures/xml/stamps/track_shipment_response.xml +45 -0
- data/test/fixtures/xml/ups/access_request.xml +6 -0
- data/test/fixtures/xml/ups/delivered_shipment_with_refund.xml +290 -0
- data/test/fixtures/xml/ups/delivered_shipment_without_events_tracking_response.xml +62 -0
- data/test/fixtures/xml/ups/delivery_dates_response.xml +140 -0
- data/test/fixtures/xml/ups/example_tracking_response.xml +53 -0
- data/test/fixtures/xml/ups/in_transit_shipment.xml +183 -0
- data/test/fixtures/xml/ups/out_for_delivery_shipment.xml +165 -0
- data/test/fixtures/xml/ups/package_exceeds_maximum_length.xml +12 -0
- data/test/fixtures/xml/ups/rate_single_service.xml +54 -0
- data/test/fixtures/xml/ups/rescheduled_shipment.xml +204 -0
- data/test/fixtures/xml/ups/shipment_accept_response.xml +42 -0
- data/test/fixtures/xml/ups/shipment_confirm_response.xml +33 -0
- data/test/fixtures/xml/ups/shipment_from_tiger_direct.xml +222 -0
- data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response.xml +290 -0
- data/test/fixtures/xml/ups/test_real_home_as_residential_destination_response_with_insured.xml +289 -0
- data/test/fixtures/xml/ups/test_real_home_as_residential_destination_with_origin_account_response.xml +311 -0
- data/test/fixtures/xml/ups/tracking_request.xml +9 -0
- data/test/fixtures/xml/ups/triple_accept_response.xml +72 -0
- data/test/fixtures/xml/ups/triple_confirm_response.xml +32 -0
- data/test/fixtures/xml/ups/void_shipment_response.xml +11 -0
- data/test/fixtures/xml/usps/api_error_rate_response.xml +53 -0
- data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_base_rate_response.xml +2 -0
- data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_commercial_plus_rate_response.xml +258 -0
- data/test/fixtures/xml/usps/beverly_hills_to_new_york_book_rate_response.xml +108 -0
- data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_base_rate_response.xml +84 -0
- data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_commercial_plus_rate_response.xml +212 -0
- data/test/fixtures/xml/usps/beverly_hills_to_ottawa_american_wii_rate_response.xml +230 -0
- data/test/fixtures/xml/usps/first_class_packages_with_invalid_mail_type_response.xml +12 -0
- data/test/fixtures/xml/usps/first_class_packages_with_mail_type_response.xml +16 -0
- data/test/fixtures/xml/usps/first_class_packages_without_mail_type_response.xml +12 -0
- data/test/fixtures/xml/usps/invalid_xml_response.xml +10 -0
- data/test/fixtures/xml/usps/invalid_xml_tracking_response_error.xml +2 -0
- data/test/fixtures/xml/usps/tracking_request.xml +10 -0
- data/test/fixtures/xml/usps/tracking_request_batch.xml +12 -0
- data/test/fixtures/xml/usps/tracking_response.xml +162 -0
- data/test/fixtures/xml/usps/tracking_response_alt.xml +53 -0
- data/test/fixtures/xml/usps/tracking_response_batch.xml +231 -0
- data/test/fixtures/xml/usps/tracking_response_failure.xml +11 -0
- data/test/fixtures/xml/usps/tracking_response_not_available.xml +12 -0
- data/test/fixtures/xml/usps/tracking_response_test_error.xml +8 -0
- data/test/fixtures/xml/usps/us_rate_request.xml +18 -0
- data/test/fixtures/xml/usps/us_rate_request_large.xml +18 -0
- data/test/fixtures/xml/usps/world_rate_request_only_country.xml +22 -0
- data/test/fixtures/xml/usps/world_rate_request_with_value.xml +24 -0
- data/test/fixtures/xml/usps/world_rate_request_without_value.xml +24 -0
- data/test/fixtures/xml/usps_returns/external_return_label_response.xml +2 -0
- data/test/fixtures/xml/usps_returns/external_return_label_response_failure.xml +10 -0
- data/test/remote/australia_post_test.rb +140 -0
- data/test/remote/canada_post_pws_platform_test.rb +259 -0
- data/test/remote/canada_post_pws_test.rb +169 -0
- data/test/remote/canada_post_test.rb +55 -0
- data/test/remote/fedex_test.rb +400 -0
- data/test/remote/kunaki_test.rb +37 -0
- data/test/remote/new_zealand_post_test.rb +149 -0
- data/test/remote/shipwire_test.rb +84 -0
- data/test/remote/stamps_test.rb +396 -0
- data/test/remote/usps_returns_test.rb +72 -0
- data/test/remote/usps_test.rb +243 -0
- data/test/test_helper.rb +296 -0
- data/test/unit/carrier_test.rb +130 -0
- data/test/unit/carriers/australia_post_test.rb +181 -0
- data/test/unit/carriers/benchmark_test.rb +18 -0
- data/test/unit/carriers/canada_post_pws_rating_test.rb +379 -0
- data/test/unit/carriers/canada_post_pws_register_test.rb +76 -0
- data/test/unit/carriers/canada_post_pws_shipping_test.rb +258 -0
- data/test/unit/carriers/canada_post_pws_test.rb +59 -0
- data/test/unit/carriers/canada_post_pws_tracking_test.rb +154 -0
- data/test/unit/carriers/canada_post_test.rb +148 -0
- data/test/unit/carriers/fedex_test.rb +693 -0
- data/test/unit/carriers/kunaki_test.rb +56 -0
- data/test/unit/carriers/new_zealand_post_test.rb +177 -0
- data/test/unit/carriers/shipwire_test.rb +188 -0
- data/test/unit/carriers/stamps_test.rb +245 -0
- data/test/unit/carriers/ups_test.rb +580 -0
- data/test/unit/carriers/usps_returns_test.rb +45 -0
- data/test/unit/carriers/usps_test.rb +633 -0
- data/test/unit/carriers_test.rb +16 -0
- data/test/unit/external_return_label_request_test.rb +258 -0
- data/test/unit/location_test.rb +234 -0
- data/test/unit/package_item_test.rb +232 -0
- data/test/unit/package_test.rb +404 -0
- data/test/unit/rate_estimate_test.rb +93 -0
- data/test/unit/response_test.rb +38 -0
- data/test/unit/shipment_event_test.rb +20 -0
- data/test/unit/shipment_packer_test.rb +212 -0
- data/test/unit/tracking_response_test.rb +41 -0
- metadata +684 -0
@@ -0,0 +1,27 @@
|
|
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:Notifications>
|
5
|
+
<v6:Severity>WARNING</v6:Severity>
|
6
|
+
<v6:Source>crs</v6:Source>
|
7
|
+
<v6:Code>872</v6:Code>
|
8
|
+
<v6:Message>Rating is temporarily unavailable for one or more services:
|
9
|
+
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:Message>
|
10
|
+
<v6:LocalizedMessage>Rating is temporarily unavailable for one or more services:
|
11
|
+
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:LocalizedMessage>
|
12
|
+
<v6:MessageParameters>
|
13
|
+
<v6:Id>SERVICE_TYPE_1</v6:Id>
|
14
|
+
<v6:Value>INTERNATIONAL_FIRST</v6:Value>
|
15
|
+
</v6:MessageParameters>
|
16
|
+
<v6:MessageParameters>
|
17
|
+
<v6:Id>SERVICE_TYPE_2</v6:Id>
|
18
|
+
<v6:Value>INTERNATIONAL_PRIORITY</v6:Value>
|
19
|
+
</v6:MessageParameters>
|
20
|
+
<v6:MessageParameters>
|
21
|
+
<v6:Id>SERVICE_TYPE_3</v6:Id>
|
22
|
+
<v6:Value>INTERNATIONAL_ECONOMY</v6:Value>
|
23
|
+
</v6:MessageParameters>
|
24
|
+
</v6:Notifications>
|
25
|
+
<v6:Notifications>
|
26
|
+
<v6:Severity>NOTE</v6:Severity>
|
27
|
+
<v6:Source>crs
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<RateRequest xmlns="http://fedex.com/ws/rate/v13">
|
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>ReactiveShipping</CustomerTransactionId>
|
15
|
+
</TransactionDetail>
|
16
|
+
<Version>
|
17
|
+
<ServiceId>crs</ServiceId>
|
18
|
+
<Major>13</Major>
|
19
|
+
<Intermediate>0</Intermediate>
|
20
|
+
<Minor>0</Minor>
|
21
|
+
</Version>
|
22
|
+
<ReturnTransitAndCommit>true</ReturnTransitAndCommit>
|
23
|
+
<VariableOptions>SATURDAY_DELIVERY</VariableOptions>
|
24
|
+
<RequestedShipment>
|
25
|
+
<ShipTimestamp>2009-07-20T12:01:55-04:00</ShipTimestamp>
|
26
|
+
<DropoffType>REGULAR_PICKUP</DropoffType>
|
27
|
+
<PackagingType>YOUR_PACKAGING</PackagingType>
|
28
|
+
<Shipper>
|
29
|
+
<Address>
|
30
|
+
<StreetLines>110 Laurier Avenue West</StreetLines>
|
31
|
+
<City>Ottawa</City>
|
32
|
+
<PostalCode>K1P 1J1</PostalCode>
|
33
|
+
<CountryCode>CA</CountryCode>
|
34
|
+
<Residential>true</Residential>
|
35
|
+
</Address>
|
36
|
+
</Shipper>
|
37
|
+
<Recipient>
|
38
|
+
<Address>
|
39
|
+
<StreetLines>455 N. Rexford Dr.</StreetLines>
|
40
|
+
<StreetLines>3rd Floor</StreetLines>
|
41
|
+
<City>Beverly Hills</City>
|
42
|
+
<PostalCode>90210</PostalCode>
|
43
|
+
<CountryCode>US</CountryCode>
|
44
|
+
</Address>
|
45
|
+
</Recipient>
|
46
|
+
<SmartPostDetail>
|
47
|
+
<Indicia>PARCEL_SELECT</Indicia>
|
48
|
+
<HubId>5902</HubId>
|
49
|
+
</SmartPostDetail>
|
50
|
+
<RateRequestTypes>ACCOUNT</RateRequestTypes>
|
51
|
+
<PackageCount>2</PackageCount>
|
52
|
+
<RequestedPackageLineItems>
|
53
|
+
<GroupPackageCount>1</GroupPackageCount>
|
54
|
+
<Weight>
|
55
|
+
<Units>KG</Units>
|
56
|
+
<Value>0.25</Value>
|
57
|
+
</Weight>
|
58
|
+
<Dimensions>
|
59
|
+
<Length>19</Length>
|
60
|
+
<Width>14</Width>
|
61
|
+
<Height>2</Height>
|
62
|
+
<Units>CM</Units>
|
63
|
+
</Dimensions>
|
64
|
+
</RequestedPackageLineItems>
|
65
|
+
<RequestedPackageLineItems>
|
66
|
+
<GroupPackageCount>1</GroupPackageCount>
|
67
|
+
<Weight>
|
68
|
+
<Units>KG</Units>
|
69
|
+
<Value>3.402</Value>
|
70
|
+
</Weight>
|
71
|
+
<Dimensions>
|
72
|
+
<Length>39</Length>
|
73
|
+
<Width>26</Width>
|
74
|
+
<Height>12</Height>
|
75
|
+
<Units>CM</Units>
|
76
|
+
</Dimensions>
|
77
|
+
</RequestedPackageLineItems>
|
78
|
+
</RequestedShipment>
|
79
|
+
</RateRequest>
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<RateRequest xmlns="http://fedex.com/ws/rate/v13">
|
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>ReactiveShipping</CustomerTransactionId>
|
15
|
+
</TransactionDetail>
|
16
|
+
<Version>
|
17
|
+
<ServiceId>crs</ServiceId>
|
18
|
+
<Major>13</Major>
|
19
|
+
<Intermediate>0</Intermediate>
|
20
|
+
<Minor>0</Minor>
|
21
|
+
</Version>
|
22
|
+
<ReturnTransitAndCommit>true</ReturnTransitAndCommit>
|
23
|
+
<RequestedShipment>
|
24
|
+
<ShipTimestamp>2009-07-20T12:01:55-04:00</ShipTimestamp>
|
25
|
+
<DropoffType>REGULAR_PICKUP</DropoffType>
|
26
|
+
<PackagingType>YOUR_PACKAGING</PackagingType>
|
27
|
+
<Shipper>
|
28
|
+
<Address>
|
29
|
+
<StreetLines>110 Laurier Avenue West</StreetLines>
|
30
|
+
<City>Ottawa</City>
|
31
|
+
<PostalCode>K1P 1J1</PostalCode>
|
32
|
+
<CountryCode>CA</CountryCode>
|
33
|
+
<Residential>true</Residential>
|
34
|
+
</Address>
|
35
|
+
</Shipper>
|
36
|
+
<Recipient>
|
37
|
+
<Address>
|
38
|
+
<StreetLines>455 N. Rexford Dr.</StreetLines>
|
39
|
+
<StreetLines>3rd Floor</StreetLines>
|
40
|
+
<City>Beverly Hills</City>
|
41
|
+
<PostalCode>90210</PostalCode>
|
42
|
+
<CountryCode>US</CountryCode>
|
43
|
+
<Residential>true</Residential>
|
44
|
+
</Address>
|
45
|
+
</Recipient>
|
46
|
+
<SmartPostDetail>
|
47
|
+
<Indicia>PARCEL_SELECT</Indicia>
|
48
|
+
<HubId>5902</HubId>
|
49
|
+
</SmartPostDetail>
|
50
|
+
<RateRequestTypes>ACCOUNT</RateRequestTypes>
|
51
|
+
<PackageCount>2</PackageCount>
|
52
|
+
<RequestedPackageLineItems>
|
53
|
+
<GroupPackageCount>1</GroupPackageCount>
|
54
|
+
<Weight>
|
55
|
+
<Units>KG</Units>
|
56
|
+
<Value>0.25</Value>
|
57
|
+
</Weight>
|
58
|
+
<Dimensions>
|
59
|
+
<Length>19</Length>
|
60
|
+
<Width>14</Width>
|
61
|
+
<Height>2</Height>
|
62
|
+
<Units>CM</Units>
|
63
|
+
</Dimensions>
|
64
|
+
</RequestedPackageLineItems>
|
65
|
+
<RequestedPackageLineItems>
|
66
|
+
<GroupPackageCount>1</GroupPackageCount>
|
67
|
+
<Weight>
|
68
|
+
<Units>KG</Units>
|
69
|
+
<Value>3.402</Value>
|
70
|
+
</Weight>
|
71
|
+
<Dimensions>
|
72
|
+
<Length>39</Length>
|
73
|
+
<Width>26</Width>
|
74
|
+
<Height>12</Height>
|
75
|
+
<Units>CM</Units>
|
76
|
+
</Dimensions>
|
77
|
+
</RequestedPackageLineItems>
|
78
|
+
</RequestedShipment>
|
79
|
+
</RateRequest>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<RateRequest xmlns="http://fedex.com/ws/rate/v13">
|
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>ReactiveShipping</CustomerTransactionId>
|
15
|
+
</TransactionDetail>
|
16
|
+
<Version>
|
17
|
+
<ServiceId>crs</ServiceId>
|
18
|
+
<Major>13</Major>
|
19
|
+
<Intermediate>0</Intermediate>
|
20
|
+
<Minor>0</Minor>
|
21
|
+
</Version>
|
22
|
+
<ReturnTransitAndCommit>true</ReturnTransitAndCommit>
|
23
|
+
<VariableOptions>SATURDAY_DELIVERY</VariableOptions>
|
24
|
+
<RequestedShipment>
|
25
|
+
<ShipTimestamp>2009-07-20T12:01:55-04:00</ShipTimestamp>
|
26
|
+
<DropoffType>REGULAR_PICKUP</DropoffType>
|
27
|
+
<PackagingType>YOUR_PACKAGING</PackagingType>
|
28
|
+
<Shipper>
|
29
|
+
<Address>
|
30
|
+
<StreetLines>110 Laurier Avenue West</StreetLines>
|
31
|
+
<City>Ottawa</City>
|
32
|
+
<PostalCode>K1P 1J1</PostalCode>
|
33
|
+
<CountryCode>CA</CountryCode>
|
34
|
+
<Residential>true</Residential>
|
35
|
+
</Address>
|
36
|
+
</Shipper>
|
37
|
+
<Recipient>
|
38
|
+
<Address>
|
39
|
+
<StreetLines>455 N. Rexford Dr.</StreetLines>
|
40
|
+
<StreetLines>3rd Floor</StreetLines>
|
41
|
+
<City>Beverly Hills</City>
|
42
|
+
<PostalCode>90210</PostalCode>
|
43
|
+
<CountryCode>US</CountryCode>
|
44
|
+
<Residential>true</Residential>
|
45
|
+
</Address>
|
46
|
+
</Recipient>
|
47
|
+
<SmartPostDetail>
|
48
|
+
<Indicia>PARCEL_SELECT</Indicia>
|
49
|
+
<HubId>5902</HubId>
|
50
|
+
</SmartPostDetail>
|
51
|
+
<RateRequestTypes>ACCOUNT</RateRequestTypes>
|
52
|
+
<PackageCount>2</PackageCount>
|
53
|
+
<RequestedPackageLineItems>
|
54
|
+
<GroupPackageCount>1</GroupPackageCount>
|
55
|
+
<Weight>
|
56
|
+
<Units>KG</Units>
|
57
|
+
<Value>0.25</Value>
|
58
|
+
</Weight>
|
59
|
+
<Dimensions>
|
60
|
+
<Length>19</Length>
|
61
|
+
<Width>14</Width>
|
62
|
+
<Height>2</Height>
|
63
|
+
<Units>CM</Units>
|
64
|
+
</Dimensions>
|
65
|
+
</RequestedPackageLineItems>
|
66
|
+
<RequestedPackageLineItems>
|
67
|
+
<GroupPackageCount>1</GroupPackageCount>
|
68
|
+
<Weight>
|
69
|
+
<Units>KG</Units>
|
70
|
+
<Value>3.402</Value>
|
71
|
+
</Weight>
|
72
|
+
<Dimensions>
|
73
|
+
<Length>39</Length>
|
74
|
+
<Width>26</Width>
|
75
|
+
<Height>12</Height>
|
76
|
+
<Units>CM</Units>
|
77
|
+
</Dimensions>
|
78
|
+
</RequestedPackageLineItems>
|
79
|
+
</RequestedShipment>
|
80
|
+
</RateRequest>
|
@@ -0,0 +1,214 @@
|
|
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:Notifications>
|
5
|
+
<v6:Severity>WARNING</v6:Severity>
|
6
|
+
<v6:Source>crs</v6:Source>
|
7
|
+
<v6:Code>872</v6:Code>
|
8
|
+
<v6:Message>Rating is temporarily unavailable for one or more services:
|
9
|
+
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:Message>
|
10
|
+
<v6:LocalizedMessage>Rating is temporarily unavailable for one or more services:
|
11
|
+
INTERNATIONAL_FIRST; INTERNATIONAL_PRIORITY; INTERNATIONAL_ECONOMY; ; ; ; ; ; ; ; . Please try again later. </v6:LocalizedMessage>
|
12
|
+
<v6:MessageParameters>
|
13
|
+
<v6:Id>SERVICE_TYPE_1</v6:Id>
|
14
|
+
<v6:Value>INTERNATIONAL_FIRST</v6:Value>
|
15
|
+
</v6:MessageParameters>
|
16
|
+
<v6:MessageParameters>
|
17
|
+
<v6:Id>SERVICE_TYPE_2</v6:Id>
|
18
|
+
<v6:Value>INTERNATIONAL_PRIORITY</v6:Value>
|
19
|
+
</v6:MessageParameters>
|
20
|
+
<v6:MessageParameters>
|
21
|
+
<v6:Id>SERVICE_TYPE_3</v6:Id>
|
22
|
+
<v6:Value>INTERNATIONAL_ECONOMY</v6:Value>
|
23
|
+
</v6:MessageParameters>
|
24
|
+
</v6:Notifications>
|
25
|
+
<v6:Notifications>
|
26
|
+
<v6:Severity>NOTE</v6:Severity>
|
27
|
+
<v6:Source>crs</v6:Source>
|
28
|
+
<v6:Code>886</v6:Code>
|
29
|
+
<v6:Message>Money Back Guarantee is not eligible for this pick up/delivery postal/zip code</v6:Message>
|
30
|
+
<v6:LocalizedMessage>Money Back Guarantee is not eligible for this pick up/delivery postal/zip code</v6:LocalizedMessage>
|
31
|
+
</v6:Notifications>
|
32
|
+
<v6:TransactionDetail>
|
33
|
+
<v6:CustomerTransactionId>ReactiveShipping</v6:CustomerTransactionId>
|
34
|
+
</v6:TransactionDetail>
|
35
|
+
<v6:Version>
|
36
|
+
<v6:ServiceId>crs</v6:ServiceId>
|
37
|
+
<v6:Major>6</v6:Major>
|
38
|
+
<v6:Intermediate>0</v6:Intermediate>
|
39
|
+
<v6:Minor>0</v6:Minor>
|
40
|
+
</v6:Version>
|
41
|
+
<v6:RateReplyDetails>
|
42
|
+
<v6:ServiceType>FEDEX_GROUND</v6:ServiceType>
|
43
|
+
<v6:PackagingType>YOUR_PACKAGING</v6:PackagingType>
|
44
|
+
<v6:DeliveryStation>CCDA </v6:DeliveryStation>
|
45
|
+
<v6:DeliveryTimestamp>2011-07-29</v6:DeliveryTimestamp>
|
46
|
+
<v6:CommitDetails>
|
47
|
+
<v6:ServiceType>FEDEX_GROUND</v6:ServiceType>
|
48
|
+
<v6:TransitTime>FIVE_DAYS</v6:TransitTime>
|
49
|
+
<v6:BrokerToDestinationDays>0</v6:BrokerToDestinationDays>
|
50
|
+
</v6:CommitDetails>
|
51
|
+
<v6:DestinationAirportId>LAX</v6:DestinationAirportId>
|
52
|
+
<v6:IneligibleForMoneyBackGuarantee>true</v6:IneligibleForMoneyBackGuarantee>
|
53
|
+
<v6:OriginServiceArea>A1</v6:OriginServiceArea>
|
54
|
+
<v6:DestinationServiceArea>A1</v6:DestinationServiceArea>
|
55
|
+
<v6:TransitTime>FIVE_DAYS</v6:TransitTime>
|
56
|
+
<v6:SignatureOption>SERVICE_DEFAULT</v6:SignatureOption>
|
57
|
+
<v6:ActualRateType>PAYOR_ACCOUNT</v6:ActualRateType>
|
58
|
+
<v6:RatedShipmentDetails>
|
59
|
+
<v6:ShipmentRateDetail>
|
60
|
+
<v6:RateType>PAYOR_ACCOUNT</v6:RateType>
|
61
|
+
<v6:RateZone>53</v6:RateZone>
|
62
|
+
<v6:DimDivisor>0</v6:DimDivisor>
|
63
|
+
<v6:FuelSurchargePercent>5.25</v6:FuelSurchargePercent>
|
64
|
+
<v6:TotalBillingWeight>
|
65
|
+
<v6:Units>LB</v6:Units>
|
66
|
+
<v6:Value>10.0</v6:Value>
|
67
|
+
</v6:TotalBillingWeight>
|
68
|
+
<v6:TotalBaseCharge>
|
69
|
+
<v6:Currency>CAD</v6:Currency>
|
70
|
+
<v6:Amount>36.45</v6:Amount>
|
71
|
+
</v6:TotalBaseCharge>
|
72
|
+
<v6:TotalFreightDiscounts>
|
73
|
+
<v6:Currency>CAD</v6:Currency>
|
74
|
+
<v6:Amount>0.0</v6:Amount>
|
75
|
+
</v6:TotalFreightDiscounts>
|
76
|
+
<v6:TotalNetFreight>
|
77
|
+
<v6:Currency>CAD</v6:Currency>
|
78
|
+
<v6:Amount>36.45</v6:Amount>
|
79
|
+
</v6:TotalNetFreight>
|
80
|
+
<v6:TotalSurcharges>
|
81
|
+
<v6:Currency>CAD</v6:Currency>
|
82
|
+
<v6:Amount>1.91</v6:Amount>
|
83
|
+
</v6:TotalSurcharges>
|
84
|
+
<v6:TotalNetFedExCharge>
|
85
|
+
<v6:Currency>CAD</v6:Currency>
|
86
|
+
<v6:Amount>38.36</v6:Amount>
|
87
|
+
</v6:TotalNetFedExCharge>
|
88
|
+
<v6:TotalTaxes>
|
89
|
+
<v6:Currency>CAD</v6:Currency>
|
90
|
+
<v6:Amount>0.0</v6:Amount>
|
91
|
+
</v6:TotalTaxes>
|
92
|
+
<v6:TotalNetCharge>
|
93
|
+
<v6:Currency>CAD</v6:Currency>
|
94
|
+
<v6:Amount>38.36</v6:Amount>
|
95
|
+
</v6:TotalNetCharge>
|
96
|
+
<v6:TotalRebates>
|
97
|
+
<v6:Currency>CAD</v6:Currency>
|
98
|
+
<v6:Amount>0.0</v6:Amount>
|
99
|
+
</v6:TotalRebates>
|
100
|
+
<v6:Surcharges>
|
101
|
+
<v6:SurchargeType>FUEL</v6:SurchargeType>
|
102
|
+
<v6:Level>PACKAGE</v6:Level>
|
103
|
+
<v6:Description>FedEx Ground Fuel</v6:Description>
|
104
|
+
<v6:Amount>
|
105
|
+
<v6:Currency>CAD</v6:Currency>
|
106
|
+
<v6:Amount>1.91</v6:Amount>
|
107
|
+
</v6:Amount>
|
108
|
+
</v6:Surcharges>
|
109
|
+
</v6:ShipmentRateDetail>
|
110
|
+
<v6:RatedPackages>
|
111
|
+
<v6:PackageRateDetail>
|
112
|
+
<v6:RateType>PAYOR_ACCOUNT</v6:RateType>
|
113
|
+
<v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod>
|
114
|
+
<v6:BillingWeight>
|
115
|
+
<v6:Units>KG</v6:Units>
|
116
|
+
<v6:Value>1.0</v6:Value>
|
117
|
+
</v6:BillingWeight>
|
118
|
+
<v6:BaseCharge>
|
119
|
+
<v6:Currency>CAD</v6:Currency>
|
120
|
+
<v6:Amount>14.31</v6:Amount>
|
121
|
+
</v6:BaseCharge>
|
122
|
+
<v6:TotalFreightDiscounts>
|
123
|
+
<v6:Currency>CAD</v6:Currency>
|
124
|
+
<v6:Amount>0.0</v6:Amount>
|
125
|
+
</v6:TotalFreightDiscounts>
|
126
|
+
<v6:NetFreight>
|
127
|
+
<v6:Currency>CAD</v6:Currency>
|
128
|
+
<v6:Amount>14.31</v6:Amount>
|
129
|
+
</v6:NetFreight>
|
130
|
+
<v6:TotalSurcharges>
|
131
|
+
<v6:Currency>CAD</v6:Currency>
|
132
|
+
<v6:Amount>0.75</v6:Amount>
|
133
|
+
</v6:TotalSurcharges>
|
134
|
+
<v6:NetFedExCharge>
|
135
|
+
<v6:Currency>CAD</v6:Currency>
|
136
|
+
<v6:Amount>15.06</v6:Amount>
|
137
|
+
</v6:NetFedExCharge>
|
138
|
+
<v6:TotalTaxes>
|
139
|
+
<v6:Currency>CAD</v6:Currency>
|
140
|
+
<v6:Amount>0.0</v6:Amount>
|
141
|
+
</v6:TotalTaxes>
|
142
|
+
<v6:NetCharge>
|
143
|
+
<v6:Currency>CAD</v6:Currency>
|
144
|
+
<v6:Amount>15.06</v6:Amount>
|
145
|
+
</v6:NetCharge>
|
146
|
+
<v6:TotalRebates>
|
147
|
+
<v6:Currency>CAD</v6:Currency>
|
148
|
+
<v6:Amount>0.0</v6:Amount>
|
149
|
+
</v6:TotalRebates>
|
150
|
+
<v6:Surcharges>
|
151
|
+
<v6:SurchargeType>FUEL</v6:SurchargeType>
|
152
|
+
<v6:Level>PACKAGE</v6:Level>
|
153
|
+
<v6:Description>FedEx Ground Fuel</v6:Description>
|
154
|
+
<v6:Amount>
|
155
|
+
<v6:Currency>CAD</v6:Currency>
|
156
|
+
<v6:Amount>0.75</v6:Amount>
|
157
|
+
</v6:Amount>
|
158
|
+
</v6:Surcharges>
|
159
|
+
</v6:PackageRateDetail>
|
160
|
+
</v6:RatedPackages>
|
161
|
+
<v6:RatedPackages>
|
162
|
+
<v6:PackageRateDetail>
|
163
|
+
<v6:RateType>PAYOR_ACCOUNT</v6:RateType>
|
164
|
+
<v6:RatedWeightMethod>ACTUAL</v6:RatedWeightMethod>
|
165
|
+
<v6:BillingWeight>
|
166
|
+
<v6:Units>KG</v6:Units>
|
167
|
+
<v6:Value>4.0</v6:Value>
|
168
|
+
</v6:BillingWeight>
|
169
|
+
<v6:BaseCharge>
|
170
|
+
<v6:Currency>CAD</v6:Currency>
|
171
|
+
<v6:Amount>22.14</v6:Amount>
|
172
|
+
</v6:BaseCharge>
|
173
|
+
<v6:TotalFreightDiscounts>
|
174
|
+
<v6:Currency>CAD</v6:Currency>
|
175
|
+
<v6:Amount>0.0</v6:Amount>
|
176
|
+
</v6:TotalFreightDiscounts>
|
177
|
+
<v6:NetFreight>
|
178
|
+
<v6:Currency>CAD</v6:Currency>
|
179
|
+
<v6:Amount>22.14</v6:Amount>
|
180
|
+
</v6:NetFreight>
|
181
|
+
<v6:TotalSurcharges>
|
182
|
+
<v6:Currency>CAD</v6:Currency>
|
183
|
+
<v6:Amount>1.16</v6:Amount>
|
184
|
+
</v6:TotalSurcharges>
|
185
|
+
<v6:NetFedExCharge>
|
186
|
+
<v6:Currency>CAD</v6:Currency>
|
187
|
+
<v6:Amount>23.3</v6:Amount>
|
188
|
+
</v6:NetFedExCharge>
|
189
|
+
<v6:TotalTaxes>
|
190
|
+
<v6:Currency>CAD</v6:Currency>
|
191
|
+
<v6:Amount>0.0</v6:Amount>
|
192
|
+
</v6:TotalTaxes>
|
193
|
+
<v6:NetCharge>
|
194
|
+
<v6:Currency>CAD</v6:Currency>
|
195
|
+
<v6:Amount>23.3</v6:Amount>
|
196
|
+
</v6:NetCharge>
|
197
|
+
<v6:TotalRebates>
|
198
|
+
<v6:Currency>CAD</v6:Currency>
|
199
|
+
<v6:Amount>0.0</v6:Amount>
|
200
|
+
</v6:TotalRebates>
|
201
|
+
<v6:Surcharges>
|
202
|
+
<v6:SurchargeType>FUEL</v6:SurchargeType>
|
203
|
+
<v6:Level>PACKAGE</v6:Level>
|
204
|
+
<v6:Description>FedEx Ground Fuel</v6:Description>
|
205
|
+
<v6:Amount>
|
206
|
+
<v6:Currency>CAD</v6:Currency>
|
207
|
+
<v6:Amount>1.16</v6:Amount>
|
208
|
+
</v6:Amount>
|
209
|
+
</v6:Surcharges>
|
210
|
+
</v6:PackageRateDetail>
|
211
|
+
</v6:RatedPackages>
|
212
|
+
</v6:RatedShipmentDetails>
|
213
|
+
</v6:RateReplyDetails>
|
214
|
+
</v6:RateReply>
|