Skip to content

Commit

Permalink
* Apparently department is not an option, even though FedEx docs say …
Browse files Browse the repository at this point in the history
…it is and the test services allow it. Production services say its not valid.
  • Loading branch information
binarylogic committed Aug 17, 2009
1 parent 4b226b5 commit a75f530
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rdoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
== 1.1.3 released 2009-07-17

* Apparently department is not an option, even though FedEx docs say it is and the test services allow it. Production services say its not valid.

== 1.1.2 released 2009-07-17

* Added :department for shipper and recipient options.
Expand Down
4 changes: 0 additions & 4 deletions lib/shippinglogic/fedex/rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class FedEx
#
# * <tt>shipper_name</tt> - name of the shipper.
# * <tt>shipper_title</tt> - title of the shipper.
# * <tt>shipper_department</tt> - department of the shipper.
# * <tt>shipper_company_name</tt> - company name of the shipper.
# * <tt>shipper_phone_number</tt> - phone number of the shipper.
# * <tt>shipper_email</tt> - email of the shipper.
Expand All @@ -23,7 +22,6 @@ class FedEx
#
# * <tt>recipient_name</tt> - name of the recipient.
# * <tt>recipient_title</tt> - title of the recipient.
# * <tt>recipient_department</tt> - department of the recipient.
# * <tt>recipient_company_name</tt> - company name of the recipient.
# * <tt>recipient_phone_number</tt> - phone number of the recipient.
# * <tt>recipient_email</tt> - email of the recipient.
Expand Down Expand Up @@ -106,7 +104,6 @@ class Service; attr_accessor :name, :type, :saturday, :delivered_by, :speed, :ra
# shipper options
attribute :shipper_name, :string
attribute :shipper_title, :string
attribute :shipper_department, :string
attribute :shipper_company_name, :string
attribute :shipper_phone_number, :string
attribute :shipper_email, :string
Expand All @@ -120,7 +117,6 @@ class Service; attr_accessor :name, :type, :saturday, :delivered_by, :speed, :ra
# recipient options
attribute :recipient_name, :string
attribute :recipient_title, :string
attribute :recipient_department, :string
attribute :recipient_company_name, :string
attribute :recipient_phone_number, :string
attribute :recipient_email, :string
Expand Down
3 changes: 1 addition & 2 deletions lib/shippinglogic/fedex/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ def build_contact(b, type)
b.Contact do
b.PersonName send("#{type}_name") if send("#{type}_name")
b.Title send("#{type}_title") if send("#{type}_title")
b.Department send("#{type}_department") if send("#{type}_department")
b.CompanyName send("#{type}_company_name") if send("#{type}_company_name")
b.PhoneNumber send("#{type}_phone_number") if send("#{type}_phone_number")
b.EmailAddress send("#{type}_email") if send("#{type}_email")
b.EMailAddress send("#{type}_email") if send("#{type}_email")
end
end

Expand Down
4 changes: 0 additions & 4 deletions lib/shippinglogic/fedex/ship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class FedEx
#
# * <tt>shipper_name</tt> - name of the shipper.
# * <tt>shipper_title</tt> - title of the shipper.
# * <tt>shipper_department</tt> - department of the shipper.
# * <tt>shipper_company_name</tt> - company name of the shipper.
# * <tt>shipper_phone_number</tt> - phone number of the shipper.
# * <tt>shipper_email</tt> - email of the shipper.
Expand All @@ -23,7 +22,6 @@ class FedEx
#
# * <tt>recipient_name</tt> - name of the recipient.
# * <tt>recipient_title</tt> - title of the recipient.
# * <tt>recipient_department</tt> - department of the recipient.
# * <tt>recipient_company_name</tt> - company name of the recipient.
# * <tt>recipient_phone_number</tt> - phone number of the recipient.
# * <tt>recipient_email</tt> - email of the recipient.
Expand Down Expand Up @@ -112,7 +110,6 @@ class Shipment; attr_accessor :rate, :currency, :delivery_date, :tracking_number
# shipper options
attribute :shipper_name, :string
attribute :shipper_title, :string
attribute :shipper_department, :string
attribute :shipper_company_name, :string
attribute :shipper_phone_number, :string
attribute :shipper_email, :string
Expand All @@ -126,7 +123,6 @@ class Shipment; attr_accessor :rate, :currency, :delivery_date, :tracking_number
# recipient options
attribute :recipient_name, :string
attribute :recipient_title, :string
attribute :recipient_department, :string
attribute :recipient_company_name, :string
attribute :recipient_phone_number, :string
attribute :recipient_email, :string
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def fedex_recipient
{
:recipient_name => "Name",
:recipient_title => "Title",
:recipient_department => "Department",
:recipient_company_name => "Dallas City Hall",
:recipient_phone_number => "2222222222",
:recipient_email => "a@a.com",
Expand Down

0 comments on commit a75f530

Please sign in to comment.