Skip to content

Commit

Permalink
* Added :department for shipper and recipient options.
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Aug 17, 2009
1 parent 8e7b42d commit e99830b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 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.2 released 2009-07-17

* Added :department for shipper and recipient options.

== 1.1.1 released 2009-07-17

* Added :just_validate options for creating shipments, that leverages FedExs validation option without creating a shipment.
Expand Down
4 changes: 4 additions & 0 deletions lib/shippinglogic/fedex/rate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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 @@ -22,6 +23,7 @@ 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 @@ -104,6 +106,7 @@ 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 @@ -117,6 +120,7 @@ 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
1 change: 1 addition & 0 deletions lib/shippinglogic/fedex/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ 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")
Expand Down
4 changes: 4 additions & 0 deletions lib/shippinglogic/fedex/ship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ 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 @@ -22,6 +23,7 @@ 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 @@ -110,6 +112,7 @@ 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 @@ -123,6 +126,7 @@ 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

0 comments on commit e99830b

Please sign in to comment.