reactive_shipping 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"services": {
|
|
3
|
+
"service": [{
|
|
4
|
+
"code": "INT_PARCEL_EXP_OWN_PACKAGING",
|
|
5
|
+
"name": "Express",
|
|
6
|
+
"price": "82.87",
|
|
7
|
+
"max_extra_cover": 5000,
|
|
8
|
+
"options": {
|
|
9
|
+
"option": [{
|
|
10
|
+
"code": "INT_TRACKING",
|
|
11
|
+
"name": "Tracking"
|
|
12
|
+
}, {
|
|
13
|
+
"code": "INT_SIGNATURE_ON_DELIVERY",
|
|
14
|
+
"name": "Signature on delivery"
|
|
15
|
+
}, {
|
|
16
|
+
"code": "INT_SMS_TRACK_ADVICE",
|
|
17
|
+
"name": "SMS track advice"
|
|
18
|
+
}, {
|
|
19
|
+
"code": "INT_EXTRA_COVER",
|
|
20
|
+
"name": "Extra Cover"
|
|
21
|
+
}]
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
"code": "INT_PARCEL_STD_OWN_PACKAGING",
|
|
25
|
+
"name": "Standard",
|
|
26
|
+
"price": "71.20",
|
|
27
|
+
"max_extra_cover": 5000,
|
|
28
|
+
"options": {
|
|
29
|
+
"option": [{
|
|
30
|
+
"code": "INT_TRACKING",
|
|
31
|
+
"name": "Tracking"
|
|
32
|
+
}, {
|
|
33
|
+
"code": "INT_EXTRA_COVER",
|
|
34
|
+
"name": "Extra Cover"
|
|
35
|
+
}, {
|
|
36
|
+
"code": "INT_SIGNATURE_ON_DELIVERY",
|
|
37
|
+
"name": "Signature on delivery"
|
|
38
|
+
}, {
|
|
39
|
+
"code": "INT_SMS_TRACK_ADVICE",
|
|
40
|
+
"name": "SMS track advice"
|
|
41
|
+
}]
|
|
42
|
+
}
|
|
43
|
+
}, {
|
|
44
|
+
"code": "INT_PARCEL_SEA_OWN_PACKAGING",
|
|
45
|
+
"name": "Economy Sea",
|
|
46
|
+
"price": "41.54",
|
|
47
|
+
"max_extra_cover": 5000,
|
|
48
|
+
"options": {
|
|
49
|
+
"option": [{
|
|
50
|
+
"code": "INT_EXTRA_COVER",
|
|
51
|
+
"name": "Extra Cover"
|
|
52
|
+
}, {
|
|
53
|
+
"code": "INT_SIGNATURE_ON_DELIVERY",
|
|
54
|
+
"name": "Signature on delivery"
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
}]
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"courier_defaulting_to_nationwide":false,"post_defaulting_to_nationwide":false,"post_large_delivery_type":"within_island","info":{"lat_long_src":"-41.2829189300537,174.7841796875","dimensions":"Weight 0.25kg; Volumetric Weight 0.1064kg; 190.0x140.0x20.0","resolved_postcode_dest":"1010","resolved_postcode_src":"6011","resolved_dest_txt":"1010","lat_long_dest":"-36.8051338195801,174.981109619141","resolved_source_txt":"6011"},"products":[{"size":"C5","cost":"3.00","code":"PKTC5","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"165*235*70 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=5-c5-PKTC5","service_code":"PKPC5","height":165,"service_group_description":"ParcelPost","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"C5 Postage Only","width":70},{"size":"C5","cost":"3.60","code":"PKTC5,PKTEF","image_url":null,"product_url":null,"delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"165*235*70 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=6-c5-PKTC5,PKTEF","service_code":"PKFC5","height":165,"service_group_description":"ParcelPost Fast","packaging":"postage_only","speed_description":"Next working day","length":235,"description":"C5 Postage Only","width":70},{"size":"C5","cost":"4.00","code":"PIKFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2086/pikfc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/13-c5-PIKFC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"flat","speed_description":"1 - 3 working days","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.20","code":"PCB3C5","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"165*235*70 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=21-c5-PCB3C5","service_code":"PCM3C5","height":165,"service_group_description":"ParcelPost Tracked","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"C5 Postage Only - Tracked","width":70},{"size":"C5","cost":"4.50","code":"PIFFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2090/piffc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/15-c5-PIFFC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"flat","speed_description":"Next working day","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.50","code":"PIKBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2088/pikbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/14-c5-PIKBC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.00","code":"PICFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2095/picfc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/26-c5-PICFC5","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"185*270* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Tracked","packaging":"flat","speed_description":"1 - 3 working days","length":270,"description":"C5 Flat Bag - Tracked","width":null},{"size":"C5","cost":"5.00","code":"PIFBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2092/pifbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/16-c5-PIFBC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"bubble","speed_description":"Next working day","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.50","code":"PICBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2099/picbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/27-c5-PICBC5","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"185*270* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Tracked","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag - Tracked","width":null},{"size":"C5","cost":"6.55","code":"NZPROA5","image_url":null,"product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/44-c5-NZPROA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Flat Bag","width":null},{"size":"C5","cost":"7.15","code":"NZPRBA5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2040/nzprba5.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/46-c5-NZPRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag","width":null},{"size":"C5","cost":"8.80","code":"NZSROA5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2039/nzproa5.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/45-c5-NZSROA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Flat Bag S/R","width":null},{"size":"C5","cost":"8.90","code":"NZSRBA5","image_url":null,"product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/47-c5-NZSRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag S/R","width":null}],"courier_large_delivery_type":null,"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"courier_defaulting_to_nationwide":false,"post_defaulting_to_nationwide":false,"post_large_delivery_type":"within_island","info":{"lat_long_src":"-41.2829189300537,174.7841796875","dimensions":"Weight 0.0kg; Volumetric Weight 0.0kg; 0.0x0.0x0.0","resolved_postcode_dest":"1010","resolved_postcode_src":"6011","resolved_dest_txt":"1010","lat_long_dest":"-36.8051338195801,174.981109619141","resolved_source_txt":"6011"},"products":[{"size":"DLE","cost":"2.40","code":"PKTDLE","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"130*235*70 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=1-dle-PKTDLE","service_code":"PKPDLE","height":130,"service_group_description":"ParcelPost","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"DLE Postage Only","width":70},{"size":"DLE","cost":"3.00","code":"PKTDLE,PKTEF","image_url":null,"product_url":null,"delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"130*235*70 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=2-dle-PKTDLE,PKTEF","service_code":"PKFDLE","height":130,"service_group_description":"ParcelPost Fast","packaging":"postage_only","speed_description":"Next working day","length":235,"description":"DLE Postage Only","width":70},{"size":"C5","cost":"4.00","code":"PIKFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2086/pikfc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/13-c5-PIKFC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"flat","speed_description":"1 - 3 working days","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.20","code":"PCB3C5","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"165*235*70 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=21-c5-PCB3C5","service_code":"PCM3C5","height":165,"service_group_description":"ParcelPost Tracked","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"C5 Postage Only - Tracked","width":70},{"size":"DLE","cost":"4.50","code":"PICFDLE","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2094/picfdle_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/25-dle-PICFDLE","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"125*230* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":125,"service_group_description":"ParcelPost Tracked","packaging":"flat","speed_description":"1 - 3 working days","length":230,"description":"DLE Flat Bag - Tracked","width":null},{"size":"C5","cost":"4.50","code":"PIFFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2090/piffc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/15-c5-PIFFC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"flat","speed_description":"Next working day","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.50","code":"PIKBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2088/pikbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/14-c5-PIKBC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.00","code":"PIFBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2092/pifbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/16-c5-PIFBC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"bubble","speed_description":"Next working day","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.50","code":"PICBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2099/picbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/27-c5-PICBC5","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"185*270* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Tracked","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag - Tracked","width":null},{"size":"DLE","cost":"5.89","code":"NZPRODL","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2037/nzprodl.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/42-dle-NZPRODL","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"130*240* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":130,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":240,"description":"DLE Ready To Go Courier Flat Bag","width":null},{"size":"C5","cost":"7.15","code":"NZPRBA5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2040/nzprba5.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/46-c5-NZPRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag","width":null},{"size":"DLE","cost":"8.30","code":"NZSRODL","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2038/nzprodl.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/43-dle-NZSRODL","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"130*240* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":130,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":240,"description":"DLE Ready To Go Courier Flat Bag S/R","width":null},{"size":"C5","cost":"8.90","code":"NZSRBA5","image_url":null,"product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/47-c5-NZSRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag S/R","width":null}],"courier_large_delivery_type":null,"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"errors":["Weight can only be between 0 and 25kg"],"message":"Weight can only be between 0 and 25kg","status":"failure"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"courier_defaulting_to_nationwide":false,"post_defaulting_to_nationwide":false,"post_large_delivery_type":"within_island","info":{"lat_long_src":"-41.2829189300537,174.7841796875","dimensions":"Weight 0.1kg; Volumetric Weight 0.0kg; 930.0x0.0x0.0","resolved_postcode_dest":"1010","resolved_postcode_src":"6011","resolved_dest_txt":"1010","lat_long_dest":"-36.8051338195801,174.981109619141","resolved_source_txt":"6011"},"products":[{"size":null,"cost":"7.50","code":"PCBWI","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked_zonal","weight":25.0,"product_max_dimensions":"15000*15000*15000 25000gms","priority":"parcel_post_tracked_zonal","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=37--PCBWI","service_code":"PCMW5","height":15000,"service_group_description":"ParcelPost Tracked Zonal","packaging":"postage_only","speed_description":"1 - 2 working days","length":15000,"description":"Postage Only - Zonal - Within Island - Tracked","width":15000}],"courier_large_delivery_type":null,"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"courier_defaulting_to_nationwide":false,"post_defaulting_to_nationwide":false,"post_large_delivery_type":"within_island","info":{"lat_long_src":"-41.2829189300537,174.7841796875","dimensions":"Weight 0.226796185kg; Volumetric Weight 0.0032774128kg; 25.4x25.4x25.4","resolved_postcode_dest":"1010","resolved_postcode_src":"6011","resolved_dest_txt":"1010","lat_long_dest":"-36.8051338195801,174.981109619141","resolved_source_txt":"6011"},"products":[{"size":"DLE","cost":"2.40","code":"PKTDLE","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"130*235*70 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=1-dle-PKTDLE","service_code":"PKPDLE","height":130,"service_group_description":"ParcelPost","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"DLE Postage Only","width":70},{"size":"DLE","cost":"3.00","code":"PKTDLE,PKTEF","image_url":null,"product_url":null,"delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"130*235*70 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=2-dle-PKTDLE,PKTEF","service_code":"PKFDLE","height":130,"service_group_description":"ParcelPost Fast","packaging":"postage_only","speed_description":"Next working day","length":235,"description":"DLE Postage Only","width":70},{"size":"C5","cost":"4.00","code":"PIKFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2086/pikfc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/13-c5-PIKFC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"flat","speed_description":"1 - 3 working days","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.20","code":"PCB3C5","image_url":null,"product_url":null,"delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"165*235*70 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":"https://www.nzpost.co.nz/cart/checkout?code=21-c5-PCB3C5","service_code":"PCM3C5","height":165,"service_group_description":"ParcelPost Tracked","packaging":"postage_only","speed_description":"1 - 3 working days","length":235,"description":"C5 Postage Only - Tracked","width":70},{"size":"DLE","cost":"4.50","code":"PICFDLE","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2094/picfdle_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/25-dle-PICFDLE","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"125*230* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":125,"service_group_description":"ParcelPost Tracked","packaging":"flat","speed_description":"1 - 3 working days","length":230,"description":"DLE Flat Bag - Tracked","width":null},{"size":"C5","cost":"4.50","code":"PIFFC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2090/piffc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/15-c5-PIFFC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"flat","speed_description":"Next working day","length":270,"description":"C5 Flat Bag","width":null},{"size":"C5","cost":"4.50","code":"PIKBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2088/pikbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/14-c5-PIKBC5","delivery_rank":1.5,"tracked":false,"service":"parcel_post","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.00","code":"PIFBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2092/pifbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/16-c5-PIFBC5","delivery_rank":1,"tracked":false,"service":"parcel_post_fast","weight":1.5,"product_max_dimensions":"185*270* 1500gms","priority":"parcel_post_fast","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Fast","packaging":"bubble","speed_description":"Next working day","length":270,"description":"C5 Bubble Bag","width":null},{"size":"C5","cost":"5.50","code":"PICBC5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2099/picbc5_0.gif","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/27-c5-PICBC5","delivery_rank":1.5,"tracked":true,"service":"parcel_post_tracked","weight":3.0,"product_max_dimensions":"185*270* 3000gms","priority":"parcel_post_tracked","signature":false,"carrier":"nzpost","label_url":null,"service_code":null,"height":185,"service_group_description":"ParcelPost Tracked","packaging":"bubble","speed_description":"1 - 3 working days","length":270,"description":"C5 Bubble Bag - Tracked","width":null},{"size":"DLE","cost":"5.89","code":"NZPRODL","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2037/nzprodl.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/42-dle-NZPRODL","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"130*240* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":130,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":240,"description":"DLE Ready To Go Courier Flat Bag","width":null},{"size":"C5","cost":"7.15","code":"NZPRBA5","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2040/nzprba5.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/46-c5-NZPRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":false,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag","width":null},{"size":"DLE","cost":"8.30","code":"NZSRODL","image_url":"http://www.nzpost.co.nz/sites/default/files/imagecache/product_full/product/2038/nzprodl.jpg","product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/43-dle-NZSRODL","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"130*240* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":130,"service_group_description":"Courier","packaging":"flat","speed_description":"Next working day","length":240,"description":"DLE Ready To Go Courier Flat Bag S/R","width":null},{"size":"C5","cost":"8.90","code":"NZSRBA5","image_url":null,"product_url":"http://www.nzpost.co.nz/products-services/postage-packaging/47-c5-NZSRBA5","delivery_rank":1,"tracked":true,"service":"courier","weight":3.0,"product_max_dimensions":"185*280* 3000gms","priority":"courier","signature":true,"carrier":"courierpost","label_url":null,"service_code":null,"height":185,"service_group_description":"Courier","packaging":"bubble","speed_description":"Next working day","length":280,"description":"C5 Ready To Go Courier Bubble Bag S/R","width":null}],"courier_large_delivery_type":null,"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"products":[{"group":"International Express Courier","price":"65.25","name":"Int Express Pcl Zone C 500gm","code":"ICPNC500","max_delivery_target":5,"signature_required":true,"min_delivery_target":1,"has_tracking":true},{"group":"International Economy Courier","price":"42.5","name":"Int Econ Cour Pcl Zn C 500gm","code":"IEZPC500","max_delivery_target":6,"signature_required":true,"min_delivery_target":2,"has_tracking":true},{"group":"International Air","price":"12.5","name":"Zone C AirPost Cust Pcl 500gm","code":"IACNC500","max_delivery_target":10,"signature_required":false,"min_delivery_target":3,"has_tracking":false},{"group":"International Economy","price":"11.25","name":"Zone C EconomyPost Pcl 500gm","code":"IECNC500","max_delivery_target":25,"signature_required":false,"min_delivery_target":10,"has_tracking":false}],"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"products":[{"group":"International Express Courier","price":"130.73","name":"Int Express Pcl Zone C 3.5kg","code":"ICPNC35","max_delivery_target":5,"signature_required":true,"min_delivery_target":1,"has_tracking":true}],"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"products":[{"group":"International Express Courier","price":"65.25","name":"Int Express Pcl Zone C 500gm","code":"ICPNC500","max_delivery_target":5,"signature_required":true,"min_delivery_target":1,"has_tracking":true},{"group":"International Economy Courier","price":"42.5","name":"Int Econ Cour Pcl Zn C 500gm","code":"IEZPC500","max_delivery_target":6,"signature_required":true,"min_delivery_target":2,"has_tracking":true},{"group":"International Air","price":"12.1","name":"Zone C AirPost Cust Pcl 500gm","code":"IACNC500","max_delivery_target":10,"signature_required":false,"min_delivery_target":3,"has_tracking":false},{"group":"International Economy","price":"10.89","name":"Zone C EconomyPost Pcl 500gm","code":"IECNC500","max_delivery_target":25,"signature_required":false,"min_delivery_target":10,"has_tracking":false}],"status":"success"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"products":[{"group":"International Express Courier","price":"130.73","name":"Int Express Pcl Zone C 3.5kg","code":"ICPNC35","max_delivery_target":5,"signature_required":true,"min_delivery_target":1,"has_tracking":true},{"group":"International Economy Courier","price":"86.15","name":"Int Econ Cour Pcl Zn C 3.5kg","code":"IEZPC35","max_delivery_target":6,"signature_required":true,"min_delivery_target":2,"has_tracking":true},{"group":"International Air","price":"68.65","name":"Zone C AirPost Cust Pcl 3.5kg","code":"IACNC35","max_delivery_target":10,"signature_required":false,"min_delivery_target":3,"has_tracking":false},{"group":"International Economy","price":"61.79","name":"Zone C EconomyPost Pcl 3.5kg","code":"IECNC35","max_delivery_target":25,"signature_required":false,"min_delivery_target":10,"has_tracking":false}],"status":"success"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE eparcel SYSTEM "http://sellonline.canadapost.ca/DevelopersResources/protocolV3/eParcel.dtd">
|
|
3
|
+
<eparcel>
|
|
4
|
+
<language>en</language>
|
|
5
|
+
<ratesAndServicesRequest>
|
|
6
|
+
<merchantCPCID>CPC_DEMO_XML</merchantCPCID>
|
|
7
|
+
<fromPostalCode>K1N 5T2</fromPostalCode>
|
|
8
|
+
<itemsPrice>25.00</itemsPrice>
|
|
9
|
+
<lineItems>
|
|
10
|
+
<item>
|
|
11
|
+
<quantity>1</quantity>
|
|
12
|
+
<weight>0.5</weight>
|
|
13
|
+
<length>4.0</length>
|
|
14
|
+
<width>3.0</width>
|
|
15
|
+
<height>2.0</height>
|
|
16
|
+
<description>a box full of stuff</description>
|
|
17
|
+
<readyToShip/>
|
|
18
|
+
</item>
|
|
19
|
+
</lineItems>
|
|
20
|
+
<city>Beverly Hills</city>
|
|
21
|
+
<provOrState>CA</provOrState>
|
|
22
|
+
<country>United States</country>
|
|
23
|
+
<postalCode>90210</postalCode>
|
|
24
|
+
</ratesAndServicesRequest>
|
|
25
|
+
</eparcel>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE eparcel [
|
|
3
|
+
<!-- EVERY REQUEST CONTAIN THE eparcel TAG -->
|
|
4
|
+
<!ELEMENT eparcel (ratesAndServicesResponse)>
|
|
5
|
+
<!-- ********************************************************* -->
|
|
6
|
+
<!-- * Standard response for request for rates and services * -->
|
|
7
|
+
<!-- ********************************************************* -->
|
|
8
|
+
<!ELEMENT ratesAndServicesResponse (statusCode , statusMessage+ , requestID , handling , language , product+ , packing* , emptySpace* , shippingOptions , comment , nearestPostalOutlet*)>
|
|
9
|
+
<!ELEMENT statusCode (#PCDATA)>
|
|
10
|
+
<!ELEMENT statusMessage (#PCDATA)>
|
|
11
|
+
<!ELEMENT requestID (#PCDATA)>
|
|
12
|
+
<!ELEMENT handling (#PCDATA)>
|
|
13
|
+
<!ELEMENT language (#PCDATA)>
|
|
14
|
+
<!ELEMENT product (name , rate , shippingDate , deliveryDate , deliveryDayOfWeek , nextDayAM? , packingID)>
|
|
15
|
+
<!ATTLIST product id CDATA #REQUIRED>
|
|
16
|
+
<!ATTLIST product sequence CDATA #REQUIRED>
|
|
17
|
+
<!ELEMENT name (#PCDATA)>
|
|
18
|
+
<!ELEMENT rate (#PCDATA)>
|
|
19
|
+
<!ELEMENT shippingDate (#PCDATA)>
|
|
20
|
+
<!ELEMENT deliveryDate (#PCDATA)>
|
|
21
|
+
<!ELEMENT deliveryDayOfWeek (#PCDATA)>
|
|
22
|
+
<!ELEMENT nextDayAM (#PCDATA)>
|
|
23
|
+
<!ELEMENT packingID (#PCDATA)>
|
|
24
|
+
<!ELEMENT packing (packingID , box+)>
|
|
25
|
+
<!ELEMENT box (name , weight , expediterWeight , length , width , height , packedItem+)>
|
|
26
|
+
<!ELEMENT weight (#PCDATA)>
|
|
27
|
+
<!ELEMENT expediterWeight (#PCDATA)>
|
|
28
|
+
<!ELEMENT length (#PCDATA)>
|
|
29
|
+
<!ELEMENT width (#PCDATA)>
|
|
30
|
+
<!ELEMENT height (#PCDATA)>
|
|
31
|
+
<!ELEMENT packedItem (quantity , description)>
|
|
32
|
+
<!ELEMENT quantity (#PCDATA)>
|
|
33
|
+
<!ELEMENT description (#PCDATA)>
|
|
34
|
+
<!ELEMENT emptySpace (length , width , height , weight)>
|
|
35
|
+
<!ELEMENT shippingOptions (insurance , deliveryConfirmation , signature , flexiblePaymentAvailable?)>
|
|
36
|
+
<!ELEMENT insurance (#PCDATA)>
|
|
37
|
+
<!ELEMENT deliveryConfirmation (#PCDATA)>
|
|
38
|
+
<!ELEMENT signature (#PCDATA)>
|
|
39
|
+
<!ELEMENT flexiblePaymentAvailable EMPTY>
|
|
40
|
+
<!ELEMENT comment (#PCDATA)>
|
|
41
|
+
<!-- ********************************************************* -->
|
|
42
|
+
<!-- * 'nearestPostalOutlet' is optional and is returned * -->
|
|
43
|
+
<!-- * only if the merchant profile has this option enabled * -->
|
|
44
|
+
<!-- ********************************************************* -->
|
|
45
|
+
<!ELEMENT nearestPostalOutlet (postalOutletSequenceNo , distance , outletName , businessName , postalAddress , phoneNumber , businessHours+)>
|
|
46
|
+
<!ELEMENT postalOutletSequenceNo (#PCDATA)>
|
|
47
|
+
<!ELEMENT distance (#PCDATA)>
|
|
48
|
+
<!ELEMENT outletName (#PCDATA)>
|
|
49
|
+
<!ELEMENT businessName (#PCDATA)>
|
|
50
|
+
<!ELEMENT postalAddress (addressLine+ , postalCode , municipality , province?)>
|
|
51
|
+
<!ELEMENT addressLine (#PCDATA)>
|
|
52
|
+
<!ELEMENT postalCode (#PCDATA)>
|
|
53
|
+
<!ELEMENT municipality (#PCDATA)>
|
|
54
|
+
<!ELEMENT province (#PCDATA)>
|
|
55
|
+
<!ELEMENT phoneNumber (#PCDATA)>
|
|
56
|
+
<!ELEMENT businessHours (dayId , dayOfWeek , time)>
|
|
57
|
+
<!ELEMENT dayId (#PCDATA)>
|
|
58
|
+
<!ELEMENT dayOfWeek (#PCDATA)>
|
|
59
|
+
<!ELEMENT time (#PCDATA)>
|
|
60
|
+
]>
|
|
61
|
+
<eparcel>
|
|
62
|
+
<ratesAndServicesResponse>
|
|
63
|
+
<statusCode>1</statusCode>
|
|
64
|
+
<statusMessage>OK</statusMessage>
|
|
65
|
+
<requestID>6877575</requestID>
|
|
66
|
+
<handling>0.0</handling>
|
|
67
|
+
<language>0</language>
|
|
68
|
+
<product id="1040" sequence="1">
|
|
69
|
+
<name>Priority Courier</name>
|
|
70
|
+
<rate>40.28</rate>
|
|
71
|
+
<shippingDate>2010-08-03</shippingDate>
|
|
72
|
+
<deliveryDate>2010-08-04</deliveryDate>
|
|
73
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
74
|
+
<nextDayAM>true</nextDayAM>
|
|
75
|
+
<packingID>P_0</packingID>
|
|
76
|
+
</product>
|
|
77
|
+
<product id="1020" sequence="2">
|
|
78
|
+
<name>Expedited</name>
|
|
79
|
+
<rate>17.16</rate>
|
|
80
|
+
<shippingDate>2010-08-03</shippingDate>
|
|
81
|
+
<deliveryDate>2010-08-04</deliveryDate>
|
|
82
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
83
|
+
<nextDayAM>false</nextDayAM>
|
|
84
|
+
<packingID>P_0</packingID>
|
|
85
|
+
</product>
|
|
86
|
+
<product id="1010" sequence="3">
|
|
87
|
+
<name>Regular</name>
|
|
88
|
+
<rate>17.16</rate>
|
|
89
|
+
<shippingDate>2010-08-03</shippingDate>
|
|
90
|
+
<deliveryDate>2010-08-06</deliveryDate>
|
|
91
|
+
<deliveryDayOfWeek>6</deliveryDayOfWeek>
|
|
92
|
+
<nextDayAM>false</nextDayAM>
|
|
93
|
+
<packingID>P_0</packingID>
|
|
94
|
+
</product>
|
|
95
|
+
<packing>
|
|
96
|
+
<packingID>P_0</packingID>
|
|
97
|
+
<box>
|
|
98
|
+
<name>Small Box</name>
|
|
99
|
+
<weight>1.691</weight>
|
|
100
|
+
<expediterWeight>1.691</expediterWeight>
|
|
101
|
+
<length>25.0</length>
|
|
102
|
+
<width>17.0</width>
|
|
103
|
+
<height>16.0</height>
|
|
104
|
+
<packedItem>
|
|
105
|
+
<quantity>1</quantity>
|
|
106
|
+
<description>KAO Diskettes</description>
|
|
107
|
+
</packedItem>
|
|
108
|
+
</box>
|
|
109
|
+
<box>
|
|
110
|
+
<name>My Ready To Ship Item</name>
|
|
111
|
+
<weight>2.0</weight>
|
|
112
|
+
<expediterWeight>1.5</expediterWeight>
|
|
113
|
+
<length>30.0</length>
|
|
114
|
+
<width>20.0</width>
|
|
115
|
+
<height>20.0</height>
|
|
116
|
+
<packedItem>
|
|
117
|
+
<quantity>1</quantity>
|
|
118
|
+
<description>My Ready To Ship Item</description>
|
|
119
|
+
</packedItem>
|
|
120
|
+
</box>
|
|
121
|
+
</packing>
|
|
122
|
+
<shippingOptions>
|
|
123
|
+
<insurance>No</insurance>
|
|
124
|
+
<deliveryConfirmation>No</deliveryConfirmation>
|
|
125
|
+
<signature>No</signature>
|
|
126
|
+
</shippingOptions>
|
|
127
|
+
<comment/>
|
|
128
|
+
</ratesAndServicesResponse>
|
|
129
|
+
</eparcel>
|
|
130
|
+
<!--END_OF_EPARCEL-->
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" ?>
|
|
2
|
+
<!DOCTYPE eparcel [
|
|
3
|
+
<!ELEMENT eparcel (error)>
|
|
4
|
+
<!ELEMENT error (statusCode,statusMessage*, requestID)>
|
|
5
|
+
<!ELEMENT statusCode (#PCDATA)>
|
|
6
|
+
<!ELEMENT statusMessage (#PCDATA)>
|
|
7
|
+
<!ELEMENT requestID (#PCDATA)>
|
|
8
|
+
]>
|
|
9
|
+
<eparcel>
|
|
10
|
+
<error>
|
|
11
|
+
<statusCode>-3004</statusCode>
|
|
12
|
+
<statusMessage>Parcel too heavy to be shipped with CPC.</statusMessage>
|
|
13
|
+
<requestID>3070209</requestID>
|
|
14
|
+
</error>
|
|
15
|
+
</eparcel>
|
|
16
|
+
<!--END_OF_EPARCEL-->
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE eparcel [
|
|
3
|
+
<!-- EVERY REQUEST CONTAIN THE eparcel TAG --><!ELEMENT eparcel (ratesAndServicesResponse)>
|
|
4
|
+
<!-- ********************************************************* --><!-- * Standard response for request for rates and services * --><!-- ********************************************************* --><!ELEMENT ratesAndServicesResponse (statusCode , statusMessage+ , requestID , handling , language , product+ , packing* , emptySpace* , shippingOptions , comment , nearestPostalOutlet*)>
|
|
5
|
+
<!ELEMENT statusCode (#PCDATA)>
|
|
6
|
+
<!ELEMENT statusMessage (#PCDATA)>
|
|
7
|
+
<!ELEMENT requestID (#PCDATA)>
|
|
8
|
+
<!ELEMENT handling (#PCDATA)>
|
|
9
|
+
<!ELEMENT language (#PCDATA)>
|
|
10
|
+
<!ELEMENT product (name , rate , shippingDate , deliveryDate , deliveryDayOfWeek , nextDayAM? , packingID)>
|
|
11
|
+
<!ATTLIST product id CDATA #REQUIRED>
|
|
12
|
+
<!ATTLIST product sequence CDATA #REQUIRED>
|
|
13
|
+
<!ELEMENT name (#PCDATA)>
|
|
14
|
+
<!ELEMENT rate (#PCDATA)>
|
|
15
|
+
<!ELEMENT shippingDate (#PCDATA)>
|
|
16
|
+
<!ELEMENT deliveryDate (#PCDATA)>
|
|
17
|
+
<!ELEMENT deliveryDayOfWeek (#PCDATA)>
|
|
18
|
+
<!ELEMENT nextDayAM (#PCDATA)>
|
|
19
|
+
<!ELEMENT packingID (#PCDATA)>
|
|
20
|
+
<!ELEMENT packing (packingID , box+)>
|
|
21
|
+
<!ELEMENT box (name , weight , expediterWeight , length , width , height , packedItem+)>
|
|
22
|
+
<!ELEMENT weight (#PCDATA)>
|
|
23
|
+
<!ELEMENT expediterWeight (#PCDATA)>
|
|
24
|
+
<!ELEMENT length (#PCDATA)>
|
|
25
|
+
<!ELEMENT width (#PCDATA)>
|
|
26
|
+
<!ELEMENT height (#PCDATA)>
|
|
27
|
+
<!ELEMENT packedItem (quantity , description)>
|
|
28
|
+
<!ELEMENT quantity (#PCDATA)>
|
|
29
|
+
<!ELEMENT description (#PCDATA)>
|
|
30
|
+
<!ELEMENT emptySpace (length , width , height , weight)>
|
|
31
|
+
<!ELEMENT shippingOptions (insurance , deliveryConfirmation , signature , flexiblePaymentAvailable?)>
|
|
32
|
+
<!ELEMENT insurance (#PCDATA)>
|
|
33
|
+
<!ELEMENT deliveryConfirmation (#PCDATA)>
|
|
34
|
+
<!ELEMENT signature (#PCDATA)>
|
|
35
|
+
<!ELEMENT flexiblePaymentAvailable EMPTY>
|
|
36
|
+
<!ELEMENT comment (#PCDATA)>
|
|
37
|
+
<!-- ********************************************************* --><!-- * 'nearestPostalOutlet' is optional and is returned * --><!-- * only if the merchant profile has this option enabled * --><!-- ********************************************************* --><!ELEMENT nearestPostalOutlet (postalOutletSequenceNo , distance , outletName , businessName , postalAddress , phoneNumber , businessHours+)>
|
|
38
|
+
<!ELEMENT postalOutletSequenceNo (#PCDATA)>
|
|
39
|
+
<!ELEMENT distance (#PCDATA)>
|
|
40
|
+
<!ELEMENT outletName (#PCDATA)>
|
|
41
|
+
<!ELEMENT businessName (#PCDATA)>
|
|
42
|
+
<!ELEMENT postalAddress (addressLine+ , postalCode , municipality , province?)>
|
|
43
|
+
<!ELEMENT addressLine (#PCDATA)>
|
|
44
|
+
<!ELEMENT postalCode (#PCDATA)>
|
|
45
|
+
<!ELEMENT municipality (#PCDATA)>
|
|
46
|
+
<!ELEMENT province (#PCDATA)>
|
|
47
|
+
<!ELEMENT phoneNumber (#PCDATA)>
|
|
48
|
+
<!ELEMENT businessHours (dayId , dayOfWeek , time)>
|
|
49
|
+
<!ELEMENT dayId (#PCDATA)>
|
|
50
|
+
<!ELEMENT dayOfWeek (#PCDATA)>
|
|
51
|
+
<!ELEMENT time (#PCDATA)>
|
|
52
|
+
]>
|
|
53
|
+
<eparcel>
|
|
54
|
+
<ratesAndServicesResponse>
|
|
55
|
+
<statusCode>1</statusCode>
|
|
56
|
+
<statusMessage>OK</statusMessage>
|
|
57
|
+
<requestID>7838534</requestID>
|
|
58
|
+
<handling>0.0</handling>
|
|
59
|
+
<language>1</language>
|
|
60
|
+
<product id="1040" sequence="1">
|
|
61
|
+
<name>Messageries prioritaires</name>
|
|
62
|
+
<rate>40.46</rate>
|
|
63
|
+
<shippingDate>2010-09-07</shippingDate>
|
|
64
|
+
<deliveryDate>2010-09-08</deliveryDate>
|
|
65
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
66
|
+
<nextDayAM>true</nextDayAM>
|
|
67
|
+
<packingID>P_0</packingID>
|
|
68
|
+
</product>
|
|
69
|
+
<product id="1020" sequence="2">
|
|
70
|
+
<name>Colis accélérés</name>
|
|
71
|
+
<rate>17.24</rate>
|
|
72
|
+
<shippingDate>2010-09-07</shippingDate>
|
|
73
|
+
<deliveryDate>2010-09-08</deliveryDate>
|
|
74
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
75
|
+
<nextDayAM>false</nextDayAM>
|
|
76
|
+
<packingID>P_0</packingID>
|
|
77
|
+
</product>
|
|
78
|
+
<product id="1010" sequence="3">
|
|
79
|
+
<name>Colis standard</name>
|
|
80
|
+
<rate>17.24</rate>
|
|
81
|
+
<shippingDate>2010-09-07</shippingDate>
|
|
82
|
+
<deliveryDate>2010-09-10</deliveryDate>
|
|
83
|
+
<deliveryDayOfWeek>6</deliveryDayOfWeek>
|
|
84
|
+
<nextDayAM>false</nextDayAM>
|
|
85
|
+
<packingID>P_0</packingID>
|
|
86
|
+
</product>
|
|
87
|
+
<packing>
|
|
88
|
+
<packingID>P_0</packingID>
|
|
89
|
+
<box>
|
|
90
|
+
<name>Small Box</name>
|
|
91
|
+
<weight>1.691</weight>
|
|
92
|
+
<expediterWeight>1.691</expediterWeight>
|
|
93
|
+
<length>25.0</length>
|
|
94
|
+
<width>17.0</width>
|
|
95
|
+
<height>16.0</height>
|
|
96
|
+
<packedItem>
|
|
97
|
+
<quantity>1</quantity>
|
|
98
|
+
<description>KAO Diskettes</description>
|
|
99
|
+
</packedItem>
|
|
100
|
+
</box>
|
|
101
|
+
<box>
|
|
102
|
+
<name>My Ready To Ship Item</name>
|
|
103
|
+
<weight>2.0</weight>
|
|
104
|
+
<expediterWeight>1.5</expediterWeight>
|
|
105
|
+
<length>30.0</length>
|
|
106
|
+
<width>20.0</width>
|
|
107
|
+
<height>20.0</height>
|
|
108
|
+
<packedItem>
|
|
109
|
+
<quantity>1</quantity>
|
|
110
|
+
<description>My Ready To Ship Item</description>
|
|
111
|
+
</packedItem>
|
|
112
|
+
</box>
|
|
113
|
+
</packing>
|
|
114
|
+
<shippingOptions>
|
|
115
|
+
<insurance>No</insurance>
|
|
116
|
+
<deliveryConfirmation>No</deliveryConfirmation>
|
|
117
|
+
<signature>No</signature>
|
|
118
|
+
</shippingOptions>
|
|
119
|
+
<comment/>
|
|
120
|
+
</ratesAndServicesResponse>
|
|
121
|
+
</eparcel>
|
|
122
|
+
<!--END_OF_EPARCEL-->
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE eparcel [
|
|
3
|
+
<!-- EVERY REQUEST CONTAIN THE eparcel TAG -->
|
|
4
|
+
<!ELEMENT eparcel (ratesAndServicesResponse)>
|
|
5
|
+
<!-- ********************************************************* -->
|
|
6
|
+
<!-- * Standard response for request for rates and services * -->
|
|
7
|
+
<!-- ********************************************************* -->
|
|
8
|
+
<!ELEMENT ratesAndServicesResponse (statusCode, statusMessage+, requestID, handling, language, product+, packing*, emptySpace*, shippingOptions, comment, nearestPostalOutlet*)>
|
|
9
|
+
<!ELEMENT statusCode (#PCDATA)>
|
|
10
|
+
<!ELEMENT statusMessage (#PCDATA)>
|
|
11
|
+
<!ELEMENT requestID (#PCDATA)>
|
|
12
|
+
<!ELEMENT handling (#PCDATA)>
|
|
13
|
+
<!ELEMENT language (#PCDATA)>
|
|
14
|
+
<!ELEMENT product (name, rate, shippingDate, deliveryDate, deliveryDayOfWeek, nextDayAM?, packingID)>
|
|
15
|
+
<!ATTLIST product
|
|
16
|
+
id CDATA #REQUIRED
|
|
17
|
+
sequence CDATA #REQUIRED
|
|
18
|
+
>
|
|
19
|
+
<!ELEMENT name (#PCDATA)>
|
|
20
|
+
<!ELEMENT rate (#PCDATA)>
|
|
21
|
+
<!ELEMENT shippingDate (#PCDATA)>
|
|
22
|
+
<!ELEMENT deliveryDate (#PCDATA)>
|
|
23
|
+
<!ELEMENT deliveryDayOfWeek (#PCDATA)>
|
|
24
|
+
<!ELEMENT nextDayAM (#PCDATA)>
|
|
25
|
+
<!ELEMENT packingID (#PCDATA)>
|
|
26
|
+
<!ELEMENT packing (packingID, box+)>
|
|
27
|
+
<!ELEMENT box (name, weight, expediterWeight, length, width, height, packedItem+)>
|
|
28
|
+
<!ELEMENT weight (#PCDATA)>
|
|
29
|
+
<!ELEMENT expediterWeight (#PCDATA)>
|
|
30
|
+
<!ELEMENT length (#PCDATA)>
|
|
31
|
+
<!ELEMENT width (#PCDATA)>
|
|
32
|
+
<!ELEMENT height (#PCDATA)>
|
|
33
|
+
<!ELEMENT packedItem (quantity, description)>
|
|
34
|
+
<!ELEMENT quantity (#PCDATA)>
|
|
35
|
+
<!ELEMENT description (#PCDATA)>
|
|
36
|
+
<!ELEMENT emptySpace (length, width, height, weight)>
|
|
37
|
+
<!ELEMENT shippingOptions (insurance, deliveryConfirmation, signature, flexiblePaymentAvailable?)>
|
|
38
|
+
<!ELEMENT insurance (#PCDATA)>
|
|
39
|
+
<!ELEMENT deliveryConfirmation (#PCDATA)>
|
|
40
|
+
<!ELEMENT signature (#PCDATA)>
|
|
41
|
+
<!ELEMENT flexiblePaymentAvailable EMPTY>
|
|
42
|
+
<!ELEMENT comment (#PCDATA)>
|
|
43
|
+
<!-- ********************************************************* -->
|
|
44
|
+
<!-- * 'nearestPostalOutlet' is optional and is returned * -->
|
|
45
|
+
<!-- * only if the merchant profile has this option enabled * -->
|
|
46
|
+
<!-- ********************************************************* -->
|
|
47
|
+
<!ELEMENT nearestPostalOutlet (postalOutletSequenceNo, distance, outletName, businessName, postalAddress, phoneNumber, businessHours+)>
|
|
48
|
+
<!ELEMENT postalOutletSequenceNo (#PCDATA)>
|
|
49
|
+
<!ELEMENT distance (#PCDATA)>
|
|
50
|
+
<!ELEMENT outletName (#PCDATA)>
|
|
51
|
+
<!ELEMENT businessName (#PCDATA)>
|
|
52
|
+
<!ELEMENT postalAddress (addressLine+, postalCode, municipality, province?)>
|
|
53
|
+
<!ELEMENT addressLine (#PCDATA)>
|
|
54
|
+
<!ELEMENT postalCode (#PCDATA)>
|
|
55
|
+
<!ELEMENT municipality (#PCDATA)>
|
|
56
|
+
<!ELEMENT province (#PCDATA)>
|
|
57
|
+
<!ELEMENT phoneNumber (#PCDATA)>
|
|
58
|
+
<!ELEMENT businessHours (dayId, dayOfWeek, time)>
|
|
59
|
+
<!ELEMENT dayId (#PCDATA)>
|
|
60
|
+
<!ELEMENT dayOfWeek (#PCDATA)>
|
|
61
|
+
<!ELEMENT time (#PCDATA)>
|
|
62
|
+
|
|
63
|
+
]>
|
|
64
|
+
<eparcel>
|
|
65
|
+
<ratesAndServicesResponse>
|
|
66
|
+
|
|
67
|
+
<statusCode>1</statusCode>
|
|
68
|
+
<statusMessage>OK</statusMessage>
|
|
69
|
+
<requestID>12471821</requestID>
|
|
70
|
+
<handling>1.0</handling>
|
|
71
|
+
<language>0</language>
|
|
72
|
+
<product id="2040" sequence="1">
|
|
73
|
+
<name>Priority Worldwide USA</name>
|
|
74
|
+
<rate>139.36</rate>
|
|
75
|
+
<shippingDate>2015-01-21</shippingDate>
|
|
76
|
+
<deliveryDate>www.canadapost.ca</deliveryDate>
|
|
77
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
78
|
+
<nextDayAM>false</nextDayAM>
|
|
79
|
+
<packingID>P_0</packingID>
|
|
80
|
+
</product>
|
|
81
|
+
<product id="2030" sequence="2">
|
|
82
|
+
<name>Xpresspost USA</name>
|
|
83
|
+
<rate>64.6</rate>
|
|
84
|
+
<shippingDate>2015-01-21</shippingDate>
|
|
85
|
+
<deliveryDate>2015-01-24</deliveryDate>
|
|
86
|
+
<deliveryDayOfWeek>7</deliveryDayOfWeek>
|
|
87
|
+
<nextDayAM>false</nextDayAM>
|
|
88
|
+
<packingID>P_0</packingID>
|
|
89
|
+
</product>
|
|
90
|
+
<product id="2020" sequence="3">
|
|
91
|
+
<name>Expedited US Business</name>
|
|
92
|
+
<rate>38.0</rate>
|
|
93
|
+
<shippingDate>2015-01-21</shippingDate>
|
|
94
|
+
<deliveryDate>2015-01-27</deliveryDate>
|
|
95
|
+
<deliveryDayOfWeek>3</deliveryDayOfWeek>
|
|
96
|
+
<nextDayAM>false</nextDayAM>
|
|
97
|
+
<packingID>P_0</packingID>
|
|
98
|
+
</product>
|
|
99
|
+
<product id="2000" sequence="4">
|
|
100
|
+
<name>Tracked Packet - USA</name>
|
|
101
|
+
<rate>32.82</rate>
|
|
102
|
+
<shippingDate>2015-01-21</shippingDate>
|
|
103
|
+
<deliveryDate>2015-01-29</deliveryDate>
|
|
104
|
+
<deliveryDayOfWeek>5</deliveryDayOfWeek>
|
|
105
|
+
<nextDayAM>false</nextDayAM>
|
|
106
|
+
<packingID>P_0</packingID>
|
|
107
|
+
</product>
|
|
108
|
+
<product id="2015" sequence="5">
|
|
109
|
+
<name>Small Packets Air</name>
|
|
110
|
+
<rate>21.58</rate>
|
|
111
|
+
<shippingDate>2015-01-21</shippingDate>
|
|
112
|
+
<deliveryDate>up to 2 weeks</deliveryDate>
|
|
113
|
+
<deliveryDayOfWeek>4</deliveryDayOfWeek>
|
|
114
|
+
<nextDayAM>false</nextDayAM>
|
|
115
|
+
<packingID>P_0</packingID>
|
|
116
|
+
</product>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<packing>
|
|
120
|
+
<packingID>P_0</packingID>
|
|
121
|
+
<box>
|
|
122
|
+
<name>a box full of stuff</name>
|
|
123
|
+
<weight>0.5</weight>
|
|
124
|
+
<expediterWeight>0.5</expediterWeight>
|
|
125
|
+
<length>4.0</length>
|
|
126
|
+
<width>3.0</width>
|
|
127
|
+
<height>2.0</height>
|
|
128
|
+
<packedItem>
|
|
129
|
+
<quantity>1</quantity>
|
|
130
|
+
<description>a box full of stuff</description>
|
|
131
|
+
</packedItem>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
</box>
|
|
135
|
+
<box>
|
|
136
|
+
<name>another box full of stuff</name>
|
|
137
|
+
<weight>0.5</weight>
|
|
138
|
+
<expediterWeight>0.5</expediterWeight>
|
|
139
|
+
<length>4.0</length>
|
|
140
|
+
<width>3.0</width>
|
|
141
|
+
<height>2.0</height>
|
|
142
|
+
<packedItem>
|
|
143
|
+
<quantity>1</quantity>
|
|
144
|
+
<description>another box full of stuff</description>
|
|
145
|
+
</packedItem>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
</box>
|
|
149
|
+
|
|
150
|
+
</packing>
|
|
151
|
+
|
|
152
|
+
<shippingOptions>
|
|
153
|
+
<insurance>No</insurance>
|
|
154
|
+
<deliveryConfirmation>Yes</deliveryConfirmation>
|
|
155
|
+
<signature>No</signature>
|
|
156
|
+
|
|
157
|
+
</shippingOptions>
|
|
158
|
+
|
|
159
|
+
<comment>* For major centres only. Add 1 to 3 business days for other destinations.</comment>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</ratesAndServicesResponse>
|
|
163
|
+
</eparcel>
|
|
164
|
+
<!--END_OF_EPARCEL-->
|