active_shipping 1.0.0.pre2 → 1.0.0.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +12 -0
- data/.travis.yml +14 -0
- data/.yardopts +14 -0
- data/Gemfile +3 -0
- data/Gemfile.activesupport32 +4 -0
- data/Gemfile.activesupport40 +4 -0
- data/Gemfile.activesupport41 +4 -0
- data/Gemfile.activesupport42 +4 -0
- data/Rakefile +23 -0
- data/active_shipping.gemspec +32 -0
- data/lib/active_shipping.rb +1 -1
- data/lib/active_shipping/carrier.rb +1 -1
- data/lib/active_shipping/carriers/shipwire.rb +32 -35
- data/lib/active_shipping/carriers/ups.rb +2 -2
- data/lib/active_shipping/carriers/usps.rb +103 -101
- data/lib/active_shipping/label_response.rb +1 -1
- data/lib/active_shipping/rate_estimate.rb +76 -15
- data/lib/active_shipping/rate_response.rb +20 -0
- data/lib/active_shipping/response.rb +17 -0
- data/lib/active_shipping/shipment_packer.rb +2 -2
- data/lib/active_shipping/shipping_response.rb +24 -2
- data/lib/active_shipping/tracking_response.rb +65 -17
- data/lib/active_shipping/version.rb +1 -1
- data/shipit.rubygems.yml +1 -0
- data/test/credentials.yml +47 -0
- data/test/fixtures/files/label1.pdf +0 -0
- data/test/fixtures/files/ups-shipping-label.gif +0 -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/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_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/reply_without_notifications.xml +185 -0
- data/test/fixtures/xml/fedex/tracking_request.xml +27 -0
- data/test/fixtures/xml/fedex/tracking_response.xml +151 -0
- data/test/fixtures/xml/fedex/tracking_response_empty_destination.xml +76 -0
- data/test/fixtures/xml/fedex/tracking_response_no_destination.xml +139 -0
- data/test/fixtures/xml/fedex/tracking_response_no_ship_time.xml +150 -0
- data/test/fixtures/xml/fedex/tracking_response_with_estimated_delivery_date.xml +95 -0
- data/test/fixtures/xml/fedex/tracking_response_with_shipper_address.xml +71 -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/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/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/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 +1 -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/triple_accept_response.xml +72 -0
- data/test/fixtures/xml/ups/triple_confirm_response.xml +32 -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/delivered_tracking_response.xml +11 -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_tracking_response_error.xml +2 -0
- data/test/fixtures/xml/usps/tracking_request.xml +3 -0
- data/test/fixtures/xml/usps/tracking_response.xml +13 -0
- data/test/fixtures/xml/usps/tracking_response_failure.xml +3 -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/world_rate_request_with_value.xml +20 -0
- data/test/fixtures/xml/usps/world_rate_request_without_value.xml +20 -0
- data/test/remote/canada_post_pws_platform_test.rb +246 -0
- data/test/remote/canada_post_pws_test.rb +171 -0
- data/test/remote/canada_post_test.rb +53 -0
- data/test/remote/fedex_test.rb +216 -0
- data/test/remote/kunaki_test.rb +36 -0
- data/test/remote/new_zealand_post_test.rb +147 -0
- data/test/remote/shipwire_test.rb +82 -0
- data/test/remote/stamps_test.rb +394 -0
- data/test/remote/ups_test.rb +257 -0
- data/test/remote/usps_test.rb +235 -0
- data/test/test_helper.rb +220 -0
- data/test/unit/carriers/benchmark_test.rb +18 -0
- data/test/unit/carriers/canada_post_pws_rating_test.rb +349 -0
- data/test/unit/carriers/canada_post_pws_register_test.rb +75 -0
- data/test/unit/carriers/canada_post_pws_shipping_test.rb +244 -0
- data/test/unit/carriers/canada_post_pws_tracking_test.rb +154 -0
- data/test/unit/carriers/canada_post_test.rb +145 -0
- data/test/unit/carriers/fedex_test.rb +408 -0
- data/test/unit/carriers/kunaki_test.rb +52 -0
- data/test/unit/carriers/new_zealand_post_test.rb +174 -0
- data/test/unit/carriers/shipwire_test.rb +187 -0
- data/test/unit/carriers/stamps_test.rb +241 -0
- data/test/unit/carriers/ups_test.rb +311 -0
- data/test/unit/carriers/usps_test.rb +484 -0
- data/test/unit/carriers_test.rb +17 -0
- data/test/unit/label_response_test.rb +15 -0
- data/test/unit/location_test.rb +138 -0
- data/test/unit/package_test.rb +68 -0
- data/test/unit/rate_estimate_test.rb +34 -0
- data/test/unit/response_test.rb +14 -0
- data/test/unit/shipment_packer_test.rb +174 -0
- metadata +331 -35
- metadata.gz.sig +0 -0
- data/lib/vendor/quantified/MIT-LICENSE +0 -22
- data/lib/vendor/quantified/README.markdown +0 -49
- data/lib/vendor/quantified/Rakefile +0 -13
- data/lib/vendor/quantified/init.rb +0 -0
- data/lib/vendor/quantified/lib/quantified.rb +0 -6
- data/lib/vendor/quantified/lib/quantified/attribute.rb +0 -211
- data/lib/vendor/quantified/lib/quantified/length.rb +0 -20
- data/lib/vendor/quantified/lib/quantified/mass.rb +0 -19
- data/lib/vendor/quantified/test/length_test.rb +0 -94
- data/lib/vendor/quantified/test/mass_test.rb +0 -96
- data/lib/vendor/quantified/test/test_helper.rb +0 -19
@@ -0,0 +1,112 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<tracking-detail xmlns="http://www.canadapost.ca/ws/track">
|
3
|
+
<pin>1680678172650919</pin>
|
4
|
+
<active-exists>1</active-exists>
|
5
|
+
<archive-exists/>
|
6
|
+
<changed-expected-date/>
|
7
|
+
<destination-postal-id>K0B1R0</destination-postal-id>
|
8
|
+
<expected-delivery-date>2011-01-12</expected-delivery-date>
|
9
|
+
<changed-expected-delivery-reason/>
|
10
|
+
<mailed-by-customer-number>0001680678</mailed-by-customer-number>
|
11
|
+
<mailed-on-behalf-of-customer-number>0001680678</mailed-on-behalf-of-customer-number>
|
12
|
+
<original-pin/>
|
13
|
+
<service-name>Xpresspost</service-name>
|
14
|
+
<service-name-2>Xpresspost</service-name-2>
|
15
|
+
<customer-ref-1/>
|
16
|
+
<customer-ref-2/>
|
17
|
+
<return-pin/>
|
18
|
+
<signature-image-exists>false</signature-image-exists>
|
19
|
+
<suppress-signature>true</suppress-signature>
|
20
|
+
<delivery-options>
|
21
|
+
<item>
|
22
|
+
<delivery-option/>
|
23
|
+
<delivery-option-description/>
|
24
|
+
</item>
|
25
|
+
</delivery-options>
|
26
|
+
<significant-events>
|
27
|
+
<occurrence>
|
28
|
+
<event-identifier>1498</event-identifier>
|
29
|
+
<event-date>2011-01-27</event-date>
|
30
|
+
<event-time>14:02:29</event-time>
|
31
|
+
<event-time-zone>EST</event-time-zone>
|
32
|
+
<event-description>Item successfully delivered</event-description>
|
33
|
+
<signatory-name/>
|
34
|
+
<event-site>VANKLEEK HILL</event-site>
|
35
|
+
<event-province>ON</event-province>
|
36
|
+
<event-retail-location-id/>
|
37
|
+
<event-retail-name/>
|
38
|
+
</occurrence>
|
39
|
+
<occurrence>
|
40
|
+
<event-identifier>0156</event-identifier>
|
41
|
+
<event-date>2011-01-18</event-date>
|
42
|
+
<event-time>07:57:50</event-time>
|
43
|
+
<event-time-zone>EST</event-time-zone>
|
44
|
+
<event-description>Final Notice; Item will be returned to sender if not collected within 10 days</event-description>
|
45
|
+
<signatory-name/>
|
46
|
+
<event-site>VANKLEEK HILL</event-site>
|
47
|
+
<event-province>ON</event-province>
|
48
|
+
<event-retail-location-id>0000315052</event-retail-location-id>
|
49
|
+
<event-retail-name>VANKLEEK HILL PO</event-retail-name>
|
50
|
+
</occurrence>
|
51
|
+
<occurrence>
|
52
|
+
<event-identifier>1479</event-identifier>
|
53
|
+
<event-date>2011-01-11</event-date>
|
54
|
+
<event-time>11:59:59</event-time>
|
55
|
+
<event-time-zone>EST</event-time-zone>
|
56
|
+
<event-description>Attempted delivery. Notice card left indicating where item can be picked up.</event-description>
|
57
|
+
<signatory-name/>
|
58
|
+
<event-site>VANKLEEK HILL</event-site>
|
59
|
+
<event-province>ON</event-province>
|
60
|
+
<event-retail-location-id/>
|
61
|
+
<event-retail-name/>
|
62
|
+
</occurrence>
|
63
|
+
<occurrence>
|
64
|
+
<event-identifier>1701</event-identifier>
|
65
|
+
<event-date>2011-01-11</event-date>
|
66
|
+
<event-time>11:55:51</event-time>
|
67
|
+
<event-time-zone>EST</event-time-zone>
|
68
|
+
<event-description>Item available for pickup at Post Office</event-description>
|
69
|
+
<signatory-name/>
|
70
|
+
<event-site>VANKLEEK HILL</event-site>
|
71
|
+
<event-province>ON</event-province>
|
72
|
+
<event-retail-location-id/>
|
73
|
+
<event-retail-name/>
|
74
|
+
</occurrence>
|
75
|
+
<occurrence>
|
76
|
+
<event-identifier>0100</event-identifier>
|
77
|
+
<event-date>2011-01-10</event-date>
|
78
|
+
<event-time>18:54:00</event-time>
|
79
|
+
<event-time-zone>EST</event-time-zone>
|
80
|
+
<event-description>Item processed at postal facility</event-description>
|
81
|
+
<signatory-name/>
|
82
|
+
<event-site>MISSISSAUGA</event-site>
|
83
|
+
<event-province>ON</event-province>
|
84
|
+
<event-retail-location-id/>
|
85
|
+
<event-retail-name/>
|
86
|
+
</occurrence>
|
87
|
+
<occurrence>
|
88
|
+
<event-identifier>2300</event-identifier>
|
89
|
+
<event-date>2011-01-10</event-date>
|
90
|
+
<event-time>17:41:50</event-time>
|
91
|
+
<event-time-zone>EST</event-time-zone>
|
92
|
+
<event-description>Item picked up by Canada Post</event-description>
|
93
|
+
<signatory-name/>
|
94
|
+
<event-site>MISSISSAUGA</event-site>
|
95
|
+
<event-province>ON</event-province>
|
96
|
+
<event-retail-location-id/>
|
97
|
+
<event-retail-name/>
|
98
|
+
</occurrence>
|
99
|
+
<occurrence>
|
100
|
+
<event-identifier>3000</event-identifier>
|
101
|
+
<event-date>2011-01-10</event-date>
|
102
|
+
<event-time>15:00:00</event-time>
|
103
|
+
<event-time-zone>EST</event-time-zone>
|
104
|
+
<event-description>Order information received by Canada Post</event-description>
|
105
|
+
<signatory-name/>
|
106
|
+
<event-site>MISSISSAUGA</event-site>
|
107
|
+
<event-province>ON</event-province>
|
108
|
+
<event-retail-location-id/>
|
109
|
+
<event-retail-name/>
|
110
|
+
</occurrence>
|
111
|
+
</significant-events>
|
112
|
+
</tracking-detail>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<merchant-info>
|
2
|
+
<customer-number>1234567890</customer-number>
|
3
|
+
<contract-number>1234567890-</contract-number>
|
4
|
+
<merchant-username>1234567890123456</merchant-username>
|
5
|
+
<merchant-password>12343567890123456789012</merchant-password>
|
6
|
+
<has-default-credit-card>false</has-default-credit-card>
|
7
|
+
</merchant-info>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<option>
|
2
|
+
<option-code>SO</option-code>
|
3
|
+
<option-name>Signature option</option-name>
|
4
|
+
<option-class>FEAT</option-class>
|
5
|
+
<prints-on-label>true</prints-on-label>
|
6
|
+
<qualifier-required>false</qualifier-required>
|
7
|
+
<conflicting-options>
|
8
|
+
<option-code>LAD</option-code>
|
9
|
+
</conflicting-options>
|
10
|
+
<prerequisite-options>
|
11
|
+
<option-code>DC</option-code>
|
12
|
+
</prerequisite-options>
|
13
|
+
</option>
|
@@ -0,0 +1,190 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<price-quotes xmlns="http://www.canadapost.ca/ws/ship/rate">
|
3
|
+
<price-quote>
|
4
|
+
<service-code>DOM.EP</service-code>
|
5
|
+
<service-link rel="service" href="https://soa-gw.canadapost.ca/rs/ship/service/DOM.EP?country=CA" media-type="application/vnd.cpc.ship.rate+xml"/>
|
6
|
+
<service-name>Expedited Parcel</service-name>
|
7
|
+
<price-details>
|
8
|
+
<base>10.97</base>
|
9
|
+
<taxes>
|
10
|
+
<gst>0.00</gst>
|
11
|
+
<pst>0.00</pst>
|
12
|
+
<hst percent="12.0000">1.39</hst>
|
13
|
+
</taxes>
|
14
|
+
<due>13.01</due>
|
15
|
+
<options>
|
16
|
+
<option>
|
17
|
+
<option-code>DC</option-code>
|
18
|
+
<option-name>Delivery confirmation</option-name>
|
19
|
+
<option-price>0</option-price>
|
20
|
+
</option>
|
21
|
+
</options>
|
22
|
+
<adjustments>
|
23
|
+
<adjustment>
|
24
|
+
<adjustment-code>AUTDISC</adjustment-code>
|
25
|
+
<adjustment-name>Automation discount</adjustment-name>
|
26
|
+
<adjustment-cost>-0.33</adjustment-cost>
|
27
|
+
<qualifier>
|
28
|
+
<percent>3.000</percent>
|
29
|
+
</qualifier>
|
30
|
+
</adjustment>
|
31
|
+
<adjustment>
|
32
|
+
<adjustment-code>FUELSC</adjustment-code>
|
33
|
+
<adjustment-name>Fuel surcharge</adjustment-name>
|
34
|
+
<adjustment-cost>0.98</adjustment-cost>
|
35
|
+
<qualifier>
|
36
|
+
<percent>9.25</percent>
|
37
|
+
</qualifier>
|
38
|
+
</adjustment>
|
39
|
+
</adjustments>
|
40
|
+
</price-details>
|
41
|
+
<weight-details/>
|
42
|
+
<service-standard>
|
43
|
+
<am-delivery>false</am-delivery>
|
44
|
+
<guaranteed-delivery>true</guaranteed-delivery>
|
45
|
+
<expected-transit-time>5</expected-transit-time>
|
46
|
+
<expected-delivery-date>2012-01-18</expected-delivery-date>
|
47
|
+
</service-standard>
|
48
|
+
</price-quote>
|
49
|
+
<price-quote>
|
50
|
+
<service-code>DOM.PC</service-code>
|
51
|
+
<service-link rel="service" href="https://soa-gw.canadapost.ca/rs/ship/service/DOM.PC?country=CA" media-type="application/vnd.cpc.ship.rate+xml"/>
|
52
|
+
<service-name>Priority Courier</service-name>
|
53
|
+
<price-details>
|
54
|
+
<base>30.61</base>
|
55
|
+
<taxes>
|
56
|
+
<gst>0.00</gst>
|
57
|
+
<pst>0.00</pst>
|
58
|
+
<hst percent="12.0000">4.07</hst>
|
59
|
+
</taxes>
|
60
|
+
<due>37.99</due>
|
61
|
+
<options>
|
62
|
+
<option>
|
63
|
+
<option-code>DC</option-code>
|
64
|
+
<option-name>Delivery confirmation</option-name>
|
65
|
+
<option-price>0</option-price>
|
66
|
+
</option>
|
67
|
+
</options>
|
68
|
+
<adjustments>
|
69
|
+
<adjustment>
|
70
|
+
<adjustment-code>AUTDISC</adjustment-code>
|
71
|
+
<adjustment-name>Automation discount</adjustment-name>
|
72
|
+
<adjustment-cost>-0.92</adjustment-cost>
|
73
|
+
<qualifier>
|
74
|
+
<percent>3.000</percent>
|
75
|
+
</qualifier>
|
76
|
+
</adjustment>
|
77
|
+
<adjustment>
|
78
|
+
<adjustment-code>FUELSC</adjustment-code>
|
79
|
+
<adjustment-name>Fuel surcharge</adjustment-name>
|
80
|
+
<adjustment-cost>4.23</adjustment-cost>
|
81
|
+
<qualifier>
|
82
|
+
<percent>14.25</percent>
|
83
|
+
</qualifier>
|
84
|
+
</adjustment>
|
85
|
+
</adjustments>
|
86
|
+
</price-details>
|
87
|
+
<weight-details/>
|
88
|
+
<service-standard>
|
89
|
+
<am-delivery>true</am-delivery>
|
90
|
+
<guaranteed-delivery>true</guaranteed-delivery>
|
91
|
+
<expected-transit-time>1</expected-transit-time>
|
92
|
+
<expected-delivery-date>2012-01-12</expected-delivery-date>
|
93
|
+
</service-standard>
|
94
|
+
</price-quote>
|
95
|
+
<price-quote>
|
96
|
+
<service-code>DOM.RP</service-code>
|
97
|
+
<service-link rel="service" href="https://soa-gw.canadapost.ca/rs/ship/service/DOM.RP?country=CA" media-type="application/vnd.cpc.ship.rate+xml"/>
|
98
|
+
<service-name>Regular Parcel</service-name>
|
99
|
+
<price-details>
|
100
|
+
<base>10.97</base>
|
101
|
+
<taxes>
|
102
|
+
<gst>0.00</gst>
|
103
|
+
<pst>0.00</pst>
|
104
|
+
<hst percent="12.0000">1.39</hst>
|
105
|
+
</taxes>
|
106
|
+
<due>13.01</due>
|
107
|
+
<options>
|
108
|
+
<option>
|
109
|
+
<option-code>DC</option-code>
|
110
|
+
<option-name>Delivery confirmation</option-name>
|
111
|
+
<option-price>0</option-price>
|
112
|
+
<qualifier>
|
113
|
+
<included>true</included>
|
114
|
+
</qualifier>
|
115
|
+
</option>
|
116
|
+
</options>
|
117
|
+
<adjustments>
|
118
|
+
<adjustment>
|
119
|
+
<adjustment-code>AUTDISC</adjustment-code>
|
120
|
+
<adjustment-name>Automation discount</adjustment-name>
|
121
|
+
<adjustment-cost>-0.33</adjustment-cost>
|
122
|
+
<qualifier>
|
123
|
+
<percent>3.000</percent>
|
124
|
+
</qualifier>
|
125
|
+
</adjustment>
|
126
|
+
<adjustment>
|
127
|
+
<adjustment-code>FUELSC</adjustment-code>
|
128
|
+
<adjustment-name>Fuel surcharge</adjustment-name>
|
129
|
+
<adjustment-cost>0.98</adjustment-cost>
|
130
|
+
<qualifier>
|
131
|
+
<percent>9.25</percent>
|
132
|
+
</qualifier>
|
133
|
+
</adjustment>
|
134
|
+
</adjustments>
|
135
|
+
</price-details>
|
136
|
+
<weight-details/>
|
137
|
+
<service-standard>
|
138
|
+
<am-delivery>false</am-delivery>
|
139
|
+
<guaranteed-delivery>false</guaranteed-delivery>
|
140
|
+
<expected-transit-time>7</expected-transit-time>
|
141
|
+
<expected-delivery-date>2012-01-20</expected-delivery-date>
|
142
|
+
</service-standard>
|
143
|
+
</price-quote>
|
144
|
+
<price-quote>
|
145
|
+
<service-code>DOM.XP</service-code>
|
146
|
+
<service-link rel="service" href="https://soa-gw.canadapost.ca/rs/ship/service/DOM.XP?country=CA" media-type="application/vnd.cpc.ship.rate+xml"/>
|
147
|
+
<service-name>Xpresspost</service-name>
|
148
|
+
<price-details>
|
149
|
+
<base>18.07</base>
|
150
|
+
<taxes>
|
151
|
+
<gst>0.00</gst>
|
152
|
+
<pst>0.00</pst>
|
153
|
+
<hst percent="12.0000">2.40</hst>
|
154
|
+
</taxes>
|
155
|
+
<due>22.43</due>
|
156
|
+
<options>
|
157
|
+
<option>
|
158
|
+
<option-code>DC</option-code>
|
159
|
+
<option-name>Delivery confirmation</option-name>
|
160
|
+
<option-price>0</option-price>
|
161
|
+
</option>
|
162
|
+
</options>
|
163
|
+
<adjustments>
|
164
|
+
<adjustment>
|
165
|
+
<adjustment-code>AUTDISC</adjustment-code>
|
166
|
+
<adjustment-name>Automation discount</adjustment-name>
|
167
|
+
<adjustment-cost>-0.54</adjustment-cost>
|
168
|
+
<qualifier>
|
169
|
+
<percent>3.000</percent>
|
170
|
+
</qualifier>
|
171
|
+
</adjustment>
|
172
|
+
<adjustment>
|
173
|
+
<adjustment-code>FUELSC</adjustment-code>
|
174
|
+
<adjustment-name>Fuel surcharge</adjustment-name>
|
175
|
+
<adjustment-cost>2.50</adjustment-cost>
|
176
|
+
<qualifier>
|
177
|
+
<percent>14.25</percent>
|
178
|
+
</qualifier>
|
179
|
+
</adjustment>
|
180
|
+
</adjustments>
|
181
|
+
</price-details>
|
182
|
+
<weight-details/>
|
183
|
+
<service-standard>
|
184
|
+
<am-delivery>false</am-delivery>
|
185
|
+
<guaranteed-delivery>true</guaranteed-delivery>
|
186
|
+
<expected-transit-time>2</expected-transit-time>
|
187
|
+
<expected-delivery-date>2012-01-13</expected-delivery-date>
|
188
|
+
</service-standard>
|
189
|
+
</price-quote>
|
190
|
+
</price-quotes>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<non-contract-shipment-receipt>
|
2
|
+
<final-shipping-point>J4W4T0</final-shipping-point>
|
3
|
+
<shipping-point-name>BP BROSSARD</shipping-point-name>
|
4
|
+
<shipping-point-id>0192</shipping-point-id>
|
5
|
+
<mailed-by-customer>0001111111</mailed-by-customer>
|
6
|
+
<service-code>DOM.EP</service-code>
|
7
|
+
<rated-weight>15.000</rated-weight>
|
8
|
+
<base-amount>18.10</base-amount>
|
9
|
+
<pre-tax-amount>19.46</pre-tax-amount>
|
10
|
+
<gst-amount>0.00</gst-amount>
|
11
|
+
<pst-amount>0.00</pst-amount>
|
12
|
+
<hst-amount>2.53</hst-amount>
|
13
|
+
<priced-options>
|
14
|
+
<priced-option>
|
15
|
+
<option-code>DC</option-code>
|
16
|
+
<option-price>0</option-price>
|
17
|
+
</priced-option>
|
18
|
+
</priced-options>
|
19
|
+
<adjustments>
|
20
|
+
<adjustment>
|
21
|
+
<adjustment-code>FUELSC</adjustment-code>
|
22
|
+
<adjustment-amount>1.36</adjustment-amount>
|
23
|
+
</adjustment>
|
24
|
+
</adjustments>
|
25
|
+
<cc-receipt-details>
|
26
|
+
<merchant-name>Canada Post Corporation</merchant-name>
|
27
|
+
<merchant-url>www.canadapost.ca</merchant-url>
|
28
|
+
<name-on-card>John Doe</name-on-card>
|
29
|
+
<auth-code>076838</auth-code>
|
30
|
+
<auth-timestamp>2012-03-13T08:27:20-05:00</auth-timestamp>
|
31
|
+
<card-type>VIS</card-type>
|
32
|
+
<charge-amount>21.99</charge-amount>
|
33
|
+
<currency>CAD</currency>
|
34
|
+
<transaction-type>Sale</transaction-type>
|
35
|
+
</cc-receipt-details>
|
36
|
+
<service-standard>
|
37
|
+
<am-delivery>false</am-delivery>
|
38
|
+
<guaranteed-delivery>true</guaranteed-delivery>
|
39
|
+
<expected-transit-time>1</expected-transit-time>
|
40
|
+
<expected-delivery-date>2012-03-14</expected-delivery-date>
|
41
|
+
</service-standard>
|
42
|
+
</non-contract-shipment-receipt>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<non-contract-shipment-receipt>
|
2
|
+
<final-shipping-point>J4W4T0</final-shipping-point>
|
3
|
+
<shipping-point-name>BP BROSSARD</shipping-point-name>
|
4
|
+
<shipping-point-id>0192</shipping-point-id>
|
5
|
+
<mailed-by-customer>0001111111</mailed-by-customer>
|
6
|
+
<service-code>DOM.EP</service-code>
|
7
|
+
<rated-weight>15.000</rated-weight>
|
8
|
+
<base-amount>18.10</base-amount>
|
9
|
+
<pre-tax-amount>19.46</pre-tax-amount>
|
10
|
+
<gst-amount>0.00</gst-amount>
|
11
|
+
<pst-amount>0.00</pst-amount>
|
12
|
+
<hst-amount>2.53</hst-amount>
|
13
|
+
<adjustments>
|
14
|
+
<adjustment>
|
15
|
+
<adjustment-code>FUELSC</adjustment-code>
|
16
|
+
<adjustment-amount>1.36</adjustment-amount>
|
17
|
+
</adjustment>
|
18
|
+
</adjustments>
|
19
|
+
<cc-receipt-details>
|
20
|
+
<merchant-name>Canada Post Corporation</merchant-name>
|
21
|
+
<merchant-url>www.canadapost.ca</merchant-url>
|
22
|
+
<name-on-card>John Doe</name-on-card>
|
23
|
+
<auth-code>076838</auth-code>
|
24
|
+
<auth-timestamp>2012-03-13T08:27:20-05:00</auth-timestamp>
|
25
|
+
<card-type>VIS</card-type>
|
26
|
+
<charge-amount>21.99</charge-amount>
|
27
|
+
<currency>CAD</currency>
|
28
|
+
<transaction-type>Sale</transaction-type>
|
29
|
+
</cc-receipt-details>
|
30
|
+
<service-standard>
|
31
|
+
<am-delivery>false</am-delivery>
|
32
|
+
<guaranteed-delivery>true</guaranteed-delivery>
|
33
|
+
<expected-transit-time>1</expected-transit-time>
|
34
|
+
<expected-delivery-date>2012-03-14</expected-delivery-date>
|
35
|
+
</service-standard>
|
36
|
+
</non-contract-shipment-receipt>
|