Readme.md in fedex-3.3.0 vs Readme.md in fedex-3.3.1

- old
+ new

@@ -66,14 +66,14 @@ :dimensions => {:length => 5, :width => 5, :height => 4, :units => "IN" } } ``` By default packaging type is "YOUR PACKAGING" and the drop off type is "REGULAR PICKUP". -If you need something different you can pass an extra hash for shipping details +If you need something different you can pass an extra hash for shipping options ```ruby -shipping_details = { +shipping_options = { :packaging_type => "YOUR_PACKAGING", :drop_off_type => "REGULAR_PICKUP" } ``` @@ -96,11 +96,11 @@ ```ruby rate = fedex.rate(:shipper=>shipper, :recipient => recipient, :packages => packages, :service_type => "FEDEX_GROUND", - :shipping_details => shipping_details) + :shipping_options => shipping_options) ``` Fedex provides multiple total values; `total_net_charge` is the final amount you are looking for. ```ruby @@ -121,11 +121,11 @@ ```ruby ship = fedex.ship(:shipper=>shipper, :recipient => recipient, :packages => packages, :service_type => "FEDEX_GROUND", - :shipping_details => shipping_details) + :shipping_options => shipping_options) puts ship[:completed_shipment_detail][:operational_detail] [:transit_time] ``` Above code will give you the transit time. ### ** Generate a shipping label (PDF) ** @@ -136,11 +136,11 @@ label = fedex.label(:filename => "my_dir/example.pdf", :shipper=>shipper, :recipient => recipient, :packages => packages, :service_type => "FEDEX_GROUND", - :shipping_details => shipping_details) + :shipping_options => shipping_options) ``` ### ** Generate a shipping label in any available format ** Change the filename extension and pass a label_specification hash. For example: @@ -154,11 +154,11 @@ label = fedex.label(:filename => "my_dir/example_epl2.pcx", :shipper=>shipper, :recipient => recipient, :packages => packages, :service_type => "FEDEX_GROUND", - :shipping_details => shipping_details, + :shipping_options => shipping_options, :label_specification => example_spec) ``` ### ** Storing a label on Amazon S3 with Paperclip ** This is useful when you need to store the labels for later use, and are hosting your application on [Heroku](http://www.heroku.com/) as they do not allow writing to the filesystem, save the `tmp` directory. With [Paperclip](https://github.com/thoughtbot/paperclip/) setup up on a shipment model: @@ -167,11 +167,11 @@ label = fedex.label(:filename => "tmp/example_label.pdf", :shipper=>shipper, :recipient => recipient, :packages => packages, :service_type => "FEDEX_GROUND", - :shipping_details => shipping_details, + :shipping_options => shipping_options, :label_specification => example_spec) ``` Then attach the label to your Paperclip model: @@ -238,19 +238,21 @@ Fedex::Shipment::PACKAGING_TYPES Fedex::Shipment::DROP_OFF_TYPES ```` # Contributors: -- [jazminschroeder](http://github.com/jazminschroeder) (Jazmin Schroeder) -- [parndt](https://github.com/parndt) (Philip Arndt) -- [mmell](https://github.com/mmell) (Michael Mell) -- [jordanbyron](https://github.com/jordanbyron) (Jordan Byron) -- [geermc4](https://github.com/geermc4) (German Garcia) +- [jazminschroeder] (http://github.com/jazminschroeder) (Jazmin Schroeder) +- [parndt] (https://github.com/parndt) (Philip Arndt) +- [mmell] (https://github.com/mmell) (Michael Mell) +- [jordanbyron] (https://github.com/jordanbyron) (Jordan Byron) +- [geermc4] (https://github.com/geermc4) (German Garcia) - [janders223] (https://github.com/janders223) (Jim Anders) - [jlambert121] (https://github.com/jlambert121) (Justin Lambert) - [sborsje] (https://github.com/sborsje) (Stefan Borsje) - [bradediger] (https://github.com/bradediger) (Brad Ediger) - [yevgenko] (https://github.com/yevgenko) (Yevgeniy Viktorov) +- [smartacus] (https://github.com/smartacus) (Michael Lippold) +- [jonathandean] (https://github.com/jonathandean) (Jonathan Dean) # Copyright/License: Copyright 2011 [Jazmin Schroeder](http://jazminschroeder.com) This gem is made available under the MIT license.